{"version":4,"artifacts":[{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/index.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"index.js","canonical":"index","resolution":"ESM","id":"4e90918c0a","hash":"4e90918c0afd1603c45097a06da755acc52754cb848f20da3f7f394557227a15","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Panel = void 0;\nconst tslib_1 = require(\"tslib\");\nconst Panel = tslib_1.__importStar(require(\"./models\"));\nexports.Panel = Panel;\nconst base_1 = require(\"@bokehjs/base\");\n(0, base_1.register_models)(Panel);\n//# sourceMappingURL=index.js.map\n","type":"js","dependency_paths":[["./models","/home/runner/work/panel/panel/panel/dist/lib/models/index.js"]],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* index.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const Panel = tslib_1.__importStar(require(\"2fe1822b2b\") /* ./models */);\n    exports.Panel = Panel;\n    const base_1 = require(\"@bokehjs/base\");\n    (0, base_1.register_models)(Panel);\n}\n","min_source":"function _(e,s,t,b,o){b();const i=e(\"tslib\").__importStar(e(\"2fe1822b2b\"));t.Panel=i;(0,e(\"@bokehjs/base\").register_models)(i)}\n//# sourceMappingURL=index.min.js.map","min_map":"{\"version\":3,\"file\":\"index.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"Panel\",\"__importStar\",\"register_models\"],\"sources\":[\"0\"],\"mappings\":\"AAAe,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC5DD,IACA,MACME,EADUL,EAAQ,SACFM,aAAaN,EAAQ,eAC3CE,EAAQG,MAAQA,GAEhB,EADeL,EAAQ,iBACZO,iBAAiBF,EAChC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/index.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/index.js","canonical":"models/index","resolution":"ESM","id":"2fe1822b2b","hash":"2fe1822b2bb6a561fd0a6da8732093ad7abc041441934ea98b63457b48930f2b","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TimePicker = exports.TextToSpeech = exports.TextInput = exports.TextAreaInput = exports.Terminal = exports.Tabs = exports.State = exports.SpeechToText = exports.SingleSelect = exports.ReactiveESM = exports.ReactiveHTML = exports.ReactComponent = exports.RadioButtonGroup = exports.QuillInput = exports.Progress = exports.PlotlyPlot = exports.Player = exports.Perspective = exports.PDF = exports.Modal = exports.MathJax = exports.Location = exports.KaTeX = exports.JSONEditor = exports.JSON = exports.IPyWidget = exports.HTML = exports.FileDropper = exports.FileDownload = exports.Feed = exports.ECharts = exports.DiscretePlayer = exports.DeckGLPlot = exports.DatetimeSlider = exports.DatetimePicker = exports.DataTabulator = exports.CustomMultiSelect = exports.CustomSelect = exports.CommManager = exports.Column = exports.ChatAreaInput = exports.CheckboxButtonGroup = exports.Card = exports.ClickableIcon = exports.ButtonIcon = exports.Button = exports.BrowserInfo = exports.Audio = exports.AnyWidgetComponent = exports.AcePlot = void 0;\nexports.VizzuChart = exports.VideoStream = exports.Video = exports.VegaPlot = exports.TrendIndicator = exports.TooltipIcon = exports.ToggleIcon = void 0;\nconst tslib_1 = require(\"tslib\");\nvar ace_1 = require(\"./ace\");\nObject.defineProperty(exports, \"AcePlot\", { enumerable: true, get: function () { return ace_1.AcePlot; } });\nvar anywidget_component_1 = require(\"./anywidget_component\");\nObject.defineProperty(exports, \"AnyWidgetComponent\", { enumerable: true, get: function () { return anywidget_component_1.AnyWidgetComponent; } });\nvar audio_1 = require(\"./audio\");\nObject.defineProperty(exports, \"Audio\", { enumerable: true, get: function () { return audio_1.Audio; } });\nvar browser_1 = require(\"./browser\");\nObject.defineProperty(exports, \"BrowserInfo\", { enumerable: true, get: function () { return browser_1.BrowserInfo; } });\nvar button_1 = require(\"./button\");\nObject.defineProperty(exports, \"Button\", { enumerable: true, get: function () { return button_1.Button; } });\nvar button_icon_1 = require(\"./button_icon\");\nObject.defineProperty(exports, \"ButtonIcon\", { enumerable: true, get: function () { return button_icon_1.ButtonIcon; } });\nvar icon_1 = require(\"./icon\");\nObject.defineProperty(exports, \"ClickableIcon\", { enumerable: true, get: function () { return icon_1.ClickableIcon; } });\nvar card_1 = require(\"./card\");\nObject.defineProperty(exports, \"Card\", { enumerable: true, get: function () { return card_1.Card; } });\nvar checkbox_button_group_1 = require(\"./checkbox_button_group\");\nObject.defineProperty(exports, \"CheckboxButtonGroup\", { enumerable: true, get: function () { return checkbox_button_group_1.CheckboxButtonGroup; } });\nvar chatarea_input_1 = require(\"./chatarea_input\");\nObject.defineProperty(exports, \"ChatAreaInput\", { enumerable: true, get: function () { return chatarea_input_1.ChatAreaInput; } });\nvar column_1 = require(\"./column\");\nObject.defineProperty(exports, \"Column\", { enumerable: true, get: function () { return column_1.Column; } });\nvar comm_manager_1 = require(\"./comm_manager\");\nObject.defineProperty(exports, \"CommManager\", { enumerable: true, get: function () { return comm_manager_1.CommManager; } });\nvar customselect_1 = require(\"./customselect\");\nObject.defineProperty(exports, \"CustomSelect\", { enumerable: true, get: function () { return customselect_1.CustomSelect; } });\nvar multiselect_1 = require(\"./multiselect\");\nObject.defineProperty(exports, \"CustomMultiSelect\", { enumerable: true, get: function () { return multiselect_1.CustomMultiSelect; } });\nvar tabulator_1 = require(\"./tabulator\");\nObject.defineProperty(exports, \"DataTabulator\", { enumerable: true, get: function () { return tabulator_1.DataTabulator; } });\nvar datetime_picker_1 = require(\"./datetime_picker\");\nObject.defineProperty(exports, \"DatetimePicker\", { enumerable: true, get: function () { return datetime_picker_1.DatetimePicker; } });\nvar datetime_slider_1 = require(\"./datetime_slider\");\nObject.defineProperty(exports, \"DatetimeSlider\", { enumerable: true, get: function () { return datetime_slider_1.DatetimeSlider; } });\nvar deckgl_1 = require(\"./deckgl\");\nObject.defineProperty(exports, \"DeckGLPlot\", { enumerable: true, get: function () { return deckgl_1.DeckGLPlot; } });\nvar discrete_player_1 = require(\"./discrete_player\");\nObject.defineProperty(exports, \"DiscretePlayer\", { enumerable: true, get: function () { return discrete_player_1.DiscretePlayer; } });\nvar echarts_1 = require(\"./echarts\");\nObject.defineProperty(exports, \"ECharts\", { enumerable: true, get: function () { return echarts_1.ECharts; } });\nvar feed_1 = require(\"./feed\");\nObject.defineProperty(exports, \"Feed\", { enumerable: true, get: function () { return feed_1.Feed; } });\nvar file_download_1 = require(\"./file_download\");\nObject.defineProperty(exports, \"FileDownload\", { enumerable: true, get: function () { return file_download_1.FileDownload; } });\nvar file_dropper_1 = require(\"./file_dropper\");\nObject.defineProperty(exports, \"FileDropper\", { enumerable: true, get: function () { return file_dropper_1.FileDropper; } });\nvar html_1 = require(\"./html\");\nObject.defineProperty(exports, \"HTML\", { enumerable: true, get: function () { return html_1.HTML; } });\nvar ipywidget_1 = require(\"./ipywidget\");\nObject.defineProperty(exports, \"IPyWidget\", { enumerable: true, get: function () { return ipywidget_1.IPyWidget; } });\nvar json_1 = require(\"./json\");\nObject.defineProperty(exports, \"JSON\", { enumerable: true, get: function () { return json_1.JSON; } });\nvar jsoneditor_1 = require(\"./jsoneditor\");\nObject.defineProperty(exports, \"JSONEditor\", { enumerable: true, get: function () { return jsoneditor_1.JSONEditor; } });\nvar katex_1 = require(\"./katex\");\nObject.defineProperty(exports, \"KaTeX\", { enumerable: true, get: function () { return katex_1.KaTeX; } });\nvar location_1 = require(\"./location\");\nObject.defineProperty(exports, \"Location\", { enumerable: true, get: function () { return location_1.Location; } });\nvar mathjax_1 = require(\"./mathjax\");\nObject.defineProperty(exports, \"MathJax\", { enumerable: true, get: function () { return mathjax_1.MathJax; } });\nvar modal_1 = require(\"./modal\");\nObject.defineProperty(exports, \"Modal\", { enumerable: true, get: function () { return modal_1.Modal; } });\nvar pdf_1 = require(\"./pdf\");\nObject.defineProperty(exports, \"PDF\", { enumerable: true, get: function () { return pdf_1.PDF; } });\nvar perspective_1 = require(\"./perspective\");\nObject.defineProperty(exports, \"Perspective\", { enumerable: true, get: function () { return perspective_1.Perspective; } });\nvar player_1 = require(\"./player\");\nObject.defineProperty(exports, \"Player\", { enumerable: true, get: function () { return player_1.Player; } });\nvar plotly_1 = require(\"./plotly\");\nObject.defineProperty(exports, \"PlotlyPlot\", { enumerable: true, get: function () { return plotly_1.PlotlyPlot; } });\nvar progress_1 = require(\"./progress\");\nObject.defineProperty(exports, \"Progress\", { enumerable: true, get: function () { return progress_1.Progress; } });\nvar quill_1 = require(\"./quill\");\nObject.defineProperty(exports, \"QuillInput\", { enumerable: true, get: function () { return quill_1.QuillInput; } });\nvar radio_button_group_1 = require(\"./radio_button_group\");\nObject.defineProperty(exports, \"RadioButtonGroup\", { enumerable: true, get: function () { return radio_button_group_1.RadioButtonGroup; } });\nvar react_component_1 = require(\"./react_component\");\nObject.defineProperty(exports, \"ReactComponent\", { enumerable: true, get: function () { return react_component_1.ReactComponent; } });\nvar reactive_html_1 = require(\"./reactive_html\");\nObject.defineProperty(exports, \"ReactiveHTML\", { enumerable: true, get: function () { return reactive_html_1.ReactiveHTML; } });\nvar reactive_esm_1 = require(\"./reactive_esm\");\nObject.defineProperty(exports, \"ReactiveESM\", { enumerable: true, get: function () { return reactive_esm_1.ReactiveESM; } });\nvar singleselect_1 = require(\"./singleselect\");\nObject.defineProperty(exports, \"SingleSelect\", { enumerable: true, get: function () { return singleselect_1.SingleSelect; } });\nvar speech_to_text_1 = require(\"./speech_to_text\");\nObject.defineProperty(exports, \"SpeechToText\", { enumerable: true, get: function () { return speech_to_text_1.SpeechToText; } });\nvar state_1 = require(\"./state\");\nObject.defineProperty(exports, \"State\", { enumerable: true, get: function () { return state_1.State; } });\nvar tabs_1 = require(\"./tabs\");\nObject.defineProperty(exports, \"Tabs\", { enumerable: true, get: function () { return tabs_1.Tabs; } });\nvar terminal_1 = require(\"./terminal\");\nObject.defineProperty(exports, \"Terminal\", { enumerable: true, get: function () { return terminal_1.Terminal; } });\nvar textarea_input_1 = require(\"./textarea_input\");\nObject.defineProperty(exports, \"TextAreaInput\", { enumerable: true, get: function () { return textarea_input_1.TextAreaInput; } });\nvar text_input_1 = require(\"./text_input\");\nObject.defineProperty(exports, \"TextInput\", { enumerable: true, get: function () { return text_input_1.TextInput; } });\nvar text_to_speech_1 = require(\"./text_to_speech\");\nObject.defineProperty(exports, \"TextToSpeech\", { enumerable: true, get: function () { return text_to_speech_1.TextToSpeech; } });\nvar time_picker_1 = require(\"./time_picker\");\nObject.defineProperty(exports, \"TimePicker\", { enumerable: true, get: function () { return time_picker_1.TimePicker; } });\nvar toggle_icon_1 = require(\"./toggle_icon\");\nObject.defineProperty(exports, \"ToggleIcon\", { enumerable: true, get: function () { return toggle_icon_1.ToggleIcon; } });\nvar tooltip_icon_1 = require(\"./tooltip_icon\");\nObject.defineProperty(exports, \"TooltipIcon\", { enumerable: true, get: function () { return tooltip_icon_1.TooltipIcon; } });\nvar trend_1 = require(\"./trend\");\nObject.defineProperty(exports, \"TrendIndicator\", { enumerable: true, get: function () { return trend_1.TrendIndicator; } });\nvar vega_1 = require(\"./vega\");\nObject.defineProperty(exports, \"VegaPlot\", { enumerable: true, get: function () { return vega_1.VegaPlot; } });\nvar video_1 = require(\"./video\");\nObject.defineProperty(exports, \"Video\", { enumerable: true, get: function () { return video_1.Video; } });\nvar videostream_1 = require(\"./videostream\");\nObject.defineProperty(exports, \"VideoStream\", { enumerable: true, get: function () { return videostream_1.VideoStream; } });\nvar vizzu_1 = require(\"./vizzu\");\nObject.defineProperty(exports, \"VizzuChart\", { enumerable: true, get: function () { return vizzu_1.VizzuChart; } });\ntslib_1.__exportStar(require(\"./vtk\"), exports);\n//# sourceMappingURL=index.js.map\n","type":"js","dependency_paths":[["./ace","/home/runner/work/panel/panel/panel/dist/lib/models/ace.js"],["./anywidget_component","/home/runner/work/panel/panel/panel/dist/lib/models/anywidget_component.js"],["./audio","/home/runner/work/panel/panel/panel/dist/lib/models/audio.js"],["./browser","/home/runner/work/panel/panel/panel/dist/lib/models/browser.js"],["./button","/home/runner/work/panel/panel/panel/dist/lib/models/button.js"],["./button_icon","/home/runner/work/panel/panel/panel/dist/lib/models/button_icon.js"],["./icon","/home/runner/work/panel/panel/panel/dist/lib/models/icon.js"],["./card","/home/runner/work/panel/panel/panel/dist/lib/models/card.js"],["./checkbox_button_group","/home/runner/work/panel/panel/panel/dist/lib/models/checkbox_button_group.js"],["./chatarea_input","/home/runner/work/panel/panel/panel/dist/lib/models/chatarea_input.js"],["./column","/home/runner/work/panel/panel/panel/dist/lib/models/column.js"],["./comm_manager","/home/runner/work/panel/panel/panel/dist/lib/models/comm_manager.js"],["./customselect","/home/runner/work/panel/panel/panel/dist/lib/models/customselect.js"],["./multiselect","/home/runner/work/panel/panel/panel/dist/lib/models/multiselect.js"],["./tabulator","/home/runner/work/panel/panel/panel/dist/lib/models/tabulator.js"],["./datetime_picker","/home/runner/work/panel/panel/panel/dist/lib/models/datetime_picker.js"],["./datetime_slider","/home/runner/work/panel/panel/panel/dist/lib/models/datetime_slider.js"],["./deckgl","/home/runner/work/panel/panel/panel/dist/lib/models/deckgl.js"],["./discrete_player","/home/runner/work/panel/panel/panel/dist/lib/models/discrete_player.js"],["./echarts","/home/runner/work/panel/panel/panel/dist/lib/models/echarts.js"],["./feed","/home/runner/work/panel/panel/panel/dist/lib/models/feed.js"],["./file_download","/home/runner/work/panel/panel/panel/dist/lib/models/file_download.js"],["./file_dropper","/home/runner/work/panel/panel/panel/dist/lib/models/file_dropper.js"],["./html","/home/runner/work/panel/panel/panel/dist/lib/models/html.js"],["./ipywidget","/home/runner/work/panel/panel/panel/dist/lib/models/ipywidget.js"],["./json","/home/runner/work/panel/panel/panel/dist/lib/models/json.js"],["./jsoneditor","/home/runner/work/panel/panel/panel/dist/lib/models/jsoneditor.js"],["./katex","/home/runner/work/panel/panel/panel/dist/lib/models/katex.js"],["./location","/home/runner/work/panel/panel/panel/dist/lib/models/location.js"],["./mathjax","/home/runner/work/panel/panel/panel/dist/lib/models/mathjax.js"],["./modal","/home/runner/work/panel/panel/panel/dist/lib/models/modal.js"],["./pdf","/home/runner/work/panel/panel/panel/dist/lib/models/pdf.js"],["./perspective","/home/runner/work/panel/panel/panel/dist/lib/models/perspective.js"],["./player","/home/runner/work/panel/panel/panel/dist/lib/models/player.js"],["./plotly","/home/runner/work/panel/panel/panel/dist/lib/models/plotly.js"],["./progress","/home/runner/work/panel/panel/panel/dist/lib/models/progress.js"],["./quill","/home/runner/work/panel/panel/panel/dist/lib/models/quill.js"],["./radio_button_group","/home/runner/work/panel/panel/panel/dist/lib/models/radio_button_group.js"],["./react_component","/home/runner/work/panel/panel/panel/dist/lib/models/react_component.js"],["./reactive_html","/home/runner/work/panel/panel/panel/dist/lib/models/reactive_html.js"],["./reactive_esm","/home/runner/work/panel/panel/panel/dist/lib/models/reactive_esm.js"],["./singleselect","/home/runner/work/panel/panel/panel/dist/lib/models/singleselect.js"],["./speech_to_text","/home/runner/work/panel/panel/panel/dist/lib/models/speech_to_text.js"],["./state","/home/runner/work/panel/panel/panel/dist/lib/models/state.js"],["./tabs","/home/runner/work/panel/panel/panel/dist/lib/models/tabs.js"],["./terminal","/home/runner/work/panel/panel/panel/dist/lib/models/terminal.js"],["./textarea_input","/home/runner/work/panel/panel/panel/dist/lib/models/textarea_input.js"],["./text_input","/home/runner/work/panel/panel/panel/dist/lib/models/text_input.js"],["./text_to_speech","/home/runner/work/panel/panel/panel/dist/lib/models/text_to_speech.js"],["./time_picker","/home/runner/work/panel/panel/panel/dist/lib/models/time_picker.js"],["./toggle_icon","/home/runner/work/panel/panel/panel/dist/lib/models/toggle_icon.js"],["./tooltip_icon","/home/runner/work/panel/panel/panel/dist/lib/models/tooltip_icon.js"],["./trend","/home/runner/work/panel/panel/panel/dist/lib/models/trend.js"],["./vega","/home/runner/work/panel/panel/panel/dist/lib/models/vega.js"],["./video","/home/runner/work/panel/panel/panel/dist/lib/models/video.js"],["./videostream","/home/runner/work/panel/panel/panel/dist/lib/models/videostream.js"],["./vizzu","/home/runner/work/panel/panel/panel/dist/lib/models/vizzu.js"],["./vtk","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/index.js"]],"dependency_map":[],"exported":[{"type":"bindings","bindings":[[null,"AcePlot"]],"module":"./ace"},{"type":"bindings","bindings":[[null,"AnyWidgetComponent"]],"module":"./anywidget_component"},{"type":"bindings","bindings":[[null,"Audio"]],"module":"./audio"},{"type":"bindings","bindings":[[null,"BrowserInfo"]],"module":"./browser"},{"type":"bindings","bindings":[[null,"Button"]],"module":"./button"},{"type":"bindings","bindings":[[null,"ButtonIcon"]],"module":"./button_icon"},{"type":"bindings","bindings":[[null,"ClickableIcon"]],"module":"./icon"},{"type":"bindings","bindings":[[null,"Card"]],"module":"./card"},{"type":"bindings","bindings":[[null,"CheckboxButtonGroup"]],"module":"./checkbox_button_group"},{"type":"bindings","bindings":[[null,"ChatAreaInput"]],"module":"./chatarea_input"},{"type":"bindings","bindings":[[null,"Column"]],"module":"./column"},{"type":"bindings","bindings":[[null,"CommManager"]],"module":"./comm_manager"},{"type":"bindings","bindings":[[null,"CustomSelect"]],"module":"./customselect"},{"type":"bindings","bindings":[[null,"CustomMultiSelect"]],"module":"./multiselect"},{"type":"bindings","bindings":[[null,"DataTabulator"]],"module":"./tabulator"},{"type":"bindings","bindings":[[null,"DatetimePicker"]],"module":"./datetime_picker"},{"type":"bindings","bindings":[[null,"DatetimeSlider"]],"module":"./datetime_slider"},{"type":"bindings","bindings":[[null,"DeckGLPlot"]],"module":"./deckgl"},{"type":"bindings","bindings":[[null,"DiscretePlayer"]],"module":"./discrete_player"},{"type":"bindings","bindings":[[null,"ECharts"]],"module":"./echarts"},{"type":"bindings","bindings":[[null,"Feed"]],"module":"./feed"},{"type":"bindings","bindings":[[null,"FileDownload"]],"module":"./file_download"},{"type":"bindings","bindings":[[null,"FileDropper"]],"module":"./file_dropper"},{"type":"bindings","bindings":[[null,"HTML"]],"module":"./html"},{"type":"bindings","bindings":[[null,"IPyWidget"]],"module":"./ipywidget"},{"type":"bindings","bindings":[[null,"JSON"]],"module":"./json"},{"type":"bindings","bindings":[[null,"JSONEditor"]],"module":"./jsoneditor"},{"type":"bindings","bindings":[[null,"KaTeX"]],"module":"./katex"},{"type":"bindings","bindings":[[null,"Location"]],"module":"./location"},{"type":"bindings","bindings":[[null,"MathJax"]],"module":"./mathjax"},{"type":"bindings","bindings":[[null,"Modal"]],"module":"./modal"},{"type":"bindings","bindings":[[null,"PDF"]],"module":"./pdf"},{"type":"bindings","bindings":[[null,"Perspective"]],"module":"./perspective"},{"type":"bindings","bindings":[[null,"Player"]],"module":"./player"},{"type":"bindings","bindings":[[null,"PlotlyPlot"]],"module":"./plotly"},{"type":"bindings","bindings":[[null,"Progress"]],"module":"./progress"},{"type":"bindings","bindings":[[null,"QuillInput"]],"module":"./quill"},{"type":"bindings","bindings":[[null,"RadioButtonGroup"]],"module":"./radio_button_group"},{"type":"bindings","bindings":[[null,"ReactComponent"]],"module":"./react_component"},{"type":"bindings","bindings":[[null,"ReactiveHTML"]],"module":"./reactive_html"},{"type":"bindings","bindings":[[null,"ReactiveESM"]],"module":"./reactive_esm"},{"type":"bindings","bindings":[[null,"SingleSelect"]],"module":"./singleselect"},{"type":"bindings","bindings":[[null,"SpeechToText"]],"module":"./speech_to_text"},{"type":"bindings","bindings":[[null,"State"]],"module":"./state"},{"type":"bindings","bindings":[[null,"Tabs"]],"module":"./tabs"},{"type":"bindings","bindings":[[null,"Terminal"]],"module":"./terminal"},{"type":"bindings","bindings":[[null,"TextAreaInput"]],"module":"./textarea_input"},{"type":"bindings","bindings":[[null,"TextInput"]],"module":"./text_input"},{"type":"bindings","bindings":[[null,"TextToSpeech"]],"module":"./text_to_speech"},{"type":"bindings","bindings":[[null,"TimePicker"]],"module":"./time_picker"},{"type":"bindings","bindings":[[null,"ToggleIcon"]],"module":"./toggle_icon"},{"type":"bindings","bindings":[[null,"TooltipIcon"]],"module":"./tooltip_icon"},{"type":"bindings","bindings":[[null,"TrendIndicator"]],"module":"./trend"},{"type":"bindings","bindings":[[null,"VegaPlot"]],"module":"./vega"},{"type":"bindings","bindings":[[null,"Video"]],"module":"./video"},{"type":"bindings","bindings":[[null,"VideoStream"]],"module":"./videostream"},{"type":"bindings","bindings":[[null,"VizzuChart"]],"module":"./vizzu"},{"type":"namespace","module":"./vtk"}],"externals":[],"shims":[]},"code":{"source":"/* models/index.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.VizzuChart = exports.VideoStream = exports.Video = exports.VegaPlot = exports.TrendIndicator = exports.TooltipIcon = exports.ToggleIcon = void 0;\n    const tslib_1 = require(\"tslib\");\n    var ace_1 = require(\"78ccb7a2c5\") /* ./ace */;\n    __esExport(\"AcePlot\", ace_1.AcePlot);\n    var anywidget_component_1 = require(\"1f663ffe94\") /* ./anywidget_component */;\n    __esExport(\"AnyWidgetComponent\", anywidget_component_1.AnyWidgetComponent);\n    var audio_1 = require(\"fd59c985b3\") /* ./audio */;\n    __esExport(\"Audio\", audio_1.Audio);\n    var browser_1 = require(\"5a16cc23e6\") /* ./browser */;\n    __esExport(\"BrowserInfo\", browser_1.BrowserInfo);\n    var button_1 = require(\"1db93211cd\") /* ./button */;\n    __esExport(\"Button\", button_1.Button);\n    var button_icon_1 = require(\"1738ddeb3a\") /* ./button_icon */;\n    __esExport(\"ButtonIcon\", button_icon_1.ButtonIcon);\n    var icon_1 = require(\"6c7fbea0ef\") /* ./icon */;\n    __esExport(\"ClickableIcon\", icon_1.ClickableIcon);\n    var card_1 = require(\"3684eee729\") /* ./card */;\n    __esExport(\"Card\", card_1.Card);\n    var checkbox_button_group_1 = require(\"51fbe9e2d0\") /* ./checkbox_button_group */;\n    __esExport(\"CheckboxButtonGroup\", checkbox_button_group_1.CheckboxButtonGroup);\n    var chatarea_input_1 = require(\"27a077673d\") /* ./chatarea_input */;\n    __esExport(\"ChatAreaInput\", chatarea_input_1.ChatAreaInput);\n    var column_1 = require(\"b273e5b2fb\") /* ./column */;\n    __esExport(\"Column\", column_1.Column);\n    var comm_manager_1 = require(\"1bec1b1fcc\") /* ./comm_manager */;\n    __esExport(\"CommManager\", comm_manager_1.CommManager);\n    var customselect_1 = require(\"92bbd30bd1\") /* ./customselect */;\n    __esExport(\"CustomSelect\", customselect_1.CustomSelect);\n    var multiselect_1 = require(\"27b5580835\") /* ./multiselect */;\n    __esExport(\"CustomMultiSelect\", multiselect_1.CustomMultiSelect);\n    var tabulator_1 = require(\"03df1ee2df\") /* ./tabulator */;\n    __esExport(\"DataTabulator\", tabulator_1.DataTabulator);\n    var datetime_picker_1 = require(\"100965d6f3\") /* ./datetime_picker */;\n    __esExport(\"DatetimePicker\", datetime_picker_1.DatetimePicker);\n    var datetime_slider_1 = require(\"c97cc0eade\") /* ./datetime_slider */;\n    __esExport(\"DatetimeSlider\", datetime_slider_1.DatetimeSlider);\n    var deckgl_1 = require(\"d58ba73420\") /* ./deckgl */;\n    __esExport(\"DeckGLPlot\", deckgl_1.DeckGLPlot);\n    var discrete_player_1 = require(\"0dca2cd4f6\") /* ./discrete_player */;\n    __esExport(\"DiscretePlayer\", discrete_player_1.DiscretePlayer);\n    var echarts_1 = require(\"1da56f3c52\") /* ./echarts */;\n    __esExport(\"ECharts\", echarts_1.ECharts);\n    var feed_1 = require(\"f9c84aaf3d\") /* ./feed */;\n    __esExport(\"Feed\", feed_1.Feed);\n    var file_download_1 = require(\"84a13dddfb\") /* ./file_download */;\n    __esExport(\"FileDownload\", file_download_1.FileDownload);\n    var file_dropper_1 = require(\"8531319d94\") /* ./file_dropper */;\n    __esExport(\"FileDropper\", file_dropper_1.FileDropper);\n    var html_1 = require(\"4c04683fdc\") /* ./html */;\n    __esExport(\"HTML\", html_1.HTML);\n    var ipywidget_1 = require(\"8a8089cbf3\") /* ./ipywidget */;\n    __esExport(\"IPyWidget\", ipywidget_1.IPyWidget);\n    var json_1 = require(\"245cd3cfde\") /* ./json */;\n    __esExport(\"JSON\", json_1.JSON);\n    var jsoneditor_1 = require(\"5b9fdb9011\") /* ./jsoneditor */;\n    __esExport(\"JSONEditor\", jsoneditor_1.JSONEditor);\n    var katex_1 = require(\"f672d71a9f\") /* ./katex */;\n    __esExport(\"KaTeX\", katex_1.KaTeX);\n    var location_1 = require(\"9012b81346\") /* ./location */;\n    __esExport(\"Location\", location_1.Location);\n    var mathjax_1 = require(\"d889a68424\") /* ./mathjax */;\n    __esExport(\"MathJax\", mathjax_1.MathJax);\n    var modal_1 = require(\"8c62aa80d9\") /* ./modal */;\n    __esExport(\"Modal\", modal_1.Modal);\n    var pdf_1 = require(\"f87ad1873c\") /* ./pdf */;\n    __esExport(\"PDF\", pdf_1.PDF);\n    var perspective_1 = require(\"29a0b0da9a\") /* ./perspective */;\n    __esExport(\"Perspective\", perspective_1.Perspective);\n    var player_1 = require(\"96e805ccb5\") /* ./player */;\n    __esExport(\"Player\", player_1.Player);\n    var plotly_1 = require(\"7d9124b744\") /* ./plotly */;\n    __esExport(\"PlotlyPlot\", plotly_1.PlotlyPlot);\n    var progress_1 = require(\"b1f4d68596\") /* ./progress */;\n    __esExport(\"Progress\", progress_1.Progress);\n    var quill_1 = require(\"f6d86c7342\") /* ./quill */;\n    __esExport(\"QuillInput\", quill_1.QuillInput);\n    var radio_button_group_1 = require(\"25e2d7c208\") /* ./radio_button_group */;\n    __esExport(\"RadioButtonGroup\", radio_button_group_1.RadioButtonGroup);\n    var react_component_1 = require(\"413c9b5023\") /* ./react_component */;\n    __esExport(\"ReactComponent\", react_component_1.ReactComponent);\n    var reactive_html_1 = require(\"d5752cda5a\") /* ./reactive_html */;\n    __esExport(\"ReactiveHTML\", reactive_html_1.ReactiveHTML);\n    var reactive_esm_1 = require(\"e27ba47db3\") /* ./reactive_esm */;\n    __esExport(\"ReactiveESM\", reactive_esm_1.ReactiveESM);\n    var singleselect_1 = require(\"4155401209\") /* ./singleselect */;\n    __esExport(\"SingleSelect\", singleselect_1.SingleSelect);\n    var speech_to_text_1 = require(\"5ac2cab0ab\") /* ./speech_to_text */;\n    __esExport(\"SpeechToText\", speech_to_text_1.SpeechToText);\n    var state_1 = require(\"92822cb73a\") /* ./state */;\n    __esExport(\"State\", state_1.State);\n    var tabs_1 = require(\"fffb4344f7\") /* ./tabs */;\n    __esExport(\"Tabs\", tabs_1.Tabs);\n    var terminal_1 = require(\"a961b5ae5e\") /* ./terminal */;\n    __esExport(\"Terminal\", terminal_1.Terminal);\n    var textarea_input_1 = require(\"b7d595d74a\") /* ./textarea_input */;\n    __esExport(\"TextAreaInput\", textarea_input_1.TextAreaInput);\n    var text_input_1 = require(\"8be416b160\") /* ./text_input */;\n    __esExport(\"TextInput\", text_input_1.TextInput);\n    var text_to_speech_1 = require(\"a04eb51988\") /* ./text_to_speech */;\n    __esExport(\"TextToSpeech\", text_to_speech_1.TextToSpeech);\n    var time_picker_1 = require(\"1afcab4e45\") /* ./time_picker */;\n    __esExport(\"TimePicker\", time_picker_1.TimePicker);\n    var toggle_icon_1 = require(\"ad985f285e\") /* ./toggle_icon */;\n    __esExport(\"ToggleIcon\", toggle_icon_1.ToggleIcon);\n    var tooltip_icon_1 = require(\"ae3a172647\") /* ./tooltip_icon */;\n    __esExport(\"TooltipIcon\", tooltip_icon_1.TooltipIcon);\n    var trend_1 = require(\"29d55a28a9\") /* ./trend */;\n    __esExport(\"TrendIndicator\", trend_1.TrendIndicator);\n    var vega_1 = require(\"22dbf7c070\") /* ./vega */;\n    __esExport(\"VegaPlot\", vega_1.VegaPlot);\n    var video_1 = require(\"79dc37b888\") /* ./video */;\n    __esExport(\"Video\", video_1.Video);\n    var videostream_1 = require(\"f8afc4e661\") /* ./videostream */;\n    __esExport(\"VideoStream\", videostream_1.VideoStream);\n    var vizzu_1 = require(\"1f7bc1f95b\") /* ./vizzu */;\n    __esExport(\"VizzuChart\", vizzu_1.VizzuChart);\n    tslib_1.__exportStar(require(\"c51f25e2a7\") /* ./vtk */, exports);\n}\n","min_source":"function _(e,t,a,o,c){o(),a.VizzuChart=a.VideoStream=a.Video=a.VegaPlot=a.TrendIndicator=a.TooltipIcon=a.ToggleIcon=void 0;const d=e(\"tslib\");c(\"AcePlot\",e(\"78ccb7a2c5\").AcePlot),c(\"AnyWidgetComponent\",e(\"1f663ffe94\").AnyWidgetComponent),c(\"Audio\",e(\"fd59c985b3\").Audio),c(\"BrowserInfo\",e(\"5a16cc23e6\").BrowserInfo),c(\"Button\",e(\"1db93211cd\").Button),c(\"ButtonIcon\",e(\"1738ddeb3a\").ButtonIcon),c(\"ClickableIcon\",e(\"6c7fbea0ef\").ClickableIcon),c(\"Card\",e(\"3684eee729\").Card),c(\"CheckboxButtonGroup\",e(\"51fbe9e2d0\").CheckboxButtonGroup),c(\"ChatAreaInput\",e(\"27a077673d\").ChatAreaInput),c(\"Column\",e(\"b273e5b2fb\").Column),c(\"CommManager\",e(\"1bec1b1fcc\").CommManager),c(\"CustomSelect\",e(\"92bbd30bd1\").CustomSelect),c(\"CustomMultiSelect\",e(\"27b5580835\").CustomMultiSelect),c(\"DataTabulator\",e(\"03df1ee2df\").DataTabulator),c(\"DatetimePicker\",e(\"100965d6f3\").DatetimePicker),c(\"DatetimeSlider\",e(\"c97cc0eade\").DatetimeSlider),c(\"DeckGLPlot\",e(\"d58ba73420\").DeckGLPlot),c(\"DiscretePlayer\",e(\"0dca2cd4f6\").DiscretePlayer),c(\"ECharts\",e(\"1da56f3c52\").ECharts),c(\"Feed\",e(\"f9c84aaf3d\").Feed),c(\"FileDownload\",e(\"84a13dddfb\").FileDownload),c(\"FileDropper\",e(\"8531319d94\").FileDropper),c(\"HTML\",e(\"4c04683fdc\").HTML),c(\"IPyWidget\",e(\"8a8089cbf3\").IPyWidget),c(\"JSON\",e(\"245cd3cfde\").JSON),c(\"JSONEditor\",e(\"5b9fdb9011\").JSONEditor),c(\"KaTeX\",e(\"f672d71a9f\").KaTeX),c(\"Location\",e(\"9012b81346\").Location),c(\"MathJax\",e(\"d889a68424\").MathJax),c(\"Modal\",e(\"8c62aa80d9\").Modal),c(\"PDF\",e(\"f87ad1873c\").PDF),c(\"Perspective\",e(\"29a0b0da9a\").Perspective),c(\"Player\",e(\"96e805ccb5\").Player),c(\"PlotlyPlot\",e(\"7d9124b744\").PlotlyPlot),c(\"Progress\",e(\"b1f4d68596\").Progress),c(\"QuillInput\",e(\"f6d86c7342\").QuillInput),c(\"RadioButtonGroup\",e(\"25e2d7c208\").RadioButtonGroup),c(\"ReactComponent\",e(\"413c9b5023\").ReactComponent),c(\"ReactiveHTML\",e(\"d5752cda5a\").ReactiveHTML),c(\"ReactiveESM\",e(\"e27ba47db3\").ReactiveESM),c(\"SingleSelect\",e(\"4155401209\").SingleSelect),c(\"SpeechToText\",e(\"5ac2cab0ab\").SpeechToText),c(\"State\",e(\"92822cb73a\").State),c(\"Tabs\",e(\"fffb4344f7\").Tabs),c(\"Terminal\",e(\"a961b5ae5e\").Terminal),c(\"TextAreaInput\",e(\"b7d595d74a\").TextAreaInput),c(\"TextInput\",e(\"8be416b160\").TextInput),c(\"TextToSpeech\",e(\"a04eb51988\").TextToSpeech),c(\"TimePicker\",e(\"1afcab4e45\").TimePicker),c(\"ToggleIcon\",e(\"ad985f285e\").ToggleIcon),c(\"TooltipIcon\",e(\"ae3a172647\").TooltipIcon),c(\"TrendIndicator\",e(\"29d55a28a9\").TrendIndicator),c(\"VegaPlot\",e(\"22dbf7c070\").VegaPlot),c(\"Video\",e(\"79dc37b888\").Video),c(\"VideoStream\",e(\"f8afc4e661\").VideoStream),c(\"VizzuChart\",e(\"1f7bc1f95b\").VizzuChart),d.__exportStar(e(\"c51f25e2a7\"),a)}\n//# sourceMappingURL=index.min.js.map","min_map":"{\"version\":3,\"file\":\"index.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"VizzuChart\",\"VideoStream\",\"Video\",\"VegaPlot\",\"TrendIndicator\",\"TooltipIcon\",\"ToggleIcon\",\"tslib_1\",\"AcePlot\",\"AnyWidgetComponent\",\"Audio\",\"BrowserInfo\",\"Button\",\"ButtonIcon\",\"ClickableIcon\",\"Card\",\"CheckboxButtonGroup\",\"ChatAreaInput\",\"Column\",\"CommManager\",\"CustomSelect\",\"CustomMultiSelect\",\"DataTabulator\",\"DatetimePicker\",\"DatetimeSlider\",\"DeckGLPlot\",\"DiscretePlayer\",\"ECharts\",\"Feed\",\"FileDownload\",\"FileDropper\",\"HTML\",\"IPyWidget\",\"JSON\",\"JSONEditor\",\"KaTeX\",\"Location\",\"MathJax\",\"Modal\",\"PDF\",\"Perspective\",\"Player\",\"PlotlyPlot\",\"Progress\",\"QuillInput\",\"RadioButtonGroup\",\"ReactComponent\",\"ReactiveHTML\",\"ReactiveESM\",\"SingleSelect\",\"SpeechToText\",\"State\",\"Tabs\",\"Terminal\",\"TextAreaInput\",\"TextInput\",\"TextToSpeech\",\"TimePicker\",\"__exportStar\"],\"sources\":[\"0\"],\"mappings\":\"AAAsB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACnED,IACAD,EAAQG,WAAaH,EAAQI,YAAcJ,EAAQK,MAAQL,EAAQM,SAAWN,EAAQO,eAAiBP,EAAQQ,YAAcR,EAAQS,gBAAa,EAClJ,MAAMC,EAAUZ,EAAQ,SAExBI,EAAW,UADCJ,EAAQ,cACQa,SAE5BT,EAAW,qBADiBJ,EAAQ,cACmBc,oBAEvDV,EAAW,QADGJ,EAAQ,cACMe,OAE5BX,EAAW,cADKJ,EAAQ,cACYgB,aAEpCZ,EAAW,SADIJ,EAAQ,cACOiB,QAE9Bb,EAAW,aADSJ,EAAQ,cACWkB,YAEvCd,EAAW,gBADEJ,EAAQ,cACcmB,eAEnCf,EAAW,OADEJ,EAAQ,cACKoB,MAE1BhB,EAAW,sBADmBJ,EAAQ,cACoBqB,qBAE1DjB,EAAW,gBADYJ,EAAQ,cACcsB,eAE7ClB,EAAW,SADIJ,EAAQ,cACOuB,QAE9BnB,EAAW,cADUJ,EAAQ,cACYwB,aAEzCpB,EAAW,eADUJ,EAAQ,cACayB,cAE1CrB,EAAW,oBADSJ,EAAQ,c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Q,cACc2D,eAE7CvD,EAAW,YADQJ,EAAQ,cACU4D,WAErCxD,EAAW,eADYJ,EAAQ,cACa6D,cAE5CzD,EAAW,aADSJ,EAAQ,cACW8D,YAEvC1D,EAAW,aADSJ,EAAQ,cACWW,YAEvCP,EAAW,cADUJ,EAAQ,cACYU,aAEzCN,EAAW,iBADGJ,EAAQ,cACeS,gBAErCL,EAAW,WADEJ,EAAQ,cACSQ,UAE9BJ,EAAW,QADGJ,EAAQ,cACMO,OAE5BH,EAAW,cADSJ,EAAQ,cACYM,aAExCF,EAAW,aADGJ,EAAQ,cACWK,YACjCO,EAAQmD,aAAa/D,EAAQ,cAA2BE,EAC5D\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/ace.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/ace.js","canonical":"models/ace","resolution":"ESM","id":"78ccb7a2c5","hash":"78ccb7a2c50ee0b21a5adbe3b099fb1060f1f4437079877083efffa85077b3a4","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AcePlot = exports.AcePlotView = void 0;\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst layout_1 = require(\"./layout\");\nconst util_1 = require(\"./util\");\nclass AcePlotView extends layout_1.HTMLBoxView {\n    connect_signals() {\n        super.connect_signals();\n        const { code, theme, language, filename, print_margin, annotations, soft_tabs, indent, readonly } = this.model.properties;\n        this.on_change(code, () => this._update_code_from_model());\n        this.on_change(theme, () => this._update_theme());\n        this.on_change(language, () => this._update_language());\n        this.on_change(filename, () => this._update_filename());\n        this.on_change(print_margin, () => this._update_print_margin());\n        this.on_change(annotations, () => this._add_annotations());\n        this.on_change(indent, () => this._editor.setOptions({ tabSize: this.model.indent }));\n        this.on_change(soft_tabs, () => this._editor.setOptions({ useSoftTabs: this.model.soft_tabs }));\n        this.on_change(readonly, () => {\n            this._editor.setReadOnly(this.model.readonly);\n        });\n    }\n    render() {\n        super.render();\n        this._container = (0, dom_1.div)({\n            id: (0, util_1.ID)(),\n            style: {\n                width: \"100%\",\n                height: \"100%\",\n                zIndex: \"0\",\n            },\n        });\n        this.shadow_el.append(this._container);\n        this._container.textContent = this.model.code;\n        this._editor = ace.edit(this._container);\n        this._editor.renderer.attachToShadowRoot();\n        this._langTools = ace.require(\"ace/ext/language_tools\");\n        this._modelist = ace.require(\"ace/ext/modelist\");\n        this._editor.setOptions({\n            enableBasicAutocompletion: true,\n            tabSize: this.model.indent,\n            useSoftTabs: this.model.soft_tabs,\n            enableSnippets: true,\n            fontFamily: \"monospace\", //hack for cursor position\n        });\n        this._update_theme();\n        this._update_filename();\n        this._update_language();\n        this._editor.setReadOnly(this.model.readonly);\n        this._editor.setShowPrintMargin(this.model.print_margin);\n        // if on keyup, update code from editor\n        if (this.model.on_keyup) {\n            this._editor.on(\"change\", () => this._update_code_from_editor());\n        }\n        else {\n            this._editor.on(\"blur\", () => this._update_code_from_editor());\n            this._editor.commands.addCommand({\n                name: \"updateCodeFromEditor\",\n                bindKey: { win: \"Ctrl-Enter\", mac: \"Command-Enter\" },\n                exec: () => {\n                    this._update_code_from_editor();\n                },\n            });\n        }\n        this._editor.on(\"change\", () => this._update_code_input_from_editor());\n    }\n    _update_code_from_model() {\n        if (this._editor && this._editor.getValue() != this.model.code) {\n            // Save the current cursor position\n            const cursorPosition = this._editor.getCursorPosition();\n            const scrollTop = this._editor.session.getScrollTop();\n            const scrollLeft = this._editor.session.getScrollLeft();\n            // Update the value without selecting all text\n            // The second parameter (-1) keeps cursor where it is\n            this._editor.setValue(this.model.code, -1);\n            // Restore cursor position only if it's valid in the new content\n            const newRowCount = this._editor.session.getLength();\n            if (cursorPosition.row < newRowCount) {\n                const newRowLength = this._editor.session.getLine(cursorPosition.row).length;\n                const newColumn = Math.min(cursorPosition.column, newRowLength);\n                this._editor.moveCursorToPosition({ row: cursorPosition.row, column: newColumn });\n            }\n            else {\n                // If the cursor was beyond the new document length, move to end\n                this._editor.moveCursorToPosition({ row: newRowCount - 1, column: this._editor.session.getLine(newRowCount - 1).length });\n            }\n            this._editor.clearSelection();\n            this._editor.session.setScrollTop(scrollTop);\n            this._editor.session.setScrollLeft(scrollLeft);\n        }\n    }\n    _update_print_margin() {\n        this._editor.setShowPrintMargin(this.model.print_margin);\n    }\n    _update_code_from_editor() {\n        if (this._editor.getValue() != this.model.code) {\n            this.model.code = this._editor.getValue();\n        }\n    }\n    _update_code_input_from_editor() {\n        if (this._editor.getValue() != this.model.code_input) {\n            this.model.code_input = this._editor.getValue();\n        }\n    }\n    _update_theme() {\n        if (this._editor) {\n            this._editor.setTheme(`ace/theme/${this.model.theme}`);\n        }\n    }\n    _update_filename() {\n        if (this.model.filename) {\n            const mode = this._modelist.getModeForPath(this.model.filename).mode;\n            this.model.language = mode.slice(9);\n        }\n    }\n    _update_language() {\n        if (this.model.language != null) {\n            this._editor.session.setMode(`ace/mode/${this.model.language}`);\n        }\n    }\n    _add_annotations() {\n        this._editor.session.setAnnotations(this.model.annotations);\n    }\n    after_layout() {\n        super.after_layout();\n        if (this._editor !== undefined) {\n            this._editor.resize();\n        }\n    }\n}\nexports.AcePlotView = AcePlotView;\nAcePlotView.__name__ = \"AcePlotView\";\nclass AcePlot extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.AcePlot = AcePlot;\n_a = AcePlot;\nAcePlot.__name__ = \"AcePlot\";\nAcePlot.__module__ = \"panel.models.ace\";\n(() => {\n    _a.prototype.default_view = AcePlotView;\n    _a.define(({ Any, Bool, Int, List, Str, Nullable }) => ({\n        annotations: [List(Any), []],\n        code: [Str, \"\"],\n        code_input: [Str, \"\"],\n        filename: [Nullable(Str), null],\n        indent: [Int, 4],\n        language: [Str, \"\"],\n        on_keyup: [Bool, true],\n        print_margin: [Bool, false],\n        theme: [Str, \"github_light_default\"],\n        readonly: [Bool, false],\n        soft_tabs: [Bool, false],\n    }));\n    _a.override({\n        height: 300,\n        width: 300,\n    });\n})();\n//# sourceMappingURL=ace.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"],["./util","/home/runner/work/panel/panel/panel/dist/lib/models/util.js"]],"dependency_map":[],"exported":[{"type":"named","name":"AcePlotView"},{"type":"named","name":"AcePlot"}],"externals":[],"shims":[]},"code":{"source":"/* models/ace.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    const util_1 = require(\"a3669a897a\") /* ./util */;\n    class AcePlotView extends layout_1.HTMLBoxView {\n        connect_signals() {\n            super.connect_signals();\n            const { code, theme, language, filename, print_margin, annotations, soft_tabs, indent, readonly } = this.model.properties;\n            this.on_change(code, () => this._update_code_from_model());\n            this.on_change(theme, () => this._update_theme());\n            this.on_change(language, () => this._update_language());\n            this.on_change(filename, () => this._update_filename());\n            this.on_change(print_margin, () => this._update_print_margin());\n            this.on_change(annotations, () => this._add_annotations());\n            this.on_change(indent, () => this._editor.setOptions({ tabSize: this.model.indent }));\n            this.on_change(soft_tabs, () => this._editor.setOptions({ useSoftTabs: this.model.soft_tabs }));\n            this.on_change(readonly, () => {\n                this._editor.setReadOnly(this.model.readonly);\n            });\n        }\n        render() {\n            super.render();\n            this._container = (0, dom_1.div)({\n                id: (0, util_1.ID)(),\n                style: {\n                    width: \"100%\",\n                    height: \"100%\",\n                    zIndex: \"0\",\n                },\n            });\n            this.shadow_el.append(this._container);\n            this._container.textContent = this.model.code;\n            this._editor = ace.edit(this._container);\n            this._editor.renderer.attachToShadowRoot();\n            this._langTools = ace.require(\"ace/ext/language_tools\");\n            this._modelist = ace.require(\"ace/ext/modelist\");\n            this._editor.setOptions({\n                enableBasicAutocompletion: true,\n                tabSize: this.model.indent,\n                useSoftTabs: this.model.soft_tabs,\n                enableSnippets: true,\n                fontFamily: \"monospace\", //hack for cursor position\n            });\n            this._update_theme();\n            this._update_filename();\n            this._update_language();\n            this._editor.setReadOnly(this.model.readonly);\n            this._editor.setShowPrintMargin(this.model.print_margin);\n            // if on keyup, update code from editor\n            if (this.model.on_keyup) {\n                this._editor.on(\"change\", () => this._update_code_from_editor());\n            }\n            else {\n                this._editor.on(\"blur\", () => this._update_code_from_editor());\n                this._editor.commands.addCommand({\n                    name: \"updateCodeFromEditor\",\n                    bindKey: { win: \"Ctrl-Enter\", mac: \"Command-Enter\" },\n                    exec: () => {\n                        this._update_code_from_editor();\n                    },\n                });\n            }\n            this._editor.on(\"change\", () => this._update_code_input_from_editor());\n        }\n        _update_code_from_model() {\n            if (this._editor && this._editor.getValue() != this.model.code) {\n                // Save the current cursor position\n                const cursorPosition = this._editor.getCursorPosition();\n                const scrollTop = this._editor.session.getScrollTop();\n                const scrollLeft = this._editor.session.getScrollLeft();\n                // Update the value without selecting all text\n                // The second parameter (-1) keeps cursor where it is\n                this._editor.setValue(this.model.code, -1);\n                // Restore cursor position only if it's valid in the new content\n                const newRowCount = this._editor.session.getLength();\n                if (cursorPosition.row < newRowCount) {\n                    const newRowLength = this._editor.session.getLine(cursorPosition.row).length;\n                    const newColumn = Math.min(cursorPosition.column, newRowLength);\n                    this._editor.moveCursorToPosition({ row: cursorPosition.row, column: newColumn });\n                }\n                else {\n                    // If the cursor was beyond the new document length, move to end\n                    this._editor.moveCursorToPosition({ row: newRowCount - 1, column: this._editor.session.getLine(newRowCount - 1).length });\n                }\n                this._editor.clearSelection();\n                this._editor.session.setScrollTop(scrollTop);\n                this._editor.session.setScrollLeft(scrollLeft);\n            }\n        }\n        _update_print_margin() {\n            this._editor.setShowPrintMargin(this.model.print_margin);\n        }\n        _update_code_from_editor() {\n            if (this._editor.getValue() != this.model.code) {\n                this.model.code = this._editor.getValue();\n            }\n        }\n        _update_code_input_from_editor() {\n            if (this._editor.getValue() != this.model.code_input) {\n                this.model.code_input = this._editor.getValue();\n            }\n        }\n        _update_theme() {\n            if (this._editor) {\n                this._editor.setTheme(`ace/theme/${this.model.theme}`);\n            }\n        }\n        _update_filename() {\n            if (this.model.filename) {\n                const mode = this._modelist.getModeForPath(this.model.filename).mode;\n                this.model.language = mode.slice(9);\n            }\n        }\n        _update_language() {\n            if (this.model.language != null) {\n                this._editor.session.setMode(`ace/mode/${this.model.language}`);\n            }\n        }\n        _add_annotations() {\n            this._editor.session.setAnnotations(this.model.annotations);\n        }\n        after_layout() {\n            super.after_layout();\n            if (this._editor !== undefined) {\n                this._editor.resize();\n            }\n        }\n    }\n    exports.AcePlotView = AcePlotView;\n    AcePlotView.__name__ = \"AcePlotView\";\n    class AcePlot extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.AcePlot = AcePlot;\n    _a = AcePlot;\n    AcePlot.__name__ = \"AcePlot\";\n    AcePlot.__module__ = \"panel.models.ace\";\n    (() => {\n        _a.prototype.default_view = AcePlotView;\n        _a.define(({ Any, Bool, Int, List, Str, Nullable }) => ({\n            annotations: [List(Any), []],\n            code: [Str, \"\"],\n            code_input: [Str, \"\"],\n            filename: [Nullable(Str), null],\n            indent: [Int, 4],\n            language: [Str, \"\"],\n            on_keyup: [Bool, true],\n            print_margin: [Bool, false],\n            theme: [Str, \"github_light_default\"],\n            readonly: [Bool, false],\n            soft_tabs: [Bool, false],\n        }));\n        _a.override({\n            height: 300,\n            width: 300,\n        });\n    })();\n}\n","min_source":"function _(e,t,i,o,s){var n;o();const d=e(\"@bokehjs/core/dom\"),_=e(\"dab42e6dad\"),a=e(\"a3669a897a\");class h extends _.HTMLBoxView{connect_signals(){super.connect_signals();const{code:e,theme:t,language:i,filename:o,print_margin:s,annotations:n,soft_tabs:d,indent:_,readonly:a}=this.model.properties;this.on_change(e,(()=>this._update_code_from_model())),this.on_change(t,(()=>this._update_theme())),this.on_change(i,(()=>this._update_language())),this.on_change(o,(()=>this._update_filename())),this.on_change(s,(()=>this._update_print_margin())),this.on_change(n,(()=>this._add_annotations())),this.on_change(_,(()=>this._editor.setOptions({tabSize:this.model.indent}))),this.on_change(d,(()=>this._editor.setOptions({useSoftTabs:this.model.soft_tabs}))),this.on_change(a,(()=>{this._editor.setReadOnly(this.model.readonly)}))}render(){super.render(),this._container=(0,d.div)({id:(0,a.ID)(),style:{width:\"100%\",height:\"100%\",zIndex:\"0\"}}),this.shadow_el.append(this._container),this._container.textContent=this.model.code,this._editor=ace.edit(this._container),this._editor.renderer.attachToShadowRoot(),this._langTools=ace.require(\"ace/ext/language_tools\"),this._modelist=ace.require(\"ace/ext/modelist\"),this._editor.setOptions({enableBasicAutocompletion:!0,tabSize:this.model.indent,useSoftTabs:this.model.soft_tabs,enableSnippets:!0,fontFamily:\"monospace\"}),this._update_theme(),this._update_filename(),this._update_language(),this._editor.setReadOnly(this.model.readonly),this._editor.setShowPrintMargin(this.model.print_margin),this.model.on_keyup?this._editor.on(\"change\",(()=>this._update_code_from_editor())):(this._editor.on(\"blur\",(()=>this._update_code_from_editor())),this._editor.commands.addCommand({name:\"updateCodeFromEditor\",bindKey:{win:\"Ctrl-Enter\",mac:\"Command-Enter\"},exec:()=>{this._update_code_from_editor()}})),this._editor.on(\"change\",(()=>this._update_code_input_from_editor()))}_update_code_from_model(){if(this._editor&&this._editor.getValue()!=this.model.code){const e=this._editor.getCursorPosition(),t=this._editor.session.getScrollTop(),i=this._editor.session.getScrollLeft();this._editor.setValue(this.model.code,-1);const o=this._editor.session.getLength();if(e.row<o){const t=this._editor.session.getLine(e.row).length,i=Math.min(e.column,t);this._editor.moveCursorToPosition({row:e.row,column:i})}else this._editor.moveCursorToPosition({row:o-1,column:this._editor.session.getLine(o-1).length});this._editor.clearSelection(),this._editor.session.setScrollTop(t),this._editor.session.setScrollLeft(i)}}_update_print_margin(){this._editor.setShowPrintMargin(this.model.print_margin)}_update_code_from_editor(){this._editor.getValue()!=this.model.code&&(this.model.code=this._editor.getValue())}_update_code_input_from_editor(){this._editor.getValue()!=this.model.code_input&&(this.model.code_input=this._editor.getValue())}_update_theme(){this._editor&&this._editor.setTheme(`ace/theme/${this.model.theme}`)}_update_filename(){if(this.model.filename){const e=this._modelist.getModeForPath(this.model.filename).mode;this.model.language=e.slice(9)}}_update_language(){null!=this.model.language&&this._editor.session.setMode(`ace/mode/${this.model.language}`)}_add_annotations(){this._editor.session.setAnnotations(this.model.annotations)}after_layout(){super.after_layout(),void 0!==this._editor&&this._editor.resize()}}i.AcePlotView=h,h.__name__=\"AcePlotView\";class r extends _.HTMLBox{constructor(e){super(e)}}i.AcePlot=r,n=r,r.__name__=\"AcePlot\",r.__module__=\"panel.models.ace\",n.prototype.default_view=h,n.define((({Any:e,Bool:t,Int:i,List:o,Str:s,Nullable:n})=>({annotations:[o(e),[]],code:[s,\"\"],code_input:[s,\"\"],filename:[n(s),null],indent:[i,4],language:[s,\"\"],on_keyup:[t,!0],print_margin:[t,!1],theme:[s,\"github_light_default\"],readonly:[t,!1],soft_tabs:[t,!1]}))),n.override({height:300,width:300})}\n//# sourceMappingURL=ace.min.js.map","min_map":"{\"version\":3,\"file\":\"ace.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"dom_1\",\"layout_1\",\"util_1\",\"AcePlotView\",\"HTMLBoxView\",\"connect_signals\",\"super\",\"code\",\"theme\",\"language\",\"filename\",\"print_margin\",\"annotations\",\"soft_tabs\",\"indent\",\"readonly\",\"this\",\"model\",\"properties\",\"on_change\",\"_update_code_from_model\",\"_update_theme\",\"_update_language\",\"_update_filename\",\"_update_print_margin\",\"_add_annotations\",\"_editor\",\"setOptions\",\"tabSize\",\"useSoftTabs\",\"setReadOnly\",\"render\",\"_container\",\"div\",\"id\",\"ID\",\"style\",\"width\",\"height\",\"zIndex\",\"shadow_el\",\"append\",\"textContent\",\"ace\",\"edit\",\"renderer\",\"attachToShadowRoot\",\"_langTools\",\"_modelist\",\"enableBasicAutocompletion\",\"enableSnippets\",\"fontFamily\",\"setShowPrintMargin\",\"on_keyup\",\"on\",\"_update_code_from_editor\",\"commands\",\"addCommand\",\"name\",\"bindKey\",\"win\",\"mac\",\"exec\",\"_update_code_input_from_editor\",\"getValue\",\"cursorPosition\",\"getCursorPosition\",\"scrollTop\",\"session\",\"getScrollTop\",\"scrollLeft\",\"getScrollLeft\",\"setValue\",\"newRowCount\",\"getLength\",\"row\",\"newRowLength\",\"getLine\",\"length\",\"newColumn\",\"Math\",\"min\",\"column\",\"moveCursorToPosition\",\"clearSelection\",\"setScrollTop\",\"setScrollLeft\",\"code_input\",\"setTheme\",\"mode\",\"getModeForPath\",\"slice\",\"setMode\",\"setAnnotations\",\"after_layout\",\"undefined\",\"resize\",\"__name__\",\"AcePlot\",\"HTMLBox\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Any\",\"Bool\",\"Int\",\"List\",\"Str\",\"Nullable\",\"override\"],\"sources\":[\"0\"],\"mappings\":\"AAAoB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACjE,IAAIC,EACJF,IACA,MAAMG,EAAQN,EAAQ,qBAChBO,EAAWP,EAAQ,cACnBQ,EAASR,EAAQ,cACvB,MAAMS,UAAoBF,EAASG,YAC/B,eAAAC,GACIC,MAAMD,kBACN,MAAME,KAAEA,EAAIC,MAAEA,EAAKC,SAAEA,EAAQC,SAAEA,EAAQC,aAAEA,EAAYC,YAAEA,EAAWC,UAAEA,EAASC,OAAEA,EAAMC,SAAEA,GAAaC,KAAKC,MAAMC,WAC/GF,KAAKG,UAAUZ,GAAM,IAAMS,KAAKI,4BAChCJ,KAAKG,UAAUX,GAAO,IAAMQ,KAAKK,kBACjCL,KAAKG,UAAUV,GAAU,IAAMO,KAAKM,qBACpCN,KAAKG,UAAUT,GAAU,IAAMM,KAAKO,qBACpCP,KAAKG,UAAUR,GAAc,IAAMK,KAAKQ,yBACxCR,KAAKG,UAAUP,GAAa,IAAMI,KAAKS,qBACvCT,KAAKG,UAAUL,GAAQ,IAAME,KAAKU,QAAQC,WAAW,CAAEC,QAASZ,KAAKC,MAAMH,WA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AWgF,EAAKE,MAAM,EACrC,CACJ,CACA,gBAAArE,GAC+B,MAAvBN,KAAKC,MAAMR,UACXO,KAAKU,QAAQ0C,QAAQwB,QAAQ,YAAY5E,KAAKC,MAAMR,WAE5D,CACA,gBAAAgB,GACIT,KAAKU,QAAQ0C,QAAQyB,eAAe7E,KAAKC,MAAML,YACnD,CACA,YAAAkF,GACIxF,MAAMwF,oBACeC,IAAjB/E,KAAKU,SACLV,KAAKU,QAAQsE,QAErB,EAEJpG,EAAQO,YAAcA,EACtBA,EAAY8F,SAAW,cACvB,MAAMC,UAAgBjG,EAASkG,QAC3B,WAAAC,CAAYC,GACR/F,MAAM+F,EACV,EAEJzG,EAAQsG,QAAUA,EAClBnG,EAAKmG,EACLA,EAAQD,SAAW,UACnBC,EAAQI,WAAa,mBAEjBvG,EAAGwG,UAAUC,aAAerG,EAC5BJ,EAAG0G,QAAO,EAAGC,MAAKC,OAAMC,MAAKC,OAAMC,MAAKC,eAAe,CACnDnG,YAAa,CAACiG,EAAKH,GAAM,IACzBnG,KAAM,CAACuG,EAAK,IACZvB,WAAY,CAACuB,EAAK,IAClBpG,SAAU,CAACqG,EAASD,GAAM,MAC1BhG,OAAQ,CAAC8F,EAAK,GACdnG,SAAU,CAACqG,EAAK,IAChBzD,SAAU,CAACsD,GAAM,GACjBhG,aAAc,CAACgG,GAAM,GACrBnG,MAAO,CAACsG,EAAK,wBACb/F,SAAU,CAAC4F,GAAM,GACjB9F,UAAW,CAAC8F,GAAM,OAEtB5G,EAAGiH,SAAS,CACR1E,OAAQ,IACRD,MAAO,KAGnB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/layout.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/layout.js","canonical":"models/layout","resolution":"ESM","id":"dab42e6dad","hash":"dab42e6dad90caf5fca291630f6900d337fff2ce5ccf6ea2e291b47ab44581bb","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.HTMLBox = exports.HTMLBoxView = exports.PanelMarkupView = void 0;\nexports.set_size = set_size;\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst types_1 = require(\"@bokehjs/core/util/types\");\nconst assert_1 = require(\"@bokehjs/core/util/assert\");\nconst widget_1 = require(\"@bokehjs/models/widgets/widget\");\nconst layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\nclass PanelMarkupView extends widget_1.WidgetView {\n    connect_signals() {\n        super.connect_signals();\n        const { width, height, min_height, max_height, margin, sizing_mode } = this.model.properties;\n        this.on_change([width, height, min_height, max_height, margin, sizing_mode], () => {\n            set_size(this.el, this.model);\n            set_size(this.container, this.model, false);\n        });\n    }\n    async lazy_initialize() {\n        await super.lazy_initialize();\n        if (this.provider.status == \"not_started\" || this.provider.status == \"loading\") {\n            this.provider.ready.connect(() => {\n                if (this.contains_tex_string(this.model.text)) {\n                    this.render();\n                }\n            });\n        }\n    }\n    watch_stylesheets() {\n        this._initialized_stylesheets = new Map();\n        for (const stylesheet of this._applied_stylesheets) {\n            // @ts-expect-error: 'el' is protected\n            const style_el = stylesheet.el;\n            if (style_el instanceof HTMLLinkElement) {\n                this._initialized_stylesheets.set(style_el.href, false);\n                style_el.addEventListener(\"load\", () => {\n                    this._initialized_stylesheets.set(style_el.href, true);\n                    if ([...this._initialized_stylesheets.values()].every((v) => v)) {\n                        requestAnimationFrame(() => this.style_redraw());\n                    }\n                });\n            }\n        }\n        if (this._initialized_stylesheets.size == 0) {\n            this.style_redraw();\n        }\n    }\n    rerender_(view = null) {\n        // Can be removed when Bokeh>3.7 (see https://github.com/holoviz/panel/pull/7815)\n        view = view == null ? this : view;\n        if (view.rerender) {\n            view.rerender();\n        }\n        else {\n            view.render();\n            view.r_after_render();\n        }\n    }\n    style_redraw() { }\n    has_math_disabled() {\n        return this.model.disable_math || !this.contains_tex_string(this.model.text);\n    }\n    render() {\n        super.render();\n        set_size(this.el, this.model);\n        this.container = (0, dom_1.div)();\n        set_size(this.container, this.model, false);\n        this.shadow_el.appendChild(this.container);\n        if (this.provider.status == \"failed\" || this.provider.status == \"loaded\") {\n            this._has_finished = true;\n        }\n    }\n}\nexports.PanelMarkupView = PanelMarkupView;\nPanelMarkupView.__name__ = \"PanelMarkupView\";\nfunction set_size(el, model, adjust_margin = true) {\n    let width_policy = model.width != null ? \"fixed\" : \"fit\";\n    let height_policy = model.height != null ? \"fixed\" : \"fit\";\n    const { sizing_mode, margin } = model;\n    if (sizing_mode != null) {\n        if (sizing_mode == \"fixed\") {\n            width_policy = height_policy = \"fixed\";\n        }\n        else if (sizing_mode == \"stretch_both\") {\n            width_policy = height_policy = \"max\";\n        }\n        else if (sizing_mode == \"stretch_width\") {\n            width_policy = \"max\";\n        }\n        else if (sizing_mode == \"stretch_height\") {\n            height_policy = \"max\";\n        }\n        else {\n            switch (sizing_mode) {\n                case \"scale_width\": {\n                    width_policy = \"max\";\n                    height_policy = \"min\";\n                    break;\n                }\n                case \"scale_height\": {\n                    width_policy = \"min\";\n                    height_policy = \"max\";\n                    break;\n                }\n                case \"scale_both\": {\n                    width_policy = \"max\";\n                    height_policy = \"max\";\n                    break;\n                }\n                case \"inherit\": {\n                    break;\n                }\n                default: {\n                    (0, assert_1.unreachable)();\n                }\n            }\n        }\n    }\n    let wm, hm;\n    if (!adjust_margin) {\n        hm = wm = 0;\n    }\n    else if ((0, types_1.isArray)(margin)) {\n        if (margin.length === 4) {\n            hm = margin[0] + margin[2];\n            wm = margin[1] + margin[3];\n        }\n        else {\n            hm = margin[0] * 2;\n            wm = margin[1] * 2;\n        }\n    }\n    else if (margin == null) {\n        hm = wm = 0;\n    }\n    else {\n        wm = hm = margin * 2;\n    }\n    if (width_policy == \"fixed\" && model.width != null) {\n        el.style.width = (0, dom_1.px)(model.width);\n    }\n    else if (width_policy == \"max\") {\n        el.style.width = wm != 0 ? `calc(100% - ${(0, dom_1.px)(wm)})` : \"100%\";\n    }\n    if (model.min_width != null) {\n        el.style.minWidth = (0, dom_1.px)(model.min_width);\n    }\n    if (model.max_width != null) {\n        el.style.maxWidth = (0, dom_1.px)(model.max_width);\n    }\n    if (height_policy == \"fixed\" && model.height != null) {\n        el.style.height = (0, dom_1.px)(model.height);\n    }\n    else if (height_policy == \"max\") {\n        el.style.height = hm != 0 ? `calc(100% - ${(0, dom_1.px)(hm)})` : \"100%\";\n    }\n    if (model.min_height != null) {\n        el.style.minHeight = (0, dom_1.px)(model.min_height);\n    }\n    if (model.max_height != null) {\n        el.style.maxHeight = (0, dom_1.px)(model.max_height);\n    }\n}\nclass HTMLBoxView extends layout_dom_1.LayoutDOMView {\n    connect_signals() {\n        super.connect_signals();\n        const { width, height, min_height, max_height, margin, sizing_mode } = this.model.properties;\n        this.on_change([width, height, min_height, max_height, margin, sizing_mode], () => {\n            set_size(this.el, this.model);\n        });\n    }\n    render() {\n        super.render();\n        set_size(this.el, this.model);\n    }\n    rerender_(view = null) {\n        // Can be removed when Bokeh>3.7 (see https://github.com/holoviz/panel/pull/7815)\n        view = view == null ? this : view;\n        if (view.rerender) {\n            view.rerender();\n        }\n        else {\n            view.render();\n            view.r_after_render();\n        }\n    }\n    watch_stylesheets() {\n        this._initialized_stylesheets = new Map();\n        for (const stylesheet of this._applied_stylesheets) {\n            // @ts-expect-error: 'el' is protected\n            const style_el = stylesheet.el;\n            if (style_el instanceof HTMLLinkElement) {\n                this._initialized_stylesheets.set(style_el.href, false);\n                style_el.addEventListener(\"load\", () => {\n                    this._initialized_stylesheets.set(style_el.href, true);\n                    if ([...this._initialized_stylesheets.values()].every((v) => v)) {\n                        this.style_redraw();\n                    }\n                });\n            }\n        }\n        if (Object.keys(this._initialized_stylesheets).length === 0) {\n            requestAnimationFrame(() => this.style_redraw());\n        }\n    }\n    style_redraw() { }\n    get child_models() {\n        return [];\n    }\n}\nexports.HTMLBoxView = HTMLBoxView;\nHTMLBoxView.__name__ = \"HTMLBoxView\";\nclass HTMLBox extends layout_dom_1.LayoutDOM {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.HTMLBox = HTMLBox;\nHTMLBox.__name__ = \"HTMLBox\";\n//# sourceMappingURL=layout.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"PanelMarkupView"},{"type":"named","name":"set_size"},{"type":"named","name":"HTMLBoxView"},{"type":"named","name":"HTMLBox"}],"externals":[],"shims":[]},"code":{"source":"/* models/layout.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.set_size = set_size;\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    const assert_1 = require(\"@bokehjs/core/util/assert\");\n    const widget_1 = require(\"@bokehjs/models/widgets/widget\");\n    const layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\n    class PanelMarkupView extends widget_1.WidgetView {\n        connect_signals() {\n            super.connect_signals();\n            const { width, height, min_height, max_height, margin, sizing_mode } = this.model.properties;\n            this.on_change([width, height, min_height, max_height, margin, sizing_mode], () => {\n                set_size(this.el, this.model);\n                set_size(this.container, this.model, false);\n            });\n        }\n        async lazy_initialize() {\n            await super.lazy_initialize();\n            if (this.provider.status == \"not_started\" || this.provider.status == \"loading\") {\n                this.provider.ready.connect(() => {\n                    if (this.contains_tex_string(this.model.text)) {\n                        this.render();\n                    }\n                });\n            }\n        }\n        watch_stylesheets() {\n            this._initialized_stylesheets = new Map();\n            for (const stylesheet of this._applied_stylesheets) {\n                // @ts-expect-error: 'el' is protected\n                const style_el = stylesheet.el;\n                if (style_el instanceof HTMLLinkElement) {\n                    this._initialized_stylesheets.set(style_el.href, false);\n                    style_el.addEventListener(\"load\", () => {\n                        this._initialized_stylesheets.set(style_el.href, true);\n                        if ([...this._initialized_stylesheets.values()].every((v) => v)) {\n                            requestAnimationFrame(() => this.style_redraw());\n                        }\n                    });\n                }\n            }\n            if (this._initialized_stylesheets.size == 0) {\n                this.style_redraw();\n            }\n        }\n        rerender_(view = null) {\n            // Can be removed when Bokeh>3.7 (see https://github.com/holoviz/panel/pull/7815)\n            view = view == null ? this : view;\n            if (view.rerender) {\n                view.rerender();\n            }\n            else {\n                view.render();\n                view.r_after_render();\n            }\n        }\n        style_redraw() { }\n        has_math_disabled() {\n            return this.model.disable_math || !this.contains_tex_string(this.model.text);\n        }\n        render() {\n            super.render();\n            set_size(this.el, this.model);\n            this.container = (0, dom_1.div)();\n            set_size(this.container, this.model, false);\n            this.shadow_el.appendChild(this.container);\n            if (this.provider.status == \"failed\" || this.provider.status == \"loaded\") {\n                this._has_finished = true;\n            }\n        }\n    }\n    exports.PanelMarkupView = PanelMarkupView;\n    PanelMarkupView.__name__ = \"PanelMarkupView\";\n    function set_size(el, model, adjust_margin = true) {\n        let width_policy = model.width != null ? \"fixed\" : \"fit\";\n        let height_policy = model.height != null ? \"fixed\" : \"fit\";\n        const { sizing_mode, margin } = model;\n        if (sizing_mode != null) {\n            if (sizing_mode == \"fixed\") {\n                width_policy = height_policy = \"fixed\";\n            }\n            else if (sizing_mode == \"stretch_both\") {\n                width_policy = height_policy = \"max\";\n            }\n            else if (sizing_mode == \"stretch_width\") {\n                width_policy = \"max\";\n            }\n            else if (sizing_mode == \"stretch_height\") {\n                height_policy = \"max\";\n            }\n            else {\n                switch (sizing_mode) {\n                    case \"scale_width\": {\n                        width_policy = \"max\";\n                        height_policy = \"min\";\n                        break;\n                    }\n                    case \"scale_height\": {\n                        width_policy = \"min\";\n                        height_policy = \"max\";\n                        break;\n                    }\n                    case \"scale_both\": {\n                        width_policy = \"max\";\n                        height_policy = \"max\";\n                        break;\n                    }\n                    case \"inherit\": {\n                        break;\n                    }\n                    default: {\n                        (0, assert_1.unreachable)();\n                    }\n                }\n            }\n        }\n        let wm, hm;\n        if (!adjust_margin) {\n            hm = wm = 0;\n        }\n        else if ((0, types_1.isArray)(margin)) {\n            if (margin.length === 4) {\n                hm = margin[0] + margin[2];\n                wm = margin[1] + margin[3];\n            }\n            else {\n                hm = margin[0] * 2;\n                wm = margin[1] * 2;\n            }\n        }\n        else if (margin == null) {\n            hm = wm = 0;\n        }\n        else {\n            wm = hm = margin * 2;\n        }\n        if (width_policy == \"fixed\" && model.width != null) {\n            el.style.width = (0, dom_1.px)(model.width);\n        }\n        else if (width_policy == \"max\") {\n            el.style.width = wm != 0 ? `calc(100% - ${(0, dom_1.px)(wm)})` : \"100%\";\n        }\n        if (model.min_width != null) {\n            el.style.minWidth = (0, dom_1.px)(model.min_width);\n        }\n        if (model.max_width != null) {\n            el.style.maxWidth = (0, dom_1.px)(model.max_width);\n        }\n        if (height_policy == \"fixed\" && model.height != null) {\n            el.style.height = (0, dom_1.px)(model.height);\n        }\n        else if (height_policy == \"max\") {\n            el.style.height = hm != 0 ? `calc(100% - ${(0, dom_1.px)(hm)})` : \"100%\";\n        }\n        if (model.min_height != null) {\n            el.style.minHeight = (0, dom_1.px)(model.min_height);\n        }\n        if (model.max_height != null) {\n            el.style.maxHeight = (0, dom_1.px)(model.max_height);\n        }\n    }\n    class HTMLBoxView extends layout_dom_1.LayoutDOMView {\n        connect_signals() {\n            super.connect_signals();\n            const { width, height, min_height, max_height, margin, sizing_mode } = this.model.properties;\n            this.on_change([width, height, min_height, max_height, margin, sizing_mode], () => {\n                set_size(this.el, this.model);\n            });\n        }\n        render() {\n            super.render();\n            set_size(this.el, this.model);\n        }\n        rerender_(view = null) {\n            // Can be removed when Bokeh>3.7 (see https://github.com/holoviz/panel/pull/7815)\n            view = view == null ? this : view;\n            if (view.rerender) {\n                view.rerender();\n            }\n            else {\n                view.render();\n                view.r_after_render();\n            }\n        }\n        watch_stylesheets() {\n            this._initialized_stylesheets = new Map();\n            for (const stylesheet of this._applied_stylesheets) {\n                // @ts-expect-error: 'el' is protected\n                const style_el = stylesheet.el;\n                if (style_el instanceof HTMLLinkElement) {\n                    this._initialized_stylesheets.set(style_el.href, false);\n                    style_el.addEventListener(\"load\", () => {\n                        this._initialized_stylesheets.set(style_el.href, true);\n                        if ([...this._initialized_stylesheets.values()].every((v) => v)) {\n                            this.style_redraw();\n                        }\n                    });\n                }\n            }\n            if (Object.keys(this._initialized_stylesheets).length === 0) {\n                requestAnimationFrame(() => this.style_redraw());\n            }\n        }\n        style_redraw() { }\n        get child_models() {\n            return [];\n        }\n    }\n    exports.HTMLBoxView = HTMLBoxView;\n    HTMLBoxView.__name__ = \"HTMLBoxView\";\n    class HTMLBox extends layout_dom_1.LayoutDOM {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.HTMLBox = HTMLBox;\n    HTMLBox.__name__ = \"HTMLBox\";\n}\n","min_source":"function _(e,t,i,s,h){s(),i.set_size=o;const n=e(\"@bokehjs/core/dom\"),l=e(\"@bokehjs/core/util/types\"),a=e(\"@bokehjs/core/util/assert\"),r=e(\"@bokehjs/models/widgets/widget\"),d=e(\"@bokehjs/models/layouts/layout_dom\");class _ extends r.WidgetView{connect_signals(){super.connect_signals();const{width:e,height:t,min_height:i,max_height:s,margin:h,sizing_mode:n}=this.model.properties;this.on_change([e,t,i,s,h,n],(()=>{o(this.el,this.model),o(this.container,this.model,!1)}))}async lazy_initialize(){await super.lazy_initialize(),\"not_started\"!=this.provider.status&&\"loading\"!=this.provider.status||this.provider.ready.connect((()=>{this.contains_tex_string(this.model.text)&&this.render()}))}watch_stylesheets(){this._initialized_stylesheets=new Map;for(const e of this._applied_stylesheets){const t=e.el;t instanceof HTMLLinkElement&&(this._initialized_stylesheets.set(t.href,!1),t.addEventListener(\"load\",(()=>{this._initialized_stylesheets.set(t.href,!0),[...this._initialized_stylesheets.values()].every((e=>e))&&requestAnimationFrame((()=>this.style_redraw()))})))}0==this._initialized_stylesheets.size&&this.style_redraw()}rerender_(e=null){(e=e??this).rerender?e.rerender():(e.render(),e.r_after_render())}style_redraw(){}has_math_disabled(){return this.model.disable_math||!this.contains_tex_string(this.model.text)}render(){super.render(),o(this.el,this.model),this.container=(0,n.div)(),o(this.container,this.model,!1),this.shadow_el.appendChild(this.container),\"failed\"!=this.provider.status&&\"loaded\"!=this.provider.status||(this._has_finished=!0)}}function o(e,t,i=!0){let s=null!=t.width?\"fixed\":\"fit\",h=null!=t.height?\"fixed\":\"fit\";const{sizing_mode:r,margin:d}=t;if(null!=r)if(\"fixed\"==r)s=h=\"fixed\";else if(\"stretch_both\"==r)s=h=\"max\";else if(\"stretch_width\"==r)s=\"max\";else if(\"stretch_height\"==r)h=\"max\";else switch(r){case\"scale_width\":s=\"max\",h=\"min\";break;case\"scale_height\":s=\"min\",h=\"max\";break;case\"scale_both\":s=\"max\",h=\"max\";break;case\"inherit\":break;default:(0,a.unreachable)()}let _,o;i?(0,l.isArray)(d)?4===d.length?(o=d[0]+d[2],_=d[1]+d[3]):(o=2*d[0],_=2*d[1]):null==d?o=_=0:_=o=2*d:o=_=0,\"fixed\"==s&&null!=t.width?e.style.width=(0,n.px)(t.width):\"max\"==s&&(e.style.width=0!=_?`calc(100% - ${(0,n.px)(_)})`:\"100%\"),null!=t.min_width&&(e.style.minWidth=(0,n.px)(t.min_width)),null!=t.max_width&&(e.style.maxWidth=(0,n.px)(t.max_width)),\"fixed\"==h&&null!=t.height?e.style.height=(0,n.px)(t.height):\"max\"==h&&(e.style.height=0!=o?`calc(100% - ${(0,n.px)(o)})`:\"100%\"),null!=t.min_height&&(e.style.minHeight=(0,n.px)(t.min_height)),null!=t.max_height&&(e.style.maxHeight=(0,n.px)(t.max_height))}i.PanelMarkupView=_,_.__name__=\"PanelMarkupView\";class m extends d.LayoutDOMView{connect_signals(){super.connect_signals();const{width:e,height:t,min_height:i,max_height:s,margin:h,sizing_mode:n}=this.model.properties;this.on_change([e,t,i,s,h,n],(()=>{o(this.el,this.model)}))}render(){super.render(),o(this.el,this.model)}rerender_(e=null){(e=e??this).rerender?e.rerender():(e.render(),e.r_after_render())}watch_stylesheets(){this._initialized_stylesheets=new Map;for(const e of this._applied_stylesheets){const t=e.el;t instanceof HTMLLinkElement&&(this._initialized_stylesheets.set(t.href,!1),t.addEventListener(\"load\",(()=>{this._initialized_stylesheets.set(t.href,!0),[...this._initialized_stylesheets.values()].every((e=>e))&&this.style_redraw()})))}0===Object.keys(this._initialized_stylesheets).length&&requestAnimationFrame((()=>this.style_redraw()))}style_redraw(){}get child_models(){return[]}}i.HTMLBoxView=m,m.__name__=\"HTMLBoxView\";class c extends d.LayoutDOM{constructor(e){super(e)}}i.HTMLBox=c,c.__name__=\"HTMLBox\"}\n//# sourceMappingURL=layout.min.js.map","min_map":"{\"version\":3,\"file\":\"layout.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"set_size\",\"dom_1\",\"types_1\",\"assert_1\",\"widget_1\",\"layout_dom_1\",\"PanelMarkupView\",\"WidgetView\",\"connect_signals\",\"super\",\"width\",\"height\",\"min_height\",\"max_height\",\"margin\",\"sizing_mode\",\"this\",\"model\",\"properties\",\"on_change\",\"el\",\"container\",\"lazy_initialize\",\"provider\",\"status\",\"ready\",\"connect\",\"contains_tex_string\",\"text\",\"render\",\"watch_stylesheets\",\"_initialized_stylesheets\",\"Map\",\"stylesheet\",\"_applied_stylesheets\",\"style_el\",\"HTMLLinkElement\",\"set\",\"href\",\"addEventListener\",\"values\",\"every\",\"v\",\"requestAnimationFrame\",\"style_redraw\",\"size\",\"rerender_\",\"view\",\"rerender\",\"r_after_render\",\"has_math_disabled\",\"disable_math\",\"div\",\"shadow_el\",\"appendChild\",\"_has_finished\",\"adjust_margin\",\"width_policy\",\"height_policy\",\"unreachable\",\"wm\",\"hm\",\"isArray\",\"length\",\"style\",\"px\",\"min_width\",\"minWidth\",\"max_width\",\"maxWidth\",\"minHeight\",\"maxHeight\",\"__name__\",\"HTMLBoxView\",\"LayoutDOMView\",\"Object\",\"keys\",\"child_models\",\"HTMLBox\",\"LayoutDOM\",\"constructor\",\"attrs\"],\"sources\":[\"0\"],\"mappings\":\"AAAuB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACpED,IACAD,EAAQG,SAAWA,EACnB,MAAMC,EAAQN,EAAQ,qBAChBO,EAAUP,EAAQ,4BA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B,CAEhD,MAAMC,EAAWF,EAAWb,GACxBe,aAAoBC,kBACpBpB,KAAKe,yBAAyBM,IAAIF,EAASG,MAAM,GACjDH,EAASI,iBAAiB,QAAQ,KAC9BvB,KAAKe,yBAAyBM,IAAIF,EAASG,MAAM,GAC7C,IAAItB,KAAKe,yBAAyBS,UAAUC,OAAOC,GAAMA,KACzD1B,KAAK4B,cACT,IAGZ,CAC0D,IAAtD+B,OAAOC,KAAK5D,KAAKe,0BAA0BgC,QAC3CpB,uBAAsB,IAAM3B,KAAK4B,gBAEzC,CACA,YAAAA,GAAiB,CACjB,gBAAIiC,GACA,MAAO,EACX,EAEJhF,EAAQ4E,YAAcA,EACtBA,EAAYD,SAAW,cACvB,MAAMM,UAAgBzE,EAAa0E,UAC/B,WAAAC,CAAYC,GACRxE,MAAMwE,EACV,EAEJpF,EAAQiF,QAAUA,EAClBA,EAAQN,SAAW,SACvB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/util.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/util.js","canonical":"models/util","resolution":"ESM","id":"a3669a897a","hash":"a3669a897a9a933cc2f353edd242eb223283d0d7a0427dc331e5d247d0e9d69b","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MARK = exports.get = void 0;\nexports.throttle = throttle;\nexports.deepCopy = deepCopy;\nexports.reshape = reshape;\nexports.loadScript = loadScript;\nexports.ID = ID;\nexports.convertUndefined = convertUndefined;\nexports.formatError = formatError;\nexports.find_attributes = find_attributes;\nexports.schedule_when = schedule_when;\nexports.compileToFunction = compileToFunction;\nexports.transformJsPlaceholders = transformJsPlaceholders;\nconst array_1 = require(\"@bokehjs/core/util/array\");\nconst types_1 = require(\"@bokehjs/core/util/types\");\nconst get = (obj, path, defaultValue = undefined) => {\n    const travel = (regexp) => String.prototype.split\n        .call(path, regexp)\n        .filter(Boolean)\n        .reduce((res, key) => (res !== null && res !== undefined ? res[key] : res), obj);\n    const result = travel(/[,[\\]]+?/) || travel(/[,[\\].]+?/);\n    return result === undefined || result === obj ? defaultValue : result;\n};\nexports.get = get;\nfunction throttle(func, limit) {\n    let lastRan = 0;\n    let trailingCall = null;\n    return function (...args) {\n        // @ts-ignore\n        const context = this;\n        const now = Date.now();\n        if (trailingCall) {\n            clearTimeout(trailingCall);\n        }\n        if ((now - lastRan) >= limit) {\n            func.apply(context, args);\n            lastRan = Date.now();\n        }\n        else {\n            trailingCall = setTimeout(function () {\n                func.apply(context, args);\n                lastRan = Date.now();\n                trailingCall = null;\n            }, limit - (now - lastRan));\n        }\n    };\n}\nfunction deepCopy(obj) {\n    let copy;\n    // Handle the 3 simple types, and null or undefined\n    if (null == obj || \"object\" != typeof obj) {\n        return obj;\n    }\n    // Handle Array\n    if (obj instanceof Array) {\n        copy = [];\n        for (let i = 0, len = obj.length; i < len; i++) {\n            copy[i] = deepCopy(obj[i]);\n        }\n        return copy;\n    }\n    // Handle Object\n    if (obj instanceof Object) {\n        const copy = {};\n        for (const attr in obj) {\n            const key = attr;\n            if (obj.hasOwnProperty(key)) {\n                copy[key] = deepCopy(obj[key]);\n            }\n        }\n        return copy;\n    }\n    throw new Error(\"Unable to copy obj! Its type isn't supported.\");\n}\nfunction reshape(arr, dim) {\n    let elemIndex = 0;\n    if (!dim || !arr) {\n        return [];\n    }\n    function _nest(dimIndex) {\n        let result = [];\n        if (dimIndex === dim.length - 1) {\n            result = (0, array_1.concat)(arr.slice(elemIndex, elemIndex + dim[dimIndex]));\n            elemIndex += dim[dimIndex];\n        }\n        else {\n            for (let i = 0; i < dim[dimIndex]; i++) {\n                result.push(_nest(dimIndex + 1));\n            }\n        }\n        return result;\n    }\n    return _nest(0);\n}\nasync function loadScript(type, src) {\n    const script = document.createElement(\"script\");\n    script.type = type;\n    script.src = src;\n    script.defer = true;\n    document.head.appendChild(script);\n    return new Promise((resolve, reject) => {\n        script.onload = () => {\n            resolve();\n        };\n        script.onerror = () => {\n            reject();\n        };\n    });\n}\nfunction ID() {\n    // Math.random should be unique because of its seeding algorithm.\n    // Convert it to base 36 (numbers + letters), and grab the first 9 characters\n    // after the decimal.\n    return `_${Math.random().toString(36).substring(2, 11)}`;\n}\nfunction convertUndefined(obj) {\n    if ((0, types_1.isArray)(obj)) {\n        return obj.map(convertUndefined);\n    }\n    else if ((0, types_1.isPlainObject)(obj)) {\n        Object\n            .entries(obj)\n            .forEach(([key, value]) => {\n            if ((0, types_1.isPlainObject)(value) || (0, types_1.isArray)(value)) {\n                convertUndefined(value);\n            }\n            else if (value === undefined) {\n                obj[key] = null;\n            }\n        });\n    }\n    return obj;\n}\nfunction formatError(error, code) {\n    const regex = /\\((\\d+):(\\d+)\\)/;\n    let msg = `<span class=\"msg\">${error}</span>`;\n    const match = msg.match(regex);\n    if (!match) {\n        return msg;\n    }\n    const line_num = parseInt(match[1]);\n    const col = parseInt(match[2]);\n    const start = Math.max(0, line_num - 5);\n    const col_index = line_num - start;\n    const lines = code.replace(\">\", \"&lt;\").replace(\"<\", \"&gt;\").split(/\\r?\\n/).slice(start, line_num + 5);\n    msg += \"<br><br>\";\n    for (let i = 0; i < col_index; i++) {\n        const cls = (i == (col_index - 1)) ? \" class=\\\"highlight\\\"\" : \"\";\n        msg += `<pre${cls}>${lines[i]}</pre>`;\n    }\n    const indent = \" \".repeat(col - 1);\n    msg += `<pre class=\"highlight\">${indent}^</pre>`;\n    for (let i = col_index; i < lines.length; i++) {\n        msg += `<pre>${lines[i]}</pre>`;\n    }\n    return msg;\n}\nfunction find_attributes(text, obj, ignored) {\n    const regex = RegExp(`\\\\b${obj}\\\\.([a-zA-Z_][a-zA-Z0-9_]*)\\\\b`, \"g\");\n    const matches = [];\n    let match, attr;\n    while ((match = regex.exec(text)) !== null && (attr = match[0].slice(obj.length + 1)) !== null && !ignored.includes(attr)) {\n        matches.push(attr);\n    }\n    return (0, array_1.uniq)(matches);\n}\nfunction schedule_when(func, predicate, timeout = 10) {\n    const scheduled = () => {\n        if (predicate()) {\n            func();\n        }\n        else {\n            setTimeout(scheduled, timeout);\n        }\n    };\n    scheduled();\n}\nexports.MARK = \"--x_x--0_0--\";\nconst PLACEHOLDER_RE = new RegExp(`^${exports.MARK}([\\\\s\\\\S]*?)${exports.MARK}$`);\nconst defaultOptions = {\n    mode: \"expression\",\n    args: [],\n};\nfunction compileToFunction(code, options = defaultOptions) {\n    const { mode, args } = { ...defaultOptions, ...options };\n    const body = mode === \"expression\"\n        ? `\\\"use strict\\\";\\nreturn (${code});`\n        : `\\\"use strict\\\";\\n${code}`;\n    return new Function(...args, body)();\n}\nfunction transformJsPlaceholders(input, options) {\n    function visit(value) {\n        if (typeof value === \"string\") {\n            const m = value.match(PLACEHOLDER_RE);\n            if (m) {\n                const code = m[1];\n                return compileToFunction(code, options);\n            }\n            return value;\n        }\n        if (Array.isArray(value)) {\n            return value.map(visit);\n        }\n        // Keep special objects intact\n        if (value &&\n            typeof value === \"object\" &&\n            Object.getPrototypeOf(value) === Object.prototype) {\n            const out = {};\n            for (const [k, v] of Object.entries(value)) {\n                out[k] = visit(v);\n            }\n            return out;\n        }\n        return value;\n    }\n    return visit(input);\n}\n//# sourceMappingURL=util.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"throttle"},{"type":"named","name":"deepCopy"},{"type":"named","name":"reshape"},{"type":"named","name":"loadScript"},{"type":"named","name":"ID"},{"type":"named","name":"convertUndefined"},{"type":"named","name":"formatError"},{"type":"named","name":"find_attributes"},{"type":"named","name":"schedule_when"},{"type":"named","name":"compileToFunction"},{"type":"named","name":"transformJsPlaceholders"}],"externals":[],"shims":[]},"code":{"source":"/* models/util.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.throttle = throttle;\n    exports.deepCopy = deepCopy;\n    exports.reshape = reshape;\n    exports.loadScript = loadScript;\n    exports.ID = ID;\n    exports.convertUndefined = convertUndefined;\n    exports.formatError = formatError;\n    exports.find_attributes = find_attributes;\n    exports.schedule_when = schedule_when;\n    exports.compileToFunction = compileToFunction;\n    exports.transformJsPlaceholders = transformJsPlaceholders;\n    const array_1 = require(\"@bokehjs/core/util/array\");\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    const get = (obj, path, defaultValue = undefined) => {\n        const travel = (regexp) => String.prototype.split\n            .call(path, regexp)\n            .filter(Boolean)\n            .reduce((res, key) => (res !== null && res !== undefined ? res[key] : res), obj);\n        const result = travel(/[,[\\]]+?/) || travel(/[,[\\].]+?/);\n        return result === undefined || result === obj ? defaultValue : result;\n    };\n    exports.get = get;\n    function throttle(func, limit) {\n        let lastRan = 0;\n        let trailingCall = null;\n        return function (...args) {\n            // @ts-ignore\n            const context = this;\n            const now = Date.now();\n            if (trailingCall) {\n                clearTimeout(trailingCall);\n            }\n            if ((now - lastRan) >= limit) {\n                func.apply(context, args);\n                lastRan = Date.now();\n            }\n            else {\n                trailingCall = setTimeout(function () {\n                    func.apply(context, args);\n                    lastRan = Date.now();\n                    trailingCall = null;\n                }, limit - (now - lastRan));\n            }\n        };\n    }\n    function deepCopy(obj) {\n        let copy;\n        // Handle the 3 simple types, and null or undefined\n        if (null == obj || \"object\" != typeof obj) {\n            return obj;\n        }\n        // Handle Array\n        if (obj instanceof Array) {\n            copy = [];\n            for (let i = 0, len = obj.length; i < len; i++) {\n                copy[i] = deepCopy(obj[i]);\n            }\n            return copy;\n        }\n        // Handle Object\n        if (obj instanceof Object) {\n            const copy = {};\n            for (const attr in obj) {\n                const key = attr;\n                if (obj.hasOwnProperty(key)) {\n                    copy[key] = deepCopy(obj[key]);\n                }\n            }\n            return copy;\n        }\n        throw new Error(\"Unable to copy obj! Its type isn't supported.\");\n    }\n    function reshape(arr, dim) {\n        let elemIndex = 0;\n        if (!dim || !arr) {\n            return [];\n        }\n        function _nest(dimIndex) {\n            let result = [];\n            if (dimIndex === dim.length - 1) {\n                result = (0, array_1.concat)(arr.slice(elemIndex, elemIndex + dim[dimIndex]));\n                elemIndex += dim[dimIndex];\n            }\n            else {\n                for (let i = 0; i < dim[dimIndex]; i++) {\n                    result.push(_nest(dimIndex + 1));\n                }\n            }\n            return result;\n        }\n        return _nest(0);\n    }\n    async function loadScript(type, src) {\n        const script = document.createElement(\"script\");\n        script.type = type;\n        script.src = src;\n        script.defer = true;\n        document.head.appendChild(script);\n        return new Promise((resolve, reject) => {\n            script.onload = () => {\n                resolve();\n            };\n            script.onerror = () => {\n                reject();\n            };\n        });\n    }\n    function ID() {\n        // Math.random should be unique because of its seeding algorithm.\n        // Convert it to base 36 (numbers + letters), and grab the first 9 characters\n        // after the decimal.\n        return `_${Math.random().toString(36).substring(2, 11)}`;\n    }\n    function convertUndefined(obj) {\n        if ((0, types_1.isArray)(obj)) {\n            return obj.map(convertUndefined);\n        }\n        else if ((0, types_1.isPlainObject)(obj)) {\n            Object\n                .entries(obj)\n                .forEach(([key, value]) => {\n                if ((0, types_1.isPlainObject)(value) || (0, types_1.isArray)(value)) {\n                    convertUndefined(value);\n                }\n                else if (value === undefined) {\n                    obj[key] = null;\n                }\n            });\n        }\n        return obj;\n    }\n    function formatError(error, code) {\n        const regex = /\\((\\d+):(\\d+)\\)/;\n        let msg = `<span class=\"msg\">${error}</span>`;\n        const match = msg.match(regex);\n        if (!match) {\n            return msg;\n        }\n        const line_num = parseInt(match[1]);\n        const col = parseInt(match[2]);\n        const start = Math.max(0, line_num - 5);\n        const col_index = line_num - start;\n        const lines = code.replace(\">\", \"&lt;\").replace(\"<\", \"&gt;\").split(/\\r?\\n/).slice(start, line_num + 5);\n        msg += \"<br><br>\";\n        for (let i = 0; i < col_index; i++) {\n            const cls = (i == (col_index - 1)) ? \" class=\\\"highlight\\\"\" : \"\";\n            msg += `<pre${cls}>${lines[i]}</pre>`;\n        }\n        const indent = \" \".repeat(col - 1);\n        msg += `<pre class=\"highlight\">${indent}^</pre>`;\n        for (let i = col_index; i < lines.length; i++) {\n            msg += `<pre>${lines[i]}</pre>`;\n        }\n        return msg;\n    }\n    function find_attributes(text, obj, ignored) {\n        const regex = RegExp(`\\\\b${obj}\\\\.([a-zA-Z_][a-zA-Z0-9_]*)\\\\b`, \"g\");\n        const matches = [];\n        let match, attr;\n        while ((match = regex.exec(text)) !== null && (attr = match[0].slice(obj.length + 1)) !== null && !ignored.includes(attr)) {\n            matches.push(attr);\n        }\n        return (0, array_1.uniq)(matches);\n    }\n    function schedule_when(func, predicate, timeout = 10) {\n        const scheduled = () => {\n            if (predicate()) {\n                func();\n            }\n            else {\n                setTimeout(scheduled, timeout);\n            }\n        };\n        scheduled();\n    }\n    exports.MARK = \"--x_x--0_0--\";\n    const PLACEHOLDER_RE = new RegExp(`^${exports.MARK}([\\\\s\\\\S]*?)${exports.MARK}$`);\n    const defaultOptions = {\n        mode: \"expression\",\n        args: [],\n    };\n    function compileToFunction(code, options = defaultOptions) {\n        const { mode, args } = { ...defaultOptions, ...options };\n        const body = mode === \"expression\"\n            ? `\\\"use strict\\\";\\nreturn (${code});`\n            : `\\\"use strict\\\";\\n${code}`;\n        return new Function(...args, body)();\n    }\n    function transformJsPlaceholders(input, options) {\n        function visit(value) {\n            if (typeof value === \"string\") {\n                const m = value.match(PLACEHOLDER_RE);\n                if (m) {\n                    const code = m[1];\n                    return compileToFunction(code, options);\n                }\n                return value;\n            }\n            if (Array.isArray(value)) {\n                return value.map(visit);\n            }\n            // Keep special objects intact\n            if (value &&\n                typeof value === \"object\" &&\n                Object.getPrototypeOf(value) === Object.prototype) {\n                const out = {};\n                for (const [k, v] of Object.entries(value)) {\n                    out[k] = visit(v);\n                }\n                return out;\n            }\n            return value;\n        }\n        return visit(input);\n    }\n}\n","min_source":"function _(t,e,n,r,o){r(),n.throttle=function(t,e){let n=0,r=null;return function(...o){const c=this,s=Date.now();r&&clearTimeout(r),s-n>=e?(t.apply(c,o),n=Date.now()):r=setTimeout((function(){t.apply(c,o),n=Date.now(),r=null}),e-(s-n))}},n.deepCopy=function t(e){let n;if(null==e||\"object\"!=typeof e)return e;if(e instanceof Array){n=[];for(let r=0,o=e.length;r<o;r++)n[r]=t(e[r]);return n}if(e instanceof Object){const n={};for(const r in e){const o=r;e.hasOwnProperty(o)&&(n[o]=t(e[o]))}return n}throw new Error(\"Unable to copy obj! Its type isn't supported.\")},n.reshape=function(t,e){let n=0;if(!e||!t)return[];return function r(o){let s=[];if(o===e.length-1)s=(0,c.concat)(t.slice(n,n+e[o])),n+=e[o];else for(let t=0;t<e[o];t++)s.push(r(o+1));return s}(0)},n.loadScript=async function(t,e){const n=document.createElement(\"script\");return n.type=t,n.src=e,n.defer=!0,document.head.appendChild(n),new Promise(((t,e)=>{n.onload=()=>{t()},n.onerror=()=>{e()}}))},n.ID=function(){return`_${Math.random().toString(36).substring(2,11)}`},n.convertUndefined=function t(e){if((0,s.isArray)(e))return e.map(t);(0,s.isPlainObject)(e)&&Object.entries(e).forEach((([n,r])=>{(0,s.isPlainObject)(r)||(0,s.isArray)(r)?t(r):void 0===r&&(e[n]=null)}));return e},n.formatError=function(t,e){let n=`<span class=\"msg\">${t}</span>`;const r=n.match(/\\((\\d+):(\\d+)\\)/);if(!r)return n;const o=parseInt(r[1]),c=parseInt(r[2]),s=Math.max(0,o-5),i=o-s,u=e.replace(\">\",\"&lt;\").replace(\"<\",\"&gt;\").split(/\\r?\\n/).slice(s,o+5);n+=\"<br><br>\";for(let t=0;t<i;t++){n+=`<pre${t==i-1?' class=\"highlight\"':\"\"}>${u[t]}</pre>`}const l=\" \".repeat(c-1);n+=`<pre class=\"highlight\">${l}^</pre>`;for(let t=i;t<u.length;t++)n+=`<pre>${u[t]}</pre>`;return n},n.find_attributes=function(t,e,n){const r=RegExp(`\\\\b${e}\\\\.([a-zA-Z_][a-zA-Z0-9_]*)\\\\b`,\"g\"),o=[];let s,i;for(;null!==(s=r.exec(t))&&null!==(i=s[0].slice(e.length+1))&&!n.includes(i);)o.push(i);return(0,c.uniq)(o)},n.schedule_when=function(t,e,n=10){const r=()=>{e()?t():setTimeout(r,n)};r()},n.compileToFunction=l,n.transformJsPlaceholders=function(t,e){return function t(n){if(\"string\"==typeof n){const t=n.match(i);return t?l(t[1],e):n}if(Array.isArray(n))return n.map(t);if(n&&\"object\"==typeof n&&Object.getPrototypeOf(n)===Object.prototype){const e={};for(const[r,o]of Object.entries(n))e[r]=t(o);return e}return n}(t)};const c=t(\"@bokehjs/core/util/array\"),s=t(\"@bokehjs/core/util/types\");n.get=(t,e,n=void 0)=>{const r=n=>String.prototype.split.call(e,n).filter(Boolean).reduce(((t,e)=>null!=t?t[e]:t),t),o=r(/[,[\\]]+?/)||r(/[,[\\].]+?/);return void 0===o||o===t?n:o},n.MARK=\"--x_x--0_0--\";const i=new RegExp(`^${n.MARK}([\\\\s\\\\S]*?)${n.MARK}$`),u={mode:\"expression\",args:[]};function l(t,e=u){const{mode:n,args:r}={...u,...e};return new Function(...r,\"expression\"===n?`\"use strict\";\\nreturn (${t});`:`\"use strict\";\\n${t}`)()}}\n//# sourceMappingURL=util.min.js.map","min_map":"{\"version\":3,\"file\":\"util.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"throttle\",\"func\",\"limit\",\"lastRan\",\"trailingCall\",\"args\",\"context\",\"this\",\"now\",\"Date\",\"clearTimeout\",\"apply\",\"setTimeout\",\"deepCopy\",\"obj\",\"copy\",\"Array\",\"i\",\"len\",\"length\",\"Object\",\"attr\",\"key\",\"hasOwnProperty\",\"Error\",\"reshape\",\"arr\",\"dim\",\"elemIndex\",\"_nest\",\"dimIndex\",\"result\",\"array_1\",\"concat\",\"slice\",\"push\",\"loadScript\",\"async\",\"type\",\"src\",\"script\",\"document\",\"createElement\",\"defer\",\"head\",\"appendChild\",\"Promise\",\"resolve\",\"reject\",\"onload\",\"onerror\",\"ID\",\"Math\",\"random\",\"toString\",\"substring\",\"convertUndefined\",\"types_1\",\"isArray\",\"map\",\"isPlainObject\",\"entries\",\"forEach\",\"value\",\"undefined\",\"formatError\",\"error\",\"code\",\"msg\",\"match\",\"line_num\",\"parseInt\",\"col\",\"start\",\"max\",\"col_index\",\"lines\",\"replace\",\"split\",\"indent\",\"repeat\",\"find_attributes\",\"text\",\"ignored\",\"regex\",\"RegExp\",\"matches\",\"exec\",\"includes\",\"uniq\",\"schedule_when\",\"predicate\",\"timeout\",\"scheduled\",\"compileToFunction\",\"transformJsPlaceholders\",\"input\",\"options\",\"visit\",\"m\",\"PLACEHOLDER_RE\",\"getPrototypeOf\",\"prototype\",\"out\",\"k\",\"v\",\"get\",\"path\",\"defaultValue\",\"travel\",\"regexp\",\"String\",\"call\",\"filter\",\"Boolean\",\"reduce\",\"res\",\"MARK\",\"defaultOptions\",\"mode\",\"Function\"],\"sources\":[\"0\"],\"mappings\":\"AAAqB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAClED,IACAD,EAAQG,SAsBR,SAAkBC,EAAMC,GACpB,IAAIC,EAAU,EACVC,EAAe,KACnB,OAAO,YAAaC,GAEhB,MAAMC,EAAUC,KACVC,EAAMC,KAAKD,MACbJ,GACAM,aAAaN,GAEZI,EAAML,GAAYD,GACnBD,EAAKU,MAAML,EAASD,GACpBF,EAAUM,KAAKD,OAGfJ,EAAeQ,YAAW,WACtBX,EAAKU,MAAML,EAASD,GACpBF,EAAUM,KAAKD,MACfJ,EAAe,IACnB,GAAGF,GAASM,EAAML,GAE1B,CACJ,EA3CAN,EAAQgB,SA4CR,SAASA,EAASC,GACd,IAAIC,EAEJ,GAAI,MAAQD,GAAO,iBAAmBA,EAClC,OAAOA,EAGX,GAAIA,aAAeE,MAAO,CACtBD,EAAO,GACP,IAAK,IAAIE,EAAI,EAAGC,EAAMJ,EAAIK,OAAQF,EAAIC,EAAKD,IACvCF,EAAKE,GAAKJ,EAASC,EAAIG,IAE3B,OAAOF,CACX,CAEA,GAAID,aAAeM,OAAQ,CACvB,MAAML,EAAO,CAAC,EACd,IAAK,MAAMM,KAAQP,EAAK,CACpB,MAAMQ,EAAMD,EACRP,EAAIS,eAAeD,KACnBP,EAAKO,GAAOT,EAASC,EAAIQ,IA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AAE,GACgBF,GAE5BlC,CACX,CACA,GAAI/C,MAAM0C,QAAQK,GACd,OAAOA,EAAMJ,IAAIuC,GAGrB,GAAInC,GACiB,iBAAVA,GACP3C,OAAOiF,eAAetC,KAAW3C,OAAOkF,UAAW,CACnD,MAAMC,EAAM,CAAC,EACb,IAAK,MAAOC,EAAGC,KAAMrF,OAAOyC,QAAQE,GAChCwC,EAAIC,GAAKN,EAAMO,GAEnB,OAAOF,CACX,CACA,OAAOxC,CACX,CACOmC,CAAMF,EACjB,EA3MA,MAAMhE,EAAUrC,EAAQ,4BAClB8D,EAAU9D,EAAQ,4BASxBE,EAAQ6G,IARI,CAAC5F,EAAK6F,EAAMC,OAAe5C,KACnC,MAAM6C,EAAUC,GAAWC,OAAOT,UAAUxB,MACvCkC,KAAKL,EAAMG,GACXG,OAAOC,SACPC,QAAO,CAACC,EAAK9F,IAAS8F,QAAoCA,EAAI9F,GAAO8F,GAAMtG,GAC1EiB,EAAS8E,EAAO,aAAeA,EAAO,aAC5C,YAAkB7C,IAAXjC,GAAwBA,IAAWjB,EAAM8F,EAAe7E,CAAM,EA4JzElC,EAAQwH,KAAO,eACf,MAAMjB,EAAiB,IAAIf,OAAO,IAAIxF,EAAQwH,mBAAmBxH,EAAQwH,SACnEC,EAAiB,CACnBC,KAAM,aACNlH,KAAM,IAEV,SAASyF,EAAkB3B,EAAM8B,EAAUqB,GACvC,MAAMC,KAAEA,EAAIlH,KAAEA,GAAS,IAAKiH,KAAmBrB,GAI/C,OAAO,IAAIuB,YAAYnH,EAHD,eAATkH,EACP,0BAA4BpD,MAC5B,kBAAoBA,IACnB,EACX,CA4BJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/anywidget_component.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/anywidget_component.js","canonical":"models/anywidget_component","resolution":"ESM","id":"1f663ffe94","hash":"1f663ffe942b152a415b3d6d8d669be3eafabfb0d0352b734344a286cf7a6845","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AnyWidgetComponent = exports.AnyWidgetComponentView = void 0;\nconst reactive_esm_1 = require(\"./reactive_esm\");\nclass AnyWidgetModelAdapter {\n    constructor(model) {\n        this.view = null;\n        this.model = model;\n        this.model_changes = {};\n        this.data_changes = {};\n    }\n    get(name) {\n        let value;\n        const propPath = name.split(\".\");\n        let targetModel = this.model.data;\n        for (let i = 0; i < propPath.length - 1; i++) {\n            if (targetModel && targetModel.attributes && propPath[i] in targetModel.attributes) {\n                targetModel = targetModel.attributes[propPath[i]];\n            }\n            else {\n                // Stop if any part of the path is missing\n                targetModel = null;\n                break;\n            }\n        }\n        if (targetModel && targetModel.attributes && propPath[propPath.length - 1] in targetModel.attributes) {\n            value = targetModel.attributes[propPath[propPath.length - 1]];\n        }\n        else {\n            value = this.model.attributes[name];\n        }\n        if (value instanceof ArrayBuffer) {\n            value = new DataView(value);\n        }\n        return value;\n    }\n    set(name, value) {\n        if (name.split(\".\")[0] in this.model.data.attributes) {\n            this.data_changes = { ...this.data_changes, [name]: value };\n        }\n        else if (name in this.model.attributes) {\n            this.model_changes = { ...this.model_changes, [name]: value };\n        }\n    }\n    save_changes() {\n        this.model.setv(this.model_changes);\n        this.model_changes = {};\n        for (const key in this.data_changes) {\n            const propPath = key.split(\".\");\n            let targetModel = this.model.data;\n            for (let i = 0; i < propPath.length - 1; i++) {\n                if (targetModel && targetModel.attributes && propPath[i] in targetModel.attributes) {\n                    targetModel = targetModel.attributes[propPath[i]];\n                }\n                else {\n                    console.warn(`Skipping '${key}': '${propPath[i]}' does not exist.`);\n                    targetModel = null;\n                    break;\n                }\n            }\n            if (targetModel && targetModel.attributes && propPath[propPath.length - 1] in targetModel.attributes) {\n                targetModel.setv({ [propPath[propPath.length - 1]]: this.data_changes[key] });\n            }\n            else {\n                console.warn(`Skipping '${key}': Final property '${propPath[propPath.length - 1]}' not found.`);\n            }\n        }\n        this.data_changes = {};\n    }\n    on(event, cb) {\n        if (event.startsWith(\"change:\")) {\n            this.model.watch(this.view, event.slice(\"change:\".length), cb);\n        }\n        else if (event === \"msg:custom\" && this.view) {\n            this.view.on_event(cb);\n        }\n        else {\n            console.error(`Event of type '${event}' not recognized.`);\n        }\n    }\n    off(event, cb) {\n        if (event.startsWith(\"change:\")) {\n            this.model.unwatch(this.view, event.slice(\"change:\".length), cb);\n        }\n        else if (event === \"msg:custom\" && this.view) {\n            this.view.remove_on_event(cb);\n        }\n        else {\n            console.error(`Event of type '${event}' not recognized.`);\n        }\n    }\n}\nAnyWidgetModelAdapter.__name__ = \"AnyWidgetModelAdapter\";\nclass AnyWidgetAdapter extends AnyWidgetModelAdapter {\n    constructor(view) {\n        super(view.model);\n        this.view = view;\n    }\n    get_child(name) {\n        const child_model = this.model.data[name];\n        if (Array.isArray(child_model)) {\n            const subchildren = [];\n            for (const subchild of child_model) {\n                const subview = this.view.get_child_view(subchild);\n                if (subview) {\n                    subchildren.push(subview.el);\n                }\n            }\n            return subchildren;\n        }\n        else {\n            return this.view.get_child_view(child_model)?.el;\n        }\n    }\n}\nAnyWidgetAdapter.__name__ = \"AnyWidgetAdapter\";\nclass AnyWidgetComponentView extends reactive_esm_1.ReactiveESMView {\n    initialize() {\n        super.initialize();\n        this.adapter = new AnyWidgetAdapter(this);\n    }\n    remove() {\n        super.remove();\n        if (this.destroyer) {\n            this.destroyer.then((d) => d({ model: this.adapter, el: this.container }));\n        }\n    }\n    after_rendered() {\n        this.render_children();\n        this._rendered = true;\n    }\n}\nexports.AnyWidgetComponentView = AnyWidgetComponentView;\nAnyWidgetComponentView.__name__ = \"AnyWidgetComponentView\";\nclass AnyWidgetComponent extends reactive_esm_1.ReactiveESM {\n    constructor(attrs) {\n        super(attrs);\n        this.sucrase_transforms = [\"typescript\", \"jsx\"];\n    }\n    _render_code() {\n        return `\nfunction render(id) {\n  const view = Bokeh.index.find_one_by_id(id)\n  if (!view) { return }\n\n  const out = Promise.resolve(view.render_fn({\n    view, model: view.adapter, data: view.model.data, el: view.container\n  }) || null)\n  view.destroyer = out\n  out.then(() => view.after_rendered())\n}\n\nexport default {render}`;\n    }\n    _run_initializer(initialize) {\n        const props = { model: new AnyWidgetModelAdapter(this) };\n        initialize(props);\n    }\n}\nexports.AnyWidgetComponent = AnyWidgetComponent;\n_a = AnyWidgetComponent;\nAnyWidgetComponent.__name__ = \"AnyWidgetComponent\";\nAnyWidgetComponent.__module__ = \"panel.models.esm\";\n(() => {\n    _a.prototype.default_view = AnyWidgetComponentView;\n})();\n//# sourceMappingURL=anywidget_component.js.map\n","type":"js","dependency_paths":[["./reactive_esm","/home/runner/work/panel/panel/panel/dist/lib/models/reactive_esm.js"]],"dependency_map":[],"exported":[{"type":"named","name":"AnyWidgetComponentView"},{"type":"named","name":"AnyWidgetComponent"}],"externals":[],"shims":[]},"code":{"source":"/* models/anywidget_component.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const reactive_esm_1 = require(\"e27ba47db3\") /* ./reactive_esm */;\n    class AnyWidgetModelAdapter {\n        constructor(model) {\n            this.view = null;\n            this.model = model;\n            this.model_changes = {};\n            this.data_changes = {};\n        }\n        get(name) {\n            let value;\n            const propPath = name.split(\".\");\n            let targetModel = this.model.data;\n            for (let i = 0; i < propPath.length - 1; i++) {\n                if (targetModel && targetModel.attributes && propPath[i] in targetModel.attributes) {\n                    targetModel = targetModel.attributes[propPath[i]];\n                }\n                else {\n                    // Stop if any part of the path is missing\n                    targetModel = null;\n                    break;\n                }\n            }\n            if (targetModel && targetModel.attributes && propPath[propPath.length - 1] in targetModel.attributes) {\n                value = targetModel.attributes[propPath[propPath.length - 1]];\n            }\n            else {\n                value = this.model.attributes[name];\n            }\n            if (value instanceof ArrayBuffer) {\n                value = new DataView(value);\n            }\n            return value;\n        }\n        set(name, value) {\n            if (name.split(\".\")[0] in this.model.data.attributes) {\n                this.data_changes = { ...this.data_changes, [name]: value };\n            }\n            else if (name in this.model.attributes) {\n                this.model_changes = { ...this.model_changes, [name]: value };\n            }\n        }\n        save_changes() {\n            this.model.setv(this.model_changes);\n            this.model_changes = {};\n            for (const key in this.data_changes) {\n                const propPath = key.split(\".\");\n                let targetModel = this.model.data;\n                for (let i = 0; i < propPath.length - 1; i++) {\n                    if (targetModel && targetModel.attributes && propPath[i] in targetModel.attributes) {\n                        targetModel = targetModel.attributes[propPath[i]];\n                    }\n                    else {\n                        console.warn(`Skipping '${key}': '${propPath[i]}' does not exist.`);\n                        targetModel = null;\n                        break;\n                    }\n                }\n                if (targetModel && targetModel.attributes && propPath[propPath.length - 1] in targetModel.attributes) {\n                    targetModel.setv({ [propPath[propPath.length - 1]]: this.data_changes[key] });\n                }\n                else {\n                    console.warn(`Skipping '${key}': Final property '${propPath[propPath.length - 1]}' not found.`);\n                }\n            }\n            this.data_changes = {};\n        }\n        on(event, cb) {\n            if (event.startsWith(\"change:\")) {\n                this.model.watch(this.view, event.slice(\"change:\".length), cb);\n            }\n            else if (event === \"msg:custom\" && this.view) {\n                this.view.on_event(cb);\n            }\n            else {\n                console.error(`Event of type '${event}' not recognized.`);\n            }\n        }\n        off(event, cb) {\n            if (event.startsWith(\"change:\")) {\n                this.model.unwatch(this.view, event.slice(\"change:\".length), cb);\n            }\n            else if (event === \"msg:custom\" && this.view) {\n                this.view.remove_on_event(cb);\n            }\n            else {\n                console.error(`Event of type '${event}' not recognized.`);\n            }\n        }\n    }\n    AnyWidgetModelAdapter.__name__ = \"AnyWidgetModelAdapter\";\n    class AnyWidgetAdapter extends AnyWidgetModelAdapter {\n        constructor(view) {\n            super(view.model);\n            this.view = view;\n        }\n        get_child(name) {\n            const child_model = this.model.data[name];\n            if (Array.isArray(child_model)) {\n                const subchildren = [];\n                for (const subchild of child_model) {\n                    const subview = this.view.get_child_view(subchild);\n                    if (subview) {\n                        subchildren.push(subview.el);\n                    }\n                }\n                return subchildren;\n            }\n            else {\n                return this.view.get_child_view(child_model)?.el;\n            }\n        }\n    }\n    AnyWidgetAdapter.__name__ = \"AnyWidgetAdapter\";\n    class AnyWidgetComponentView extends reactive_esm_1.ReactiveESMView {\n        initialize() {\n            super.initialize();\n            this.adapter = new AnyWidgetAdapter(this);\n        }\n        remove() {\n            super.remove();\n            if (this.destroyer) {\n                this.destroyer.then((d) => d({ model: this.adapter, el: this.container }));\n            }\n        }\n        after_rendered() {\n            this.render_children();\n            this._rendered = true;\n        }\n    }\n    exports.AnyWidgetComponentView = AnyWidgetComponentView;\n    AnyWidgetComponentView.__name__ = \"AnyWidgetComponentView\";\n    class AnyWidgetComponent extends reactive_esm_1.ReactiveESM {\n        constructor(attrs) {\n            super(attrs);\n            this.sucrase_transforms = [\"typescript\", \"jsx\"];\n        }\n        _render_code() {\n            return `\nfunction render(id) {\n  const view = Bokeh.index.find_one_by_id(id)\n  if (!view) { return }\n\n  const out = Promise.resolve(view.render_fn({\n    view, model: view.adapter, data: view.model.data, el: view.container\n  }) || null)\n  view.destroyer = out\n  out.then(() => view.after_rendered())\n}\n\nexport default {render}`;\n        }\n        _run_initializer(initialize) {\n            const props = { model: new AnyWidgetModelAdapter(this) };\n            initialize(props);\n        }\n    }\n    exports.AnyWidgetComponent = AnyWidgetComponent;\n    _a = AnyWidgetComponent;\n    AnyWidgetComponent.__name__ = \"AnyWidgetComponent\";\n    AnyWidgetComponent.__module__ = \"panel.models.esm\";\n    (() => {\n        _a.prototype.default_view = AnyWidgetComponentView;\n    })();\n}\n","min_source":"function _(e,t,i,n,s){var r;n();const o=e(\"e27ba47db3\");class a{constructor(e){this.view=null,this.model=e,this.model_changes={},this.data_changes={}}get(e){let t;const i=e.split(\".\");let n=this.model.data;for(let e=0;e<i.length-1;e++){if(!(n&&n.attributes&&i[e]in n.attributes)){n=null;break}n=n.attributes[i[e]]}return t=n&&n.attributes&&i[i.length-1]in n.attributes?n.attributes[i[i.length-1]]:this.model.attributes[e],t instanceof ArrayBuffer&&(t=new DataView(t)),t}set(e,t){e.split(\".\")[0]in this.model.data.attributes?this.data_changes={...this.data_changes,[e]:t}:e in this.model.attributes&&(this.model_changes={...this.model_changes,[e]:t})}save_changes(){this.model.setv(this.model_changes),this.model_changes={};for(const e in this.data_changes){const t=e.split(\".\");let i=this.model.data;for(let n=0;n<t.length-1;n++){if(!(i&&i.attributes&&t[n]in i.attributes)){console.warn(`Skipping '${e}': '${t[n]}' does not exist.`),i=null;break}i=i.attributes[t[n]]}i&&i.attributes&&t[t.length-1]in i.attributes?i.setv({[t[t.length-1]]:this.data_changes[e]}):console.warn(`Skipping '${e}': Final property '${t[t.length-1]}' not found.`)}this.data_changes={}}on(e,t){e.startsWith(\"change:\")?this.model.watch(this.view,e.slice(7),t):\"msg:custom\"===e&&this.view?this.view.on_event(t):console.error(`Event of type '${e}' not recognized.`)}off(e,t){e.startsWith(\"change:\")?this.model.unwatch(this.view,e.slice(7),t):\"msg:custom\"===e&&this.view?this.view.remove_on_event(t):console.error(`Event of type '${e}' not recognized.`)}}a.__name__=\"AnyWidgetModelAdapter\";class d extends a{constructor(e){super(e.model),this.view=e}get_child(e){const t=this.model.data[e];if(Array.isArray(t)){const e=[];for(const i of t){const t=this.view.get_child_view(i);t&&e.push(t.el)}return e}return this.view.get_child_view(t)?.el}}d.__name__=\"AnyWidgetAdapter\";class h extends o.ReactiveESMView{initialize(){super.initialize(),this.adapter=new d(this)}remove(){super.remove(),this.destroyer&&this.destroyer.then((e=>e({model:this.adapter,el:this.container})))}after_rendered(){this.render_children(),this._rendered=!0}}i.AnyWidgetComponentView=h,h.__name__=\"AnyWidgetComponentView\";class l extends o.ReactiveESM{constructor(e){super(e),this.sucrase_transforms=[\"typescript\",\"jsx\"]}_render_code(){return\"\\nfunction render(id) {\\n  const view = Bokeh.index.find_one_by_id(id)\\n  if (!view) { return }\\n\\n  const out = Promise.resolve(view.render_fn({\\n    view, model: view.adapter, data: view.model.data, el: view.container\\n  }) || null)\\n  view.destroyer = out\\n  out.then(() => view.after_rendered())\\n}\\n\\nexport default {render}\"}_run_initializer(e){e({model:new a(this)})}}i.AnyWidgetComponent=l,r=l,l.__name__=\"AnyWidgetComponent\",l.__module__=\"panel.models.esm\",r.prototype.default_view=h}\n//# sourceMappingURL=anywidget_component.min.js.map","min_map":"{\"version\":3,\"file\":\"anywidget_component.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"reactive_esm_1\",\"AnyWidgetModelAdapter\",\"constructor\",\"model\",\"this\",\"view\",\"model_changes\",\"data_changes\",\"get\",\"name\",\"value\",\"propPath\",\"split\",\"targetModel\",\"data\",\"i\",\"length\",\"attributes\",\"ArrayBuffer\",\"DataView\",\"set\",\"save_changes\",\"setv\",\"key\",\"console\",\"warn\",\"on\",\"event\",\"cb\",\"startsWith\",\"watch\",\"slice\",\"on_event\",\"error\",\"off\",\"unwatch\",\"remove_on_event\",\"__name__\",\"AnyWidgetAdapter\",\"super\",\"get_child\",\"child_model\",\"Array\",\"isArray\",\"subchildren\",\"subchild\",\"subview\",\"get_child_view\",\"push\",\"el\",\"AnyWidgetComponentView\",\"ReactiveESMView\",\"initialize\",\"adapter\",\"remove\",\"destroyer\",\"then\",\"d\",\"container\",\"after_rendered\",\"render_children\",\"_rendered\",\"AnyWidgetComponent\",\"ReactiveESM\",\"attrs\",\"sucrase_transforms\",\"_render_code\",\"_run_initializer\",\"__module__\",\"prototype\",\"default_view\"],\"sources\":[\"0\"],\"mappings\":\"AAAoC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACjF,IAAIC,EACJF,IACA,MAAMG,EAAiBN,EAAQ,cAC/B,MAAMO,EACF,WAAAC,CAAYC,GACRC,KAAKC,KAAO,KACZD,KAAKD,MAAQA,EACbC,KAAKE,cAAgB,CAAC,EACtBF,KAAKG,aAAe,CAAC,CACzB,CACA,GAAAC,CAAIC,GACA,IAAIC,EACJ,MAAMC,EAAWF,EAAKG,MAAM,KAC5B,IAAIC,EAAcT,KAAKD,MAAMW,KAC7B,IAAK,IAAIC,EAAI,EAAGA,EAAIJ,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A,EACjCA,EAAuBb,SAAW,yBAClC,MAAMyB,UAA2B9D,EAAe+D,YAC5C,WAAA7D,CAAY8D,GACRzB,MAAMyB,GACN5D,KAAK6D,mBAAqB,CAAC,aAAc,MAC7C,CACA,YAAAC,GACI,MAAO,2UAaX,CACA,gBAAAC,CAAiBf,GAEbA,EADc,CAAEjD,MAAO,IAAIF,EAAsBG,OAErD,EAEJR,EAAQkE,mBAAqBA,EAC7B/D,EAAK+D,EACLA,EAAmBzB,SAAW,qBAC9ByB,EAAmBM,WAAa,mBAE5BrE,EAAGsE,UAAUC,aAAepB,CAEpC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/reactive_esm.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/reactive_esm.js","canonical":"models/reactive_esm","resolution":"ESM","id":"e27ba47db3","hash":"e27ba47db3a63316673faab083bb286ba7b75b8ed2b776e0d5280269c2590cf2","source":"\"use strict\";\nvar _a, _b, _c;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReactiveESM = exports.RenderPolicy = exports.ReactiveESMView = exports.ESMEvent = exports.DataEvent = void 0;\nexports.model_getter = model_getter;\nexports.model_setter = model_setter;\nconst tslib_1 = require(\"tslib\");\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n        r = Reflect.decorate(decorators, target, key, desc);\n    else\n        for (var i = decorators.length - 1; i >= 0; i--)\n            if (d = decorators[i])\n                r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ESMEvent_1;\nconst sucrase_1 = require(\"sucrase\");\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst dom_2 = require(\"@bokehjs/core/dom\");\nconst kinds_1 = require(\"@bokehjs/core/kinds\");\nconst layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\nconst types_1 = require(\"@bokehjs/core/util/types\");\nconst event_to_object_1 = require(\"./event-to-object\");\nconst html_1 = require(\"./html\");\nconst layout_1 = require(\"./layout\");\nconst util_1 = require(\"./util\");\nconst esm_css_1 = tslib_1.__importDefault(require(\"../styles/models/esm.css\"));\nconst MODULE_CACHE = new Map();\nclass DataEvent extends bokeh_events_1.ModelEvent {\n    constructor(data) {\n        super();\n        this.data = data;\n    }\n    get event_values() {\n        return { model: this.origin, data: this.data };\n    }\n}\nexports.DataEvent = DataEvent;\n_a = DataEvent;\nDataEvent.__name__ = \"DataEvent\";\n(() => {\n    _a.prototype.event_name = \"data_event\";\n})();\nlet ESMEvent = (_b = class ESMEvent extends DataEvent {\n        static from_values(values) {\n            const { model, data } = values;\n            const event = new ESMEvent_1(data);\n            event.origin = model;\n            return event;\n        }\n    },\n    (() => {\n        ESMEvent_1 = _b;\n    })(),\n    _b.__name__ = \"ESMEvent\",\n    _b);\nexports.ESMEvent = ESMEvent;\nexports.ESMEvent = ESMEvent = ESMEvent_1 = __decorate([\n    (0, bokeh_events_1.server_event)(\"esm_event\")\n], ESMEvent);\nfunction model_getter(target, name) {\n    const model = target.model;\n    if (name === \"get_child\") {\n        return (child) => {\n            if (!target.accessed_children.includes(child)) {\n                target.accessed_children.push(child);\n            }\n            const child_model = model.data[child];\n            if ((0, types_1.isArray)(child_model)) {\n                const children = [];\n                for (const subchild of child_model) {\n                    children.push(target.get_child_view(subchild)?.el);\n                }\n                return children;\n            }\n            else if (model != null) {\n                return target.get_child_view(child_model)?.el;\n            }\n            return null;\n        };\n    }\n    else if (name === \"send_msg\") {\n        return (data) => {\n            model.trigger_event(new DataEvent(data));\n        };\n    }\n    else if (name === \"send_event\") {\n        return (name, event) => {\n            const serialized = (0, util_1.convertUndefined)((0, event_to_object_1.serializeEvent)(event));\n            model.trigger_event(new html_1.DOMEvent(name, serialized));\n        };\n    }\n    else if (name === \"off\") {\n        return (prop, callback) => {\n            const props = (0, types_1.isArray)(prop) ? prop : [prop];\n            for (let p of props) {\n                if (p.startsWith(\"change:\")) {\n                    p = p.slice(\"change:\".length);\n                }\n                if (p in model.attributes || p.split(\".\")[0] in model.data.attributes) {\n                    model.unwatch(target, p, callback);\n                    continue;\n                }\n                else if (p === \"msg:custom\") {\n                    target.remove_on_event(callback);\n                    continue;\n                }\n                if (p.startsWith(\"lifecycle:\")) {\n                    p = p.slice(\"lifecycle:\".length);\n                }\n                if (target._lifecycle_handlers.has(p)) {\n                    const handlers = target._lifecycle_handlers.get(p);\n                    if (handlers && handlers.includes(callback)) {\n                        target._lifecycle_handlers.set(p, handlers.filter(v => v !== callback));\n                    }\n                    continue;\n                }\n                console.warn(`Could not unregister callback for event type '${p}'`);\n            }\n        };\n    }\n    else if (name === \"on\") {\n        return (prop, callback, force = false) => {\n            const props = (0, types_1.isArray)(prop) ? prop : [prop];\n            for (let p of props) {\n                if (p.startsWith(\"change:\")) {\n                    p = p.slice(\"change:\".length);\n                }\n                if (p in model.attributes || p.split(\".\")[0] in model.data.attributes) {\n                    model.watch(target, p, callback, force);\n                    continue;\n                }\n                else if (p === \"msg:custom\") {\n                    target.on_event(callback);\n                    continue;\n                }\n                if (p.startsWith(\"lifecycle:\")) {\n                    p = p.slice(\"lifecycle:\".length);\n                }\n                if (target._lifecycle_handlers.has(p)) {\n                    (target._lifecycle_handlers.get(p) || []).push(callback);\n                    continue;\n                }\n                console.warn(`Could not register callback for event type '${p}'`);\n            }\n        };\n    }\n    else if (Reflect.has(model.data, name)) {\n        if (name in model.data.attributes && !target.accessed_properties.includes(name)) {\n            target.accessed_properties.push(name);\n        }\n        return Reflect.get(model.data, name);\n    }\n    else if (Reflect.has(model, name)) {\n        return Reflect.get(model, name);\n    }\n    return undefined;\n}\nfunction model_setter(target, name, value) {\n    const model = target.model;\n    if (Reflect.has(model.data, name)) {\n        return Reflect.set(model.data, name, value);\n    }\n    else if (Reflect.has(model, name)) {\n        return Reflect.set(model, name, value);\n    }\n    return false;\n}\nfunction init_model_getter(target, name) {\n    if (Reflect.has(target.data, name)) {\n        return Reflect.get(target.data, name);\n    }\n    else if (Reflect.has(target, name)) {\n        return Reflect.get(target, name);\n    }\n}\nfunction init_model_setter(target, name, value) {\n    if (Reflect.has(target.data, name)) {\n        return Reflect.set(target.data, name, value);\n    }\n    else if (Reflect.has(target, name)) {\n        return Reflect.set(target, name, value);\n    }\n    return false;\n}\nclass ReactiveESMView extends layout_1.HTMLBoxView {\n    constructor() {\n        super(...arguments);\n        this.accessed_properties = [];\n        this.accessed_children = [];\n        this.compiled_module = null;\n        this._changing = false;\n        this._child_rendered = new Map();\n        this._event_handlers = [];\n        this._lifecycle_handlers = new Map([\n            [\"update_layout\", []],\n            [\"after_layout\", []],\n            [\"after_render\", []],\n            [\"resize\", []],\n            [\"remove\", []],\n            [\"mounted\", []],\n        ]);\n        this._rendered = false;\n        this._stale_children = false;\n        this._mounted = new Map();\n    }\n    initialize() {\n        super.initialize();\n        this._module_cache = MODULE_CACHE;\n        this._child_callbacks = new Map();\n        this.model_proxy = new Proxy(this, {\n            get: model_getter,\n            set: model_setter,\n        });\n    }\n    async lazy_initialize() {\n        await super.lazy_initialize();\n        this.compiled_module = await this.model.compiled_module;\n    }\n    stylesheets() {\n        const stylesheets = super.stylesheets();\n        stylesheets.push(esm_css_1.default);\n        if (this.model.css_bundle) {\n            if (this.model.bundle === \"url\") {\n                stylesheets.push(new dom_2.ImportedStyleSheet(this.model.css_bundle));\n            }\n            else {\n                stylesheets.push(this.model.css_bundle);\n            }\n        }\n        return stylesheets;\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { esm, importmap, class_name } = this.model.properties;\n        this.on_change([esm, importmap], async () => {\n            this.compiled_module = await this.model.compiled_module;\n            this.invalidate_render();\n        });\n        this.on_change(class_name, () => {\n            this.container.className = this.model.class_name.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n        });\n        const child_props = this.model.children.map((child) => this.model.data.properties[child]);\n        for (const cp of child_props) {\n            cp.change.connect(() => this.update_children());\n        }\n        this.on_change([], () => {\n            if (this.model.render_policy !== \"manual\") {\n                this.render_esm();\n            }\n        });\n        this.model.on_event(ESMEvent, (event) => {\n            for (const cb of this._event_handlers) {\n                cb(event.data);\n            }\n        });\n    }\n    disconnect_signals() {\n        super.disconnect_signals();\n        this._child_callbacks = new Map();\n        this.model.disconnect_watchers(this);\n    }\n    _on_mounted() { }\n    notify_mount(child, id, remove) {\n        if (!this._mounted.has(child)) {\n            this._mounted.set(child, new Set());\n        }\n        if (remove) {\n            this._mounted.get(child)?.delete(id);\n        }\n        else {\n            this._mounted.get(child)?.add(id);\n        }\n        let children = this.model.data[child];\n        if (!(0, types_1.isArray)(children)) {\n            children = [children];\n        }\n        if (children.every((model) => this._mounted.get(child)?.has(model.id))) {\n            this._on_mounted();\n            for (const cb of this._lifecycle_handlers.get(\"mounted\") || []) {\n                cb(child);\n            }\n        }\n    }\n    on_event(callback) {\n        this._event_handlers.push(callback);\n    }\n    remove_on_event(callback) {\n        if (this._event_handlers.includes(callback)) {\n            this._event_handlers = this._event_handlers.filter((item) => item !== callback);\n            return true;\n        }\n        return false;\n    }\n    get_child_view(model) {\n        return this._child_views.get(model);\n    }\n    get render_fn() {\n        if (this.compiled_module === null) {\n            return null;\n        }\n        else if (this.compiled_module.default) {\n            return this.compiled_module.default.render;\n        }\n        else {\n            return this.compiled_module.render;\n        }\n    }\n    get child_models() {\n        const children = [];\n        for (const child of this.model.children) {\n            const model = this.model.data[child];\n            if ((0, types_1.isArray)(model)) {\n                for (const subchild of model) {\n                    children.push(subchild);\n                }\n            }\n            else if (model != null) {\n                children.push(model);\n            }\n        }\n        return children;\n    }\n    render_error(error) {\n        const error_div = (0, dom_1.div)({ class: \"error\" });\n        error_div.innerHTML = (0, util_1.formatError)(error, this.model.esm);\n        this.container.appendChild(error_div);\n    }\n    render() {\n        this.empty();\n        this._update_stylesheets();\n        this._update_css_classes();\n        this._apply_styles();\n        this._update_css_variables();\n        this._apply_visible();\n        this._child_callbacks = new Map();\n        this._child_rendered.clear();\n        this._rendered = false;\n        (0, layout_1.set_size)(this.el, this.model);\n        this.container = (0, dom_1.div)();\n        this.container.className = this.model.class_name.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n        (0, layout_1.set_size)(this.container, this.model, false);\n        this.shadow_el.append(this.container);\n        if (this.model.compile_error) {\n            this.render_error(this.model.compile_error);\n        }\n        else {\n            this.render_esm();\n        }\n        for (const element_view of this.element_views) {\n            // this.shadow_el is needed for Bokeh < 3.7.0 as this.self_target is not defined\n            // can be removed when our minimum version is Bokeh 3.7.0\n            // https://github.com/holoviz/panel/pull/7948\n            const target = element_view.rendering_target() ?? this.self_target ?? this.shadow_el;\n            element_view.render_to(target);\n        }\n    }\n    get is_managed() {\n        return this.parent instanceof layout_dom_1.LayoutDOMView && !(this.parent instanceof ReactiveESMView);\n    }\n    compute_layout() {\n        if (this.is_managed) {\n            super.compute_layout();\n            return;\n        }\n        this.measure_layout();\n        this.update_bbox();\n        this._compute_layout();\n        this.after_layout();\n        // Override private property\n        this._layout_computed = true;\n    }\n    _update_bbox() {\n        const displayed = (() => {\n            // Consider using Element.checkVisibility() in the future.\n            // https://w3c.github.io/csswg-drafts/cssom-view-1/#dom-element-checkvisibility\n            if (!this.el.isConnected) {\n                return false;\n            }\n            else if (this.el.offsetParent != null) {\n                return true;\n            }\n            else {\n                const { position, display } = getComputedStyle(this.el);\n                return position == \"fixed\" && display != \"none\";\n            }\n        })();\n        // Override private property\n        this._is_displayed = displayed;\n        return true;\n    }\n    after_rendered() {\n        const handlers = (this._lifecycle_handlers.get(\"after_render\") || []);\n        for (const cb of handlers) {\n            cb();\n        }\n        this.render_children();\n        this.model_proxy.on(this.accessed_children, () => { this._stale_children = true; });\n        if (!this._rendered) {\n            for (const cb of (this._lifecycle_handlers.get(\"after_layout\") || [])) {\n                cb();\n            }\n        }\n        this._rendered = true;\n    }\n    render_esm() {\n        if (this.model.compiled === null || this.model.render_module === null) {\n            return;\n        }\n        this.container.replaceChildren();\n        this.accessed_properties = [];\n        for (const lf of this._lifecycle_handlers.keys()) {\n            (this._lifecycle_handlers.get(lf) || []).splice(0);\n        }\n        this.model.disconnect_watchers(this);\n        this.model.render_module.then((mod) => mod.default.render(this.model.id));\n    }\n    render_children() {\n        for (const child of this.model.children) {\n            if (!this.accessed_children.includes(child)) {\n                return;\n            }\n            const child_model = this.model.data[child];\n            const children = (0, types_1.isArray)(child_model) ? child_model : [child_model];\n            for (const subchild of children) {\n                const view = this._child_views.get(subchild);\n                if (!view) {\n                    continue;\n                }\n                const parent = view.el.parentNode;\n                if (parent && !this._child_rendered.has(view)) {\n                    this.rerender_(view);\n                    this._child_rendered.set(view, true);\n                }\n            }\n        }\n        this._stale_children = false;\n        this.after_render();\n    }\n    has_finished() {\n        if (!super.has_finished()) {\n            return false;\n        }\n        if (this.is_layout_root && !this._layout_computed) {\n            return false;\n        }\n        for (const child_view of this.child_views) {\n            if (!child_view.has_finished() && this._child_rendered.has(child_view)) {\n                return false;\n            }\n        }\n        return true;\n    }\n    invalidate_layout() {\n        if (this.is_managed) {\n            super.invalidate_layout();\n            return;\n        }\n        this.update_layout();\n        this.compute_layout();\n    }\n    remove() {\n        super.remove();\n        for (const cb of (this._lifecycle_handlers.get(\"remove\") || [])) {\n            cb();\n        }\n        this._child_callbacks.clear();\n        this._child_rendered.clear();\n        this._mounted.clear();\n    }\n    after_resize() {\n        if (this._rendered && !this._changing) {\n            super.after_resize();\n            for (const cb of (this._lifecycle_handlers.get(\"resize\") || [])) {\n                cb();\n            }\n        }\n    }\n    after_layout() {\n        super.after_layout();\n        if (this._rendered && !this._changing) {\n            for (const cb of (this._lifecycle_handlers.get(\"after_layout\") || [])) {\n                cb();\n            }\n        }\n    }\n    _lookup_child(child_view) {\n        for (const child of this.model.children) {\n            let models = this.model.data[child];\n            models = (0, types_1.isArray)(models) ? models : [models];\n            for (const model of models) {\n                if (model === child_view.model) {\n                    return child;\n                }\n            }\n        }\n        return null;\n    }\n    async update_children() {\n        const created_children = new Set(await this.build_child_views());\n        const all_views = this.child_views;\n        if (this.model.render_policy !== \"manual\") {\n            for (const child_view of all_views) {\n                child_view.el.remove();\n            }\n        }\n        const new_views = new Map();\n        for (const child_view of this.child_views) {\n            if (!created_children.has(child_view)) {\n                continue;\n            }\n            const child = this._lookup_child(child_view);\n            if (!child) {\n                continue;\n            }\n            if (new_views.has(child)) {\n                new_views.get(child).push(child_view);\n            }\n            else {\n                new_views.set(child, [child_view]);\n            }\n        }\n        for (const view of this._child_rendered.keys()) {\n            if (!all_views.includes(view)) {\n                this._child_rendered.delete(view);\n            }\n        }\n        for (const child of this.model.children) {\n            const callbacks = this._child_callbacks.get(child) || [];\n            const new_children = new_views.get(child) || [];\n            for (const callback of callbacks) {\n                callback(new_children);\n            }\n        }\n        if (this._stale_children && this.model.render_policy !== \"manual\") {\n            this.render_esm();\n            this._update_children();\n            this.invalidate_layout();\n        }\n        this._stale_children = false;\n    }\n    on_child_render(child, callback) {\n        if (!this._child_callbacks.has(child)) {\n            this._child_callbacks.set(child, []);\n        }\n        const callbacks = this._child_callbacks.get(child) || [];\n        callbacks.push(callback);\n    }\n    remove_on_child_render(child, callback) {\n        if (!this._child_callbacks.has(child)) {\n            return;\n        }\n        if (callback === undefined) {\n            this._child_callbacks.delete(child);\n        }\n        else {\n            let callbacks = this._child_callbacks.get(child) || [];\n            callbacks = callbacks.filter((cb) => cb !== callback);\n            this._child_callbacks.set(child, callbacks);\n        }\n    }\n}\nexports.ReactiveESMView = ReactiveESMView;\nReactiveESMView.__name__ = \"ReactiveESMView\";\nexports.RenderPolicy = (0, kinds_1.Enum)(\"manual\", \"children\");\nclass ReactiveESM extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n        this.compiled = null;\n        this.compiled_module = null;\n        this.compile_error = null;\n        this.render_module = null;\n        this.sucrase_transforms = [\"typescript\"];\n        this._destroyer = null;\n        this._esm_watchers = {};\n        this._event_callbacks = new Map();\n    }\n    initialize() {\n        super.initialize();\n        this.model_proxy = new Proxy(this, {\n            get: init_model_getter,\n            set: init_model_setter,\n        });\n        this.recompile();\n    }\n    connect_signals() {\n        super.connect_signals();\n        this.connect(this.properties.esm.change, () => this.recompile());\n        this.connect(this.properties.importmap.change, () => this.recompile());\n    }\n    watch(view, prop, cb, force = false) {\n        const propPath = prop.split(\".\");\n        let target = this.data;\n        let resolvedProp = null;\n        for (let i = 0; i < propPath.length - 1; i++) {\n            if (target && target.properties && propPath[i] in target.properties) {\n                target = target[propPath[i]];\n            }\n            else {\n                // Break if any level of the path is invalid\n                target = null;\n                break;\n            }\n        }\n        if (target && target.properties && propPath[propPath.length - 1] in target.properties) {\n            resolvedProp = propPath[propPath.length - 1];\n        }\n        // Handle reset of param.Event properties\n        if (!force && target === this.data && resolvedProp && this.events.includes(resolvedProp)) {\n            const orig_cb = cb;\n            cb = () => {\n                if (resolvedProp && this.data[resolvedProp]) {\n                    orig_cb();\n                    this.data.setv({ [resolvedProp]: false });\n                }\n            };\n            this._event_callbacks.set(orig_cb, cb);\n        }\n        // Attach watcher if property is found\n        if (resolvedProp && target) {\n            if (this.children.includes(resolvedProp)) {\n                const orig_cb = cb;\n                cb = async () => {\n                    if (view) {\n                        view._stale_children = true;\n                    }\n                    if (view && view._stale_children) {\n                        await new Promise(resolve => {\n                            const check = () => {\n                                if (!view._stale_children) {\n                                    resolve(undefined);\n                                }\n                                else {\n                                    setTimeout(check, 10);\n                                }\n                            };\n                            check();\n                        });\n                    }\n                    orig_cb();\n                    if (view && this.render_policy === \"manual\") {\n                        view.render_children();\n                        view._update_children();\n                        view.invalidate_layout();\n                    }\n                };\n            }\n            target.property(resolvedProp).change.connect(cb);\n        }\n        else if (prop in this.properties) {\n            this.property(prop).change.connect(cb);\n        }\n        if (prop in this._esm_watchers) {\n            this._esm_watchers[prop].push([view, cb]);\n        }\n        else {\n            this._esm_watchers[prop] = [[view, cb]];\n        }\n    }\n    unwatch(view, prop, cb) {\n        if (!(prop in this._esm_watchers)) {\n            return false;\n        }\n        // Filter out the specific callback for this view\n        const remaining = [];\n        for (const [wview, wcb] of this._esm_watchers[prop]) {\n            if (wview !== view || wcb !== cb) {\n                remaining.push([wview, wcb]);\n            }\n        }\n        // Update or delete watcher list\n        if (remaining.length > 0) {\n            this._esm_watchers[prop] = remaining;\n        }\n        else {\n            delete this._esm_watchers[prop];\n        }\n        // Resolve nested properties\n        const propPath = prop.split(\".\");\n        let target = this.data;\n        let resolvedProp = null;\n        for (let i = 0; i < propPath.length - 1; i++) {\n            if (target && target.properties && propPath[i] in target.properties) {\n                target = target[propPath[i]];\n            }\n            else {\n                // Stop if the path does not exist\n                target = null;\n                break;\n            }\n        }\n        if (target && target.properties && propPath[propPath.length - 1] in target.properties) {\n            resolvedProp = propPath[propPath.length - 1];\n        }\n        if (this._event_callbacks.has(cb)) {\n            cb = this._event_callbacks.get(cb);\n            this._event_callbacks.delete(cb);\n        }\n        // Detach watcher if property is found\n        if (resolvedProp && target) {\n            return target.property(resolvedProp).change.disconnect(cb);\n        }\n        else if (prop in this.properties) {\n            return this.property(prop).change.disconnect(cb);\n        }\n        return false;\n    }\n    disconnect_watchers(view) {\n        for (const p in this._esm_watchers) {\n            const prop = this.data.properties[p];\n            const remaining = [];\n            for (const [wview, cb] of this._esm_watchers[p]) {\n                if (wview === view) {\n                    prop?.change.disconnect(cb);\n                }\n                else {\n                    remaining.push([wview, cb]);\n                }\n            }\n            if (remaining.length > 0) {\n                this._esm_watchers[p] = remaining;\n            }\n            else {\n                delete this._esm_watchers[p];\n            }\n        }\n    }\n    _declare_importmap() {\n        if (this.importmap) {\n            const importMap = { ...this.importmap };\n            try {\n                // @ts-ignore\n                importShim.addImportMap(importMap);\n            }\n            catch (e) {\n                console.warn(`Failed to add import map: ${e}`);\n            }\n        }\n    }\n    _run_initializer(initialize) {\n        const props = { model: this.model_proxy };\n        this._destroyer = initialize(props);\n    }\n    destroy() {\n        super.destroy();\n        if (this._destroyer) {\n            this._destroyer(this.model_proxy);\n        }\n    }\n    init_module() {\n        if (this.compile_error) {\n            return;\n        }\n        else if (MODULE_CACHE.has(this._render_cache_key)) {\n            this.render_module = MODULE_CACHE.get(this._render_cache_key);\n        }\n        else {\n            const code = this._render_code();\n            const render_url = URL.createObjectURL(new Blob([code], { type: \"text/javascript\" }));\n            // @ts-ignore\n            this.render_module = importShim(render_url);\n            MODULE_CACHE.set(this._render_cache_key, this.render_module);\n        }\n    }\n    _render_code() {\n        return `\nfunction render(id) {\n  const view = Bokeh.index.find_one_by_id(id)\n  if (view == null) {\n    return null\n  }\n\n  const output = view.render_fn({\n    view: view, model: view.model_proxy, data: view.model.data, el: view.container\n  })\n\n  Promise.resolve(output).then((out) => {\n    if (out instanceof Element) {\n      view.container.replaceChildren(out)\n    }\n    view.after_rendered()\n  })\n}\n\nexport default {render}`;\n    }\n    get _render_cache_key() {\n        return \"reactive_esm\";\n    }\n    compile() {\n        if (this.bundle != null) {\n            return this.esm;\n        }\n        let compiled;\n        try {\n            compiled = (0, sucrase_1.transform)(this.esm, {\n                transforms: this.sucrase_transforms,\n                filePath: \"render.tsx\",\n            }).code;\n        }\n        catch (e) {\n            if (e instanceof SyntaxError) {\n                if (this.dev) {\n                    this.compile_error = e;\n                    return null;\n                }\n                else {\n                    e.message = `${e.message}. See more information with '--dev' flag.`;\n                    throw e;\n                }\n            }\n            else {\n                throw e;\n            }\n        }\n        return compiled;\n    }\n    async recompile() {\n        this.compile_error = null;\n        const compiled = this.compile();\n        if (compiled === null) {\n            this.compiled_module = Promise.resolve(null);\n            return;\n        }\n        this.compiled = compiled;\n        this._declare_importmap();\n        let esm_module;\n        const use_cache = (!this.dev || this.bundle);\n        const cache_key = (this.bundle === \"url\") ? this.esm : (this.bundle || `${this.class_name}-${this.esm.length}`);\n        let resolve;\n        if (use_cache && MODULE_CACHE.has(cache_key)) {\n            esm_module = Promise.resolve(MODULE_CACHE.get(cache_key));\n        }\n        else {\n            if (use_cache) {\n                MODULE_CACHE.set(cache_key, new Promise((res) => { resolve = res; }));\n            }\n            let url;\n            if (this.bundle === \"url\") {\n                url = this.esm;\n            }\n            else {\n                url = URL.createObjectURL(new Blob([this.compiled], { type: \"text/javascript\" }));\n            }\n            esm_module = window.importShim(url);\n        }\n        this.compiled_module = esm_module.then((mod) => {\n            if (resolve) {\n                resolve(mod);\n            }\n            try {\n                let initialize;\n                if (this.bundle != null && (mod.default || {}).hasOwnProperty(this.class_name)) {\n                    mod = mod.default[this.class_name];\n                }\n                if (mod.initialize) {\n                    initialize = mod.initialize;\n                }\n                else if (mod.default && mod.default.initialize) {\n                    initialize = mod.default.initialize;\n                }\n                else if (typeof mod.default === \"function\") {\n                    const initialized = mod.default();\n                    mod = { default: initialized };\n                    initialize = initialized.initialize;\n                }\n                if (initialize) {\n                    this._run_initializer(initialize);\n                }\n                this.init_module();\n                return mod;\n            }\n            catch (e) {\n                if (this.dev) {\n                    this.compile_error = e;\n                }\n                console.error(`Could not initialize module due to error: ${e}`);\n                return null;\n            }\n        });\n    }\n}\nexports.ReactiveESM = ReactiveESM;\n_c = ReactiveESM;\nReactiveESM.__name__ = \"ReactiveESM\";\nReactiveESM.__module__ = \"panel.models.esm\";\n(() => {\n    _c.prototype.default_view = ReactiveESMView;\n    _c.define(({ Any, Array, Bool, Nullable, Str }) => ({\n        _defs: [Array(Any), []],\n        css_bundle: [Nullable(Str), null],\n        bundle: [Nullable(Str), null],\n        children: [Array(Str), []],\n        class_name: [Str, \"\"],\n        data: [Any],\n        dev: [Bool, false],\n        esm: [Str, \"\"],\n        events: [Array(Str), []],\n        importmap: [Any, {}],\n        render_policy: [exports.RenderPolicy, \"children\"],\n    }));\n})();\n//# sourceMappingURL=reactive_esm.js.map\n","type":"js","dependency_paths":[["sucrase","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/index.js"],["./event-to-object","/home/runner/work/panel/panel/panel/dist/lib/models/event-to-object.js"],["./html","/home/runner/work/panel/panel/panel/dist/lib/models/html.js"],["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"],["./util","/home/runner/work/panel/panel/panel/dist/lib/models/util.js"],["../styles/models/esm.css","/home/runner/work/panel/panel/panel/dist/lib/styles/models/esm.css.js"]],"dependency_map":[],"exported":[{"type":"named","name":"DataEvent"},{"type":"named","name":"model_getter"},{"type":"named","name":"model_setter"},{"type":"named","name":"ReactiveESMView"},{"type":"named","name":"ReactiveESM"}],"externals":[],"shims":[]},"code":{"source":"/* models/reactive_esm.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a, _b, _c;\n    __esModule();\n    exports.model_getter = model_getter;\n    exports.model_setter = model_setter;\n    const tslib_1 = require(\"tslib\");\n    var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n        if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n            r = Reflect.decorate(decorators, target, key, desc);\n        else\n            for (var i = decorators.length - 1; i >= 0; i--)\n                if (d = decorators[i])\n                    r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n        return c > 3 && r && Object.defineProperty(target, key, r), r;\n    };\n    var ESMEvent_1;\n    const sucrase_1 = require(\"48024289a4\") /* sucrase */;\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const dom_2 = require(\"@bokehjs/core/dom\");\n    const kinds_1 = require(\"@bokehjs/core/kinds\");\n    const layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    const event_to_object_1 = require(\"a572dba9cd\") /* ./event-to-object */;\n    const html_1 = require(\"4c04683fdc\") /* ./html */;\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    const util_1 = require(\"a3669a897a\") /* ./util */;\n    const esm_css_1 = tslib_1.__importDefault(require(\"727a14f76b\") /* ../styles/models/esm.css */);\n    const MODULE_CACHE = new Map();\n    class DataEvent extends bokeh_events_1.ModelEvent {\n        constructor(data) {\n            super();\n            this.data = data;\n        }\n        get event_values() {\n            return { model: this.origin, data: this.data };\n        }\n    }\n    exports.DataEvent = DataEvent;\n    _a = DataEvent;\n    DataEvent.__name__ = \"DataEvent\";\n    (() => {\n        _a.prototype.event_name = \"data_event\";\n    })();\n    let ESMEvent = (_b = class ESMEvent extends DataEvent {\n        static from_values(values) {\n            const { model, data } = values;\n            const event = new ESMEvent_1(data);\n            event.origin = model;\n            return event;\n        }\n    },\n        (() => {\n            ESMEvent_1 = _b;\n        })(),\n        _b.__name__ = \"ESMEvent\",\n        _b);\n    exports.ESMEvent = ESMEvent;\n    exports.ESMEvent = ESMEvent = ESMEvent_1 = __decorate([\n        (0, bokeh_events_1.server_event)(\"esm_event\")\n    ], ESMEvent);\n    function model_getter(target, name) {\n        const model = target.model;\n        if (name === \"get_child\") {\n            return (child) => {\n                if (!target.accessed_children.includes(child)) {\n                    target.accessed_children.push(child);\n                }\n                const child_model = model.data[child];\n                if ((0, types_1.isArray)(child_model)) {\n                    const children = [];\n                    for (const subchild of child_model) {\n                        children.push(target.get_child_view(subchild)?.el);\n                    }\n                    return children;\n                }\n                else if (model != null) {\n                    return target.get_child_view(child_model)?.el;\n                }\n                return null;\n            };\n        }\n        else if (name === \"send_msg\") {\n            return (data) => {\n                model.trigger_event(new DataEvent(data));\n            };\n        }\n        else if (name === \"send_event\") {\n            return (name, event) => {\n                const serialized = (0, util_1.convertUndefined)((0, event_to_object_1.serializeEvent)(event));\n                model.trigger_event(new html_1.DOMEvent(name, serialized));\n            };\n        }\n        else if (name === \"off\") {\n            return (prop, callback) => {\n                const props = (0, types_1.isArray)(prop) ? prop : [prop];\n                for (let p of props) {\n                    if (p.startsWith(\"change:\")) {\n                        p = p.slice(\"change:\".length);\n                    }\n                    if (p in model.attributes || p.split(\".\")[0] in model.data.attributes) {\n                        model.unwatch(target, p, callback);\n                        continue;\n                    }\n                    else if (p === \"msg:custom\") {\n                        target.remove_on_event(callback);\n                        continue;\n                    }\n                    if (p.startsWith(\"lifecycle:\")) {\n                        p = p.slice(\"lifecycle:\".length);\n                    }\n                    if (target._lifecycle_handlers.has(p)) {\n                        const handlers = target._lifecycle_handlers.get(p);\n                        if (handlers && handlers.includes(callback)) {\n                            target._lifecycle_handlers.set(p, handlers.filter(v => v !== callback));\n                        }\n                        continue;\n                    }\n                    console.warn(`Could not unregister callback for event type '${p}'`);\n                }\n            };\n        }\n        else if (name === \"on\") {\n            return (prop, callback, force = false) => {\n                const props = (0, types_1.isArray)(prop) ? prop : [prop];\n                for (let p of props) {\n                    if (p.startsWith(\"change:\")) {\n                        p = p.slice(\"change:\".length);\n                    }\n                    if (p in model.attributes || p.split(\".\")[0] in model.data.attributes) {\n                        model.watch(target, p, callback, force);\n                        continue;\n                    }\n                    else if (p === \"msg:custom\") {\n                        target.on_event(callback);\n                        continue;\n                    }\n                    if (p.startsWith(\"lifecycle:\")) {\n                        p = p.slice(\"lifecycle:\".length);\n                    }\n                    if (target._lifecycle_handlers.has(p)) {\n                        (target._lifecycle_handlers.get(p) || []).push(callback);\n                        continue;\n                    }\n                    console.warn(`Could not register callback for event type '${p}'`);\n                }\n            };\n        }\n        else if (Reflect.has(model.data, name)) {\n            if (name in model.data.attributes && !target.accessed_properties.includes(name)) {\n                target.accessed_properties.push(name);\n            }\n            return Reflect.get(model.data, name);\n        }\n        else if (Reflect.has(model, name)) {\n            return Reflect.get(model, name);\n        }\n        return undefined;\n    }\n    function model_setter(target, name, value) {\n        const model = target.model;\n        if (Reflect.has(model.data, name)) {\n            return Reflect.set(model.data, name, value);\n        }\n        else if (Reflect.has(model, name)) {\n            return Reflect.set(model, name, value);\n        }\n        return false;\n    }\n    function init_model_getter(target, name) {\n        if (Reflect.has(target.data, name)) {\n            return Reflect.get(target.data, name);\n        }\n        else if (Reflect.has(target, name)) {\n            return Reflect.get(target, name);\n        }\n    }\n    function init_model_setter(target, name, value) {\n        if (Reflect.has(target.data, name)) {\n            return Reflect.set(target.data, name, value);\n        }\n        else if (Reflect.has(target, name)) {\n            return Reflect.set(target, name, value);\n        }\n        return false;\n    }\n    class ReactiveESMView extends layout_1.HTMLBoxView {\n        constructor() {\n            super(...arguments);\n            this.accessed_properties = [];\n            this.accessed_children = [];\n            this.compiled_module = null;\n            this._changing = false;\n            this._child_rendered = new Map();\n            this._event_handlers = [];\n            this._lifecycle_handlers = new Map([\n                [\"update_layout\", []],\n                [\"after_layout\", []],\n                [\"after_render\", []],\n                [\"resize\", []],\n                [\"remove\", []],\n                [\"mounted\", []],\n            ]);\n            this._rendered = false;\n            this._stale_children = false;\n            this._mounted = new Map();\n        }\n        initialize() {\n            super.initialize();\n            this._module_cache = MODULE_CACHE;\n            this._child_callbacks = new Map();\n            this.model_proxy = new Proxy(this, {\n                get: model_getter,\n                set: model_setter,\n            });\n        }\n        async lazy_initialize() {\n            await super.lazy_initialize();\n            this.compiled_module = await this.model.compiled_module;\n        }\n        stylesheets() {\n            const stylesheets = super.stylesheets();\n            stylesheets.push(esm_css_1.default);\n            if (this.model.css_bundle) {\n                if (this.model.bundle === \"url\") {\n                    stylesheets.push(new dom_2.ImportedStyleSheet(this.model.css_bundle));\n                }\n                else {\n                    stylesheets.push(this.model.css_bundle);\n                }\n            }\n            return stylesheets;\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { esm, importmap, class_name } = this.model.properties;\n            this.on_change([esm, importmap], async () => {\n                this.compiled_module = await this.model.compiled_module;\n                this.invalidate_render();\n            });\n            this.on_change(class_name, () => {\n                this.container.className = this.model.class_name.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n            });\n            const child_props = this.model.children.map((child) => this.model.data.properties[child]);\n            for (const cp of child_props) {\n                cp.change.connect(() => this.update_children());\n            }\n            this.on_change([], () => {\n                if (this.model.render_policy !== \"manual\") {\n                    this.render_esm();\n                }\n            });\n            this.model.on_event(ESMEvent, (event) => {\n                for (const cb of this._event_handlers) {\n                    cb(event.data);\n                }\n            });\n        }\n        disconnect_signals() {\n            super.disconnect_signals();\n            this._child_callbacks = new Map();\n            this.model.disconnect_watchers(this);\n        }\n        _on_mounted() { }\n        notify_mount(child, id, remove) {\n            if (!this._mounted.has(child)) {\n                this._mounted.set(child, new Set());\n            }\n            if (remove) {\n                this._mounted.get(child)?.delete(id);\n            }\n            else {\n                this._mounted.get(child)?.add(id);\n            }\n            let children = this.model.data[child];\n            if (!(0, types_1.isArray)(children)) {\n                children = [children];\n            }\n            if (children.every((model) => this._mounted.get(child)?.has(model.id))) {\n                this._on_mounted();\n                for (const cb of this._lifecycle_handlers.get(\"mounted\") || []) {\n                    cb(child);\n                }\n            }\n        }\n        on_event(callback) {\n            this._event_handlers.push(callback);\n        }\n        remove_on_event(callback) {\n            if (this._event_handlers.includes(callback)) {\n                this._event_handlers = this._event_handlers.filter((item) => item !== callback);\n                return true;\n            }\n            return false;\n        }\n        get_child_view(model) {\n            return this._child_views.get(model);\n        }\n        get render_fn() {\n            if (this.compiled_module === null) {\n                return null;\n            }\n            else if (this.compiled_module.default) {\n                return this.compiled_module.default.render;\n            }\n            else {\n                return this.compiled_module.render;\n            }\n        }\n        get child_models() {\n            const children = [];\n            for (const child of this.model.children) {\n                const model = this.model.data[child];\n                if ((0, types_1.isArray)(model)) {\n                    for (const subchild of model) {\n                        children.push(subchild);\n                    }\n                }\n                else if (model != null) {\n                    children.push(model);\n                }\n            }\n            return children;\n        }\n        render_error(error) {\n            const error_div = (0, dom_1.div)({ class: \"error\" });\n            error_div.innerHTML = (0, util_1.formatError)(error, this.model.esm);\n            this.container.appendChild(error_div);\n        }\n        render() {\n            this.empty();\n            this._update_stylesheets();\n            this._update_css_classes();\n            this._apply_styles();\n            this._update_css_variables();\n            this._apply_visible();\n            this._child_callbacks = new Map();\n            this._child_rendered.clear();\n            this._rendered = false;\n            (0, layout_1.set_size)(this.el, this.model);\n            this.container = (0, dom_1.div)();\n            this.container.className = this.model.class_name.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n            (0, layout_1.set_size)(this.container, this.model, false);\n            this.shadow_el.append(this.container);\n            if (this.model.compile_error) {\n                this.render_error(this.model.compile_error);\n            }\n            else {\n                this.render_esm();\n            }\n            for (const element_view of this.element_views) {\n                // this.shadow_el is needed for Bokeh < 3.7.0 as this.self_target is not defined\n                // can be removed when our minimum version is Bokeh 3.7.0\n                // https://github.com/holoviz/panel/pull/7948\n                const target = element_view.rendering_target() ?? this.self_target ?? this.shadow_el;\n                element_view.render_to(target);\n            }\n        }\n        get is_managed() {\n            return this.parent instanceof layout_dom_1.LayoutDOMView && !(this.parent instanceof ReactiveESMView);\n        }\n        compute_layout() {\n            if (this.is_managed) {\n                super.compute_layout();\n                return;\n            }\n            this.measure_layout();\n            this.update_bbox();\n            this._compute_layout();\n            this.after_layout();\n            // Override private property\n            this._layout_computed = true;\n        }\n        _update_bbox() {\n            const displayed = (() => {\n                // Consider using Element.checkVisibility() in the future.\n                // https://w3c.github.io/csswg-drafts/cssom-view-1/#dom-element-checkvisibility\n                if (!this.el.isConnected) {\n                    return false;\n                }\n                else if (this.el.offsetParent != null) {\n                    return true;\n                }\n                else {\n                    const { position, display } = getComputedStyle(this.el);\n                    return position == \"fixed\" && display != \"none\";\n                }\n            })();\n            // Override private property\n            this._is_displayed = displayed;\n            return true;\n        }\n        after_rendered() {\n            const handlers = (this._lifecycle_handlers.get(\"after_render\") || []);\n            for (const cb of handlers) {\n                cb();\n            }\n            this.render_children();\n            this.model_proxy.on(this.accessed_children, () => { this._stale_children = true; });\n            if (!this._rendered) {\n                for (const cb of (this._lifecycle_handlers.get(\"after_layout\") || [])) {\n                    cb();\n                }\n            }\n            this._rendered = true;\n        }\n        render_esm() {\n            if (this.model.compiled === null || this.model.render_module === null) {\n                return;\n            }\n            this.container.replaceChildren();\n            this.accessed_properties = [];\n            for (const lf of this._lifecycle_handlers.keys()) {\n                (this._lifecycle_handlers.get(lf) || []).splice(0);\n            }\n            this.model.disconnect_watchers(this);\n            this.model.render_module.then((mod) => mod.default.render(this.model.id));\n        }\n        render_children() {\n            for (const child of this.model.children) {\n                if (!this.accessed_children.includes(child)) {\n                    return;\n                }\n                const child_model = this.model.data[child];\n                const children = (0, types_1.isArray)(child_model) ? child_model : [child_model];\n                for (const subchild of children) {\n                    const view = this._child_views.get(subchild);\n                    if (!view) {\n                        continue;\n                    }\n                    const parent = view.el.parentNode;\n                    if (parent && !this._child_rendered.has(view)) {\n                        this.rerender_(view);\n                        this._child_rendered.set(view, true);\n                    }\n                }\n            }\n            this._stale_children = false;\n            this.after_render();\n        }\n        has_finished() {\n            if (!super.has_finished()) {\n                return false;\n            }\n            if (this.is_layout_root && !this._layout_computed) {\n                return false;\n            }\n            for (const child_view of this.child_views) {\n                if (!child_view.has_finished() && this._child_rendered.has(child_view)) {\n                    return false;\n                }\n            }\n            return true;\n        }\n        invalidate_layout() {\n            if (this.is_managed) {\n                super.invalidate_layout();\n                return;\n            }\n            this.update_layout();\n            this.compute_layout();\n        }\n        remove() {\n            super.remove();\n            for (const cb of (this._lifecycle_handlers.get(\"remove\") || [])) {\n                cb();\n            }\n            this._child_callbacks.clear();\n            this._child_rendered.clear();\n            this._mounted.clear();\n        }\n        after_resize() {\n            if (this._rendered && !this._changing) {\n                super.after_resize();\n                for (const cb of (this._lifecycle_handlers.get(\"resize\") || [])) {\n                    cb();\n                }\n            }\n        }\n        after_layout() {\n            super.after_layout();\n            if (this._rendered && !this._changing) {\n                for (const cb of (this._lifecycle_handlers.get(\"after_layout\") || [])) {\n                    cb();\n                }\n            }\n        }\n        _lookup_child(child_view) {\n            for (const child of this.model.children) {\n                let models = this.model.data[child];\n                models = (0, types_1.isArray)(models) ? models : [models];\n                for (const model of models) {\n                    if (model === child_view.model) {\n                        return child;\n                    }\n                }\n            }\n            return null;\n        }\n        async update_children() {\n            const created_children = new Set(await this.build_child_views());\n            const all_views = this.child_views;\n            if (this.model.render_policy !== \"manual\") {\n                for (const child_view of all_views) {\n                    child_view.el.remove();\n                }\n            }\n            const new_views = new Map();\n            for (const child_view of this.child_views) {\n                if (!created_children.has(child_view)) {\n                    continue;\n                }\n                const child = this._lookup_child(child_view);\n                if (!child) {\n                    continue;\n                }\n                if (new_views.has(child)) {\n                    new_views.get(child).push(child_view);\n                }\n                else {\n                    new_views.set(child, [child_view]);\n                }\n            }\n            for (const view of this._child_rendered.keys()) {\n                if (!all_views.includes(view)) {\n                    this._child_rendered.delete(view);\n                }\n            }\n            for (const child of this.model.children) {\n                const callbacks = this._child_callbacks.get(child) || [];\n                const new_children = new_views.get(child) || [];\n                for (const callback of callbacks) {\n                    callback(new_children);\n                }\n            }\n            if (this._stale_children && this.model.render_policy !== \"manual\") {\n                this.render_esm();\n                this._update_children();\n                this.invalidate_layout();\n            }\n            this._stale_children = false;\n        }\n        on_child_render(child, callback) {\n            if (!this._child_callbacks.has(child)) {\n                this._child_callbacks.set(child, []);\n            }\n            const callbacks = this._child_callbacks.get(child) || [];\n            callbacks.push(callback);\n        }\n        remove_on_child_render(child, callback) {\n            if (!this._child_callbacks.has(child)) {\n                return;\n            }\n            if (callback === undefined) {\n                this._child_callbacks.delete(child);\n            }\n            else {\n                let callbacks = this._child_callbacks.get(child) || [];\n                callbacks = callbacks.filter((cb) => cb !== callback);\n                this._child_callbacks.set(child, callbacks);\n            }\n        }\n    }\n    exports.ReactiveESMView = ReactiveESMView;\n    ReactiveESMView.__name__ = \"ReactiveESMView\";\n    exports.RenderPolicy = (0, kinds_1.Enum)(\"manual\", \"children\");\n    class ReactiveESM extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n            this.compiled = null;\n            this.compiled_module = null;\n            this.compile_error = null;\n            this.render_module = null;\n            this.sucrase_transforms = [\"typescript\"];\n            this._destroyer = null;\n            this._esm_watchers = {};\n            this._event_callbacks = new Map();\n        }\n        initialize() {\n            super.initialize();\n            this.model_proxy = new Proxy(this, {\n                get: init_model_getter,\n                set: init_model_setter,\n            });\n            this.recompile();\n        }\n        connect_signals() {\n            super.connect_signals();\n            this.connect(this.properties.esm.change, () => this.recompile());\n            this.connect(this.properties.importmap.change, () => this.recompile());\n        }\n        watch(view, prop, cb, force = false) {\n            const propPath = prop.split(\".\");\n            let target = this.data;\n            let resolvedProp = null;\n            for (let i = 0; i < propPath.length - 1; i++) {\n                if (target && target.properties && propPath[i] in target.properties) {\n                    target = target[propPath[i]];\n                }\n                else {\n                    // Break if any level of the path is invalid\n                    target = null;\n                    break;\n                }\n            }\n            if (target && target.properties && propPath[propPath.length - 1] in target.properties) {\n                resolvedProp = propPath[propPath.length - 1];\n            }\n            // Handle reset of param.Event properties\n            if (!force && target === this.data && resolvedProp && this.events.includes(resolvedProp)) {\n                const orig_cb = cb;\n                cb = () => {\n                    if (resolvedProp && this.data[resolvedProp]) {\n                        orig_cb();\n                        this.data.setv({ [resolvedProp]: false });\n                    }\n                };\n                this._event_callbacks.set(orig_cb, cb);\n            }\n            // Attach watcher if property is found\n            if (resolvedProp && target) {\n                if (this.children.includes(resolvedProp)) {\n                    const orig_cb = cb;\n                    cb = async () => {\n                        if (view) {\n                            view._stale_children = true;\n                        }\n                        if (view && view._stale_children) {\n                            await new Promise(resolve => {\n                                const check = () => {\n                                    if (!view._stale_children) {\n                                        resolve(undefined);\n                                    }\n                                    else {\n                                        setTimeout(check, 10);\n                                    }\n                                };\n                                check();\n                            });\n                        }\n                        orig_cb();\n                        if (view && this.render_policy === \"manual\") {\n                            view.render_children();\n                            view._update_children();\n                            view.invalidate_layout();\n                        }\n                    };\n                }\n                target.property(resolvedProp).change.connect(cb);\n            }\n            else if (prop in this.properties) {\n                this.property(prop).change.connect(cb);\n            }\n            if (prop in this._esm_watchers) {\n                this._esm_watchers[prop].push([view, cb]);\n            }\n            else {\n                this._esm_watchers[prop] = [[view, cb]];\n            }\n        }\n        unwatch(view, prop, cb) {\n            if (!(prop in this._esm_watchers)) {\n                return false;\n            }\n            // Filter out the specific callback for this view\n            const remaining = [];\n            for (const [wview, wcb] of this._esm_watchers[prop]) {\n                if (wview !== view || wcb !== cb) {\n                    remaining.push([wview, wcb]);\n                }\n            }\n            // Update or delete watcher list\n            if (remaining.length > 0) {\n                this._esm_watchers[prop] = remaining;\n            }\n            else {\n                delete this._esm_watchers[prop];\n            }\n            // Resolve nested properties\n            const propPath = prop.split(\".\");\n            let target = this.data;\n            let resolvedProp = null;\n            for (let i = 0; i < propPath.length - 1; i++) {\n                if (target && target.properties && propPath[i] in target.properties) {\n                    target = target[propPath[i]];\n                }\n                else {\n                    // Stop if the path does not exist\n                    target = null;\n                    break;\n                }\n            }\n            if (target && target.properties && propPath[propPath.length - 1] in target.properties) {\n                resolvedProp = propPath[propPath.length - 1];\n            }\n            if (this._event_callbacks.has(cb)) {\n                cb = this._event_callbacks.get(cb);\n                this._event_callbacks.delete(cb);\n            }\n            // Detach watcher if property is found\n            if (resolvedProp && target) {\n                return target.property(resolvedProp).change.disconnect(cb);\n            }\n            else if (prop in this.properties) {\n                return this.property(prop).change.disconnect(cb);\n            }\n            return false;\n        }\n        disconnect_watchers(view) {\n            for (const p in this._esm_watchers) {\n                const prop = this.data.properties[p];\n                const remaining = [];\n                for (const [wview, cb] of this._esm_watchers[p]) {\n                    if (wview === view) {\n                        prop?.change.disconnect(cb);\n                    }\n                    else {\n                        remaining.push([wview, cb]);\n                    }\n                }\n                if (remaining.length > 0) {\n                    this._esm_watchers[p] = remaining;\n                }\n                else {\n                    delete this._esm_watchers[p];\n                }\n            }\n        }\n        _declare_importmap() {\n            if (this.importmap) {\n                const importMap = { ...this.importmap };\n                try {\n                    // @ts-ignore\n                    importShim.addImportMap(importMap);\n                }\n                catch (e) {\n                    console.warn(`Failed to add import map: ${e}`);\n                }\n            }\n        }\n        _run_initializer(initialize) {\n            const props = { model: this.model_proxy };\n            this._destroyer = initialize(props);\n        }\n        destroy() {\n            super.destroy();\n            if (this._destroyer) {\n                this._destroyer(this.model_proxy);\n            }\n        }\n        init_module() {\n            if (this.compile_error) {\n                return;\n            }\n            else if (MODULE_CACHE.has(this._render_cache_key)) {\n                this.render_module = MODULE_CACHE.get(this._render_cache_key);\n            }\n            else {\n                const code = this._render_code();\n                const render_url = URL.createObjectURL(new Blob([code], { type: \"text/javascript\" }));\n                // @ts-ignore\n                this.render_module = importShim(render_url);\n                MODULE_CACHE.set(this._render_cache_key, this.render_module);\n            }\n        }\n        _render_code() {\n            return `\nfunction render(id) {\n  const view = Bokeh.index.find_one_by_id(id)\n  if (view == null) {\n    return null\n  }\n\n  const output = view.render_fn({\n    view: view, model: view.model_proxy, data: view.model.data, el: view.container\n  })\n\n  Promise.resolve(output).then((out) => {\n    if (out instanceof Element) {\n      view.container.replaceChildren(out)\n    }\n    view.after_rendered()\n  })\n}\n\nexport default {render}`;\n        }\n        get _render_cache_key() {\n            return \"reactive_esm\";\n        }\n        compile() {\n            if (this.bundle != null) {\n                return this.esm;\n            }\n            let compiled;\n            try {\n                compiled = (0, sucrase_1.transform)(this.esm, {\n                    transforms: this.sucrase_transforms,\n                    filePath: \"render.tsx\",\n                }).code;\n            }\n            catch (e) {\n                if (e instanceof SyntaxError) {\n                    if (this.dev) {\n                        this.compile_error = e;\n                        return null;\n                    }\n                    else {\n                        e.message = `${e.message}. See more information with '--dev' flag.`;\n                        throw e;\n                    }\n                }\n                else {\n                    throw e;\n                }\n            }\n            return compiled;\n        }\n        async recompile() {\n            this.compile_error = null;\n            const compiled = this.compile();\n            if (compiled === null) {\n                this.compiled_module = Promise.resolve(null);\n                return;\n            }\n            this.compiled = compiled;\n            this._declare_importmap();\n            let esm_module;\n            const use_cache = (!this.dev || this.bundle);\n            const cache_key = (this.bundle === \"url\") ? this.esm : (this.bundle || `${this.class_name}-${this.esm.length}`);\n            let resolve;\n            if (use_cache && MODULE_CACHE.has(cache_key)) {\n                esm_module = Promise.resolve(MODULE_CACHE.get(cache_key));\n            }\n            else {\n                if (use_cache) {\n                    MODULE_CACHE.set(cache_key, new Promise((res) => { resolve = res; }));\n                }\n                let url;\n                if (this.bundle === \"url\") {\n                    url = this.esm;\n                }\n                else {\n                    url = URL.createObjectURL(new Blob([this.compiled], { type: \"text/javascript\" }));\n                }\n                esm_module = window.importShim(url);\n            }\n            this.compiled_module = esm_module.then((mod) => {\n                if (resolve) {\n                    resolve(mod);\n                }\n                try {\n                    let initialize;\n                    if (this.bundle != null && (mod.default || {}).hasOwnProperty(this.class_name)) {\n                        mod = mod.default[this.class_name];\n                    }\n                    if (mod.initialize) {\n                        initialize = mod.initialize;\n                    }\n                    else if (mod.default && mod.default.initialize) {\n                        initialize = mod.default.initialize;\n                    }\n                    else if (typeof mod.default === \"function\") {\n                        const initialized = mod.default();\n                        mod = { default: initialized };\n                        initialize = initialized.initialize;\n                    }\n                    if (initialize) {\n                        this._run_initializer(initialize);\n                    }\n                    this.init_module();\n                    return mod;\n                }\n                catch (e) {\n                    if (this.dev) {\n                        this.compile_error = e;\n                    }\n                    console.error(`Could not initialize module due to error: ${e}`);\n                    return null;\n                }\n            });\n        }\n    }\n    exports.ReactiveESM = ReactiveESM;\n    _c = ReactiveESM;\n    ReactiveESM.__name__ = \"ReactiveESM\";\n    ReactiveESM.__module__ = \"panel.models.esm\";\n    (() => {\n        _c.prototype.default_view = ReactiveESMView;\n        _c.define(({ Any, Array, Bool, Nullable, Str }) => ({\n            _defs: [Array(Any), []],\n            css_bundle: [Nullable(Str), null],\n            bundle: [Nullable(Str), null],\n            children: [Array(Str), []],\n            class_name: [Str, \"\"],\n            data: [Any],\n            dev: [Bool, false],\n            esm: [Str, \"\"],\n            events: [Array(Str), []],\n            importmap: [Any, {}],\n            render_policy: [exports.RenderPolicy, \"children\"],\n        }));\n    })();\n}\n","min_source":"function _(e,t,s,i,n){var r,l,o;i(),s.model_getter=M,s.model_setter=E;const a=e(\"tslib\");var c,h=this&&this.__decorate||function(e,t,s,i){var n,r=arguments.length,l=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)l=Reflect.decorate(e,t,s,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(l=(r<3?n(l):r>3?n(t,s,l):n(t,s))||l);return r>3&&l&&Object.defineProperty(t,s,l),l};const d=e(\"48024289a4\"),_=e(\"@bokehjs/core/bokeh_events\"),u=e(\"@bokehjs/core/dom\"),m=e(\"@bokehjs/core/dom\"),p=e(\"@bokehjs/core/kinds\"),f=e(\"@bokehjs/models/layouts/layout_dom\"),y=e(\"@bokehjs/core/util/types\"),v=e(\"a572dba9cd\"),g=e(\"4c04683fdc\"),w=e(\"dab42e6dad\"),b=e(\"a3669a897a\"),k=a.__importDefault(e(\"727a14f76b\")),R=new Map;class z extends _.ModelEvent{constructor(e){super(),this.data=e}get event_values(){return{model:this.origin,data:this.data}}}s.DataEvent=z,r=z,z.__name__=\"DataEvent\",r.prototype.event_name=\"data_event\";let x=(l=class extends z{static from_values(e){const{model:t,data:s}=e,i=new c(s);return i.origin=t,i}},c=l,l.__name__=\"ESMEvent\",l);function M(e,t){const s=e.model;return\"get_child\"===t?t=>{e.accessed_children.includes(t)||e.accessed_children.push(t);const i=s.data[t];if((0,y.isArray)(i)){const t=[];for(const s of i)t.push(e.get_child_view(s)?.el);return t}return null!=s?e.get_child_view(i)?.el:null}:\"send_msg\"===t?e=>{s.trigger_event(new z(e))}:\"send_event\"===t?(e,t)=>{const i=(0,b.convertUndefined)((0,v.serializeEvent)(t));s.trigger_event(new g.DOMEvent(e,i))}:\"off\"===t?(t,i)=>{const n=(0,y.isArray)(t)?t:[t];for(let t of n)if(t.startsWith(\"change:\")&&(t=t.slice(7)),t in s.attributes||t.split(\".\")[0]in s.data.attributes)s.unwatch(e,t,i);else if(\"msg:custom\"!==t)if(t.startsWith(\"lifecycle:\")&&(t=t.slice(10)),e._lifecycle_handlers.has(t)){const s=e._lifecycle_handlers.get(t);s&&s.includes(i)&&e._lifecycle_handlers.set(t,s.filter((e=>e!==i)))}else console.warn(`Could not unregister callback for event type '${t}'`);else e.remove_on_event(i)}:\"on\"===t?(t,i,n=!1)=>{const r=(0,y.isArray)(t)?t:[t];for(let t of r)t.startsWith(\"change:\")&&(t=t.slice(7)),t in s.attributes||t.split(\".\")[0]in s.data.attributes?s.watch(e,t,i,n):\"msg:custom\"!==t?(t.startsWith(\"lifecycle:\")&&(t=t.slice(10)),e._lifecycle_handlers.has(t)?(e._lifecycle_handlers.get(t)||[]).push(i):console.warn(`Could not register callback for event type '${t}'`)):e.on_event(i)}:Reflect.has(s.data,t)?(t in s.data.attributes&&!e.accessed_properties.includes(t)&&e.accessed_properties.push(t),Reflect.get(s.data,t)):Reflect.has(s,t)?Reflect.get(s,t):void 0}function E(e,t,s){const i=e.model;return Reflect.has(i.data,t)?Reflect.set(i.data,t,s):!!Reflect.has(i,t)&&Reflect.set(i,t,s)}function S(e,t){return Reflect.has(e.data,t)?Reflect.get(e.data,t):Reflect.has(e,t)?Reflect.get(e,t):void 0}function P(e,t,s){return Reflect.has(e.data,t)?Reflect.set(e.data,t,s):!!Reflect.has(e,t)&&Reflect.set(e,t,s)}s.ESMEvent=x,s.ESMEvent=x=c=h([(0,_.server_event)(\"esm_event\")],x);class j extends w.HTMLBoxView{constructor(){super(...arguments),this.accessed_properties=[],this.accessed_children=[],this.compiled_module=null,this._changing=!1,this._child_rendered=new Map,this._event_handlers=[],this._lifecycle_handlers=new Map([[\"update_layout\",[]],[\"after_layout\",[]],[\"after_render\",[]],[\"resize\",[]],[\"remove\",[]],[\"mounted\",[]]]),this._rendered=!1,this._stale_children=!1,this._mounted=new Map}initialize(){super.initialize(),this._module_cache=R,this._child_callbacks=new Map,this.model_proxy=new Proxy(this,{get:M,set:E})}async lazy_initialize(){await super.lazy_initialize(),this.compiled_module=await this.model.compiled_module}stylesheets(){const e=super.stylesheets();return e.push(k.default),this.model.css_bundle&&(\"url\"===this.model.bundle?e.push(new m.ImportedStyleSheet(this.model.css_bundle)):e.push(this.model.css_bundle)),e}connect_signals(){super.connect_signals();const{esm:e,importmap:t,class_name:s}=this.model.properties;this.on_change([e,t],(async()=>{this.compiled_module=await this.model.compiled_module,this.invalidate_render()})),this.on_change(s,(()=>{this.container.className=this.model.class_name.replace(/([a-z])([A-Z])/g,\"$1-$2\").toLowerCase()}));const i=this.model.children.map((e=>this.model.data.properties[e]));for(const e of i)e.change.connect((()=>this.update_children()));this.on_change([],(()=>{\"manual\"!==this.model.render_policy&&this.render_esm()})),this.model.on_event(x,(e=>{for(const t of this._event_handlers)t(e.data)}))}disconnect_signals(){super.disconnect_signals(),this._child_callbacks=new Map,this.model.disconnect_watchers(this)}_on_mounted(){}notify_mount(e,t,s){this._mounted.has(e)||this._mounted.set(e,new Set),s?this._mounted.get(e)?.delete(t):this._mounted.get(e)?.add(t);let i=this.model.data[e];if((0,y.isArray)(i)||(i=[i]),i.every((t=>this._mounted.get(e)?.has(t.id)))){this._on_mounted();for(const t of this._lifecycle_handlers.get(\"mounted\")||[])t(e)}}on_event(e){this._event_handlers.push(e)}remove_on_event(e){return!!this._event_handlers.includes(e)&&(this._event_handlers=this._event_handlers.filter((t=>t!==e)),!0)}get_child_view(e){return this._child_views.get(e)}get render_fn(){return null===this.compiled_module?null:this.compiled_module.default?this.compiled_module.default.render:this.compiled_module.render}get child_models(){const e=[];for(const t of this.model.children){const s=this.model.data[t];if((0,y.isArray)(s))for(const t of s)e.push(t);else null!=s&&e.push(s)}return e}render_error(e){const t=(0,u.div)({class:\"error\"});t.innerHTML=(0,b.formatError)(e,this.model.esm),this.container.appendChild(t)}render(){this.empty(),this._update_stylesheets(),this._update_css_classes(),this._apply_styles(),this._update_css_variables(),this._apply_visible(),this._child_callbacks=new Map,this._child_rendered.clear(),this._rendered=!1,(0,w.set_size)(this.el,this.model),this.container=(0,u.div)(),this.container.className=this.model.class_name.replace(/([a-z])([A-Z])/g,\"$1-$2\").toLowerCase(),(0,w.set_size)(this.container,this.model,!1),this.shadow_el.append(this.container),this.model.compile_error?this.render_error(this.model.compile_error):this.render_esm();for(const e of this.element_views){const t=e.rendering_target()??this.self_target??this.shadow_el;e.render_to(t)}}get is_managed(){return this.parent instanceof f.LayoutDOMView&&!(this.parent instanceof j)}compute_layout(){this.is_managed?super.compute_layout():(this.measure_layout(),this.update_bbox(),this._compute_layout(),this.after_layout(),this._layout_computed=!0)}_update_bbox(){const e=(()=>{if(this.el.isConnected){if(null!=this.el.offsetParent)return!0;{const{position:e,display:t}=getComputedStyle(this.el);return\"fixed\"==e&&\"none\"!=t}}return!1})();return this._is_displayed=e,!0}after_rendered(){const e=this._lifecycle_handlers.get(\"after_render\")||[];for(const t of e)t();if(this.render_children(),this.model_proxy.on(this.accessed_children,(()=>{this._stale_children=!0})),!this._rendered)for(const e of this._lifecycle_handlers.get(\"after_layout\")||[])e();this._rendered=!0}render_esm(){if(null!==this.model.compiled&&null!==this.model.render_module){this.container.replaceChildren(),this.accessed_properties=[];for(const e of this._lifecycle_handlers.keys())(this._lifecycle_handlers.get(e)||[]).splice(0);this.model.disconnect_watchers(this),this.model.render_module.then((e=>e.default.render(this.model.id)))}}render_children(){for(const e of this.model.children){if(!this.accessed_children.includes(e))return;const t=this.model.data[e],s=(0,y.isArray)(t)?t:[t];for(const e of s){const t=this._child_views.get(e);if(!t)continue;t.el.parentNode&&!this._child_rendered.has(t)&&(this.rerender_(t),this._child_rendered.set(t,!0))}}this._stale_children=!1,this.after_render()}has_finished(){if(!super.has_finished())return!1;if(this.is_layout_root&&!this._layout_computed)return!1;for(const e of this.child_views)if(!e.has_finished()&&this._child_rendered.has(e))return!1;return!0}invalidate_layout(){this.is_managed?super.invalidate_layout():(this.update_layout(),this.compute_layout())}remove(){super.remove();for(const e of this._lifecycle_handlers.get(\"remove\")||[])e();this._child_callbacks.clear(),this._child_rendered.clear(),this._mounted.clear()}after_resize(){if(this._rendered&&!this._changing){super.after_resize();for(const e of this._lifecycle_handlers.get(\"resize\")||[])e()}}after_layout(){if(super.after_layout(),this._rendered&&!this._changing)for(const e of this._lifecycle_handlers.get(\"after_layout\")||[])e()}_lookup_child(e){for(const t of this.model.children){let s=this.model.data[t];s=(0,y.isArray)(s)?s:[s];for(const i of s)if(i===e.model)return t}return null}async update_children(){const e=new Set(await this.build_child_views()),t=this.child_views;if(\"manual\"!==this.model.render_policy)for(const e of t)e.el.remove();const s=new Map;for(const t of this.child_views){if(!e.has(t))continue;const i=this._lookup_child(t);i&&(s.has(i)?s.get(i).push(t):s.set(i,[t]))}for(const e of this._child_rendered.keys())t.includes(e)||this._child_rendered.delete(e);for(const e of this.model.children){const t=this._child_callbacks.get(e)||[],i=s.get(e)||[];for(const e of t)e(i)}this._stale_children&&\"manual\"!==this.model.render_policy&&(this.render_esm(),this._update_children(),this.invalidate_layout()),this._stale_children=!1}on_child_render(e,t){this._child_callbacks.has(e)||this._child_callbacks.set(e,[]);(this._child_callbacks.get(e)||[]).push(t)}remove_on_child_render(e,t){if(this._child_callbacks.has(e))if(void 0===t)this._child_callbacks.delete(e);else{let s=this._child_callbacks.get(e)||[];s=s.filter((e=>e!==t)),this._child_callbacks.set(e,s)}}}s.ReactiveESMView=j,j.__name__=\"ReactiveESMView\",s.RenderPolicy=(0,p.Enum)(\"manual\",\"children\");class A extends w.HTMLBox{constructor(e){super(e),this.compiled=null,this.compiled_module=null,this.compile_error=null,this.render_module=null,this.sucrase_transforms=[\"typescript\"],this._destroyer=null,this._esm_watchers={},this._event_callbacks=new Map}initialize(){super.initialize(),this.model_proxy=new Proxy(this,{get:S,set:P}),this.recompile()}connect_signals(){super.connect_signals(),this.connect(this.properties.esm.change,(()=>this.recompile())),this.connect(this.properties.importmap.change,(()=>this.recompile()))}watch(e,t,s,i=!1){const n=t.split(\".\");let r=this.data,l=null;for(let e=0;e<n.length-1;e++){if(!(r&&r.properties&&n[e]in r.properties)){r=null;break}r=r[n[e]]}if(r&&r.properties&&n[n.length-1]in r.properties&&(l=n[n.length-1]),!i&&r===this.data&&l&&this.events.includes(l)){const e=s;s=()=>{l&&this.data[l]&&(e(),this.data.setv({[l]:!1}))},this._event_callbacks.set(e,s)}if(l&&r){if(this.children.includes(l)){const t=s;s=async()=>{e&&(e._stale_children=!0),e&&e._stale_children&&await new Promise((t=>{const s=()=>{e._stale_children?setTimeout(s,10):t(void 0)};s()})),t(),e&&\"manual\"===this.render_policy&&(e.render_children(),e._update_children(),e.invalidate_layout())}}r.property(l).change.connect(s)}else t in this.properties&&this.property(t).change.connect(s);t in this._esm_watchers?this._esm_watchers[t].push([e,s]):this._esm_watchers[t]=[[e,s]]}unwatch(e,t,s){if(!(t in this._esm_watchers))return!1;const i=[];for(const[n,r]of this._esm_watchers[t])n===e&&r===s||i.push([n,r]);i.length>0?this._esm_watchers[t]=i:delete this._esm_watchers[t];const n=t.split(\".\");let r=this.data,l=null;for(let e=0;e<n.length-1;e++){if(!(r&&r.properties&&n[e]in r.properties)){r=null;break}r=r[n[e]]}return r&&r.properties&&n[n.length-1]in r.properties&&(l=n[n.length-1]),this._event_callbacks.has(s)&&(s=this._event_callbacks.get(s),this._event_callbacks.delete(s)),l&&r?r.property(l).change.disconnect(s):t in this.properties&&this.property(t).change.disconnect(s)}disconnect_watchers(e){for(const t in this._esm_watchers){const s=this.data.properties[t],i=[];for(const[n,r]of this._esm_watchers[t])n===e?s?.change.disconnect(r):i.push([n,r]);i.length>0?this._esm_watchers[t]=i:delete this._esm_watchers[t]}}_declare_importmap(){if(this.importmap){const e={...this.importmap};try{importShim.addImportMap(e)}catch(e){console.warn(`Failed to add import map: ${e}`)}}}_run_initializer(e){const t={model:this.model_proxy};this._destroyer=e(t)}destroy(){super.destroy(),this._destroyer&&this._destroyer(this.model_proxy)}init_module(){if(!this.compile_error)if(R.has(this._render_cache_key))this.render_module=R.get(this._render_cache_key);else{const e=this._render_code(),t=URL.createObjectURL(new Blob([e],{type:\"text/javascript\"}));this.render_module=importShim(t),R.set(this._render_cache_key,this.render_module)}}_render_code(){return\"\\nfunction render(id) {\\n  const view = Bokeh.index.find_one_by_id(id)\\n  if (view == null) {\\n    return null\\n  }\\n\\n  const output = view.render_fn({\\n    view: view, model: view.model_proxy, data: view.model.data, el: view.container\\n  })\\n\\n  Promise.resolve(output).then((out) => {\\n    if (out instanceof Element) {\\n      view.container.replaceChildren(out)\\n    }\\n    view.after_rendered()\\n  })\\n}\\n\\nexport default {render}\"}get _render_cache_key(){return\"reactive_esm\"}compile(){if(null!=this.bundle)return this.esm;let e;try{e=(0,d.transform)(this.esm,{transforms:this.sucrase_transforms,filePath:\"render.tsx\"}).code}catch(e){if(e instanceof SyntaxError){if(this.dev)return this.compile_error=e,null;throw e.message=`${e.message}. See more information with '--dev' flag.`,e}throw e}return e}async recompile(){this.compile_error=null;const e=this.compile();if(null===e)return void(this.compiled_module=Promise.resolve(null));let t;this.compiled=e,this._declare_importmap();const s=!this.dev||this.bundle,i=\"url\"===this.bundle?this.esm:this.bundle||`${this.class_name}-${this.esm.length}`;let n;if(s&&R.has(i))t=Promise.resolve(R.get(i));else{let e;s&&R.set(i,new Promise((e=>{n=e}))),e=\"url\"===this.bundle?this.esm:URL.createObjectURL(new Blob([this.compiled],{type:\"text/javascript\"})),t=window.importShim(e)}this.compiled_module=t.then((e=>{n&&n(e);try{let t;if(null!=this.bundle&&(e.default||{}).hasOwnProperty(this.class_name)&&(e=e.default[this.class_name]),e.initialize)t=e.initialize;else if(e.default&&e.default.initialize)t=e.default.initialize;else if(\"function\"==typeof e.default){const s=e.default();e={default:s},t=s.initialize}return t&&this._run_initializer(t),this.init_module(),e}catch(e){return this.dev&&(this.compile_error=e),console.error(`Could not initialize module due to error: ${e}`),null}}))}}s.ReactiveESM=A,o=A,A.__name__=\"ReactiveESM\",A.__module__=\"panel.models.esm\",o.prototype.default_view=j,o.define((({Any:e,Array:t,Bool:i,Nullable:n,Str:r})=>({_defs:[t(e),[]],css_bundle:[n(r),null],bundle:[n(r),null],children:[t(r),[]],class_name:[r,\"\"],data:[e],dev:[i,!1],esm:[r,\"\"],events:[t(r),[]],importmap:[e,{}],render_policy:[s.RenderPolicy,\"children\"]})))}\n//# sourceMappingURL=reactive_esm.min.js.map","min_map":"{\"version\":3,\"file\":\"reactive_esm.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"_b\",\"_c\",\"model_getter\",\"model_setter\",\"tslib_1\",\"ESMEvent_1\",\"__decorate\",\"this\",\"decorators\",\"target\",\"key\",\"desc\",\"d\",\"c\",\"arguments\",\"length\",\"r\",\"Object\",\"getOwnPropertyDescriptor\",\"Reflect\",\"decorate\",\"i\",\"defineProperty\",\"sucrase_1\",\"bokeh_events_1\",\"dom_1\",\"dom_2\",\"kinds_1\",\"layout_dom_1\",\"types_1\",\"event_to_object_1\",\"html_1\",\"layout_1\",\"util_1\",\"esm_css_1\",\"__importDefault\",\"MODULE_CACHE\",\"Map\",\"DataEvent\",\"ModelEvent\",\"constructor\",\"data\",\"super\",\"event_values\",\"model\",\"origin\",\"__name__\",\"prototype\",\"event_name\",\"ESMEvent\",\"from_values\",\"values\",\"event\",\"name\",\"child\",\"accessed_children\",\"includes\",\"push\",\"child_model\",\"isArray\",\"children\",\"subchild\",\"get_child_view\",\"el\",\"trigger_event\",\"serialized\",\"convertUndefined\",\"serializeEvent\",\"DOMEvent\",\"prop\",\"callback\",\"props\",\"p\",\"startsWith\",\"slice\",\"attributes\",\"split\",\"unwatch\",\"_lifecycle_handlers\",\"has\",\"handlers\",\"get\",\"set\",\"filter\",\"v\",\"console\",\"warn\",\"remove_on_event\",\"force\",\"watch\",\"on_event\",\"accessed_properties\",\"value\",\"init_model_getter\",\"init_model_setter\",\"server_event\",\"ReactiveESMView\",\"HTMLBoxView\",\"compiled_module\",\"_changing\",\"_child_rendered\",\"_event_handlers\",\"_rendered\",\"_stale_children\",\"_mounted\",\"initialize\",\"_module_cache\",\"_child_callbacks\",\"model_proxy\",\"Proxy\",\"lazy_initialize\",\"stylesheets\",\"default\",\"css_bundle\",\"bundle\",\"ImportedStyleSheet\",\"connect_signals\",\"esm\",\"importmap\",\"class_name\",\"properties\",\"on_change\",\"async\",\"invalidate_render\",\"container\",\"className\",\"replace\",\"toLowerCase\",\"child_props\",\"map\",\"cp\",\"change\",\"connect\",\"update_children\",\"render_policy\",\"render_esm\",\"cb\",\"disconnect_signals\",\"disconnect_watchers\",\"_on_mounted\",\"notify_mount\",\"id\",\"remove\",\"Set\",\"delete\",\"add\",\"every\",\"item\",\"_child_views\",\"render_fn\",\"render\",\"child_models\",\"render_error\",\"error\",\"error_div\",\"div\",\"class\",\"innerHTML\",\"formatError\",\"appendChild\",\"empty\",\"_update_stylesheets\",\"_update_css_classes\",\"_apply_styles\",\"_update_css_variables\",\"_apply_visible\",\"clear\",\"set_size\",\"shadow_el\",\"append\",\"compile_error\",\"element_view\",\"element_views\",\"rendering_target\",\"self_target\",\"render_to\",\"is_managed\",\"parent\",\"LayoutDOMView\",\"compute_layout\",\"measure_layout\",\"update_bbox\",\"_compute_layout\",\"after_layout\",\"_layout_computed\",\"_update_bbox\",\"displayed\",\"isConnected\",\"offsetParent\",\"position\",\"display\",\"getComputedStyle\",\"_is_displayed\",\"after_rendered\",\"render_children\",\"on\",\"compiled\",\"render_module\",\"replaceChildren\",\"lf\",\"keys\",\"splice\",\"then\",\"mod\",\"view\",\"parentNode\",\"rerender_\",\"after_render\",\"has_finished\",\"is_layout_root\",\"child_view\",\"child_views\",\"invalidate_layout\",\"update_layout\",\"after_resize\",\"_lookup_child\",\"models\",\"created_children\",\"build_child_views\",\"all_views\",\"new_views\",\"callbacks\",\"new_children\",\"_update_children\",\"on_child_render\",\"remove_on_child_render\",\"undefined\",\"RenderPolicy\",\"Enum\",\"ReactiveESM\",\"HTMLBox\",\"attrs\",\"sucrase_transforms\",\"_destroyer\",\"_esm_watchers\",\"_event_callbacks\",\"recompile\",\"propPath\",\"resolvedProp\",\"events\",\"orig_cb\",\"setv\",\"Promise\",\"resolve\",\"check\",\"setTimeout\",\"property\",\"remaining\",\"wview\",\"wcb\",\"disconnect\",\"_declare_importmap\",\"importMap\",\"importShim\",\"addImportMap\",\"e\",\"_run_initializer\",\"destroy\",\"init_module\",\"_render_cache_key\",\"code\",\"_render_code\",\"render_url\",\"URL\",\"createObjectURL\",\"Blob\",\"type\",\"compile\",\"transform\",\"transforms\",\"filePath\",\"SyntaxError\",\"dev\",\"message\",\"esm_module\",\"use_cache\",\"cache_key\",\"url\",\"res\",\"window\",\"hasOwnProperty\",\"initialized\",\"__module__\",\"default_view\",\"define\",\"Any\",\"Array\",\"Bool\",\"Nullable\",\"Str\",\"_defs\"],\"sources\":[\"0\"],\"mappings\":\"AAA6B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC1E,IAAIC,EAAIC,EAAIC,EACZJ,IACAD,EAAQM,aAAeA,EACvBN,EAAQO,aAAeA,EACvB,MAAMC,EAAUV,EAAQ,SACxB,IAUIW,EAVAC,EAAcC,MAAQA,KAAKD,YAAe,SAAUE,EAAYC,EAAQC,EAAKC,GAC7E,IAA2HC,EAAvHC,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIJ,EAAkB,OAATE,EAAgBA,EAAOM,OAAOC,yBAAyBT,EAAQC,GAAOC,EACrH,GAAuB,iBAAZQ,SAAoD,mBAArBA,QAAQC,SAC9CJ,EAAIG,QAAQC,SAASZ,EAAYC,EAAQC,EAAKC,QAE9C,IAAK,IAAIU,EAAIb,EAAWO,OAAS,EAAGM,GAAK,EAAGA,KACpCT,EAAIJ,EAAWa,MACfL,GAAKH,EAAI,EAAID,EAAEI,GAAKH,EAAI,EAAID,EAAEH,EAAQC,EAAKM,GAAKJ,EAAEH,EAAQC,KAASM,GAC/E,OAAOH,EAAI,GAAKG,GAAKC,OAAOK,eAAeb,EAAQC,EAAKM,GAAIA,CAChE,EAEA,MAAMO,EAAY7B,EAAQ,cACpB8B,EAAiB9B,EAAQ,8BACzB+B,EAAQ/B,EAAQ,qBAChBgC,EAAQhC,EAAQ,qBAChBiC,EAAUjC,EA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xB2F,EAAM,CAAE3F,QAASyK,GACjBhL,EAAagL,EAAYhL,UAC7B,CAKA,OAJIA,GACAlG,KAAKyP,iBAAiBvJ,GAE1BlG,KAAK2P,cACEvD,CACX,CACA,MAAOoD,GAKH,OAJIxP,KAAKyQ,MACLzQ,KAAKmK,cAAgBqF,GAEzB1K,QAAQoE,MAAM,6CAA6CsG,KACpD,IACX,IAER,EAEJnQ,EAAQyO,YAAcA,EACtBpO,EAAKoO,EACLA,EAAYvL,SAAW,cACvBuL,EAAYqD,WAAa,mBAErBzR,EAAG8C,UAAU4O,aAAe3L,EAC5B/F,EAAG2R,QAAO,EAAGC,MAAKC,QAAOC,OAAMC,WAAUC,UAAU,CAC/CC,MAAO,CAACJ,EAAMD,GAAM,IACpB5K,WAAY,CAAC+K,EAASC,GAAM,MAC5B/K,OAAQ,CAAC8K,EAASC,GAAM,MACxBrO,SAAU,CAACkO,EAAMG,GAAM,IACvB1K,WAAY,CAAC0K,EAAK,IAClBxP,KAAM,CAACoP,GACPb,IAAK,CAACe,GAAM,GACZ1K,IAAK,CAAC4K,EAAK,IACXlD,OAAQ,CAAC+C,EAAMG,GAAM,IACrB3K,UAAW,CAACuK,EAAK,CAAC,GAClBvJ,cAAe,CAAC1I,EAAQuO,aAAc,eAGlD\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/index.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/index.js","resolution":"ESM","id":"48024289a4","hash":"48024289a4d7449d0da1f74fee1016953351ace9106ccf8d0e5548783967d293","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getVersion = getVersion;\nexports.transform = transform;\nexports.getFormattedTokens = getFormattedTokens;\nconst tslib_1 = require(\"tslib\");\nconst CJSImportProcessor_1 = tslib_1.__importDefault(require(\"./CJSImportProcessor\"));\nconst computeSourceMap_1 = tslib_1.__importDefault(require(\"./computeSourceMap\"));\nconst HelperManager_1 = require(\"./HelperManager\");\nconst identifyShadowedGlobals_1 = tslib_1.__importDefault(require(\"./identifyShadowedGlobals\"));\nconst NameManager_1 = tslib_1.__importDefault(require(\"./NameManager\"));\nconst Options_1 = require(\"./Options\");\nconst parser_1 = require(\"./parser\");\nconst TokenProcessor_1 = tslib_1.__importDefault(require(\"./TokenProcessor\"));\nconst RootTransformer_1 = tslib_1.__importDefault(require(\"./transformers/RootTransformer\"));\nconst formatTokens_1 = tslib_1.__importDefault(require(\"./util/formatTokens\"));\nconst getTSImportedNames_1 = tslib_1.__importDefault(require(\"./util/getTSImportedNames\"));\n;\nfunction getVersion() {\n    /* istanbul ignore next */\n    return \"3.35.0\";\n}\nfunction transform(code, options) {\n    (0, Options_1.validateOptions)(options);\n    try {\n        const sucraseContext = getSucraseContext(code, options);\n        const transformer = new RootTransformer_1.default(sucraseContext, options.transforms, Boolean(options.enableLegacyBabel5ModuleInterop), options);\n        const transformerResult = transformer.transform();\n        let result = { code: transformerResult.code };\n        if (options.sourceMapOptions) {\n            if (!options.filePath) {\n                throw new Error(\"filePath must be specified when generating a source map.\");\n            }\n            result = {\n                ...result,\n                sourceMap: (0, computeSourceMap_1.default)(transformerResult, options.filePath, options.sourceMapOptions, code, sucraseContext.tokenProcessor.tokens),\n            };\n        }\n        return result;\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    }\n    catch (e) {\n        if (options.filePath) {\n            e.message = `Error transforming ${options.filePath}: ${e.message}`;\n        }\n        throw e;\n    }\n}\n/**\n * Return a string representation of the sucrase tokens, mostly useful for\n * diagnostic purposes.\n */\nfunction getFormattedTokens(code, options) {\n    const tokens = getSucraseContext(code, options).tokenProcessor.tokens;\n    return (0, formatTokens_1.default)(code, tokens);\n}\n/**\n * Call into the parser/tokenizer and do some further preprocessing:\n * - Come up with a set of used names so that we can assign new names.\n * - Preprocess all import/export statements so we know which globals we are interested in.\n * - Compute situations where any of those globals are shadowed.\n *\n * In the future, some of these preprocessing steps can be skipped based on what actual work is\n * being done.\n */\nfunction getSucraseContext(code, options) {\n    const isJSXEnabled = options.transforms.includes(\"jsx\");\n    const isTypeScriptEnabled = options.transforms.includes(\"typescript\");\n    const isFlowEnabled = options.transforms.includes(\"flow\");\n    const disableESTransforms = options.disableESTransforms === true;\n    const file = (0, parser_1.parse)(code, isJSXEnabled, isTypeScriptEnabled, isFlowEnabled);\n    const tokens = file.tokens;\n    const scopes = file.scopes;\n    const nameManager = new NameManager_1.default(code, tokens);\n    const helperManager = new HelperManager_1.HelperManager(nameManager);\n    const tokenProcessor = new TokenProcessor_1.default(code, tokens, isFlowEnabled, disableESTransforms, helperManager);\n    const enableLegacyTypeScriptModuleInterop = Boolean(options.enableLegacyTypeScriptModuleInterop);\n    let importProcessor = null;\n    if (options.transforms.includes(\"imports\")) {\n        importProcessor = new CJSImportProcessor_1.default(nameManager, tokenProcessor, enableLegacyTypeScriptModuleInterop, options, options.transforms.includes(\"typescript\"), Boolean(options.keepUnusedImports), helperManager);\n        importProcessor.preprocessTokens();\n        // We need to mark shadowed globals after processing imports so we know that the globals are,\n        // but before type-only import pruning, since that relies on shadowing information.\n        (0, identifyShadowedGlobals_1.default)(tokenProcessor, scopes, importProcessor.getGlobalNames());\n        if (options.transforms.includes(\"typescript\") && !options.keepUnusedImports) {\n            importProcessor.pruneTypeOnlyImports();\n        }\n    }\n    else if (options.transforms.includes(\"typescript\") && !options.keepUnusedImports) {\n        // Shadowed global detection is needed for TS implicit elision of imported names.\n        (0, identifyShadowedGlobals_1.default)(tokenProcessor, scopes, (0, getTSImportedNames_1.default)(tokenProcessor));\n    }\n    return { tokenProcessor, scopes, nameManager, importProcessor, helperManager };\n}\n","type":"js","dependency_paths":[["./CJSImportProcessor","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/CJSImportProcessor.js"],["./computeSourceMap","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/computeSourceMap.js"],["./HelperManager","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/HelperManager.js"],["./identifyShadowedGlobals","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/identifyShadowedGlobals.js"],["./NameManager","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/NameManager.js"],["./Options","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/Options.js"],["./parser","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/index.js"],["./TokenProcessor","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/TokenProcessor.js"],["./transformers/RootTransformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/RootTransformer.js"],["./util/formatTokens","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/formatTokens.js"],["./util/getTSImportedNames","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getTSImportedNames.js"]],"dependency_map":[],"exported":[{"type":"named","name":"getVersion"},{"type":"named","name":"transform"},{"type":"named","name":"getFormattedTokens"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/index.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.getVersion = getVersion;\n    exports.transform = transform;\n    exports.getFormattedTokens = getFormattedTokens;\n    const tslib_1 = require(\"tslib\");\n    const CJSImportProcessor_1 = tslib_1.__importDefault(require(\"add4298d4c\") /* ./CJSImportProcessor */);\n    const computeSourceMap_1 = tslib_1.__importDefault(require(\"03a5a23920\") /* ./computeSourceMap */);\n    const HelperManager_1 = require(\"40e1a4d3af\") /* ./HelperManager */;\n    const identifyShadowedGlobals_1 = tslib_1.__importDefault(require(\"5f4ada3fc1\") /* ./identifyShadowedGlobals */);\n    const NameManager_1 = tslib_1.__importDefault(require(\"425f39b83e\") /* ./NameManager */);\n    const Options_1 = require(\"bb0c9c6022\") /* ./Options */;\n    const parser_1 = require(\"7a45c9fdec\") /* ./parser */;\n    const TokenProcessor_1 = tslib_1.__importDefault(require(\"1c7cc5e988\") /* ./TokenProcessor */);\n    const RootTransformer_1 = tslib_1.__importDefault(require(\"131f5202c7\") /* ./transformers/RootTransformer */);\n    const formatTokens_1 = tslib_1.__importDefault(require(\"2e6a9a5b28\") /* ./util/formatTokens */);\n    const getTSImportedNames_1 = tslib_1.__importDefault(require(\"4160f5108d\") /* ./util/getTSImportedNames */);\n    ;\n    function getVersion() {\n        /* istanbul ignore next */\n        return \"3.35.0\";\n    }\n    function transform(code, options) {\n        (0, Options_1.validateOptions)(options);\n        try {\n            const sucraseContext = getSucraseContext(code, options);\n            const transformer = new RootTransformer_1.default(sucraseContext, options.transforms, Boolean(options.enableLegacyBabel5ModuleInterop), options);\n            const transformerResult = transformer.transform();\n            let result = { code: transformerResult.code };\n            if (options.sourceMapOptions) {\n                if (!options.filePath) {\n                    throw new Error(\"filePath must be specified when generating a source map.\");\n                }\n                result = {\n                    ...result,\n                    sourceMap: (0, computeSourceMap_1.default)(transformerResult, options.filePath, options.sourceMapOptions, code, sucraseContext.tokenProcessor.tokens),\n                };\n            }\n            return result;\n            // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        }\n        catch (e) {\n            if (options.filePath) {\n                e.message = `Error transforming ${options.filePath}: ${e.message}`;\n            }\n            throw e;\n        }\n    }\n    /**\n     * Return a string representation of the sucrase tokens, mostly useful for\n     * diagnostic purposes.\n     */\n    function getFormattedTokens(code, options) {\n        const tokens = getSucraseContext(code, options).tokenProcessor.tokens;\n        return (0, formatTokens_1.default)(code, tokens);\n    }\n    /**\n     * Call into the parser/tokenizer and do some further preprocessing:\n     * - Come up with a set of used names so that we can assign new names.\n     * - Preprocess all import/export statements so we know which globals we are interested in.\n     * - Compute situations where any of those globals are shadowed.\n     *\n     * In the future, some of these preprocessing steps can be skipped based on what actual work is\n     * being done.\n     */\n    function getSucraseContext(code, options) {\n        const isJSXEnabled = options.transforms.includes(\"jsx\");\n        const isTypeScriptEnabled = options.transforms.includes(\"typescript\");\n        const isFlowEnabled = options.transforms.includes(\"flow\");\n        const disableESTransforms = options.disableESTransforms === true;\n        const file = (0, parser_1.parse)(code, isJSXEnabled, isTypeScriptEnabled, isFlowEnabled);\n        const tokens = file.tokens;\n        const scopes = file.scopes;\n        const nameManager = new NameManager_1.default(code, tokens);\n        const helperManager = new HelperManager_1.HelperManager(nameManager);\n        const tokenProcessor = new TokenProcessor_1.default(code, tokens, isFlowEnabled, disableESTransforms, helperManager);\n        const enableLegacyTypeScriptModuleInterop = Boolean(options.enableLegacyTypeScriptModuleInterop);\n        let importProcessor = null;\n        if (options.transforms.includes(\"imports\")) {\n            importProcessor = new CJSImportProcessor_1.default(nameManager, tokenProcessor, enableLegacyTypeScriptModuleInterop, options, options.transforms.includes(\"typescript\"), Boolean(options.keepUnusedImports), helperManager);\n            importProcessor.preprocessTokens();\n            // We need to mark shadowed globals after processing imports so we know that the globals are,\n            // but before type-only import pruning, since that relies on shadowing information.\n            (0, identifyShadowedGlobals_1.default)(tokenProcessor, scopes, importProcessor.getGlobalNames());\n            if (options.transforms.includes(\"typescript\") && !options.keepUnusedImports) {\n                importProcessor.pruneTypeOnlyImports();\n            }\n        }\n        else if (options.transforms.includes(\"typescript\") && !options.keepUnusedImports) {\n            // Shadowed global detection is needed for TS implicit elision of imported names.\n            (0, identifyShadowedGlobals_1.default)(tokenProcessor, scopes, (0, getTSImportedNames_1.default)(tokenProcessor));\n        }\n        return { tokenProcessor, scopes, nameManager, importProcessor, helperManager };\n    }\n}\n","min_source":"function _(e,t,r,s,o){s(),r.getVersion=function(){return\"3.35.0\"},r.transform=function(e,t){(0,i.validateOptions)(t);try{const r=b(e,t),s=new m.default(r,t.transforms,Boolean(t.enableLegacyBabel5ModuleInterop),t).transform();let o={code:s.code};if(t.sourceMapOptions){if(!t.filePath)throw new Error(\"filePath must be specified when generating a source map.\");o={...o,sourceMap:(0,f.default)(s,t.filePath,t.sourceMapOptions,e,r.tokenProcessor.tokens)}}return o}catch(e){throw t.filePath&&(e.message=`Error transforming ${t.filePath}: ${e.message}`),e}},r.getFormattedTokens=function(e,t){const r=b(e,t).tokenProcessor.tokens;return(0,_.default)(e,r)};const n=e(\"tslib\"),a=n.__importDefault(e(\"add4298d4c\")),f=n.__importDefault(e(\"03a5a23920\")),l=e(\"40e1a4d3af\"),c=n.__importDefault(e(\"5f4ada3fc1\")),p=n.__importDefault(e(\"425f39b83e\")),i=e(\"bb0c9c6022\"),u=e(\"7a45c9fdec\"),d=n.__importDefault(e(\"1c7cc5e988\")),m=n.__importDefault(e(\"131f5202c7\")),_=n.__importDefault(e(\"2e6a9a5b28\")),g=n.__importDefault(e(\"4160f5108d\"));function b(e,t){const r=t.transforms.includes(\"jsx\"),s=t.transforms.includes(\"typescript\"),o=t.transforms.includes(\"flow\"),n=!0===t.disableESTransforms,f=(0,u.parse)(e,r,s,o),i=f.tokens,m=f.scopes,_=new p.default(e,i),b=new l.HelperManager(_),k=new d.default(e,i,o,n,b),h=Boolean(t.enableLegacyTypeScriptModuleInterop);let w=null;return t.transforms.includes(\"imports\")?(w=new a.default(_,k,h,t,t.transforms.includes(\"typescript\"),Boolean(t.keepUnusedImports),b),w.preprocessTokens(),(0,c.default)(k,m,w.getGlobalNames()),t.transforms.includes(\"typescript\")&&!t.keepUnusedImports&&w.pruneTypeOnlyImports()):t.transforms.includes(\"typescript\")&&!t.keepUnusedImports&&(0,c.default)(k,m,(0,g.default)(k)),{tokenProcessor:k,scopes:m,nameManager:_,importProcessor:w,helperManager:b}}}\n//# sourceMappingURL=index.min.js.map","min_map":"{\"version\":3,\"file\":\"index.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"getVersion\",\"transform\",\"code\",\"options\",\"Options_1\",\"validateOptions\",\"sucraseContext\",\"getSucraseContext\",\"transformerResult\",\"RootTransformer_1\",\"default\",\"transforms\",\"Boolean\",\"enableLegacyBabel5ModuleInterop\",\"result\",\"sourceMapOptions\",\"filePath\",\"Error\",\"sourceMap\",\"computeSourceMap_1\",\"tokenProcessor\",\"tokens\",\"e\",\"message\",\"getFormattedTokens\",\"formatTokens_1\",\"tslib_1\",\"CJSImportProcessor_1\",\"__importDefault\",\"HelperManager_1\",\"identifyShadowedGlobals_1\",\"NameManager_1\",\"parser_1\",\"TokenProcessor_1\",\"getTSImportedNames_1\",\"isJSXEnabled\",\"includes\",\"isTypeScriptEnabled\",\"isFlowEnabled\",\"disableESTransforms\",\"file\",\"parse\",\"scopes\",\"nameManager\",\"helperManager\",\"HelperManager\",\"enableLegacyTypeScriptModuleInterop\",\"importProcessor\",\"keepUnusedImports\",\"preprocessTokens\",\"getGlobalNames\",\"pruneTypeOnlyImports\"],\"sources\":[\"0\"],\"mappings\":\"AAAgC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC7ED,IACAD,EAAQG,WAgBR,WAEI,MAAO,QACX,EAlBAH,EAAQI,UAmBR,SAAmBC,EAAMC,IACrB,EAAIC,EAAUC,iBAAiBF,GAC/B,IACI,MAAMG,EAAiBC,EAAkBL,EAAMC,GAEzCK,EADc,IAAIC,EAAkBC,QAAQJ,EAAgBH,EAAQQ,WAAYC,QAAQT,EAAQU,iCAAkCV,GAClGF,YACtC,IAAIa,EAAS,CAAEZ,KAAMM,EAAkBN,MACvC,GAAIC,EAAQY,iBAAkB,CAC1B,IAAKZ,EAAQa,SACT,MAAM,IAAIC,MAAM,4DAEpBH,EAAS,IACFA,EACHI,WAAW,EAAIC,EAAmBT,SAASF,EAAmBL,EAAQa,SAAUb,EAAQY,iBAAkBb,EAAMI,EAAec,eAAeC,QAEtJ,CACA,OAAOP,CAEX,CACA,MAAOQ,GAIH,MAHInB,EAAQa,WACRM,EAAEC,QAAU,sBAAsBpB,EAAQa,aAAaM,EAAEC,WAEvDD,CACV,CACJ,EA3CAzB,EAAQ2B,mBAgDR,SAA4BtB,EAAMC,GAC9B,MAAMkB,EAASd,EAAkBL,EAAMC,GAASiB,eAAeC,OAC/D,OAAO,EAAII,EAAef,SAASR,EAAMmB,EAC7C,EAlDA,MAAMK,EAAU/B,EAAQ,SAClBgC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fhD,EAAQQ,WAAWyB,SAAS,gBAAkBjC,EAAQ6C,oBAE3D,EAAIlB,EAA0BpB,SAASU,EAAgBsB,GAAQ,EAAIR,EAAqBxB,SAASU,IAE9F,CAAEA,iBAAgBsB,SAAQC,cAAaI,kBAAiBH,gBACnE,CACJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/CJSImportProcessor.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/CJSImportProcessor.js","resolution":"ESM","id":"add4298d4c","hash":"add4298d4c832e0c70d82cd65018d30e03d5e8bd6d73b1838a2fc49cc6478948","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\nconst tokenizer_1 = require(\"./parser/tokenizer\");\nconst keywords_1 = require(\"./parser/tokenizer/keywords\");\nconst types_1 = require(\"./parser/tokenizer/types\");\nconst getImportExportSpecifierInfo_1 = tslib_1.__importDefault(require(\"./util/getImportExportSpecifierInfo\"));\nconst getNonTypeIdentifiers_1 = require(\"./util/getNonTypeIdentifiers\");\n/**\n * Class responsible for preprocessing and bookkeeping import and export declarations within the\n * file.\n *\n * TypeScript uses a simpler mechanism that does not use functions like interopRequireDefault and\n * interopRequireWildcard, so we also allow that mode for compatibility.\n */\nclass CJSImportProcessor {\n    __init() { this.nonTypeIdentifiers = new Set(); }\n    __init2() { this.importInfoByPath = new Map(); }\n    __init3() { this.importsToReplace = new Map(); }\n    __init4() { this.identifierReplacements = new Map(); }\n    __init5() { this.exportBindingsByLocalName = new Map(); }\n    constructor(nameManager, tokens, enableLegacyTypeScriptModuleInterop, options, isTypeScriptTransformEnabled, keepUnusedImports, helperManager) { ; this.nameManager = nameManager; this.tokens = tokens; this.enableLegacyTypeScriptModuleInterop = enableLegacyTypeScriptModuleInterop; this.options = options; this.isTypeScriptTransformEnabled = isTypeScriptTransformEnabled; this.keepUnusedImports = keepUnusedImports; this.helperManager = helperManager; CJSImportProcessor.prototype.__init.call(this); CJSImportProcessor.prototype.__init2.call(this); CJSImportProcessor.prototype.__init3.call(this); CJSImportProcessor.prototype.__init4.call(this); CJSImportProcessor.prototype.__init5.call(this); }\n    preprocessTokens() {\n        for (let i = 0; i < this.tokens.tokens.length; i++) {\n            if (this.tokens.matches1AtIndex(i, types_1.TokenType._import) &&\n                !this.tokens.matches3AtIndex(i, types_1.TokenType._import, types_1.TokenType.name, types_1.TokenType.eq)) {\n                this.preprocessImportAtIndex(i);\n            }\n            if (this.tokens.matches1AtIndex(i, types_1.TokenType._export) &&\n                !this.tokens.matches2AtIndex(i, types_1.TokenType._export, types_1.TokenType.eq)) {\n                this.preprocessExportAtIndex(i);\n            }\n        }\n        this.generateImportReplacements();\n    }\n    /**\n     * In TypeScript, import statements that only import types should be removed.\n     * This includes `import {} from 'foo';`, but not `import 'foo';`.\n     */\n    pruneTypeOnlyImports() {\n        this.nonTypeIdentifiers = (0, getNonTypeIdentifiers_1.getNonTypeIdentifiers)(this.tokens, this.options);\n        for (const [path, importInfo] of this.importInfoByPath.entries()) {\n            if (importInfo.hasBareImport ||\n                importInfo.hasStarExport ||\n                importInfo.exportStarNames.length > 0 ||\n                importInfo.namedExports.length > 0) {\n                continue;\n            }\n            const names = [\n                ...importInfo.defaultNames,\n                ...importInfo.wildcardNames,\n                ...importInfo.namedImports.map(({ localName }) => localName),\n            ];\n            if (names.every((name) => this.shouldAutomaticallyElideImportedName(name))) {\n                this.importsToReplace.set(path, \"\");\n            }\n        }\n    }\n    shouldAutomaticallyElideImportedName(name) {\n        return (this.isTypeScriptTransformEnabled &&\n            !this.keepUnusedImports &&\n            !this.nonTypeIdentifiers.has(name));\n    }\n    generateImportReplacements() {\n        for (const [path, importInfo] of this.importInfoByPath.entries()) {\n            const { defaultNames, wildcardNames, namedImports, namedExports, exportStarNames, hasStarExport, } = importInfo;\n            if (defaultNames.length === 0 &&\n                wildcardNames.length === 0 &&\n                namedImports.length === 0 &&\n                namedExports.length === 0 &&\n                exportStarNames.length === 0 &&\n                !hasStarExport) {\n                // Import is never used, so don't even assign a name.\n                this.importsToReplace.set(path, `require('${path}');`);\n                continue;\n            }\n            const primaryImportName = this.getFreeIdentifierForPath(path);\n            let secondaryImportName;\n            if (this.enableLegacyTypeScriptModuleInterop) {\n                secondaryImportName = primaryImportName;\n            }\n            else {\n                secondaryImportName =\n                    wildcardNames.length > 0 ? wildcardNames[0] : this.getFreeIdentifierForPath(path);\n            }\n            let requireCode = `var ${primaryImportName} = require('${path}');`;\n            if (wildcardNames.length > 0) {\n                for (const wildcardName of wildcardNames) {\n                    const moduleExpr = this.enableLegacyTypeScriptModuleInterop\n                        ? primaryImportName\n                        : `${this.helperManager.getHelperName(\"interopRequireWildcard\")}(${primaryImportName})`;\n                    requireCode += ` var ${wildcardName} = ${moduleExpr};`;\n                }\n            }\n            else if (exportStarNames.length > 0 && secondaryImportName !== primaryImportName) {\n                requireCode += ` var ${secondaryImportName} = ${this.helperManager.getHelperName(\"interopRequireWildcard\")}(${primaryImportName});`;\n            }\n            else if (defaultNames.length > 0 && secondaryImportName !== primaryImportName) {\n                requireCode += ` var ${secondaryImportName} = ${this.helperManager.getHelperName(\"interopRequireDefault\")}(${primaryImportName});`;\n            }\n            for (const { importedName, localName } of namedExports) {\n                requireCode += ` ${this.helperManager.getHelperName(\"createNamedExportFrom\")}(${primaryImportName}, '${localName}', '${importedName}');`;\n            }\n            for (const exportStarName of exportStarNames) {\n                requireCode += ` exports.${exportStarName} = ${secondaryImportName};`;\n            }\n            if (hasStarExport) {\n                requireCode += ` ${this.helperManager.getHelperName(\"createStarExport\")}(${primaryImportName});`;\n            }\n            this.importsToReplace.set(path, requireCode);\n            for (const defaultName of defaultNames) {\n                this.identifierReplacements.set(defaultName, `${secondaryImportName}.default`);\n            }\n            for (const { importedName, localName } of namedImports) {\n                this.identifierReplacements.set(localName, `${primaryImportName}.${importedName}`);\n            }\n        }\n    }\n    getFreeIdentifierForPath(path) {\n        const components = path.split(\"/\");\n        const lastComponent = components[components.length - 1];\n        const baseName = lastComponent.replace(/\\W/g, \"\");\n        return this.nameManager.claimFreeName(`_${baseName}`);\n    }\n    preprocessImportAtIndex(index) {\n        const defaultNames = [];\n        const wildcardNames = [];\n        const namedImports = [];\n        index++;\n        if ((this.tokens.matchesContextualAtIndex(index, keywords_1.ContextualKeyword._type) ||\n            this.tokens.matches1AtIndex(index, types_1.TokenType._typeof)) &&\n            !this.tokens.matches1AtIndex(index + 1, types_1.TokenType.comma) &&\n            !this.tokens.matchesContextualAtIndex(index + 1, keywords_1.ContextualKeyword._from)) {\n            // import type declaration, so no need to process anything.\n            return;\n        }\n        if (this.tokens.matches1AtIndex(index, types_1.TokenType.parenL)) {\n            // Dynamic import, so nothing to do\n            return;\n        }\n        if (this.tokens.matches1AtIndex(index, types_1.TokenType.name)) {\n            defaultNames.push(this.tokens.identifierNameAtIndex(index));\n            index++;\n            if (this.tokens.matches1AtIndex(index, types_1.TokenType.comma)) {\n                index++;\n            }\n        }\n        if (this.tokens.matches1AtIndex(index, types_1.TokenType.star)) {\n            // * as\n            index += 2;\n            wildcardNames.push(this.tokens.identifierNameAtIndex(index));\n            index++;\n        }\n        if (this.tokens.matches1AtIndex(index, types_1.TokenType.braceL)) {\n            const result = this.getNamedImports(index + 1);\n            index = result.newIndex;\n            for (const namedImport of result.namedImports) {\n                // Treat {default as X} as a default import to ensure usage of require interop helper\n                if (namedImport.importedName === \"default\") {\n                    defaultNames.push(namedImport.localName);\n                }\n                else {\n                    namedImports.push(namedImport);\n                }\n            }\n        }\n        if (this.tokens.matchesContextualAtIndex(index, keywords_1.ContextualKeyword._from)) {\n            index++;\n        }\n        if (!this.tokens.matches1AtIndex(index, types_1.TokenType.string)) {\n            throw new Error(\"Expected string token at the end of import statement.\");\n        }\n        const path = this.tokens.stringValueAtIndex(index);\n        const importInfo = this.getImportInfo(path);\n        importInfo.defaultNames.push(...defaultNames);\n        importInfo.wildcardNames.push(...wildcardNames);\n        importInfo.namedImports.push(...namedImports);\n        if (defaultNames.length === 0 && wildcardNames.length === 0 && namedImports.length === 0) {\n            importInfo.hasBareImport = true;\n        }\n    }\n    preprocessExportAtIndex(index) {\n        if (this.tokens.matches2AtIndex(index, types_1.TokenType._export, types_1.TokenType._var) ||\n            this.tokens.matches2AtIndex(index, types_1.TokenType._export, types_1.TokenType._let) ||\n            this.tokens.matches2AtIndex(index, types_1.TokenType._export, types_1.TokenType._const)) {\n            this.preprocessVarExportAtIndex(index);\n        }\n        else if (this.tokens.matches2AtIndex(index, types_1.TokenType._export, types_1.TokenType._function) ||\n            this.tokens.matches2AtIndex(index, types_1.TokenType._export, types_1.TokenType._class)) {\n            const exportName = this.tokens.identifierNameAtIndex(index + 2);\n            this.addExportBinding(exportName, exportName);\n        }\n        else if (this.tokens.matches3AtIndex(index, types_1.TokenType._export, types_1.TokenType.name, types_1.TokenType._function)) {\n            const exportName = this.tokens.identifierNameAtIndex(index + 3);\n            this.addExportBinding(exportName, exportName);\n        }\n        else if (this.tokens.matches2AtIndex(index, types_1.TokenType._export, types_1.TokenType.braceL)) {\n            this.preprocessNamedExportAtIndex(index);\n        }\n        else if (this.tokens.matches2AtIndex(index, types_1.TokenType._export, types_1.TokenType.star)) {\n            this.preprocessExportStarAtIndex(index);\n        }\n    }\n    preprocessVarExportAtIndex(index) {\n        let depth = 0;\n        // Handle cases like `export let {x} = y;`, starting at the open-brace in that case.\n        for (let i = index + 2;; i++) {\n            if (this.tokens.matches1AtIndex(i, types_1.TokenType.braceL) ||\n                this.tokens.matches1AtIndex(i, types_1.TokenType.dollarBraceL) ||\n                this.tokens.matches1AtIndex(i, types_1.TokenType.bracketL)) {\n                depth++;\n            }\n            else if (this.tokens.matches1AtIndex(i, types_1.TokenType.braceR) ||\n                this.tokens.matches1AtIndex(i, types_1.TokenType.bracketR)) {\n                depth--;\n            }\n            else if (depth === 0 && !this.tokens.matches1AtIndex(i, types_1.TokenType.name)) {\n                break;\n            }\n            else if (this.tokens.matches1AtIndex(1, types_1.TokenType.eq)) {\n                const endIndex = this.tokens.currentToken().rhsEndIndex;\n                if (endIndex == null) {\n                    throw new Error(\"Expected = token with an end index.\");\n                }\n                i = endIndex - 1;\n            }\n            else {\n                const token = this.tokens.tokens[i];\n                if ((0, tokenizer_1.isDeclaration)(token)) {\n                    const exportName = this.tokens.identifierNameAtIndex(i);\n                    this.identifierReplacements.set(exportName, `exports.${exportName}`);\n                }\n            }\n        }\n    }\n    /**\n     * Walk this export statement just in case it's an export...from statement.\n     * If it is, combine it into the import info for that path. Otherwise, just\n     * bail out; it'll be handled later.\n     */\n    preprocessNamedExportAtIndex(index) {\n        // export {\n        index += 2;\n        const { newIndex, namedImports } = this.getNamedImports(index);\n        index = newIndex;\n        if (this.tokens.matchesContextualAtIndex(index, keywords_1.ContextualKeyword._from)) {\n            index++;\n        }\n        else {\n            // Reinterpret \"a as b\" to be local/exported rather than imported/local.\n            for (const { importedName: localName, localName: exportedName } of namedImports) {\n                this.addExportBinding(localName, exportedName);\n            }\n            return;\n        }\n        if (!this.tokens.matches1AtIndex(index, types_1.TokenType.string)) {\n            throw new Error(\"Expected string token at the end of import statement.\");\n        }\n        const path = this.tokens.stringValueAtIndex(index);\n        const importInfo = this.getImportInfo(path);\n        importInfo.namedExports.push(...namedImports);\n    }\n    preprocessExportStarAtIndex(index) {\n        let exportedName = null;\n        if (this.tokens.matches3AtIndex(index, types_1.TokenType._export, types_1.TokenType.star, types_1.TokenType._as)) {\n            // export * as\n            index += 3;\n            exportedName = this.tokens.identifierNameAtIndex(index);\n            // foo from\n            index += 2;\n        }\n        else {\n            // export * from\n            index += 3;\n        }\n        if (!this.tokens.matches1AtIndex(index, types_1.TokenType.string)) {\n            throw new Error(\"Expected string token at the end of star export statement.\");\n        }\n        const path = this.tokens.stringValueAtIndex(index);\n        const importInfo = this.getImportInfo(path);\n        if (exportedName !== null) {\n            importInfo.exportStarNames.push(exportedName);\n        }\n        else {\n            importInfo.hasStarExport = true;\n        }\n    }\n    getNamedImports(index) {\n        const namedImports = [];\n        while (true) {\n            if (this.tokens.matches1AtIndex(index, types_1.TokenType.braceR)) {\n                index++;\n                break;\n            }\n            const specifierInfo = (0, getImportExportSpecifierInfo_1.default)(this.tokens, index);\n            index = specifierInfo.endIndex;\n            if (!specifierInfo.isType) {\n                namedImports.push({\n                    importedName: specifierInfo.leftName,\n                    localName: specifierInfo.rightName,\n                });\n            }\n            if (this.tokens.matches2AtIndex(index, types_1.TokenType.comma, types_1.TokenType.braceR)) {\n                index += 2;\n                break;\n            }\n            else if (this.tokens.matches1AtIndex(index, types_1.TokenType.braceR)) {\n                index++;\n                break;\n            }\n            else if (this.tokens.matches1AtIndex(index, types_1.TokenType.comma)) {\n                index++;\n            }\n            else {\n                throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[index])}`);\n            }\n        }\n        return { newIndex: index, namedImports };\n    }\n    /**\n     * Get a mutable import info object for this path, creating one if it doesn't\n     * exist yet.\n     */\n    getImportInfo(path) {\n        const existingInfo = this.importInfoByPath.get(path);\n        if (existingInfo) {\n            return existingInfo;\n        }\n        const newInfo = {\n            defaultNames: [],\n            wildcardNames: [],\n            namedImports: [],\n            namedExports: [],\n            hasBareImport: false,\n            exportStarNames: [],\n            hasStarExport: false,\n        };\n        this.importInfoByPath.set(path, newInfo);\n        return newInfo;\n    }\n    addExportBinding(localName, exportedName) {\n        if (!this.exportBindingsByLocalName.has(localName)) {\n            this.exportBindingsByLocalName.set(localName, []);\n        }\n        this.exportBindingsByLocalName.get(localName).push(exportedName);\n    }\n    /**\n     * Return the code to use for the import for this path, or the empty string if\n     * the code has already been \"claimed\" by a previous import.\n     */\n    claimImportCode(importPath) {\n        const result = this.importsToReplace.get(importPath);\n        this.importsToReplace.set(importPath, \"\");\n        return result || \"\";\n    }\n    getIdentifierReplacement(identifierName) {\n        return this.identifierReplacements.get(identifierName) || null;\n    }\n    /**\n     * Return a string like `exports.foo = exports.bar`.\n     */\n    resolveExportBinding(assignedName) {\n        const exportedNames = this.exportBindingsByLocalName.get(assignedName);\n        if (!exportedNames || exportedNames.length === 0) {\n            return null;\n        }\n        return exportedNames.map((exportedName) => `exports.${exportedName}`).join(\" = \");\n    }\n    /**\n     * Return all imported/exported names where we might be interested in whether usages of those\n     * names are shadowed.\n     */\n    getGlobalNames() {\n        return new Set([\n            ...this.identifierReplacements.keys(),\n            ...this.exportBindingsByLocalName.keys(),\n        ]);\n    }\n}\nexports.default = CJSImportProcessor;\n","type":"js","dependency_paths":[["./parser/tokenizer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["./parser/tokenizer/keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"],["./parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["./util/getImportExportSpecifierInfo","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getImportExportSpecifierInfo.js"],["./util/getNonTypeIdentifiers","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getNonTypeIdentifiers.js"]],"dependency_map":[],"exported":[{"type":"named","name":"CJSImportProcessor"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/CJSImportProcessor.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const tokenizer_1 = require(\"bfb18d0576\") /* ./parser/tokenizer */;\n    const keywords_1 = require(\"99ff836c64\") /* ./parser/tokenizer/keywords */;\n    const types_1 = require(\"f0c35cbd76\") /* ./parser/tokenizer/types */;\n    const getImportExportSpecifierInfo_1 = tslib_1.__importDefault(require(\"14d4ae78a4\") /* ./util/getImportExportSpecifierInfo */);\n    const getNonTypeIdentifiers_1 = require(\"1ff9c9004b\") /* ./util/getNonTypeIdentifiers */;\n    /**\n     * Class responsible for preprocessing and bookkeeping import and export declarations within the\n     * file.\n     *\n     * TypeScript uses a simpler mechanism that does not use functions like interopRequireDefault and\n     * interopRequireWildcard, so we also allow that mode for compatibility.\n     */\n    class CJSImportProcessor {\n        __init() { this.nonTypeIdentifiers = new Set(); }\n        __init2() { this.importInfoByPath = new Map(); }\n        __init3() { this.importsToReplace = new Map(); }\n        __init4() { this.identifierReplacements = new Map(); }\n        __init5() { this.exportBindingsByLocalName = new Map(); }\n        constructor(nameManager, tokens, enableLegacyTypeScriptModuleInterop, options, isTypeScriptTransformEnabled, keepUnusedImports, helperManager) { ; this.nameManager = nameManager; this.tokens = tokens; this.enableLegacyTypeScriptModuleInterop = enableLegacyTypeScriptModuleInterop; this.options = options; this.isTypeScriptTransformEnabled = isTypeScriptTransformEnabled; this.keepUnusedImports = keepUnusedImports; this.helperManager = helperManager; CJSImportProcessor.prototype.__init.call(this); CJSImportProcessor.prototype.__init2.call(this); CJSImportProcessor.prototype.__init3.call(this); CJSImportProcessor.prototype.__init4.call(this); CJSImportProcessor.prototype.__init5.call(this); }\n        preprocessTokens() {\n            for (let i = 0; i < this.tokens.tokens.length; i++) {\n                if (this.tokens.matches1AtIndex(i, types_1.TokenType._import) &&\n                    !this.tokens.matches3AtIndex(i, types_1.TokenType._import, types_1.TokenType.name, types_1.TokenType.eq)) {\n                    this.preprocessImportAtIndex(i);\n                }\n                if (this.tokens.matches1AtIndex(i, types_1.TokenType._export) &&\n                    !this.tokens.matches2AtIndex(i, types_1.TokenType._export, types_1.TokenType.eq)) {\n                    this.preprocessExportAtIndex(i);\n                }\n            }\n            this.generateImportReplacements();\n        }\n        /**\n         * In TypeScript, import statements that only import types should be removed.\n         * This includes `import {} from 'foo';`, but not `import 'foo';`.\n         */\n        pruneTypeOnlyImports() {\n            this.nonTypeIdentifiers = (0, getNonTypeIdentifiers_1.getNonTypeIdentifiers)(this.tokens, this.options);\n            for (const [path, importInfo] of this.importInfoByPath.entries()) {\n                if (importInfo.hasBareImport ||\n                    importInfo.hasStarExport ||\n                    importInfo.exportStarNames.length > 0 ||\n                    importInfo.namedExports.length > 0) {\n                    continue;\n                }\n                const names = [\n                    ...importInfo.defaultNames,\n                    ...importInfo.wildcardNames,\n                    ...importInfo.namedImports.map(({ localName }) => localName),\n                ];\n                if (names.every((name) => this.shouldAutomaticallyElideImportedName(name))) {\n                    this.importsToReplace.set(path, \"\");\n                }\n            }\n        }\n        shouldAutomaticallyElideImportedName(name) {\n            return (this.isTypeScriptTransformEnabled &&\n                !this.keepUnusedImports &&\n                !this.nonTypeIdentifiers.has(name));\n        }\n        generateImportReplacements() {\n            for (const [path, importInfo] of this.importInfoByPath.entries()) {\n                const { defaultNames, wildcardNames, namedImports, namedExports, exportStarNames, hasStarExport, } = importInfo;\n                if (defaultNames.length === 0 &&\n                    wildcardNames.length === 0 &&\n                    namedImports.length === 0 &&\n                    namedExports.length === 0 &&\n                    exportStarNames.length === 0 &&\n                    !hasStarExport) {\n                    // Import is never used, so don't even assign a name.\n                    this.importsToReplace.set(path, `require('${path}');`);\n                    continue;\n                }\n                const primaryImportName = this.getFreeIdentifierForPath(path);\n                let secondaryImportName;\n                if (this.enableLegacyTypeScriptModuleInterop) {\n                    secondaryImportName = primaryImportName;\n                }\n                else {\n                    secondaryImportName =\n                        wildcardNames.length > 0 ? wildcardNames[0] : this.getFreeIdentifierForPath(path);\n                }\n                let requireCode = `var ${primaryImportName} = require('${path}');`;\n                if (wildcardNames.length > 0) {\n                    for (const wildcardName of wildcardNames) {\n                        const moduleExpr = this.enableLegacyTypeScriptModuleInterop\n                            ? primaryImportName\n                            : `${this.helperManager.getHelperName(\"interopRequireWildcard\")}(${primaryImportName})`;\n                        requireCode += ` var ${wildcardName} = ${moduleExpr};`;\n                    }\n                }\n                else if (exportStarNames.length > 0 && secondaryImportName !== primaryImportName) {\n                    requireCode += ` var ${secondaryImportName} = ${this.helperManager.getHelperName(\"interopRequireWildcard\")}(${primaryImportName});`;\n                }\n                else if (defaultNames.length > 0 && secondaryImportName !== primaryImportName) {\n                    requireCode += ` var ${secondaryImportName} = ${this.helperManager.getHelperName(\"interopRequireDefault\")}(${primaryImportName});`;\n                }\n                for (const { importedName, localName } of namedExports) {\n                    requireCode += ` ${this.helperManager.getHelperName(\"createNamedExportFrom\")}(${primaryImportName}, '${localName}', '${importedName}');`;\n                }\n                for (const exportStarName of exportStarNames) {\n                    requireCode += ` exports.${exportStarName} = ${secondaryImportName};`;\n                }\n                if (hasStarExport) {\n                    requireCode += ` ${this.helperManager.getHelperName(\"createStarExport\")}(${primaryImportName});`;\n                }\n                this.importsToReplace.set(path, requireCode);\n                for (const defaultName of defaultNames) {\n                    this.identifierReplacements.set(defaultName, `${secondaryImportName}.default`);\n                }\n                for (const { importedName, localName } of namedImports) {\n                    this.identifierReplacements.set(localName, `${primaryImportName}.${importedName}`);\n                }\n            }\n        }\n        getFreeIdentifierForPath(path) {\n            const components = path.split(\"/\");\n            const lastComponent = components[components.length - 1];\n            const baseName = lastComponent.replace(/\\W/g, \"\");\n            return this.nameManager.claimFreeName(`_${baseName}`);\n        }\n        preprocessImportAtIndex(index) {\n            const defaultNames = [];\n            const wildcardNames = [];\n            const namedImports = [];\n            index++;\n            if ((this.tokens.matchesContextualAtIndex(index, keywords_1.ContextualKeyword._type) ||\n                this.tokens.matches1AtIndex(index, types_1.TokenType._typeof)) &&\n                !this.tokens.matches1AtIndex(index + 1, types_1.TokenType.comma) &&\n                !this.tokens.matchesContextualAtIndex(index + 1, keywords_1.ContextualKeyword._from)) {\n                // import type declaration, so no need to process anything.\n                return;\n            }\n            if (this.tokens.matches1AtIndex(index, types_1.TokenType.parenL)) {\n                // Dynamic import, so nothing to do\n                return;\n            }\n            if (this.tokens.matches1AtIndex(index, types_1.TokenType.name)) {\n                defaultNames.push(this.tokens.identifierNameAtIndex(index));\n                index++;\n                if (this.tokens.matches1AtIndex(index, types_1.TokenType.comma)) {\n                    index++;\n                }\n            }\n            if (this.tokens.matches1AtIndex(index, types_1.TokenType.star)) {\n                // * as\n                index += 2;\n                wildcardNames.push(this.tokens.identifierNameAtIndex(index));\n                index++;\n            }\n            if (this.tokens.matches1AtIndex(index, types_1.TokenType.braceL)) {\n                const result = this.getNamedImports(index + 1);\n                index = result.newIndex;\n                for (const namedImport of result.namedImports) {\n                    // Treat {default as X} as a default import to ensure usage of require interop helper\n                    if (namedImport.importedName === \"default\") {\n                        defaultNames.push(namedImport.localName);\n                    }\n                    else {\n                        namedImports.push(namedImport);\n                    }\n                }\n            }\n            if (this.tokens.matchesContextualAtIndex(index, keywords_1.ContextualKeyword._from)) {\n                index++;\n            }\n            if (!this.tokens.matches1AtIndex(index, types_1.TokenType.string)) {\n                throw new Error(\"Expected string token at the end of import statement.\");\n            }\n            const path = this.tokens.stringValueAtIndex(index);\n            const importInfo = this.getImportInfo(path);\n            importInfo.defaultNames.push(...defaultNames);\n            importInfo.wildcardNames.push(...wildcardNames);\n            importInfo.namedImports.push(...namedImports);\n            if (defaultNames.length === 0 && wildcardNames.length === 0 && namedImports.length === 0) {\n                importInfo.hasBareImport = true;\n            }\n        }\n        preprocessExportAtIndex(index) {\n            if (this.tokens.matches2AtIndex(index, types_1.TokenType._export, types_1.TokenType._var) ||\n                this.tokens.matches2AtIndex(index, types_1.TokenType._export, types_1.TokenType._let) ||\n                this.tokens.matches2AtIndex(index, types_1.TokenType._export, types_1.TokenType._const)) {\n                this.preprocessVarExportAtIndex(index);\n            }\n            else if (this.tokens.matches2AtIndex(index, types_1.TokenType._export, types_1.TokenType._function) ||\n                this.tokens.matches2AtIndex(index, types_1.TokenType._export, types_1.TokenType._class)) {\n                const exportName = this.tokens.identifierNameAtIndex(index + 2);\n                this.addExportBinding(exportName, exportName);\n            }\n            else if (this.tokens.matches3AtIndex(index, types_1.TokenType._export, types_1.TokenType.name, types_1.TokenType._function)) {\n                const exportName = this.tokens.identifierNameAtIndex(index + 3);\n                this.addExportBinding(exportName, exportName);\n            }\n            else if (this.tokens.matches2AtIndex(index, types_1.TokenType._export, types_1.TokenType.braceL)) {\n                this.preprocessNamedExportAtIndex(index);\n            }\n            else if (this.tokens.matches2AtIndex(index, types_1.TokenType._export, types_1.TokenType.star)) {\n                this.preprocessExportStarAtIndex(index);\n            }\n        }\n        preprocessVarExportAtIndex(index) {\n            let depth = 0;\n            // Handle cases like `export let {x} = y;`, starting at the open-brace in that case.\n            for (let i = index + 2;; i++) {\n                if (this.tokens.matches1AtIndex(i, types_1.TokenType.braceL) ||\n                    this.tokens.matches1AtIndex(i, types_1.TokenType.dollarBraceL) ||\n                    this.tokens.matches1AtIndex(i, types_1.TokenType.bracketL)) {\n                    depth++;\n                }\n                else if (this.tokens.matches1AtIndex(i, types_1.TokenType.braceR) ||\n                    this.tokens.matches1AtIndex(i, types_1.TokenType.bracketR)) {\n                    depth--;\n                }\n                else if (depth === 0 && !this.tokens.matches1AtIndex(i, types_1.TokenType.name)) {\n                    break;\n                }\n                else if (this.tokens.matches1AtIndex(1, types_1.TokenType.eq)) {\n                    const endIndex = this.tokens.currentToken().rhsEndIndex;\n                    if (endIndex == null) {\n                        throw new Error(\"Expected = token with an end index.\");\n                    }\n                    i = endIndex - 1;\n                }\n                else {\n                    const token = this.tokens.tokens[i];\n                    if ((0, tokenizer_1.isDeclaration)(token)) {\n                        const exportName = this.tokens.identifierNameAtIndex(i);\n                        this.identifierReplacements.set(exportName, `exports.${exportName}`);\n                    }\n                }\n            }\n        }\n        /**\n         * Walk this export statement just in case it's an export...from statement.\n         * If it is, combine it into the import info for that path. Otherwise, just\n         * bail out; it'll be handled later.\n         */\n        preprocessNamedExportAtIndex(index) {\n            // export {\n            index += 2;\n            const { newIndex, namedImports } = this.getNamedImports(index);\n            index = newIndex;\n            if (this.tokens.matchesContextualAtIndex(index, keywords_1.ContextualKeyword._from)) {\n                index++;\n            }\n            else {\n                // Reinterpret \"a as b\" to be local/exported rather than imported/local.\n                for (const { importedName: localName, localName: exportedName } of namedImports) {\n                    this.addExportBinding(localName, exportedName);\n                }\n                return;\n            }\n            if (!this.tokens.matches1AtIndex(index, types_1.TokenType.string)) {\n                throw new Error(\"Expected string token at the end of import statement.\");\n            }\n            const path = this.tokens.stringValueAtIndex(index);\n            const importInfo = this.getImportInfo(path);\n            importInfo.namedExports.push(...namedImports);\n        }\n        preprocessExportStarAtIndex(index) {\n            let exportedName = null;\n            if (this.tokens.matches3AtIndex(index, types_1.TokenType._export, types_1.TokenType.star, types_1.TokenType._as)) {\n                // export * as\n                index += 3;\n                exportedName = this.tokens.identifierNameAtIndex(index);\n                // foo from\n                index += 2;\n            }\n            else {\n                // export * from\n                index += 3;\n            }\n            if (!this.tokens.matches1AtIndex(index, types_1.TokenType.string)) {\n                throw new Error(\"Expected string token at the end of star export statement.\");\n            }\n            const path = this.tokens.stringValueAtIndex(index);\n            const importInfo = this.getImportInfo(path);\n            if (exportedName !== null) {\n                importInfo.exportStarNames.push(exportedName);\n            }\n            else {\n                importInfo.hasStarExport = true;\n            }\n        }\n        getNamedImports(index) {\n            const namedImports = [];\n            while (true) {\n                if (this.tokens.matches1AtIndex(index, types_1.TokenType.braceR)) {\n                    index++;\n                    break;\n                }\n                const specifierInfo = (0, getImportExportSpecifierInfo_1.default)(this.tokens, index);\n                index = specifierInfo.endIndex;\n                if (!specifierInfo.isType) {\n                    namedImports.push({\n                        importedName: specifierInfo.leftName,\n                        localName: specifierInfo.rightName,\n                    });\n                }\n                if (this.tokens.matches2AtIndex(index, types_1.TokenType.comma, types_1.TokenType.braceR)) {\n                    index += 2;\n                    break;\n                }\n                else if (this.tokens.matches1AtIndex(index, types_1.TokenType.braceR)) {\n                    index++;\n                    break;\n                }\n                else if (this.tokens.matches1AtIndex(index, types_1.TokenType.comma)) {\n                    index++;\n                }\n                else {\n                    throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[index])}`);\n                }\n            }\n            return { newIndex: index, namedImports };\n        }\n        /**\n         * Get a mutable import info object for this path, creating one if it doesn't\n         * exist yet.\n         */\n        getImportInfo(path) {\n            const existingInfo = this.importInfoByPath.get(path);\n            if (existingInfo) {\n                return existingInfo;\n            }\n            const newInfo = {\n                defaultNames: [],\n                wildcardNames: [],\n                namedImports: [],\n                namedExports: [],\n                hasBareImport: false,\n                exportStarNames: [],\n                hasStarExport: false,\n            };\n            this.importInfoByPath.set(path, newInfo);\n            return newInfo;\n        }\n        addExportBinding(localName, exportedName) {\n            if (!this.exportBindingsByLocalName.has(localName)) {\n                this.exportBindingsByLocalName.set(localName, []);\n            }\n            this.exportBindingsByLocalName.get(localName).push(exportedName);\n        }\n        /**\n         * Return the code to use for the import for this path, or the empty string if\n         * the code has already been \"claimed\" by a previous import.\n         */\n        claimImportCode(importPath) {\n            const result = this.importsToReplace.get(importPath);\n            this.importsToReplace.set(importPath, \"\");\n            return result || \"\";\n        }\n        getIdentifierReplacement(identifierName) {\n            return this.identifierReplacements.get(identifierName) || null;\n        }\n        /**\n         * Return a string like `exports.foo = exports.bar`.\n         */\n        resolveExportBinding(assignedName) {\n            const exportedNames = this.exportBindingsByLocalName.get(assignedName);\n            if (!exportedNames || exportedNames.length === 0) {\n                return null;\n            }\n            return exportedNames.map((exportedName) => `exports.${exportedName}`).join(\" = \");\n        }\n        /**\n         * Return all imported/exported names where we might be interested in whether usages of those\n         * names are shadowed.\n         */\n        getGlobalNames() {\n            return new Set([\n                ...this.identifierReplacements.keys(),\n                ...this.exportBindingsByLocalName.keys(),\n            ]);\n        }\n    }\n    exports.default = CJSImportProcessor;\n}\n","min_source":"function _(e,t,n,s,o){s();const r=e(\"tslib\"),i=e(\"bfb18d0576\"),a=e(\"99ff836c64\"),p=e(\"f0c35cbd76\"),h=r.__importDefault(e(\"14d4ae78a4\")),m=e(\"1ff9c9004b\");class d{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(e,t,n,s,o,r,i){this.nameManager=e,this.tokens=t,this.enableLegacyTypeScriptModuleInterop=n,this.options=s,this.isTypeScriptTransformEnabled=o,this.keepUnusedImports=r,this.helperManager=i,d.prototype.__init.call(this),d.prototype.__init2.call(this),d.prototype.__init3.call(this),d.prototype.__init4.call(this),d.prototype.__init5.call(this)}preprocessTokens(){for(let e=0;e<this.tokens.tokens.length;e++)this.tokens.matches1AtIndex(e,p.TokenType._import)&&!this.tokens.matches3AtIndex(e,p.TokenType._import,p.TokenType.name,p.TokenType.eq)&&this.preprocessImportAtIndex(e),this.tokens.matches1AtIndex(e,p.TokenType._export)&&!this.tokens.matches2AtIndex(e,p.TokenType._export,p.TokenType.eq)&&this.preprocessExportAtIndex(e);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=(0,m.getNonTypeIdentifiers)(this.tokens,this.options);for(const[e,t]of this.importInfoByPath.entries()){if(t.hasBareImport||t.hasStarExport||t.exportStarNames.length>0||t.namedExports.length>0)continue;[...t.defaultNames,...t.wildcardNames,...t.namedImports.map((({localName:e})=>e))].every((e=>this.shouldAutomaticallyElideImportedName(e)))&&this.importsToReplace.set(e,\"\")}}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(const[e,t]of this.importInfoByPath.entries()){const{defaultNames:n,wildcardNames:s,namedImports:o,namedExports:r,exportStarNames:i,hasStarExport:a}=t;if(0===n.length&&0===s.length&&0===o.length&&0===r.length&&0===i.length&&!a){this.importsToReplace.set(e,`require('${e}');`);continue}const p=this.getFreeIdentifierForPath(e);let h;h=this.enableLegacyTypeScriptModuleInterop?p:s.length>0?s[0]:this.getFreeIdentifierForPath(e);let m=`var ${p} = require('${e}');`;if(s.length>0)for(const e of s){m+=` var ${e} = ${this.enableLegacyTypeScriptModuleInterop?p:`${this.helperManager.getHelperName(\"interopRequireWildcard\")}(${p})`};`}else i.length>0&&h!==p?m+=` var ${h} = ${this.helperManager.getHelperName(\"interopRequireWildcard\")}(${p});`:n.length>0&&h!==p&&(m+=` var ${h} = ${this.helperManager.getHelperName(\"interopRequireDefault\")}(${p});`);for(const{importedName:e,localName:t}of r)m+=` ${this.helperManager.getHelperName(\"createNamedExportFrom\")}(${p}, '${t}', '${e}');`;for(const e of i)m+=` exports.${e} = ${h};`;a&&(m+=` ${this.helperManager.getHelperName(\"createStarExport\")}(${p});`),this.importsToReplace.set(e,m);for(const e of n)this.identifierReplacements.set(e,`${h}.default`);for(const{importedName:e,localName:t}of o)this.identifierReplacements.set(t,`${p}.${e}`)}}getFreeIdentifierForPath(e){const t=e.split(\"/\"),n=t[t.length-1].replace(/\\W/g,\"\");return this.nameManager.claimFreeName(`_${n}`)}preprocessImportAtIndex(e){const t=[],n=[],s=[];if(e++,(this.tokens.matchesContextualAtIndex(e,a.ContextualKeyword._type)||this.tokens.matches1AtIndex(e,p.TokenType._typeof))&&!this.tokens.matches1AtIndex(e+1,p.TokenType.comma)&&!this.tokens.matchesContextualAtIndex(e+1,a.ContextualKeyword._from))return;if(this.tokens.matches1AtIndex(e,p.TokenType.parenL))return;if(this.tokens.matches1AtIndex(e,p.TokenType.name)&&(t.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,p.TokenType.comma)&&e++),this.tokens.matches1AtIndex(e,p.TokenType.star)&&(e+=2,n.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,p.TokenType.braceL)){const n=this.getNamedImports(e+1);e=n.newIndex;for(const e of n.namedImports)\"default\"===e.importedName?t.push(e.localName):s.push(e)}if(this.tokens.matchesContextualAtIndex(e,a.ContextualKeyword._from)&&e++,!this.tokens.matches1AtIndex(e,p.TokenType.string))throw new Error(\"Expected string token at the end of import statement.\");const o=this.tokens.stringValueAtIndex(e),r=this.getImportInfo(o);r.defaultNames.push(...t),r.wildcardNames.push(...n),r.namedImports.push(...s),0===t.length&&0===n.length&&0===s.length&&(r.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,p.TokenType._export,p.TokenType._var)||this.tokens.matches2AtIndex(e,p.TokenType._export,p.TokenType._let)||this.tokens.matches2AtIndex(e,p.TokenType._export,p.TokenType._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,p.TokenType._export,p.TokenType._function)||this.tokens.matches2AtIndex(e,p.TokenType._export,p.TokenType._class)){const t=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(t,t)}else if(this.tokens.matches3AtIndex(e,p.TokenType._export,p.TokenType.name,p.TokenType._function)){const t=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(t,t)}else this.tokens.matches2AtIndex(e,p.TokenType._export,p.TokenType.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,p.TokenType._export,p.TokenType.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let t=0;for(let n=e+2;;n++)if(this.tokens.matches1AtIndex(n,p.TokenType.braceL)||this.tokens.matches1AtIndex(n,p.TokenType.dollarBraceL)||this.tokens.matches1AtIndex(n,p.TokenType.bracketL))t++;else if(this.tokens.matches1AtIndex(n,p.TokenType.braceR)||this.tokens.matches1AtIndex(n,p.TokenType.bracketR))t--;else{if(0===t&&!this.tokens.matches1AtIndex(n,p.TokenType.name))break;if(this.tokens.matches1AtIndex(1,p.TokenType.eq)){const e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw new Error(\"Expected = token with an end index.\");n=e-1}else{const e=this.tokens.tokens[n];if((0,i.isDeclaration)(e)){const e=this.tokens.identifierNameAtIndex(n);this.identifierReplacements.set(e,`exports.${e}`)}}}}preprocessNamedExportAtIndex(e){e+=2;const{newIndex:t,namedImports:n}=this.getNamedImports(e);if(e=t,!this.tokens.matchesContextualAtIndex(e,a.ContextualKeyword._from)){for(const{importedName:e,localName:t}of n)this.addExportBinding(e,t);return}if(e++,!this.tokens.matches1AtIndex(e,p.TokenType.string))throw new Error(\"Expected string token at the end of import statement.\");const s=this.tokens.stringValueAtIndex(e);this.getImportInfo(s).namedExports.push(...n)}preprocessExportStarAtIndex(e){let t=null;if(this.tokens.matches3AtIndex(e,p.TokenType._export,p.TokenType.star,p.TokenType._as)?(e+=3,t=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,p.TokenType.string))throw new Error(\"Expected string token at the end of star export statement.\");const n=this.tokens.stringValueAtIndex(e),s=this.getImportInfo(n);null!==t?s.exportStarNames.push(t):s.hasStarExport=!0}getNamedImports(e){const t=[];for(;;){if(this.tokens.matches1AtIndex(e,p.TokenType.braceR)){e++;break}const n=(0,h.default)(this.tokens,e);if(e=n.endIndex,n.isType||t.push({importedName:n.leftName,localName:n.rightName}),this.tokens.matches2AtIndex(e,p.TokenType.comma,p.TokenType.braceR)){e+=2;break}if(this.tokens.matches1AtIndex(e,p.TokenType.braceR)){e++;break}if(!this.tokens.matches1AtIndex(e,p.TokenType.comma))throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`);e++}return{newIndex:e,namedImports:t}}getImportInfo(e){const t=this.importInfoByPath.get(e);if(t)return t;const n={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,n),n}addExportBinding(e,t){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(t)}claimImportCode(e){const t=this.importsToReplace.get(e);return this.importsToReplace.set(e,\"\"),t||\"\"}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){const t=this.exportBindingsByLocalName.get(e);return t&&0!==t.length?t.map((e=>`exports.${e}`)).join(\" = \"):null}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}n.default=d}\n//# sourceMappingURL=CJSImportProcessor.min.js.map","min_map":"{\"version\":3,\"file\":\"CJSImportProcessor.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tslib_1\",\"tokenizer_1\",\"keywords_1\",\"types_1\",\"getImportExportSpecifierInfo_1\",\"__importDefault\",\"getNonTypeIdentifiers_1\",\"CJSImportProcessor\",\"__init\",\"this\",\"nonTypeIdentifiers\",\"Set\",\"__init2\",\"importInfoByPath\",\"Map\",\"__init3\",\"importsToReplace\",\"__init4\",\"identifierReplacements\",\"__init5\",\"exportBindingsByLocalName\",\"constructor\",\"nameManager\",\"tokens\",\"enableLegacyTypeScriptModuleInterop\",\"options\",\"isTypeScriptTransformEnabled\",\"keepUnusedImports\",\"helperManager\",\"prototype\",\"call\",\"preprocessTokens\",\"i\",\"length\",\"matches1AtIndex\",\"TokenType\",\"_import\",\"matches3AtIndex\",\"name\",\"eq\",\"preprocessImportAtIndex\",\"_export\",\"matches2AtIndex\",\"preprocessExportAtIndex\",\"generateImportReplacements\",\"pruneTypeOnlyImports\",\"getNonTypeIdentifiers\",\"path\",\"importInfo\",\"entries\",\"hasBareImport\",\"hasStarExport\",\"exportStarNames\",\"namedExports\",\"defaultNames\",\"wildcardNames\",\"namedImports\",\"map\",\"localName\",\"every\",\"shouldAutomaticallyElideImportedName\",\"set\",\"has\",\"primaryImportName\",\"getFreeIdentifierForPath\",\"secondaryImportName\",\"requireCode\",\"wildcardName\",\"getHelperName\",\"importedName\",\"exportStarName\",\"defaultName\",\"components\",\"split\",\"baseName\",\"replace\",\"claimFreeName\",\"index\",\"matchesContextualAtIndex\",\"ContextualKeyword\",\"_type\",\"_typeof\",\"comma\",\"_from\",\"parenL\",\"push\",\"identifierNameAtIndex\",\"star\",\"braceL\",\"result\",\"getNamedImports\",\"newIndex\",\"namedImport\",\"string\",\"Error\",\"stringValueAtIndex\",\"getImportInfo\",\"_var\",\"_let\",\"_const\",\"preprocessVarExportAtIndex\",\"_function\",\"_class\",\"exportName\",\"addExportBinding\",\"preprocessNamedExportAtIndex\",\"preprocessExportStarAtIndex\",\"depth\",\"dollarBraceL\",\"bracketL\",\"braceR\",\"bracketR\",\"endIndex\",\"currentToken\",\"rhsEndIndex\",\"token\",\"isDeclaration\",\"exportedName\",\"_as\",\"specifierInfo\",\"default\",\"isType\",\"leftName\",\"rightName\",\"JSON\",\"stringify\",\"existingInfo\",\"get\",\"newInfo\",\"claimImportCode\",\"importPath\",\"getIdentifierReplacement\",\"identifierName\",\"resolveExportBinding\",\"assignedName\",\"exportedNames\",\"join\",\"getGlobalNames\",\"keys\"],\"sources\":[\"0\"],\"mappings\":\"AAA6C,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC1FD,IACA,MAAME,EAAUL,EAAQ,SAClBM,EAAcN,EAAQ,cACtBO,EAAaP,EAAQ,cACrBQ,EAAUR,EAAQ,cAClBS,EAAiCJ,EAAQK,gBAAgBV,EAAQ,eACjEW,EAA0BX,EAAQ,cAQxC,MAAMY,EACF,MAAAC,GAAWC,KAAKC,mBAAqB,IAAIC,GAAO,CAChD,OAAAC,GAAYH,KAAKI,iBAAmB,IAAIC,GAAO,CAC/C,OAAAC,GAAYN,KAAKO,iBAAmB,IAAIF,GAAO,CAC/C,OAAAG,GAAYR,KAAKS,uBAAyB,IAAIJ,GAAO,CACrD,OAAAK,GAAYV,KAAKW,0BAA4B,IAAIN,GAAO,CACxD,WAAAO,CAAYC,EAAaC,EAAQC,EAAqCC,EAASC,EAA8BC,EAAmBC,GAAmBnB,KAAKa,YAAcA,EAAab,KAAKc,OAASA,EAAQd,KAAKe,oCAAsCA,EAAqCf,KAAKgB,QAAUA,EAAShB,KAAKiB,6BAA+BA,EAA8BjB,KAAKkB,kBAAoBA,EAAmBlB,KAAKmB,cAAgBA,EAAerB,EAAmBsB,UAAUrB,OAAOsB,KAAKrB,MAAOF,EAAmBsB,UAAUjB,QAAQkB,KAAKrB,MAAOF,EAAmBsB,UAAUd,QAAQe,KAAKrB,MAAOF,EAAmBsB,UAAUZ,QAAQa,KAAKrB,MAAOF,EAAmBsB,UAAUV,QAAQW,KAAKrB,KAAO,CACvrB,gBAAAsB,GACI,IAAK,IAAIC,EAAI,EAAGA,EAAIvB,KAAKc,OAAOA,OAAOU,OAAQD,IACvCvB,KAAKc,O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AUpH,KAAKc,OAAOA,OAAOsD,OAHvEA,GAKR,CACA,MAAO,CAAEc,SAAUd,EAAOrB,eAC9B,CAKA,aAAAwC,CAAcjD,GACV,MAAM+E,EAAerH,KAAKI,iBAAiBkH,IAAIhF,GAC/C,GAAI+E,EACA,OAAOA,EAEX,MAAME,EAAU,CACZ1E,aAAc,GACdC,cAAe,GACfC,aAAc,GACdH,aAAc,GACdH,eAAe,EACfE,gBAAiB,GACjBD,eAAe,GAGnB,OADA1C,KAAKI,iBAAiBgD,IAAId,EAAMiF,GACzBA,CACX,CACA,gBAAAxB,CAAiB9C,EAAW2D,GACnB5G,KAAKW,0BAA0B0C,IAAIJ,IACpCjD,KAAKW,0BAA0ByC,IAAIH,EAAW,IAElDjD,KAAKW,0BAA0B2G,IAAIrE,GAAW2B,KAAKgC,EACvD,CAKA,eAAAY,CAAgBC,GACZ,MAAMzC,EAAShF,KAAKO,iBAAiB+G,IAAIG,GAEzC,OADAzH,KAAKO,iBAAiB6C,IAAIqE,EAAY,IAC/BzC,GAAU,EACrB,CACA,wBAAA0C,CAAyBC,GACrB,OAAO3H,KAAKS,uBAAuB6G,IAAIK,IAAmB,IAC9D,CAIA,oBAAAC,CAAqBC,GACjB,MAAMC,EAAgB9H,KAAKW,0BAA0B2G,IAAIO,GACzD,OAAKC,GAA0C,IAAzBA,EAActG,OAG7BsG,EAAc9E,KAAK4D,GAAiB,WAAWA,MAAgBmB,KAAK,OAFhE,IAGf,CAKA,cAAAC,GACI,OAAO,IAAI9H,IAAI,IACRF,KAAKS,uBAAuBwH,UAC5BjI,KAAKW,0BAA0BsH,QAE1C,EAEJ7I,EAAQ2H,QAAUjH,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/tokenizer/index.js","resolution":"ESM","id":"bfb18d0576","hash":"bfb18d0576ad2931d15ab0945144f8de9c7672a945d5a7e566276d7b2f689a19","source":"\"use strict\";\n/* eslint max-len: 0 */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TypeAndKeyword = exports.Token = exports.JSXRole = exports.IdentifierRole = void 0;\nexports.isDeclaration = isDeclaration;\nexports.isNonTopLevelDeclaration = isNonTopLevelDeclaration;\nexports.isTopLevelDeclaration = isTopLevelDeclaration;\nexports.isBlockScopedDeclaration = isBlockScopedDeclaration;\nexports.isFunctionScopedDeclaration = isFunctionScopedDeclaration;\nexports.isObjectShorthandDeclaration = isObjectShorthandDeclaration;\nexports.next = next;\nexports.nextTemplateToken = nextTemplateToken;\nexports.retokenizeSlashAsRegex = retokenizeSlashAsRegex;\nexports.pushTypeContext = pushTypeContext;\nexports.popTypeContext = popTypeContext;\nexports.eat = eat;\nexports.eatTypeToken = eatTypeToken;\nexports.match = match;\nexports.lookaheadType = lookaheadType;\nexports.lookaheadTypeAndKeyword = lookaheadTypeAndKeyword;\nexports.nextTokenStart = nextTokenStart;\nexports.nextTokenStartSince = nextTokenStartSince;\nexports.lookaheadCharCode = lookaheadCharCode;\nexports.nextToken = nextToken;\nexports.skipLineComment = skipLineComment;\nexports.skipSpace = skipSpace;\nexports.finishToken = finishToken;\nexports.rescan_gt = rescan_gt;\nexports.getTokenFromCode = getTokenFromCode;\nexports.skipWord = skipWord;\nconst tslib_1 = require(\"tslib\");\nconst base_1 = require(\"../traverser/base\");\nconst util_1 = require(\"../traverser/util\");\nconst charcodes_1 = require(\"../util/charcodes\");\nconst identifier_1 = require(\"../util/identifier\");\nconst whitespace_1 = require(\"../util/whitespace\");\nconst keywords_1 = require(\"./keywords\");\nconst readWord_1 = tslib_1.__importDefault(require(\"./readWord\"));\nconst types_1 = require(\"./types\");\n(function (IdentifierRole) {\n    const Access = 0;\n    IdentifierRole[IdentifierRole[\"Access\"] = Access] = \"Access\";\n    const ExportAccess = Access + 1;\n    IdentifierRole[IdentifierRole[\"ExportAccess\"] = ExportAccess] = \"ExportAccess\";\n    const TopLevelDeclaration = ExportAccess + 1;\n    IdentifierRole[IdentifierRole[\"TopLevelDeclaration\"] = TopLevelDeclaration] = \"TopLevelDeclaration\";\n    const FunctionScopedDeclaration = TopLevelDeclaration + 1;\n    IdentifierRole[IdentifierRole[\"FunctionScopedDeclaration\"] = FunctionScopedDeclaration] = \"FunctionScopedDeclaration\";\n    const BlockScopedDeclaration = FunctionScopedDeclaration + 1;\n    IdentifierRole[IdentifierRole[\"BlockScopedDeclaration\"] = BlockScopedDeclaration] = \"BlockScopedDeclaration\";\n    const ObjectShorthandTopLevelDeclaration = BlockScopedDeclaration + 1;\n    IdentifierRole[IdentifierRole[\"ObjectShorthandTopLevelDeclaration\"] = ObjectShorthandTopLevelDeclaration] = \"ObjectShorthandTopLevelDeclaration\";\n    const ObjectShorthandFunctionScopedDeclaration = ObjectShorthandTopLevelDeclaration + 1;\n    IdentifierRole[IdentifierRole[\"ObjectShorthandFunctionScopedDeclaration\"] = ObjectShorthandFunctionScopedDeclaration] = \"ObjectShorthandFunctionScopedDeclaration\";\n    const ObjectShorthandBlockScopedDeclaration = ObjectShorthandFunctionScopedDeclaration + 1;\n    IdentifierRole[IdentifierRole[\"ObjectShorthandBlockScopedDeclaration\"] = ObjectShorthandBlockScopedDeclaration] = \"ObjectShorthandBlockScopedDeclaration\";\n    const ObjectShorthand = ObjectShorthandBlockScopedDeclaration + 1;\n    IdentifierRole[IdentifierRole[\"ObjectShorthand\"] = ObjectShorthand] = \"ObjectShorthand\";\n    // Any identifier bound in an import statement, e.g. both A and b from\n    // `import A, * as b from 'A';`\n    const ImportDeclaration = ObjectShorthand + 1;\n    IdentifierRole[IdentifierRole[\"ImportDeclaration\"] = ImportDeclaration] = \"ImportDeclaration\";\n    const ObjectKey = ImportDeclaration + 1;\n    IdentifierRole[IdentifierRole[\"ObjectKey\"] = ObjectKey] = \"ObjectKey\";\n    // The `foo` in `import {foo as bar} from \"./abc\";`.\n    const ImportAccess = ObjectKey + 1;\n    IdentifierRole[IdentifierRole[\"ImportAccess\"] = ImportAccess] = \"ImportAccess\";\n})(exports.IdentifierRole || (exports.IdentifierRole = {}));\n(function (JSXRole) {\n    // The element is self-closing or has a body that resolves to empty. We\n    // shouldn't emit children at all in this case.\n    const NoChildren = 0;\n    JSXRole[JSXRole[\"NoChildren\"] = NoChildren] = \"NoChildren\";\n    // The element has a single explicit child, which might still be an arbitrary\n    // expression like an array. We should emit that expression as the children.\n    const OneChild = NoChildren + 1;\n    JSXRole[JSXRole[\"OneChild\"] = OneChild] = \"OneChild\";\n    // The element has at least two explicitly-specified children or has spread\n    // children, so child positions are assumed to be \"static\". We should wrap\n    // these children in an array.\n    const StaticChildren = OneChild + 1;\n    JSXRole[JSXRole[\"StaticChildren\"] = StaticChildren] = \"StaticChildren\";\n    // The element has a prop named \"key\" after a prop spread, so we should fall\n    // back to the createElement function.\n    const KeyAfterPropSpread = StaticChildren + 1;\n    JSXRole[JSXRole[\"KeyAfterPropSpread\"] = KeyAfterPropSpread] = \"KeyAfterPropSpread\";\n})(exports.JSXRole || (exports.JSXRole = {}));\nfunction isDeclaration(token) {\n    const role = token.identifierRole;\n    return (role === exports.IdentifierRole.TopLevelDeclaration ||\n        role === exports.IdentifierRole.FunctionScopedDeclaration ||\n        role === exports.IdentifierRole.BlockScopedDeclaration ||\n        role === exports.IdentifierRole.ObjectShorthandTopLevelDeclaration ||\n        role === exports.IdentifierRole.ObjectShorthandFunctionScopedDeclaration ||\n        role === exports.IdentifierRole.ObjectShorthandBlockScopedDeclaration);\n}\nfunction isNonTopLevelDeclaration(token) {\n    const role = token.identifierRole;\n    return (role === exports.IdentifierRole.FunctionScopedDeclaration ||\n        role === exports.IdentifierRole.BlockScopedDeclaration ||\n        role === exports.IdentifierRole.ObjectShorthandFunctionScopedDeclaration ||\n        role === exports.IdentifierRole.ObjectShorthandBlockScopedDeclaration);\n}\nfunction isTopLevelDeclaration(token) {\n    const role = token.identifierRole;\n    return (role === exports.IdentifierRole.TopLevelDeclaration ||\n        role === exports.IdentifierRole.ObjectShorthandTopLevelDeclaration ||\n        role === exports.IdentifierRole.ImportDeclaration);\n}\nfunction isBlockScopedDeclaration(token) {\n    const role = token.identifierRole;\n    // Treat top-level declarations as block scope since the distinction doesn't matter here.\n    return (role === exports.IdentifierRole.TopLevelDeclaration ||\n        role === exports.IdentifierRole.BlockScopedDeclaration ||\n        role === exports.IdentifierRole.ObjectShorthandTopLevelDeclaration ||\n        role === exports.IdentifierRole.ObjectShorthandBlockScopedDeclaration);\n}\nfunction isFunctionScopedDeclaration(token) {\n    const role = token.identifierRole;\n    return (role === exports.IdentifierRole.FunctionScopedDeclaration ||\n        role === exports.IdentifierRole.ObjectShorthandFunctionScopedDeclaration);\n}\nfunction isObjectShorthandDeclaration(token) {\n    return (token.identifierRole === exports.IdentifierRole.ObjectShorthandTopLevelDeclaration ||\n        token.identifierRole === exports.IdentifierRole.ObjectShorthandBlockScopedDeclaration ||\n        token.identifierRole === exports.IdentifierRole.ObjectShorthandFunctionScopedDeclaration);\n}\n// Object type used to represent tokens. Note that normally, tokens\n// simply exist as properties on the parser object. This is only\n// used for the onToken callback and the external tokenizer.\nclass Token {\n    constructor() {\n        this.type = base_1.state.type;\n        this.contextualKeyword = base_1.state.contextualKeyword;\n        this.start = base_1.state.start;\n        this.end = base_1.state.end;\n        this.scopeDepth = base_1.state.scopeDepth;\n        this.isType = base_1.state.isType;\n        this.identifierRole = null;\n        this.jsxRole = null;\n        this.shadowsGlobal = false;\n        this.isAsyncOperation = false;\n        this.contextId = null;\n        this.rhsEndIndex = null;\n        this.isExpression = false;\n        this.numNullishCoalesceStarts = 0;\n        this.numNullishCoalesceEnds = 0;\n        this.isOptionalChainStart = false;\n        this.isOptionalChainEnd = false;\n        this.subscriptStartIndex = null;\n        this.nullishStartIndex = null;\n    }\n}\nexports.Token = Token;\n// ## Tokenizer\n// Move to the next token\nfunction next() {\n    base_1.state.tokens.push(new Token());\n    nextToken();\n}\n// Call instead of next when inside a template, since that needs to be handled differently.\nfunction nextTemplateToken() {\n    base_1.state.tokens.push(new Token());\n    base_1.state.start = base_1.state.pos;\n    readTmplToken();\n}\n// The tokenizer never parses regexes by default. Instead, the parser is responsible for\n// instructing it to parse a regex when we see a slash at the start of an expression.\nfunction retokenizeSlashAsRegex() {\n    if (base_1.state.type === types_1.TokenType.assign) {\n        --base_1.state.pos;\n    }\n    readRegexp();\n}\nfunction pushTypeContext(existingTokensInType) {\n    for (let i = base_1.state.tokens.length - existingTokensInType; i < base_1.state.tokens.length; i++) {\n        base_1.state.tokens[i].isType = true;\n    }\n    const oldIsType = base_1.state.isType;\n    base_1.state.isType = true;\n    return oldIsType;\n}\nfunction popTypeContext(oldIsType) {\n    base_1.state.isType = oldIsType;\n}\nfunction eat(type) {\n    if (match(type)) {\n        next();\n        return true;\n    }\n    else {\n        return false;\n    }\n}\nfunction eatTypeToken(tokenType) {\n    const oldIsType = base_1.state.isType;\n    base_1.state.isType = true;\n    eat(tokenType);\n    base_1.state.isType = oldIsType;\n}\nfunction match(type) {\n    return base_1.state.type === type;\n}\nfunction lookaheadType() {\n    const snapshot = base_1.state.snapshot();\n    next();\n    const type = base_1.state.type;\n    base_1.state.restoreFromSnapshot(snapshot);\n    return type;\n}\nclass TypeAndKeyword {\n    constructor(type, contextualKeyword) {\n        this.type = type;\n        this.contextualKeyword = contextualKeyword;\n    }\n}\nexports.TypeAndKeyword = TypeAndKeyword;\nfunction lookaheadTypeAndKeyword() {\n    const snapshot = base_1.state.snapshot();\n    next();\n    const type = base_1.state.type;\n    const contextualKeyword = base_1.state.contextualKeyword;\n    base_1.state.restoreFromSnapshot(snapshot);\n    return new TypeAndKeyword(type, contextualKeyword);\n}\nfunction nextTokenStart() {\n    return nextTokenStartSince(base_1.state.pos);\n}\nfunction nextTokenStartSince(pos) {\n    whitespace_1.skipWhiteSpace.lastIndex = pos;\n    const skip = whitespace_1.skipWhiteSpace.exec(base_1.input);\n    return pos + skip[0].length;\n}\nfunction lookaheadCharCode() {\n    return base_1.input.charCodeAt(nextTokenStart());\n}\n// Read a single token, updating the parser object's token-related\n// properties.\nfunction nextToken() {\n    skipSpace();\n    base_1.state.start = base_1.state.pos;\n    if (base_1.state.pos >= base_1.input.length) {\n        const tokens = base_1.state.tokens;\n        // We normally run past the end a bit, but if we're way past the end, avoid an infinite loop.\n        // Also check the token positions rather than the types since sometimes we rewrite the token\n        // type to something else.\n        if (tokens.length >= 2 &&\n            tokens[tokens.length - 1].start >= base_1.input.length &&\n            tokens[tokens.length - 2].start >= base_1.input.length) {\n            (0, util_1.unexpected)(\"Unexpectedly reached the end of input.\");\n        }\n        finishToken(types_1.TokenType.eof);\n        return;\n    }\n    readToken(base_1.input.charCodeAt(base_1.state.pos));\n}\nfunction readToken(code) {\n    // Identifier or keyword. '\\uXXXX' sequences are allowed in\n    // identifiers, so '\\' also dispatches to that.\n    if (identifier_1.IS_IDENTIFIER_START[code] ||\n        code === charcodes_1.charCodes.backslash ||\n        (code === charcodes_1.charCodes.atSign && base_1.input.charCodeAt(base_1.state.pos + 1) === charcodes_1.charCodes.atSign)) {\n        (0, readWord_1.default)();\n    }\n    else {\n        getTokenFromCode(code);\n    }\n}\nfunction skipBlockComment() {\n    while (base_1.input.charCodeAt(base_1.state.pos) !== charcodes_1.charCodes.asterisk ||\n        base_1.input.charCodeAt(base_1.state.pos + 1) !== charcodes_1.charCodes.slash) {\n        base_1.state.pos++;\n        if (base_1.state.pos > base_1.input.length) {\n            (0, util_1.unexpected)(\"Unterminated comment\", base_1.state.pos - 2);\n            return;\n        }\n    }\n    base_1.state.pos += 2;\n}\nfunction skipLineComment(startSkip) {\n    let ch = base_1.input.charCodeAt((base_1.state.pos += startSkip));\n    if (base_1.state.pos < base_1.input.length) {\n        while (ch !== charcodes_1.charCodes.lineFeed &&\n            ch !== charcodes_1.charCodes.carriageReturn &&\n            ch !== charcodes_1.charCodes.lineSeparator &&\n            ch !== charcodes_1.charCodes.paragraphSeparator &&\n            ++base_1.state.pos < base_1.input.length) {\n            ch = base_1.input.charCodeAt(base_1.state.pos);\n        }\n    }\n}\n// Called at the start of the parse and after every token. Skips\n// whitespace and comments.\nfunction skipSpace() {\n    while (base_1.state.pos < base_1.input.length) {\n        const ch = base_1.input.charCodeAt(base_1.state.pos);\n        switch (ch) {\n            case charcodes_1.charCodes.carriageReturn:\n                if (base_1.input.charCodeAt(base_1.state.pos + 1) === charcodes_1.charCodes.lineFeed) {\n                    ++base_1.state.pos;\n                }\n            case charcodes_1.charCodes.lineFeed:\n            case charcodes_1.charCodes.lineSeparator:\n            case charcodes_1.charCodes.paragraphSeparator:\n                ++base_1.state.pos;\n                break;\n            case charcodes_1.charCodes.slash:\n                switch (base_1.input.charCodeAt(base_1.state.pos + 1)) {\n                    case charcodes_1.charCodes.asterisk:\n                        base_1.state.pos += 2;\n                        skipBlockComment();\n                        break;\n                    case charcodes_1.charCodes.slash:\n                        skipLineComment(2);\n                        break;\n                    default:\n                        return;\n                }\n                break;\n            default:\n                if (whitespace_1.IS_WHITESPACE[ch]) {\n                    ++base_1.state.pos;\n                }\n                else {\n                    return;\n                }\n        }\n    }\n}\n// Called at the end of every token. Sets various fields, and skips the space after the token, so\n// that the next one's `start` will point at the right position.\nfunction finishToken(type, contextualKeyword = keywords_1.ContextualKeyword.NONE) {\n    base_1.state.end = base_1.state.pos;\n    base_1.state.type = type;\n    base_1.state.contextualKeyword = contextualKeyword;\n}\n// ### Token reading\n// This is the function that is called to fetch the next token. It\n// is somewhat obscure, because it works in character codes rather\n// than characters, and because operator parsing has been inlined\n// into it.\n//\n// All in the name of speed.\nfunction readToken_dot() {\n    const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n    if (nextChar >= charcodes_1.charCodes.digit0 && nextChar <= charcodes_1.charCodes.digit9) {\n        readNumber(true);\n        return;\n    }\n    if (nextChar === charcodes_1.charCodes.dot && base_1.input.charCodeAt(base_1.state.pos + 2) === charcodes_1.charCodes.dot) {\n        base_1.state.pos += 3;\n        finishToken(types_1.TokenType.ellipsis);\n    }\n    else {\n        ++base_1.state.pos;\n        finishToken(types_1.TokenType.dot);\n    }\n}\nfunction readToken_slash() {\n    const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n    if (nextChar === charcodes_1.charCodes.equalsTo) {\n        finishOp(types_1.TokenType.assign, 2);\n    }\n    else {\n        finishOp(types_1.TokenType.slash, 1);\n    }\n}\nfunction readToken_mult_modulo(code) {\n    // '%*'\n    let tokenType = code === charcodes_1.charCodes.asterisk ? types_1.TokenType.star : types_1.TokenType.modulo;\n    let width = 1;\n    let nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n    // Exponentiation operator **\n    if (code === charcodes_1.charCodes.asterisk && nextChar === charcodes_1.charCodes.asterisk) {\n        width++;\n        nextChar = base_1.input.charCodeAt(base_1.state.pos + 2);\n        tokenType = types_1.TokenType.exponent;\n    }\n    // Match *= or %=, disallowing *=> which can be valid in flow.\n    if (nextChar === charcodes_1.charCodes.equalsTo &&\n        base_1.input.charCodeAt(base_1.state.pos + 2) !== charcodes_1.charCodes.greaterThan) {\n        width++;\n        tokenType = types_1.TokenType.assign;\n    }\n    finishOp(tokenType, width);\n}\nfunction readToken_pipe_amp(code) {\n    // '|&'\n    const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n    if (nextChar === code) {\n        if (base_1.input.charCodeAt(base_1.state.pos + 2) === charcodes_1.charCodes.equalsTo) {\n            // ||= or &&=\n            finishOp(types_1.TokenType.assign, 3);\n        }\n        else {\n            // || or &&\n            finishOp(code === charcodes_1.charCodes.verticalBar ? types_1.TokenType.logicalOR : types_1.TokenType.logicalAND, 2);\n        }\n        return;\n    }\n    if (code === charcodes_1.charCodes.verticalBar) {\n        // '|>'\n        if (nextChar === charcodes_1.charCodes.greaterThan) {\n            finishOp(types_1.TokenType.pipeline, 2);\n            return;\n        }\n        else if (nextChar === charcodes_1.charCodes.rightCurlyBrace && base_1.isFlowEnabled) {\n            // '|}'\n            finishOp(types_1.TokenType.braceBarR, 2);\n            return;\n        }\n    }\n    if (nextChar === charcodes_1.charCodes.equalsTo) {\n        finishOp(types_1.TokenType.assign, 2);\n        return;\n    }\n    finishOp(code === charcodes_1.charCodes.verticalBar ? types_1.TokenType.bitwiseOR : types_1.TokenType.bitwiseAND, 1);\n}\nfunction readToken_caret() {\n    // '^'\n    const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n    if (nextChar === charcodes_1.charCodes.equalsTo) {\n        finishOp(types_1.TokenType.assign, 2);\n    }\n    else {\n        finishOp(types_1.TokenType.bitwiseXOR, 1);\n    }\n}\nfunction readToken_plus_min(code) {\n    // '+-'\n    const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n    if (nextChar === code) {\n        // Tentatively call this a prefix operator, but it might be changed to postfix later.\n        finishOp(types_1.TokenType.preIncDec, 2);\n        return;\n    }\n    if (nextChar === charcodes_1.charCodes.equalsTo) {\n        finishOp(types_1.TokenType.assign, 2);\n    }\n    else if (code === charcodes_1.charCodes.plusSign) {\n        finishOp(types_1.TokenType.plus, 1);\n    }\n    else {\n        finishOp(types_1.TokenType.minus, 1);\n    }\n}\nfunction readToken_lt() {\n    const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n    if (nextChar === charcodes_1.charCodes.lessThan) {\n        if (base_1.input.charCodeAt(base_1.state.pos + 2) === charcodes_1.charCodes.equalsTo) {\n            finishOp(types_1.TokenType.assign, 3);\n            return;\n        }\n        // We see <<, but need to be really careful about whether to treat it as a\n        // true left-shift or as two < tokens.\n        if (base_1.state.isType) {\n            // Within a type, << might come up in a snippet like `Array<<T>() => void>`,\n            // so treat it as two < tokens. Importantly, this should only override <<\n            // rather than other tokens like <= . If we treated <= as < in a type\n            // context, then the snippet `a as T <= 1` would incorrectly start parsing\n            // a type argument on T. We don't need to worry about `a as T << 1`\n            // because TypeScript disallows that syntax.\n            finishOp(types_1.TokenType.lessThan, 1);\n        }\n        else {\n            // Outside a type, this might be a true left-shift operator, or it might\n            // still be two open-type-arg tokens, such as in `f<<T>() => void>()`. We\n            // look at the token while considering the `f`, so we don't yet know that\n            // we're in a type context. In this case, we initially tokenize as a\n            // left-shift and correct after-the-fact as necessary in\n            // tsParseTypeArgumentsWithPossibleBitshift .\n            finishOp(types_1.TokenType.bitShiftL, 2);\n        }\n        return;\n    }\n    if (nextChar === charcodes_1.charCodes.equalsTo) {\n        // <=\n        finishOp(types_1.TokenType.relationalOrEqual, 2);\n    }\n    else {\n        finishOp(types_1.TokenType.lessThan, 1);\n    }\n}\nfunction readToken_gt() {\n    if (base_1.state.isType) {\n        // Avoid right-shift for things like `Array<Array<string>>` and\n        // greater-than-or-equal for things like `const a: Array<number>=[];`.\n        finishOp(types_1.TokenType.greaterThan, 1);\n        return;\n    }\n    const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n    if (nextChar === charcodes_1.charCodes.greaterThan) {\n        const size = base_1.input.charCodeAt(base_1.state.pos + 2) === charcodes_1.charCodes.greaterThan ? 3 : 2;\n        if (base_1.input.charCodeAt(base_1.state.pos + size) === charcodes_1.charCodes.equalsTo) {\n            finishOp(types_1.TokenType.assign, size + 1);\n            return;\n        }\n        finishOp(types_1.TokenType.bitShiftR, size);\n        return;\n    }\n    if (nextChar === charcodes_1.charCodes.equalsTo) {\n        // >=\n        finishOp(types_1.TokenType.relationalOrEqual, 2);\n    }\n    else {\n        finishOp(types_1.TokenType.greaterThan, 1);\n    }\n}\n/**\n * Reinterpret a possible > token when transitioning from a type to a non-type\n * context.\n *\n * This comes up in two situations where >= needs to be treated as one token:\n * - After an `as` expression, like in the code `a as T >= 1`.\n * - In a type argument in an expression context, e.g. `f(a < b, c >= d)`, we\n *   need to see the token as >= so that we get an error and backtrack to\n *   normal expression parsing.\n *\n * Other situations require >= to be seen as two tokens, e.g.\n * `const x: Array<T>=[];`, so it's important to treat > as its own token in\n * typical type parsing situations.\n */\nfunction rescan_gt() {\n    if (base_1.state.type === types_1.TokenType.greaterThan) {\n        base_1.state.pos -= 1;\n        readToken_gt();\n    }\n}\nfunction readToken_eq_excl(code) {\n    // '=!'\n    const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n    if (nextChar === charcodes_1.charCodes.equalsTo) {\n        finishOp(types_1.TokenType.equality, base_1.input.charCodeAt(base_1.state.pos + 2) === charcodes_1.charCodes.equalsTo ? 3 : 2);\n        return;\n    }\n    if (code === charcodes_1.charCodes.equalsTo && nextChar === charcodes_1.charCodes.greaterThan) {\n        // '=>'\n        base_1.state.pos += 2;\n        finishToken(types_1.TokenType.arrow);\n        return;\n    }\n    finishOp(code === charcodes_1.charCodes.equalsTo ? types_1.TokenType.eq : types_1.TokenType.bang, 1);\n}\nfunction readToken_question() {\n    // '?'\n    const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n    const nextChar2 = base_1.input.charCodeAt(base_1.state.pos + 2);\n    if (nextChar === charcodes_1.charCodes.questionMark &&\n        // In Flow (but not TypeScript), ??string is a valid type that should be\n        // tokenized as two individual ? tokens.\n        !(base_1.isFlowEnabled && base_1.state.isType)) {\n        if (nextChar2 === charcodes_1.charCodes.equalsTo) {\n            // '??='\n            finishOp(types_1.TokenType.assign, 3);\n        }\n        else {\n            // '??'\n            finishOp(types_1.TokenType.nullishCoalescing, 2);\n        }\n    }\n    else if (nextChar === charcodes_1.charCodes.dot &&\n        !(nextChar2 >= charcodes_1.charCodes.digit0 && nextChar2 <= charcodes_1.charCodes.digit9)) {\n        // '.' not followed by a number\n        base_1.state.pos += 2;\n        finishToken(types_1.TokenType.questionDot);\n    }\n    else {\n        ++base_1.state.pos;\n        finishToken(types_1.TokenType.question);\n    }\n}\nfunction getTokenFromCode(code) {\n    switch (code) {\n        case charcodes_1.charCodes.numberSign:\n            ++base_1.state.pos;\n            finishToken(types_1.TokenType.hash);\n            return;\n        // The interpretation of a dot depends on whether it is followed\n        // by a digit or another two dots.\n        case charcodes_1.charCodes.dot:\n            readToken_dot();\n            return;\n        // Punctuation tokens.\n        case charcodes_1.charCodes.leftParenthesis:\n            ++base_1.state.pos;\n            finishToken(types_1.TokenType.parenL);\n            return;\n        case charcodes_1.charCodes.rightParenthesis:\n            ++base_1.state.pos;\n            finishToken(types_1.TokenType.parenR);\n            return;\n        case charcodes_1.charCodes.semicolon:\n            ++base_1.state.pos;\n            finishToken(types_1.TokenType.semi);\n            return;\n        case charcodes_1.charCodes.comma:\n            ++base_1.state.pos;\n            finishToken(types_1.TokenType.comma);\n            return;\n        case charcodes_1.charCodes.leftSquareBracket:\n            ++base_1.state.pos;\n            finishToken(types_1.TokenType.bracketL);\n            return;\n        case charcodes_1.charCodes.rightSquareBracket:\n            ++base_1.state.pos;\n            finishToken(types_1.TokenType.bracketR);\n            return;\n        case charcodes_1.charCodes.leftCurlyBrace:\n            if (base_1.isFlowEnabled && base_1.input.charCodeAt(base_1.state.pos + 1) === charcodes_1.charCodes.verticalBar) {\n                finishOp(types_1.TokenType.braceBarL, 2);\n            }\n            else {\n                ++base_1.state.pos;\n                finishToken(types_1.TokenType.braceL);\n            }\n            return;\n        case charcodes_1.charCodes.rightCurlyBrace:\n            ++base_1.state.pos;\n            finishToken(types_1.TokenType.braceR);\n            return;\n        case charcodes_1.charCodes.colon:\n            if (base_1.input.charCodeAt(base_1.state.pos + 1) === charcodes_1.charCodes.colon) {\n                finishOp(types_1.TokenType.doubleColon, 2);\n            }\n            else {\n                ++base_1.state.pos;\n                finishToken(types_1.TokenType.colon);\n            }\n            return;\n        case charcodes_1.charCodes.questionMark:\n            readToken_question();\n            return;\n        case charcodes_1.charCodes.atSign:\n            ++base_1.state.pos;\n            finishToken(types_1.TokenType.at);\n            return;\n        case charcodes_1.charCodes.graveAccent:\n            ++base_1.state.pos;\n            finishToken(types_1.TokenType.backQuote);\n            return;\n        case charcodes_1.charCodes.digit0: {\n            const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n            // '0x', '0X', '0o', '0O', '0b', '0B'\n            if (nextChar === charcodes_1.charCodes.lowercaseX ||\n                nextChar === charcodes_1.charCodes.uppercaseX ||\n                nextChar === charcodes_1.charCodes.lowercaseO ||\n                nextChar === charcodes_1.charCodes.uppercaseO ||\n                nextChar === charcodes_1.charCodes.lowercaseB ||\n                nextChar === charcodes_1.charCodes.uppercaseB) {\n                readRadixNumber();\n                return;\n            }\n        }\n        // Anything else beginning with a digit is an integer, octal\n        // number, or float.\n        case charcodes_1.charCodes.digit1:\n        case charcodes_1.charCodes.digit2:\n        case charcodes_1.charCodes.digit3:\n        case charcodes_1.charCodes.digit4:\n        case charcodes_1.charCodes.digit5:\n        case charcodes_1.charCodes.digit6:\n        case charcodes_1.charCodes.digit7:\n        case charcodes_1.charCodes.digit8:\n        case charcodes_1.charCodes.digit9:\n            readNumber(false);\n            return;\n        // Quotes produce strings.\n        case charcodes_1.charCodes.quotationMark:\n        case charcodes_1.charCodes.apostrophe:\n            readString(code);\n            return;\n        // Operators are parsed inline in tiny state machines. '=' (charCodes.equalsTo) is\n        // often referred to. `finishOp` simply skips the amount of\n        // characters it is given as second argument, and returns a token\n        // of the type given by its first argument.\n        case charcodes_1.charCodes.slash:\n            readToken_slash();\n            return;\n        case charcodes_1.charCodes.percentSign:\n        case charcodes_1.charCodes.asterisk:\n            readToken_mult_modulo(code);\n            return;\n        case charcodes_1.charCodes.verticalBar:\n        case charcodes_1.charCodes.ampersand:\n            readToken_pipe_amp(code);\n            return;\n        case charcodes_1.charCodes.caret:\n            readToken_caret();\n            return;\n        case charcodes_1.charCodes.plusSign:\n        case charcodes_1.charCodes.dash:\n            readToken_plus_min(code);\n            return;\n        case charcodes_1.charCodes.lessThan:\n            readToken_lt();\n            return;\n        case charcodes_1.charCodes.greaterThan:\n            readToken_gt();\n            return;\n        case charcodes_1.charCodes.equalsTo:\n        case charcodes_1.charCodes.exclamationMark:\n            readToken_eq_excl(code);\n            return;\n        case charcodes_1.charCodes.tilde:\n            finishOp(types_1.TokenType.tilde, 1);\n            return;\n        default:\n            break;\n    }\n    (0, util_1.unexpected)(`Unexpected character '${String.fromCharCode(code)}'`, base_1.state.pos);\n}\nfunction finishOp(type, size) {\n    base_1.state.pos += size;\n    finishToken(type);\n}\nfunction readRegexp() {\n    const start = base_1.state.pos;\n    let escaped = false;\n    let inClass = false;\n    for (;;) {\n        if (base_1.state.pos >= base_1.input.length) {\n            (0, util_1.unexpected)(\"Unterminated regular expression\", start);\n            return;\n        }\n        const code = base_1.input.charCodeAt(base_1.state.pos);\n        if (escaped) {\n            escaped = false;\n        }\n        else {\n            if (code === charcodes_1.charCodes.leftSquareBracket) {\n                inClass = true;\n            }\n            else if (code === charcodes_1.charCodes.rightSquareBracket && inClass) {\n                inClass = false;\n            }\n            else if (code === charcodes_1.charCodes.slash && !inClass) {\n                break;\n            }\n            escaped = code === charcodes_1.charCodes.backslash;\n        }\n        ++base_1.state.pos;\n    }\n    ++base_1.state.pos;\n    // Need to use `skipWord` because '\\uXXXX' sequences are allowed here (don't ask).\n    skipWord();\n    finishToken(types_1.TokenType.regexp);\n}\n/**\n * Read a decimal integer. Note that this can't be unified with the similar code\n * in readRadixNumber (which also handles hex digits) because \"e\" needs to be\n * the end of the integer so that we can properly handle scientific notation.\n */\nfunction readInt() {\n    while (true) {\n        const code = base_1.input.charCodeAt(base_1.state.pos);\n        if ((code >= charcodes_1.charCodes.digit0 && code <= charcodes_1.charCodes.digit9) || code === charcodes_1.charCodes.underscore) {\n            base_1.state.pos++;\n        }\n        else {\n            break;\n        }\n    }\n}\nfunction readRadixNumber() {\n    base_1.state.pos += 2; // 0x\n    // Walk to the end of the number, allowing hex digits.\n    while (true) {\n        const code = base_1.input.charCodeAt(base_1.state.pos);\n        if ((code >= charcodes_1.charCodes.digit0 && code <= charcodes_1.charCodes.digit9) ||\n            (code >= charcodes_1.charCodes.lowercaseA && code <= charcodes_1.charCodes.lowercaseF) ||\n            (code >= charcodes_1.charCodes.uppercaseA && code <= charcodes_1.charCodes.uppercaseF) ||\n            code === charcodes_1.charCodes.underscore) {\n            base_1.state.pos++;\n        }\n        else {\n            break;\n        }\n    }\n    const nextChar = base_1.input.charCodeAt(base_1.state.pos);\n    if (nextChar === charcodes_1.charCodes.lowercaseN) {\n        ++base_1.state.pos;\n        finishToken(types_1.TokenType.bigint);\n    }\n    else {\n        finishToken(types_1.TokenType.num);\n    }\n}\n// Read an integer, octal integer, or floating-point number.\nfunction readNumber(startsWithDot) {\n    let isBigInt = false;\n    let isDecimal = false;\n    if (!startsWithDot) {\n        readInt();\n    }\n    let nextChar = base_1.input.charCodeAt(base_1.state.pos);\n    if (nextChar === charcodes_1.charCodes.dot) {\n        ++base_1.state.pos;\n        readInt();\n        nextChar = base_1.input.charCodeAt(base_1.state.pos);\n    }\n    if (nextChar === charcodes_1.charCodes.uppercaseE || nextChar === charcodes_1.charCodes.lowercaseE) {\n        nextChar = base_1.input.charCodeAt(++base_1.state.pos);\n        if (nextChar === charcodes_1.charCodes.plusSign || nextChar === charcodes_1.charCodes.dash) {\n            ++base_1.state.pos;\n        }\n        readInt();\n        nextChar = base_1.input.charCodeAt(base_1.state.pos);\n    }\n    if (nextChar === charcodes_1.charCodes.lowercaseN) {\n        ++base_1.state.pos;\n        isBigInt = true;\n    }\n    else if (nextChar === charcodes_1.charCodes.lowercaseM) {\n        ++base_1.state.pos;\n        isDecimal = true;\n    }\n    if (isBigInt) {\n        finishToken(types_1.TokenType.bigint);\n        return;\n    }\n    if (isDecimal) {\n        finishToken(types_1.TokenType.decimal);\n        return;\n    }\n    finishToken(types_1.TokenType.num);\n}\nfunction readString(quote) {\n    base_1.state.pos++;\n    for (;;) {\n        if (base_1.state.pos >= base_1.input.length) {\n            (0, util_1.unexpected)(\"Unterminated string constant\");\n            return;\n        }\n        const ch = base_1.input.charCodeAt(base_1.state.pos);\n        if (ch === charcodes_1.charCodes.backslash) {\n            base_1.state.pos++;\n        }\n        else if (ch === quote) {\n            break;\n        }\n        base_1.state.pos++;\n    }\n    base_1.state.pos++;\n    finishToken(types_1.TokenType.string);\n}\n// Reads template string tokens.\nfunction readTmplToken() {\n    for (;;) {\n        if (base_1.state.pos >= base_1.input.length) {\n            (0, util_1.unexpected)(\"Unterminated template\");\n            return;\n        }\n        const ch = base_1.input.charCodeAt(base_1.state.pos);\n        if (ch === charcodes_1.charCodes.graveAccent ||\n            (ch === charcodes_1.charCodes.dollarSign && base_1.input.charCodeAt(base_1.state.pos + 1) === charcodes_1.charCodes.leftCurlyBrace)) {\n            if (base_1.state.pos === base_1.state.start && match(types_1.TokenType.template)) {\n                if (ch === charcodes_1.charCodes.dollarSign) {\n                    base_1.state.pos += 2;\n                    finishToken(types_1.TokenType.dollarBraceL);\n                    return;\n                }\n                else {\n                    ++base_1.state.pos;\n                    finishToken(types_1.TokenType.backQuote);\n                    return;\n                }\n            }\n            finishToken(types_1.TokenType.template);\n            return;\n        }\n        if (ch === charcodes_1.charCodes.backslash) {\n            base_1.state.pos++;\n        }\n        base_1.state.pos++;\n    }\n}\n// Skip to the end of the current word. Note that this is the same as the snippet at the end of\n// readWord, but calling skipWord from readWord seems to slightly hurt performance from some rough\n// measurements.\nfunction skipWord() {\n    while (base_1.state.pos < base_1.input.length) {\n        const ch = base_1.input.charCodeAt(base_1.state.pos);\n        if (identifier_1.IS_IDENTIFIER_CHAR[ch]) {\n            base_1.state.pos++;\n        }\n        else if (ch === charcodes_1.charCodes.backslash) {\n            // \\u\n            base_1.state.pos += 2;\n            if (base_1.input.charCodeAt(base_1.state.pos) === charcodes_1.charCodes.leftCurlyBrace) {\n                while (base_1.state.pos < base_1.input.length &&\n                    base_1.input.charCodeAt(base_1.state.pos) !== charcodes_1.charCodes.rightCurlyBrace) {\n                    base_1.state.pos++;\n                }\n                base_1.state.pos++;\n            }\n        }\n        else {\n            break;\n        }\n    }\n}\n","type":"js","dependency_paths":[["../traverser/base","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/base.js"],["../traverser/util","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/util.js"],["../util/charcodes","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/charcodes.js"],["../util/identifier","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/identifier.js"],["../util/whitespace","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/whitespace.js"],["./keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"],["./readWord","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/readWord.js"],["./types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"]],"dependency_map":[],"exported":[{"type":"named","name":"isDeclaration"},{"type":"named","name":"isNonTopLevelDeclaration"},{"type":"named","name":"isTopLevelDeclaration"},{"type":"named","name":"isBlockScopedDeclaration"},{"type":"named","name":"isFunctionScopedDeclaration"},{"type":"named","name":"isObjectShorthandDeclaration"},{"type":"named","name":"Token"},{"type":"named","name":"next"},{"type":"named","name":"nextTemplateToken"},{"type":"named","name":"retokenizeSlashAsRegex"},{"type":"named","name":"pushTypeContext"},{"type":"named","name":"popTypeContext"},{"type":"named","name":"eat"},{"type":"named","name":"eatTypeToken"},{"type":"named","name":"match"},{"type":"named","name":"lookaheadType"},{"type":"named","name":"TypeAndKeyword"},{"type":"named","name":"lookaheadTypeAndKeyword"},{"type":"named","name":"nextTokenStart"},{"type":"named","name":"nextTokenStartSince"},{"type":"named","name":"lookaheadCharCode"},{"type":"named","name":"nextToken"},{"type":"named","name":"skipLineComment"},{"type":"named","name":"skipSpace"},{"type":"named","name":"finishToken"},{"type":"named","name":"rescan_gt"},{"type":"named","name":"getTokenFromCode"},{"type":"named","name":"skipWord"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/tokenizer/index.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.isDeclaration = isDeclaration;\n    exports.isNonTopLevelDeclaration = isNonTopLevelDeclaration;\n    exports.isTopLevelDeclaration = isTopLevelDeclaration;\n    exports.isBlockScopedDeclaration = isBlockScopedDeclaration;\n    exports.isFunctionScopedDeclaration = isFunctionScopedDeclaration;\n    exports.isObjectShorthandDeclaration = isObjectShorthandDeclaration;\n    exports.next = next;\n    exports.nextTemplateToken = nextTemplateToken;\n    exports.retokenizeSlashAsRegex = retokenizeSlashAsRegex;\n    exports.pushTypeContext = pushTypeContext;\n    exports.popTypeContext = popTypeContext;\n    exports.eat = eat;\n    exports.eatTypeToken = eatTypeToken;\n    exports.match = match;\n    exports.lookaheadType = lookaheadType;\n    exports.lookaheadTypeAndKeyword = lookaheadTypeAndKeyword;\n    exports.nextTokenStart = nextTokenStart;\n    exports.nextTokenStartSince = nextTokenStartSince;\n    exports.lookaheadCharCode = lookaheadCharCode;\n    exports.nextToken = nextToken;\n    exports.skipLineComment = skipLineComment;\n    exports.skipSpace = skipSpace;\n    exports.finishToken = finishToken;\n    exports.rescan_gt = rescan_gt;\n    exports.getTokenFromCode = getTokenFromCode;\n    exports.skipWord = skipWord;\n    const tslib_1 = require(\"tslib\");\n    const base_1 = require(\"540718e523\") /* ../traverser/base */;\n    const util_1 = require(\"bc94bbadc1\") /* ../traverser/util */;\n    const charcodes_1 = require(\"22746c8ce8\") /* ../util/charcodes */;\n    const identifier_1 = require(\"364148c9f0\") /* ../util/identifier */;\n    const whitespace_1 = require(\"2a3176644a\") /* ../util/whitespace */;\n    const keywords_1 = require(\"99ff836c64\") /* ./keywords */;\n    const readWord_1 = tslib_1.__importDefault(require(\"e6eb78033b\") /* ./readWord */);\n    const types_1 = require(\"f0c35cbd76\") /* ./types */;\n    (function (IdentifierRole) {\n        const Access = 0;\n        IdentifierRole[IdentifierRole[\"Access\"] = Access] = \"Access\";\n        const ExportAccess = Access + 1;\n        IdentifierRole[IdentifierRole[\"ExportAccess\"] = ExportAccess] = \"ExportAccess\";\n        const TopLevelDeclaration = ExportAccess + 1;\n        IdentifierRole[IdentifierRole[\"TopLevelDeclaration\"] = TopLevelDeclaration] = \"TopLevelDeclaration\";\n        const FunctionScopedDeclaration = TopLevelDeclaration + 1;\n        IdentifierRole[IdentifierRole[\"FunctionScopedDeclaration\"] = FunctionScopedDeclaration] = \"FunctionScopedDeclaration\";\n        const BlockScopedDeclaration = FunctionScopedDeclaration + 1;\n        IdentifierRole[IdentifierRole[\"BlockScopedDeclaration\"] = BlockScopedDeclaration] = \"BlockScopedDeclaration\";\n        const ObjectShorthandTopLevelDeclaration = BlockScopedDeclaration + 1;\n        IdentifierRole[IdentifierRole[\"ObjectShorthandTopLevelDeclaration\"] = ObjectShorthandTopLevelDeclaration] = \"ObjectShorthandTopLevelDeclaration\";\n        const ObjectShorthandFunctionScopedDeclaration = ObjectShorthandTopLevelDeclaration + 1;\n        IdentifierRole[IdentifierRole[\"ObjectShorthandFunctionScopedDeclaration\"] = ObjectShorthandFunctionScopedDeclaration] = \"ObjectShorthandFunctionScopedDeclaration\";\n        const ObjectShorthandBlockScopedDeclaration = ObjectShorthandFunctionScopedDeclaration + 1;\n        IdentifierRole[IdentifierRole[\"ObjectShorthandBlockScopedDeclaration\"] = ObjectShorthandBlockScopedDeclaration] = \"ObjectShorthandBlockScopedDeclaration\";\n        const ObjectShorthand = ObjectShorthandBlockScopedDeclaration + 1;\n        IdentifierRole[IdentifierRole[\"ObjectShorthand\"] = ObjectShorthand] = \"ObjectShorthand\";\n        // Any identifier bound in an import statement, e.g. both A and b from\n        // `import A, * as b from 'A';`\n        const ImportDeclaration = ObjectShorthand + 1;\n        IdentifierRole[IdentifierRole[\"ImportDeclaration\"] = ImportDeclaration] = \"ImportDeclaration\";\n        const ObjectKey = ImportDeclaration + 1;\n        IdentifierRole[IdentifierRole[\"ObjectKey\"] = ObjectKey] = \"ObjectKey\";\n        // The `foo` in `import {foo as bar} from \"./abc\";`.\n        const ImportAccess = ObjectKey + 1;\n        IdentifierRole[IdentifierRole[\"ImportAccess\"] = ImportAccess] = \"ImportAccess\";\n    })(exports.IdentifierRole || (exports.IdentifierRole = {}));\n    (function (JSXRole) {\n        // The element is self-closing or has a body that resolves to empty. We\n        // shouldn't emit children at all in this case.\n        const NoChildren = 0;\n        JSXRole[JSXRole[\"NoChildren\"] = NoChildren] = \"NoChildren\";\n        // The element has a single explicit child, which might still be an arbitrary\n        // expression like an array. We should emit that expression as the children.\n        const OneChild = NoChildren + 1;\n        JSXRole[JSXRole[\"OneChild\"] = OneChild] = \"OneChild\";\n        // The element has at least two explicitly-specified children or has spread\n        // children, so child positions are assumed to be \"static\". We should wrap\n        // these children in an array.\n        const StaticChildren = OneChild + 1;\n        JSXRole[JSXRole[\"StaticChildren\"] = StaticChildren] = \"StaticChildren\";\n        // The element has a prop named \"key\" after a prop spread, so we should fall\n        // back to the createElement function.\n        const KeyAfterPropSpread = StaticChildren + 1;\n        JSXRole[JSXRole[\"KeyAfterPropSpread\"] = KeyAfterPropSpread] = \"KeyAfterPropSpread\";\n    })(exports.JSXRole || (exports.JSXRole = {}));\n    function isDeclaration(token) {\n        const role = token.identifierRole;\n        return (role === exports.IdentifierRole.TopLevelDeclaration ||\n            role === exports.IdentifierRole.FunctionScopedDeclaration ||\n            role === exports.IdentifierRole.BlockScopedDeclaration ||\n            role === exports.IdentifierRole.ObjectShorthandTopLevelDeclaration ||\n            role === exports.IdentifierRole.ObjectShorthandFunctionScopedDeclaration ||\n            role === exports.IdentifierRole.ObjectShorthandBlockScopedDeclaration);\n    }\n    function isNonTopLevelDeclaration(token) {\n        const role = token.identifierRole;\n        return (role === exports.IdentifierRole.FunctionScopedDeclaration ||\n            role === exports.IdentifierRole.BlockScopedDeclaration ||\n            role === exports.IdentifierRole.ObjectShorthandFunctionScopedDeclaration ||\n            role === exports.IdentifierRole.ObjectShorthandBlockScopedDeclaration);\n    }\n    function isTopLevelDeclaration(token) {\n        const role = token.identifierRole;\n        return (role === exports.IdentifierRole.TopLevelDeclaration ||\n            role === exports.IdentifierRole.ObjectShorthandTopLevelDeclaration ||\n            role === exports.IdentifierRole.ImportDeclaration);\n    }\n    function isBlockScopedDeclaration(token) {\n        const role = token.identifierRole;\n        // Treat top-level declarations as block scope since the distinction doesn't matter here.\n        return (role === exports.IdentifierRole.TopLevelDeclaration ||\n            role === exports.IdentifierRole.BlockScopedDeclaration ||\n            role === exports.IdentifierRole.ObjectShorthandTopLevelDeclaration ||\n            role === exports.IdentifierRole.ObjectShorthandBlockScopedDeclaration);\n    }\n    function isFunctionScopedDeclaration(token) {\n        const role = token.identifierRole;\n        return (role === exports.IdentifierRole.FunctionScopedDeclaration ||\n            role === exports.IdentifierRole.ObjectShorthandFunctionScopedDeclaration);\n    }\n    function isObjectShorthandDeclaration(token) {\n        return (token.identifierRole === exports.IdentifierRole.ObjectShorthandTopLevelDeclaration ||\n            token.identifierRole === exports.IdentifierRole.ObjectShorthandBlockScopedDeclaration ||\n            token.identifierRole === exports.IdentifierRole.ObjectShorthandFunctionScopedDeclaration);\n    }\n    // Object type used to represent tokens. Note that normally, tokens\n    // simply exist as properties on the parser object. This is only\n    // used for the onToken callback and the external tokenizer.\n    class Token {\n        constructor() {\n            this.type = base_1.state.type;\n            this.contextualKeyword = base_1.state.contextualKeyword;\n            this.start = base_1.state.start;\n            this.end = base_1.state.end;\n            this.scopeDepth = base_1.state.scopeDepth;\n            this.isType = base_1.state.isType;\n            this.identifierRole = null;\n            this.jsxRole = null;\n            this.shadowsGlobal = false;\n            this.isAsyncOperation = false;\n            this.contextId = null;\n            this.rhsEndIndex = null;\n            this.isExpression = false;\n            this.numNullishCoalesceStarts = 0;\n            this.numNullishCoalesceEnds = 0;\n            this.isOptionalChainStart = false;\n            this.isOptionalChainEnd = false;\n            this.subscriptStartIndex = null;\n            this.nullishStartIndex = null;\n        }\n    }\n    exports.Token = Token;\n    // ## Tokenizer\n    // Move to the next token\n    function next() {\n        base_1.state.tokens.push(new Token());\n        nextToken();\n    }\n    // Call instead of next when inside a template, since that needs to be handled differently.\n    function nextTemplateToken() {\n        base_1.state.tokens.push(new Token());\n        base_1.state.start = base_1.state.pos;\n        readTmplToken();\n    }\n    // The tokenizer never parses regexes by default. Instead, the parser is responsible for\n    // instructing it to parse a regex when we see a slash at the start of an expression.\n    function retokenizeSlashAsRegex() {\n        if (base_1.state.type === types_1.TokenType.assign) {\n            --base_1.state.pos;\n        }\n        readRegexp();\n    }\n    function pushTypeContext(existingTokensInType) {\n        for (let i = base_1.state.tokens.length - existingTokensInType; i < base_1.state.tokens.length; i++) {\n            base_1.state.tokens[i].isType = true;\n        }\n        const oldIsType = base_1.state.isType;\n        base_1.state.isType = true;\n        return oldIsType;\n    }\n    function popTypeContext(oldIsType) {\n        base_1.state.isType = oldIsType;\n    }\n    function eat(type) {\n        if (match(type)) {\n            next();\n            return true;\n        }\n        else {\n            return false;\n        }\n    }\n    function eatTypeToken(tokenType) {\n        const oldIsType = base_1.state.isType;\n        base_1.state.isType = true;\n        eat(tokenType);\n        base_1.state.isType = oldIsType;\n    }\n    function match(type) {\n        return base_1.state.type === type;\n    }\n    function lookaheadType() {\n        const snapshot = base_1.state.snapshot();\n        next();\n        const type = base_1.state.type;\n        base_1.state.restoreFromSnapshot(snapshot);\n        return type;\n    }\n    class TypeAndKeyword {\n        constructor(type, contextualKeyword) {\n            this.type = type;\n            this.contextualKeyword = contextualKeyword;\n        }\n    }\n    exports.TypeAndKeyword = TypeAndKeyword;\n    function lookaheadTypeAndKeyword() {\n        const snapshot = base_1.state.snapshot();\n        next();\n        const type = base_1.state.type;\n        const contextualKeyword = base_1.state.contextualKeyword;\n        base_1.state.restoreFromSnapshot(snapshot);\n        return new TypeAndKeyword(type, contextualKeyword);\n    }\n    function nextTokenStart() {\n        return nextTokenStartSince(base_1.state.pos);\n    }\n    function nextTokenStartSince(pos) {\n        whitespace_1.skipWhiteSpace.lastIndex = pos;\n        const skip = whitespace_1.skipWhiteSpace.exec(base_1.input);\n        return pos + skip[0].length;\n    }\n    function lookaheadCharCode() {\n        return base_1.input.charCodeAt(nextTokenStart());\n    }\n    // Read a single token, updating the parser object's token-related\n    // properties.\n    function nextToken() {\n        skipSpace();\n        base_1.state.start = base_1.state.pos;\n        if (base_1.state.pos >= base_1.input.length) {\n            const tokens = base_1.state.tokens;\n            // We normally run past the end a bit, but if we're way past the end, avoid an infinite loop.\n            // Also check the token positions rather than the types since sometimes we rewrite the token\n            // type to something else.\n            if (tokens.length >= 2 &&\n                tokens[tokens.length - 1].start >= base_1.input.length &&\n                tokens[tokens.length - 2].start >= base_1.input.length) {\n                (0, util_1.unexpected)(\"Unexpectedly reached the end of input.\");\n            }\n            finishToken(types_1.TokenType.eof);\n            return;\n        }\n        readToken(base_1.input.charCodeAt(base_1.state.pos));\n    }\n    function readToken(code) {\n        // Identifier or keyword. '\\uXXXX' sequences are allowed in\n        // identifiers, so '\\' also dispatches to that.\n        if (identifier_1.IS_IDENTIFIER_START[code] ||\n            code === charcodes_1.charCodes.backslash ||\n            (code === charcodes_1.charCodes.atSign && base_1.input.charCodeAt(base_1.state.pos + 1) === charcodes_1.charCodes.atSign)) {\n            (0, readWord_1.default)();\n        }\n        else {\n            getTokenFromCode(code);\n        }\n    }\n    function skipBlockComment() {\n        while (base_1.input.charCodeAt(base_1.state.pos) !== charcodes_1.charCodes.asterisk ||\n            base_1.input.charCodeAt(base_1.state.pos + 1) !== charcodes_1.charCodes.slash) {\n            base_1.state.pos++;\n            if (base_1.state.pos > base_1.input.length) {\n                (0, util_1.unexpected)(\"Unterminated comment\", base_1.state.pos - 2);\n                return;\n            }\n        }\n        base_1.state.pos += 2;\n    }\n    function skipLineComment(startSkip) {\n        let ch = base_1.input.charCodeAt((base_1.state.pos += startSkip));\n        if (base_1.state.pos < base_1.input.length) {\n            while (ch !== charcodes_1.charCodes.lineFeed &&\n                ch !== charcodes_1.charCodes.carriageReturn &&\n                ch !== charcodes_1.charCodes.lineSeparator &&\n                ch !== charcodes_1.charCodes.paragraphSeparator &&\n                ++base_1.state.pos < base_1.input.length) {\n                ch = base_1.input.charCodeAt(base_1.state.pos);\n            }\n        }\n    }\n    // Called at the start of the parse and after every token. Skips\n    // whitespace and comments.\n    function skipSpace() {\n        while (base_1.state.pos < base_1.input.length) {\n            const ch = base_1.input.charCodeAt(base_1.state.pos);\n            switch (ch) {\n                case charcodes_1.charCodes.carriageReturn:\n                    if (base_1.input.charCodeAt(base_1.state.pos + 1) === charcodes_1.charCodes.lineFeed) {\n                        ++base_1.state.pos;\n                    }\n                case charcodes_1.charCodes.lineFeed:\n                case charcodes_1.charCodes.lineSeparator:\n                case charcodes_1.charCodes.paragraphSeparator:\n                    ++base_1.state.pos;\n                    break;\n                case charcodes_1.charCodes.slash:\n                    switch (base_1.input.charCodeAt(base_1.state.pos + 1)) {\n                        case charcodes_1.charCodes.asterisk:\n                            base_1.state.pos += 2;\n                            skipBlockComment();\n                            break;\n                        case charcodes_1.charCodes.slash:\n                            skipLineComment(2);\n                            break;\n                        default:\n                            return;\n                    }\n                    break;\n                default:\n                    if (whitespace_1.IS_WHITESPACE[ch]) {\n                        ++base_1.state.pos;\n                    }\n                    else {\n                        return;\n                    }\n            }\n        }\n    }\n    // Called at the end of every token. Sets various fields, and skips the space after the token, so\n    // that the next one's `start` will point at the right position.\n    function finishToken(type, contextualKeyword = keywords_1.ContextualKeyword.NONE) {\n        base_1.state.end = base_1.state.pos;\n        base_1.state.type = type;\n        base_1.state.contextualKeyword = contextualKeyword;\n    }\n    // ### Token reading\n    // This is the function that is called to fetch the next token. It\n    // is somewhat obscure, because it works in character codes rather\n    // than characters, and because operator parsing has been inlined\n    // into it.\n    //\n    // All in the name of speed.\n    function readToken_dot() {\n        const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n        if (nextChar >= charcodes_1.charCodes.digit0 && nextChar <= charcodes_1.charCodes.digit9) {\n            readNumber(true);\n            return;\n        }\n        if (nextChar === charcodes_1.charCodes.dot && base_1.input.charCodeAt(base_1.state.pos + 2) === charcodes_1.charCodes.dot) {\n            base_1.state.pos += 3;\n            finishToken(types_1.TokenType.ellipsis);\n        }\n        else {\n            ++base_1.state.pos;\n            finishToken(types_1.TokenType.dot);\n        }\n    }\n    function readToken_slash() {\n        const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n        if (nextChar === charcodes_1.charCodes.equalsTo) {\n            finishOp(types_1.TokenType.assign, 2);\n        }\n        else {\n            finishOp(types_1.TokenType.slash, 1);\n        }\n    }\n    function readToken_mult_modulo(code) {\n        // '%*'\n        let tokenType = code === charcodes_1.charCodes.asterisk ? types_1.TokenType.star : types_1.TokenType.modulo;\n        let width = 1;\n        let nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n        // Exponentiation operator **\n        if (code === charcodes_1.charCodes.asterisk && nextChar === charcodes_1.charCodes.asterisk) {\n            width++;\n            nextChar = base_1.input.charCodeAt(base_1.state.pos + 2);\n            tokenType = types_1.TokenType.exponent;\n        }\n        // Match *= or %=, disallowing *=> which can be valid in flow.\n        if (nextChar === charcodes_1.charCodes.equalsTo &&\n            base_1.input.charCodeAt(base_1.state.pos + 2) !== charcodes_1.charCodes.greaterThan) {\n            width++;\n            tokenType = types_1.TokenType.assign;\n        }\n        finishOp(tokenType, width);\n    }\n    function readToken_pipe_amp(code) {\n        // '|&'\n        const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n        if (nextChar === code) {\n            if (base_1.input.charCodeAt(base_1.state.pos + 2) === charcodes_1.charCodes.equalsTo) {\n                // ||= or &&=\n                finishOp(types_1.TokenType.assign, 3);\n            }\n            else {\n                // || or &&\n                finishOp(code === charcodes_1.charCodes.verticalBar ? types_1.TokenType.logicalOR : types_1.TokenType.logicalAND, 2);\n            }\n            return;\n        }\n        if (code === charcodes_1.charCodes.verticalBar) {\n            // '|>'\n            if (nextChar === charcodes_1.charCodes.greaterThan) {\n                finishOp(types_1.TokenType.pipeline, 2);\n                return;\n            }\n            else if (nextChar === charcodes_1.charCodes.rightCurlyBrace && base_1.isFlowEnabled) {\n                // '|}'\n                finishOp(types_1.TokenType.braceBarR, 2);\n                return;\n            }\n        }\n        if (nextChar === charcodes_1.charCodes.equalsTo) {\n            finishOp(types_1.TokenType.assign, 2);\n            return;\n        }\n        finishOp(code === charcodes_1.charCodes.verticalBar ? types_1.TokenType.bitwiseOR : types_1.TokenType.bitwiseAND, 1);\n    }\n    function readToken_caret() {\n        // '^'\n        const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n        if (nextChar === charcodes_1.charCodes.equalsTo) {\n            finishOp(types_1.TokenType.assign, 2);\n        }\n        else {\n            finishOp(types_1.TokenType.bitwiseXOR, 1);\n        }\n    }\n    function readToken_plus_min(code) {\n        // '+-'\n        const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n        if (nextChar === code) {\n            // Tentatively call this a prefix operator, but it might be changed to postfix later.\n            finishOp(types_1.TokenType.preIncDec, 2);\n            return;\n        }\n        if (nextChar === charcodes_1.charCodes.equalsTo) {\n            finishOp(types_1.TokenType.assign, 2);\n        }\n        else if (code === charcodes_1.charCodes.plusSign) {\n            finishOp(types_1.TokenType.plus, 1);\n        }\n        else {\n            finishOp(types_1.TokenType.minus, 1);\n        }\n    }\n    function readToken_lt() {\n        const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n        if (nextChar === charcodes_1.charCodes.lessThan) {\n            if (base_1.input.charCodeAt(base_1.state.pos + 2) === charcodes_1.charCodes.equalsTo) {\n                finishOp(types_1.TokenType.assign, 3);\n                return;\n            }\n            // We see <<, but need to be really careful about whether to treat it as a\n            // true left-shift or as two < tokens.\n            if (base_1.state.isType) {\n                // Within a type, << might come up in a snippet like `Array<<T>() => void>`,\n                // so treat it as two < tokens. Importantly, this should only override <<\n                // rather than other tokens like <= . If we treated <= as < in a type\n                // context, then the snippet `a as T <= 1` would incorrectly start parsing\n                // a type argument on T. We don't need to worry about `a as T << 1`\n                // because TypeScript disallows that syntax.\n                finishOp(types_1.TokenType.lessThan, 1);\n            }\n            else {\n                // Outside a type, this might be a true left-shift operator, or it might\n                // still be two open-type-arg tokens, such as in `f<<T>() => void>()`. We\n                // look at the token while considering the `f`, so we don't yet know that\n                // we're in a type context. In this case, we initially tokenize as a\n                // left-shift and correct after-the-fact as necessary in\n                // tsParseTypeArgumentsWithPossibleBitshift .\n                finishOp(types_1.TokenType.bitShiftL, 2);\n            }\n            return;\n        }\n        if (nextChar === charcodes_1.charCodes.equalsTo) {\n            // <=\n            finishOp(types_1.TokenType.relationalOrEqual, 2);\n        }\n        else {\n            finishOp(types_1.TokenType.lessThan, 1);\n        }\n    }\n    function readToken_gt() {\n        if (base_1.state.isType) {\n            // Avoid right-shift for things like `Array<Array<string>>` and\n            // greater-than-or-equal for things like `const a: Array<number>=[];`.\n            finishOp(types_1.TokenType.greaterThan, 1);\n            return;\n        }\n        const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n        if (nextChar === charcodes_1.charCodes.greaterThan) {\n            const size = base_1.input.charCodeAt(base_1.state.pos + 2) === charcodes_1.charCodes.greaterThan ? 3 : 2;\n            if (base_1.input.charCodeAt(base_1.state.pos + size) === charcodes_1.charCodes.equalsTo) {\n                finishOp(types_1.TokenType.assign, size + 1);\n                return;\n            }\n            finishOp(types_1.TokenType.bitShiftR, size);\n            return;\n        }\n        if (nextChar === charcodes_1.charCodes.equalsTo) {\n            // >=\n            finishOp(types_1.TokenType.relationalOrEqual, 2);\n        }\n        else {\n            finishOp(types_1.TokenType.greaterThan, 1);\n        }\n    }\n    /**\n     * Reinterpret a possible > token when transitioning from a type to a non-type\n     * context.\n     *\n     * This comes up in two situations where >= needs to be treated as one token:\n     * - After an `as` expression, like in the code `a as T >= 1`.\n     * - In a type argument in an expression context, e.g. `f(a < b, c >= d)`, we\n     *   need to see the token as >= so that we get an error and backtrack to\n     *   normal expression parsing.\n     *\n     * Other situations require >= to be seen as two tokens, e.g.\n     * `const x: Array<T>=[];`, so it's important to treat > as its own token in\n     * typical type parsing situations.\n     */\n    function rescan_gt() {\n        if (base_1.state.type === types_1.TokenType.greaterThan) {\n            base_1.state.pos -= 1;\n            readToken_gt();\n        }\n    }\n    function readToken_eq_excl(code) {\n        // '=!'\n        const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n        if (nextChar === charcodes_1.charCodes.equalsTo) {\n            finishOp(types_1.TokenType.equality, base_1.input.charCodeAt(base_1.state.pos + 2) === charcodes_1.charCodes.equalsTo ? 3 : 2);\n            return;\n        }\n        if (code === charcodes_1.charCodes.equalsTo && nextChar === charcodes_1.charCodes.greaterThan) {\n            // '=>'\n            base_1.state.pos += 2;\n            finishToken(types_1.TokenType.arrow);\n            return;\n        }\n        finishOp(code === charcodes_1.charCodes.equalsTo ? types_1.TokenType.eq : types_1.TokenType.bang, 1);\n    }\n    function readToken_question() {\n        // '?'\n        const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n        const nextChar2 = base_1.input.charCodeAt(base_1.state.pos + 2);\n        if (nextChar === charcodes_1.charCodes.questionMark &&\n            // In Flow (but not TypeScript), ??string is a valid type that should be\n            // tokenized as two individual ? tokens.\n            !(base_1.isFlowEnabled && base_1.state.isType)) {\n            if (nextChar2 === charcodes_1.charCodes.equalsTo) {\n                // '??='\n                finishOp(types_1.TokenType.assign, 3);\n            }\n            else {\n                // '??'\n                finishOp(types_1.TokenType.nullishCoalescing, 2);\n            }\n        }\n        else if (nextChar === charcodes_1.charCodes.dot &&\n            !(nextChar2 >= charcodes_1.charCodes.digit0 && nextChar2 <= charcodes_1.charCodes.digit9)) {\n            // '.' not followed by a number\n            base_1.state.pos += 2;\n            finishToken(types_1.TokenType.questionDot);\n        }\n        else {\n            ++base_1.state.pos;\n            finishToken(types_1.TokenType.question);\n        }\n    }\n    function getTokenFromCode(code) {\n        switch (code) {\n            case charcodes_1.charCodes.numberSign:\n                ++base_1.state.pos;\n                finishToken(types_1.TokenType.hash);\n                return;\n            // The interpretation of a dot depends on whether it is followed\n            // by a digit or another two dots.\n            case charcodes_1.charCodes.dot:\n                readToken_dot();\n                return;\n            // Punctuation tokens.\n            case charcodes_1.charCodes.leftParenthesis:\n                ++base_1.state.pos;\n                finishToken(types_1.TokenType.parenL);\n                return;\n            case charcodes_1.charCodes.rightParenthesis:\n                ++base_1.state.pos;\n                finishToken(types_1.TokenType.parenR);\n                return;\n            case charcodes_1.charCodes.semicolon:\n                ++base_1.state.pos;\n                finishToken(types_1.TokenType.semi);\n                return;\n            case charcodes_1.charCodes.comma:\n                ++base_1.state.pos;\n                finishToken(types_1.TokenType.comma);\n                return;\n            case charcodes_1.charCodes.leftSquareBracket:\n                ++base_1.state.pos;\n                finishToken(types_1.TokenType.bracketL);\n                return;\n            case charcodes_1.charCodes.rightSquareBracket:\n                ++base_1.state.pos;\n                finishToken(types_1.TokenType.bracketR);\n                return;\n            case charcodes_1.charCodes.leftCurlyBrace:\n                if (base_1.isFlowEnabled && base_1.input.charCodeAt(base_1.state.pos + 1) === charcodes_1.charCodes.verticalBar) {\n                    finishOp(types_1.TokenType.braceBarL, 2);\n                }\n                else {\n                    ++base_1.state.pos;\n                    finishToken(types_1.TokenType.braceL);\n                }\n                return;\n            case charcodes_1.charCodes.rightCurlyBrace:\n                ++base_1.state.pos;\n                finishToken(types_1.TokenType.braceR);\n                return;\n            case charcodes_1.charCodes.colon:\n                if (base_1.input.charCodeAt(base_1.state.pos + 1) === charcodes_1.charCodes.colon) {\n                    finishOp(types_1.TokenType.doubleColon, 2);\n                }\n                else {\n                    ++base_1.state.pos;\n                    finishToken(types_1.TokenType.colon);\n                }\n                return;\n            case charcodes_1.charCodes.questionMark:\n                readToken_question();\n                return;\n            case charcodes_1.charCodes.atSign:\n                ++base_1.state.pos;\n                finishToken(types_1.TokenType.at);\n                return;\n            case charcodes_1.charCodes.graveAccent:\n                ++base_1.state.pos;\n                finishToken(types_1.TokenType.backQuote);\n                return;\n            case charcodes_1.charCodes.digit0: {\n                const nextChar = base_1.input.charCodeAt(base_1.state.pos + 1);\n                // '0x', '0X', '0o', '0O', '0b', '0B'\n                if (nextChar === charcodes_1.charCodes.lowercaseX ||\n                    nextChar === charcodes_1.charCodes.uppercaseX ||\n                    nextChar === charcodes_1.charCodes.lowercaseO ||\n                    nextChar === charcodes_1.charCodes.uppercaseO ||\n                    nextChar === charcodes_1.charCodes.lowercaseB ||\n                    nextChar === charcodes_1.charCodes.uppercaseB) {\n                    readRadixNumber();\n                    return;\n                }\n            }\n            // Anything else beginning with a digit is an integer, octal\n            // number, or float.\n            case charcodes_1.charCodes.digit1:\n            case charcodes_1.charCodes.digit2:\n            case charcodes_1.charCodes.digit3:\n            case charcodes_1.charCodes.digit4:\n            case charcodes_1.charCodes.digit5:\n            case charcodes_1.charCodes.digit6:\n            case charcodes_1.charCodes.digit7:\n            case charcodes_1.charCodes.digit8:\n            case charcodes_1.charCodes.digit9:\n                readNumber(false);\n                return;\n            // Quotes produce strings.\n            case charcodes_1.charCodes.quotationMark:\n            case charcodes_1.charCodes.apostrophe:\n                readString(code);\n                return;\n            // Operators are parsed inline in tiny state machines. '=' (charCodes.equalsTo) is\n            // often referred to. `finishOp` simply skips the amount of\n            // characters it is given as second argument, and returns a token\n            // of the type given by its first argument.\n            case charcodes_1.charCodes.slash:\n                readToken_slash();\n                return;\n            case charcodes_1.charCodes.percentSign:\n            case charcodes_1.charCodes.asterisk:\n                readToken_mult_modulo(code);\n                return;\n            case charcodes_1.charCodes.verticalBar:\n            case charcodes_1.charCodes.ampersand:\n                readToken_pipe_amp(code);\n                return;\n            case charcodes_1.charCodes.caret:\n                readToken_caret();\n                return;\n            case charcodes_1.charCodes.plusSign:\n            case charcodes_1.charCodes.dash:\n                readToken_plus_min(code);\n                return;\n            case charcodes_1.charCodes.lessThan:\n                readToken_lt();\n                return;\n            case charcodes_1.charCodes.greaterThan:\n                readToken_gt();\n                return;\n            case charcodes_1.charCodes.equalsTo:\n            case charcodes_1.charCodes.exclamationMark:\n                readToken_eq_excl(code);\n                return;\n            case charcodes_1.charCodes.tilde:\n                finishOp(types_1.TokenType.tilde, 1);\n                return;\n            default:\n                break;\n        }\n        (0, util_1.unexpected)(`Unexpected character '${String.fromCharCode(code)}'`, base_1.state.pos);\n    }\n    function finishOp(type, size) {\n        base_1.state.pos += size;\n        finishToken(type);\n    }\n    function readRegexp() {\n        const start = base_1.state.pos;\n        let escaped = false;\n        let inClass = false;\n        for (;;) {\n            if (base_1.state.pos >= base_1.input.length) {\n                (0, util_1.unexpected)(\"Unterminated regular expression\", start);\n                return;\n            }\n            const code = base_1.input.charCodeAt(base_1.state.pos);\n            if (escaped) {\n                escaped = false;\n            }\n            else {\n                if (code === charcodes_1.charCodes.leftSquareBracket) {\n                    inClass = true;\n                }\n                else if (code === charcodes_1.charCodes.rightSquareBracket && inClass) {\n                    inClass = false;\n                }\n                else if (code === charcodes_1.charCodes.slash && !inClass) {\n                    break;\n                }\n                escaped = code === charcodes_1.charCodes.backslash;\n            }\n            ++base_1.state.pos;\n        }\n        ++base_1.state.pos;\n        // Need to use `skipWord` because '\\uXXXX' sequences are allowed here (don't ask).\n        skipWord();\n        finishToken(types_1.TokenType.regexp);\n    }\n    /**\n     * Read a decimal integer. Note that this can't be unified with the similar code\n     * in readRadixNumber (which also handles hex digits) because \"e\" needs to be\n     * the end of the integer so that we can properly handle scientific notation.\n     */\n    function readInt() {\n        while (true) {\n            const code = base_1.input.charCodeAt(base_1.state.pos);\n            if ((code >= charcodes_1.charCodes.digit0 && code <= charcodes_1.charCodes.digit9) || code === charcodes_1.charCodes.underscore) {\n                base_1.state.pos++;\n            }\n            else {\n                break;\n            }\n        }\n    }\n    function readRadixNumber() {\n        base_1.state.pos += 2; // 0x\n        // Walk to the end of the number, allowing hex digits.\n        while (true) {\n            const code = base_1.input.charCodeAt(base_1.state.pos);\n            if ((code >= charcodes_1.charCodes.digit0 && code <= charcodes_1.charCodes.digit9) ||\n                (code >= charcodes_1.charCodes.lowercaseA && code <= charcodes_1.charCodes.lowercaseF) ||\n                (code >= charcodes_1.charCodes.uppercaseA && code <= charcodes_1.charCodes.uppercaseF) ||\n                code === charcodes_1.charCodes.underscore) {\n                base_1.state.pos++;\n            }\n            else {\n                break;\n            }\n        }\n        const nextChar = base_1.input.charCodeAt(base_1.state.pos);\n        if (nextChar === charcodes_1.charCodes.lowercaseN) {\n            ++base_1.state.pos;\n            finishToken(types_1.TokenType.bigint);\n        }\n        else {\n            finishToken(types_1.TokenType.num);\n        }\n    }\n    // Read an integer, octal integer, or floating-point number.\n    function readNumber(startsWithDot) {\n        let isBigInt = false;\n        let isDecimal = false;\n        if (!startsWithDot) {\n            readInt();\n        }\n        let nextChar = base_1.input.charCodeAt(base_1.state.pos);\n        if (nextChar === charcodes_1.charCodes.dot) {\n            ++base_1.state.pos;\n            readInt();\n            nextChar = base_1.input.charCodeAt(base_1.state.pos);\n        }\n        if (nextChar === charcodes_1.charCodes.uppercaseE || nextChar === charcodes_1.charCodes.lowercaseE) {\n            nextChar = base_1.input.charCodeAt(++base_1.state.pos);\n            if (nextChar === charcodes_1.charCodes.plusSign || nextChar === charcodes_1.charCodes.dash) {\n                ++base_1.state.pos;\n            }\n            readInt();\n            nextChar = base_1.input.charCodeAt(base_1.state.pos);\n        }\n        if (nextChar === charcodes_1.charCodes.lowercaseN) {\n            ++base_1.state.pos;\n            isBigInt = true;\n        }\n        else if (nextChar === charcodes_1.charCodes.lowercaseM) {\n            ++base_1.state.pos;\n            isDecimal = true;\n        }\n        if (isBigInt) {\n            finishToken(types_1.TokenType.bigint);\n            return;\n        }\n        if (isDecimal) {\n            finishToken(types_1.TokenType.decimal);\n            return;\n        }\n        finishToken(types_1.TokenType.num);\n    }\n    function readString(quote) {\n        base_1.state.pos++;\n        for (;;) {\n            if (base_1.state.pos >= base_1.input.length) {\n                (0, util_1.unexpected)(\"Unterminated string constant\");\n                return;\n            }\n            const ch = base_1.input.charCodeAt(base_1.state.pos);\n            if (ch === charcodes_1.charCodes.backslash) {\n                base_1.state.pos++;\n            }\n            else if (ch === quote) {\n                break;\n            }\n            base_1.state.pos++;\n        }\n        base_1.state.pos++;\n        finishToken(types_1.TokenType.string);\n    }\n    // Reads template string tokens.\n    function readTmplToken() {\n        for (;;) {\n            if (base_1.state.pos >= base_1.input.length) {\n                (0, util_1.unexpected)(\"Unterminated template\");\n                return;\n            }\n            const ch = base_1.input.charCodeAt(base_1.state.pos);\n            if (ch === charcodes_1.charCodes.graveAccent ||\n                (ch === charcodes_1.charCodes.dollarSign && base_1.input.charCodeAt(base_1.state.pos + 1) === charcodes_1.charCodes.leftCurlyBrace)) {\n                if (base_1.state.pos === base_1.state.start && match(types_1.TokenType.template)) {\n                    if (ch === charcodes_1.charCodes.dollarSign) {\n                        base_1.state.pos += 2;\n                        finishToken(types_1.TokenType.dollarBraceL);\n                        return;\n                    }\n                    else {\n                        ++base_1.state.pos;\n                        finishToken(types_1.TokenType.backQuote);\n                        return;\n                    }\n                }\n                finishToken(types_1.TokenType.template);\n                return;\n            }\n            if (ch === charcodes_1.charCodes.backslash) {\n                base_1.state.pos++;\n            }\n            base_1.state.pos++;\n        }\n    }\n    // Skip to the end of the current word. Note that this is the same as the snippet at the end of\n    // readWord, but calling skipWord from readWord seems to slightly hurt performance from some rough\n    // measurements.\n    function skipWord() {\n        while (base_1.state.pos < base_1.input.length) {\n            const ch = base_1.input.charCodeAt(base_1.state.pos);\n            if (identifier_1.IS_IDENTIFIER_CHAR[ch]) {\n                base_1.state.pos++;\n            }\n            else if (ch === charcodes_1.charCodes.backslash) {\n                // \\u\n                base_1.state.pos += 2;\n                if (base_1.input.charCodeAt(base_1.state.pos) === charcodes_1.charCodes.leftCurlyBrace) {\n                    while (base_1.state.pos < base_1.input.length &&\n                        base_1.input.charCodeAt(base_1.state.pos) !== charcodes_1.charCodes.rightCurlyBrace) {\n                        base_1.state.pos++;\n                    }\n                    base_1.state.pos++;\n                }\n            }\n            else {\n                break;\n            }\n        }\n    }\n}\n","min_source":"function _(e,t,o,a,s){a(),o.isDeclaration=function(e){const t=e.identifierRole;return t===o.IdentifierRole.TopLevelDeclaration||t===o.IdentifierRole.FunctionScopedDeclaration||t===o.IdentifierRole.BlockScopedDeclaration||t===o.IdentifierRole.ObjectShorthandTopLevelDeclaration||t===o.IdentifierRole.ObjectShorthandFunctionScopedDeclaration||t===o.IdentifierRole.ObjectShorthandBlockScopedDeclaration},o.isNonTopLevelDeclaration=function(e){const t=e.identifierRole;return t===o.IdentifierRole.FunctionScopedDeclaration||t===o.IdentifierRole.BlockScopedDeclaration||t===o.IdentifierRole.ObjectShorthandFunctionScopedDeclaration||t===o.IdentifierRole.ObjectShorthandBlockScopedDeclaration},o.isTopLevelDeclaration=function(e){const t=e.identifierRole;return t===o.IdentifierRole.TopLevelDeclaration||t===o.IdentifierRole.ObjectShorthandTopLevelDeclaration||t===o.IdentifierRole.ImportDeclaration},o.isBlockScopedDeclaration=function(e){const t=e.identifierRole;return t===o.IdentifierRole.TopLevelDeclaration||t===o.IdentifierRole.BlockScopedDeclaration||t===o.IdentifierRole.ObjectShorthandTopLevelDeclaration||t===o.IdentifierRole.ObjectShorthandBlockScopedDeclaration},o.isFunctionScopedDeclaration=function(e){const t=e.identifierRole;return t===o.IdentifierRole.FunctionScopedDeclaration||t===o.IdentifierRole.ObjectShorthandFunctionScopedDeclaration},o.isObjectShorthandDeclaration=function(e){return e.identifierRole===o.IdentifierRole.ObjectShorthandTopLevelDeclaration||e.identifierRole===o.IdentifierRole.ObjectShorthandBlockScopedDeclaration||e.identifierRole===o.IdentifierRole.ObjectShorthandFunctionScopedDeclaration},o.next=C,o.nextTemplateToken=function(){r.state.tokens.push(new T),r.state.start=r.state.pos,function(){for(;;){if(r.state.pos>=r.input.length)return void(0,c.unexpected)(\"Unterminated template\");const e=r.input.charCodeAt(r.state.pos);if(e===i.charCodes.graveAccent||e===i.charCodes.dollarSign&&r.input.charCodeAt(r.state.pos+1)===i.charCodes.leftCurlyBrace)return r.state.pos===r.state.start&&k(u.TokenType.template)?e===i.charCodes.dollarSign?(r.state.pos+=2,void R(u.TokenType.dollarBraceL)):(++r.state.pos,void R(u.TokenType.backQuote)):void R(u.TokenType.template);e===i.charCodes.backslash&&r.state.pos++,r.state.pos++}}()},o.retokenizeSlashAsRegex=function(){r.state.type===u.TokenType.assign&&--r.state.pos;!function(){const e=r.state.pos;let t=!1,o=!1;for(;;){if(r.state.pos>=r.input.length)return void(0,c.unexpected)(\"Unterminated regular expression\",e);const a=r.input.charCodeAt(r.state.pos);if(t)t=!1;else{if(a===i.charCodes.leftSquareBracket)o=!0;else if(a===i.charCodes.rightSquareBracket&&o)o=!1;else if(a===i.charCodes.slash&&!o)break;t=a===i.charCodes.backslash}++r.state.pos}++r.state.pos,w(),R(u.TokenType.regexp)}()},o.pushTypeContext=function(e){for(let t=r.state.tokens.length-e;t<r.state.tokens.length;t++)r.state.tokens[t].isType=!0;const t=r.state.isType;return r.state.isType=!0,t},o.popTypeContext=function(e){r.state.isType=e},o.eat=f,o.eatTypeToken=function(e){const t=r.state.isType;r.state.isType=!0,f(e),r.state.isType=t},o.match=k,o.lookaheadType=function(){const e=r.state.snapshot();C();const t=r.state.type;return r.state.restoreFromSnapshot(e),t},o.lookaheadTypeAndKeyword=function(){const e=r.state.snapshot();C();const t=r.state.type,o=r.state.contextualKeyword;return r.state.restoreFromSnapshot(e),new y(t,o)},o.nextTokenStart=g,o.nextTokenStartSince=S,o.lookaheadCharCode=function(){return r.input.charCodeAt(g())},o.nextToken=b,o.skipLineComment=v,o.skipSpace=D,o.finishToken=R,o.rescan_gt=function(){r.state.type===u.TokenType.greaterThan&&(r.state.pos-=1,I())},o.getTokenFromCode=m,o.skipWord=w;const n=e(\"tslib\"),r=e(\"540718e523\"),c=e(\"bc94bbadc1\"),i=e(\"22746c8ce8\"),d=e(\"364148c9f0\"),p=e(\"2a3176644a\"),h=e(\"99ff836c64\"),l=n.__importDefault(e(\"e6eb78033b\")),u=e(\"f0c35cbd76\");!function(e){e[e.Access=0]=\"Access\";e[e.ExportAccess=1]=\"ExportAccess\";e[e.TopLevelDeclaration=2]=\"TopLevelDeclaration\";e[e.FunctionScopedDeclaration=3]=\"FunctionScopedDeclaration\";e[e.BlockScopedDeclaration=4]=\"BlockScopedDeclaration\";e[e.ObjectShorthandTopLevelDeclaration=5]=\"ObjectShorthandTopLevelDeclaration\";e[e.ObjectShorthandFunctionScopedDeclaration=6]=\"ObjectShorthandFunctionScopedDeclaration\";e[e.ObjectShorthandBlockScopedDeclaration=7]=\"ObjectShorthandBlockScopedDeclaration\";e[e.ObjectShorthand=8]=\"ObjectShorthand\";e[e.ImportDeclaration=9]=\"ImportDeclaration\";e[e.ObjectKey=10]=\"ObjectKey\";e[e.ImportAccess=11]=\"ImportAccess\"}(o.IdentifierRole||(o.IdentifierRole={})),function(e){e[e.NoChildren=0]=\"NoChildren\";e[e.OneChild=1]=\"OneChild\";e[e.StaticChildren=2]=\"StaticChildren\";e[e.KeyAfterPropSpread=3]=\"KeyAfterPropSpread\"}(o.JSXRole||(o.JSXRole={}));class T{constructor(){this.type=r.state.type,this.contextualKeyword=r.state.contextualKeyword,this.start=r.state.start,this.end=r.state.end,this.scopeDepth=r.state.scopeDepth,this.isType=r.state.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function C(){r.state.tokens.push(new T),b()}function f(e){return!!k(e)&&(C(),!0)}function k(e){return r.state.type===e}o.Token=T;class y{constructor(e,t){this.type=e,this.contextualKeyword=t}}function g(){return S(r.state.pos)}function S(e){p.skipWhiteSpace.lastIndex=e;return e+p.skipWhiteSpace.exec(r.input)[0].length}function b(){if(D(),r.state.start=r.state.pos,r.state.pos>=r.input.length){const e=r.state.tokens;return e.length>=2&&e[e.length-1].start>=r.input.length&&e[e.length-2].start>=r.input.length&&(0,c.unexpected)(\"Unexpectedly reached the end of input.\"),void R(u.TokenType.eof)}var e;e=r.input.charCodeAt(r.state.pos),d.IS_IDENTIFIER_START[e]||e===i.charCodes.backslash||e===i.charCodes.atSign&&r.input.charCodeAt(r.state.pos+1)===i.charCodes.atSign?(0,l.default)():m(e)}function A(){for(;r.input.charCodeAt(r.state.pos)!==i.charCodes.asterisk||r.input.charCodeAt(r.state.pos+1)!==i.charCodes.slash;)if(r.state.pos++,r.state.pos>r.input.length)return void(0,c.unexpected)(\"Unterminated comment\",r.state.pos-2);r.state.pos+=2}function v(e){let t=r.input.charCodeAt(r.state.pos+=e);if(r.state.pos<r.input.length)for(;t!==i.charCodes.lineFeed&&t!==i.charCodes.carriageReturn&&t!==i.charCodes.lineSeparator&&t!==i.charCodes.paragraphSeparator&&++r.state.pos<r.input.length;)t=r.input.charCodeAt(r.state.pos)}function D(){for(;r.state.pos<r.input.length;){const e=r.input.charCodeAt(r.state.pos);switch(e){case i.charCodes.carriageReturn:r.input.charCodeAt(r.state.pos+1)===i.charCodes.lineFeed&&++r.state.pos;case i.charCodes.lineFeed:case i.charCodes.lineSeparator:case i.charCodes.paragraphSeparator:++r.state.pos;break;case i.charCodes.slash:switch(r.input.charCodeAt(r.state.pos+1)){case i.charCodes.asterisk:r.state.pos+=2,A();break;case i.charCodes.slash:v(2);break;default:return}break;default:if(!p.IS_WHITESPACE[e])return;++r.state.pos}}}function R(e,t=h.ContextualKeyword.NONE){r.state.end=r.state.pos,r.state.type=e,r.state.contextualKeyword=t}function I(){if(r.state.isType)return void x(u.TokenType.greaterThan,1);const e=r.input.charCodeAt(r.state.pos+1);if(e===i.charCodes.greaterThan){const e=r.input.charCodeAt(r.state.pos+2)===i.charCodes.greaterThan?3:2;return r.input.charCodeAt(r.state.pos+e)===i.charCodes.equalsTo?void x(u.TokenType.assign,e+1):void x(u.TokenType.bitShiftR,e)}e===i.charCodes.equalsTo?x(u.TokenType.relationalOrEqual,2):x(u.TokenType.greaterThan,1)}function m(e){switch(e){case i.charCodes.numberSign:return++r.state.pos,void R(u.TokenType.hash);case i.charCodes.dot:return void function(){const e=r.input.charCodeAt(r.state.pos+1);e>=i.charCodes.digit0&&e<=i.charCodes.digit9?B(!0):e===i.charCodes.dot&&r.input.charCodeAt(r.state.pos+2)===i.charCodes.dot?(r.state.pos+=3,R(u.TokenType.ellipsis)):(++r.state.pos,R(u.TokenType.dot))}();case i.charCodes.leftParenthesis:return++r.state.pos,void R(u.TokenType.parenL);case i.charCodes.rightParenthesis:return++r.state.pos,void R(u.TokenType.parenR);case i.charCodes.semicolon:return++r.state.pos,void R(u.TokenType.semi);case i.charCodes.comma:return++r.state.pos,void R(u.TokenType.comma);case i.charCodes.leftSquareBracket:return++r.state.pos,void R(u.TokenType.bracketL);case i.charCodes.rightSquareBracket:return++r.state.pos,void R(u.TokenType.bracketR);case i.charCodes.leftCurlyBrace:return void(r.isFlowEnabled&&r.input.charCodeAt(r.state.pos+1)===i.charCodes.verticalBar?x(u.TokenType.braceBarL,2):(++r.state.pos,R(u.TokenType.braceL)));case i.charCodes.rightCurlyBrace:return++r.state.pos,void R(u.TokenType.braceR);case i.charCodes.colon:return void(r.input.charCodeAt(r.state.pos+1)===i.charCodes.colon?x(u.TokenType.doubleColon,2):(++r.state.pos,R(u.TokenType.colon)));case i.charCodes.questionMark:return void function(){const e=r.input.charCodeAt(r.state.pos+1),t=r.input.charCodeAt(r.state.pos+2);e!==i.charCodes.questionMark||r.isFlowEnabled&&r.state.isType?e!==i.charCodes.dot||t>=i.charCodes.digit0&&t<=i.charCodes.digit9?(++r.state.pos,R(u.TokenType.question)):(r.state.pos+=2,R(u.TokenType.questionDot)):t===i.charCodes.equalsTo?x(u.TokenType.assign,3):x(u.TokenType.nullishCoalescing,2)}();case i.charCodes.atSign:return++r.state.pos,void R(u.TokenType.at);case i.charCodes.graveAccent:return++r.state.pos,void R(u.TokenType.backQuote);case i.charCodes.digit0:{const e=r.input.charCodeAt(r.state.pos+1);if(e===i.charCodes.lowercaseX||e===i.charCodes.uppercaseX||e===i.charCodes.lowercaseO||e===i.charCodes.uppercaseO||e===i.charCodes.lowercaseB||e===i.charCodes.uppercaseB)return void function(){r.state.pos+=2;for(;;){const e=r.input.charCodeAt(r.state.pos);if(!(e>=i.charCodes.digit0&&e<=i.charCodes.digit9||e>=i.charCodes.lowercaseA&&e<=i.charCodes.lowercaseF||e>=i.charCodes.uppercaseA&&e<=i.charCodes.uppercaseF||e===i.charCodes.underscore))break;r.state.pos++}const e=r.input.charCodeAt(r.state.pos);e===i.charCodes.lowercaseN?(++r.state.pos,R(u.TokenType.bigint)):R(u.TokenType.num)}()}case i.charCodes.digit1:case i.charCodes.digit2:case i.charCodes.digit3:case i.charCodes.digit4:case i.charCodes.digit5:case i.charCodes.digit6:case i.charCodes.digit7:case i.charCodes.digit8:case i.charCodes.digit9:return void B(!1);case i.charCodes.quotationMark:case i.charCodes.apostrophe:return void function(e){for(r.state.pos++;;){if(r.state.pos>=r.input.length)return void(0,c.unexpected)(\"Unterminated string constant\");const t=r.input.charCodeAt(r.state.pos);if(t===i.charCodes.backslash)r.state.pos++;else if(t===e)break;r.state.pos++}r.state.pos++,R(u.TokenType.string)}(e);case i.charCodes.slash:return void(r.input.charCodeAt(r.state.pos+1)===i.charCodes.equalsTo?x(u.TokenType.assign,2):x(u.TokenType.slash,1));case i.charCodes.percentSign:case i.charCodes.asterisk:return void function(e){let t=e===i.charCodes.asterisk?u.TokenType.star:u.TokenType.modulo,o=1,a=r.input.charCodeAt(r.state.pos+1);e===i.charCodes.asterisk&&a===i.charCodes.asterisk&&(o++,a=r.input.charCodeAt(r.state.pos+2),t=u.TokenType.exponent),a===i.charCodes.equalsTo&&r.input.charCodeAt(r.state.pos+2)!==i.charCodes.greaterThan&&(o++,t=u.TokenType.assign),x(t,o)}(e);case i.charCodes.verticalBar:case i.charCodes.ampersand:return void function(e){const t=r.input.charCodeAt(r.state.pos+1);if(t!==e){if(e===i.charCodes.verticalBar){if(t===i.charCodes.greaterThan)return void x(u.TokenType.pipeline,2);if(t===i.charCodes.rightCurlyBrace&&r.isFlowEnabled)return void x(u.TokenType.braceBarR,2)}t!==i.charCodes.equalsTo?x(e===i.charCodes.verticalBar?u.TokenType.bitwiseOR:u.TokenType.bitwiseAND,1):x(u.TokenType.assign,2)}else r.input.charCodeAt(r.state.pos+2)===i.charCodes.equalsTo?x(u.TokenType.assign,3):x(e===i.charCodes.verticalBar?u.TokenType.logicalOR:u.TokenType.logicalAND,2)}(e);case i.charCodes.caret:return void(r.input.charCodeAt(r.state.pos+1)===i.charCodes.equalsTo?x(u.TokenType.assign,2):x(u.TokenType.bitwiseXOR,1));case i.charCodes.plusSign:case i.charCodes.dash:return void function(e){const t=r.input.charCodeAt(r.state.pos+1);t!==e?t===i.charCodes.equalsTo?x(u.TokenType.assign,2):e===i.charCodes.plusSign?x(u.TokenType.plus,1):x(u.TokenType.minus,1):x(u.TokenType.preIncDec,2)}(e);case i.charCodes.lessThan:return void function(){const e=r.input.charCodeAt(r.state.pos+1);if(e===i.charCodes.lessThan)return r.input.charCodeAt(r.state.pos+2)===i.charCodes.equalsTo?void x(u.TokenType.assign,3):void(r.state.isType?x(u.TokenType.lessThan,1):x(u.TokenType.bitShiftL,2));e===i.charCodes.equalsTo?x(u.TokenType.relationalOrEqual,2):x(u.TokenType.lessThan,1)}();case i.charCodes.greaterThan:return void I();case i.charCodes.equalsTo:case i.charCodes.exclamationMark:return void function(e){const t=r.input.charCodeAt(r.state.pos+1);if(t!==i.charCodes.equalsTo)return e===i.charCodes.equalsTo&&t===i.charCodes.greaterThan?(r.state.pos+=2,void R(u.TokenType.arrow)):void x(e===i.charCodes.equalsTo?u.TokenType.eq:u.TokenType.bang,1);x(u.TokenType.equality,r.input.charCodeAt(r.state.pos+2)===i.charCodes.equalsTo?3:2)}(e);case i.charCodes.tilde:return void x(u.TokenType.tilde,1)}(0,c.unexpected)(`Unexpected character '${String.fromCharCode(e)}'`,r.state.pos)}function x(e,t){r.state.pos+=t,R(e)}function O(){for(;;){const e=r.input.charCodeAt(r.state.pos);if(!(e>=i.charCodes.digit0&&e<=i.charCodes.digit9||e===i.charCodes.underscore))break;r.state.pos++}}function B(e){let t=!1,o=!1;e||O();let a=r.input.charCodeAt(r.state.pos);a===i.charCodes.dot&&(++r.state.pos,O(),a=r.input.charCodeAt(r.state.pos)),a!==i.charCodes.uppercaseE&&a!==i.charCodes.lowercaseE||(a=r.input.charCodeAt(++r.state.pos),a!==i.charCodes.plusSign&&a!==i.charCodes.dash||++r.state.pos,O(),a=r.input.charCodeAt(r.state.pos)),a===i.charCodes.lowercaseN?(++r.state.pos,t=!0):a===i.charCodes.lowercaseM&&(++r.state.pos,o=!0),R(t?u.TokenType.bigint:o?u.TokenType.decimal:u.TokenType.num)}function w(){for(;r.state.pos<r.input.length;){const e=r.input.charCodeAt(r.state.pos);if(d.IS_IDENTIFIER_CHAR[e])r.state.pos++;else{if(e!==i.charCodes.backslash)break;if(r.state.pos+=2,r.input.charCodeAt(r.state.pos)===i.charCodes.leftCurlyBrace){for(;r.state.pos<r.input.length&&r.input.charCodeAt(r.state.pos)!==i.charCodes.rightCurlyBrace;)r.state.pos++;r.state.pos++}}}}o.TypeAndKeyword=y}\n//# sourceMappingURL=index.min.js.map","min_map":"{\"version\":3,\"file\":\"index.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"isDeclaration\",\"token\",\"role\",\"identifierRole\",\"IdentifierRole\",\"TopLevelDeclaration\",\"FunctionScopedDeclaration\",\"BlockScopedDeclaration\",\"ObjectShorthandTopLevelDeclaration\",\"ObjectShorthandFunctionScopedDeclaration\",\"ObjectShorthandBlockScopedDeclaration\",\"isNonTopLevelDeclaration\",\"isTopLevelDeclaration\",\"ImportDeclaration\",\"isBlockScopedDeclaration\",\"isFunctionScopedDeclaration\",\"isObjectShorthandDeclaration\",\"next\",\"nextTemplateToken\",\"base_1\",\"state\",\"tokens\",\"push\",\"Token\",\"start\",\"pos\",\"input\",\"length\",\"util_1\",\"unexpected\",\"ch\",\"charCodeAt\",\"charcodes_1\",\"charCodes\",\"graveAccent\",\"dollarSign\",\"leftCurlyBrace\",\"match\",\"types_1\",\"TokenType\",\"template\",\"finishToken\",\"dollarBraceL\",\"backQuote\",\"backslash\",\"readTmplToken\",\"retokenizeSlashAsRegex\",\"type\",\"assign\",\"escaped\",\"inClass\",\"code\",\"leftSquareBracket\",\"rightSquareBracket\",\"slash\",\"skipWord\",\"regexp\",\"readRegexp\",\"pushTypeContext\",\"existingTokensInType\",\"i\",\"isType\",\"oldIsType\",\"popTypeContext\",\"eat\",\"eatTypeToken\",\"tokenType\",\"lookaheadType\",\"snapshot\",\"restoreFromSnapshot\",\"lookaheadTypeAndKeyword\",\"contextualKeyword\",\"TypeAndKeyword\",\"nextTokenStart\",\"nextTokenStartSince\",\"lookaheadCharCode\",\"nextToken\",\"skipLineComment\",\"skipSpace\",\"rescan_gt\",\"greaterThan\",\"readToken_gt\",\"getTokenFromCode\",\"tslib_1\",\"identifier_1\",\"whitespace_1\",\"keywords_1\",\"readWord_1\",\"__importDefault\",\"Access\",\"ExportAccess\",\"ObjectShorthand\",\"ObjectKey\",\"JSXRole\",\"NoChildren\",\"OneChild\",\"StaticChildren\",\"constructor\",\"this\",\"end\",\"scopeDepth\",\"jsxRole\",\"shadowsGlobal\",\"isAsyncOperation\",\"contextId\",\"rhsEndIndex\",\"isExpression\",\"numNullishCoalesceStarts\",\"numNullishCoalesceEnds\",\"isOptionalChainStart\",\"isOptionalChainEnd\",\"subscriptStartIndex\",\"nullishStartIndex\",\"skipWhiteSpace\",\"lastIndex\",\"exec\",\"eof\",\"IS_IDENTIFIER_START\",\"atSign\",\"default\",\"skipBlockComment\",\"asterisk\",\"startSkip\",\"lineFeed\",\"carriageReturn\",\"lineSeparator\",\"paragraphSeparator\",\"IS_WHITESPACE\",\"ContextualKeyword\",\"NONE\",\"finishOp\",\"nextChar\",\"size\",\"equalsTo\",\"bitShiftR\",\"relationalOrEqual\",\"numberSign\",\"hash\",\"dot\",\"digit0\",\"digit9\",\"readNumber\",\"ellipsis\",\"readToken_dot\",\"leftParenthesis\",\"parenL\",\"rightParenthesis\",\"parenR\",\"semicolon\",\"semi\",\"comma\",\"bracketL\",\"bracketR\",\"isFlowEnabled\",\"verticalBar\",\"braceBarL\",\"braceL\",\"rightCurlyBrace\",\"braceR\",\"colon\",\"doubleColon\",\"questionMark\",\"nextChar2\",\"question\",\"questionDot\",\"nullishCoalescing\",\"readToken_question\",\"at\",\"lowercaseX\",\"uppercaseX\",\"lowercaseO\",\"uppercaseO\",\"lowercaseB\",\"uppercaseB\",\"lowercaseA\",\"lowercaseF\",\"uppercaseA\",\"uppercaseF\",\"underscore\",\"lowercaseN\",\"bigint\",\"num\",\"readRadixNumber\",\"digit1\",\"digit2\",\"digit3\",\"digit4\",\"digit5\",\"digit6\",\"digit7\",\"digit8\",\"quotationMark\",\"apostrophe\",\"quote\",\"string\",\"readString\",\"percentSign\",\"star\",\"modulo\",\"width\",\"exponent\",\"readToken_mult_modulo\",\"ampersand\",\"pipeline\",\"braceBarR\",\"bitwiseOR\",\"bitwiseAND\",\"logicalOR\",\"logicalAND\",\"readToken_pipe_amp\",\"caret\",\"bitwiseXOR\",\"plusSign\",\"dash\",\"plus\",\"minus\",\"preIncDec\",\"readToken_plus_min\",\"lessThan\",\"bitShiftL\",\"readToken_lt\",\"exclamationMark\",\"arrow\",\"eq\",\"bang\",\"equality\",\"readToken_eq_excl\",\"tilde\",\"String\",\"fromCharCode\",\"readInt\",\"startsWithDot\",\"isBigInt\",\"isDecimal\",\"uppercaseE\",\"lowercaseE\",\"lowercaseM\",\"decimal\",\"IS_IDENTIFIER_CHAR\"],\"sources\":[\"0\"],\"mappings\":\"AAAiD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC9FD,IACAD,EAAQG,cAmFR,SAAuBC,GACnB,MAAMC,EAAOD,EAAME,eACnB,OAAQD,IAASL,EAAQO,eAAeC,qBACpCH,IAASL,EAAQO,eAAeE,2BAChCJ,IAASL,EAAQO,eAAeG,wBAChCL,IAASL,EAAQO,eAAeI,oCAChCN,IAASL,EAAQO,eAAeK,0CAChCP,IAASL,EAAQO,eAAeM,qCACxC,EA1FAb,EAAQc,yBA2FR,SAAkC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MATA,GADAzB,EAAOC,MAAMK,KAAO,EAChBN,EAAOO,MAAMK,WAAWZ,EAAOC,MAAMK,OAASO,EAAYC,UAAUG,eAAgB,CACpF,KAAOjB,EAAOC,MAAMK,IAAMN,EAAOO,MAAMC,QACnCR,EAAOO,MAAMK,WAAWZ,EAAOC,MAAMK,OAASO,EAAYC,UAAU4H,iBACpE1I,EAAOC,MAAMK,MAEjBN,EAAOC,MAAMK,KACjB,CAIJ,CACJ,CACJ,CA5qBA5B,EAAQ2E,eAAiBA,CA6qB7B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/base.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/traverser/base.js","resolution":"ESM","id":"540718e523","hash":"540718e5236bc4febc4d811b2bc184fd6ffabc7860f0465dda94ade646024d39","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Loc = exports.nextContextId = exports.input = exports.state = exports.isFlowEnabled = exports.isTypeScriptEnabled = exports.isJSXEnabled = void 0;\nexports.getNextContextId = getNextContextId;\nexports.augmentError = augmentError;\nexports.locationForIndex = locationForIndex;\nexports.initParser = initParser;\nconst tslib_1 = require(\"tslib\");\nconst state_1 = tslib_1.__importDefault(require(\"../tokenizer/state\"));\nconst charcodes_1 = require(\"../util/charcodes\");\nfunction getNextContextId() {\n    return exports.nextContextId++;\n}\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction augmentError(error) {\n    if (\"pos\" in error) {\n        const loc = locationForIndex(error.pos);\n        error.message += ` (${loc.line}:${loc.column})`;\n        error.loc = loc;\n    }\n    return error;\n}\nclass Loc {\n    constructor(line, column) {\n        this.line = line;\n        this.column = column;\n    }\n}\nexports.Loc = Loc;\nfunction locationForIndex(pos) {\n    let line = 1;\n    let column = 1;\n    for (let i = 0; i < pos; i++) {\n        if (exports.input.charCodeAt(i) === charcodes_1.charCodes.lineFeed) {\n            line++;\n            column = 1;\n        }\n        else {\n            column++;\n        }\n    }\n    return new Loc(line, column);\n}\nfunction initParser(inputCode, isJSXEnabledArg, isTypeScriptEnabledArg, isFlowEnabledArg) {\n    exports.input = inputCode;\n    exports.state = new state_1.default();\n    exports.nextContextId = 1;\n    exports.isJSXEnabled = isJSXEnabledArg;\n    exports.isTypeScriptEnabled = isTypeScriptEnabledArg;\n    exports.isFlowEnabled = isFlowEnabledArg;\n}\n","type":"js","dependency_paths":[["../tokenizer/state","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/state.js"],["../util/charcodes","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/charcodes.js"]],"dependency_map":[],"exported":[{"type":"named","name":"getNextContextId"},{"type":"named","name":"augmentError"},{"type":"named","name":"Loc"},{"type":"named","name":"locationForIndex"},{"type":"named","name":"initParser"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/traverser/base.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.getNextContextId = getNextContextId;\n    exports.augmentError = augmentError;\n    exports.locationForIndex = locationForIndex;\n    exports.initParser = initParser;\n    const tslib_1 = require(\"tslib\");\n    const state_1 = tslib_1.__importDefault(require(\"eda46439d5\") /* ../tokenizer/state */);\n    const charcodes_1 = require(\"22746c8ce8\") /* ../util/charcodes */;\n    function getNextContextId() {\n        return exports.nextContextId++;\n    }\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    function augmentError(error) {\n        if (\"pos\" in error) {\n            const loc = locationForIndex(error.pos);\n            error.message += ` (${loc.line}:${loc.column})`;\n            error.loc = loc;\n        }\n        return error;\n    }\n    class Loc {\n        constructor(line, column) {\n            this.line = line;\n            this.column = column;\n        }\n    }\n    exports.Loc = Loc;\n    function locationForIndex(pos) {\n        let line = 1;\n        let column = 1;\n        for (let i = 0; i < pos; i++) {\n            if (exports.input.charCodeAt(i) === charcodes_1.charCodes.lineFeed) {\n                line++;\n                column = 1;\n            }\n            else {\n                column++;\n            }\n        }\n        return new Loc(line, column);\n    }\n    function initParser(inputCode, isJSXEnabledArg, isTypeScriptEnabledArg, isFlowEnabledArg) {\n        exports.input = inputCode;\n        exports.state = new state_1.default();\n        exports.nextContextId = 1;\n        exports.isJSXEnabled = isJSXEnabledArg;\n        exports.isTypeScriptEnabled = isTypeScriptEnabledArg;\n        exports.isFlowEnabled = isFlowEnabledArg;\n    }\n}\n","min_source":"function _(t,n,e,o,i){o(),e.getNextContextId=function(){return e.nextContextId++},e.augmentError=function(t){if(\"pos\"in t){const n=l(t.pos);t.message+=` (${n.line}:${n.column})`,t.loc=n}return t},e.locationForIndex=l,e.initParser=function(t,n,o,i){e.input=t,e.state=new c.default,e.nextContextId=1,e.isJSXEnabled=n,e.isTypeScriptEnabled=o,e.isFlowEnabled=i};const c=t(\"tslib\").__importDefault(t(\"eda46439d5\")),r=t(\"22746c8ce8\");class s{constructor(t,n){this.line=t,this.column=n}}function l(t){let n=1,o=1;for(let i=0;i<t;i++)e.input.charCodeAt(i)===r.charCodes.lineFeed?(n++,o=1):o++;return new s(n,o)}e.Loc=s}\n//# sourceMappingURL=base.min.js.map","min_map":"{\"version\":3,\"file\":\"base.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"getNextContextId\",\"nextContextId\",\"augmentError\",\"error\",\"loc\",\"locationForIndex\",\"pos\",\"message\",\"line\",\"column\",\"initParser\",\"inputCode\",\"isJSXEnabledArg\",\"isTypeScriptEnabledArg\",\"isFlowEnabledArg\",\"input\",\"state\",\"state_1\",\"default\",\"isJSXEnabled\",\"isTypeScriptEnabled\",\"isFlowEnabled\",\"__importDefault\",\"charcodes_1\",\"Loc\",\"constructor\",\"this\",\"i\",\"charCodeAt\",\"charCodes\",\"lineFeed\"],\"sources\":[\"0\"],\"mappings\":\"AAAgD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC7FD,IACAD,EAAQG,iBAOR,WACI,OAAOH,EAAQI,eACnB,EARAJ,EAAQK,aAUR,SAAsBC,GAClB,GAAI,QAASA,EAAO,CAChB,MAAMC,EAAMC,EAAiBF,EAAMG,KACnCH,EAAMI,SAAW,KAAKH,EAAII,QAAQJ,EAAIK,UACtCN,EAAMC,IAAMA,CAChB,CACA,OAAOD,CACX,EAhBAN,EAAQQ,iBAAmBA,EAC3BR,EAAQa,WAqCR,SAAoBC,EAAWC,EAAiBC,EAAwBC,GACpEjB,EAAQkB,MAAQJ,EAChBd,EAAQmB,MAAQ,IAAIC,EAAQC,QAC5BrB,EAAQI,cAAgB,EACxBJ,EAAQsB,aAAeP,EACvBf,EAAQuB,oBAAsBP,EAC9BhB,EAAQwB,cAAgBP,CAC5B,EA3CA,MACMG,EADUtB,EAAQ,SACA2B,gBAAgB3B,EAAQ,eAC1C4B,EAAc5B,EAAQ,cAa5B,MAAM6B,EACF,WAAAC,CAAYjB,EAAMC,GACdiB,KAAKlB,KAAOA,EACZkB,KAAKjB,OAASA,CAClB,EAGJ,SAASJ,EAAiBC,GACtB,IAAIE,EAAO,EACPC,EAAS,EACb,IAAK,IAAIkB,EAAI,EAAGA,EAAIrB,EAAKqB,IACjB9B,EAAQkB,MAAMa,WAAWD,KAAOJ,EAAYM,UAAUC,UACtDtB,IACAC,EAAS,GAGTA,IAGR,OAAO,IAAIe,EAAIhB,EAAMC,EACzB,CAdAZ,EAAQ2B,IAAMA,CAuBlB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/state.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/tokenizer/state.js","resolution":"ESM","id":"eda46439d5","hash":"eda46439d56823809dbf44bcf4647eb6b2519c937356f5c81279f73dbe59169e","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.StateSnapshot = exports.Scope = void 0;\nconst keywords_1 = require(\"./keywords\");\nconst types_1 = require(\"./types\");\nclass Scope {\n    constructor(startTokenIndex, endTokenIndex, isFunctionScope) {\n        this.startTokenIndex = startTokenIndex;\n        this.endTokenIndex = endTokenIndex;\n        this.isFunctionScope = isFunctionScope;\n    }\n}\nexports.Scope = Scope;\nclass StateSnapshot {\n    constructor(potentialArrowAt, noAnonFunctionType, inDisallowConditionalTypesContext, tokensLength, scopesLength, pos, type, contextualKeyword, start, end, isType, scopeDepth, error) { ; this.potentialArrowAt = potentialArrowAt; this.noAnonFunctionType = noAnonFunctionType; this.inDisallowConditionalTypesContext = inDisallowConditionalTypesContext; this.tokensLength = tokensLength; this.scopesLength = scopesLength; this.pos = pos; this.type = type; this.contextualKeyword = contextualKeyword; this.start = start; this.end = end; this.isType = isType; this.scopeDepth = scopeDepth; this.error = error; }\n}\nexports.StateSnapshot = StateSnapshot;\nclass State {\n    constructor() { State.prototype.__init.call(this); State.prototype.__init2.call(this); State.prototype.__init3.call(this); State.prototype.__init4.call(this); State.prototype.__init5.call(this); State.prototype.__init6.call(this); State.prototype.__init7.call(this); State.prototype.__init8.call(this); State.prototype.__init9.call(this); State.prototype.__init10.call(this); State.prototype.__init11.call(this); State.prototype.__init12.call(this); State.prototype.__init13.call(this); }\n    // Used to signify the start of a potential arrow function\n    __init() { this.potentialArrowAt = -1; }\n    // Used by Flow to handle an edge case involving function type parsing.\n    __init2() { this.noAnonFunctionType = false; }\n    // Used by TypeScript to handle ambiguities when parsing conditional types.\n    __init3() { this.inDisallowConditionalTypesContext = false; }\n    // Token store.\n    __init4() { this.tokens = []; }\n    // Array of all observed scopes, ordered by their ending position.\n    __init5() { this.scopes = []; }\n    // The current position of the tokenizer in the input.\n    __init6() { this.pos = 0; }\n    // Information about the current token.\n    __init7() { this.type = types_1.TokenType.eof; }\n    __init8() { this.contextualKeyword = keywords_1.ContextualKeyword.NONE; }\n    __init9() { this.start = 0; }\n    __init10() { this.end = 0; }\n    __init11() { this.isType = false; }\n    __init12() { this.scopeDepth = 0; }\n    /**\n     * If the parser is in an error state, then the token is always tt.eof and all functions can\n     * keep executing but should be written so they don't get into an infinite loop in this situation.\n     *\n     * This approach, combined with the ability to snapshot and restore state, allows us to implement\n     * backtracking without exceptions and without needing to explicitly propagate error states\n     * everywhere.\n     */\n    __init13() { this.error = null; }\n    snapshot() {\n        return new StateSnapshot(this.potentialArrowAt, this.noAnonFunctionType, this.inDisallowConditionalTypesContext, this.tokens.length, this.scopes.length, this.pos, this.type, this.contextualKeyword, this.start, this.end, this.isType, this.scopeDepth, this.error);\n    }\n    restoreFromSnapshot(snapshot) {\n        this.potentialArrowAt = snapshot.potentialArrowAt;\n        this.noAnonFunctionType = snapshot.noAnonFunctionType;\n        this.inDisallowConditionalTypesContext = snapshot.inDisallowConditionalTypesContext;\n        this.tokens.length = snapshot.tokensLength;\n        this.scopes.length = snapshot.scopesLength;\n        this.pos = snapshot.pos;\n        this.type = snapshot.type;\n        this.contextualKeyword = snapshot.contextualKeyword;\n        this.start = snapshot.start;\n        this.end = snapshot.end;\n        this.isType = snapshot.isType;\n        this.scopeDepth = snapshot.scopeDepth;\n        this.error = snapshot.error;\n    }\n}\nexports.default = State;\n","type":"js","dependency_paths":[["./keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"],["./types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"]],"dependency_map":[],"exported":[{"type":"named","name":"Scope"},{"type":"named","name":"StateSnapshot"},{"type":"named","name":"State"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/tokenizer/state.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const keywords_1 = require(\"99ff836c64\") /* ./keywords */;\n    const types_1 = require(\"f0c35cbd76\") /* ./types */;\n    class Scope {\n        constructor(startTokenIndex, endTokenIndex, isFunctionScope) {\n            this.startTokenIndex = startTokenIndex;\n            this.endTokenIndex = endTokenIndex;\n            this.isFunctionScope = isFunctionScope;\n        }\n    }\n    exports.Scope = Scope;\n    class StateSnapshot {\n        constructor(potentialArrowAt, noAnonFunctionType, inDisallowConditionalTypesContext, tokensLength, scopesLength, pos, type, contextualKeyword, start, end, isType, scopeDepth, error) { ; this.potentialArrowAt = potentialArrowAt; this.noAnonFunctionType = noAnonFunctionType; this.inDisallowConditionalTypesContext = inDisallowConditionalTypesContext; this.tokensLength = tokensLength; this.scopesLength = scopesLength; this.pos = pos; this.type = type; this.contextualKeyword = contextualKeyword; this.start = start; this.end = end; this.isType = isType; this.scopeDepth = scopeDepth; this.error = error; }\n    }\n    exports.StateSnapshot = StateSnapshot;\n    class State {\n        constructor() { State.prototype.__init.call(this); State.prototype.__init2.call(this); State.prototype.__init3.call(this); State.prototype.__init4.call(this); State.prototype.__init5.call(this); State.prototype.__init6.call(this); State.prototype.__init7.call(this); State.prototype.__init8.call(this); State.prototype.__init9.call(this); State.prototype.__init10.call(this); State.prototype.__init11.call(this); State.prototype.__init12.call(this); State.prototype.__init13.call(this); }\n        // Used to signify the start of a potential arrow function\n        __init() { this.potentialArrowAt = -1; }\n        // Used by Flow to handle an edge case involving function type parsing.\n        __init2() { this.noAnonFunctionType = false; }\n        // Used by TypeScript to handle ambiguities when parsing conditional types.\n        __init3() { this.inDisallowConditionalTypesContext = false; }\n        // Token store.\n        __init4() { this.tokens = []; }\n        // Array of all observed scopes, ordered by their ending position.\n        __init5() { this.scopes = []; }\n        // The current position of the tokenizer in the input.\n        __init6() { this.pos = 0; }\n        // Information about the current token.\n        __init7() { this.type = types_1.TokenType.eof; }\n        __init8() { this.contextualKeyword = keywords_1.ContextualKeyword.NONE; }\n        __init9() { this.start = 0; }\n        __init10() { this.end = 0; }\n        __init11() { this.isType = false; }\n        __init12() { this.scopeDepth = 0; }\n        /**\n         * If the parser is in an error state, then the token is always tt.eof and all functions can\n         * keep executing but should be written so they don't get into an infinite loop in this situation.\n         *\n         * This approach, combined with the ability to snapshot and restore state, allows us to implement\n         * backtracking without exceptions and without needing to explicitly propagate error states\n         * everywhere.\n         */\n        __init13() { this.error = null; }\n        snapshot() {\n            return new StateSnapshot(this.potentialArrowAt, this.noAnonFunctionType, this.inDisallowConditionalTypesContext, this.tokens.length, this.scopes.length, this.pos, this.type, this.contextualKeyword, this.start, this.end, this.isType, this.scopeDepth, this.error);\n        }\n        restoreFromSnapshot(snapshot) {\n            this.potentialArrowAt = snapshot.potentialArrowAt;\n            this.noAnonFunctionType = snapshot.noAnonFunctionType;\n            this.inDisallowConditionalTypesContext = snapshot.inDisallowConditionalTypesContext;\n            this.tokens.length = snapshot.tokensLength;\n            this.scopes.length = snapshot.scopesLength;\n            this.pos = snapshot.pos;\n            this.type = snapshot.type;\n            this.contextualKeyword = snapshot.contextualKeyword;\n            this.start = snapshot.start;\n            this.end = snapshot.end;\n            this.isType = snapshot.isType;\n            this.scopeDepth = snapshot.scopeDepth;\n            this.error = snapshot.error;\n        }\n    }\n    exports.default = State;\n}\n","min_source":"function _(t,i,s,o,n){o();const e=t(\"99ff836c64\"),h=t(\"f0c35cbd76\");s.Scope=class{constructor(t,i,s){this.startTokenIndex=t,this.endTokenIndex=i,this.isFunctionScope=s}};class p{constructor(t,i,s,o,n,e,h,p,l,r,_,c,a){this.potentialArrowAt=t,this.noAnonFunctionType=i,this.inDisallowConditionalTypesContext=s,this.tokensLength=o,this.scopesLength=n,this.pos=e,this.type=h,this.contextualKeyword=p,this.start=l,this.end=r,this.isType=_,this.scopeDepth=c,this.error=a}}s.StateSnapshot=p;class l{constructor(){l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),l.prototype.__init5.call(this),l.prototype.__init6.call(this),l.prototype.__init7.call(this),l.prototype.__init8.call(this),l.prototype.__init9.call(this),l.prototype.__init10.call(this),l.prototype.__init11.call(this),l.prototype.__init12.call(this),l.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=h.TokenType.eof}__init8(){this.contextualKeyword=e.ContextualKeyword.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new p(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(t){this.potentialArrowAt=t.potentialArrowAt,this.noAnonFunctionType=t.noAnonFunctionType,this.inDisallowConditionalTypesContext=t.inDisallowConditionalTypesContext,this.tokens.length=t.tokensLength,this.scopes.length=t.scopesLength,this.pos=t.pos,this.type=t.type,this.contextualKeyword=t.contextualKeyword,this.start=t.start,this.end=t.end,this.isType=t.isType,this.scopeDepth=t.scopeDepth,this.error=t.error}}s.default=l}\n//# sourceMappingURL=state.min.js.map","min_map":"{\"version\":3,\"file\":\"state.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"keywords_1\",\"types_1\",\"Scope\",\"constructor\",\"startTokenIndex\",\"endTokenIndex\",\"isFunctionScope\",\"this\",\"StateSnapshot\",\"potentialArrowAt\",\"noAnonFunctionType\",\"inDisallowConditionalTypesContext\",\"tokensLength\",\"scopesLength\",\"pos\",\"type\",\"contextualKeyword\",\"start\",\"end\",\"isType\",\"scopeDepth\",\"error\",\"State\",\"prototype\",\"__init\",\"call\",\"__init2\",\"__init3\",\"__init4\",\"__init5\",\"__init6\",\"__init7\",\"__init8\",\"__init9\",\"__init10\",\"__init11\",\"__init12\",\"__init13\",\"tokens\",\"scopes\",\"TokenType\",\"eof\",\"ContextualKeyword\",\"NONE\",\"snapshot\",\"length\",\"restoreFromSnapshot\",\"default\"],\"sources\":[\"0\"],\"mappings\":\"AAAiD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC9FD,IACA,MAAME,EAAaL,EAAQ,cACrBM,E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QkD,QAAUzB,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/tokenizer/keywords.js","resolution":"ESM","id":"99ff836c64","hash":"99ff836c64a5f5a2db44d6f168267046343b44ead7e4322652de20e232d802af","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ContextualKeyword = void 0;\n(function (ContextualKeyword) {\n    const NONE = 0;\n    ContextualKeyword[ContextualKeyword[\"NONE\"] = NONE] = \"NONE\";\n    const _abstract = NONE + 1;\n    ContextualKeyword[ContextualKeyword[\"_abstract\"] = _abstract] = \"_abstract\";\n    const _accessor = _abstract + 1;\n    ContextualKeyword[ContextualKeyword[\"_accessor\"] = _accessor] = \"_accessor\";\n    const _as = _accessor + 1;\n    ContextualKeyword[ContextualKeyword[\"_as\"] = _as] = \"_as\";\n    const _assert = _as + 1;\n    ContextualKeyword[ContextualKeyword[\"_assert\"] = _assert] = \"_assert\";\n    const _asserts = _assert + 1;\n    ContextualKeyword[ContextualKeyword[\"_asserts\"] = _asserts] = \"_asserts\";\n    const _async = _asserts + 1;\n    ContextualKeyword[ContextualKeyword[\"_async\"] = _async] = \"_async\";\n    const _await = _async + 1;\n    ContextualKeyword[ContextualKeyword[\"_await\"] = _await] = \"_await\";\n    const _checks = _await + 1;\n    ContextualKeyword[ContextualKeyword[\"_checks\"] = _checks] = \"_checks\";\n    const _constructor = _checks + 1;\n    ContextualKeyword[ContextualKeyword[\"_constructor\"] = _constructor] = \"_constructor\";\n    const _declare = _constructor + 1;\n    ContextualKeyword[ContextualKeyword[\"_declare\"] = _declare] = \"_declare\";\n    const _enum = _declare + 1;\n    ContextualKeyword[ContextualKeyword[\"_enum\"] = _enum] = \"_enum\";\n    const _exports = _enum + 1;\n    ContextualKeyword[ContextualKeyword[\"_exports\"] = _exports] = \"_exports\";\n    const _from = _exports + 1;\n    ContextualKeyword[ContextualKeyword[\"_from\"] = _from] = \"_from\";\n    const _get = _from + 1;\n    ContextualKeyword[ContextualKeyword[\"_get\"] = _get] = \"_get\";\n    const _global = _get + 1;\n    ContextualKeyword[ContextualKeyword[\"_global\"] = _global] = \"_global\";\n    const _implements = _global + 1;\n    ContextualKeyword[ContextualKeyword[\"_implements\"] = _implements] = \"_implements\";\n    const _infer = _implements + 1;\n    ContextualKeyword[ContextualKeyword[\"_infer\"] = _infer] = \"_infer\";\n    const _interface = _infer + 1;\n    ContextualKeyword[ContextualKeyword[\"_interface\"] = _interface] = \"_interface\";\n    const _is = _interface + 1;\n    ContextualKeyword[ContextualKeyword[\"_is\"] = _is] = \"_is\";\n    const _keyof = _is + 1;\n    ContextualKeyword[ContextualKeyword[\"_keyof\"] = _keyof] = \"_keyof\";\n    const _mixins = _keyof + 1;\n    ContextualKeyword[ContextualKeyword[\"_mixins\"] = _mixins] = \"_mixins\";\n    const _module = _mixins + 1;\n    ContextualKeyword[ContextualKeyword[\"_module\"] = _module] = \"_module\";\n    const _namespace = _module + 1;\n    ContextualKeyword[ContextualKeyword[\"_namespace\"] = _namespace] = \"_namespace\";\n    const _of = _namespace + 1;\n    ContextualKeyword[ContextualKeyword[\"_of\"] = _of] = \"_of\";\n    const _opaque = _of + 1;\n    ContextualKeyword[ContextualKeyword[\"_opaque\"] = _opaque] = \"_opaque\";\n    const _out = _opaque + 1;\n    ContextualKeyword[ContextualKeyword[\"_out\"] = _out] = \"_out\";\n    const _override = _out + 1;\n    ContextualKeyword[ContextualKeyword[\"_override\"] = _override] = \"_override\";\n    const _private = _override + 1;\n    ContextualKeyword[ContextualKeyword[\"_private\"] = _private] = \"_private\";\n    const _protected = _private + 1;\n    ContextualKeyword[ContextualKeyword[\"_protected\"] = _protected] = \"_protected\";\n    const _proto = _protected + 1;\n    ContextualKeyword[ContextualKeyword[\"_proto\"] = _proto] = \"_proto\";\n    const _public = _proto + 1;\n    ContextualKeyword[ContextualKeyword[\"_public\"] = _public] = \"_public\";\n    const _readonly = _public + 1;\n    ContextualKeyword[ContextualKeyword[\"_readonly\"] = _readonly] = \"_readonly\";\n    const _require = _readonly + 1;\n    ContextualKeyword[ContextualKeyword[\"_require\"] = _require] = \"_require\";\n    const _satisfies = _require + 1;\n    ContextualKeyword[ContextualKeyword[\"_satisfies\"] = _satisfies] = \"_satisfies\";\n    const _set = _satisfies + 1;\n    ContextualKeyword[ContextualKeyword[\"_set\"] = _set] = \"_set\";\n    const _static = _set + 1;\n    ContextualKeyword[ContextualKeyword[\"_static\"] = _static] = \"_static\";\n    const _symbol = _static + 1;\n    ContextualKeyword[ContextualKeyword[\"_symbol\"] = _symbol] = \"_symbol\";\n    const _type = _symbol + 1;\n    ContextualKeyword[ContextualKeyword[\"_type\"] = _type] = \"_type\";\n    const _unique = _type + 1;\n    ContextualKeyword[ContextualKeyword[\"_unique\"] = _unique] = \"_unique\";\n    const _using = _unique + 1;\n    ContextualKeyword[ContextualKeyword[\"_using\"] = _using] = \"_using\";\n})(exports.ContextualKeyword || (exports.ContextualKeyword = {}));\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/tokenizer/keywords.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    (function (ContextualKeyword) {\n        const NONE = 0;\n        ContextualKeyword[ContextualKeyword[\"NONE\"] = NONE] = \"NONE\";\n        const _abstract = NONE + 1;\n        ContextualKeyword[ContextualKeyword[\"_abstract\"] = _abstract] = \"_abstract\";\n        const _accessor = _abstract + 1;\n        ContextualKeyword[ContextualKeyword[\"_accessor\"] = _accessor] = \"_accessor\";\n        const _as = _accessor + 1;\n        ContextualKeyword[ContextualKeyword[\"_as\"] = _as] = \"_as\";\n        const _assert = _as + 1;\n        ContextualKeyword[ContextualKeyword[\"_assert\"] = _assert] = \"_assert\";\n        const _asserts = _assert + 1;\n        ContextualKeyword[ContextualKeyword[\"_asserts\"] = _asserts] = \"_asserts\";\n        const _async = _asserts + 1;\n        ContextualKeyword[ContextualKeyword[\"_async\"] = _async] = \"_async\";\n        const _await = _async + 1;\n        ContextualKeyword[ContextualKeyword[\"_await\"] = _await] = \"_await\";\n        const _checks = _await + 1;\n        ContextualKeyword[ContextualKeyword[\"_checks\"] = _checks] = \"_checks\";\n        const _constructor = _checks + 1;\n        ContextualKeyword[ContextualKeyword[\"_constructor\"] = _constructor] = \"_constructor\";\n        const _declare = _constructor + 1;\n        ContextualKeyword[ContextualKeyword[\"_declare\"] = _declare] = \"_declare\";\n        const _enum = _declare + 1;\n        ContextualKeyword[ContextualKeyword[\"_enum\"] = _enum] = \"_enum\";\n        const _exports = _enum + 1;\n        ContextualKeyword[ContextualKeyword[\"_exports\"] = _exports] = \"_exports\";\n        const _from = _exports + 1;\n        ContextualKeyword[ContextualKeyword[\"_from\"] = _from] = \"_from\";\n        const _get = _from + 1;\n        ContextualKeyword[ContextualKeyword[\"_get\"] = _get] = \"_get\";\n        const _global = _get + 1;\n        ContextualKeyword[ContextualKeyword[\"_global\"] = _global] = \"_global\";\n        const _implements = _global + 1;\n        ContextualKeyword[ContextualKeyword[\"_implements\"] = _implements] = \"_implements\";\n        const _infer = _implements + 1;\n        ContextualKeyword[ContextualKeyword[\"_infer\"] = _infer] = \"_infer\";\n        const _interface = _infer + 1;\n        ContextualKeyword[ContextualKeyword[\"_interface\"] = _interface] = \"_interface\";\n        const _is = _interface + 1;\n        ContextualKeyword[ContextualKeyword[\"_is\"] = _is] = \"_is\";\n        const _keyof = _is + 1;\n        ContextualKeyword[ContextualKeyword[\"_keyof\"] = _keyof] = \"_keyof\";\n        const _mixins = _keyof + 1;\n        ContextualKeyword[ContextualKeyword[\"_mixins\"] = _mixins] = \"_mixins\";\n        const _module = _mixins + 1;\n        ContextualKeyword[ContextualKeyword[\"_module\"] = _module] = \"_module\";\n        const _namespace = _module + 1;\n        ContextualKeyword[ContextualKeyword[\"_namespace\"] = _namespace] = \"_namespace\";\n        const _of = _namespace + 1;\n        ContextualKeyword[ContextualKeyword[\"_of\"] = _of] = \"_of\";\n        const _opaque = _of + 1;\n        ContextualKeyword[ContextualKeyword[\"_opaque\"] = _opaque] = \"_opaque\";\n        const _out = _opaque + 1;\n        ContextualKeyword[ContextualKeyword[\"_out\"] = _out] = \"_out\";\n        const _override = _out + 1;\n        ContextualKeyword[ContextualKeyword[\"_override\"] = _override] = \"_override\";\n        const _private = _override + 1;\n        ContextualKeyword[ContextualKeyword[\"_private\"] = _private] = \"_private\";\n        const _protected = _private + 1;\n        ContextualKeyword[ContextualKeyword[\"_protected\"] = _protected] = \"_protected\";\n        const _proto = _protected + 1;\n        ContextualKeyword[ContextualKeyword[\"_proto\"] = _proto] = \"_proto\";\n        const _public = _proto + 1;\n        ContextualKeyword[ContextualKeyword[\"_public\"] = _public] = \"_public\";\n        const _readonly = _public + 1;\n        ContextualKeyword[ContextualKeyword[\"_readonly\"] = _readonly] = \"_readonly\";\n        const _require = _readonly + 1;\n        ContextualKeyword[ContextualKeyword[\"_require\"] = _require] = \"_require\";\n        const _satisfies = _require + 1;\n        ContextualKeyword[ContextualKeyword[\"_satisfies\"] = _satisfies] = \"_satisfies\";\n        const _set = _satisfies + 1;\n        ContextualKeyword[ContextualKeyword[\"_set\"] = _set] = \"_set\";\n        const _static = _set + 1;\n        ContextualKeyword[ContextualKeyword[\"_static\"] = _static] = \"_static\";\n        const _symbol = _static + 1;\n        ContextualKeyword[ContextualKeyword[\"_symbol\"] = _symbol] = \"_symbol\";\n        const _type = _symbol + 1;\n        ContextualKeyword[ContextualKeyword[\"_type\"] = _type] = \"_type\";\n        const _unique = _type + 1;\n        ContextualKeyword[ContextualKeyword[\"_unique\"] = _unique] = \"_unique\";\n        const _using = _unique + 1;\n        ContextualKeyword[ContextualKeyword[\"_using\"] = _using] = \"_using\";\n    })(exports.ContextualKeyword || (exports.ContextualKeyword = {}));\n}\n","min_source":"function _(_,e,s,t,a){t(),function(_){_[_.NONE=0]=\"NONE\";_[_._abstract=1]=\"_abstract\";_[_._accessor=2]=\"_accessor\";_[_._as=3]=\"_as\";_[_._assert=4]=\"_assert\";_[_._asserts=5]=\"_asserts\";_[_._async=6]=\"_async\";_[_._await=7]=\"_await\";_[_._checks=8]=\"_checks\";_[_._constructor=9]=\"_constructor\";_[_._declare=10]=\"_declare\";_[_._enum=11]=\"_enum\";_[_._exports=12]=\"_exports\";_[_._from=13]=\"_from\";_[_._get=14]=\"_get\";_[_._global=15]=\"_global\";_[_._implements=16]=\"_implements\";_[_._infer=17]=\"_infer\";_[_._interface=18]=\"_interface\";_[_._is=19]=\"_is\";_[_._keyof=20]=\"_keyof\";_[_._mixins=21]=\"_mixins\";_[_._module=22]=\"_module\";_[_._namespace=23]=\"_namespace\";_[_._of=24]=\"_of\";_[_._opaque=25]=\"_opaque\";_[_._out=26]=\"_out\";_[_._override=27]=\"_override\";_[_._private=28]=\"_private\";_[_._protected=29]=\"_protected\";_[_._proto=30]=\"_proto\";_[_._public=31]=\"_public\";_[_._readonly=32]=\"_readonly\";_[_._require=33]=\"_require\";_[_._satisfies=34]=\"_satisfies\";_[_._set=35]=\"_set\";_[_._static=36]=\"_static\";_[_._symbol=37]=\"_symbol\";_[_._type=38]=\"_type\";_[_._unique=39]=\"_unique\";_[_._using=40]=\"_using\"}(s.ContextualKeyword||(s.ContextualKeyword={}))}\n//# sourceMappingURL=keywords.min.js.map","min_map":"{\"version\":3,\"file\":\"keywords.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"ContextualKeyword\",\"NONE\",\"_abstract\",\"_accessor\",\"_as\",\"_assert\",\"_asserts\",\"_async\",\"_await\",\"_checks\",\"_constructor\",\"_declare\",\"_enum\",\"_exports\",\"_from\",\"_get\",\"_global\",\"_implements\",\"_infer\",\"_interface\",\"_is\",\"_keyof\",\"_mixins\",\"_module\",\"_namespace\",\"_of\",\"_opaque\",\"_out\",\"_override\",\"_private\",\"_protected\",\"_proto\",\"_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KAD7B0B,IACyC,OAEtD1B,EAAkBA,EAA6B,UAD7B2B,IAC8C,YAEhE3B,EAAkBA,EAA4B,SAD7B4B,IAC6C,WAE9D5B,EAAkBA,EAA8B,WAD7B6B,IAC+C,aAElE7B,EAAkBA,EAA0B,OAD7B8B,IAC2C,SAE1D9B,EAAkBA,EAA2B,QAD7B+B,IAC4C,UAE5D/B,EAAkBA,EAA6B,UAD7BgC,IAC8C,YAEhEhC,EAAkBA,EAA4B,SAD7BiC,IAC6C,WAE9DjC,EAAkBA,EAA8B,WAD7BkC,IAC+C,aAElElC,EAAkBA,EAAwB,KAD7BmC,IACyC,OAEtDnC,EAAkBA,EAA2B,QAD7BoC,IAC4C,UAE5DpC,EAAkBA,EAA2B,QAD7BqC,IAC4C,UAE5DrC,EAAkBA,EAAyB,MAD7BsC,IAC0C,QAExDtC,EAAkBA,EAA2B,QAD7BuC,IAC4C,UAE5DvC,EAAkBA,EAA0B,OAD7BwC,IAC2C,QAC7D,CAnFD,CAmFG3C,EAAQG,oBAAsBH,EAAQG,kBAAoB,CAAC,GAClE\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/tokenizer/types.js","resolution":"ESM","id":"f0c35cbd76","hash":"f0c35cbd76f36bafe60993da68c4566bfc10440c1c517a3baf6bebb2cabdbc1d","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TokenType = void 0;\nexports.formatTokenType = formatTokenType;\n(function (TokenType) {\n    // Precedence 0 means not an operator; otherwise it is a positive number up to 12.\n    const PRECEDENCE_MASK = 0xf;\n    TokenType[TokenType[\"PRECEDENCE_MASK\"] = PRECEDENCE_MASK] = \"PRECEDENCE_MASK\";\n    const IS_KEYWORD = 1 << 4;\n    TokenType[TokenType[\"IS_KEYWORD\"] = IS_KEYWORD] = \"IS_KEYWORD\";\n    const IS_ASSIGN = 1 << 5;\n    TokenType[TokenType[\"IS_ASSIGN\"] = IS_ASSIGN] = \"IS_ASSIGN\";\n    const IS_RIGHT_ASSOCIATIVE = 1 << 6;\n    TokenType[TokenType[\"IS_RIGHT_ASSOCIATIVE\"] = IS_RIGHT_ASSOCIATIVE] = \"IS_RIGHT_ASSOCIATIVE\";\n    const IS_PREFIX = 1 << 7;\n    TokenType[TokenType[\"IS_PREFIX\"] = IS_PREFIX] = \"IS_PREFIX\";\n    const IS_POSTFIX = 1 << 8;\n    TokenType[TokenType[\"IS_POSTFIX\"] = IS_POSTFIX] = \"IS_POSTFIX\";\n    const IS_EXPRESSION_START = 1 << 9;\n    TokenType[TokenType[\"IS_EXPRESSION_START\"] = IS_EXPRESSION_START] = \"IS_EXPRESSION_START\";\n    const num = 512;\n    TokenType[TokenType[\"num\"] = num] = \"num\"; // num startsExpr\n    const bigint = 1536;\n    TokenType[TokenType[\"bigint\"] = bigint] = \"bigint\"; // bigint startsExpr\n    const decimal = 2560;\n    TokenType[TokenType[\"decimal\"] = decimal] = \"decimal\"; // decimal startsExpr\n    const regexp = 3584;\n    TokenType[TokenType[\"regexp\"] = regexp] = \"regexp\"; // regexp startsExpr\n    const string = 4608;\n    TokenType[TokenType[\"string\"] = string] = \"string\"; // string startsExpr\n    const name = 5632;\n    TokenType[TokenType[\"name\"] = name] = \"name\"; // name startsExpr\n    const eof = 6144;\n    TokenType[TokenType[\"eof\"] = eof] = \"eof\"; // eof\n    const bracketL = 7680;\n    TokenType[TokenType[\"bracketL\"] = bracketL] = \"bracketL\"; // [ startsExpr\n    const bracketR = 8192;\n    TokenType[TokenType[\"bracketR\"] = bracketR] = \"bracketR\"; // ]\n    const braceL = 9728;\n    TokenType[TokenType[\"braceL\"] = braceL] = \"braceL\"; // { startsExpr\n    const braceBarL = 10752;\n    TokenType[TokenType[\"braceBarL\"] = braceBarL] = \"braceBarL\"; // {| startsExpr\n    const braceR = 11264;\n    TokenType[TokenType[\"braceR\"] = braceR] = \"braceR\"; // }\n    const braceBarR = 12288;\n    TokenType[TokenType[\"braceBarR\"] = braceBarR] = \"braceBarR\"; // |}\n    const parenL = 13824;\n    TokenType[TokenType[\"parenL\"] = parenL] = \"parenL\"; // ( startsExpr\n    const parenR = 14336;\n    TokenType[TokenType[\"parenR\"] = parenR] = \"parenR\"; // )\n    const comma = 15360;\n    TokenType[TokenType[\"comma\"] = comma] = \"comma\"; // ,\n    const semi = 16384;\n    TokenType[TokenType[\"semi\"] = semi] = \"semi\"; // ;\n    const colon = 17408;\n    TokenType[TokenType[\"colon\"] = colon] = \"colon\"; // :\n    const doubleColon = 18432;\n    TokenType[TokenType[\"doubleColon\"] = doubleColon] = \"doubleColon\"; // ::\n    const dot = 19456;\n    TokenType[TokenType[\"dot\"] = dot] = \"dot\"; // .\n    const question = 20480;\n    TokenType[TokenType[\"question\"] = question] = \"question\"; // ?\n    const questionDot = 21504;\n    TokenType[TokenType[\"questionDot\"] = questionDot] = \"questionDot\"; // ?.\n    const arrow = 22528;\n    TokenType[TokenType[\"arrow\"] = arrow] = \"arrow\"; // =>\n    const template = 23552;\n    TokenType[TokenType[\"template\"] = template] = \"template\"; // template\n    const ellipsis = 24576;\n    TokenType[TokenType[\"ellipsis\"] = ellipsis] = \"ellipsis\"; // ...\n    const backQuote = 25600;\n    TokenType[TokenType[\"backQuote\"] = backQuote] = \"backQuote\"; // `\n    const dollarBraceL = 27136;\n    TokenType[TokenType[\"dollarBraceL\"] = dollarBraceL] = \"dollarBraceL\"; // ${ startsExpr\n    const at = 27648;\n    TokenType[TokenType[\"at\"] = at] = \"at\"; // @\n    const hash = 29184;\n    TokenType[TokenType[\"hash\"] = hash] = \"hash\"; // # startsExpr\n    const eq = 29728;\n    TokenType[TokenType[\"eq\"] = eq] = \"eq\"; // = isAssign\n    const assign = 30752;\n    TokenType[TokenType[\"assign\"] = assign] = \"assign\"; // _= isAssign\n    const preIncDec = 32640;\n    TokenType[TokenType[\"preIncDec\"] = preIncDec] = \"preIncDec\"; // ++/-- prefix postfix startsExpr\n    const postIncDec = 33664;\n    TokenType[TokenType[\"postIncDec\"] = postIncDec] = \"postIncDec\"; // ++/-- prefix postfix startsExpr\n    const bang = 34432;\n    TokenType[TokenType[\"bang\"] = bang] = \"bang\"; // ! prefix startsExpr\n    const tilde = 35456;\n    TokenType[TokenType[\"tilde\"] = tilde] = \"tilde\"; // ~ prefix startsExpr\n    const pipeline = 35841;\n    TokenType[TokenType[\"pipeline\"] = pipeline] = \"pipeline\"; // |> prec:1\n    const nullishCoalescing = 36866;\n    TokenType[TokenType[\"nullishCoalescing\"] = nullishCoalescing] = \"nullishCoalescing\"; // ?? prec:2\n    const logicalOR = 37890;\n    TokenType[TokenType[\"logicalOR\"] = logicalOR] = \"logicalOR\"; // || prec:2\n    const logicalAND = 38915;\n    TokenType[TokenType[\"logicalAND\"] = logicalAND] = \"logicalAND\"; // && prec:3\n    const bitwiseOR = 39940;\n    TokenType[TokenType[\"bitwiseOR\"] = bitwiseOR] = \"bitwiseOR\"; // | prec:4\n    const bitwiseXOR = 40965;\n    TokenType[TokenType[\"bitwiseXOR\"] = bitwiseXOR] = \"bitwiseXOR\"; // ^ prec:5\n    const bitwiseAND = 41990;\n    TokenType[TokenType[\"bitwiseAND\"] = bitwiseAND] = \"bitwiseAND\"; // & prec:6\n    const equality = 43015;\n    TokenType[TokenType[\"equality\"] = equality] = \"equality\"; // ==/!= prec:7\n    const lessThan = 44040;\n    TokenType[TokenType[\"lessThan\"] = lessThan] = \"lessThan\"; // < prec:8\n    const greaterThan = 45064;\n    TokenType[TokenType[\"greaterThan\"] = greaterThan] = \"greaterThan\"; // > prec:8\n    const relationalOrEqual = 46088;\n    TokenType[TokenType[\"relationalOrEqual\"] = relationalOrEqual] = \"relationalOrEqual\"; // <=/>= prec:8\n    const bitShiftL = 47113;\n    TokenType[TokenType[\"bitShiftL\"] = bitShiftL] = \"bitShiftL\"; // << prec:9\n    const bitShiftR = 48137;\n    TokenType[TokenType[\"bitShiftR\"] = bitShiftR] = \"bitShiftR\"; // >>/>>> prec:9\n    const plus = 49802;\n    TokenType[TokenType[\"plus\"] = plus] = \"plus\"; // + prec:10 prefix startsExpr\n    const minus = 50826;\n    TokenType[TokenType[\"minus\"] = minus] = \"minus\"; // - prec:10 prefix startsExpr\n    const modulo = 51723;\n    TokenType[TokenType[\"modulo\"] = modulo] = \"modulo\"; // % prec:11 startsExpr\n    const star = 52235;\n    TokenType[TokenType[\"star\"] = star] = \"star\"; // * prec:11\n    const slash = 53259;\n    TokenType[TokenType[\"slash\"] = slash] = \"slash\"; // / prec:11\n    const exponent = 54348;\n    TokenType[TokenType[\"exponent\"] = exponent] = \"exponent\"; // ** prec:12 rightAssociative\n    const jsxName = 55296;\n    TokenType[TokenType[\"jsxName\"] = jsxName] = \"jsxName\"; // jsxName\n    const jsxText = 56320;\n    TokenType[TokenType[\"jsxText\"] = jsxText] = \"jsxText\"; // jsxText\n    const jsxEmptyText = 57344;\n    TokenType[TokenType[\"jsxEmptyText\"] = jsxEmptyText] = \"jsxEmptyText\"; // jsxEmptyText\n    const jsxTagStart = 58880;\n    TokenType[TokenType[\"jsxTagStart\"] = jsxTagStart] = \"jsxTagStart\"; // jsxTagStart startsExpr\n    const jsxTagEnd = 59392;\n    TokenType[TokenType[\"jsxTagEnd\"] = jsxTagEnd] = \"jsxTagEnd\"; // jsxTagEnd\n    const typeParameterStart = 60928;\n    TokenType[TokenType[\"typeParameterStart\"] = typeParameterStart] = \"typeParameterStart\"; // typeParameterStart startsExpr\n    const nonNullAssertion = 61440;\n    TokenType[TokenType[\"nonNullAssertion\"] = nonNullAssertion] = \"nonNullAssertion\"; // nonNullAssertion\n    const _break = 62480;\n    TokenType[TokenType[\"_break\"] = _break] = \"_break\"; // break keyword\n    const _case = 63504;\n    TokenType[TokenType[\"_case\"] = _case] = \"_case\"; // case keyword\n    const _catch = 64528;\n    TokenType[TokenType[\"_catch\"] = _catch] = \"_catch\"; // catch keyword\n    const _continue = 65552;\n    TokenType[TokenType[\"_continue\"] = _continue] = \"_continue\"; // continue keyword\n    const _debugger = 66576;\n    TokenType[TokenType[\"_debugger\"] = _debugger] = \"_debugger\"; // debugger keyword\n    const _default = 67600;\n    TokenType[TokenType[\"_default\"] = _default] = \"_default\"; // default keyword\n    const _do = 68624;\n    TokenType[TokenType[\"_do\"] = _do] = \"_do\"; // do keyword\n    const _else = 69648;\n    TokenType[TokenType[\"_else\"] = _else] = \"_else\"; // else keyword\n    const _finally = 70672;\n    TokenType[TokenType[\"_finally\"] = _finally] = \"_finally\"; // finally keyword\n    const _for = 71696;\n    TokenType[TokenType[\"_for\"] = _for] = \"_for\"; // for keyword\n    const _function = 73232;\n    TokenType[TokenType[\"_function\"] = _function] = \"_function\"; // function keyword startsExpr\n    const _if = 73744;\n    TokenType[TokenType[\"_if\"] = _if] = \"_if\"; // if keyword\n    const _return = 74768;\n    TokenType[TokenType[\"_return\"] = _return] = \"_return\"; // return keyword\n    const _switch = 75792;\n    TokenType[TokenType[\"_switch\"] = _switch] = \"_switch\"; // switch keyword\n    const _throw = 77456;\n    TokenType[TokenType[\"_throw\"] = _throw] = \"_throw\"; // throw keyword prefix startsExpr\n    const _try = 77840;\n    TokenType[TokenType[\"_try\"] = _try] = \"_try\"; // try keyword\n    const _var = 78864;\n    TokenType[TokenType[\"_var\"] = _var] = \"_var\"; // var keyword\n    const _let = 79888;\n    TokenType[TokenType[\"_let\"] = _let] = \"_let\"; // let keyword\n    const _const = 80912;\n    TokenType[TokenType[\"_const\"] = _const] = \"_const\"; // const keyword\n    const _while = 81936;\n    TokenType[TokenType[\"_while\"] = _while] = \"_while\"; // while keyword\n    const _with = 82960;\n    TokenType[TokenType[\"_with\"] = _with] = \"_with\"; // with keyword\n    const _new = 84496;\n    TokenType[TokenType[\"_new\"] = _new] = \"_new\"; // new keyword startsExpr\n    const _this = 85520;\n    TokenType[TokenType[\"_this\"] = _this] = \"_this\"; // this keyword startsExpr\n    const _super = 86544;\n    TokenType[TokenType[\"_super\"] = _super] = \"_super\"; // super keyword startsExpr\n    const _class = 87568;\n    TokenType[TokenType[\"_class\"] = _class] = \"_class\"; // class keyword startsExpr\n    const _extends = 88080;\n    TokenType[TokenType[\"_extends\"] = _extends] = \"_extends\"; // extends keyword\n    const _export = 89104;\n    TokenType[TokenType[\"_export\"] = _export] = \"_export\"; // export keyword\n    const _import = 90640;\n    TokenType[TokenType[\"_import\"] = _import] = \"_import\"; // import keyword startsExpr\n    const _yield = 91664;\n    TokenType[TokenType[\"_yield\"] = _yield] = \"_yield\"; // yield keyword startsExpr\n    const _null = 92688;\n    TokenType[TokenType[\"_null\"] = _null] = \"_null\"; // null keyword startsExpr\n    const _true = 93712;\n    TokenType[TokenType[\"_true\"] = _true] = \"_true\"; // true keyword startsExpr\n    const _false = 94736;\n    TokenType[TokenType[\"_false\"] = _false] = \"_false\"; // false keyword startsExpr\n    const _in = 95256;\n    TokenType[TokenType[\"_in\"] = _in] = \"_in\"; // in prec:8 keyword\n    const _instanceof = 96280;\n    TokenType[TokenType[\"_instanceof\"] = _instanceof] = \"_instanceof\"; // instanceof prec:8 keyword\n    const _typeof = 97936;\n    TokenType[TokenType[\"_typeof\"] = _typeof] = \"_typeof\"; // typeof keyword prefix startsExpr\n    const _void = 98960;\n    TokenType[TokenType[\"_void\"] = _void] = \"_void\"; // void keyword prefix startsExpr\n    const _delete = 99984;\n    TokenType[TokenType[\"_delete\"] = _delete] = \"_delete\"; // delete keyword prefix startsExpr\n    const _async = 100880;\n    TokenType[TokenType[\"_async\"] = _async] = \"_async\"; // async keyword startsExpr\n    const _get = 101904;\n    TokenType[TokenType[\"_get\"] = _get] = \"_get\"; // get keyword startsExpr\n    const _set = 102928;\n    TokenType[TokenType[\"_set\"] = _set] = \"_set\"; // set keyword startsExpr\n    const _declare = 103952;\n    TokenType[TokenType[\"_declare\"] = _declare] = \"_declare\"; // declare keyword startsExpr\n    const _readonly = 104976;\n    TokenType[TokenType[\"_readonly\"] = _readonly] = \"_readonly\"; // readonly keyword startsExpr\n    const _abstract = 106000;\n    TokenType[TokenType[\"_abstract\"] = _abstract] = \"_abstract\"; // abstract keyword startsExpr\n    const _static = 107024;\n    TokenType[TokenType[\"_static\"] = _static] = \"_static\"; // static keyword startsExpr\n    const _public = 107536;\n    TokenType[TokenType[\"_public\"] = _public] = \"_public\"; // public keyword\n    const _private = 108560;\n    TokenType[TokenType[\"_private\"] = _private] = \"_private\"; // private keyword\n    const _protected = 109584;\n    TokenType[TokenType[\"_protected\"] = _protected] = \"_protected\"; // protected keyword\n    const _override = 110608;\n    TokenType[TokenType[\"_override\"] = _override] = \"_override\"; // override keyword\n    const _as = 112144;\n    TokenType[TokenType[\"_as\"] = _as] = \"_as\"; // as keyword startsExpr\n    const _enum = 113168;\n    TokenType[TokenType[\"_enum\"] = _enum] = \"_enum\"; // enum keyword startsExpr\n    const _type = 114192;\n    TokenType[TokenType[\"_type\"] = _type] = \"_type\"; // type keyword startsExpr\n    const _implements = 115216;\n    TokenType[TokenType[\"_implements\"] = _implements] = \"_implements\"; // implements keyword startsExpr\n})(exports.TokenType || (exports.TokenType = {}));\nfunction formatTokenType(tokenType) {\n    switch (tokenType) {\n        case exports.TokenType.num:\n            return \"num\";\n        case exports.TokenType.bigint:\n            return \"bigint\";\n        case exports.TokenType.decimal:\n            return \"decimal\";\n        case exports.TokenType.regexp:\n            return \"regexp\";\n        case exports.TokenType.string:\n            return \"string\";\n        case exports.TokenType.name:\n            return \"name\";\n        case exports.TokenType.eof:\n            return \"eof\";\n        case exports.TokenType.bracketL:\n            return \"[\";\n        case exports.TokenType.bracketR:\n            return \"]\";\n        case exports.TokenType.braceL:\n            return \"{\";\n        case exports.TokenType.braceBarL:\n            return \"{|\";\n        case exports.TokenType.braceR:\n            return \"}\";\n        case exports.TokenType.braceBarR:\n            return \"|}\";\n        case exports.TokenType.parenL:\n            return \"(\";\n        case exports.TokenType.parenR:\n            return \")\";\n        case exports.TokenType.comma:\n            return \",\";\n        case exports.TokenType.semi:\n            return \";\";\n        case exports.TokenType.colon:\n            return \":\";\n        case exports.TokenType.doubleColon:\n            return \"::\";\n        case exports.TokenType.dot:\n            return \".\";\n        case exports.TokenType.question:\n            return \"?\";\n        case exports.TokenType.questionDot:\n            return \"?.\";\n        case exports.TokenType.arrow:\n            return \"=>\";\n        case exports.TokenType.template:\n            return \"template\";\n        case exports.TokenType.ellipsis:\n            return \"...\";\n        case exports.TokenType.backQuote:\n            return \"`\";\n        case exports.TokenType.dollarBraceL:\n            return \"${\";\n        case exports.TokenType.at:\n            return \"@\";\n        case exports.TokenType.hash:\n            return \"#\";\n        case exports.TokenType.eq:\n            return \"=\";\n        case exports.TokenType.assign:\n            return \"_=\";\n        case exports.TokenType.preIncDec:\n            return \"++/--\";\n        case exports.TokenType.postIncDec:\n            return \"++/--\";\n        case exports.TokenType.bang:\n            return \"!\";\n        case exports.TokenType.tilde:\n            return \"~\";\n        case exports.TokenType.pipeline:\n            return \"|>\";\n        case exports.TokenType.nullishCoalescing:\n            return \"??\";\n        case exports.TokenType.logicalOR:\n            return \"||\";\n        case exports.TokenType.logicalAND:\n            return \"&&\";\n        case exports.TokenType.bitwiseOR:\n            return \"|\";\n        case exports.TokenType.bitwiseXOR:\n            return \"^\";\n        case exports.TokenType.bitwiseAND:\n            return \"&\";\n        case exports.TokenType.equality:\n            return \"==/!=\";\n        case exports.TokenType.lessThan:\n            return \"<\";\n        case exports.TokenType.greaterThan:\n            return \">\";\n        case exports.TokenType.relationalOrEqual:\n            return \"<=/>=\";\n        case exports.TokenType.bitShiftL:\n            return \"<<\";\n        case exports.TokenType.bitShiftR:\n            return \">>/>>>\";\n        case exports.TokenType.plus:\n            return \"+\";\n        case exports.TokenType.minus:\n            return \"-\";\n        case exports.TokenType.modulo:\n            return \"%\";\n        case exports.TokenType.star:\n            return \"*\";\n        case exports.TokenType.slash:\n            return \"/\";\n        case exports.TokenType.exponent:\n            return \"**\";\n        case exports.TokenType.jsxName:\n            return \"jsxName\";\n        case exports.TokenType.jsxText:\n            return \"jsxText\";\n        case exports.TokenType.jsxEmptyText:\n            return \"jsxEmptyText\";\n        case exports.TokenType.jsxTagStart:\n            return \"jsxTagStart\";\n        case exports.TokenType.jsxTagEnd:\n            return \"jsxTagEnd\";\n        case exports.TokenType.typeParameterStart:\n            return \"typeParameterStart\";\n        case exports.TokenType.nonNullAssertion:\n            return \"nonNullAssertion\";\n        case exports.TokenType._break:\n            return \"break\";\n        case exports.TokenType._case:\n            return \"case\";\n        case exports.TokenType._catch:\n            return \"catch\";\n        case exports.TokenType._continue:\n            return \"continue\";\n        case exports.TokenType._debugger:\n            return \"debugger\";\n        case exports.TokenType._default:\n            return \"default\";\n        case exports.TokenType._do:\n            return \"do\";\n        case exports.TokenType._else:\n            return \"else\";\n        case exports.TokenType._finally:\n            return \"finally\";\n        case exports.TokenType._for:\n            return \"for\";\n        case exports.TokenType._function:\n            return \"function\";\n        case exports.TokenType._if:\n            return \"if\";\n        case exports.TokenType._return:\n            return \"return\";\n        case exports.TokenType._switch:\n            return \"switch\";\n        case exports.TokenType._throw:\n            return \"throw\";\n        case exports.TokenType._try:\n            return \"try\";\n        case exports.TokenType._var:\n            return \"var\";\n        case exports.TokenType._let:\n            return \"let\";\n        case exports.TokenType._const:\n            return \"const\";\n        case exports.TokenType._while:\n            return \"while\";\n        case exports.TokenType._with:\n            return \"with\";\n        case exports.TokenType._new:\n            return \"new\";\n        case exports.TokenType._this:\n            return \"this\";\n        case exports.TokenType._super:\n            return \"super\";\n        case exports.TokenType._class:\n            return \"class\";\n        case exports.TokenType._extends:\n            return \"extends\";\n        case exports.TokenType._export:\n            return \"export\";\n        case exports.TokenType._import:\n            return \"import\";\n        case exports.TokenType._yield:\n            return \"yield\";\n        case exports.TokenType._null:\n            return \"null\";\n        case exports.TokenType._true:\n            return \"true\";\n        case exports.TokenType._false:\n            return \"false\";\n        case exports.TokenType._in:\n            return \"in\";\n        case exports.TokenType._instanceof:\n            return \"instanceof\";\n        case exports.TokenType._typeof:\n            return \"typeof\";\n        case exports.TokenType._void:\n            return \"void\";\n        case exports.TokenType._delete:\n            return \"delete\";\n        case exports.TokenType._async:\n            return \"async\";\n        case exports.TokenType._get:\n            return \"get\";\n        case exports.TokenType._set:\n            return \"set\";\n        case exports.TokenType._declare:\n            return \"declare\";\n        case exports.TokenType._readonly:\n            return \"readonly\";\n        case exports.TokenType._abstract:\n            return \"abstract\";\n        case exports.TokenType._static:\n            return \"static\";\n        case exports.TokenType._public:\n            return \"public\";\n        case exports.TokenType._private:\n            return \"private\";\n        case exports.TokenType._protected:\n            return \"protected\";\n        case exports.TokenType._override:\n            return \"override\";\n        case exports.TokenType._as:\n            return \"as\";\n        case exports.TokenType._enum:\n            return \"enum\";\n        case exports.TokenType._type:\n            return \"type\";\n        case exports.TokenType._implements:\n            return \"implements\";\n        default:\n            return \"\";\n    }\n}\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"formatTokenType"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/tokenizer/types.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.formatTokenType = formatTokenType;\n    (function (TokenType) {\n        // Precedence 0 means not an operator; otherwise it is a positive number up to 12.\n        const PRECEDENCE_MASK = 0xf;\n        TokenType[TokenType[\"PRECEDENCE_MASK\"] = PRECEDENCE_MASK] = \"PRECEDENCE_MASK\";\n        const IS_KEYWORD = 1 << 4;\n        TokenType[TokenType[\"IS_KEYWORD\"] = IS_KEYWORD] = \"IS_KEYWORD\";\n        const IS_ASSIGN = 1 << 5;\n        TokenType[TokenType[\"IS_ASSIGN\"] = IS_ASSIGN] = \"IS_ASSIGN\";\n        const IS_RIGHT_ASSOCIATIVE = 1 << 6;\n        TokenType[TokenType[\"IS_RIGHT_ASSOCIATIVE\"] = IS_RIGHT_ASSOCIATIVE] = \"IS_RIGHT_ASSOCIATIVE\";\n        const IS_PREFIX = 1 << 7;\n        TokenType[TokenType[\"IS_PREFIX\"] = IS_PREFIX] = \"IS_PREFIX\";\n        const IS_POSTFIX = 1 << 8;\n        TokenType[TokenType[\"IS_POSTFIX\"] = IS_POSTFIX] = \"IS_POSTFIX\";\n        const IS_EXPRESSION_START = 1 << 9;\n        TokenType[TokenType[\"IS_EXPRESSION_START\"] = IS_EXPRESSION_START] = \"IS_EXPRESSION_START\";\n        const num = 512;\n        TokenType[TokenType[\"num\"] = num] = \"num\"; // num startsExpr\n        const bigint = 1536;\n        TokenType[TokenType[\"bigint\"] = bigint] = \"bigint\"; // bigint startsExpr\n        const decimal = 2560;\n        TokenType[TokenType[\"decimal\"] = decimal] = \"decimal\"; // decimal startsExpr\n        const regexp = 3584;\n        TokenType[TokenType[\"regexp\"] = regexp] = \"regexp\"; // regexp startsExpr\n        const string = 4608;\n        TokenType[TokenType[\"string\"] = string] = \"string\"; // string startsExpr\n        const name = 5632;\n        TokenType[TokenType[\"name\"] = name] = \"name\"; // name startsExpr\n        const eof = 6144;\n        TokenType[TokenType[\"eof\"] = eof] = \"eof\"; // eof\n        const bracketL = 7680;\n        TokenType[TokenType[\"bracketL\"] = bracketL] = \"bracketL\"; // [ startsExpr\n        const bracketR = 8192;\n        TokenType[TokenType[\"bracketR\"] = bracketR] = \"bracketR\"; // ]\n        const braceL = 9728;\n        TokenType[TokenType[\"braceL\"] = braceL] = \"braceL\"; // { startsExpr\n        const braceBarL = 10752;\n        TokenType[TokenType[\"braceBarL\"] = braceBarL] = \"braceBarL\"; // {| startsExpr\n        const braceR = 11264;\n        TokenType[TokenType[\"braceR\"] = braceR] = \"braceR\"; // }\n        const braceBarR = 12288;\n        TokenType[TokenType[\"braceBarR\"] = braceBarR] = \"braceBarR\"; // |}\n        const parenL = 13824;\n        TokenType[TokenType[\"parenL\"] = parenL] = \"parenL\"; // ( startsExpr\n        const parenR = 14336;\n        TokenType[TokenType[\"parenR\"] = parenR] = \"parenR\"; // )\n        const comma = 15360;\n        TokenType[TokenType[\"comma\"] = comma] = \"comma\"; // ,\n        const semi = 16384;\n        TokenType[TokenType[\"semi\"] = semi] = \"semi\"; // ;\n        const colon = 17408;\n        TokenType[TokenType[\"colon\"] = colon] = \"colon\"; // :\n        const doubleColon = 18432;\n        TokenType[TokenType[\"doubleColon\"] = doubleColon] = \"doubleColon\"; // ::\n        const dot = 19456;\n        TokenType[TokenType[\"dot\"] = dot] = \"dot\"; // .\n        const question = 20480;\n        TokenType[TokenType[\"question\"] = question] = \"question\"; // ?\n        const questionDot = 21504;\n        TokenType[TokenType[\"questionDot\"] = questionDot] = \"questionDot\"; // ?.\n        const arrow = 22528;\n        TokenType[TokenType[\"arrow\"] = arrow] = \"arrow\"; // =>\n        const template = 23552;\n        TokenType[TokenType[\"template\"] = template] = \"template\"; // template\n        const ellipsis = 24576;\n        TokenType[TokenType[\"ellipsis\"] = ellipsis] = \"ellipsis\"; // ...\n        const backQuote = 25600;\n        TokenType[TokenType[\"backQuote\"] = backQuote] = \"backQuote\"; // `\n        const dollarBraceL = 27136;\n        TokenType[TokenType[\"dollarBraceL\"] = dollarBraceL] = \"dollarBraceL\"; // ${ startsExpr\n        const at = 27648;\n        TokenType[TokenType[\"at\"] = at] = \"at\"; // @\n        const hash = 29184;\n        TokenType[TokenType[\"hash\"] = hash] = \"hash\"; // # startsExpr\n        const eq = 29728;\n        TokenType[TokenType[\"eq\"] = eq] = \"eq\"; // = isAssign\n        const assign = 30752;\n        TokenType[TokenType[\"assign\"] = assign] = \"assign\"; // _= isAssign\n        const preIncDec = 32640;\n        TokenType[TokenType[\"preIncDec\"] = preIncDec] = \"preIncDec\"; // ++/-- prefix postfix startsExpr\n        const postIncDec = 33664;\n        TokenType[TokenType[\"postIncDec\"] = postIncDec] = \"postIncDec\"; // ++/-- prefix postfix startsExpr\n        const bang = 34432;\n        TokenType[TokenType[\"bang\"] = bang] = \"bang\"; // ! prefix startsExpr\n        const tilde = 35456;\n        TokenType[TokenType[\"tilde\"] = tilde] = \"tilde\"; // ~ prefix startsExpr\n        const pipeline = 35841;\n        TokenType[TokenType[\"pipeline\"] = pipeline] = \"pipeline\"; // |> prec:1\n        const nullishCoalescing = 36866;\n        TokenType[TokenType[\"nullishCoalescing\"] = nullishCoalescing] = \"nullishCoalescing\"; // ?? prec:2\n        const logicalOR = 37890;\n        TokenType[TokenType[\"logicalOR\"] = logicalOR] = \"logicalOR\"; // || prec:2\n        const logicalAND = 38915;\n        TokenType[TokenType[\"logicalAND\"] = logicalAND] = \"logicalAND\"; // && prec:3\n        const bitwiseOR = 39940;\n        TokenType[TokenType[\"bitwiseOR\"] = bitwiseOR] = \"bitwiseOR\"; // | prec:4\n        const bitwiseXOR = 40965;\n        TokenType[TokenType[\"bitwiseXOR\"] = bitwiseXOR] = \"bitwiseXOR\"; // ^ prec:5\n        const bitwiseAND = 41990;\n        TokenType[TokenType[\"bitwiseAND\"] = bitwiseAND] = \"bitwiseAND\"; // & prec:6\n        const equality = 43015;\n        TokenType[TokenType[\"equality\"] = equality] = \"equality\"; // ==/!= prec:7\n        const lessThan = 44040;\n        TokenType[TokenType[\"lessThan\"] = lessThan] = \"lessThan\"; // < prec:8\n        const greaterThan = 45064;\n        TokenType[TokenType[\"greaterThan\"] = greaterThan] = \"greaterThan\"; // > prec:8\n        const relationalOrEqual = 46088;\n        TokenType[TokenType[\"relationalOrEqual\"] = relationalOrEqual] = \"relationalOrEqual\"; // <=/>= prec:8\n        const bitShiftL = 47113;\n        TokenType[TokenType[\"bitShiftL\"] = bitShiftL] = \"bitShiftL\"; // << prec:9\n        const bitShiftR = 48137;\n        TokenType[TokenType[\"bitShiftR\"] = bitShiftR] = \"bitShiftR\"; // >>/>>> prec:9\n        const plus = 49802;\n        TokenType[TokenType[\"plus\"] = plus] = \"plus\"; // + prec:10 prefix startsExpr\n        const minus = 50826;\n        TokenType[TokenType[\"minus\"] = minus] = \"minus\"; // - prec:10 prefix startsExpr\n        const modulo = 51723;\n        TokenType[TokenType[\"modulo\"] = modulo] = \"modulo\"; // % prec:11 startsExpr\n        const star = 52235;\n        TokenType[TokenType[\"star\"] = star] = \"star\"; // * prec:11\n        const slash = 53259;\n        TokenType[TokenType[\"slash\"] = slash] = \"slash\"; // / prec:11\n        const exponent = 54348;\n        TokenType[TokenType[\"exponent\"] = exponent] = \"exponent\"; // ** prec:12 rightAssociative\n        const jsxName = 55296;\n        TokenType[TokenType[\"jsxName\"] = jsxName] = \"jsxName\"; // jsxName\n        const jsxText = 56320;\n        TokenType[TokenType[\"jsxText\"] = jsxText] = \"jsxText\"; // jsxText\n        const jsxEmptyText = 57344;\n        TokenType[TokenType[\"jsxEmptyText\"] = jsxEmptyText] = \"jsxEmptyText\"; // jsxEmptyText\n        const jsxTagStart = 58880;\n        TokenType[TokenType[\"jsxTagStart\"] = jsxTagStart] = \"jsxTagStart\"; // jsxTagStart startsExpr\n        const jsxTagEnd = 59392;\n        TokenType[TokenType[\"jsxTagEnd\"] = jsxTagEnd] = \"jsxTagEnd\"; // jsxTagEnd\n        const typeParameterStart = 60928;\n        TokenType[TokenType[\"typeParameterStart\"] = typeParameterStart] = \"typeParameterStart\"; // typeParameterStart startsExpr\n        const nonNullAssertion = 61440;\n        TokenType[TokenType[\"nonNullAssertion\"] = nonNullAssertion] = \"nonNullAssertion\"; // nonNullAssertion\n        const _break = 62480;\n        TokenType[TokenType[\"_break\"] = _break] = \"_break\"; // break keyword\n        const _case = 63504;\n        TokenType[TokenType[\"_case\"] = _case] = \"_case\"; // case keyword\n        const _catch = 64528;\n        TokenType[TokenType[\"_catch\"] = _catch] = \"_catch\"; // catch keyword\n        const _continue = 65552;\n        TokenType[TokenType[\"_continue\"] = _continue] = \"_continue\"; // continue keyword\n        const _debugger = 66576;\n        TokenType[TokenType[\"_debugger\"] = _debugger] = \"_debugger\"; // debugger keyword\n        const _default = 67600;\n        TokenType[TokenType[\"_default\"] = _default] = \"_default\"; // default keyword\n        const _do = 68624;\n        TokenType[TokenType[\"_do\"] = _do] = \"_do\"; // do keyword\n        const _else = 69648;\n        TokenType[TokenType[\"_else\"] = _else] = \"_else\"; // else keyword\n        const _finally = 70672;\n        TokenType[TokenType[\"_finally\"] = _finally] = \"_finally\"; // finally keyword\n        const _for = 71696;\n        TokenType[TokenType[\"_for\"] = _for] = \"_for\"; // for keyword\n        const _function = 73232;\n        TokenType[TokenType[\"_function\"] = _function] = \"_function\"; // function keyword startsExpr\n        const _if = 73744;\n        TokenType[TokenType[\"_if\"] = _if] = \"_if\"; // if keyword\n        const _return = 74768;\n        TokenType[TokenType[\"_return\"] = _return] = \"_return\"; // return keyword\n        const _switch = 75792;\n        TokenType[TokenType[\"_switch\"] = _switch] = \"_switch\"; // switch keyword\n        const _throw = 77456;\n        TokenType[TokenType[\"_throw\"] = _throw] = \"_throw\"; // throw keyword prefix startsExpr\n        const _try = 77840;\n        TokenType[TokenType[\"_try\"] = _try] = \"_try\"; // try keyword\n        const _var = 78864;\n        TokenType[TokenType[\"_var\"] = _var] = \"_var\"; // var keyword\n        const _let = 79888;\n        TokenType[TokenType[\"_let\"] = _let] = \"_let\"; // let keyword\n        const _const = 80912;\n        TokenType[TokenType[\"_const\"] = _const] = \"_const\"; // const keyword\n        const _while = 81936;\n        TokenType[TokenType[\"_while\"] = _while] = \"_while\"; // while keyword\n        const _with = 82960;\n        TokenType[TokenType[\"_with\"] = _with] = \"_with\"; // with keyword\n        const _new = 84496;\n        TokenType[TokenType[\"_new\"] = _new] = \"_new\"; // new keyword startsExpr\n        const _this = 85520;\n        TokenType[TokenType[\"_this\"] = _this] = \"_this\"; // this keyword startsExpr\n        const _super = 86544;\n        TokenType[TokenType[\"_super\"] = _super] = \"_super\"; // super keyword startsExpr\n        const _class = 87568;\n        TokenType[TokenType[\"_class\"] = _class] = \"_class\"; // class keyword startsExpr\n        const _extends = 88080;\n        TokenType[TokenType[\"_extends\"] = _extends] = \"_extends\"; // extends keyword\n        const _export = 89104;\n        TokenType[TokenType[\"_export\"] = _export] = \"_export\"; // export keyword\n        const _import = 90640;\n        TokenType[TokenType[\"_import\"] = _import] = \"_import\"; // import keyword startsExpr\n        const _yield = 91664;\n        TokenType[TokenType[\"_yield\"] = _yield] = \"_yield\"; // yield keyword startsExpr\n        const _null = 92688;\n        TokenType[TokenType[\"_null\"] = _null] = \"_null\"; // null keyword startsExpr\n        const _true = 93712;\n        TokenType[TokenType[\"_true\"] = _true] = \"_true\"; // true keyword startsExpr\n        const _false = 94736;\n        TokenType[TokenType[\"_false\"] = _false] = \"_false\"; // false keyword startsExpr\n        const _in = 95256;\n        TokenType[TokenType[\"_in\"] = _in] = \"_in\"; // in prec:8 keyword\n        const _instanceof = 96280;\n        TokenType[TokenType[\"_instanceof\"] = _instanceof] = \"_instanceof\"; // instanceof prec:8 keyword\n        const _typeof = 97936;\n        TokenType[TokenType[\"_typeof\"] = _typeof] = \"_typeof\"; // typeof keyword prefix startsExpr\n        const _void = 98960;\n        TokenType[TokenType[\"_void\"] = _void] = \"_void\"; // void keyword prefix startsExpr\n        const _delete = 99984;\n        TokenType[TokenType[\"_delete\"] = _delete] = \"_delete\"; // delete keyword prefix startsExpr\n        const _async = 100880;\n        TokenType[TokenType[\"_async\"] = _async] = \"_async\"; // async keyword startsExpr\n        const _get = 101904;\n        TokenType[TokenType[\"_get\"] = _get] = \"_get\"; // get keyword startsExpr\n        const _set = 102928;\n        TokenType[TokenType[\"_set\"] = _set] = \"_set\"; // set keyword startsExpr\n        const _declare = 103952;\n        TokenType[TokenType[\"_declare\"] = _declare] = \"_declare\"; // declare keyword startsExpr\n        const _readonly = 104976;\n        TokenType[TokenType[\"_readonly\"] = _readonly] = \"_readonly\"; // readonly keyword startsExpr\n        const _abstract = 106000;\n        TokenType[TokenType[\"_abstract\"] = _abstract] = \"_abstract\"; // abstract keyword startsExpr\n        const _static = 107024;\n        TokenType[TokenType[\"_static\"] = _static] = \"_static\"; // static keyword startsExpr\n        const _public = 107536;\n        TokenType[TokenType[\"_public\"] = _public] = \"_public\"; // public keyword\n        const _private = 108560;\n        TokenType[TokenType[\"_private\"] = _private] = \"_private\"; // private keyword\n        const _protected = 109584;\n        TokenType[TokenType[\"_protected\"] = _protected] = \"_protected\"; // protected keyword\n        const _override = 110608;\n        TokenType[TokenType[\"_override\"] = _override] = \"_override\"; // override keyword\n        const _as = 112144;\n        TokenType[TokenType[\"_as\"] = _as] = \"_as\"; // as keyword startsExpr\n        const _enum = 113168;\n        TokenType[TokenType[\"_enum\"] = _enum] = \"_enum\"; // enum keyword startsExpr\n        const _type = 114192;\n        TokenType[TokenType[\"_type\"] = _type] = \"_type\"; // type keyword startsExpr\n        const _implements = 115216;\n        TokenType[TokenType[\"_implements\"] = _implements] = \"_implements\"; // implements keyword startsExpr\n    })(exports.TokenType || (exports.TokenType = {}));\n    function formatTokenType(tokenType) {\n        switch (tokenType) {\n            case exports.TokenType.num:\n                return \"num\";\n            case exports.TokenType.bigint:\n                return \"bigint\";\n            case exports.TokenType.decimal:\n                return \"decimal\";\n            case exports.TokenType.regexp:\n                return \"regexp\";\n            case exports.TokenType.string:\n                return \"string\";\n            case exports.TokenType.name:\n                return \"name\";\n            case exports.TokenType.eof:\n                return \"eof\";\n            case exports.TokenType.bracketL:\n                return \"[\";\n            case exports.TokenType.bracketR:\n                return \"]\";\n            case exports.TokenType.braceL:\n                return \"{\";\n            case exports.TokenType.braceBarL:\n                return \"{|\";\n            case exports.TokenType.braceR:\n                return \"}\";\n            case exports.TokenType.braceBarR:\n                return \"|}\";\n            case exports.TokenType.parenL:\n                return \"(\";\n            case exports.TokenType.parenR:\n                return \")\";\n            case exports.TokenType.comma:\n                return \",\";\n            case exports.TokenType.semi:\n                return \";\";\n            case exports.TokenType.colon:\n                return \":\";\n            case exports.TokenType.doubleColon:\n                return \"::\";\n            case exports.TokenType.dot:\n                return \".\";\n            case exports.TokenType.question:\n                return \"?\";\n            case exports.TokenType.questionDot:\n                return \"?.\";\n            case exports.TokenType.arrow:\n                return \"=>\";\n            case exports.TokenType.template:\n                return \"template\";\n            case exports.TokenType.ellipsis:\n                return \"...\";\n            case exports.TokenType.backQuote:\n                return \"`\";\n            case exports.TokenType.dollarBraceL:\n                return \"${\";\n            case exports.TokenType.at:\n                return \"@\";\n            case exports.TokenType.hash:\n                return \"#\";\n            case exports.TokenType.eq:\n                return \"=\";\n            case exports.TokenType.assign:\n                return \"_=\";\n            case exports.TokenType.preIncDec:\n                return \"++/--\";\n            case exports.TokenType.postIncDec:\n                return \"++/--\";\n            case exports.TokenType.bang:\n                return \"!\";\n            case exports.TokenType.tilde:\n                return \"~\";\n            case exports.TokenType.pipeline:\n                return \"|>\";\n            case exports.TokenType.nullishCoalescing:\n                return \"??\";\n            case exports.TokenType.logicalOR:\n                return \"||\";\n            case exports.TokenType.logicalAND:\n                return \"&&\";\n            case exports.TokenType.bitwiseOR:\n                return \"|\";\n            case exports.TokenType.bitwiseXOR:\n                return \"^\";\n            case exports.TokenType.bitwiseAND:\n                return \"&\";\n            case exports.TokenType.equality:\n                return \"==/!=\";\n            case exports.TokenType.lessThan:\n                return \"<\";\n            case exports.TokenType.greaterThan:\n                return \">\";\n            case exports.TokenType.relationalOrEqual:\n                return \"<=/>=\";\n            case exports.TokenType.bitShiftL:\n                return \"<<\";\n            case exports.TokenType.bitShiftR:\n                return \">>/>>>\";\n            case exports.TokenType.plus:\n                return \"+\";\n            case exports.TokenType.minus:\n                return \"-\";\n            case exports.TokenType.modulo:\n                return \"%\";\n            case exports.TokenType.star:\n                return \"*\";\n            case exports.TokenType.slash:\n                return \"/\";\n            case exports.TokenType.exponent:\n                return \"**\";\n            case exports.TokenType.jsxName:\n                return \"jsxName\";\n            case exports.TokenType.jsxText:\n                return \"jsxText\";\n            case exports.TokenType.jsxEmptyText:\n                return \"jsxEmptyText\";\n            case exports.TokenType.jsxTagStart:\n                return \"jsxTagStart\";\n            case exports.TokenType.jsxTagEnd:\n                return \"jsxTagEnd\";\n            case exports.TokenType.typeParameterStart:\n                return \"typeParameterStart\";\n            case exports.TokenType.nonNullAssertion:\n                return \"nonNullAssertion\";\n            case exports.TokenType._break:\n                return \"break\";\n            case exports.TokenType._case:\n                return \"case\";\n            case exports.TokenType._catch:\n                return \"catch\";\n            case exports.TokenType._continue:\n                return \"continue\";\n            case exports.TokenType._debugger:\n                return \"debugger\";\n            case exports.TokenType._default:\n                return \"default\";\n            case exports.TokenType._do:\n                return \"do\";\n            case exports.TokenType._else:\n                return \"else\";\n            case exports.TokenType._finally:\n                return \"finally\";\n            case exports.TokenType._for:\n                return \"for\";\n            case exports.TokenType._function:\n                return \"function\";\n            case exports.TokenType._if:\n                return \"if\";\n            case exports.TokenType._return:\n                return \"return\";\n            case exports.TokenType._switch:\n                return \"switch\";\n            case exports.TokenType._throw:\n                return \"throw\";\n            case exports.TokenType._try:\n                return \"try\";\n            case exports.TokenType._var:\n                return \"var\";\n            case exports.TokenType._let:\n                return \"let\";\n            case exports.TokenType._const:\n                return \"const\";\n            case exports.TokenType._while:\n                return \"while\";\n            case exports.TokenType._with:\n                return \"with\";\n            case exports.TokenType._new:\n                return \"new\";\n            case exports.TokenType._this:\n                return \"this\";\n            case exports.TokenType._super:\n                return \"super\";\n            case exports.TokenType._class:\n                return \"class\";\n            case exports.TokenType._extends:\n                return \"extends\";\n            case exports.TokenType._export:\n                return \"export\";\n            case exports.TokenType._import:\n                return \"import\";\n            case exports.TokenType._yield:\n                return \"yield\";\n            case exports.TokenType._null:\n                return \"null\";\n            case exports.TokenType._true:\n                return \"true\";\n            case exports.TokenType._false:\n                return \"false\";\n            case exports.TokenType._in:\n                return \"in\";\n            case exports.TokenType._instanceof:\n                return \"instanceof\";\n            case exports.TokenType._typeof:\n                return \"typeof\";\n            case exports.TokenType._void:\n                return \"void\";\n            case exports.TokenType._delete:\n                return \"delete\";\n            case exports.TokenType._async:\n                return \"async\";\n            case exports.TokenType._get:\n                return \"get\";\n            case exports.TokenType._set:\n                return \"set\";\n            case exports.TokenType._declare:\n                return \"declare\";\n            case exports.TokenType._readonly:\n                return \"readonly\";\n            case exports.TokenType._abstract:\n                return \"abstract\";\n            case exports.TokenType._static:\n                return \"static\";\n            case exports.TokenType._public:\n                return \"public\";\n            case exports.TokenType._private:\n                return \"private\";\n            case exports.TokenType._protected:\n                return \"protected\";\n            case exports.TokenType._override:\n                return \"override\";\n            case exports.TokenType._as:\n                return \"as\";\n            case exports.TokenType._enum:\n                return \"enum\";\n            case exports.TokenType._type:\n                return \"type\";\n            case exports.TokenType._implements:\n                return \"implements\";\n            default:\n                return \"\";\n        }\n    }\n}\n","min_source":"function _(e,n,r,t,a){t(),r.formatTokenType=function(e){switch(e){case r.TokenType.num:return\"num\";case r.TokenType.bigint:return\"bigint\";case r.TokenType.decimal:return\"decimal\";case r.TokenType.regexp:return\"regexp\";case r.TokenType.string:return\"string\";case r.TokenType.name:return\"name\";case r.TokenType.eof:return\"eof\";case r.TokenType.bracketL:return\"[\";case r.TokenType.bracketR:return\"]\";case r.TokenType.braceL:return\"{\";case r.TokenType.braceBarL:return\"{|\";case r.TokenType.braceR:return\"}\";case r.TokenType.braceBarR:return\"|}\";case r.TokenType.parenL:return\"(\";case r.TokenType.parenR:return\")\";case r.TokenType.comma:return\",\";case r.TokenType.semi:return\";\";case r.TokenType.colon:return\":\";case r.TokenType.doubleColon:return\"::\";case r.TokenType.dot:return\".\";case r.TokenType.question:return\"?\";case r.TokenType.questionDot:return\"?.\";case r.TokenType.arrow:return\"=>\";case r.TokenType.template:return\"template\";case r.TokenType.ellipsis:return\"...\";case r.TokenType.backQuote:return\"`\";case r.TokenType.dollarBraceL:return\"${\";case r.TokenType.at:return\"@\";case r.TokenType.hash:return\"#\";case r.TokenType.eq:return\"=\";case r.TokenType.assign:return\"_=\";case r.TokenType.preIncDec:case r.TokenType.postIncDec:return\"++/--\";case r.TokenType.bang:return\"!\";case r.TokenType.tilde:return\"~\";case r.TokenType.pipeline:return\"|>\";case r.TokenType.nullishCoalescing:return\"??\";case r.TokenType.logicalOR:return\"||\";case r.TokenType.logicalAND:return\"&&\";case r.TokenType.bitwiseOR:return\"|\";case r.TokenType.bitwiseXOR:return\"^\";case r.TokenType.bitwiseAND:return\"&\";case r.TokenType.equality:return\"==/!=\";case r.TokenType.lessThan:return\"<\";case r.TokenType.greaterThan:return\">\";case r.TokenType.relationalOrEqual:return\"<=/>=\";case r.TokenType.bitShiftL:return\"<<\";case r.TokenType.bitShiftR:return\">>/>>>\";case r.TokenType.plus:return\"+\";case r.TokenType.minus:return\"-\";case r.TokenType.modulo:return\"%\";case r.TokenType.star:return\"*\";case r.TokenType.slash:return\"/\";case r.TokenType.exponent:return\"**\";case r.TokenType.jsxName:return\"jsxName\";case r.TokenType.jsxText:return\"jsxText\";case r.TokenType.jsxEmptyText:return\"jsxEmptyText\";case r.TokenType.jsxTagStart:return\"jsxTagStart\";case r.TokenType.jsxTagEnd:return\"jsxTagEnd\";case r.TokenType.typeParameterStart:return\"typeParameterStart\";case r.TokenType.nonNullAssertion:return\"nonNullAssertion\";case r.TokenType._break:return\"break\";case r.TokenType._case:return\"case\";case r.TokenType._catch:return\"catch\";case r.TokenType._continue:return\"continue\";case r.TokenType._debugger:return\"debugger\";case r.TokenType._default:return\"default\";case r.TokenType._do:return\"do\";case r.TokenType._else:return\"else\";case r.TokenType._finally:return\"finally\";case r.TokenType._for:return\"for\";case r.TokenType._function:return\"function\";case r.TokenType._if:return\"if\";case r.TokenType._return:return\"return\";case r.TokenType._switch:return\"switch\";case r.TokenType._throw:return\"throw\";case r.TokenType._try:return\"try\";case r.TokenType._var:return\"var\";case r.TokenType._let:return\"let\";case r.TokenType._const:return\"const\";case r.TokenType._while:return\"while\";case r.TokenType._with:return\"with\";case r.TokenType._new:return\"new\";case r.TokenType._this:return\"this\";case r.TokenType._super:return\"super\";case r.TokenType._class:return\"class\";case r.TokenType._extends:return\"extends\";case r.TokenType._export:return\"export\";case r.TokenType._import:return\"import\";case r.TokenType._yield:return\"yield\";case r.TokenType._null:return\"null\";case r.TokenType._true:return\"true\";case r.TokenType._false:return\"false\";case r.TokenType._in:return\"in\";case r.TokenType._instanceof:return\"instanceof\";case r.TokenType._typeof:return\"typeof\";case r.TokenType._void:return\"void\";case r.TokenType._delete:return\"delete\";case r.TokenType._async:return\"async\";case r.TokenType._get:return\"get\";case r.TokenType._set:return\"set\";case r.TokenType._declare:return\"declare\";case r.TokenType._readonly:return\"readonly\";case r.TokenType._abstract:return\"abstract\";case r.TokenType._static:return\"static\";case r.TokenType._public:return\"public\";case r.TokenType._private:return\"private\";case r.TokenType._protected:return\"protected\";case r.TokenType._override:return\"override\";case r.TokenType._as:return\"as\";case r.TokenType._enum:return\"enum\";case r.TokenType._type:return\"type\";case r.TokenType._implements:return\"implements\";default:return\"\"}},function(e){e[e.PRECEDENCE_MASK=15]=\"PRECEDENCE_MASK\";e[e.IS_KEYWORD=16]=\"IS_KEYWORD\";e[e.IS_ASSIGN=32]=\"IS_ASSIGN\";e[e.IS_RIGHT_ASSOCIATIVE=64]=\"IS_RIGHT_ASSOCIATIVE\";e[e.IS_PREFIX=128]=\"IS_PREFIX\";e[e.IS_POSTFIX=256]=\"IS_POSTFIX\";e[e.IS_EXPRESSION_START=512]=\"IS_EXPRESSION_START\";e[e.num=512]=\"num\";e[e.bigint=1536]=\"bigint\";e[e.decimal=2560]=\"decimal\";e[e.regexp=3584]=\"regexp\";e[e.string=4608]=\"string\";e[e.name=5632]=\"name\";e[e.eof=6144]=\"eof\";e[e.bracketL=7680]=\"bracketL\";e[e.bracketR=8192]=\"bracketR\";e[e.braceL=9728]=\"braceL\";e[e.braceBarL=10752]=\"braceBarL\";e[e.braceR=11264]=\"braceR\";e[e.braceBarR=12288]=\"braceBarR\";e[e.parenL=13824]=\"parenL\";e[e.parenR=14336]=\"parenR\";e[e.comma=15360]=\"comma\";e[e.semi=16384]=\"semi\";e[e.colon=17408]=\"colon\";e[e.doubleColon=18432]=\"doubleColon\";e[e.dot=19456]=\"dot\";e[e.question=20480]=\"question\";e[e.questionDot=21504]=\"questionDot\";e[e.arrow=22528]=\"arrow\";e[e.template=23552]=\"template\";e[e.ellipsis=24576]=\"ellipsis\";e[e.backQuote=25600]=\"backQuote\";e[e.dollarBraceL=27136]=\"dollarBraceL\";e[e.at=27648]=\"at\";e[e.hash=29184]=\"hash\";e[e.eq=29728]=\"eq\";e[e.assign=30752]=\"assign\";e[e.preIncDec=32640]=\"preIncDec\";e[e.postIncDec=33664]=\"postIncDec\";e[e.bang=34432]=\"bang\";e[e.tilde=35456]=\"tilde\";e[e.pipeline=35841]=\"pipeline\";e[e.nullishCoalescing=36866]=\"nullishCoalescing\";e[e.logicalOR=37890]=\"logicalOR\";e[e.logicalAND=38915]=\"logicalAND\";e[e.bitwiseOR=39940]=\"bitwiseOR\";e[e.bitwiseXOR=40965]=\"bitwiseXOR\";e[e.bitwiseAND=41990]=\"bitwiseAND\";e[e.equality=43015]=\"equality\";e[e.lessThan=44040]=\"lessThan\";e[e.greaterThan=45064]=\"greaterThan\";e[e.relationalOrEqual=46088]=\"relationalOrEqual\";e[e.bitShiftL=47113]=\"bitShiftL\";e[e.bitShiftR=48137]=\"bitShiftR\";e[e.plus=49802]=\"plus\";e[e.minus=50826]=\"minus\";e[e.modulo=51723]=\"modulo\";e[e.star=52235]=\"star\";e[e.slash=53259]=\"slash\";e[e.exponent=54348]=\"exponent\";e[e.jsxName=55296]=\"jsxName\";e[e.jsxText=56320]=\"jsxText\";e[e.jsxEmptyText=57344]=\"jsxEmptyText\";e[e.jsxTagStart=58880]=\"jsxTagStart\";e[e.jsxTagEnd=59392]=\"jsxTagEnd\";e[e.typeParameterStart=60928]=\"typeParameterStart\";e[e.nonNullAssertion=61440]=\"nonNullAssertion\";e[e._break=62480]=\"_break\";e[e._case=63504]=\"_case\";e[e._catch=64528]=\"_catch\";e[e._continue=65552]=\"_continue\";e[e._debugger=66576]=\"_debugger\";e[e._default=67600]=\"_default\";e[e._do=68624]=\"_do\";e[e._else=69648]=\"_else\";e[e._finally=70672]=\"_finally\";e[e._for=71696]=\"_for\";e[e._function=73232]=\"_function\";e[e._if=73744]=\"_if\";e[e._return=74768]=\"_return\";e[e._switch=75792]=\"_switch\";e[e._throw=77456]=\"_throw\";e[e._try=77840]=\"_try\";e[e._var=78864]=\"_var\";e[e._let=79888]=\"_let\";e[e._const=80912]=\"_const\";e[e._while=81936]=\"_while\";e[e._with=82960]=\"_with\";e[e._new=84496]=\"_new\";e[e._this=85520]=\"_this\";e[e._super=86544]=\"_super\";e[e._class=87568]=\"_class\";e[e._extends=88080]=\"_extends\";e[e._export=89104]=\"_export\";e[e._import=90640]=\"_import\";e[e._yield=91664]=\"_yield\";e[e._null=92688]=\"_null\";e[e._true=93712]=\"_true\";e[e._false=94736]=\"_false\";e[e._in=95256]=\"_in\";e[e._instanceof=96280]=\"_instanceof\";e[e._typeof=97936]=\"_typeof\";e[e._void=98960]=\"_void\";e[e._delete=99984]=\"_delete\";e[e._async=100880]=\"_async\";e[e._get=101904]=\"_get\";e[e._set=102928]=\"_set\";e[e._declare=103952]=\"_declare\";e[e._readonly=104976]=\"_readonly\";e[e._abstract=106e3]=\"_abstract\";e[e._static=107024]=\"_static\";e[e._public=107536]=\"_public\";e[e._private=108560]=\"_private\";e[e._protected=109584]=\"_protected\";e[e._override=110608]=\"_override\";e[e._as=112144]=\"_as\";e[e._enum=113168]=\"_enum\";e[e._type=114192]=\"_type\";e[e._implements=115216]=\"_implements\"}(r.TokenType||(r.TokenType={}))}\n//# sourceMappingURL=types.min.js.map","min_map":"{\"version\":3,\"file\":\"types.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"formatTokenType\",\"tokenType\",\"TokenType\",\"num\",\"bigint\",\"decimal\",\"regexp\",\"string\",\"name\",\"eof\",\"bracketL\",\"bracketR\",\"braceL\",\"braceBarL\",\"braceR\",\"braceBarR\",\"parenL\",\"parenR\",\"comma\",\"semi\",\"colon\",\"doubleColon\",\"dot\",\"question\",\"questionDot\",\"arrow\",\"template\",\"ellipsis\",\"backQuote\",\"dollarBraceL\",\"at\",\"hash\",\"eq\",\"assign\",\"preIncDec\",\"postIncDec\",\"bang\",\"tilde\",\"pipeline\",\"nullishCoalescing\",\"logicalOR\",\"logicalAND\",\"bitwiseOR\",\"bitwiseXOR\",\"bitwiseAND\",\"equality\",\"lessThan\",\"greaterThan\",\"relationalOrEqual\",\"bitShiftL\",\"bitShiftR\",\"plus\",\"minus\",\"modulo\",\"star\",\"slash\",\"exponent\",\"jsxName\",\"jsxText\",\"jsxEmptyText\",\"jsxTagStart\",\"jsxTagEnd\",\"typeParameterStart\",\"nonNullAssertion\",\"_break\",\"_case\",\"_catch\",\"_continue\",\"_debugger\",\"_default\",\"_do\",\"_else\",\"_finally\",\"_for\",\"_function\",\"_if\",\"_return\",\"_switch\",\"_throw\",\"_try\",\"_var\",\"_let\",\"_const\",\"_while\",\"_with\",\"_new\",\"_this\",\"_super\",\"_class\",\"_extends\",\"_export\",\"_import\",\"_yield\",\"_null\",\"_true\",\"_false\",\"_in\",\"_instanceof\",\"_typeof\",\"_void\",\"_delete\",\"_async\",\"_get\",\"_set\",\"_declare\",\"_readonly\",\"_abstract\",\"_static\",\"_public\",\"_private\",\"_protected\",\"_override\",\"_as\",\"_enum\",\"_type\",\"_implements\"],\"sources\":[\"0\"],\"mappings\":\"AAAiD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC9FD,IACAD,EAAQG,gBAoPR,SAAyBC,GACrB,OAAQA,GACJ,KAAKJ,EAAQK,UAAUC,IACnB,MAAO,MACX,KAAKN,EAAQK,UAAUE,OACnB,MAAO,SACX,KAAKP,EAAQK,UAAUG,QACnB,MAAO,UACX,KAAKR,EAAQK,UAAUI,OACnB,MAAO,SACX,KAAKT,EAAQK,UAAUK,OACnB,MAAO,SACX,KAAKV,EAAQK,UAAUM,KACnB,MAAO,OACX,KAAKX,EAAQK,UAAUO,IACnB,MAAO,MACX,KAAKZ,EAAQK,UAAUQ,SACnB,MAAO,IACX,KAAKb,EAAQK,UAAUS,SACnB,MAAO,IACX,KAAKd,EAAQK,UAAUU,OACnB,MAAO,IACX,KAAKf,EAAQK,UAAUW,UACnB,MAAO,KACX,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AE1CA,EAAUA,EAAoB,SADb,OAC6B,WAE9CA,EAAUA,EAAmB,QADb,OAC4B,UAE5CA,EAAUA,EAAmB,QADb,OAC4B,UAE5CA,EAAUA,EAAkB,OADb,OAC2B,SAE1CA,EAAUA,EAAiB,MADb,OAC0B,QAExCA,EAAUA,EAAiB,MADb,OAC0B,QAExCA,EAAUA,EAAkB,OADb,OAC2B,SAE1CA,EAAUA,EAAe,IADb,OACwB,MAEpCA,EAAUA,EAAuB,YADb,OACgC,cAEpDA,EAAUA,EAAmB,QADb,OAC4B,UAE5CA,EAAUA,EAAiB,MADb,OAC0B,QAExCA,EAAUA,EAAmB,QADb,OAC4B,UAE5CA,EAAUA,EAAkB,OADb,QAC2B,SAE1CA,EAAUA,EAAgB,KADb,QACyB,OAEtCA,EAAUA,EAAgB,KADb,QACyB,OAEtCA,EAAUA,EAAoB,SADb,QAC6B,WAE9CA,EAAUA,EAAqB,UADb,QAC8B,YAEhDA,EAAUA,EAAqB,UADb,OAC8B,YAEhDA,EAAUA,EAAmB,QADb,QAC4B,UAE5CA,EAAUA,EAAmB,QADb,QAC4B,UAE5CA,EAAUA,EAAoB,SADb,QAC6B,WAE9CA,EAAUA,EAAsB,WADb,QAC+B,aAElDA,EAAUA,EAAqB,UADb,QAC8B,YAEhDA,EAAUA,EAAe,IADb,QACwB,MAEpCA,EAAUA,EAAiB,MADb,QAC0B,QAExCA,EAAUA,EAAiB,MADb,QAC0B,QAExCA,EAAUA,EAAuB,YADb,QACgC,aACvD,CAlPD,CAkPGL,EAAQK,YAAcL,EAAQK,UAAY,CAAC,GAyOlD\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/charcodes.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/util/charcodes.js","resolution":"ESM","id":"22746c8ce8","hash":"22746c8ce81157514b884a3765e056516cd83ead919dd440d5cafd5933f27266","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.charCodes = void 0;\nexports.isDigit = isDigit;\n(function (charCodes) {\n    const backSpace = 8;\n    charCodes[charCodes[\"backSpace\"] = backSpace] = \"backSpace\";\n    const lineFeed = 10;\n    charCodes[charCodes[\"lineFeed\"] = lineFeed] = \"lineFeed\"; //  '\\n'\n    const tab = 9;\n    charCodes[charCodes[\"tab\"] = tab] = \"tab\"; //  '\\t'\n    const carriageReturn = 13;\n    charCodes[charCodes[\"carriageReturn\"] = carriageReturn] = \"carriageReturn\"; //  '\\r'\n    const shiftOut = 14;\n    charCodes[charCodes[\"shiftOut\"] = shiftOut] = \"shiftOut\";\n    const space = 32;\n    charCodes[charCodes[\"space\"] = space] = \"space\";\n    const exclamationMark = 33;\n    charCodes[charCodes[\"exclamationMark\"] = exclamationMark] = \"exclamationMark\"; //  '!'\n    const quotationMark = 34;\n    charCodes[charCodes[\"quotationMark\"] = quotationMark] = \"quotationMark\"; //  '\"'\n    const numberSign = 35;\n    charCodes[charCodes[\"numberSign\"] = numberSign] = \"numberSign\"; //  '#'\n    const dollarSign = 36;\n    charCodes[charCodes[\"dollarSign\"] = dollarSign] = \"dollarSign\"; //  '$'\n    const percentSign = 37;\n    charCodes[charCodes[\"percentSign\"] = percentSign] = \"percentSign\"; //  '%'\n    const ampersand = 38;\n    charCodes[charCodes[\"ampersand\"] = ampersand] = \"ampersand\"; //  '&'\n    const apostrophe = 39;\n    charCodes[charCodes[\"apostrophe\"] = apostrophe] = \"apostrophe\"; //  '''\n    const leftParenthesis = 40;\n    charCodes[charCodes[\"leftParenthesis\"] = leftParenthesis] = \"leftParenthesis\"; //  '('\n    const rightParenthesis = 41;\n    charCodes[charCodes[\"rightParenthesis\"] = rightParenthesis] = \"rightParenthesis\"; //  ')'\n    const asterisk = 42;\n    charCodes[charCodes[\"asterisk\"] = asterisk] = \"asterisk\"; //  '*'\n    const plusSign = 43;\n    charCodes[charCodes[\"plusSign\"] = plusSign] = \"plusSign\"; //  '+'\n    const comma = 44;\n    charCodes[charCodes[\"comma\"] = comma] = \"comma\"; //  ','\n    const dash = 45;\n    charCodes[charCodes[\"dash\"] = dash] = \"dash\"; //  '-'\n    const dot = 46;\n    charCodes[charCodes[\"dot\"] = dot] = \"dot\"; //  '.'\n    const slash = 47;\n    charCodes[charCodes[\"slash\"] = slash] = \"slash\"; //  '/'\n    const digit0 = 48;\n    charCodes[charCodes[\"digit0\"] = digit0] = \"digit0\"; //  '0'\n    const digit1 = 49;\n    charCodes[charCodes[\"digit1\"] = digit1] = \"digit1\"; //  '1'\n    const digit2 = 50;\n    charCodes[charCodes[\"digit2\"] = digit2] = \"digit2\"; //  '2'\n    const digit3 = 51;\n    charCodes[charCodes[\"digit3\"] = digit3] = \"digit3\"; //  '3'\n    const digit4 = 52;\n    charCodes[charCodes[\"digit4\"] = digit4] = \"digit4\"; //  '4'\n    const digit5 = 53;\n    charCodes[charCodes[\"digit5\"] = digit5] = \"digit5\"; //  '5'\n    const digit6 = 54;\n    charCodes[charCodes[\"digit6\"] = digit6] = \"digit6\"; //  '6'\n    const digit7 = 55;\n    charCodes[charCodes[\"digit7\"] = digit7] = \"digit7\"; //  '7'\n    const digit8 = 56;\n    charCodes[charCodes[\"digit8\"] = digit8] = \"digit8\"; //  '8'\n    const digit9 = 57;\n    charCodes[charCodes[\"digit9\"] = digit9] = \"digit9\"; //  '9'\n    const colon = 58;\n    charCodes[charCodes[\"colon\"] = colon] = \"colon\"; //  ':'\n    const semicolon = 59;\n    charCodes[charCodes[\"semicolon\"] = semicolon] = \"semicolon\"; //  ';'\n    const lessThan = 60;\n    charCodes[charCodes[\"lessThan\"] = lessThan] = \"lessThan\"; //  '<'\n    const equalsTo = 61;\n    charCodes[charCodes[\"equalsTo\"] = equalsTo] = \"equalsTo\"; //  '='\n    const greaterThan = 62;\n    charCodes[charCodes[\"greaterThan\"] = greaterThan] = \"greaterThan\"; //  '>'\n    const questionMark = 63;\n    charCodes[charCodes[\"questionMark\"] = questionMark] = \"questionMark\"; //  '?'\n    const atSign = 64;\n    charCodes[charCodes[\"atSign\"] = atSign] = \"atSign\"; //  '@'\n    const uppercaseA = 65;\n    charCodes[charCodes[\"uppercaseA\"] = uppercaseA] = \"uppercaseA\"; //  'A'\n    const uppercaseB = 66;\n    charCodes[charCodes[\"uppercaseB\"] = uppercaseB] = \"uppercaseB\"; //  'B'\n    const uppercaseC = 67;\n    charCodes[charCodes[\"uppercaseC\"] = uppercaseC] = \"uppercaseC\"; //  'C'\n    const uppercaseD = 68;\n    charCodes[charCodes[\"uppercaseD\"] = uppercaseD] = \"uppercaseD\"; //  'D'\n    const uppercaseE = 69;\n    charCodes[charCodes[\"uppercaseE\"] = uppercaseE] = \"uppercaseE\"; //  'E'\n    const uppercaseF = 70;\n    charCodes[charCodes[\"uppercaseF\"] = uppercaseF] = \"uppercaseF\"; //  'F'\n    const uppercaseG = 71;\n    charCodes[charCodes[\"uppercaseG\"] = uppercaseG] = \"uppercaseG\"; //  'G'\n    const uppercaseH = 72;\n    charCodes[charCodes[\"uppercaseH\"] = uppercaseH] = \"uppercaseH\"; //  'H'\n    const uppercaseI = 73;\n    charCodes[charCodes[\"uppercaseI\"] = uppercaseI] = \"uppercaseI\"; //  'I'\n    const uppercaseJ = 74;\n    charCodes[charCodes[\"uppercaseJ\"] = uppercaseJ] = \"uppercaseJ\"; //  'J'\n    const uppercaseK = 75;\n    charCodes[charCodes[\"uppercaseK\"] = uppercaseK] = \"uppercaseK\"; //  'K'\n    const uppercaseL = 76;\n    charCodes[charCodes[\"uppercaseL\"] = uppercaseL] = \"uppercaseL\"; //  'L'\n    const uppercaseM = 77;\n    charCodes[charCodes[\"uppercaseM\"] = uppercaseM] = \"uppercaseM\"; //  'M'\n    const uppercaseN = 78;\n    charCodes[charCodes[\"uppercaseN\"] = uppercaseN] = \"uppercaseN\"; //  'N'\n    const uppercaseO = 79;\n    charCodes[charCodes[\"uppercaseO\"] = uppercaseO] = \"uppercaseO\"; //  'O'\n    const uppercaseP = 80;\n    charCodes[charCodes[\"uppercaseP\"] = uppercaseP] = \"uppercaseP\"; //  'P'\n    const uppercaseQ = 81;\n    charCodes[charCodes[\"uppercaseQ\"] = uppercaseQ] = \"uppercaseQ\"; //  'Q'\n    const uppercaseR = 82;\n    charCodes[charCodes[\"uppercaseR\"] = uppercaseR] = \"uppercaseR\"; //  'R'\n    const uppercaseS = 83;\n    charCodes[charCodes[\"uppercaseS\"] = uppercaseS] = \"uppercaseS\"; //  'S'\n    const uppercaseT = 84;\n    charCodes[charCodes[\"uppercaseT\"] = uppercaseT] = \"uppercaseT\"; //  'T'\n    const uppercaseU = 85;\n    charCodes[charCodes[\"uppercaseU\"] = uppercaseU] = \"uppercaseU\"; //  'U'\n    const uppercaseV = 86;\n    charCodes[charCodes[\"uppercaseV\"] = uppercaseV] = \"uppercaseV\"; //  'V'\n    const uppercaseW = 87;\n    charCodes[charCodes[\"uppercaseW\"] = uppercaseW] = \"uppercaseW\"; //  'W'\n    const uppercaseX = 88;\n    charCodes[charCodes[\"uppercaseX\"] = uppercaseX] = \"uppercaseX\"; //  'X'\n    const uppercaseY = 89;\n    charCodes[charCodes[\"uppercaseY\"] = uppercaseY] = \"uppercaseY\"; //  'Y'\n    const uppercaseZ = 90;\n    charCodes[charCodes[\"uppercaseZ\"] = uppercaseZ] = \"uppercaseZ\"; //  'Z'\n    const leftSquareBracket = 91;\n    charCodes[charCodes[\"leftSquareBracket\"] = leftSquareBracket] = \"leftSquareBracket\"; //  '['\n    const backslash = 92;\n    charCodes[charCodes[\"backslash\"] = backslash] = \"backslash\"; //  '\\    '\n    const rightSquareBracket = 93;\n    charCodes[charCodes[\"rightSquareBracket\"] = rightSquareBracket] = \"rightSquareBracket\"; //  ']'\n    const caret = 94;\n    charCodes[charCodes[\"caret\"] = caret] = \"caret\"; //  '^'\n    const underscore = 95;\n    charCodes[charCodes[\"underscore\"] = underscore] = \"underscore\"; //  '_'\n    const graveAccent = 96;\n    charCodes[charCodes[\"graveAccent\"] = graveAccent] = \"graveAccent\"; //  '`'\n    const lowercaseA = 97;\n    charCodes[charCodes[\"lowercaseA\"] = lowercaseA] = \"lowercaseA\"; //  'a'\n    const lowercaseB = 98;\n    charCodes[charCodes[\"lowercaseB\"] = lowercaseB] = \"lowercaseB\"; //  'b'\n    const lowercaseC = 99;\n    charCodes[charCodes[\"lowercaseC\"] = lowercaseC] = \"lowercaseC\"; //  'c'\n    const lowercaseD = 100;\n    charCodes[charCodes[\"lowercaseD\"] = lowercaseD] = \"lowercaseD\"; //  'd'\n    const lowercaseE = 101;\n    charCodes[charCodes[\"lowercaseE\"] = lowercaseE] = \"lowercaseE\"; //  'e'\n    const lowercaseF = 102;\n    charCodes[charCodes[\"lowercaseF\"] = lowercaseF] = \"lowercaseF\"; //  'f'\n    const lowercaseG = 103;\n    charCodes[charCodes[\"lowercaseG\"] = lowercaseG] = \"lowercaseG\"; //  'g'\n    const lowercaseH = 104;\n    charCodes[charCodes[\"lowercaseH\"] = lowercaseH] = \"lowercaseH\"; //  'h'\n    const lowercaseI = 105;\n    charCodes[charCodes[\"lowercaseI\"] = lowercaseI] = \"lowercaseI\"; //  'i'\n    const lowercaseJ = 106;\n    charCodes[charCodes[\"lowercaseJ\"] = lowercaseJ] = \"lowercaseJ\"; //  'j'\n    const lowercaseK = 107;\n    charCodes[charCodes[\"lowercaseK\"] = lowercaseK] = \"lowercaseK\"; //  'k'\n    const lowercaseL = 108;\n    charCodes[charCodes[\"lowercaseL\"] = lowercaseL] = \"lowercaseL\"; //  'l'\n    const lowercaseM = 109;\n    charCodes[charCodes[\"lowercaseM\"] = lowercaseM] = \"lowercaseM\"; //  'm'\n    const lowercaseN = 110;\n    charCodes[charCodes[\"lowercaseN\"] = lowercaseN] = \"lowercaseN\"; //  'n'\n    const lowercaseO = 111;\n    charCodes[charCodes[\"lowercaseO\"] = lowercaseO] = \"lowercaseO\"; //  'o'\n    const lowercaseP = 112;\n    charCodes[charCodes[\"lowercaseP\"] = lowercaseP] = \"lowercaseP\"; //  'p'\n    const lowercaseQ = 113;\n    charCodes[charCodes[\"lowercaseQ\"] = lowercaseQ] = \"lowercaseQ\"; //  'q'\n    const lowercaseR = 114;\n    charCodes[charCodes[\"lowercaseR\"] = lowercaseR] = \"lowercaseR\"; //  'r'\n    const lowercaseS = 115;\n    charCodes[charCodes[\"lowercaseS\"] = lowercaseS] = \"lowercaseS\"; //  's'\n    const lowercaseT = 116;\n    charCodes[charCodes[\"lowercaseT\"] = lowercaseT] = \"lowercaseT\"; //  't'\n    const lowercaseU = 117;\n    charCodes[charCodes[\"lowercaseU\"] = lowercaseU] = \"lowercaseU\"; //  'u'\n    const lowercaseV = 118;\n    charCodes[charCodes[\"lowercaseV\"] = lowercaseV] = \"lowercaseV\"; //  'v'\n    const lowercaseW = 119;\n    charCodes[charCodes[\"lowercaseW\"] = lowercaseW] = \"lowercaseW\"; //  'w'\n    const lowercaseX = 120;\n    charCodes[charCodes[\"lowercaseX\"] = lowercaseX] = \"lowercaseX\"; //  'x'\n    const lowercaseY = 121;\n    charCodes[charCodes[\"lowercaseY\"] = lowercaseY] = \"lowercaseY\"; //  'y'\n    const lowercaseZ = 122;\n    charCodes[charCodes[\"lowercaseZ\"] = lowercaseZ] = \"lowercaseZ\"; //  'z'\n    const leftCurlyBrace = 123;\n    charCodes[charCodes[\"leftCurlyBrace\"] = leftCurlyBrace] = \"leftCurlyBrace\"; //  '{'\n    const verticalBar = 124;\n    charCodes[charCodes[\"verticalBar\"] = verticalBar] = \"verticalBar\"; //  '|'\n    const rightCurlyBrace = 125;\n    charCodes[charCodes[\"rightCurlyBrace\"] = rightCurlyBrace] = \"rightCurlyBrace\"; //  '}'\n    const tilde = 126;\n    charCodes[charCodes[\"tilde\"] = tilde] = \"tilde\"; //  '~'\n    const nonBreakingSpace = 160;\n    charCodes[charCodes[\"nonBreakingSpace\"] = nonBreakingSpace] = \"nonBreakingSpace\";\n    // eslint-disable-next-line no-irregular-whitespace\n    const oghamSpaceMark = 5760;\n    charCodes[charCodes[\"oghamSpaceMark\"] = oghamSpaceMark] = \"oghamSpaceMark\"; // ' '\n    const lineSeparator = 8232;\n    charCodes[charCodes[\"lineSeparator\"] = lineSeparator] = \"lineSeparator\";\n    const paragraphSeparator = 8233;\n    charCodes[charCodes[\"paragraphSeparator\"] = paragraphSeparator] = \"paragraphSeparator\";\n})(exports.charCodes || (exports.charCodes = {}));\nfunction isDigit(code) {\n    return ((code >= exports.charCodes.digit0 && code <= exports.charCodes.digit9) ||\n        (code >= exports.charCodes.lowercaseA && code <= exports.charCodes.lowercaseF) ||\n        (code >= exports.charCodes.uppercaseA && code <= exports.charCodes.uppercaseF));\n}\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"isDigit"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/util/charcodes.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.isDigit = isDigit;\n    (function (charCodes) {\n        const backSpace = 8;\n        charCodes[charCodes[\"backSpace\"] = backSpace] = \"backSpace\";\n        const lineFeed = 10;\n        charCodes[charCodes[\"lineFeed\"] = lineFeed] = \"lineFeed\"; //  '\\n'\n        const tab = 9;\n        charCodes[charCodes[\"tab\"] = tab] = \"tab\"; //  '\\t'\n        const carriageReturn = 13;\n        charCodes[charCodes[\"carriageReturn\"] = carriageReturn] = \"carriageReturn\"; //  '\\r'\n        const shiftOut = 14;\n        charCodes[charCodes[\"shiftOut\"] = shiftOut] = \"shiftOut\";\n        const space = 32;\n        charCodes[charCodes[\"space\"] = space] = \"space\";\n        const exclamationMark = 33;\n        charCodes[charCodes[\"exclamationMark\"] = exclamationMark] = \"exclamationMark\"; //  '!'\n        const quotationMark = 34;\n        charCodes[charCodes[\"quotationMark\"] = quotationMark] = \"quotationMark\"; //  '\"'\n        const numberSign = 35;\n        charCodes[charCodes[\"numberSign\"] = numberSign] = \"numberSign\"; //  '#'\n        const dollarSign = 36;\n        charCodes[charCodes[\"dollarSign\"] = dollarSign] = \"dollarSign\"; //  '$'\n        const percentSign = 37;\n        charCodes[charCodes[\"percentSign\"] = percentSign] = \"percentSign\"; //  '%'\n        const ampersand = 38;\n        charCodes[charCodes[\"ampersand\"] = ampersand] = \"ampersand\"; //  '&'\n        const apostrophe = 39;\n        charCodes[charCodes[\"apostrophe\"] = apostrophe] = \"apostrophe\"; //  '''\n        const leftParenthesis = 40;\n        charCodes[charCodes[\"leftParenthesis\"] = leftParenthesis] = \"leftParenthesis\"; //  '('\n        const rightParenthesis = 41;\n        charCodes[charCodes[\"rightParenthesis\"] = rightParenthesis] = \"rightParenthesis\"; //  ')'\n        const asterisk = 42;\n        charCodes[charCodes[\"asterisk\"] = asterisk] = \"asterisk\"; //  '*'\n        const plusSign = 43;\n        charCodes[charCodes[\"plusSign\"] = plusSign] = \"plusSign\"; //  '+'\n        const comma = 44;\n        charCodes[charCodes[\"comma\"] = comma] = \"comma\"; //  ','\n        const dash = 45;\n        charCodes[charCodes[\"dash\"] = dash] = \"dash\"; //  '-'\n        const dot = 46;\n        charCodes[charCodes[\"dot\"] = dot] = \"dot\"; //  '.'\n        const slash = 47;\n        charCodes[charCodes[\"slash\"] = slash] = \"slash\"; //  '/'\n        const digit0 = 48;\n        charCodes[charCodes[\"digit0\"] = digit0] = \"digit0\"; //  '0'\n        const digit1 = 49;\n        charCodes[charCodes[\"digit1\"] = digit1] = \"digit1\"; //  '1'\n        const digit2 = 50;\n        charCodes[charCodes[\"digit2\"] = digit2] = \"digit2\"; //  '2'\n        const digit3 = 51;\n        charCodes[charCodes[\"digit3\"] = digit3] = \"digit3\"; //  '3'\n        const digit4 = 52;\n        charCodes[charCodes[\"digit4\"] = digit4] = \"digit4\"; //  '4'\n        const digit5 = 53;\n        charCodes[charCodes[\"digit5\"] = digit5] = \"digit5\"; //  '5'\n        const digit6 = 54;\n        charCodes[charCodes[\"digit6\"] = digit6] = \"digit6\"; //  '6'\n        const digit7 = 55;\n        charCodes[charCodes[\"digit7\"] = digit7] = \"digit7\"; //  '7'\n        const digit8 = 56;\n        charCodes[charCodes[\"digit8\"] = digit8] = \"digit8\"; //  '8'\n        const digit9 = 57;\n        charCodes[charCodes[\"digit9\"] = digit9] = \"digit9\"; //  '9'\n        const colon = 58;\n        charCodes[charCodes[\"colon\"] = colon] = \"colon\"; //  ':'\n        const semicolon = 59;\n        charCodes[charCodes[\"semicolon\"] = semicolon] = \"semicolon\"; //  ';'\n        const lessThan = 60;\n        charCodes[charCodes[\"lessThan\"] = lessThan] = \"lessThan\"; //  '<'\n        const equalsTo = 61;\n        charCodes[charCodes[\"equalsTo\"] = equalsTo] = \"equalsTo\"; //  '='\n        const greaterThan = 62;\n        charCodes[charCodes[\"greaterThan\"] = greaterThan] = \"greaterThan\"; //  '>'\n        const questionMark = 63;\n        charCodes[charCodes[\"questionMark\"] = questionMark] = \"questionMark\"; //  '?'\n        const atSign = 64;\n        charCodes[charCodes[\"atSign\"] = atSign] = \"atSign\"; //  '@'\n        const uppercaseA = 65;\n        charCodes[charCodes[\"uppercaseA\"] = uppercaseA] = \"uppercaseA\"; //  'A'\n        const uppercaseB = 66;\n        charCodes[charCodes[\"uppercaseB\"] = uppercaseB] = \"uppercaseB\"; //  'B'\n        const uppercaseC = 67;\n        charCodes[charCodes[\"uppercaseC\"] = uppercaseC] = \"uppercaseC\"; //  'C'\n        const uppercaseD = 68;\n        charCodes[charCodes[\"uppercaseD\"] = uppercaseD] = \"uppercaseD\"; //  'D'\n        const uppercaseE = 69;\n        charCodes[charCodes[\"uppercaseE\"] = uppercaseE] = \"uppercaseE\"; //  'E'\n        const uppercaseF = 70;\n        charCodes[charCodes[\"uppercaseF\"] = uppercaseF] = \"uppercaseF\"; //  'F'\n        const uppercaseG = 71;\n        charCodes[charCodes[\"uppercaseG\"] = uppercaseG] = \"uppercaseG\"; //  'G'\n        const uppercaseH = 72;\n        charCodes[charCodes[\"uppercaseH\"] = uppercaseH] = \"uppercaseH\"; //  'H'\n        const uppercaseI = 73;\n        charCodes[charCodes[\"uppercaseI\"] = uppercaseI] = \"uppercaseI\"; //  'I'\n        const uppercaseJ = 74;\n        charCodes[charCodes[\"uppercaseJ\"] = uppercaseJ] = \"uppercaseJ\"; //  'J'\n        const uppercaseK = 75;\n        charCodes[charCodes[\"uppercaseK\"] = uppercaseK] = \"uppercaseK\"; //  'K'\n        const uppercaseL = 76;\n        charCodes[charCodes[\"uppercaseL\"] = uppercaseL] = \"uppercaseL\"; //  'L'\n        const uppercaseM = 77;\n        charCodes[charCodes[\"uppercaseM\"] = uppercaseM] = \"uppercaseM\"; //  'M'\n        const uppercaseN = 78;\n        charCodes[charCodes[\"uppercaseN\"] = uppercaseN] = \"uppercaseN\"; //  'N'\n        const uppercaseO = 79;\n        charCodes[charCodes[\"uppercaseO\"] = uppercaseO] = \"uppercaseO\"; //  'O'\n        const uppercaseP = 80;\n        charCodes[charCodes[\"uppercaseP\"] = uppercaseP] = \"uppercaseP\"; //  'P'\n        const uppercaseQ = 81;\n        charCodes[charCodes[\"uppercaseQ\"] = uppercaseQ] = \"uppercaseQ\"; //  'Q'\n        const uppercaseR = 82;\n        charCodes[charCodes[\"uppercaseR\"] = uppercaseR] = \"uppercaseR\"; //  'R'\n        const uppercaseS = 83;\n        charCodes[charCodes[\"uppercaseS\"] = uppercaseS] = \"uppercaseS\"; //  'S'\n        const uppercaseT = 84;\n        charCodes[charCodes[\"uppercaseT\"] = uppercaseT] = \"uppercaseT\"; //  'T'\n        const uppercaseU = 85;\n        charCodes[charCodes[\"uppercaseU\"] = uppercaseU] = \"uppercaseU\"; //  'U'\n        const uppercaseV = 86;\n        charCodes[charCodes[\"uppercaseV\"] = uppercaseV] = \"uppercaseV\"; //  'V'\n        const uppercaseW = 87;\n        charCodes[charCodes[\"uppercaseW\"] = uppercaseW] = \"uppercaseW\"; //  'W'\n        const uppercaseX = 88;\n        charCodes[charCodes[\"uppercaseX\"] = uppercaseX] = \"uppercaseX\"; //  'X'\n        const uppercaseY = 89;\n        charCodes[charCodes[\"uppercaseY\"] = uppercaseY] = \"uppercaseY\"; //  'Y'\n        const uppercaseZ = 90;\n        charCodes[charCodes[\"uppercaseZ\"] = uppercaseZ] = \"uppercaseZ\"; //  'Z'\n        const leftSquareBracket = 91;\n        charCodes[charCodes[\"leftSquareBracket\"] = leftSquareBracket] = \"leftSquareBracket\"; //  '['\n        const backslash = 92;\n        charCodes[charCodes[\"backslash\"] = backslash] = \"backslash\"; //  '\\    '\n        const rightSquareBracket = 93;\n        charCodes[charCodes[\"rightSquareBracket\"] = rightSquareBracket] = \"rightSquareBracket\"; //  ']'\n        const caret = 94;\n        charCodes[charCodes[\"caret\"] = caret] = \"caret\"; //  '^'\n        const underscore = 95;\n        charCodes[charCodes[\"underscore\"] = underscore] = \"underscore\"; //  '_'\n        const graveAccent = 96;\n        charCodes[charCodes[\"graveAccent\"] = graveAccent] = \"graveAccent\"; //  '`'\n        const lowercaseA = 97;\n        charCodes[charCodes[\"lowercaseA\"] = lowercaseA] = \"lowercaseA\"; //  'a'\n        const lowercaseB = 98;\n        charCodes[charCodes[\"lowercaseB\"] = lowercaseB] = \"lowercaseB\"; //  'b'\n        const lowercaseC = 99;\n        charCodes[charCodes[\"lowercaseC\"] = lowercaseC] = \"lowercaseC\"; //  'c'\n        const lowercaseD = 100;\n        charCodes[charCodes[\"lowercaseD\"] = lowercaseD] = \"lowercaseD\"; //  'd'\n        const lowercaseE = 101;\n        charCodes[charCodes[\"lowercaseE\"] = lowercaseE] = \"lowercaseE\"; //  'e'\n        const lowercaseF = 102;\n        charCodes[charCodes[\"lowercaseF\"] = lowercaseF] = \"lowercaseF\"; //  'f'\n        const lowercaseG = 103;\n        charCodes[charCodes[\"lowercaseG\"] = lowercaseG] = \"lowercaseG\"; //  'g'\n        const lowercaseH = 104;\n        charCodes[charCodes[\"lowercaseH\"] = lowercaseH] = \"lowercaseH\"; //  'h'\n        const lowercaseI = 105;\n        charCodes[charCodes[\"lowercaseI\"] = lowercaseI] = \"lowercaseI\"; //  'i'\n        const lowercaseJ = 106;\n        charCodes[charCodes[\"lowercaseJ\"] = lowercaseJ] = \"lowercaseJ\"; //  'j'\n        const lowercaseK = 107;\n        charCodes[charCodes[\"lowercaseK\"] = lowercaseK] = \"lowercaseK\"; //  'k'\n        const lowercaseL = 108;\n        charCodes[charCodes[\"lowercaseL\"] = lowercaseL] = \"lowercaseL\"; //  'l'\n        const lowercaseM = 109;\n        charCodes[charCodes[\"lowercaseM\"] = lowercaseM] = \"lowercaseM\"; //  'm'\n        const lowercaseN = 110;\n        charCodes[charCodes[\"lowercaseN\"] = lowercaseN] = \"lowercaseN\"; //  'n'\n        const lowercaseO = 111;\n        charCodes[charCodes[\"lowercaseO\"] = lowercaseO] = \"lowercaseO\"; //  'o'\n        const lowercaseP = 112;\n        charCodes[charCodes[\"lowercaseP\"] = lowercaseP] = \"lowercaseP\"; //  'p'\n        const lowercaseQ = 113;\n        charCodes[charCodes[\"lowercaseQ\"] = lowercaseQ] = \"lowercaseQ\"; //  'q'\n        const lowercaseR = 114;\n        charCodes[charCodes[\"lowercaseR\"] = lowercaseR] = \"lowercaseR\"; //  'r'\n        const lowercaseS = 115;\n        charCodes[charCodes[\"lowercaseS\"] = lowercaseS] = \"lowercaseS\"; //  's'\n        const lowercaseT = 116;\n        charCodes[charCodes[\"lowercaseT\"] = lowercaseT] = \"lowercaseT\"; //  't'\n        const lowercaseU = 117;\n        charCodes[charCodes[\"lowercaseU\"] = lowercaseU] = \"lowercaseU\"; //  'u'\n        const lowercaseV = 118;\n        charCodes[charCodes[\"lowercaseV\"] = lowercaseV] = \"lowercaseV\"; //  'v'\n        const lowercaseW = 119;\n        charCodes[charCodes[\"lowercaseW\"] = lowercaseW] = \"lowercaseW\"; //  'w'\n        const lowercaseX = 120;\n        charCodes[charCodes[\"lowercaseX\"] = lowercaseX] = \"lowercaseX\"; //  'x'\n        const lowercaseY = 121;\n        charCodes[charCodes[\"lowercaseY\"] = lowercaseY] = \"lowercaseY\"; //  'y'\n        const lowercaseZ = 122;\n        charCodes[charCodes[\"lowercaseZ\"] = lowercaseZ] = \"lowercaseZ\"; //  'z'\n        const leftCurlyBrace = 123;\n        charCodes[charCodes[\"leftCurlyBrace\"] = leftCurlyBrace] = \"leftCurlyBrace\"; //  '{'\n        const verticalBar = 124;\n        charCodes[charCodes[\"verticalBar\"] = verticalBar] = \"verticalBar\"; //  '|'\n        const rightCurlyBrace = 125;\n        charCodes[charCodes[\"rightCurlyBrace\"] = rightCurlyBrace] = \"rightCurlyBrace\"; //  '}'\n        const tilde = 126;\n        charCodes[charCodes[\"tilde\"] = tilde] = \"tilde\"; //  '~'\n        const nonBreakingSpace = 160;\n        charCodes[charCodes[\"nonBreakingSpace\"] = nonBreakingSpace] = \"nonBreakingSpace\";\n        // eslint-disable-next-line no-irregular-whitespace\n        const oghamSpaceMark = 5760;\n        charCodes[charCodes[\"oghamSpaceMark\"] = oghamSpaceMark] = \"oghamSpaceMark\"; // ' '\n        const lineSeparator = 8232;\n        charCodes[charCodes[\"lineSeparator\"] = lineSeparator] = \"lineSeparator\";\n        const paragraphSeparator = 8233;\n        charCodes[charCodes[\"paragraphSeparator\"] = paragraphSeparator] = \"paragraphSeparator\";\n    })(exports.charCodes || (exports.charCodes = {}));\n    function isDigit(code) {\n        return ((code >= exports.charCodes.digit0 && code <= exports.charCodes.digit9) ||\n            (code >= exports.charCodes.lowercaseA && code <= exports.charCodes.lowercaseF) ||\n            (code >= exports.charCodes.uppercaseA && code <= exports.charCodes.uppercaseF));\n    }\n}\n","min_source":"function _(e,a,r,c,s){c(),r.isDigit=function(e){return e>=r.charCodes.digit0&&e<=r.charCodes.digit9||e>=r.charCodes.lowercaseA&&e<=r.charCodes.lowercaseF||e>=r.charCodes.uppercaseA&&e<=r.charCodes.uppercaseF},function(e){e[e.backSpace=8]=\"backSpace\";e[e.lineFeed=10]=\"lineFeed\";e[e.tab=9]=\"tab\";e[e.carriageReturn=13]=\"carriageReturn\";e[e.shiftOut=14]=\"shiftOut\";e[e.space=32]=\"space\";e[e.exclamationMark=33]=\"exclamationMark\";e[e.quotationMark=34]=\"quotationMark\";e[e.numberSign=35]=\"numberSign\";e[e.dollarSign=36]=\"dollarSign\";e[e.percentSign=37]=\"percentSign\";e[e.ampersand=38]=\"ampersand\";e[e.apostrophe=39]=\"apostrophe\";e[e.leftParenthesis=40]=\"leftParenthesis\";e[e.rightParenthesis=41]=\"rightParenthesis\";e[e.asterisk=42]=\"asterisk\";e[e.plusSign=43]=\"plusSign\";e[e.comma=44]=\"comma\";e[e.dash=45]=\"dash\";e[e.dot=46]=\"dot\";e[e.slash=47]=\"slash\";e[e.digit0=48]=\"digit0\";e[e.digit1=49]=\"digit1\";e[e.digit2=50]=\"digit2\";e[e.digit3=51]=\"digit3\";e[e.digit4=52]=\"digit4\";e[e.digit5=53]=\"digit5\";e[e.digit6=54]=\"digit6\";e[e.digit7=55]=\"digit7\";e[e.digit8=56]=\"digit8\";e[e.digit9=57]=\"digit9\";e[e.colon=58]=\"colon\";e[e.semicolon=59]=\"semicolon\";e[e.lessThan=60]=\"lessThan\";e[e.equalsTo=61]=\"equalsTo\";e[e.greaterThan=62]=\"greaterThan\";e[e.questionMark=63]=\"questionMark\";e[e.atSign=64]=\"atSign\";e[e.uppercaseA=65]=\"uppercaseA\";e[e.uppercaseB=66]=\"uppercaseB\";e[e.uppercaseC=67]=\"uppercaseC\";e[e.uppercaseD=68]=\"uppercaseD\";e[e.uppercaseE=69]=\"uppercaseE\";e[e.uppercaseF=70]=\"uppercaseF\";e[e.uppercaseG=71]=\"uppercaseG\";e[e.uppercaseH=72]=\"uppercaseH\";e[e.uppercaseI=73]=\"uppercaseI\";e[e.uppercaseJ=74]=\"uppercaseJ\";e[e.uppercaseK=75]=\"uppercaseK\";e[e.uppercaseL=76]=\"uppercaseL\";e[e.uppercaseM=77]=\"uppercaseM\";e[e.uppercaseN=78]=\"uppercaseN\";e[e.uppercaseO=79]=\"uppercaseO\";e[e.uppercaseP=80]=\"uppercaseP\";e[e.uppercaseQ=81]=\"uppercaseQ\";e[e.uppercaseR=82]=\"uppercaseR\";e[e.uppercaseS=83]=\"uppercaseS\";e[e.uppercaseT=84]=\"uppercaseT\";e[e.uppercaseU=85]=\"uppercaseU\";e[e.uppercaseV=86]=\"uppercaseV\";e[e.uppercaseW=87]=\"uppercaseW\";e[e.uppercaseX=88]=\"uppercaseX\";e[e.uppercaseY=89]=\"uppercaseY\";e[e.uppercaseZ=90]=\"uppercaseZ\";e[e.leftSquareBracket=91]=\"leftSquareBracket\";e[e.backslash=92]=\"backslash\";e[e.rightSquareBracket=93]=\"rightSquareBracket\";e[e.caret=94]=\"caret\";e[e.underscore=95]=\"underscore\";e[e.graveAccent=96]=\"graveAccent\";e[e.lowercaseA=97]=\"lowercaseA\";e[e.lowercaseB=98]=\"lowercaseB\";e[e.lowercaseC=99]=\"lowercaseC\";e[e.lowercaseD=100]=\"lowercaseD\";e[e.lowercaseE=101]=\"lowercaseE\";e[e.lowercaseF=102]=\"lowercaseF\";e[e.lowercaseG=103]=\"lowercaseG\";e[e.lowercaseH=104]=\"lowercaseH\";e[e.lowercaseI=105]=\"lowercaseI\";e[e.lowercaseJ=106]=\"lowercaseJ\";e[e.lowercaseK=107]=\"lowercaseK\";e[e.lowercaseL=108]=\"lowercaseL\";e[e.lowercaseM=109]=\"lowercaseM\";e[e.lowercaseN=110]=\"lowercaseN\";e[e.lowercaseO=111]=\"lowercaseO\";e[e.lowercaseP=112]=\"lowercaseP\";e[e.lowercaseQ=113]=\"lowercaseQ\";e[e.lowercaseR=114]=\"lowercaseR\";e[e.lowercaseS=115]=\"lowercaseS\";e[e.lowercaseT=116]=\"lowercaseT\";e[e.lowercaseU=117]=\"lowercaseU\";e[e.lowercaseV=118]=\"lowercaseV\";e[e.lowercaseW=119]=\"lowercaseW\";e[e.lowercaseX=120]=\"lowercaseX\";e[e.lowercaseY=121]=\"lowercaseY\";e[e.lowercaseZ=122]=\"lowercaseZ\";e[e.leftCurlyBrace=123]=\"leftCurlyBrace\";e[e.verticalBar=124]=\"verticalBar\";e[e.rightCurlyBrace=125]=\"rightCurlyBrace\";e[e.tilde=126]=\"tilde\";e[e.nonBreakingSpace=160]=\"nonBreakingSpace\";e[e.oghamSpaceMark=5760]=\"oghamSpaceMark\";e[e.lineSeparator=8232]=\"lineSeparator\";e[e.paragraphSeparator=8233]=\"paragraphSeparator\"}(r.charCodes||(r.charCodes={}))}\n//# sourceMappingURL=charcodes.min.js.map","min_map":"{\"version\":3,\"file\":\"charcodes.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"isDigit\",\"code\",\"charCodes\",\"digit0\",\"digit9\",\"lowercaseA\",\"lowercaseF\",\"uppercaseA\",\"uppercaseF\"],\"sources\":[\"0\"],\"mappings\":\"AAAgD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC7FD,IACAD,EAAQG,QAoNR,SAAiBC,GACb,OAASA,GAAQJ,EAAQK,UAAUC,QAAUF,GAAQJ,EAAQK,UAAUE,QAClEH,GAAQJ,EAAQK,UAAUG,YAAcJ,GAAQJ,EAAQK,UAAUI,YAClEL,GAAQJ,EAAQK,UAAUK,YAAcN,GAAQJ,EAAQK,UAAUM,UAC3E,EAvNA,SAAWN,GAEPA,EAAUA,EAAqB,UADb,GAC8B,YAEhDA,EAAUA,EAAoB,SADb,IAC6B,WAE9CA,EAAUA,EAAe,IADb,GACwB,MAEpCA,EAAUA,EAA0B,eADb,IACmC,iBAE1DA,EAAUA,EAAoB,SADb,IAC6B,WAE9CA,EAAUA,EAAiB,MADb,IAC0B,QAExCA,EAAUA,EAA2B,gBADb,IACoC,kBAE5DA,EAAUA,EAAyB,cADb,IACkC,gBAExDA,EAAUA,EAAsB,WADb,IAC+B,aAElDA,EAAUA,EAAsB,WADb,IAC+B,aAElDA,EAAUA,EAAuB,YADb,IACgC,cAEpDA,EAAUA,EAAqB,UADb,IAC8B,YAEhDA,EAAUA,EAAsB,WADb,IAC+B,aAElDA,EAAUA,EAA2B,gBADb,IACoC,k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A,EAAsB,WADb,KAC+B,aAElDA,EAAUA,EAAsB,WADb,KAC+B,aAElDA,EAAUA,EAAsB,WADb,KAC+B,aAElDA,EAAUA,EAAsB,WADb,KAC+B,aAElDA,EAAUA,EAAsB,WADb,KAC+B,aAElDA,EAAUA,EAAsB,WADb,KAC+B,aAElDA,EAAUA,EAAsB,WADb,KAC+B,aAElDA,EAAUA,EAAsB,WADb,KAC+B,aAElDA,EAAUA,EAAsB,WADb,KAC+B,aAElDA,EAAUA,EAAsB,WADb,KAC+B,aAElDA,EAAUA,EAA0B,eADb,KACmC,iBAE1DA,EAAUA,EAAuB,YADb,KACgC,cAEpDA,EAAUA,EAA2B,gBADb,KACoC,kBAE5DA,EAAUA,EAAiB,MADb,KAC0B,QAExCA,EAAUA,EAA4B,iBADb,KACqC,mBAG9DA,EAAUA,EAA0B,eADb,MACmC,iBAE1DA,EAAUA,EAAyB,cADb,MACkC,gBAExDA,EAAUA,EAA8B,mBADb,MACuC,oBACrE,CAlND,CAkNGL,EAAQK,YAAcL,EAAQK,UAAY,CAAC,GAMlD\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/util.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/traverser/util.js","resolution":"ESM","id":"bc94bbadc1","hash":"bc94bbadc13af2035732efaf8df834557a92fd3224b46cd5f9592c67af73f8ec","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isContextual = isContextual;\nexports.isLookaheadContextual = isLookaheadContextual;\nexports.eatContextual = eatContextual;\nexports.expectContextual = expectContextual;\nexports.canInsertSemicolon = canInsertSemicolon;\nexports.hasPrecedingLineBreak = hasPrecedingLineBreak;\nexports.hasFollowingLineBreak = hasFollowingLineBreak;\nexports.isLineTerminator = isLineTerminator;\nexports.semicolon = semicolon;\nexports.expect = expect;\nexports.unexpected = unexpected;\nconst index_1 = require(\"../tokenizer/index\");\nconst types_1 = require(\"../tokenizer/types\");\nconst charcodes_1 = require(\"../util/charcodes\");\nconst base_1 = require(\"./base\");\n// ## Parser utilities\n// Tests whether parsed token is a contextual keyword.\nfunction isContextual(contextualKeyword) {\n    return base_1.state.contextualKeyword === contextualKeyword;\n}\nfunction isLookaheadContextual(contextualKeyword) {\n    const l = (0, index_1.lookaheadTypeAndKeyword)();\n    return l.type === types_1.TokenType.name && l.contextualKeyword === contextualKeyword;\n}\n// Consumes contextual keyword if possible.\nfunction eatContextual(contextualKeyword) {\n    return base_1.state.contextualKeyword === contextualKeyword && (0, index_1.eat)(types_1.TokenType.name);\n}\n// Asserts that following token is given contextual keyword.\nfunction expectContextual(contextualKeyword) {\n    if (!eatContextual(contextualKeyword)) {\n        unexpected();\n    }\n}\n// Test whether a semicolon can be inserted at the current position.\nfunction canInsertSemicolon() {\n    return (0, index_1.match)(types_1.TokenType.eof) || (0, index_1.match)(types_1.TokenType.braceR) || hasPrecedingLineBreak();\n}\nfunction hasPrecedingLineBreak() {\n    const prevToken = base_1.state.tokens[base_1.state.tokens.length - 1];\n    const lastTokEnd = prevToken ? prevToken.end : 0;\n    for (let i = lastTokEnd; i < base_1.state.start; i++) {\n        const code = base_1.input.charCodeAt(i);\n        if (code === charcodes_1.charCodes.lineFeed ||\n            code === charcodes_1.charCodes.carriageReturn ||\n            code === 0x2028 ||\n            code === 0x2029) {\n            return true;\n        }\n    }\n    return false;\n}\nfunction hasFollowingLineBreak() {\n    const nextStart = (0, index_1.nextTokenStart)();\n    for (let i = base_1.state.end; i < nextStart; i++) {\n        const code = base_1.input.charCodeAt(i);\n        if (code === charcodes_1.charCodes.lineFeed ||\n            code === charcodes_1.charCodes.carriageReturn ||\n            code === 0x2028 ||\n            code === 0x2029) {\n            return true;\n        }\n    }\n    return false;\n}\nfunction isLineTerminator() {\n    return (0, index_1.eat)(types_1.TokenType.semi) || canInsertSemicolon();\n}\n// Consume a semicolon, or, failing that, see if we are allowed to\n// pretend that there is a semicolon at this position.\nfunction semicolon() {\n    if (!isLineTerminator()) {\n        unexpected('Unexpected token, expected \";\"');\n    }\n}\n// Expect a token of a given type. If found, consume it, otherwise,\n// raise an unexpected token error at given pos.\nfunction expect(type) {\n    const matched = (0, index_1.eat)(type);\n    if (!matched) {\n        unexpected(`Unexpected token, expected \"${(0, types_1.formatTokenType)(type)}\"`);\n    }\n}\n/**\n * Transition the parser to an error state. All code needs to be written to naturally unwind in this\n * state, which allows us to backtrack without exceptions and without error plumbing everywhere.\n */\nfunction unexpected(message = \"Unexpected token\", pos = base_1.state.start) {\n    if (base_1.state.error) {\n        return;\n    }\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    const err = new SyntaxError(message);\n    err.pos = pos;\n    base_1.state.error = err;\n    base_1.state.pos = base_1.input.length;\n    (0, index_1.finishToken)(types_1.TokenType.eof);\n}\n","type":"js","dependency_paths":[["../tokenizer/index","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["../tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["../util/charcodes","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/charcodes.js"],["./base","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/base.js"]],"dependency_map":[],"exported":[{"type":"named","name":"isContextual"},{"type":"named","name":"isLookaheadContextual"},{"type":"named","name":"eatContextual"},{"type":"named","name":"expectContextual"},{"type":"named","name":"canInsertSemicolon"},{"type":"named","name":"hasPrecedingLineBreak"},{"type":"named","name":"hasFollowingLineBreak"},{"type":"named","name":"isLineTerminator"},{"type":"named","name":"semicolon"},{"type":"named","name":"expect"},{"type":"named","name":"unexpected"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/traverser/util.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.isContextual = isContextual;\n    exports.isLookaheadContextual = isLookaheadContextual;\n    exports.eatContextual = eatContextual;\n    exports.expectContextual = expectContextual;\n    exports.canInsertSemicolon = canInsertSemicolon;\n    exports.hasPrecedingLineBreak = hasPrecedingLineBreak;\n    exports.hasFollowingLineBreak = hasFollowingLineBreak;\n    exports.isLineTerminator = isLineTerminator;\n    exports.semicolon = semicolon;\n    exports.expect = expect;\n    exports.unexpected = unexpected;\n    const index_1 = require(\"bfb18d0576\") /* ../tokenizer/index */;\n    const types_1 = require(\"f0c35cbd76\") /* ../tokenizer/types */;\n    const charcodes_1 = require(\"22746c8ce8\") /* ../util/charcodes */;\n    const base_1 = require(\"540718e523\") /* ./base */;\n    // ## Parser utilities\n    // Tests whether parsed token is a contextual keyword.\n    function isContextual(contextualKeyword) {\n        return base_1.state.contextualKeyword === contextualKeyword;\n    }\n    function isLookaheadContextual(contextualKeyword) {\n        const l = (0, index_1.lookaheadTypeAndKeyword)();\n        return l.type === types_1.TokenType.name && l.contextualKeyword === contextualKeyword;\n    }\n    // Consumes contextual keyword if possible.\n    function eatContextual(contextualKeyword) {\n        return base_1.state.contextualKeyword === contextualKeyword && (0, index_1.eat)(types_1.TokenType.name);\n    }\n    // Asserts that following token is given contextual keyword.\n    function expectContextual(contextualKeyword) {\n        if (!eatContextual(contextualKeyword)) {\n            unexpected();\n        }\n    }\n    // Test whether a semicolon can be inserted at the current position.\n    function canInsertSemicolon() {\n        return (0, index_1.match)(types_1.TokenType.eof) || (0, index_1.match)(types_1.TokenType.braceR) || hasPrecedingLineBreak();\n    }\n    function hasPrecedingLineBreak() {\n        const prevToken = base_1.state.tokens[base_1.state.tokens.length - 1];\n        const lastTokEnd = prevToken ? prevToken.end : 0;\n        for (let i = lastTokEnd; i < base_1.state.start; i++) {\n            const code = base_1.input.charCodeAt(i);\n            if (code === charcodes_1.charCodes.lineFeed ||\n                code === charcodes_1.charCodes.carriageReturn ||\n                code === 0x2028 ||\n                code === 0x2029) {\n                return true;\n            }\n        }\n        return false;\n    }\n    function hasFollowingLineBreak() {\n        const nextStart = (0, index_1.nextTokenStart)();\n        for (let i = base_1.state.end; i < nextStart; i++) {\n            const code = base_1.input.charCodeAt(i);\n            if (code === charcodes_1.charCodes.lineFeed ||\n                code === charcodes_1.charCodes.carriageReturn ||\n                code === 0x2028 ||\n                code === 0x2029) {\n                return true;\n            }\n        }\n        return false;\n    }\n    function isLineTerminator() {\n        return (0, index_1.eat)(types_1.TokenType.semi) || canInsertSemicolon();\n    }\n    // Consume a semicolon, or, failing that, see if we are allowed to\n    // pretend that there is a semicolon at this position.\n    function semicolon() {\n        if (!isLineTerminator()) {\n            unexpected('Unexpected token, expected \";\"');\n        }\n    }\n    // Expect a token of a given type. If found, consume it, otherwise,\n    // raise an unexpected token error at given pos.\n    function expect(type) {\n        const matched = (0, index_1.eat)(type);\n        if (!matched) {\n            unexpected(`Unexpected token, expected \"${(0, types_1.formatTokenType)(type)}\"`);\n        }\n    }\n    /**\n     * Transition the parser to an error state. All code needs to be written to naturally unwind in this\n     * state, which allows us to backtrack without exceptions and without error plumbing everywhere.\n     */\n    function unexpected(message = \"Unexpected token\", pos = base_1.state.start) {\n        if (base_1.state.error) {\n            return;\n        }\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        const err = new SyntaxError(message);\n        err.pos = pos;\n        base_1.state.error = err;\n        base_1.state.pos = base_1.input.length;\n        (0, index_1.finishToken)(types_1.TokenType.eof);\n    }\n}\n","min_source":"function _(e,t,n,o,r){o(),n.isContextual=function(e){return s.state.contextualKeyword===e},n.isLookaheadContextual=function(e){const t=(0,a.lookaheadTypeAndKeyword)();return t.type===c.TokenType.name&&t.contextualKeyword===e},n.eatContextual=u,n.expectContextual=function(e){u(e)||k()},n.canInsertSemicolon=d,n.hasPrecedingLineBreak=f,n.hasFollowingLineBreak=function(){const e=(0,a.nextTokenStart)();for(let t=s.state.end;t<e;t++){const e=s.input.charCodeAt(t);if(e===i.charCodes.lineFeed||e===i.charCodes.carriageReturn||8232===e||8233===e)return!0}return!1},n.isLineTerminator=p,n.semicolon=function(){p()||k('Unexpected token, expected \";\"')},n.expect=function(e){(0,a.eat)(e)||k(`Unexpected token, expected \"${(0,c.formatTokenType)(e)}\"`)},n.unexpected=k;const a=e(\"bfb18d0576\"),c=e(\"f0c35cbd76\"),i=e(\"22746c8ce8\"),s=e(\"540718e523\");function u(e){return s.state.contextualKeyword===e&&(0,a.eat)(c.TokenType.name)}function d(){return(0,a.match)(c.TokenType.eof)||(0,a.match)(c.TokenType.braceR)||f()}function f(){const e=s.state.tokens[s.state.tokens.length-1];for(let t=e?e.end:0;t<s.state.start;t++){const e=s.input.charCodeAt(t);if(e===i.charCodes.lineFeed||e===i.charCodes.carriageReturn||8232===e||8233===e)return!0}return!1}function p(){return(0,a.eat)(c.TokenType.semi)||d()}function k(e=\"Unexpected token\",t=s.state.start){if(s.state.error)return;const n=new SyntaxError(e);n.pos=t,s.state.error=n,s.state.pos=s.input.length,(0,a.finishToken)(c.TokenType.eof)}}\n//# sourceMappingURL=util.min.js.map","min_map":"{\"version\":3,\"file\":\"util.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"isContextual\",\"contextualKeyword\",\"base_1\",\"state\",\"isLookaheadContextual\",\"l\",\"index_1\",\"lookaheadTypeAndKeyword\",\"type\",\"types_1\",\"TokenType\",\"name\",\"eatContextual\",\"expectContextual\",\"unexpected\",\"canInsertSemicolon\",\"hasPrecedingLineBreak\",\"hasFollowingLineBreak\",\"nextStart\",\"nextTokenStart\",\"i\",\"end\",\"code\",\"input\",\"charCodeAt\",\"charcodes_1\",\"charCodes\",\"lineFeed\",\"carriageReturn\",\"isLineTerminator\",\"semicolon\",\"expect\",\"eat\",\"formatTokenType\",\"match\",\"eof\",\"braceR\",\"prevToken\",\"tokens\",\"length\",\"start\",\"semi\",\"message\",\"pos\",\"error\",\"err\",\"SyntaxError\",\"finishToken\"],\"sources\":[\"0\"],\"mappings\":\"AAAgD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC7FD,IACAD,EAAQG,a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,MAAMmC,OAAOpC,EAAOC,MAAMmC,OAAOC,OAAS,GAEnE,IAAK,IAAInB,EADUiB,EAAYA,EAAUhB,IAAM,EACtBD,EAAIlB,EAAOC,MAAMqC,MAAOpB,IAAK,CAClD,MAAME,EAAOpB,EAAOqB,MAAMC,WAAWJ,GACrC,GAAIE,IAASG,EAAYC,UAAUC,UAC/BL,IAASG,EAAYC,UAAUE,gBACtB,OAATN,GACS,OAATA,EACA,OAAO,CAEf,CACA,OAAO,CACX,CAcA,SAASO,IACL,OAAO,EAAIvB,EAAQ0B,KAAKvB,EAAQC,UAAU+B,OAAS1B,GACvD,CAoBA,SAASD,EAAW4B,EAAU,mBAAoBC,EAAMzC,EAAOC,MAAMqC,OACjE,GAAItC,EAAOC,MAAMyC,MACb,OAGJ,MAAMC,EAAM,IAAIC,YAAYJ,GAC5BG,EAAIF,IAAMA,EACVzC,EAAOC,MAAMyC,MAAQC,EACrB3C,EAAOC,MAAMwC,IAAMzC,EAAOqB,MAAMgB,QAChC,EAAIjC,EAAQyC,aAAatC,EAAQC,UAAUyB,IAC/C,CACJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/identifier.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/util/identifier.js","resolution":"ESM","id":"364148c9f0","hash":"364148c9f08eddbeba4cacc2c0e282a1a9bd5ef0324922de0258c47225fcc6cf","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.IS_IDENTIFIER_START = exports.IS_IDENTIFIER_CHAR = void 0;\nconst charcodes_1 = require(\"./charcodes\");\nconst whitespace_1 = require(\"./whitespace\");\nfunction computeIsIdentifierChar(code) {\n    if (code < 48)\n        return code === 36;\n    if (code < 58)\n        return true;\n    if (code < 65)\n        return false;\n    if (code < 91)\n        return true;\n    if (code < 97)\n        return code === 95;\n    if (code < 123)\n        return true;\n    if (code < 128)\n        return false;\n    throw new Error(\"Should not be called with non-ASCII char code.\");\n}\nexports.IS_IDENTIFIER_CHAR = new Uint8Array(65536);\nfor (let i = 0; i < 128; i++) {\n    exports.IS_IDENTIFIER_CHAR[i] = computeIsIdentifierChar(i) ? 1 : 0;\n}\nfor (let i = 128; i < 65536; i++) {\n    exports.IS_IDENTIFIER_CHAR[i] = 1;\n}\n// Aside from whitespace and newlines, all characters outside the ASCII space are either\n// identifier characters or invalid. Since we're not performing code validation, we can just\n// treat all invalid characters as identifier characters.\nfor (const whitespaceChar of whitespace_1.WHITESPACE_CHARS) {\n    exports.IS_IDENTIFIER_CHAR[whitespaceChar] = 0;\n}\nexports.IS_IDENTIFIER_CHAR[0x2028] = 0;\nexports.IS_IDENTIFIER_CHAR[0x2029] = 0;\nexports.IS_IDENTIFIER_START = exports.IS_IDENTIFIER_CHAR.slice();\nfor (let numChar = charcodes_1.charCodes.digit0; numChar <= charcodes_1.charCodes.digit9; numChar++) {\n    exports.IS_IDENTIFIER_START[numChar] = 0;\n}\n","type":"js","dependency_paths":[["./charcodes","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/charcodes.js"],["./whitespace","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/whitespace.js"]],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/util/identifier.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const charcodes_1 = require(\"22746c8ce8\") /* ./charcodes */;\n    const whitespace_1 = require(\"2a3176644a\") /* ./whitespace */;\n    function computeIsIdentifierChar(code) {\n        if (code < 48)\n            return code === 36;\n        if (code < 58)\n            return true;\n        if (code < 65)\n            return false;\n        if (code < 91)\n            return true;\n        if (code < 97)\n            return code === 95;\n        if (code < 123)\n            return true;\n        if (code < 128)\n            return false;\n        throw new Error(\"Should not be called with non-ASCII char code.\");\n    }\n    exports.IS_IDENTIFIER_CHAR = new Uint8Array(65536);\n    for (let i = 0; i < 128; i++) {\n        exports.IS_IDENTIFIER_CHAR[i] = computeIsIdentifierChar(i) ? 1 : 0;\n    }\n    for (let i = 128; i < 65536; i++) {\n        exports.IS_IDENTIFIER_CHAR[i] = 1;\n    }\n    // Aside from whitespace and newlines, all characters outside the ASCII space are either\n    // identifier characters or invalid. Since we're not performing code validation, we can just\n    // treat all invalid characters as identifier characters.\n    for (const whitespaceChar of whitespace_1.WHITESPACE_CHARS) {\n        exports.IS_IDENTIFIER_CHAR[whitespaceChar] = 0;\n    }\n    exports.IS_IDENTIFIER_CHAR[0x2028] = 0;\n    exports.IS_IDENTIFIER_CHAR[0x2029] = 0;\n    exports.IS_IDENTIFIER_START = exports.IS_IDENTIFIER_CHAR.slice();\n    for (let numChar = charcodes_1.charCodes.digit0; numChar <= charcodes_1.charCodes.digit9; numChar++) {\n        exports.IS_IDENTIFIER_START[numChar] = 0;\n    }\n}\n","min_source":"function _(I,r,E,t,_){t();const e=I(\"22746c8ce8\"),n=I(\"2a3176644a\");function R(I){if(I<48)return 36===I;if(I<58)return!0;if(I<65)return!1;if(I<91)return!0;if(I<97)return 95===I;if(I<123)return!0;if(I<128)return!1;throw new Error(\"Should not be called with non-ASCII char code.\")}E.IS_IDENTIFIER_CHAR=new Uint8Array(65536);for(let I=0;I<128;I++)E.IS_IDENTIFIER_CHAR[I]=R(I)?1:0;for(let I=128;I<65536;I++)E.IS_IDENTIFIER_CHAR[I]=1;for(const I of n.WHITESPACE_CHARS)E.IS_IDENTIFIER_CHAR[I]=0;E.IS_IDENTIFIER_CHAR[8232]=0,E.IS_IDENTIFIER_CHAR[8233]=0,E.IS_IDENTIFIER_START=E.IS_IDENTIFIER_CHAR.slice();for(let I=e.charCodes.digit0;I<=e.charCodes.digit9;I++)E.IS_IDENTIFIER_START[I]=0}\n//# sourceMappingURL=identifier.min.js.map","min_map":"{\"version\":3,\"file\":\"identifier.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"charcodes_1\",\"whitespace_1\",\"computeIsIdentifierChar\",\"code\",\"Error\",\"IS_IDENTIFIER_CHAR\",\"Uint8Array\",\"i\",\"whitespaceChar\",\"WHITESPACE_CHARS\",\"IS_IDENTIFIER_START\",\"slice\",\"numChar\",\"charCodes\",\"digit0\",\"digit9\"],\"sources\":[\"0\"],\"mappings\":\"AAAiD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC9FD,IACA,MAAME,EAAcL,EAAQ,cACtBM,EAAeN,EAAQ,cAC7B,SAASO,EAAwBC,GAC7B,GAAIA,EAAO,GACP,OAAgB,KAATA,EACX,GAAIA,EAAO,GACP,OAAO,EACX,GAAIA,EAAO,GACP,OAAO,EACX,GAAIA,EAAO,GACP,OAAO,EACX,GAAIA,EAAO,GACP,OAAgB,KAATA,EACX,GAAIA,EAAO,IACP,OAAO,EACX,GAAIA,EAAO,IACP,OAAO,EACX,MAAM,IAAIC,MAAM,iDACpB,CACAP,EAAQQ,mBAAqB,IAAIC,WAAW,OAC5C,IAAK,IAAIC,EAAI,EAAGA,EAAI,IAAKA,IACrBV,EAAQQ,mBAAmBE,GAAKL,EAAwBK,GAAK,EAAI,EAErE,IAAK,IAAIA,EAAI,IAAKA,EAAI,MAAOA,IACzBV,EAAQQ,mBAAmBE,GAAK,EAKpC,IAAK,MAAMC,KAAkBP,EAAaQ,iBACtCZ,EAAQQ,mBAAmBG,GAAkB,EAEjDX,EAAQQ,mBAAmB,MAAU,EACrCR,EAAQQ,mBAAmB,MAAU,EACrCR,EAAQa,oBAAsBb,EAAQQ,mBAAmBM,QACzD,IAAK,IAAIC,EAAUZ,EAAYa,UAAUC,OAAQF,GAAWZ,EAAYa,UAAUE,OAAQH,IACtFf,EAAQa,oBAAoBE,GAAW,CAE/C\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/whitespace.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/util/whitespace.js","resolution":"ESM","id":"2a3176644a","hash":"2a3176644abac21cf4d3014eb684f414fa5eb3819d56536cbaf2f8cfb27170a3","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.IS_WHITESPACE = exports.skipWhiteSpace = exports.WHITESPACE_CHARS = void 0;\nconst charcodes_1 = require(\"./charcodes\");\n// https://tc39.github.io/ecma262/#sec-white-space\nexports.WHITESPACE_CHARS = [\n    0x0009,\n    0x000b,\n    0x000c,\n    charcodes_1.charCodes.space,\n    charcodes_1.charCodes.nonBreakingSpace,\n    charcodes_1.charCodes.oghamSpaceMark,\n    0x2000, // EN QUAD\n    0x2001, // EM QUAD\n    0x2002, // EN SPACE\n    0x2003, // EM SPACE\n    0x2004, // THREE-PER-EM SPACE\n    0x2005, // FOUR-PER-EM SPACE\n    0x2006, // SIX-PER-EM SPACE\n    0x2007, // FIGURE SPACE\n    0x2008, // PUNCTUATION SPACE\n    0x2009, // THIN SPACE\n    0x200a, // HAIR SPACE\n    0x202f, // NARROW NO-BREAK SPACE\n    0x205f, // MEDIUM MATHEMATICAL SPACE\n    0x3000, // IDEOGRAPHIC SPACE\n    0xfeff, // ZERO WIDTH NO-BREAK SPACE\n];\nexports.skipWhiteSpace = /(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g;\nexports.IS_WHITESPACE = new Uint8Array(65536);\nfor (const char of exports.WHITESPACE_CHARS) {\n    exports.IS_WHITESPACE[char] = 1;\n}\n","type":"js","dependency_paths":[["./charcodes","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/charcodes.js"]],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/util/whitespace.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const charcodes_1 = require(\"22746c8ce8\") /* ./charcodes */;\n    // https://tc39.github.io/ecma262/#sec-white-space\n    exports.WHITESPACE_CHARS = [\n        0x0009,\n        0x000b,\n        0x000c,\n        charcodes_1.charCodes.space,\n        charcodes_1.charCodes.nonBreakingSpace,\n        charcodes_1.charCodes.oghamSpaceMark,\n        0x2000, // EN QUAD\n        0x2001, // EM QUAD\n        0x2002, // EN SPACE\n        0x2003, // EM SPACE\n        0x2004, // THREE-PER-EM SPACE\n        0x2005, // FOUR-PER-EM SPACE\n        0x2006, // SIX-PER-EM SPACE\n        0x2007, // FIGURE SPACE\n        0x2008, // PUNCTUATION SPACE\n        0x2009, // THIN SPACE\n        0x200a, // HAIR SPACE\n        0x202f, // NARROW NO-BREAK SPACE\n        0x205f, // MEDIUM MATHEMATICAL SPACE\n        0x3000, // IDEOGRAPHIC SPACE\n        0xfeff, // ZERO WIDTH NO-BREAK SPACE\n    ];\n    exports.skipWhiteSpace = /(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g;\n    exports.IS_WHITESPACE = new Uint8Array(65536);\n    for (const char of exports.WHITESPACE_CHARS) {\n        exports.IS_WHITESPACE[char] = 1;\n    }\n}\n","min_source":"function _(c,a,e,S,o){S();const n=c(\"22746c8ce8\");e.WHITESPACE_CHARS=[9,11,12,n.charCodes.space,n.charCodes.nonBreakingSpace,n.charCodes.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],e.skipWhiteSpace=/(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g,e.IS_WHITESPACE=new Uint8Array(65536);for(const c of e.WHITESPACE_CHARS)e.IS_WHITESPACE[c]=1}\n//# sourceMappingURL=whitespace.min.js.map","min_map":"{\"version\":3,\"file\":\"whitespace.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"charcodes_1\",\"WHITESPACE_CHARS\",\"charCodes\",\"space\",\"nonBreakingSpace\",\"oghamSpaceMark\",\"skipWhiteSpace\",\"IS_WHITESPACE\",\"Uint8Array\",\"char\"],\"sources\":[\"0\"],\"mappings\":\"AAAiD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC9FD,IACA,MAAME,EAAcL,EAAQ,cAE5BE,EAAQI,iBAAmB,CACvB,EACA,GACA,GACAD,EAAYE,UAAUC,MACtBH,EAAYE,UAAUE,iBACtBJ,EAAYE,UAAUG,eACtB,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,MACA,OAEJR,EAAQS,eAAiB,gCACzBT,EAAQU,cAAgB,IAAIC,WAAW,OACvC,IAAK,MAAMC,KAAQZ,EAAQI,iBACvBJ,EAAQU,cAAcE,GAAQ,CAEtC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/readWord.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/tokenizer/readWord.js","resolution":"ESM","id":"e6eb78033b","hash":"e6eb78033bd65771510b5e8d9f4452624a76ff8350b0c13e820a6cea8eacbed7","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = readWord;\nconst base_1 = require(\"../traverser/base\");\nconst charcodes_1 = require(\"../util/charcodes\");\nconst identifier_1 = require(\"../util/identifier\");\nconst index_1 = require(\"./index\");\nconst readWordTree_1 = require(\"./readWordTree\");\nconst types_1 = require(\"./types\");\n/**\n * Read an identifier, producing either a name token or matching on one of the existing keywords.\n * For performance, we pre-generate big decision tree that we traverse. Each node represents a\n * prefix and has 27 values, where the first value is the token or contextual token, if any (-1 if\n * not), and the other 26 values are the transitions to other nodes, or -1 to stop.\n */\nfunction readWord() {\n    let treePos = 0;\n    let code = 0;\n    let pos = base_1.state.pos;\n    while (pos < base_1.input.length) {\n        code = base_1.input.charCodeAt(pos);\n        if (code < charcodes_1.charCodes.lowercaseA || code > charcodes_1.charCodes.lowercaseZ) {\n            break;\n        }\n        const next = readWordTree_1.READ_WORD_TREE[treePos + (code - charcodes_1.charCodes.lowercaseA) + 1];\n        if (next === -1) {\n            break;\n        }\n        else {\n            treePos = next;\n            pos++;\n        }\n    }\n    const keywordValue = readWordTree_1.READ_WORD_TREE[treePos];\n    if (keywordValue > -1 && !identifier_1.IS_IDENTIFIER_CHAR[code]) {\n        base_1.state.pos = pos;\n        if (keywordValue & 1) {\n            (0, index_1.finishToken)(keywordValue >>> 1);\n        }\n        else {\n            (0, index_1.finishToken)(types_1.TokenType.name, keywordValue >>> 1);\n        }\n        return;\n    }\n    while (pos < base_1.input.length) {\n        const ch = base_1.input.charCodeAt(pos);\n        if (identifier_1.IS_IDENTIFIER_CHAR[ch]) {\n            pos++;\n        }\n        else if (ch === charcodes_1.charCodes.backslash) {\n            // \\u\n            pos += 2;\n            if (base_1.input.charCodeAt(pos) === charcodes_1.charCodes.leftCurlyBrace) {\n                while (pos < base_1.input.length && base_1.input.charCodeAt(pos) !== charcodes_1.charCodes.rightCurlyBrace) {\n                    pos++;\n                }\n                pos++;\n            }\n        }\n        else if (ch === charcodes_1.charCodes.atSign && base_1.input.charCodeAt(pos + 1) === charcodes_1.charCodes.atSign) {\n            pos += 2;\n        }\n        else {\n            break;\n        }\n    }\n    base_1.state.pos = pos;\n    (0, index_1.finishToken)(types_1.TokenType.name);\n}\n","type":"js","dependency_paths":[["../traverser/base","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/base.js"],["../util/charcodes","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/charcodes.js"],["../util/identifier","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/identifier.js"],["./index","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["./readWordTree","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/readWordTree.js"],["./types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"]],"dependency_map":[],"exported":[{"type":"named","name":"readWord"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/tokenizer/readWord.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = readWord;\n    const base_1 = require(\"540718e523\") /* ../traverser/base */;\n    const charcodes_1 = require(\"22746c8ce8\") /* ../util/charcodes */;\n    const identifier_1 = require(\"364148c9f0\") /* ../util/identifier */;\n    const index_1 = require(\"bfb18d0576\") /* ./index */;\n    const readWordTree_1 = require(\"3d4c06ef43\") /* ./readWordTree */;\n    const types_1 = require(\"f0c35cbd76\") /* ./types */;\n    /**\n     * Read an identifier, producing either a name token or matching on one of the existing keywords.\n     * For performance, we pre-generate big decision tree that we traverse. Each node represents a\n     * prefix and has 27 values, where the first value is the token or contextual token, if any (-1 if\n     * not), and the other 26 values are the transitions to other nodes, or -1 to stop.\n     */\n    function readWord() {\n        let treePos = 0;\n        let code = 0;\n        let pos = base_1.state.pos;\n        while (pos < base_1.input.length) {\n            code = base_1.input.charCodeAt(pos);\n            if (code < charcodes_1.charCodes.lowercaseA || code > charcodes_1.charCodes.lowercaseZ) {\n                break;\n            }\n            const next = readWordTree_1.READ_WORD_TREE[treePos + (code - charcodes_1.charCodes.lowercaseA) + 1];\n            if (next === -1) {\n                break;\n            }\n            else {\n                treePos = next;\n                pos++;\n            }\n        }\n        const keywordValue = readWordTree_1.READ_WORD_TREE[treePos];\n        if (keywordValue > -1 && !identifier_1.IS_IDENTIFIER_CHAR[code]) {\n            base_1.state.pos = pos;\n            if (keywordValue & 1) {\n                (0, index_1.finishToken)(keywordValue >>> 1);\n            }\n            else {\n                (0, index_1.finishToken)(types_1.TokenType.name, keywordValue >>> 1);\n            }\n            return;\n        }\n        while (pos < base_1.input.length) {\n            const ch = base_1.input.charCodeAt(pos);\n            if (identifier_1.IS_IDENTIFIER_CHAR[ch]) {\n                pos++;\n            }\n            else if (ch === charcodes_1.charCodes.backslash) {\n                // \\u\n                pos += 2;\n                if (base_1.input.charCodeAt(pos) === charcodes_1.charCodes.leftCurlyBrace) {\n                    while (pos < base_1.input.length && base_1.input.charCodeAt(pos) !== charcodes_1.charCodes.rightCurlyBrace) {\n                        pos++;\n                    }\n                    pos++;\n                }\n            }\n            else if (ch === charcodes_1.charCodes.atSign && base_1.input.charCodeAt(pos + 1) === charcodes_1.charCodes.atSign) {\n                pos += 2;\n            }\n            else {\n                break;\n            }\n        }\n        base_1.state.pos = pos;\n        (0, index_1.finishToken)(types_1.TokenType.name);\n    }\n}\n","min_source":"function _(e,t,o,n,c){n(),o.default=function(){let e=0,t=0,o=a.state.pos;for(;o<a.input.length&&(t=a.input.charCodeAt(o),!(t<r.charCodes.lowercaseA||t>r.charCodes.lowercaseZ));){const n=h.READ_WORD_TREE[e+(t-r.charCodes.lowercaseA)+1];if(-1===n)break;e=n,o++}const n=h.READ_WORD_TREE[e];if(n>-1&&!s.IS_IDENTIFIER_CHAR[t])return a.state.pos=o,void(1&n?(0,i.finishToken)(n>>>1):(0,i.finishToken)(f.TokenType.name,n>>>1));for(;o<a.input.length;){const e=a.input.charCodeAt(o);if(s.IS_IDENTIFIER_CHAR[e])o++;else if(e===r.charCodes.backslash){if(o+=2,a.input.charCodeAt(o)===r.charCodes.leftCurlyBrace){for(;o<a.input.length&&a.input.charCodeAt(o)!==r.charCodes.rightCurlyBrace;)o++;o++}}else{if(e!==r.charCodes.atSign||a.input.charCodeAt(o+1)!==r.charCodes.atSign)break;o+=2}}a.state.pos=o,(0,i.finishToken)(f.TokenType.name)};const a=e(\"540718e523\"),r=e(\"22746c8ce8\"),s=e(\"364148c9f0\"),i=e(\"bfb18d0576\"),h=e(\"3d4c06ef43\"),f=e(\"f0c35cbd76\")}\n//# sourceMappingURL=readWord.min.js.map","min_map":"{\"version\":3,\"file\":\"readWord.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"treePos\",\"code\",\"pos\",\"base_1\",\"state\",\"input\",\"length\",\"charCodeAt\",\"charcodes_1\",\"charCodes\",\"lowercaseA\",\"lowercaseZ\",\"next\",\"readWordTree_1\",\"READ_WORD_TREE\",\"keywordValue\",\"identifier_1\",\"IS_IDENTIFIER_CHAR\",\"index_1\",\"finishToken\",\"types_1\",\"TokenType\",\"name\",\"ch\",\"backslash\",\"leftCurlyBrace\",\"rightCurlyBrace\",\"atSign\"],\"sources\":[\"0\"],\"mappings\":\"AAAoD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACjGD,IACAD,EAAQG,QAaR,WACI,IAAIC,EAAU,EACVC,EAAO,EACPC,EAAMC,EAAOC,MAAMF,IACvB,KAAOA,EAAMC,EAAOE,MAAMC,SACtBL,EAAOE,EAAOE,MAAME,WAAWL,KAC3BD,EAAOO,EAAYC,UAAUC,YAAcT,EAAOO,EAAYC,UAAUE,cAF9C,CAK9B,MAAMC,EAAOC,EAAeC,eAAed,GAAWC,EAAOO,EAAYC,UAAUC,YAAc,GACjG,IAAc,IAAVE,EACA,MAGAZ,EAAUY,EACVV,GAER,CACA,MAAMa,EAAeF,EAAeC,eAAed,GACnD,GAAIe,GAAgB,IAAMC,EAAaC,mBAAmBhB,GAQtD,OAPAE,EAAOC,MAAMF,IAAMA,OACA,EAAfa,GACA,EAAIG,EAAQC,aAAaJ,IAAiB,IAG1C,EAAIG,EAAQC,aAAaC,EAAQC,UAAUC,KAAMP,IAAiB,IAI1E,KAAOb,EAAMC,EAAOE,MAAMC,QAAQ,CAC9B,MAAMiB,EAAKpB,EAAOE,MAAME,WAAWL,GACnC,GAAIc,EAAaC,mBAAmBM,GAChCrB,SAEC,GAAIqB,IAAOf,EAAYC,UAAUe,WAGlC,GADAtB,GAAO,EACHC,EAAOE,MAAME,WAAWL,KAASM,EAAYC,UAAUgB,eAAgB,CACvE,KAAOvB,EAAMC,EAAOE,MAAMC,QAAUH,EAAOE,MAAME,WAAWL,KAASM,EAAYC,UAAUiB,iBACvFxB,IAEJA,GACJ,MAEC,IAAIqB,IAAOf,EAAYC,UAAUkB,QAAUxB,EAAOE,MAAME,WAAWL,EAAM,KAAOM,EAAYC,UAAUkB,OAIvG,MAHAzB,GAAO,CAIX,CACJ,CACAC,EAAOC,MAAMF,IAAMA,GACnB,EAAIgB,EAAQC,aAAaC,EAAQC,UAAUC,KAC/C,EAjEA,MAAMnB,EAAST,EAAQ,cACjBc,EAAcd,EAAQ,cACtBsB,EAAetB,EAAQ,cACvBwB,EAAUxB,EAAQ,cAClBmB,EAAiBnB,EAAQ,cACzB0B,EAAU1B,EAAQ,aA6D5B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/readWordTree.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/tokenizer/readWordTree.js","resolution":"ESM","id":"3d4c06ef43","hash":"3d4c06ef437a6e462d2f980b86ee8cd59a4e21daf20797d0a45b1156af65f197","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.READ_WORD_TREE = void 0;\n// Generated file, do not edit! Run \"yarn generate\" to re-generate this file.\nconst keywords_1 = require(\"./keywords\");\nconst types_1 = require(\"./types\");\n// prettier-ignore\nexports.READ_WORD_TREE = new Int32Array([\n    // \"\"\n    -1, 27, 783, 918, 1755, 2376, 2862, 3483, -1, 3699, -1, 4617, 4752, 4833, 5130, 5508, 5940, -1, 6480, 6939, 7749, 8181, 8451, 8613, -1, 8829, -1,\n    // \"a\"\n    -1, -1, 54, 243, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 432, -1, -1, -1, 675, -1, -1, -1,\n    // \"ab\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 81, -1, -1, -1, -1, -1, -1, -1,\n    // \"abs\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 108, -1, -1, -1, -1, -1, -1,\n    // \"abst\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 135, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"abstr\"\n    -1, 162, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"abstra\"\n    -1, -1, -1, 189, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"abstrac\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 216, -1, -1, -1, -1, -1, -1,\n    // \"abstract\"\n    keywords_1.ContextualKeyword._abstract << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"ac\"\n    -1, -1, -1, 270, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"acc\"\n    -1, -1, -1, -1, -1, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"acce\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 324, -1, -1, -1, -1, -1, -1, -1,\n    // \"acces\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 351, -1, -1, -1, -1, -1, -1, -1,\n    // \"access\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 378, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"accesso\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 405, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"accessor\"\n    keywords_1.ContextualKeyword._accessor << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"as\"\n    keywords_1.ContextualKeyword._as << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 459, -1, -1, -1, -1, -1, 594, -1,\n    // \"ass\"\n    -1, -1, -1, -1, -1, 486, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"asse\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 513, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"asser\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 540, -1, -1, -1, -1, -1, -1,\n    // \"assert\"\n    keywords_1.ContextualKeyword._assert << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 567, -1, -1, -1, -1, -1, -1, -1,\n    // \"asserts\"\n    keywords_1.ContextualKeyword._asserts << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"asy\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 621, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"asyn\"\n    -1, -1, -1, 648, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"async\"\n    keywords_1.ContextualKeyword._async << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"aw\"\n    -1, 702, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"awa\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 729, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"awai\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 756, -1, -1, -1, -1, -1, -1,\n    // \"await\"\n    keywords_1.ContextualKeyword._await << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"b\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 810, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"br\"\n    -1, -1, -1, -1, -1, 837, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"bre\"\n    -1, 864, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"brea\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 891, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"break\"\n    (types_1.TokenType._break << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"c\"\n    -1, 945, -1, -1, -1, -1, -1, -1, 1107, -1, -1, -1, 1242, -1, -1, 1350, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"ca\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 972, 1026, -1, -1, -1, -1, -1, -1,\n    // \"cas\"\n    -1, -1, -1, -1, -1, 999, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"case\"\n    (types_1.TokenType._case << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"cat\"\n    -1, -1, -1, 1053, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"catc\"\n    -1, -1, -1, -1, -1, -1, -1, -1, 1080, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"catch\"\n    (types_1.TokenType._catch << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"ch\"\n    -1, -1, -1, -1, -1, 1134, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"che\"\n    -1, -1, -1, 1161, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"chec\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1188, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"check\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1215, -1, -1, -1, -1, -1, -1, -1,\n    // \"checks\"\n    keywords_1.ContextualKeyword._checks << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"cl\"\n    -1, 1269, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"cla\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1296, -1, -1, -1, -1, -1, -1, -1,\n    // \"clas\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1323, -1, -1, -1, -1, -1, -1, -1,\n    // \"class\"\n    (types_1.TokenType._class << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"co\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1377, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"con\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1404, 1620, -1, -1, -1, -1, -1, -1,\n    // \"cons\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1431, -1, -1, -1, -1, -1, -1,\n    // \"const\"\n    (types_1.TokenType._const << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1458, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"constr\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1485, -1, -1, -1, -1, -1,\n    // \"constru\"\n    -1, -1, -1, 1512, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"construc\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1539, -1, -1, -1, -1, -1, -1,\n    // \"construct\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1566, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"constructo\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1593, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"constructor\"\n    keywords_1.ContextualKeyword._constructor << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"cont\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 1647, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"conti\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1674, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"contin\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1701, -1, -1, -1, -1, -1,\n    // \"continu\"\n    -1, -1, -1, -1, -1, 1728, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"continue\"\n    (types_1.TokenType._continue << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"d\"\n    -1, -1, -1, -1, -1, 1782, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2349, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"de\"\n    -1, -1, 1809, 1971, -1, -1, 2106, -1, -1, -1, -1, -1, 2241, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"deb\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1836, -1, -1, -1, -1, -1,\n    // \"debu\"\n    -1, -1, -1, -1, -1, -1, -1, 1863, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"debug\"\n    -1, -1, -1, -1, -1, -1, -1, 1890, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"debugg\"\n    -1, -1, -1, -1, -1, 1917, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"debugge\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1944, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"debugger\"\n    (types_1.TokenType._debugger << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"dec\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1998, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"decl\"\n    -1, 2025, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"decla\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2052, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"declar\"\n    -1, -1, -1, -1, -1, 2079, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"declare\"\n    keywords_1.ContextualKeyword._declare << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"def\"\n    -1, 2133, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"defa\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2160, -1, -1, -1, -1, -1,\n    // \"defau\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2187, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"defaul\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2214, -1, -1, -1, -1, -1, -1,\n    // \"default\"\n    (types_1.TokenType._default << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"del\"\n    -1, -1, -1, -1, -1, 2268, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"dele\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2295, -1, -1, -1, -1, -1, -1,\n    // \"delet\"\n    -1, -1, -1, -1, -1, 2322, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"delete\"\n    (types_1.TokenType._delete << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"do\"\n    (types_1.TokenType._do << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"e\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2403, -1, 2484, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2565, -1, -1,\n    // \"el\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2430, -1, -1, -1, -1, -1, -1, -1,\n    // \"els\"\n    -1, -1, -1, -1, -1, 2457, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"else\"\n    (types_1.TokenType._else << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"en\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2511, -1, -1, -1, -1, -1,\n    // \"enu\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2538, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"enum\"\n    keywords_1.ContextualKeyword._enum << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"ex\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2592, -1, -1, -1, 2727, -1, -1, -1, -1, -1, -1,\n    // \"exp\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2619, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"expo\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2646, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"expor\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2673, -1, -1, -1, -1, -1, -1,\n    // \"export\"\n    (types_1.TokenType._export << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2700, -1, -1, -1, -1, -1, -1, -1,\n    // \"exports\"\n    keywords_1.ContextualKeyword._exports << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"ext\"\n    -1, -1, -1, -1, -1, 2754, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"exte\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2781, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"exten\"\n    -1, -1, -1, -1, 2808, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"extend\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2835, -1, -1, -1, -1, -1, -1, -1,\n    // \"extends\"\n    (types_1.TokenType._extends << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"f\"\n    -1, 2889, -1, -1, -1, -1, -1, -1, -1, 2997, -1, -1, -1, -1, -1, 3159, -1, -1, 3213, -1, -1, 3294, -1, -1, -1, -1, -1,\n    // \"fa\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2916, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"fal\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2943, -1, -1, -1, -1, -1, -1, -1,\n    // \"fals\"\n    -1, -1, -1, -1, -1, 2970, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"false\"\n    (types_1.TokenType._false << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"fi\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3024, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"fin\"\n    -1, 3051, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"fina\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3078, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"final\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3105, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"finall\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3132, -1,\n    // \"finally\"\n    (types_1.TokenType._finally << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"fo\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3186, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"for\"\n    (types_1.TokenType._for << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"fr\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3240, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"fro\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3267, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"from\"\n    keywords_1.ContextualKeyword._from << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"fu\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3321, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"fun\"\n    -1, -1, -1, 3348, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"func\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3375, -1, -1, -1, -1, -1, -1,\n    // \"funct\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 3402, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"functi\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3429, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"functio\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3456, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"function\"\n    (types_1.TokenType._function << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"g\"\n    -1, -1, -1, -1, -1, 3510, -1, -1, -1, -1, -1, -1, 3564, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"ge\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3537, -1, -1, -1, -1, -1, -1,\n    // \"get\"\n    keywords_1.ContextualKeyword._get << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"gl\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3591, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"glo\"\n    -1, -1, 3618, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"glob\"\n    -1, 3645, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"globa\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3672, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"global\"\n    keywords_1.ContextualKeyword._global << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"i\"\n    -1, -1, -1, -1, -1, -1, 3726, -1, -1, -1, -1, -1, -1, 3753, 4077, -1, -1, -1, -1, 4590, -1, -1, -1, -1, -1, -1, -1,\n    // \"if\"\n    (types_1.TokenType._if << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"im\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3780, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"imp\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3807, -1, -1, 3996, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"impl\"\n    -1, -1, -1, -1, -1, 3834, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"imple\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3861, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"implem\"\n    -1, -1, -1, -1, -1, 3888, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"impleme\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3915, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"implemen\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3942, -1, -1, -1, -1, -1, -1,\n    // \"implement\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3969, -1, -1, -1, -1, -1, -1, -1,\n    // \"implements\"\n    keywords_1.ContextualKeyword._implements << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"impo\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4023, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"impor\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4050, -1, -1, -1, -1, -1, -1,\n    // \"import\"\n    (types_1.TokenType._import << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"in\"\n    (types_1.TokenType._in << 1) + 1, -1, -1, -1, -1, -1, 4104, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4185, 4401, -1, -1, -1, -1, -1, -1,\n    // \"inf\"\n    -1, -1, -1, -1, -1, 4131, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"infe\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4158, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"infer\"\n    keywords_1.ContextualKeyword._infer << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"ins\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4212, -1, -1, -1, -1, -1, -1,\n    // \"inst\"\n    -1, 4239, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"insta\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4266, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"instan\"\n    -1, -1, -1, 4293, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"instanc\"\n    -1, -1, -1, -1, -1, 4320, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"instance\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4347, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"instanceo\"\n    -1, -1, -1, -1, -1, -1, 4374, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"instanceof\"\n    (types_1.TokenType._instanceof << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"int\"\n    -1, -1, -1, -1, -1, 4428, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"inte\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4455, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"inter\"\n    -1, -1, -1, -1, -1, -1, 4482, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"interf\"\n    -1, 4509, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"interfa\"\n    -1, -1, -1, 4536, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"interfac\"\n    -1, -1, -1, -1, -1, 4563, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"interface\"\n    keywords_1.ContextualKeyword._interface << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"is\"\n    keywords_1.ContextualKeyword._is << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"k\"\n    -1, -1, -1, -1, -1, 4644, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"ke\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4671, -1,\n    // \"key\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4698, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"keyo\"\n    -1, -1, -1, -1, -1, -1, 4725, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"keyof\"\n    keywords_1.ContextualKeyword._keyof << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"l\"\n    -1, -1, -1, -1, -1, 4779, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"le\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4806, -1, -1, -1, -1, -1, -1,\n    // \"let\"\n    (types_1.TokenType._let << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"m\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 4860, -1, -1, -1, -1, -1, 4995, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"mi\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4887, -1, -1,\n    // \"mix\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 4914, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"mixi\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4941, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"mixin\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4968, -1, -1, -1, -1, -1, -1, -1,\n    // \"mixins\"\n    keywords_1.ContextualKeyword._mixins << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"mo\"\n    -1, -1, -1, -1, 5022, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"mod\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5049, -1, -1, -1, -1, -1,\n    // \"modu\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5076, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"modul\"\n    -1, -1, -1, -1, -1, 5103, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"module\"\n    keywords_1.ContextualKeyword._module << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"n\"\n    -1, 5157, -1, -1, -1, 5373, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5427, -1, -1, -1, -1, -1,\n    // \"na\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5184, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"nam\"\n    -1, -1, -1, -1, -1, 5211, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"name\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5238, -1, -1, -1, -1, -1, -1, -1,\n    // \"names\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5265, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"namesp\"\n    -1, 5292, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"namespa\"\n    -1, -1, -1, 5319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"namespac\"\n    -1, -1, -1, -1, -1, 5346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"namespace\"\n    keywords_1.ContextualKeyword._namespace << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"ne\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5400, -1, -1, -1,\n    // \"new\"\n    (types_1.TokenType._new << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"nu\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5454, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"nul\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5481, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"null\"\n    (types_1.TokenType._null << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"o\"\n    -1, -1, -1, -1, -1, -1, 5535, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5562, -1, -1, -1, -1, 5697, 5751, -1, -1, -1, -1,\n    // \"of\"\n    keywords_1.ContextualKeyword._of << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"op\"\n    -1, 5589, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"opa\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5616, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"opaq\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5643, -1, -1, -1, -1, -1,\n    // \"opaqu\"\n    -1, -1, -1, -1, -1, 5670, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"opaque\"\n    keywords_1.ContextualKeyword._opaque << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"ou\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5724, -1, -1, -1, -1, -1, -1,\n    // \"out\"\n    keywords_1.ContextualKeyword._out << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"ov\"\n    -1, -1, -1, -1, -1, 5778, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"ove\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5805, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"over\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5832, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"overr\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 5859, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"overri\"\n    -1, -1, -1, -1, 5886, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"overrid\"\n    -1, -1, -1, -1, -1, 5913, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"override\"\n    keywords_1.ContextualKeyword._override << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"p\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5967, -1, -1, 6345, -1, -1, -1, -1, -1,\n    // \"pr\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 5994, -1, -1, -1, -1, -1, 6129, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"pri\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6021, -1, -1, -1, -1,\n    // \"priv\"\n    -1, 6048, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"priva\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6075, -1, -1, -1, -1, -1, -1,\n    // \"privat\"\n    -1, -1, -1, -1, -1, 6102, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"private\"\n    keywords_1.ContextualKeyword._private << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"pro\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6156, -1, -1, -1, -1, -1, -1,\n    // \"prot\"\n    -1, -1, -1, -1, -1, 6183, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6318, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"prote\"\n    -1, -1, -1, 6210, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"protec\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6237, -1, -1, -1, -1, -1, -1,\n    // \"protect\"\n    -1, -1, -1, -1, -1, 6264, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"protecte\"\n    -1, -1, -1, -1, 6291, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"protected\"\n    keywords_1.ContextualKeyword._protected << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"proto\"\n    keywords_1.ContextualKeyword._proto << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"pu\"\n    -1, -1, 6372, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"pub\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6399, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"publ\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 6426, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"publi\"\n    -1, -1, -1, 6453, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"public\"\n    keywords_1.ContextualKeyword._public << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"r\"\n    -1, -1, -1, -1, -1, 6507, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"re\"\n    -1, 6534, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6696, -1, -1, 6831, -1, -1, -1, -1, -1, -1,\n    // \"rea\"\n    -1, -1, -1, -1, 6561, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"read\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6588, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"reado\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6615, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"readon\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6642, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"readonl\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6669, -1,\n    // \"readonly\"\n    keywords_1.ContextualKeyword._readonly << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"req\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6723, -1, -1, -1, -1, -1,\n    // \"requ\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 6750, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"requi\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6777, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"requir\"\n    -1, -1, -1, -1, -1, 6804, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"require\"\n    keywords_1.ContextualKeyword._require << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"ret\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6858, -1, -1, -1, -1, -1,\n    // \"retu\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6885, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"retur\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6912, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"return\"\n    (types_1.TokenType._return << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"s\"\n    -1, 6966, -1, -1, -1, 7182, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7236, 7371, -1, 7479, -1, 7614, -1,\n    // \"sa\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6993, -1, -1, -1, -1, -1, -1,\n    // \"sat\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 7020, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"sati\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7047, -1, -1, -1, -1, -1, -1, -1,\n    // \"satis\"\n    -1, -1, -1, -1, -1, -1, 7074, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"satisf\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 7101, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"satisfi\"\n    -1, -1, -1, -1, -1, 7128, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"satisfie\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7155, -1, -1, -1, -1, -1, -1, -1,\n    // \"satisfies\"\n    keywords_1.ContextualKeyword._satisfies << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"se\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7209, -1, -1, -1, -1, -1, -1,\n    // \"set\"\n    keywords_1.ContextualKeyword._set << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"st\"\n    -1, 7263, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"sta\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7290, -1, -1, -1, -1, -1, -1,\n    // \"stat\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 7317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"stati\"\n    -1, -1, -1, 7344, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"static\"\n    keywords_1.ContextualKeyword._static << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"su\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7398, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"sup\"\n    -1, -1, -1, -1, -1, 7425, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"supe\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7452, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"super\"\n    (types_1.TokenType._super << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"sw\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 7506, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"swi\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7533, -1, -1, -1, -1, -1, -1,\n    // \"swit\"\n    -1, -1, -1, 7560, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"switc\"\n    -1, -1, -1, -1, -1, -1, -1, -1, 7587, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"switch\"\n    (types_1.TokenType._switch << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"sy\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7641, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"sym\"\n    -1, -1, 7668, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"symb\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7695, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"symbo\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7722, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"symbol\"\n    keywords_1.ContextualKeyword._symbol << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"t\"\n    -1, -1, -1, -1, -1, -1, -1, -1, 7776, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7938, -1, -1, -1, -1, -1, -1, 8046, -1,\n    // \"th\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 7803, -1, -1, -1, -1, -1, -1, -1, -1, 7857, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"thi\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7830, -1, -1, -1, -1, -1, -1, -1,\n    // \"this\"\n    (types_1.TokenType._this << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"thr\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7884, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"thro\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7911, -1, -1, -1,\n    // \"throw\"\n    (types_1.TokenType._throw << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"tr\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7965, -1, -1, -1, 8019, -1,\n    // \"tru\"\n    -1, -1, -1, -1, -1, 7992, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"true\"\n    (types_1.TokenType._true << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"try\"\n    (types_1.TokenType._try << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"ty\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8073, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"typ\"\n    -1, -1, -1, -1, -1, 8100, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"type\"\n    keywords_1.ContextualKeyword._type << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8127, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"typeo\"\n    -1, -1, -1, -1, -1, -1, 8154, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"typeof\"\n    (types_1.TokenType._typeof << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"u\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8208, -1, -1, -1, -1, 8343, -1, -1, -1, -1, -1, -1, -1,\n    // \"un\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 8235, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"uni\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8262, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"uniq\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8289, -1, -1, -1, -1, -1,\n    // \"uniqu\"\n    -1, -1, -1, -1, -1, 8316, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"unique\"\n    keywords_1.ContextualKeyword._unique << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"us\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 8370, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"usi\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8397, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"usin\"\n    -1, -1, -1, -1, -1, -1, -1, 8424, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"using\"\n    keywords_1.ContextualKeyword._using << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"v\"\n    -1, 8478, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8532, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"va\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8505, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"var\"\n    (types_1.TokenType._var << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"vo\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 8559, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"voi\"\n    -1, -1, -1, -1, 8586, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"void\"\n    (types_1.TokenType._void << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"w\"\n    -1, -1, -1, -1, -1, -1, -1, -1, 8640, 8748, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"wh\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 8667, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"whi\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8694, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"whil\"\n    -1, -1, -1, -1, -1, 8721, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"while\"\n    (types_1.TokenType._while << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"wi\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8775, -1, -1, -1, -1, -1, -1,\n    // \"wit\"\n    -1, -1, -1, -1, -1, -1, -1, -1, 8802, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"with\"\n    (types_1.TokenType._with << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"y\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, 8856, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"yi\"\n    -1, -1, -1, -1, -1, 8883, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"yie\"\n    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8910, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"yiel\"\n    -1, -1, -1, -1, 8937, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    // \"yield\"\n    (types_1.TokenType._yield << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n]);\n","type":"js","dependency_paths":[["./keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"],["./types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"]],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/tokenizer/readWordTree.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    // Generated file, do not edit! Run \"yarn generate\" to re-generate this file.\n    const keywords_1 = require(\"99ff836c64\") /* ./keywords */;\n    const types_1 = require(\"f0c35cbd76\") /* ./types */;\n    // prettier-ignore\n    exports.READ_WORD_TREE = new Int32Array([\n        // \"\"\n        -1, 27, 783, 918, 1755, 2376, 2862, 3483, -1, 3699, -1, 4617, 4752, 4833, 5130, 5508, 5940, -1, 6480, 6939, 7749, 8181, 8451, 8613, -1, 8829, -1,\n        // \"a\"\n        -1, -1, 54, 243, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 432, -1, -1, -1, 675, -1, -1, -1,\n        // \"ab\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 81, -1, -1, -1, -1, -1, -1, -1,\n        // \"abs\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 108, -1, -1, -1, -1, -1, -1,\n        // \"abst\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 135, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"abstr\"\n        -1, 162, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"abstra\"\n        -1, -1, -1, 189, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"abstrac\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 216, -1, -1, -1, -1, -1, -1,\n        // \"abstract\"\n        keywords_1.ContextualKeyword._abstract << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"ac\"\n        -1, -1, -1, 270, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"acc\"\n        -1, -1, -1, -1, -1, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"acce\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 324, -1, -1, -1, -1, -1, -1, -1,\n        // \"acces\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 351, -1, -1, -1, -1, -1, -1, -1,\n        // \"access\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 378, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"accesso\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 405, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"accessor\"\n        keywords_1.ContextualKeyword._accessor << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"as\"\n        keywords_1.ContextualKeyword._as << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 459, -1, -1, -1, -1, -1, 594, -1,\n        // \"ass\"\n        -1, -1, -1, -1, -1, 486, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"asse\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 513, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"asser\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 540, -1, -1, -1, -1, -1, -1,\n        // \"assert\"\n        keywords_1.ContextualKeyword._assert << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 567, -1, -1, -1, -1, -1, -1, -1,\n        // \"asserts\"\n        keywords_1.ContextualKeyword._asserts << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"asy\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 621, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"asyn\"\n        -1, -1, -1, 648, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"async\"\n        keywords_1.ContextualKeyword._async << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"aw\"\n        -1, 702, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"awa\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 729, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"awai\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 756, -1, -1, -1, -1, -1, -1,\n        // \"await\"\n        keywords_1.ContextualKeyword._await << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"b\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 810, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"br\"\n        -1, -1, -1, -1, -1, 837, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"bre\"\n        -1, 864, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"brea\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 891, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"break\"\n        (types_1.TokenType._break << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"c\"\n        -1, 945, -1, -1, -1, -1, -1, -1, 1107, -1, -1, -1, 1242, -1, -1, 1350, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"ca\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 972, 1026, -1, -1, -1, -1, -1, -1,\n        // \"cas\"\n        -1, -1, -1, -1, -1, 999, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"case\"\n        (types_1.TokenType._case << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"cat\"\n        -1, -1, -1, 1053, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"catc\"\n        -1, -1, -1, -1, -1, -1, -1, -1, 1080, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"catch\"\n        (types_1.TokenType._catch << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"ch\"\n        -1, -1, -1, -1, -1, 1134, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"che\"\n        -1, -1, -1, 1161, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"chec\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1188, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"check\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1215, -1, -1, -1, -1, -1, -1, -1,\n        // \"checks\"\n        keywords_1.ContextualKeyword._checks << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"cl\"\n        -1, 1269, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"cla\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1296, -1, -1, -1, -1, -1, -1, -1,\n        // \"clas\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1323, -1, -1, -1, -1, -1, -1, -1,\n        // \"class\"\n        (types_1.TokenType._class << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"co\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1377, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"con\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1404, 1620, -1, -1, -1, -1, -1, -1,\n        // \"cons\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1431, -1, -1, -1, -1, -1, -1,\n        // \"const\"\n        (types_1.TokenType._const << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1458, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"constr\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1485, -1, -1, -1, -1, -1,\n        // \"constru\"\n        -1, -1, -1, 1512, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"construc\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1539, -1, -1, -1, -1, -1, -1,\n        // \"construct\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1566, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"constructo\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1593, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"constructor\"\n        keywords_1.ContextualKeyword._constructor << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"cont\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 1647, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"conti\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1674, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"contin\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1701, -1, -1, -1, -1, -1,\n        // \"continu\"\n        -1, -1, -1, -1, -1, 1728, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"continue\"\n        (types_1.TokenType._continue << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"d\"\n        -1, -1, -1, -1, -1, 1782, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2349, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"de\"\n        -1, -1, 1809, 1971, -1, -1, 2106, -1, -1, -1, -1, -1, 2241, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"deb\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1836, -1, -1, -1, -1, -1,\n        // \"debu\"\n        -1, -1, -1, -1, -1, -1, -1, 1863, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"debug\"\n        -1, -1, -1, -1, -1, -1, -1, 1890, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"debugg\"\n        -1, -1, -1, -1, -1, 1917, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"debugge\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1944, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"debugger\"\n        (types_1.TokenType._debugger << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"dec\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1998, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"decl\"\n        -1, 2025, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"decla\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2052, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"declar\"\n        -1, -1, -1, -1, -1, 2079, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"declare\"\n        keywords_1.ContextualKeyword._declare << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"def\"\n        -1, 2133, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"defa\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2160, -1, -1, -1, -1, -1,\n        // \"defau\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2187, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"defaul\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2214, -1, -1, -1, -1, -1, -1,\n        // \"default\"\n        (types_1.TokenType._default << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"del\"\n        -1, -1, -1, -1, -1, 2268, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"dele\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2295, -1, -1, -1, -1, -1, -1,\n        // \"delet\"\n        -1, -1, -1, -1, -1, 2322, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"delete\"\n        (types_1.TokenType._delete << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"do\"\n        (types_1.TokenType._do << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"e\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2403, -1, 2484, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2565, -1, -1,\n        // \"el\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2430, -1, -1, -1, -1, -1, -1, -1,\n        // \"els\"\n        -1, -1, -1, -1, -1, 2457, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"else\"\n        (types_1.TokenType._else << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"en\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2511, -1, -1, -1, -1, -1,\n        // \"enu\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2538, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"enum\"\n        keywords_1.ContextualKeyword._enum << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"ex\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2592, -1, -1, -1, 2727, -1, -1, -1, -1, -1, -1,\n        // \"exp\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2619, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"expo\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2646, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"expor\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2673, -1, -1, -1, -1, -1, -1,\n        // \"export\"\n        (types_1.TokenType._export << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2700, -1, -1, -1, -1, -1, -1, -1,\n        // \"exports\"\n        keywords_1.ContextualKeyword._exports << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"ext\"\n        -1, -1, -1, -1, -1, 2754, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"exte\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2781, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"exten\"\n        -1, -1, -1, -1, 2808, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"extend\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2835, -1, -1, -1, -1, -1, -1, -1,\n        // \"extends\"\n        (types_1.TokenType._extends << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"f\"\n        -1, 2889, -1, -1, -1, -1, -1, -1, -1, 2997, -1, -1, -1, -1, -1, 3159, -1, -1, 3213, -1, -1, 3294, -1, -1, -1, -1, -1,\n        // \"fa\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2916, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"fal\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 2943, -1, -1, -1, -1, -1, -1, -1,\n        // \"fals\"\n        -1, -1, -1, -1, -1, 2970, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"false\"\n        (types_1.TokenType._false << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"fi\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3024, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"fin\"\n        -1, 3051, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"fina\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3078, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"final\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3105, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"finall\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3132, -1,\n        // \"finally\"\n        (types_1.TokenType._finally << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"fo\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3186, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"for\"\n        (types_1.TokenType._for << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"fr\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3240, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"fro\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3267, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"from\"\n        keywords_1.ContextualKeyword._from << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"fu\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3321, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"fun\"\n        -1, -1, -1, 3348, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"func\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3375, -1, -1, -1, -1, -1, -1,\n        // \"funct\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 3402, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"functi\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3429, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"functio\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3456, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"function\"\n        (types_1.TokenType._function << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"g\"\n        -1, -1, -1, -1, -1, 3510, -1, -1, -1, -1, -1, -1, 3564, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"ge\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3537, -1, -1, -1, -1, -1, -1,\n        // \"get\"\n        keywords_1.ContextualKeyword._get << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"gl\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3591, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"glo\"\n        -1, -1, 3618, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"glob\"\n        -1, 3645, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"globa\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3672, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"global\"\n        keywords_1.ContextualKeyword._global << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"i\"\n        -1, -1, -1, -1, -1, -1, 3726, -1, -1, -1, -1, -1, -1, 3753, 4077, -1, -1, -1, -1, 4590, -1, -1, -1, -1, -1, -1, -1,\n        // \"if\"\n        (types_1.TokenType._if << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"im\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3780, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"imp\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3807, -1, -1, 3996, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"impl\"\n        -1, -1, -1, -1, -1, 3834, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"imple\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3861, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"implem\"\n        -1, -1, -1, -1, -1, 3888, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"impleme\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3915, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"implemen\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3942, -1, -1, -1, -1, -1, -1,\n        // \"implement\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3969, -1, -1, -1, -1, -1, -1, -1,\n        // \"implements\"\n        keywords_1.ContextualKeyword._implements << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"impo\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4023, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"impor\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4050, -1, -1, -1, -1, -1, -1,\n        // \"import\"\n        (types_1.TokenType._import << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"in\"\n        (types_1.TokenType._in << 1) + 1, -1, -1, -1, -1, -1, 4104, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4185, 4401, -1, -1, -1, -1, -1, -1,\n        // \"inf\"\n        -1, -1, -1, -1, -1, 4131, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"infe\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4158, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"infer\"\n        keywords_1.ContextualKeyword._infer << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"ins\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4212, -1, -1, -1, -1, -1, -1,\n        // \"inst\"\n        -1, 4239, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"insta\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4266, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"instan\"\n        -1, -1, -1, 4293, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"instanc\"\n        -1, -1, -1, -1, -1, 4320, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"instance\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4347, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"instanceo\"\n        -1, -1, -1, -1, -1, -1, 4374, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"instanceof\"\n        (types_1.TokenType._instanceof << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"int\"\n        -1, -1, -1, -1, -1, 4428, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"inte\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4455, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"inter\"\n        -1, -1, -1, -1, -1, -1, 4482, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"interf\"\n        -1, 4509, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"interfa\"\n        -1, -1, -1, 4536, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"interfac\"\n        -1, -1, -1, -1, -1, 4563, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"interface\"\n        keywords_1.ContextualKeyword._interface << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"is\"\n        keywords_1.ContextualKeyword._is << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"k\"\n        -1, -1, -1, -1, -1, 4644, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"ke\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4671, -1,\n        // \"key\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4698, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"keyo\"\n        -1, -1, -1, -1, -1, -1, 4725, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"keyof\"\n        keywords_1.ContextualKeyword._keyof << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"l\"\n        -1, -1, -1, -1, -1, 4779, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"le\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4806, -1, -1, -1, -1, -1, -1,\n        // \"let\"\n        (types_1.TokenType._let << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"m\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 4860, -1, -1, -1, -1, -1, 4995, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"mi\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4887, -1, -1,\n        // \"mix\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 4914, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"mixi\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4941, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"mixin\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4968, -1, -1, -1, -1, -1, -1, -1,\n        // \"mixins\"\n        keywords_1.ContextualKeyword._mixins << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"mo\"\n        -1, -1, -1, -1, 5022, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"mod\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5049, -1, -1, -1, -1, -1,\n        // \"modu\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5076, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"modul\"\n        -1, -1, -1, -1, -1, 5103, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"module\"\n        keywords_1.ContextualKeyword._module << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"n\"\n        -1, 5157, -1, -1, -1, 5373, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5427, -1, -1, -1, -1, -1,\n        // \"na\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5184, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"nam\"\n        -1, -1, -1, -1, -1, 5211, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"name\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5238, -1, -1, -1, -1, -1, -1, -1,\n        // \"names\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5265, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"namesp\"\n        -1, 5292, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"namespa\"\n        -1, -1, -1, 5319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"namespac\"\n        -1, -1, -1, -1, -1, 5346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"namespace\"\n        keywords_1.ContextualKeyword._namespace << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"ne\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5400, -1, -1, -1,\n        // \"new\"\n        (types_1.TokenType._new << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"nu\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5454, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"nul\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5481, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"null\"\n        (types_1.TokenType._null << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"o\"\n        -1, -1, -1, -1, -1, -1, 5535, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5562, -1, -1, -1, -1, 5697, 5751, -1, -1, -1, -1,\n        // \"of\"\n        keywords_1.ContextualKeyword._of << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"op\"\n        -1, 5589, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"opa\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5616, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"opaq\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5643, -1, -1, -1, -1, -1,\n        // \"opaqu\"\n        -1, -1, -1, -1, -1, 5670, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"opaque\"\n        keywords_1.ContextualKeyword._opaque << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"ou\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5724, -1, -1, -1, -1, -1, -1,\n        // \"out\"\n        keywords_1.ContextualKeyword._out << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"ov\"\n        -1, -1, -1, -1, -1, 5778, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"ove\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5805, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"over\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5832, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"overr\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 5859, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"overri\"\n        -1, -1, -1, -1, 5886, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"overrid\"\n        -1, -1, -1, -1, -1, 5913, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"override\"\n        keywords_1.ContextualKeyword._override << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"p\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5967, -1, -1, 6345, -1, -1, -1, -1, -1,\n        // \"pr\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 5994, -1, -1, -1, -1, -1, 6129, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"pri\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6021, -1, -1, -1, -1,\n        // \"priv\"\n        -1, 6048, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"priva\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6075, -1, -1, -1, -1, -1, -1,\n        // \"privat\"\n        -1, -1, -1, -1, -1, 6102, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"private\"\n        keywords_1.ContextualKeyword._private << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"pro\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6156, -1, -1, -1, -1, -1, -1,\n        // \"prot\"\n        -1, -1, -1, -1, -1, 6183, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6318, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"prote\"\n        -1, -1, -1, 6210, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"protec\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6237, -1, -1, -1, -1, -1, -1,\n        // \"protect\"\n        -1, -1, -1, -1, -1, 6264, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"protecte\"\n        -1, -1, -1, -1, 6291, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"protected\"\n        keywords_1.ContextualKeyword._protected << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"proto\"\n        keywords_1.ContextualKeyword._proto << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"pu\"\n        -1, -1, 6372, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"pub\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6399, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"publ\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 6426, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"publi\"\n        -1, -1, -1, 6453, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"public\"\n        keywords_1.ContextualKeyword._public << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"r\"\n        -1, -1, -1, -1, -1, 6507, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"re\"\n        -1, 6534, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6696, -1, -1, 6831, -1, -1, -1, -1, -1, -1,\n        // \"rea\"\n        -1, -1, -1, -1, 6561, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"read\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6588, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"reado\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6615, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"readon\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6642, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"readonl\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6669, -1,\n        // \"readonly\"\n        keywords_1.ContextualKeyword._readonly << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"req\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6723, -1, -1, -1, -1, -1,\n        // \"requ\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 6750, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"requi\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6777, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"requir\"\n        -1, -1, -1, -1, -1, 6804, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"require\"\n        keywords_1.ContextualKeyword._require << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"ret\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6858, -1, -1, -1, -1, -1,\n        // \"retu\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6885, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"retur\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6912, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"return\"\n        (types_1.TokenType._return << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"s\"\n        -1, 6966, -1, -1, -1, 7182, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7236, 7371, -1, 7479, -1, 7614, -1,\n        // \"sa\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6993, -1, -1, -1, -1, -1, -1,\n        // \"sat\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 7020, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"sati\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7047, -1, -1, -1, -1, -1, -1, -1,\n        // \"satis\"\n        -1, -1, -1, -1, -1, -1, 7074, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"satisf\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 7101, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"satisfi\"\n        -1, -1, -1, -1, -1, 7128, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"satisfie\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7155, -1, -1, -1, -1, -1, -1, -1,\n        // \"satisfies\"\n        keywords_1.ContextualKeyword._satisfies << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"se\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7209, -1, -1, -1, -1, -1, -1,\n        // \"set\"\n        keywords_1.ContextualKeyword._set << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"st\"\n        -1, 7263, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"sta\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7290, -1, -1, -1, -1, -1, -1,\n        // \"stat\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 7317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"stati\"\n        -1, -1, -1, 7344, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"static\"\n        keywords_1.ContextualKeyword._static << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"su\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7398, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"sup\"\n        -1, -1, -1, -1, -1, 7425, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"supe\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7452, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"super\"\n        (types_1.TokenType._super << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"sw\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 7506, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"swi\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7533, -1, -1, -1, -1, -1, -1,\n        // \"swit\"\n        -1, -1, -1, 7560, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"switc\"\n        -1, -1, -1, -1, -1, -1, -1, -1, 7587, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"switch\"\n        (types_1.TokenType._switch << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"sy\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7641, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"sym\"\n        -1, -1, 7668, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"symb\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7695, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"symbo\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7722, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"symbol\"\n        keywords_1.ContextualKeyword._symbol << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"t\"\n        -1, -1, -1, -1, -1, -1, -1, -1, 7776, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7938, -1, -1, -1, -1, -1, -1, 8046, -1,\n        // \"th\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 7803, -1, -1, -1, -1, -1, -1, -1, -1, 7857, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"thi\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7830, -1, -1, -1, -1, -1, -1, -1,\n        // \"this\"\n        (types_1.TokenType._this << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"thr\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7884, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"thro\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7911, -1, -1, -1,\n        // \"throw\"\n        (types_1.TokenType._throw << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"tr\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7965, -1, -1, -1, 8019, -1,\n        // \"tru\"\n        -1, -1, -1, -1, -1, 7992, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"true\"\n        (types_1.TokenType._true << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"try\"\n        (types_1.TokenType._try << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"ty\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8073, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"typ\"\n        -1, -1, -1, -1, -1, 8100, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"type\"\n        keywords_1.ContextualKeyword._type << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8127, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"typeo\"\n        -1, -1, -1, -1, -1, -1, 8154, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"typeof\"\n        (types_1.TokenType._typeof << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"u\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8208, -1, -1, -1, -1, 8343, -1, -1, -1, -1, -1, -1, -1,\n        // \"un\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 8235, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"uni\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8262, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"uniq\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8289, -1, -1, -1, -1, -1,\n        // \"uniqu\"\n        -1, -1, -1, -1, -1, 8316, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"unique\"\n        keywords_1.ContextualKeyword._unique << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"us\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 8370, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"usi\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8397, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"usin\"\n        -1, -1, -1, -1, -1, -1, -1, 8424, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"using\"\n        keywords_1.ContextualKeyword._using << 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"v\"\n        -1, 8478, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8532, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"va\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8505, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"var\"\n        (types_1.TokenType._var << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"vo\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 8559, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"voi\"\n        -1, -1, -1, -1, 8586, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"void\"\n        (types_1.TokenType._void << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"w\"\n        -1, -1, -1, -1, -1, -1, -1, -1, 8640, 8748, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"wh\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 8667, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"whi\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8694, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"whil\"\n        -1, -1, -1, -1, -1, 8721, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"while\"\n        (types_1.TokenType._while << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"wi\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8775, -1, -1, -1, -1, -1, -1,\n        // \"wit\"\n        -1, -1, -1, -1, -1, -1, -1, -1, 8802, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"with\"\n        (types_1.TokenType._with << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"y\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, 8856, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"yi\"\n        -1, -1, -1, -1, -1, 8883, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"yie\"\n        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8910, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"yiel\"\n        -1, -1, -1, -1, 8937, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n        // \"yield\"\n        (types_1.TokenType._yield << 1) + 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n    ]);\n}\n","min_source":"function _(e,o,t,n,y){n();const _=e(\"99ff836c64\"),T=e(\"f0c35cbd76\");t.READ_WORD_TREE=new Int32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1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(T.TokenType._yield<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1])}\n//# sourceMappingURL=readWordTree.min.js.map","min_map":"{\"version\":3,\"file\":\"readWordTree.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"keywords_1\",\"types_1\",\"READ_WORD_TREE\",\"Int32Array\",\"ContextualKeyword\",\"_abstract\",\"_accessor\",\"_as\",\"_assert\",\"_asserts\",\"_async\",\"_await\",\"TokenType\",\"_break\",\"_case\",\"_catch\",\"_checks\",\"_class\",\"_const\",\"_constructor\",\"_continue\",\"_debugger\",\"_declare\",\"_default\",\"_delete\",\"_do\",\"_else\",\"_enum\",\"_export\",\"_exports\",\"_extends\",\"_false\",\"_finally\",\"_for\",\"_from\",\"_function\",\"_get\",\"_global\",\"_if\",\"_implements\",\"_import\",\"_in\",\"_infer\",\"_instanceof\",\"_interface\",\"_is\",\"_keyof\",\"_let\",\"_mixins\",\"_module\",\"_namespace\",\"_new\",\"_null\",\"_of\",\"_opaque\",\"_out\",\"_override\",\"_private\",\"_protected\",\"_proto\",\"_public\",\"_readonly\",\"_require\",\"_return\",\"_satisfies\",\"_set\",\"_static\",\"_super\",\"_switch\",\"_symbol\",\"_this\",\"_throw\",\"_true\",\"_try\",\"_type\",\"_typeof\",\"_unique\",\"_using\",\"_var\",\"_void\",\"_while\",\"_with\",\"_yield\"],\"sources\":[\"0\"],\"mappings\":\"AAAwD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACrGD,IAEA,MAAME,EAAaL,EAAQ,cACrBM,EAAUN,EAAQ,cAExBE,EAAQK,eAAiB,IAAIC,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,GAAI,GAAI,GAAI,EAE1E,GAAhC/E,EAAQW,UAAUqE,OAAS,IAAS,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAExI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,EAAG,MAAO,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAE1G,GAAI,GAAI,GAAI,GAAI,EAAG,MAAO,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAE1G,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,EAAG,MAAO,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAE1G,GAAI,GAAI,GAAI,EAAG,MAAO,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,EAEzE,GAAjChF,EAAQW,UAAUsE,QAAU,IAAS,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAElJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getImportExportSpecifierInfo.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/util/getImportExportSpecifierInfo.js","resolution":"ESM","id":"14d4ae78a4","hash":"14d4ae78a42c00e2351954c9390bed37a6692d0c6adf5a74af26ec73fdecddfc","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = getImportExportSpecifierInfo;\nconst types_1 = require(\"../parser/tokenizer/types\");\n/**\n * Determine information about this named import or named export specifier.\n *\n * This syntax is the `a` from statements like these:\n * import {A} from \"./foo\";\n * export {A};\n * export {A} from \"./foo\";\n *\n * As it turns out, we can exactly characterize the syntax meaning by simply\n * counting the number of tokens, which can be from 1 to 4:\n * {A}\n * {type A}\n * {A as B}\n * {type A as B}\n *\n * In the type case, we never actually need the names in practice, so don't get\n * them.\n *\n * TODO: There's some redundancy with the type detection here and the isType\n * flag that's already present on tokens in TS mode. This function could\n * potentially be simplified and/or pushed to the call sites to avoid the object\n * allocation.\n */\nfunction getImportExportSpecifierInfo(tokens, index = tokens.currentIndex()) {\n    let endIndex = index + 1;\n    if (isSpecifierEnd(tokens, endIndex)) {\n        // import {A}\n        const name = tokens.identifierNameAtIndex(index);\n        return {\n            isType: false,\n            leftName: name,\n            rightName: name,\n            endIndex,\n        };\n    }\n    endIndex++;\n    if (isSpecifierEnd(tokens, endIndex)) {\n        // import {type A}\n        return {\n            isType: true,\n            leftName: null,\n            rightName: null,\n            endIndex,\n        };\n    }\n    endIndex++;\n    if (isSpecifierEnd(tokens, endIndex)) {\n        // import {A as B}\n        return {\n            isType: false,\n            leftName: tokens.identifierNameAtIndex(index),\n            rightName: tokens.identifierNameAtIndex(index + 2),\n            endIndex,\n        };\n    }\n    endIndex++;\n    if (isSpecifierEnd(tokens, endIndex)) {\n        // import {type A as B}\n        return {\n            isType: true,\n            leftName: null,\n            rightName: null,\n            endIndex,\n        };\n    }\n    throw new Error(`Unexpected import/export specifier at ${index}`);\n}\nfunction isSpecifierEnd(tokens, index) {\n    const token = tokens.tokens[index];\n    return token.type === types_1.TokenType.braceR || token.type === types_1.TokenType.comma;\n}\n","type":"js","dependency_paths":[["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"]],"dependency_map":[],"exported":[{"type":"named","name":"getImportExportSpecifierInfo"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/util/getImportExportSpecifierInfo.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = getImportExportSpecifierInfo;\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    /**\n     * Determine information about this named import or named export specifier.\n     *\n     * This syntax is the `a` from statements like these:\n     * import {A} from \"./foo\";\n     * export {A};\n     * export {A} from \"./foo\";\n     *\n     * As it turns out, we can exactly characterize the syntax meaning by simply\n     * counting the number of tokens, which can be from 1 to 4:\n     * {A}\n     * {type A}\n     * {A as B}\n     * {type A as B}\n     *\n     * In the type case, we never actually need the names in practice, so don't get\n     * them.\n     *\n     * TODO: There's some redundancy with the type detection here and the isType\n     * flag that's already present on tokens in TS mode. This function could\n     * potentially be simplified and/or pushed to the call sites to avoid the object\n     * allocation.\n     */\n    function getImportExportSpecifierInfo(tokens, index = tokens.currentIndex()) {\n        let endIndex = index + 1;\n        if (isSpecifierEnd(tokens, endIndex)) {\n            // import {A}\n            const name = tokens.identifierNameAtIndex(index);\n            return {\n                isType: false,\n                leftName: name,\n                rightName: name,\n                endIndex,\n            };\n        }\n        endIndex++;\n        if (isSpecifierEnd(tokens, endIndex)) {\n            // import {type A}\n            return {\n                isType: true,\n                leftName: null,\n                rightName: null,\n                endIndex,\n            };\n        }\n        endIndex++;\n        if (isSpecifierEnd(tokens, endIndex)) {\n            // import {A as B}\n            return {\n                isType: false,\n                leftName: tokens.identifierNameAtIndex(index),\n                rightName: tokens.identifierNameAtIndex(index + 2),\n                endIndex,\n            };\n        }\n        endIndex++;\n        if (isSpecifierEnd(tokens, endIndex)) {\n            // import {type A as B}\n            return {\n                isType: true,\n                leftName: null,\n                rightName: null,\n                endIndex,\n            };\n        }\n        throw new Error(`Unexpected import/export specifier at ${index}`);\n    }\n    function isSpecifierEnd(tokens, index) {\n        const token = tokens.tokens[index];\n        return token.type === types_1.TokenType.braceR || token.type === types_1.TokenType.comma;\n    }\n}\n","min_source":"function _(e,n,t,i,r){i(),t.default=function(e,n=e.currentIndex()){let t=n+1;if(f(e,t)){const i=e.identifierNameAtIndex(n);return{isType:!1,leftName:i,rightName:i,endIndex:t}}if(t++,f(e,t))return{isType:!0,leftName:null,rightName:null,endIndex:t};if(t++,f(e,t))return{isType:!1,leftName:e.identifierNameAtIndex(n),rightName:e.identifierNameAtIndex(n+2),endIndex:t};if(t++,f(e,t))return{isType:!0,leftName:null,rightName:null,endIndex:t};throw new Error(`Unexpected import/export specifier at ${n}`)};const d=e(\"f0c35cbd76\");function f(e,n){const t=e.tokens[n];return t.type===d.TokenType.braceR||t.type===d.TokenType.comma}}\n//# sourceMappingURL=getImportExportSpecifierInfo.min.js.map","min_map":"{\"version\":3,\"file\":\"getImportExportSpecifierInfo.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"tokens\",\"index\",\"currentIndex\",\"endIndex\",\"isSpecifierEnd\",\"name\",\"identifierNameAtIndex\",\"isType\",\"leftName\",\"rightName\",\"Error\",\"types_1\",\"token\",\"type\",\"TokenType\",\"braceR\",\"comma\"],\"sources\":[\"0\"],\"mappings\":\"AAA4D,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzGD,IACAD,EAAQG,QAyBR,SAAsCC,EAAQC,EAAQD,EAAOE,gBACzD,IAAIC,EAAWF,EAAQ,EACvB,GAAIG,EAAeJ,EAAQG,GAAW,CAElC,MAAME,EAAOL,EAAOM,sBAAsBL,GAC1C,MAAO,CACHM,QAAQ,EACRC,SAAUH,EACVI,UAAWJ,EACXF,WAER,CAEA,GADAA,IACIC,EAAeJ,EAAQG,GAEvB,MAAO,CACHI,QAAQ,EACRC,SAAU,KACVC,UAAW,KACXN,YAIR,GADAA,IACIC,EAAeJ,EAAQG,GAEvB,MAAO,CACHI,QAAQ,EACRC,SAAUR,EAAOM,sBAAsBL,GACvCQ,UAAWT,EAAOM,sBAAsBL,EAAQ,GAChDE,YAIR,GADAA,IACIC,EAAeJ,EAAQG,GAEvB,MAAO,CACHI,QAAQ,EACRC,SAAU,KACVC,UAAW,KACXN,YAGR,MAAM,IAAIO,MAAM,yCAAyCT,IAC7D,EAnEA,MAAMU,EAAUjB,EAAQ,cAoExB,SAASU,EAAeJ,EAAQC,GAC5B,MAAMW,EAAQZ,EAAOA,OAAOC,GAC5B,OAAOW,EAAMC,OAASF,EAAQG,UAAUC,QAAUH,EAAMC,OAASF,EAAQG,UAAUE,KACvF,CACJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getNonTypeIdentifiers.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/util/getNonTypeIdentifiers.js","resolution":"ESM","id":"1ff9c9004b","hash":"1ff9c9004ba2553133bbf28ea28adc507c1b7ffbb760d822a5ec10c078c75b9b","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getNonTypeIdentifiers = getNonTypeIdentifiers;\nconst tslib_1 = require(\"tslib\");\nconst tokenizer_1 = require(\"../parser/tokenizer\");\nconst types_1 = require(\"../parser/tokenizer/types\");\nconst JSXTransformer_1 = require(\"../transformers/JSXTransformer\");\nconst getJSXPragmaInfo_1 = tslib_1.__importDefault(require(\"./getJSXPragmaInfo\"));\nfunction getNonTypeIdentifiers(tokens, options) {\n    const jsxPragmaInfo = (0, getJSXPragmaInfo_1.default)(options);\n    const nonTypeIdentifiers = new Set();\n    for (let i = 0; i < tokens.tokens.length; i++) {\n        const token = tokens.tokens[i];\n        if (token.type === types_1.TokenType.name &&\n            !token.isType &&\n            (token.identifierRole === tokenizer_1.IdentifierRole.Access ||\n                token.identifierRole === tokenizer_1.IdentifierRole.ObjectShorthand ||\n                token.identifierRole === tokenizer_1.IdentifierRole.ExportAccess) &&\n            !token.shadowsGlobal) {\n            nonTypeIdentifiers.add(tokens.identifierNameForToken(token));\n        }\n        if (token.type === types_1.TokenType.jsxTagStart) {\n            nonTypeIdentifiers.add(jsxPragmaInfo.base);\n        }\n        if (token.type === types_1.TokenType.jsxTagStart &&\n            i + 1 < tokens.tokens.length &&\n            tokens.tokens[i + 1].type === types_1.TokenType.jsxTagEnd) {\n            nonTypeIdentifiers.add(jsxPragmaInfo.base);\n            nonTypeIdentifiers.add(jsxPragmaInfo.fragmentBase);\n        }\n        if (token.type === types_1.TokenType.jsxName && token.identifierRole === tokenizer_1.IdentifierRole.Access) {\n            const identifierName = tokens.identifierNameForToken(token);\n            // Lower-case single-component tag names like \"div\" don't count.\n            if (!(0, JSXTransformer_1.startsWithLowerCase)(identifierName) || tokens.tokens[i + 1].type === types_1.TokenType.dot) {\n                nonTypeIdentifiers.add(tokens.identifierNameForToken(token));\n            }\n        }\n    }\n    return nonTypeIdentifiers;\n}\n","type":"js","dependency_paths":[["../parser/tokenizer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["../transformers/JSXTransformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/JSXTransformer.js"],["./getJSXPragmaInfo","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getJSXPragmaInfo.js"]],"dependency_map":[],"exported":[{"type":"named","name":"getNonTypeIdentifiers"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/util/getNonTypeIdentifiers.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.getNonTypeIdentifiers = getNonTypeIdentifiers;\n    const tslib_1 = require(\"tslib\");\n    const tokenizer_1 = require(\"bfb18d0576\") /* ../parser/tokenizer */;\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    const JSXTransformer_1 = require(\"a0e577c292\") /* ../transformers/JSXTransformer */;\n    const getJSXPragmaInfo_1 = tslib_1.__importDefault(require(\"d797c101ed\") /* ./getJSXPragmaInfo */);\n    function getNonTypeIdentifiers(tokens, options) {\n        const jsxPragmaInfo = (0, getJSXPragmaInfo_1.default)(options);\n        const nonTypeIdentifiers = new Set();\n        for (let i = 0; i < tokens.tokens.length; i++) {\n            const token = tokens.tokens[i];\n            if (token.type === types_1.TokenType.name &&\n                !token.isType &&\n                (token.identifierRole === tokenizer_1.IdentifierRole.Access ||\n                    token.identifierRole === tokenizer_1.IdentifierRole.ObjectShorthand ||\n                    token.identifierRole === tokenizer_1.IdentifierRole.ExportAccess) &&\n                !token.shadowsGlobal) {\n                nonTypeIdentifiers.add(tokens.identifierNameForToken(token));\n            }\n            if (token.type === types_1.TokenType.jsxTagStart) {\n                nonTypeIdentifiers.add(jsxPragmaInfo.base);\n            }\n            if (token.type === types_1.TokenType.jsxTagStart &&\n                i + 1 < tokens.tokens.length &&\n                tokens.tokens[i + 1].type === types_1.TokenType.jsxTagEnd) {\n                nonTypeIdentifiers.add(jsxPragmaInfo.base);\n                nonTypeIdentifiers.add(jsxPragmaInfo.fragmentBase);\n            }\n            if (token.type === types_1.TokenType.jsxName && token.identifierRole === tokenizer_1.IdentifierRole.Access) {\n                const identifierName = tokens.identifierNameForToken(token);\n                // Lower-case single-component tag names like \"div\" don't count.\n                if (!(0, JSXTransformer_1.startsWithLowerCase)(identifierName) || tokens.tokens[i + 1].type === types_1.TokenType.dot) {\n                    nonTypeIdentifiers.add(tokens.identifierNameForToken(token));\n                }\n            }\n        }\n        return nonTypeIdentifiers;\n    }\n}\n","min_source":"function _(e,t,n,o,i){o(),n.getNonTypeIdentifiers=function(e,t){const n=(0,f.default)(t),o=new Set;for(let t=0;t<e.tokens.length;t++){const i=e.tokens[t];if(i.type!==a.TokenType.name||i.isType||i.identifierRole!==s.IdentifierRole.Access&&i.identifierRole!==s.IdentifierRole.ObjectShorthand&&i.identifierRole!==s.IdentifierRole.ExportAccess||i.shadowsGlobal||o.add(e.identifierNameForToken(i)),i.type===a.TokenType.jsxTagStart&&o.add(n.base),i.type===a.TokenType.jsxTagStart&&t+1<e.tokens.length&&e.tokens[t+1].type===a.TokenType.jsxTagEnd&&(o.add(n.base),o.add(n.fragmentBase)),i.type===a.TokenType.jsxName&&i.identifierRole===s.IdentifierRole.Access){const n=e.identifierNameForToken(i);(0,r.startsWithLowerCase)(n)&&e.tokens[t+1].type!==a.TokenType.dot||o.add(e.identifierNameForToken(i))}}return o};const d=e(\"tslib\"),s=e(\"bfb18d0576\"),a=e(\"f0c35cbd76\"),r=e(\"a0e577c292\"),f=d.__importDefault(e(\"d797c101ed\"))}\n//# sourceMappingURL=getNonTypeIdentifiers.min.js.map","min_map":"{\"version\":3,\"file\":\"getNonTypeIdentifiers.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"getNonTypeIdentifiers\",\"tokens\",\"options\",\"jsxPragmaInfo\",\"getJSXPragmaInfo_1\",\"default\",\"nonTypeIdentifiers\",\"Set\",\"i\",\"length\",\"token\",\"type\",\"types_1\",\"TokenType\",\"name\",\"isType\",\"identifierRole\",\"tokenizer_1\",\"IdentifierRole\",\"Access\",\"ObjectShorthand\",\"ExportAccess\",\"shadowsGlobal\",\"add\",\"identifierNameForToken\",\"jsxTagStart\",\"base\",\"jsxTagEnd\",\"fragmentBase\",\"jsxName\",\"identifierName\",\"JSXTransformer_1\",\"startsWithLowerCase\",\"dot\",\"tslib_1\",\"__importDefault\"],\"sources\":[\"0\"],\"mappings\":\"AAAqD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAClGD,IACAD,EAAQG,sBAMR,SAA+BC,EAAQC,GACnC,MAAMC,GAAgB,EAAIC,EAAmBC,SAASH,GAChDI,EAAqB,IAAIC,IAC/B,IAAK,IAAIC,EAAI,EAAGA,EAAIP,EAAOA,OAAOQ,OAAQD,IAAK,CAC3C,MAAME,EAAQT,EAAOA,OAAOO,GAkB5B,GAjBIE,EAAMC,OAASC,EAAQC,UAAUC,MAChCJ,EAAMK,QACNL,EAAMM,iBAAmBC,EAAYC,eAAeC,QACjDT,EAAMM,iBAAmBC,EAAYC,eAAeE,iBACpDV,EAAMM,iBAAmBC,EAAYC,eAAeG,cACvDX,EAAMY,eACPhB,EAAmBiB,IAAItB,EAAOuB,uBAAuBd,IAErDA,EAAMC,OAASC,EAAQC,UAAUY,aACjCnB,EAAmBiB,IAAIpB,EAAcuB,MAErChB,EAAMC,OAASC,EAAQC,UAAUY,aACjCjB,EAAI,EAAIP,EAAOA,OAAOQ,QACtBR,EAAOA,OAAOO,EAAI,GAAGG,OAASC,EAAQC,UAAUc,YAChDrB,EAAmBiB,IAAIpB,EAAcuB,MACrCpB,EAAmBiB,IAAIpB,EAAcyB,eAErClB,EAAMC,OAASC,EAAQC,UAAUgB,SAAWnB,EAAMM,iBAAmBC,EAAYC,eAAeC,OAAQ,CACxG,MAAMW,EAAiB7B,EAAOuB,uBAAuBd,IAEhD,EAAIqB,EAAiBC,qBAAqBF,IAAmB7B,EAAOA,OAAOO,EAAI,GAAGG,OAASC,EAAQC,UAAUoB,KAC9G3B,EAAmBiB,IAAItB,EAAOuB,uBAAuBd,GAE7D,CACJ,CACA,OAAOJ,CACX,EApCA,MAAM4B,EAAUvC,EAAQ,SAClBsB,EAActB,EAAQ,cACtBiB,EAAUjB,EAAQ,cAClBoC,EAAmBpC,EAAQ,cAC3BS,EAAqB8B,EAAQC,gBAAgBxC,EAAQ,cAiC/D\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/JSXTransformer.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/transformers/JSXTransformer.js","resolution":"ESM","id":"a0e577c292","hash":"a0e577c2923d69170f176585c3424e39b0bec8e07a68a62ad714196b064712a1","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.startsWithLowerCase = startsWithLowerCase;\nconst tslib_1 = require(\"tslib\");\nconst xhtml_1 = tslib_1.__importDefault(require(\"../parser/plugins/jsx/xhtml\"));\nconst tokenizer_1 = require(\"../parser/tokenizer\");\nconst types_1 = require(\"../parser/tokenizer/types\");\nconst charcodes_1 = require(\"../parser/util/charcodes\");\nconst getJSXPragmaInfo_1 = tslib_1.__importDefault(require(\"../util/getJSXPragmaInfo\"));\nconst Transformer_1 = tslib_1.__importDefault(require(\"./Transformer\"));\nclass JSXTransformer extends Transformer_1.default {\n    // State for calculating the line number of each JSX tag in development.\n    __init() { this.lastLineNumber = 1; }\n    __init2() { this.lastIndex = 0; }\n    // In development, variable name holding the name of the current file.\n    __init3() { this.filenameVarName = null; }\n    // Mapping of claimed names for imports in the automatic transform, e,g.\n    // {jsx: \"_jsx\"}. This determines which imports to generate in the prefix.\n    __init4() { this.esmAutomaticImportNameResolutions = {}; }\n    // When automatically adding imports in CJS mode, we store the variable name\n    // holding the imported CJS module so we can require it in the prefix.\n    __init5() { this.cjsAutomaticModuleNameResolutions = {}; }\n    constructor(rootTransformer, tokens, importProcessor, nameManager, options) {\n        super();\n        this.rootTransformer = rootTransformer;\n        this.tokens = tokens;\n        this.importProcessor = importProcessor;\n        this.nameManager = nameManager;\n        this.options = options;\n        JSXTransformer.prototype.__init.call(this);\n        JSXTransformer.prototype.__init2.call(this);\n        JSXTransformer.prototype.__init3.call(this);\n        JSXTransformer.prototype.__init4.call(this);\n        JSXTransformer.prototype.__init5.call(this);\n        ;\n        this.jsxPragmaInfo = (0, getJSXPragmaInfo_1.default)(options);\n        this.isAutomaticRuntime = options.jsxRuntime === \"automatic\";\n        this.jsxImportSource = options.jsxImportSource || \"react\";\n    }\n    process() {\n        if (this.tokens.matches1(types_1.TokenType.jsxTagStart)) {\n            this.processJSXTag();\n            return true;\n        }\n        return false;\n    }\n    getPrefixCode() {\n        let prefix = \"\";\n        if (this.filenameVarName) {\n            prefix += `const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath || \"\")};`;\n        }\n        if (this.isAutomaticRuntime) {\n            if (this.importProcessor) {\n                // CJS mode: emit require statements for all modules that were referenced.\n                for (const [path, resolvedName] of Object.entries(this.cjsAutomaticModuleNameResolutions)) {\n                    prefix += `var ${resolvedName} = require(\"${path}\");`;\n                }\n            }\n            else {\n                // ESM mode: consolidate and emit import statements for referenced names.\n                const { createElement: createElementResolution, ...otherResolutions } = this.esmAutomaticImportNameResolutions;\n                if (createElementResolution) {\n                    prefix += `import {createElement as ${createElementResolution}} from \"${this.jsxImportSource}\";`;\n                }\n                const importSpecifiers = Object.entries(otherResolutions)\n                    .map(([name, resolvedName]) => `${name} as ${resolvedName}`)\n                    .join(\", \");\n                if (importSpecifiers) {\n                    const importPath = this.jsxImportSource + (this.options.production ? \"/jsx-runtime\" : \"/jsx-dev-runtime\");\n                    prefix += `import {${importSpecifiers}} from \"${importPath}\";`;\n                }\n            }\n        }\n        return prefix;\n    }\n    processJSXTag() {\n        const { jsxRole, start } = this.tokens.currentToken();\n        // Calculate line number information at the very start (if in development\n        // mode) so that the information is guaranteed to be queried in token order.\n        const elementLocationCode = this.options.production ? null : this.getElementLocationCode(start);\n        if (this.isAutomaticRuntime && jsxRole !== tokenizer_1.JSXRole.KeyAfterPropSpread) {\n            this.transformTagToJSXFunc(elementLocationCode, jsxRole);\n        }\n        else {\n            this.transformTagToCreateElement(elementLocationCode);\n        }\n    }\n    getElementLocationCode(firstTokenStart) {\n        const lineNumber = this.getLineNumberForIndex(firstTokenStart);\n        return `lineNumber: ${lineNumber}`;\n    }\n    /**\n     * Get the line number for this source position. This is calculated lazily and\n     * must be called in increasing order by index.\n     */\n    getLineNumberForIndex(index) {\n        const code = this.tokens.code;\n        while (this.lastIndex < index && this.lastIndex < code.length) {\n            if (code[this.lastIndex] === \"\\n\") {\n                this.lastLineNumber++;\n            }\n            this.lastIndex++;\n        }\n        return this.lastLineNumber;\n    }\n    /**\n     * Convert the current JSX element to a call to jsx, jsxs, or jsxDEV. This is\n     * the primary transformation for the automatic transform.\n     *\n     * Example:\n     * <div a={1} key={2}>Hello{x}</div>\n     * becomes\n     * jsxs('div', {a: 1, children: [\"Hello\", x]}, 2)\n     */\n    transformTagToJSXFunc(elementLocationCode, jsxRole) {\n        const isStatic = jsxRole === tokenizer_1.JSXRole.StaticChildren;\n        // First tag is always jsxTagStart.\n        this.tokens.replaceToken(this.getJSXFuncInvocationCode(isStatic));\n        let keyCode = null;\n        if (this.tokens.matches1(types_1.TokenType.jsxTagEnd)) {\n            // Fragment syntax.\n            this.tokens.replaceToken(`${this.getFragmentCode()}, {`);\n            this.processAutomaticChildrenAndEndProps(jsxRole);\n        }\n        else {\n            // Normal open tag or self-closing tag.\n            this.processTagIntro();\n            this.tokens.appendCode(\", {\");\n            keyCode = this.processProps(true);\n            if (this.tokens.matches2(types_1.TokenType.slash, types_1.TokenType.jsxTagEnd)) {\n                // Self-closing tag, no children to add, so close the props.\n                this.tokens.appendCode(\"}\");\n            }\n            else if (this.tokens.matches1(types_1.TokenType.jsxTagEnd)) {\n                // Tag with children.\n                this.tokens.removeToken();\n                this.processAutomaticChildrenAndEndProps(jsxRole);\n            }\n            else {\n                throw new Error(\"Expected either /> or > at the end of the tag.\");\n            }\n            // If a key was present, move it to its own arg. Note that moving code\n            // like this will cause line numbers to get out of sync within the JSX\n            // element if the key expression has a newline in it. This is unfortunate,\n            // but hopefully should be rare.\n            if (keyCode) {\n                this.tokens.appendCode(`, ${keyCode}`);\n            }\n        }\n        if (!this.options.production) {\n            // If the key wasn't already added, add it now so we can correctly set\n            // positional args for jsxDEV.\n            if (keyCode === null) {\n                this.tokens.appendCode(\", void 0\");\n            }\n            this.tokens.appendCode(`, ${isStatic}, ${this.getDevSource(elementLocationCode)}, this`);\n        }\n        // We're at the close-tag or the end of a self-closing tag, so remove\n        // everything else and close the function call.\n        this.tokens.removeInitialToken();\n        while (!this.tokens.matches1(types_1.TokenType.jsxTagEnd)) {\n            this.tokens.removeToken();\n        }\n        this.tokens.replaceToken(\")\");\n    }\n    /**\n     * Convert the current JSX element to a createElement call. In the classic\n     * runtime, this is the only case. In the automatic runtime, this is called\n     * as a fallback in some situations.\n     *\n     * Example:\n     * <div a={1} key={2}>Hello{x}</div>\n     * becomes\n     * React.createElement('div', {a: 1, key: 2}, \"Hello\", x)\n     */\n    transformTagToCreateElement(elementLocationCode) {\n        // First tag is always jsxTagStart.\n        this.tokens.replaceToken(this.getCreateElementInvocationCode());\n        if (this.tokens.matches1(types_1.TokenType.jsxTagEnd)) {\n            // Fragment syntax.\n            this.tokens.replaceToken(`${this.getFragmentCode()}, null`);\n            this.processChildren(true);\n        }\n        else {\n            // Normal open tag or self-closing tag.\n            this.processTagIntro();\n            this.processPropsObjectWithDevInfo(elementLocationCode);\n            if (this.tokens.matches2(types_1.TokenType.slash, types_1.TokenType.jsxTagEnd)) {\n                // Self-closing tag; no children to process.\n            }\n            else if (this.tokens.matches1(types_1.TokenType.jsxTagEnd)) {\n                // Tag with children and a close-tag; process the children as args.\n                this.tokens.removeToken();\n                this.processChildren(true);\n            }\n            else {\n                throw new Error(\"Expected either /> or > at the end of the tag.\");\n            }\n        }\n        // We're at the close-tag or the end of a self-closing tag, so remove\n        // everything else and close the function call.\n        this.tokens.removeInitialToken();\n        while (!this.tokens.matches1(types_1.TokenType.jsxTagEnd)) {\n            this.tokens.removeToken();\n        }\n        this.tokens.replaceToken(\")\");\n    }\n    /**\n     * Get the code for the relevant function for this context: jsx, jsxs,\n     * or jsxDEV. The following open-paren is included as well.\n     *\n     * These functions are only used for the automatic runtime, so they are always\n     * auto-imported, but the auto-import will be either CJS or ESM based on the\n     * target module format.\n     */\n    getJSXFuncInvocationCode(isStatic) {\n        if (this.options.production) {\n            if (isStatic) {\n                return this.claimAutoImportedFuncInvocation(\"jsxs\", \"/jsx-runtime\");\n            }\n            else {\n                return this.claimAutoImportedFuncInvocation(\"jsx\", \"/jsx-runtime\");\n            }\n        }\n        else {\n            return this.claimAutoImportedFuncInvocation(\"jsxDEV\", \"/jsx-dev-runtime\");\n        }\n    }\n    /**\n     * Return the code to use for the createElement function, e.g.\n     * `React.createElement`, including the following open-paren.\n     *\n     * This is the main function to use for the classic runtime. For the\n     * automatic runtime, this function is used as a fallback function to\n     * preserve behavior when there is a prop spread followed by an explicit\n     * key. In that automatic runtime case, the function should be automatically\n     * imported.\n     */\n    getCreateElementInvocationCode() {\n        if (this.isAutomaticRuntime) {\n            return this.claimAutoImportedFuncInvocation(\"createElement\", \"\");\n        }\n        else {\n            const { jsxPragmaInfo } = this;\n            const resolvedPragmaBaseName = this.importProcessor\n                ? this.importProcessor.getIdentifierReplacement(jsxPragmaInfo.base) || jsxPragmaInfo.base\n                : jsxPragmaInfo.base;\n            return `${resolvedPragmaBaseName}${jsxPragmaInfo.suffix}(`;\n        }\n    }\n    /**\n     * Return the code to use as the component when compiling a shorthand\n     * fragment, e.g. `React.Fragment`.\n     *\n     * This may be called from either the classic or automatic runtime, and\n     * the value should be auto-imported for the automatic runtime.\n     */\n    getFragmentCode() {\n        if (this.isAutomaticRuntime) {\n            return this.claimAutoImportedName(\"Fragment\", this.options.production ? \"/jsx-runtime\" : \"/jsx-dev-runtime\");\n        }\n        else {\n            const { jsxPragmaInfo } = this;\n            const resolvedFragmentPragmaBaseName = this.importProcessor\n                ? this.importProcessor.getIdentifierReplacement(jsxPragmaInfo.fragmentBase) ||\n                    jsxPragmaInfo.fragmentBase\n                : jsxPragmaInfo.fragmentBase;\n            return resolvedFragmentPragmaBaseName + jsxPragmaInfo.fragmentSuffix;\n        }\n    }\n    /**\n     * Return code that invokes the given function.\n     *\n     * When the imports transform is enabled, use the CJSImportTransformer\n     * strategy of using `.call(void 0, ...` to avoid passing a `this` value in a\n     * situation that would otherwise look like a method call.\n     */\n    claimAutoImportedFuncInvocation(funcName, importPathSuffix) {\n        const funcCode = this.claimAutoImportedName(funcName, importPathSuffix);\n        if (this.importProcessor) {\n            return `${funcCode}.call(void 0, `;\n        }\n        else {\n            return `${funcCode}(`;\n        }\n    }\n    claimAutoImportedName(funcName, importPathSuffix) {\n        if (this.importProcessor) {\n            // CJS mode: claim a name for the module and mark it for import.\n            const path = this.jsxImportSource + importPathSuffix;\n            if (!this.cjsAutomaticModuleNameResolutions[path]) {\n                this.cjsAutomaticModuleNameResolutions[path] =\n                    this.importProcessor.getFreeIdentifierForPath(path);\n            }\n            return `${this.cjsAutomaticModuleNameResolutions[path]}.${funcName}`;\n        }\n        else {\n            // ESM mode: claim a name for this function and add it to the names that\n            // should be auto-imported when the prefix is generated.\n            if (!this.esmAutomaticImportNameResolutions[funcName]) {\n                this.esmAutomaticImportNameResolutions[funcName] = this.nameManager.claimFreeName(`_${funcName}`);\n            }\n            return this.esmAutomaticImportNameResolutions[funcName];\n        }\n    }\n    /**\n     * Process the first part of a tag, before any props.\n     */\n    processTagIntro() {\n        // Walk forward until we see one of these patterns:\n        // jsxName to start the first prop, preceded by another jsxName to end the tag name.\n        // jsxName to start the first prop, preceded by greaterThan to end the type argument.\n        // [open brace] to start the first prop.\n        // [jsxTagEnd] to end the open-tag.\n        // [slash, jsxTagEnd] to end the self-closing tag.\n        let introEnd = this.tokens.currentIndex() + 1;\n        while (this.tokens.tokens[introEnd].isType ||\n            (!this.tokens.matches2AtIndex(introEnd - 1, types_1.TokenType.jsxName, types_1.TokenType.jsxName) &&\n                !this.tokens.matches2AtIndex(introEnd - 1, types_1.TokenType.greaterThan, types_1.TokenType.jsxName) &&\n                !this.tokens.matches1AtIndex(introEnd, types_1.TokenType.braceL) &&\n                !this.tokens.matches1AtIndex(introEnd, types_1.TokenType.jsxTagEnd) &&\n                !this.tokens.matches2AtIndex(introEnd, types_1.TokenType.slash, types_1.TokenType.jsxTagEnd))) {\n            introEnd++;\n        }\n        if (introEnd === this.tokens.currentIndex() + 1) {\n            const tagName = this.tokens.identifierName();\n            if (startsWithLowerCase(tagName)) {\n                this.tokens.replaceToken(`'${tagName}'`);\n            }\n        }\n        while (this.tokens.currentIndex() < introEnd) {\n            this.rootTransformer.processToken();\n        }\n    }\n    /**\n     * Starting at the beginning of the props, add the props argument to\n     * React.createElement, including the comma before it.\n     */\n    processPropsObjectWithDevInfo(elementLocationCode) {\n        const devProps = this.options.production\n            ? \"\"\n            : `__self: this, __source: ${this.getDevSource(elementLocationCode)}`;\n        if (!this.tokens.matches1(types_1.TokenType.jsxName) && !this.tokens.matches1(types_1.TokenType.braceL)) {\n            if (devProps) {\n                this.tokens.appendCode(`, {${devProps}}`);\n            }\n            else {\n                this.tokens.appendCode(`, null`);\n            }\n            return;\n        }\n        this.tokens.appendCode(`, {`);\n        this.processProps(false);\n        if (devProps) {\n            this.tokens.appendCode(` ${devProps}}`);\n        }\n        else {\n            this.tokens.appendCode(\"}\");\n        }\n    }\n    /**\n     * Transform the core part of the props, assuming that a { has already been\n     * inserted before us and that a } will be inserted after us.\n     *\n     * If extractKeyCode is true (i.e. when using any jsx... function), any prop\n     * named \"key\" has its code captured and returned rather than being emitted to\n     * the output code. This shifts line numbers, and emitting the code later will\n     * correct line numbers again. If no key is found or if extractKeyCode is\n     * false, this function returns null.\n     */\n    processProps(extractKeyCode) {\n        let keyCode = null;\n        while (true) {\n            if (this.tokens.matches2(types_1.TokenType.jsxName, types_1.TokenType.eq)) {\n                // This is a regular key={value} or key=\"value\" prop.\n                const propName = this.tokens.identifierName();\n                if (extractKeyCode && propName === \"key\") {\n                    if (keyCode !== null) {\n                        // The props list has multiple keys. Different implementations are\n                        // inconsistent about what to do here: as of this writing, Babel and\n                        // swc keep the *last* key and completely remove the rest, while\n                        // TypeScript uses the *first* key and leaves the others as regular\n                        // props. The React team collaborated with Babel on the\n                        // implementation of this behavior, so presumably the Babel behavior\n                        // is the one to use.\n                        // Since we won't ever be emitting the previous key code, we need to\n                        // at least emit its newlines here so that the line numbers match up\n                        // in the long run.\n                        this.tokens.appendCode(keyCode.replace(/[^\\n]/g, \"\"));\n                    }\n                    // key\n                    this.tokens.removeToken();\n                    // =\n                    this.tokens.removeToken();\n                    const snapshot = this.tokens.snapshot();\n                    this.processPropValue();\n                    keyCode = this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(snapshot);\n                    // Don't add a comma\n                    continue;\n                }\n                else {\n                    this.processPropName(propName);\n                    this.tokens.replaceToken(\": \");\n                    this.processPropValue();\n                }\n            }\n            else if (this.tokens.matches1(types_1.TokenType.jsxName)) {\n                // This is a shorthand prop like <input disabled />.\n                const propName = this.tokens.identifierName();\n                this.processPropName(propName);\n                this.tokens.appendCode(\": true\");\n            }\n            else if (this.tokens.matches1(types_1.TokenType.braceL)) {\n                // This is prop spread, like <div {...getProps()}>, which we can pass\n                // through fairly directly as an object spread.\n                this.tokens.replaceToken(\"\");\n                this.rootTransformer.processBalancedCode();\n                this.tokens.replaceToken(\"\");\n            }\n            else {\n                break;\n            }\n            this.tokens.appendCode(\",\");\n        }\n        return keyCode;\n    }\n    processPropName(propName) {\n        if (propName.includes(\"-\")) {\n            this.tokens.replaceToken(`'${propName}'`);\n        }\n        else {\n            this.tokens.copyToken();\n        }\n    }\n    processPropValue() {\n        if (this.tokens.matches1(types_1.TokenType.braceL)) {\n            this.tokens.replaceToken(\"\");\n            this.rootTransformer.processBalancedCode();\n            this.tokens.replaceToken(\"\");\n        }\n        else if (this.tokens.matches1(types_1.TokenType.jsxTagStart)) {\n            this.processJSXTag();\n        }\n        else {\n            this.processStringPropValue();\n        }\n    }\n    processStringPropValue() {\n        const token = this.tokens.currentToken();\n        const valueCode = this.tokens.code.slice(token.start + 1, token.end - 1);\n        const replacementCode = formatJSXTextReplacement(valueCode);\n        const literalCode = formatJSXStringValueLiteral(valueCode);\n        this.tokens.replaceToken(literalCode + replacementCode);\n    }\n    /**\n     * Starting in the middle of the props object literal, produce an additional\n     * prop for the children and close the object literal.\n     */\n    processAutomaticChildrenAndEndProps(jsxRole) {\n        if (jsxRole === tokenizer_1.JSXRole.StaticChildren) {\n            this.tokens.appendCode(\" children: [\");\n            this.processChildren(false);\n            this.tokens.appendCode(\"]}\");\n        }\n        else {\n            // The parser information tells us whether we will see a real child or if\n            // all remaining children (if any) will resolve to empty. If there are no\n            // non-empty children, don't emit a children prop at all, but still\n            // process children so that we properly transform the code into nothing.\n            if (jsxRole === tokenizer_1.JSXRole.OneChild) {\n                this.tokens.appendCode(\" children: \");\n            }\n            this.processChildren(false);\n            this.tokens.appendCode(\"}\");\n        }\n    }\n    /**\n     * Transform children into a comma-separated list, which will be either\n     * arguments to createElement or array elements of a children prop.\n     */\n    processChildren(needsInitialComma) {\n        let needsComma = needsInitialComma;\n        while (true) {\n            if (this.tokens.matches2(types_1.TokenType.jsxTagStart, types_1.TokenType.slash)) {\n                // Closing tag, so no more children.\n                return;\n            }\n            let didEmitElement = false;\n            if (this.tokens.matches1(types_1.TokenType.braceL)) {\n                if (this.tokens.matches2(types_1.TokenType.braceL, types_1.TokenType.braceR)) {\n                    // Empty interpolations and comment-only interpolations are allowed\n                    // and don't create an extra child arg.\n                    this.tokens.replaceToken(\"\");\n                    this.tokens.replaceToken(\"\");\n                }\n                else {\n                    // Interpolated expression.\n                    this.tokens.replaceToken(needsComma ? \", \" : \"\");\n                    this.rootTransformer.processBalancedCode();\n                    this.tokens.replaceToken(\"\");\n                    didEmitElement = true;\n                }\n            }\n            else if (this.tokens.matches1(types_1.TokenType.jsxTagStart)) {\n                // Child JSX element\n                this.tokens.appendCode(needsComma ? \", \" : \"\");\n                this.processJSXTag();\n                didEmitElement = true;\n            }\n            else if (this.tokens.matches1(types_1.TokenType.jsxText) || this.tokens.matches1(types_1.TokenType.jsxEmptyText)) {\n                didEmitElement = this.processChildTextElement(needsComma);\n            }\n            else {\n                throw new Error(\"Unexpected token when processing JSX children.\");\n            }\n            if (didEmitElement) {\n                needsComma = true;\n            }\n        }\n    }\n    /**\n     * Turn a JSX text element into a string literal, or nothing at all if the JSX\n     * text resolves to the empty string.\n     *\n     * Returns true if a string literal is emitted, false otherwise.\n     */\n    processChildTextElement(needsComma) {\n        const token = this.tokens.currentToken();\n        const valueCode = this.tokens.code.slice(token.start, token.end);\n        const replacementCode = formatJSXTextReplacement(valueCode);\n        const literalCode = formatJSXTextLiteral(valueCode);\n        if (literalCode === '\"\"') {\n            this.tokens.replaceToken(replacementCode);\n            return false;\n        }\n        else {\n            this.tokens.replaceToken(`${needsComma ? \", \" : \"\"}${literalCode}${replacementCode}`);\n            return true;\n        }\n    }\n    getDevSource(elementLocationCode) {\n        return `{fileName: ${this.getFilenameVarName()}, ${elementLocationCode}}`;\n    }\n    getFilenameVarName() {\n        if (!this.filenameVarName) {\n            this.filenameVarName = this.nameManager.claimFreeName(\"_jsxFileName\");\n        }\n        return this.filenameVarName;\n    }\n}\nexports.default = JSXTransformer;\n/**\n * Spec for identifiers: https://tc39.github.io/ecma262/#prod-IdentifierStart.\n *\n * Really only treat anything starting with a-z as tag names.  `_`, `$`, `é`\n * should be treated as component names\n */\nfunction startsWithLowerCase(s) {\n    const firstChar = s.charCodeAt(0);\n    return firstChar >= charcodes_1.charCodes.lowercaseA && firstChar <= charcodes_1.charCodes.lowercaseZ;\n}\n/**\n * Turn the given jsxText string into a JS string literal. Leading and trailing\n * whitespace on lines is removed, except immediately after the open-tag and\n * before the close-tag. Empty lines are completely removed, and spaces are\n * added between lines after that.\n *\n * We use JSON.stringify to introduce escape characters as necessary, and trim\n * the start and end of each line and remove blank lines.\n */\nfunction formatJSXTextLiteral(text) {\n    let result = \"\";\n    let whitespace = \"\";\n    let isInInitialLineWhitespace = false;\n    let seenNonWhitespace = false;\n    for (let i = 0; i < text.length; i++) {\n        const c = text[i];\n        if (c === \" \" || c === \"\\t\" || c === \"\\r\") {\n            if (!isInInitialLineWhitespace) {\n                whitespace += c;\n            }\n        }\n        else if (c === \"\\n\") {\n            whitespace = \"\";\n            isInInitialLineWhitespace = true;\n        }\n        else {\n            if (seenNonWhitespace && isInInitialLineWhitespace) {\n                result += \" \";\n            }\n            result += whitespace;\n            whitespace = \"\";\n            if (c === \"&\") {\n                const { entity, newI } = processEntity(text, i + 1);\n                i = newI - 1;\n                result += entity;\n            }\n            else {\n                result += c;\n            }\n            seenNonWhitespace = true;\n            isInInitialLineWhitespace = false;\n        }\n    }\n    if (!isInInitialLineWhitespace) {\n        result += whitespace;\n    }\n    return JSON.stringify(result);\n}\n/**\n * Produce the code that should be printed after the JSX text string literal,\n * with most content removed, but all newlines preserved and all spacing at the\n * end preserved.\n */\nfunction formatJSXTextReplacement(text) {\n    let numNewlines = 0;\n    let numSpaces = 0;\n    for (const c of text) {\n        if (c === \"\\n\") {\n            numNewlines++;\n            numSpaces = 0;\n        }\n        else if (c === \" \") {\n            numSpaces++;\n        }\n    }\n    return \"\\n\".repeat(numNewlines) + \" \".repeat(numSpaces);\n}\n/**\n * Format a string in the value position of a JSX prop.\n *\n * Use the same implementation as convertAttribute from\n * babel-helper-builder-react-jsx.\n */\nfunction formatJSXStringValueLiteral(text) {\n    let result = \"\";\n    for (let i = 0; i < text.length; i++) {\n        const c = text[i];\n        if (c === \"\\n\") {\n            if (/\\s/.test(text[i + 1])) {\n                result += \" \";\n                while (i < text.length && /\\s/.test(text[i + 1])) {\n                    i++;\n                }\n            }\n            else {\n                result += \"\\n\";\n            }\n        }\n        else if (c === \"&\") {\n            const { entity, newI } = processEntity(text, i + 1);\n            result += entity;\n            i = newI - 1;\n        }\n        else {\n            result += c;\n        }\n    }\n    return JSON.stringify(result);\n}\n/**\n * Starting at a &, see if there's an HTML entity (specified by name, decimal\n * char code, or hex char code) and return it if so.\n *\n * Modified from jsxReadString in babel-parser.\n */\nfunction processEntity(text, indexAfterAmpersand) {\n    let str = \"\";\n    let count = 0;\n    let entity;\n    let i = indexAfterAmpersand;\n    if (text[i] === \"#\") {\n        let radix = 10;\n        i++;\n        let numStart;\n        if (text[i] === \"x\") {\n            radix = 16;\n            i++;\n            numStart = i;\n            while (i < text.length && isHexDigit(text.charCodeAt(i))) {\n                i++;\n            }\n        }\n        else {\n            numStart = i;\n            while (i < text.length && isDecimalDigit(text.charCodeAt(i))) {\n                i++;\n            }\n        }\n        if (text[i] === \";\") {\n            const numStr = text.slice(numStart, i);\n            if (numStr) {\n                i++;\n                entity = String.fromCodePoint(parseInt(numStr, radix));\n            }\n        }\n    }\n    else {\n        while (i < text.length && count++ < 10) {\n            const ch = text[i];\n            i++;\n            if (ch === \";\") {\n                entity = xhtml_1.default.get(str);\n                break;\n            }\n            str += ch;\n        }\n    }\n    if (!entity) {\n        return { entity: \"&\", newI: indexAfterAmpersand };\n    }\n    return { entity, newI: i };\n}\nfunction isDecimalDigit(code) {\n    return code >= charcodes_1.charCodes.digit0 && code <= charcodes_1.charCodes.digit9;\n}\nfunction isHexDigit(code) {\n    return ((code >= charcodes_1.charCodes.digit0 && code <= charcodes_1.charCodes.digit9) ||\n        (code >= charcodes_1.charCodes.lowercaseA && code <= charcodes_1.charCodes.lowercaseF) ||\n        (code >= charcodes_1.charCodes.uppercaseA && code <= charcodes_1.charCodes.uppercaseF));\n}\n","type":"js","dependency_paths":[["../parser/plugins/jsx/xhtml","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/jsx/xhtml.js"],["../parser/tokenizer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["../parser/util/charcodes","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/charcodes.js"],["../util/getJSXPragmaInfo","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getJSXPragmaInfo.js"],["./Transformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/Transformer.js"]],"dependency_map":[],"exported":[{"type":"named","name":"JSXTransformer"},{"type":"named","name":"startsWithLowerCase"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/transformers/JSXTransformer.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.startsWithLowerCase = startsWithLowerCase;\n    const tslib_1 = require(\"tslib\");\n    const xhtml_1 = tslib_1.__importDefault(require(\"c6b7812f89\") /* ../parser/plugins/jsx/xhtml */);\n    const tokenizer_1 = require(\"bfb18d0576\") /* ../parser/tokenizer */;\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    const charcodes_1 = require(\"22746c8ce8\") /* ../parser/util/charcodes */;\n    const getJSXPragmaInfo_1 = tslib_1.__importDefault(require(\"d797c101ed\") /* ../util/getJSXPragmaInfo */);\n    const Transformer_1 = tslib_1.__importDefault(require(\"a46f119f74\") /* ./Transformer */);\n    class JSXTransformer extends Transformer_1.default {\n        // State for calculating the line number of each JSX tag in development.\n        __init() { this.lastLineNumber = 1; }\n        __init2() { this.lastIndex = 0; }\n        // In development, variable name holding the name of the current file.\n        __init3() { this.filenameVarName = null; }\n        // Mapping of claimed names for imports in the automatic transform, e,g.\n        // {jsx: \"_jsx\"}. This determines which imports to generate in the prefix.\n        __init4() { this.esmAutomaticImportNameResolutions = {}; }\n        // When automatically adding imports in CJS mode, we store the variable name\n        // holding the imported CJS module so we can require it in the prefix.\n        __init5() { this.cjsAutomaticModuleNameResolutions = {}; }\n        constructor(rootTransformer, tokens, importProcessor, nameManager, options) {\n            super();\n            this.rootTransformer = rootTransformer;\n            this.tokens = tokens;\n            this.importProcessor = importProcessor;\n            this.nameManager = nameManager;\n            this.options = options;\n            JSXTransformer.prototype.__init.call(this);\n            JSXTransformer.prototype.__init2.call(this);\n            JSXTransformer.prototype.__init3.call(this);\n            JSXTransformer.prototype.__init4.call(this);\n            JSXTransformer.prototype.__init5.call(this);\n            ;\n            this.jsxPragmaInfo = (0, getJSXPragmaInfo_1.default)(options);\n            this.isAutomaticRuntime = options.jsxRuntime === \"automatic\";\n            this.jsxImportSource = options.jsxImportSource || \"react\";\n        }\n        process() {\n            if (this.tokens.matches1(types_1.TokenType.jsxTagStart)) {\n                this.processJSXTag();\n                return true;\n            }\n            return false;\n        }\n        getPrefixCode() {\n            let prefix = \"\";\n            if (this.filenameVarName) {\n                prefix += `const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath || \"\")};`;\n            }\n            if (this.isAutomaticRuntime) {\n                if (this.importProcessor) {\n                    // CJS mode: emit require statements for all modules that were referenced.\n                    for (const [path, resolvedName] of Object.entries(this.cjsAutomaticModuleNameResolutions)) {\n                        prefix += `var ${resolvedName} = require(\"${path}\");`;\n                    }\n                }\n                else {\n                    // ESM mode: consolidate and emit import statements for referenced names.\n                    const { createElement: createElementResolution, ...otherResolutions } = this.esmAutomaticImportNameResolutions;\n                    if (createElementResolution) {\n                        prefix += `import {createElement as ${createElementResolution}} from \"${this.jsxImportSource}\";`;\n                    }\n                    const importSpecifiers = Object.entries(otherResolutions)\n                        .map(([name, resolvedName]) => `${name} as ${resolvedName}`)\n                        .join(\", \");\n                    if (importSpecifiers) {\n                        const importPath = this.jsxImportSource + (this.options.production ? \"/jsx-runtime\" : \"/jsx-dev-runtime\");\n                        prefix += `import {${importSpecifiers}} from \"${importPath}\";`;\n                    }\n                }\n            }\n            return prefix;\n        }\n        processJSXTag() {\n            const { jsxRole, start } = this.tokens.currentToken();\n            // Calculate line number information at the very start (if in development\n            // mode) so that the information is guaranteed to be queried in token order.\n            const elementLocationCode = this.options.production ? null : this.getElementLocationCode(start);\n            if (this.isAutomaticRuntime && jsxRole !== tokenizer_1.JSXRole.KeyAfterPropSpread) {\n                this.transformTagToJSXFunc(elementLocationCode, jsxRole);\n            }\n            else {\n                this.transformTagToCreateElement(elementLocationCode);\n            }\n        }\n        getElementLocationCode(firstTokenStart) {\n            const lineNumber = this.getLineNumberForIndex(firstTokenStart);\n            return `lineNumber: ${lineNumber}`;\n        }\n        /**\n         * Get the line number for this source position. This is calculated lazily and\n         * must be called in increasing order by index.\n         */\n        getLineNumberForIndex(index) {\n            const code = this.tokens.code;\n            while (this.lastIndex < index && this.lastIndex < code.length) {\n                if (code[this.lastIndex] === \"\\n\") {\n                    this.lastLineNumber++;\n                }\n                this.lastIndex++;\n            }\n            return this.lastLineNumber;\n        }\n        /**\n         * Convert the current JSX element to a call to jsx, jsxs, or jsxDEV. This is\n         * the primary transformation for the automatic transform.\n         *\n         * Example:\n         * <div a={1} key={2}>Hello{x}</div>\n         * becomes\n         * jsxs('div', {a: 1, children: [\"Hello\", x]}, 2)\n         */\n        transformTagToJSXFunc(elementLocationCode, jsxRole) {\n            const isStatic = jsxRole === tokenizer_1.JSXRole.StaticChildren;\n            // First tag is always jsxTagStart.\n            this.tokens.replaceToken(this.getJSXFuncInvocationCode(isStatic));\n            let keyCode = null;\n            if (this.tokens.matches1(types_1.TokenType.jsxTagEnd)) {\n                // Fragment syntax.\n                this.tokens.replaceToken(`${this.getFragmentCode()}, {`);\n                this.processAutomaticChildrenAndEndProps(jsxRole);\n            }\n            else {\n                // Normal open tag or self-closing tag.\n                this.processTagIntro();\n                this.tokens.appendCode(\", {\");\n                keyCode = this.processProps(true);\n                if (this.tokens.matches2(types_1.TokenType.slash, types_1.TokenType.jsxTagEnd)) {\n                    // Self-closing tag, no children to add, so close the props.\n                    this.tokens.appendCode(\"}\");\n                }\n                else if (this.tokens.matches1(types_1.TokenType.jsxTagEnd)) {\n                    // Tag with children.\n                    this.tokens.removeToken();\n                    this.processAutomaticChildrenAndEndProps(jsxRole);\n                }\n                else {\n                    throw new Error(\"Expected either /> or > at the end of the tag.\");\n                }\n                // If a key was present, move it to its own arg. Note that moving code\n                // like this will cause line numbers to get out of sync within the JSX\n                // element if the key expression has a newline in it. This is unfortunate,\n                // but hopefully should be rare.\n                if (keyCode) {\n                    this.tokens.appendCode(`, ${keyCode}`);\n                }\n            }\n            if (!this.options.production) {\n                // If the key wasn't already added, add it now so we can correctly set\n                // positional args for jsxDEV.\n                if (keyCode === null) {\n                    this.tokens.appendCode(\", void 0\");\n                }\n                this.tokens.appendCode(`, ${isStatic}, ${this.getDevSource(elementLocationCode)}, this`);\n            }\n            // We're at the close-tag or the end of a self-closing tag, so remove\n            // everything else and close the function call.\n            this.tokens.removeInitialToken();\n            while (!this.tokens.matches1(types_1.TokenType.jsxTagEnd)) {\n                this.tokens.removeToken();\n            }\n            this.tokens.replaceToken(\")\");\n        }\n        /**\n         * Convert the current JSX element to a createElement call. In the classic\n         * runtime, this is the only case. In the automatic runtime, this is called\n         * as a fallback in some situations.\n         *\n         * Example:\n         * <div a={1} key={2}>Hello{x}</div>\n         * becomes\n         * React.createElement('div', {a: 1, key: 2}, \"Hello\", x)\n         */\n        transformTagToCreateElement(elementLocationCode) {\n            // First tag is always jsxTagStart.\n            this.tokens.replaceToken(this.getCreateElementInvocationCode());\n            if (this.tokens.matches1(types_1.TokenType.jsxTagEnd)) {\n                // Fragment syntax.\n                this.tokens.replaceToken(`${this.getFragmentCode()}, null`);\n                this.processChildren(true);\n            }\n            else {\n                // Normal open tag or self-closing tag.\n                this.processTagIntro();\n                this.processPropsObjectWithDevInfo(elementLocationCode);\n                if (this.tokens.matches2(types_1.TokenType.slash, types_1.TokenType.jsxTagEnd)) {\n                    // Self-closing tag; no children to process.\n                }\n                else if (this.tokens.matches1(types_1.TokenType.jsxTagEnd)) {\n                    // Tag with children and a close-tag; process the children as args.\n                    this.tokens.removeToken();\n                    this.processChildren(true);\n                }\n                else {\n                    throw new Error(\"Expected either /> or > at the end of the tag.\");\n                }\n            }\n            // We're at the close-tag or the end of a self-closing tag, so remove\n            // everything else and close the function call.\n            this.tokens.removeInitialToken();\n            while (!this.tokens.matches1(types_1.TokenType.jsxTagEnd)) {\n                this.tokens.removeToken();\n            }\n            this.tokens.replaceToken(\")\");\n        }\n        /**\n         * Get the code for the relevant function for this context: jsx, jsxs,\n         * or jsxDEV. The following open-paren is included as well.\n         *\n         * These functions are only used for the automatic runtime, so they are always\n         * auto-imported, but the auto-import will be either CJS or ESM based on the\n         * target module format.\n         */\n        getJSXFuncInvocationCode(isStatic) {\n            if (this.options.production) {\n                if (isStatic) {\n                    return this.claimAutoImportedFuncInvocation(\"jsxs\", \"/jsx-runtime\");\n                }\n                else {\n                    return this.claimAutoImportedFuncInvocation(\"jsx\", \"/jsx-runtime\");\n                }\n            }\n            else {\n                return this.claimAutoImportedFuncInvocation(\"jsxDEV\", \"/jsx-dev-runtime\");\n            }\n        }\n        /**\n         * Return the code to use for the createElement function, e.g.\n         * `React.createElement`, including the following open-paren.\n         *\n         * This is the main function to use for the classic runtime. For the\n         * automatic runtime, this function is used as a fallback function to\n         * preserve behavior when there is a prop spread followed by an explicit\n         * key. In that automatic runtime case, the function should be automatically\n         * imported.\n         */\n        getCreateElementInvocationCode() {\n            if (this.isAutomaticRuntime) {\n                return this.claimAutoImportedFuncInvocation(\"createElement\", \"\");\n            }\n            else {\n                const { jsxPragmaInfo } = this;\n                const resolvedPragmaBaseName = this.importProcessor\n                    ? this.importProcessor.getIdentifierReplacement(jsxPragmaInfo.base) || jsxPragmaInfo.base\n                    : jsxPragmaInfo.base;\n                return `${resolvedPragmaBaseName}${jsxPragmaInfo.suffix}(`;\n            }\n        }\n        /**\n         * Return the code to use as the component when compiling a shorthand\n         * fragment, e.g. `React.Fragment`.\n         *\n         * This may be called from either the classic or automatic runtime, and\n         * the value should be auto-imported for the automatic runtime.\n         */\n        getFragmentCode() {\n            if (this.isAutomaticRuntime) {\n                return this.claimAutoImportedName(\"Fragment\", this.options.production ? \"/jsx-runtime\" : \"/jsx-dev-runtime\");\n            }\n            else {\n                const { jsxPragmaInfo } = this;\n                const resolvedFragmentPragmaBaseName = this.importProcessor\n                    ? this.importProcessor.getIdentifierReplacement(jsxPragmaInfo.fragmentBase) ||\n                        jsxPragmaInfo.fragmentBase\n                    : jsxPragmaInfo.fragmentBase;\n                return resolvedFragmentPragmaBaseName + jsxPragmaInfo.fragmentSuffix;\n            }\n        }\n        /**\n         * Return code that invokes the given function.\n         *\n         * When the imports transform is enabled, use the CJSImportTransformer\n         * strategy of using `.call(void 0, ...` to avoid passing a `this` value in a\n         * situation that would otherwise look like a method call.\n         */\n        claimAutoImportedFuncInvocation(funcName, importPathSuffix) {\n            const funcCode = this.claimAutoImportedName(funcName, importPathSuffix);\n            if (this.importProcessor) {\n                return `${funcCode}.call(void 0, `;\n            }\n            else {\n                return `${funcCode}(`;\n            }\n        }\n        claimAutoImportedName(funcName, importPathSuffix) {\n            if (this.importProcessor) {\n                // CJS mode: claim a name for the module and mark it for import.\n                const path = this.jsxImportSource + importPathSuffix;\n                if (!this.cjsAutomaticModuleNameResolutions[path]) {\n                    this.cjsAutomaticModuleNameResolutions[path] =\n                        this.importProcessor.getFreeIdentifierForPath(path);\n                }\n                return `${this.cjsAutomaticModuleNameResolutions[path]}.${funcName}`;\n            }\n            else {\n                // ESM mode: claim a name for this function and add it to the names that\n                // should be auto-imported when the prefix is generated.\n                if (!this.esmAutomaticImportNameResolutions[funcName]) {\n                    this.esmAutomaticImportNameResolutions[funcName] = this.nameManager.claimFreeName(`_${funcName}`);\n                }\n                return this.esmAutomaticImportNameResolutions[funcName];\n            }\n        }\n        /**\n         * Process the first part of a tag, before any props.\n         */\n        processTagIntro() {\n            // Walk forward until we see one of these patterns:\n            // jsxName to start the first prop, preceded by another jsxName to end the tag name.\n            // jsxName to start the first prop, preceded by greaterThan to end the type argument.\n            // [open brace] to start the first prop.\n            // [jsxTagEnd] to end the open-tag.\n            // [slash, jsxTagEnd] to end the self-closing tag.\n            let introEnd = this.tokens.currentIndex() + 1;\n            while (this.tokens.tokens[introEnd].isType ||\n                (!this.tokens.matches2AtIndex(introEnd - 1, types_1.TokenType.jsxName, types_1.TokenType.jsxName) &&\n                    !this.tokens.matches2AtIndex(introEnd - 1, types_1.TokenType.greaterThan, types_1.TokenType.jsxName) &&\n                    !this.tokens.matches1AtIndex(introEnd, types_1.TokenType.braceL) &&\n                    !this.tokens.matches1AtIndex(introEnd, types_1.TokenType.jsxTagEnd) &&\n                    !this.tokens.matches2AtIndex(introEnd, types_1.TokenType.slash, types_1.TokenType.jsxTagEnd))) {\n                introEnd++;\n            }\n            if (introEnd === this.tokens.currentIndex() + 1) {\n                const tagName = this.tokens.identifierName();\n                if (startsWithLowerCase(tagName)) {\n                    this.tokens.replaceToken(`'${tagName}'`);\n                }\n            }\n            while (this.tokens.currentIndex() < introEnd) {\n                this.rootTransformer.processToken();\n            }\n        }\n        /**\n         * Starting at the beginning of the props, add the props argument to\n         * React.createElement, including the comma before it.\n         */\n        processPropsObjectWithDevInfo(elementLocationCode) {\n            const devProps = this.options.production\n                ? \"\"\n                : `__self: this, __source: ${this.getDevSource(elementLocationCode)}`;\n            if (!this.tokens.matches1(types_1.TokenType.jsxName) && !this.tokens.matches1(types_1.TokenType.braceL)) {\n                if (devProps) {\n                    this.tokens.appendCode(`, {${devProps}}`);\n                }\n                else {\n                    this.tokens.appendCode(`, null`);\n                }\n                return;\n            }\n            this.tokens.appendCode(`, {`);\n            this.processProps(false);\n            if (devProps) {\n                this.tokens.appendCode(` ${devProps}}`);\n            }\n            else {\n                this.tokens.appendCode(\"}\");\n            }\n        }\n        /**\n         * Transform the core part of the props, assuming that a { has already been\n         * inserted before us and that a } will be inserted after us.\n         *\n         * If extractKeyCode is true (i.e. when using any jsx... function), any prop\n         * named \"key\" has its code captured and returned rather than being emitted to\n         * the output code. This shifts line numbers, and emitting the code later will\n         * correct line numbers again. If no key is found or if extractKeyCode is\n         * false, this function returns null.\n         */\n        processProps(extractKeyCode) {\n            let keyCode = null;\n            while (true) {\n                if (this.tokens.matches2(types_1.TokenType.jsxName, types_1.TokenType.eq)) {\n                    // This is a regular key={value} or key=\"value\" prop.\n                    const propName = this.tokens.identifierName();\n                    if (extractKeyCode && propName === \"key\") {\n                        if (keyCode !== null) {\n                            // The props list has multiple keys. Different implementations are\n                            // inconsistent about what to do here: as of this writing, Babel and\n                            // swc keep the *last* key and completely remove the rest, while\n                            // TypeScript uses the *first* key and leaves the others as regular\n                            // props. The React team collaborated with Babel on the\n                            // implementation of this behavior, so presumably the Babel behavior\n                            // is the one to use.\n                            // Since we won't ever be emitting the previous key code, we need to\n                            // at least emit its newlines here so that the line numbers match up\n                            // in the long run.\n                            this.tokens.appendCode(keyCode.replace(/[^\\n]/g, \"\"));\n                        }\n                        // key\n                        this.tokens.removeToken();\n                        // =\n                        this.tokens.removeToken();\n                        const snapshot = this.tokens.snapshot();\n                        this.processPropValue();\n                        keyCode = this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(snapshot);\n                        // Don't add a comma\n                        continue;\n                    }\n                    else {\n                        this.processPropName(propName);\n                        this.tokens.replaceToken(\": \");\n                        this.processPropValue();\n                    }\n                }\n                else if (this.tokens.matches1(types_1.TokenType.jsxName)) {\n                    // This is a shorthand prop like <input disabled />.\n                    const propName = this.tokens.identifierName();\n                    this.processPropName(propName);\n                    this.tokens.appendCode(\": true\");\n                }\n                else if (this.tokens.matches1(types_1.TokenType.braceL)) {\n                    // This is prop spread, like <div {...getProps()}>, which we can pass\n                    // through fairly directly as an object spread.\n                    this.tokens.replaceToken(\"\");\n                    this.rootTransformer.processBalancedCode();\n                    this.tokens.replaceToken(\"\");\n                }\n                else {\n                    break;\n                }\n                this.tokens.appendCode(\",\");\n            }\n            return keyCode;\n        }\n        processPropName(propName) {\n            if (propName.includes(\"-\")) {\n                this.tokens.replaceToken(`'${propName}'`);\n            }\n            else {\n                this.tokens.copyToken();\n            }\n        }\n        processPropValue() {\n            if (this.tokens.matches1(types_1.TokenType.braceL)) {\n                this.tokens.replaceToken(\"\");\n                this.rootTransformer.processBalancedCode();\n                this.tokens.replaceToken(\"\");\n            }\n            else if (this.tokens.matches1(types_1.TokenType.jsxTagStart)) {\n                this.processJSXTag();\n            }\n            else {\n                this.processStringPropValue();\n            }\n        }\n        processStringPropValue() {\n            const token = this.tokens.currentToken();\n            const valueCode = this.tokens.code.slice(token.start + 1, token.end - 1);\n            const replacementCode = formatJSXTextReplacement(valueCode);\n            const literalCode = formatJSXStringValueLiteral(valueCode);\n            this.tokens.replaceToken(literalCode + replacementCode);\n        }\n        /**\n         * Starting in the middle of the props object literal, produce an additional\n         * prop for the children and close the object literal.\n         */\n        processAutomaticChildrenAndEndProps(jsxRole) {\n            if (jsxRole === tokenizer_1.JSXRole.StaticChildren) {\n                this.tokens.appendCode(\" children: [\");\n                this.processChildren(false);\n                this.tokens.appendCode(\"]}\");\n            }\n            else {\n                // The parser information tells us whether we will see a real child or if\n                // all remaining children (if any) will resolve to empty. If there are no\n                // non-empty children, don't emit a children prop at all, but still\n                // process children so that we properly transform the code into nothing.\n                if (jsxRole === tokenizer_1.JSXRole.OneChild) {\n                    this.tokens.appendCode(\" children: \");\n                }\n                this.processChildren(false);\n                this.tokens.appendCode(\"}\");\n            }\n        }\n        /**\n         * Transform children into a comma-separated list, which will be either\n         * arguments to createElement or array elements of a children prop.\n         */\n        processChildren(needsInitialComma) {\n            let needsComma = needsInitialComma;\n            while (true) {\n                if (this.tokens.matches2(types_1.TokenType.jsxTagStart, types_1.TokenType.slash)) {\n                    // Closing tag, so no more children.\n                    return;\n                }\n                let didEmitElement = false;\n                if (this.tokens.matches1(types_1.TokenType.braceL)) {\n                    if (this.tokens.matches2(types_1.TokenType.braceL, types_1.TokenType.braceR)) {\n                        // Empty interpolations and comment-only interpolations are allowed\n                        // and don't create an extra child arg.\n                        this.tokens.replaceToken(\"\");\n                        this.tokens.replaceToken(\"\");\n                    }\n                    else {\n                        // Interpolated expression.\n                        this.tokens.replaceToken(needsComma ? \", \" : \"\");\n                        this.rootTransformer.processBalancedCode();\n                        this.tokens.replaceToken(\"\");\n                        didEmitElement = true;\n                    }\n                }\n                else if (this.tokens.matches1(types_1.TokenType.jsxTagStart)) {\n                    // Child JSX element\n                    this.tokens.appendCode(needsComma ? \", \" : \"\");\n                    this.processJSXTag();\n                    didEmitElement = true;\n                }\n                else if (this.tokens.matches1(types_1.TokenType.jsxText) || this.tokens.matches1(types_1.TokenType.jsxEmptyText)) {\n                    didEmitElement = this.processChildTextElement(needsComma);\n                }\n                else {\n                    throw new Error(\"Unexpected token when processing JSX children.\");\n                }\n                if (didEmitElement) {\n                    needsComma = true;\n                }\n            }\n        }\n        /**\n         * Turn a JSX text element into a string literal, or nothing at all if the JSX\n         * text resolves to the empty string.\n         *\n         * Returns true if a string literal is emitted, false otherwise.\n         */\n        processChildTextElement(needsComma) {\n            const token = this.tokens.currentToken();\n            const valueCode = this.tokens.code.slice(token.start, token.end);\n            const replacementCode = formatJSXTextReplacement(valueCode);\n            const literalCode = formatJSXTextLiteral(valueCode);\n            if (literalCode === '\"\"') {\n                this.tokens.replaceToken(replacementCode);\n                return false;\n            }\n            else {\n                this.tokens.replaceToken(`${needsComma ? \", \" : \"\"}${literalCode}${replacementCode}`);\n                return true;\n            }\n        }\n        getDevSource(elementLocationCode) {\n            return `{fileName: ${this.getFilenameVarName()}, ${elementLocationCode}}`;\n        }\n        getFilenameVarName() {\n            if (!this.filenameVarName) {\n                this.filenameVarName = this.nameManager.claimFreeName(\"_jsxFileName\");\n            }\n            return this.filenameVarName;\n        }\n    }\n    exports.default = JSXTransformer;\n    /**\n     * Spec for identifiers: https://tc39.github.io/ecma262/#prod-IdentifierStart.\n     *\n     * Really only treat anything starting with a-z as tag names.  `_`, `$`, `é`\n     * should be treated as component names\n     */\n    function startsWithLowerCase(s) {\n        const firstChar = s.charCodeAt(0);\n        return firstChar >= charcodes_1.charCodes.lowercaseA && firstChar <= charcodes_1.charCodes.lowercaseZ;\n    }\n    /**\n     * Turn the given jsxText string into a JS string literal. Leading and trailing\n     * whitespace on lines is removed, except immediately after the open-tag and\n     * before the close-tag. Empty lines are completely removed, and spaces are\n     * added between lines after that.\n     *\n     * We use JSON.stringify to introduce escape characters as necessary, and trim\n     * the start and end of each line and remove blank lines.\n     */\n    function formatJSXTextLiteral(text) {\n        let result = \"\";\n        let whitespace = \"\";\n        let isInInitialLineWhitespace = false;\n        let seenNonWhitespace = false;\n        for (let i = 0; i < text.length; i++) {\n            const c = text[i];\n            if (c === \" \" || c === \"\\t\" || c === \"\\r\") {\n                if (!isInInitialLineWhitespace) {\n                    whitespace += c;\n                }\n            }\n            else if (c === \"\\n\") {\n                whitespace = \"\";\n                isInInitialLineWhitespace = true;\n            }\n            else {\n                if (seenNonWhitespace && isInInitialLineWhitespace) {\n                    result += \" \";\n                }\n                result += whitespace;\n                whitespace = \"\";\n                if (c === \"&\") {\n                    const { entity, newI } = processEntity(text, i + 1);\n                    i = newI - 1;\n                    result += entity;\n                }\n                else {\n                    result += c;\n                }\n                seenNonWhitespace = true;\n                isInInitialLineWhitespace = false;\n            }\n        }\n        if (!isInInitialLineWhitespace) {\n            result += whitespace;\n        }\n        return JSON.stringify(result);\n    }\n    /**\n     * Produce the code that should be printed after the JSX text string literal,\n     * with most content removed, but all newlines preserved and all spacing at the\n     * end preserved.\n     */\n    function formatJSXTextReplacement(text) {\n        let numNewlines = 0;\n        let numSpaces = 0;\n        for (const c of text) {\n            if (c === \"\\n\") {\n                numNewlines++;\n                numSpaces = 0;\n            }\n            else if (c === \" \") {\n                numSpaces++;\n            }\n        }\n        return \"\\n\".repeat(numNewlines) + \" \".repeat(numSpaces);\n    }\n    /**\n     * Format a string in the value position of a JSX prop.\n     *\n     * Use the same implementation as convertAttribute from\n     * babel-helper-builder-react-jsx.\n     */\n    function formatJSXStringValueLiteral(text) {\n        let result = \"\";\n        for (let i = 0; i < text.length; i++) {\n            const c = text[i];\n            if (c === \"\\n\") {\n                if (/\\s/.test(text[i + 1])) {\n                    result += \" \";\n                    while (i < text.length && /\\s/.test(text[i + 1])) {\n                        i++;\n                    }\n                }\n                else {\n                    result += \"\\n\";\n                }\n            }\n            else if (c === \"&\") {\n                const { entity, newI } = processEntity(text, i + 1);\n                result += entity;\n                i = newI - 1;\n            }\n            else {\n                result += c;\n            }\n        }\n        return JSON.stringify(result);\n    }\n    /**\n     * Starting at a &, see if there's an HTML entity (specified by name, decimal\n     * char code, or hex char code) and return it if so.\n     *\n     * Modified from jsxReadString in babel-parser.\n     */\n    function processEntity(text, indexAfterAmpersand) {\n        let str = \"\";\n        let count = 0;\n        let entity;\n        let i = indexAfterAmpersand;\n        if (text[i] === \"#\") {\n            let radix = 10;\n            i++;\n            let numStart;\n            if (text[i] === \"x\") {\n                radix = 16;\n                i++;\n                numStart = i;\n                while (i < text.length && isHexDigit(text.charCodeAt(i))) {\n                    i++;\n                }\n            }\n            else {\n                numStart = i;\n                while (i < text.length && isDecimalDigit(text.charCodeAt(i))) {\n                    i++;\n                }\n            }\n            if (text[i] === \";\") {\n                const numStr = text.slice(numStart, i);\n                if (numStr) {\n                    i++;\n                    entity = String.fromCodePoint(parseInt(numStr, radix));\n                }\n            }\n        }\n        else {\n            while (i < text.length && count++ < 10) {\n                const ch = text[i];\n                i++;\n                if (ch === \";\") {\n                    entity = xhtml_1.default.get(str);\n                    break;\n                }\n                str += ch;\n            }\n        }\n        if (!entity) {\n            return { entity: \"&\", newI: indexAfterAmpersand };\n        }\n        return { entity, newI: i };\n    }\n    function isDecimalDigit(code) {\n        return code >= charcodes_1.charCodes.digit0 && code <= charcodes_1.charCodes.digit9;\n    }\n    function isHexDigit(code) {\n        return ((code >= charcodes_1.charCodes.digit0 && code <= charcodes_1.charCodes.digit9) ||\n            (code >= charcodes_1.charCodes.lowercaseA && code <= charcodes_1.charCodes.lowercaseF) ||\n            (code >= charcodes_1.charCodes.uppercaseA && code <= charcodes_1.charCodes.uppercaseF));\n    }\n}\n","min_source":"function _(e,t,s,o,n){o(),s.startsWithLowerCase=d;const i=e(\"tslib\"),r=i.__importDefault(e(\"c6b7812f89\")),a=e(\"bfb18d0576\"),h=e(\"f0c35cbd76\"),c=e(\"22746c8ce8\"),p=i.__importDefault(e(\"d797c101ed\")),m=i.__importDefault(e(\"a46f119f74\"));class l extends m.default{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(e,t,s,o,n){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=s,this.nameManager=o,this.options=n,l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),l.prototype.__init5.call(this),this.jsxPragmaInfo=(0,p.default)(n),this.isAutomaticRuntime=\"automatic\"===n.jsxRuntime,this.jsxImportSource=n.jsxImportSource||\"react\"}process(){return!!this.tokens.matches1(h.TokenType.jsxTagStart)&&(this.processJSXTag(),!0)}getPrefixCode(){let e=\"\";if(this.filenameVarName&&(e+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||\"\")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[t,s]of Object.entries(this.cjsAutomaticModuleNameResolutions))e+=`var ${s} = require(\"${t}\");`;else{const{createElement:t,...s}=this.esmAutomaticImportNameResolutions;t&&(e+=`import {createElement as ${t}} from \"${this.jsxImportSource}\";`);const o=Object.entries(s).map((([e,t])=>`${e} as ${t}`)).join(\", \");if(o){e+=`import {${o}} from \"${this.jsxImportSource+(this.options.production?\"/jsx-runtime\":\"/jsx-dev-runtime\")}\";`}}return e}processJSXTag(){const{jsxRole:e,start:t}=this.tokens.currentToken(),s=this.options.production?null:this.getElementLocationCode(t);this.isAutomaticRuntime&&e!==a.JSXRole.KeyAfterPropSpread?this.transformTagToJSXFunc(s,e):this.transformTagToCreateElement(s)}getElementLocationCode(e){return`lineNumber: ${this.getLineNumberForIndex(e)}`}getLineNumberForIndex(e){const t=this.tokens.code;for(;this.lastIndex<e&&this.lastIndex<t.length;)\"\\n\"===t[this.lastIndex]&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(e,t){const s=t===a.JSXRole.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(s));let o=null;if(this.tokens.matches1(h.TokenType.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(t);else{if(this.processTagIntro(),this.tokens.appendCode(\", {\"),o=this.processProps(!0),this.tokens.matches2(h.TokenType.slash,h.TokenType.jsxTagEnd))this.tokens.appendCode(\"}\");else{if(!this.tokens.matches1(h.TokenType.jsxTagEnd))throw new Error(\"Expected either /> or > at the end of the tag.\");this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(t)}o&&this.tokens.appendCode(`, ${o}`)}for(this.options.production||(null===o&&this.tokens.appendCode(\", void 0\"),this.tokens.appendCode(`, ${s}, ${this.getDevSource(e)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(h.TokenType.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(\")\")}transformTagToCreateElement(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(h.TokenType.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),this.tokens.matches2(h.TokenType.slash,h.TokenType.jsxTagEnd));else{if(!this.tokens.matches1(h.TokenType.jsxTagEnd))throw new Error(\"Expected either /> or > at the end of the tag.\");this.tokens.removeToken(),this.processChildren(!0)}for(this.tokens.removeInitialToken();!this.tokens.matches1(h.TokenType.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(\")\")}getJSXFuncInvocationCode(e){return this.options.production?e?this.claimAutoImportedFuncInvocation(\"jsxs\",\"/jsx-runtime\"):this.claimAutoImportedFuncInvocation(\"jsx\",\"/jsx-runtime\"):this.claimAutoImportedFuncInvocation(\"jsxDEV\",\"/jsx-dev-runtime\")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation(\"createElement\",\"\");{const{jsxPragmaInfo:e}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base}${e.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName(\"Fragment\",this.options.production?\"/jsx-runtime\":\"/jsx-dev-runtime\");{const{jsxPragmaInfo:e}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase)+e.fragmentSuffix}}claimAutoImportedFuncInvocation(e,t){const s=this.claimAutoImportedName(e,t);return this.importProcessor?`${s}.call(void 0, `:`${s}(`}claimAutoImportedName(e,t){if(this.importProcessor){const s=this.jsxImportSource+t;return this.cjsAutomaticModuleNameResolutions[s]||(this.cjsAutomaticModuleNameResolutions[s]=this.importProcessor.getFreeIdentifierForPath(s)),`${this.cjsAutomaticModuleNameResolutions[s]}.${e}`}return this.esmAutomaticImportNameResolutions[e]||(this.esmAutomaticImportNameResolutions[e]=this.nameManager.claimFreeName(`_${e}`)),this.esmAutomaticImportNameResolutions[e]}processTagIntro(){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,h.TokenType.jsxName,h.TokenType.jsxName)&&!this.tokens.matches2AtIndex(e-1,h.TokenType.greaterThan,h.TokenType.jsxName)&&!this.tokens.matches1AtIndex(e,h.TokenType.braceL)&&!this.tokens.matches1AtIndex(e,h.TokenType.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,h.TokenType.slash,h.TokenType.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){const e=this.tokens.identifierName();d(e)&&this.tokens.replaceToken(`'${e}'`)}for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(e){const t=this.options.production?\"\":`__self: this, __source: ${this.getDevSource(e)}`;this.tokens.matches1(h.TokenType.jsxName)||this.tokens.matches1(h.TokenType.braceL)?(this.tokens.appendCode(\", {\"),this.processProps(!1),t?this.tokens.appendCode(` ${t}}`):this.tokens.appendCode(\"}\")):t?this.tokens.appendCode(`, {${t}}`):this.tokens.appendCode(\", null\")}processProps(e){let t=null;for(;;){if(this.tokens.matches2(h.TokenType.jsxName,h.TokenType.eq)){const s=this.tokens.identifierName();if(e&&\"key\"===s){null!==t&&this.tokens.appendCode(t.replace(/[^\\n]/g,\"\")),this.tokens.removeToken(),this.tokens.removeToken();const e=this.tokens.snapshot();this.processPropValue(),t=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(e);continue}this.processPropName(s),this.tokens.replaceToken(\": \"),this.processPropValue()}else if(this.tokens.matches1(h.TokenType.jsxName)){const e=this.tokens.identifierName();this.processPropName(e),this.tokens.appendCode(\": true\")}else{if(!this.tokens.matches1(h.TokenType.braceL))break;this.tokens.replaceToken(\"\"),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(\"\")}this.tokens.appendCode(\",\")}return t}processPropName(e){e.includes(\"-\")?this.tokens.replaceToken(`'${e}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(h.TokenType.braceL)?(this.tokens.replaceToken(\"\"),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(\"\")):this.tokens.matches1(h.TokenType.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const e=this.tokens.currentToken(),t=this.tokens.code.slice(e.start+1,e.end-1),s=k(t),o=function(e){let t=\"\";for(let s=0;s<e.length;s++){const o=e[s];if(\"\\n\"===o)if(/\\s/.test(e[s+1]))for(t+=\" \";s<e.length&&/\\s/.test(e[s+1]);)s++;else t+=\"\\n\";else if(\"&\"===o){const{entity:o,newI:n}=u(e,s+1);t+=o,s=n-1}else t+=o}return JSON.stringify(t)}(t);this.tokens.replaceToken(o+s)}processAutomaticChildrenAndEndProps(e){e===a.JSXRole.StaticChildren?(this.tokens.appendCode(\" children: [\"),this.processChildren(!1),this.tokens.appendCode(\"]}\")):(e===a.JSXRole.OneChild&&this.tokens.appendCode(\" children: \"),this.processChildren(!1),this.tokens.appendCode(\"}\"))}processChildren(e){let t=e;for(;;){if(this.tokens.matches2(h.TokenType.jsxTagStart,h.TokenType.slash))return;let e=!1;if(this.tokens.matches1(h.TokenType.braceL))this.tokens.matches2(h.TokenType.braceL,h.TokenType.braceR)?(this.tokens.replaceToken(\"\"),this.tokens.replaceToken(\"\")):(this.tokens.replaceToken(t?\", \":\"\"),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(\"\"),e=!0);else if(this.tokens.matches1(h.TokenType.jsxTagStart))this.tokens.appendCode(t?\", \":\"\"),this.processJSXTag(),e=!0;else{if(!this.tokens.matches1(h.TokenType.jsxText)&&!this.tokens.matches1(h.TokenType.jsxEmptyText))throw new Error(\"Unexpected token when processing JSX children.\");e=this.processChildTextElement(t)}e&&(t=!0)}}processChildTextElement(e){const t=this.tokens.currentToken(),s=this.tokens.code.slice(t.start,t.end),o=k(s),n=function(e){let t=\"\",s=\"\",o=!1,n=!1;for(let i=0;i<e.length;i++){const r=e[i];if(\" \"===r||\"\\t\"===r||\"\\r\"===r)o||(s+=r);else if(\"\\n\"===r)s=\"\",o=!0;else{if(n&&o&&(t+=\" \"),t+=s,s=\"\",\"&\"===r){const{entity:s,newI:o}=u(e,i+1);i=o-1,t+=s}else t+=r;n=!0,o=!1}}o||(t+=s);return JSON.stringify(t)}(s);return'\"\"'===n?(this.tokens.replaceToken(o),!1):(this.tokens.replaceToken(`${e?\", \":\"\"}${n}${o}`),!0)}getDevSource(e){return`{fileName: ${this.getFilenameVarName()}, ${e}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName(\"_jsxFileName\")),this.filenameVarName}}function d(e){const t=e.charCodeAt(0);return t>=c.charCodes.lowercaseA&&t<=c.charCodes.lowercaseZ}function k(e){let t=0,s=0;for(const o of e)\"\\n\"===o?(t++,s=0):\" \"===o&&s++;return\"\\n\".repeat(t)+\" \".repeat(s)}function u(e,t){let s,o=\"\",n=0,i=t;if(\"#\"===e[i]){let t,o=10;if(i++,\"x\"===e[i])for(o=16,i++,t=i;i<e.length&&((a=e.charCodeAt(i))>=c.charCodes.digit0&&a<=c.charCodes.digit9||a>=c.charCodes.lowercaseA&&a<=c.charCodes.lowercaseF||a>=c.charCodes.uppercaseA&&a<=c.charCodes.uppercaseF);)i++;else for(t=i;i<e.length&&T(e.charCodeAt(i));)i++;if(\";\"===e[i]){const n=e.slice(t,i);n&&(i++,s=String.fromCodePoint(parseInt(n,o)))}}else for(;i<e.length&&n++<10;){const t=e[i];if(i++,\";\"===t){s=r.default.get(o);break}o+=t}var a;return s?{entity:s,newI:i}:{entity:\"&\",newI:t}}function T(e){return e>=c.charCodes.digit0&&e<=c.charCodes.digit9}s.default=l}\n//# sourceMappingURL=JSXTransformer.min.js.map","min_map":"{\"version\":3,\"file\":\"JSXTransformer.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"startsWithLowerCase\",\"tslib_1\",\"xhtml_1\",\"__importDefault\",\"tokenizer_1\",\"types_1\",\"charcodes_1\",\"getJSXPragmaInfo_1\",\"Transformer_1\",\"JSXTransformer\",\"default\",\"__init\",\"this\",\"lastLineNumber\",\"__init2\",\"lastIndex\",\"__init3\",\"filenameVarName\",\"__init4\",\"esmAutomaticImportNameResolutions\",\"__init5\",\"cjsAutomaticModuleNameResolutions\",\"constructor\",\"rootTransformer\",\"tokens\",\"importProcessor\",\"nameManager\",\"options\",\"super\",\"prototype\",\"call\",\"jsxPragmaInfo\",\"isAutomaticRuntime\",\"jsxRuntime\",\"jsxImportSource\",\"process\",\"matches1\",\"TokenType\",\"jsxTagStart\",\"processJSXTag\",\"getPrefixCode\",\"prefix\",\"JSON\",\"stringify\",\"filePath\",\"path\",\"resolvedName\",\"Object\",\"entries\",\"createElement\",\"createElementResolution\",\"otherResolutions\",\"importSpecifiers\",\"map\",\"name\",\"join\",\"production\",\"jsxRole\",\"start\",\"currentToken\",\"elementLocationCode\",\"getElementLocationCode\",\"JSXRole\",\"KeyAfterPropSpread\",\"transformTagToJSXFunc\",\"transformTagToCreateElement\",\"firstTokenStart\",\"getLineNumberForIndex\",\"index\",\"code\",\"length\",\"isStatic\",\"StaticChildren\",\"replaceToken\",\"getJSXFuncInvocationCode\",\"keyCode\",\"jsxTagEnd\",\"getFragmentCode\",\"processAutomaticChildrenAndEndProps\",\"processTagIntro\",\"appendCode\",\"processProps\",\"matches2\",\"slash\",\"Error\",\"removeToken\",\"getDevSource\",\"removeInitialToken\",\"getCreateElementInvocationCode\",\"processChildren\",\"processPropsObjectWithDevInfo\",\"claimAutoImportedFuncInvocation\",\"getIdentifierReplacement\",\"base\",\"suffix\",\"claimAutoImportedName\",\"fragmentBase\",\"fragmentSuffix\",\"funcName\",\"importPathSuffix\",\"funcCode\",\"getFreeIdentifierForPath\",\"claimFreeName\",\"introEnd\",\"currentIndex\",\"isType\",\"matches2AtIndex\",\"jsxName\",\"greaterThan\",\"matches1AtIndex\",\"braceL\",\"tagName\",\"identifierName\",\"processToken\",\"devProps\",\"extractKeyCode\",\"eq\",\"propName\",\"replace\",\"snapshot\",\"processPropValue\",\"dangerouslyGetAndRemoveCodeSinceSnapshot\",\"processPropName\",\"processBalancedCode\",\"includes\",\"copyToken\",\"processStringPropValue\",\"token\",\"valueCode\",\"slice\",\"end\",\"replacementCode\",\"formatJSXTextReplacement\",\"literalCode\",\"text\",\"result\",\"i\",\"c\",\"test\",\"entity\",\"newI\",\"processEntity\",\"formatJSXStringValueLiteral\",\"OneChild\",\"needsInitialComma\",\"needsComma\",\"didEmitElement\",\"braceR\",\"jsxText\",\"jsxEmptyText\",\"processChildTextElement\",\"whitespace\",\"isInInitialLineWhitespace\",\"seenNonWhitespace\",\"formatJSXTextLiteral\",\"getFilenameVarName\",\"s\",\"firstChar\",\"charCodeAt\",\"charCodes\",\"lowercaseA\",\"lowercaseZ\",\"numNewlines\",\"numSpaces\",\"repeat\",\"indexAfterAmpersand\",\"str\",\"count\",\"numStart\",\"radix\",\"digit0\",\"digit9\",\"lowercaseF\",\"uppercaseA\",\"uppercaseF\",\"isDecimalDigit\",\"numStr\",\"String\",\"fromCodePoint\",\"parseInt\",\"ch\",\"get\"],\"sources\":[\"0\"],\"mappings\":\"AAAsD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACnGD,IACAD,EAAQG,oBAAsBA,EAC9B,MAAMC,EAAUN,EAAQ,SAClBO,EAAUD,EAAQE,gBAAgBR,EAAQ,eAC1CS,EAAcT,EAAQ,cACtBU,EAAUV,EAAQ,cAClBW,EAAcX,EAAQ,c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AAKhE,QAAUiG,IAAU,IAAI,CACpC,MAAMa,EAAK9C,EAAKE,GAEhB,GADAA,IACW,MAAP4C,EAAY,CACZzC,EAASzI,EAAQQ,QAAQ2K,IAAIf,GAC7B,KACJ,CACAA,GAAOc,CACX,CAUR,IAAoB/G,EARhB,OAAKsE,EAGE,CAAEA,SAAQC,KAAMJ,GAFZ,CAAEG,OAAQ,IAAKC,KAAMyB,EAGpC,CACA,SAASU,EAAe1G,GACpB,OAAOA,GAAQ/D,EAAYyJ,UAAUW,QAAUrG,GAAQ/D,EAAYyJ,UAAUY,MACjF,CArKA9K,EAAQa,QAAUD,CA2KtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/jsx/xhtml.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/plugins/jsx/xhtml.js","resolution":"ESM","id":"c6b7812f89","hash":"c6b7812f8909469c029ab3eeb65bc0c727819c2ae374e3ef582a64a63ba0afed","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Use a Map rather than object to avoid unexpected __proto__ access.\nexports.default = new Map([\n    [\"quot\", \"\\u0022\"],\n    [\"amp\", \"&\"],\n    [\"apos\", \"\\u0027\"],\n    [\"lt\", \"<\"],\n    [\"gt\", \">\"],\n    [\"nbsp\", \"\\u00A0\"],\n    [\"iexcl\", \"\\u00A1\"],\n    [\"cent\", \"\\u00A2\"],\n    [\"pound\", \"\\u00A3\"],\n    [\"curren\", \"\\u00A4\"],\n    [\"yen\", \"\\u00A5\"],\n    [\"brvbar\", \"\\u00A6\"],\n    [\"sect\", \"\\u00A7\"],\n    [\"uml\", \"\\u00A8\"],\n    [\"copy\", \"\\u00A9\"],\n    [\"ordf\", \"\\u00AA\"],\n    [\"laquo\", \"\\u00AB\"],\n    [\"not\", \"\\u00AC\"],\n    [\"shy\", \"\\u00AD\"],\n    [\"reg\", \"\\u00AE\"],\n    [\"macr\", \"\\u00AF\"],\n    [\"deg\", \"\\u00B0\"],\n    [\"plusmn\", \"\\u00B1\"],\n    [\"sup2\", \"\\u00B2\"],\n    [\"sup3\", \"\\u00B3\"],\n    [\"acute\", \"\\u00B4\"],\n    [\"micro\", \"\\u00B5\"],\n    [\"para\", \"\\u00B6\"],\n    [\"middot\", \"\\u00B7\"],\n    [\"cedil\", \"\\u00B8\"],\n    [\"sup1\", \"\\u00B9\"],\n    [\"ordm\", \"\\u00BA\"],\n    [\"raquo\", \"\\u00BB\"],\n    [\"frac14\", \"\\u00BC\"],\n    [\"frac12\", \"\\u00BD\"],\n    [\"frac34\", \"\\u00BE\"],\n    [\"iquest\", \"\\u00BF\"],\n    [\"Agrave\", \"\\u00C0\"],\n    [\"Aacute\", \"\\u00C1\"],\n    [\"Acirc\", \"\\u00C2\"],\n    [\"Atilde\", \"\\u00C3\"],\n    [\"Auml\", \"\\u00C4\"],\n    [\"Aring\", \"\\u00C5\"],\n    [\"AElig\", \"\\u00C6\"],\n    [\"Ccedil\", \"\\u00C7\"],\n    [\"Egrave\", \"\\u00C8\"],\n    [\"Eacute\", \"\\u00C9\"],\n    [\"Ecirc\", \"\\u00CA\"],\n    [\"Euml\", \"\\u00CB\"],\n    [\"Igrave\", \"\\u00CC\"],\n    [\"Iacute\", \"\\u00CD\"],\n    [\"Icirc\", \"\\u00CE\"],\n    [\"Iuml\", \"\\u00CF\"],\n    [\"ETH\", \"\\u00D0\"],\n    [\"Ntilde\", \"\\u00D1\"],\n    [\"Ograve\", \"\\u00D2\"],\n    [\"Oacute\", \"\\u00D3\"],\n    [\"Ocirc\", \"\\u00D4\"],\n    [\"Otilde\", \"\\u00D5\"],\n    [\"Ouml\", \"\\u00D6\"],\n    [\"times\", \"\\u00D7\"],\n    [\"Oslash\", \"\\u00D8\"],\n    [\"Ugrave\", \"\\u00D9\"],\n    [\"Uacute\", \"\\u00DA\"],\n    [\"Ucirc\", \"\\u00DB\"],\n    [\"Uuml\", \"\\u00DC\"],\n    [\"Yacute\", \"\\u00DD\"],\n    [\"THORN\", \"\\u00DE\"],\n    [\"szlig\", \"\\u00DF\"],\n    [\"agrave\", \"\\u00E0\"],\n    [\"aacute\", \"\\u00E1\"],\n    [\"acirc\", \"\\u00E2\"],\n    [\"atilde\", \"\\u00E3\"],\n    [\"auml\", \"\\u00E4\"],\n    [\"aring\", \"\\u00E5\"],\n    [\"aelig\", \"\\u00E6\"],\n    [\"ccedil\", \"\\u00E7\"],\n    [\"egrave\", \"\\u00E8\"],\n    [\"eacute\", \"\\u00E9\"],\n    [\"ecirc\", \"\\u00EA\"],\n    [\"euml\", \"\\u00EB\"],\n    [\"igrave\", \"\\u00EC\"],\n    [\"iacute\", \"\\u00ED\"],\n    [\"icirc\", \"\\u00EE\"],\n    [\"iuml\", \"\\u00EF\"],\n    [\"eth\", \"\\u00F0\"],\n    [\"ntilde\", \"\\u00F1\"],\n    [\"ograve\", \"\\u00F2\"],\n    [\"oacute\", \"\\u00F3\"],\n    [\"ocirc\", \"\\u00F4\"],\n    [\"otilde\", \"\\u00F5\"],\n    [\"ouml\", \"\\u00F6\"],\n    [\"divide\", \"\\u00F7\"],\n    [\"oslash\", \"\\u00F8\"],\n    [\"ugrave\", \"\\u00F9\"],\n    [\"uacute\", \"\\u00FA\"],\n    [\"ucirc\", \"\\u00FB\"],\n    [\"uuml\", \"\\u00FC\"],\n    [\"yacute\", \"\\u00FD\"],\n    [\"thorn\", \"\\u00FE\"],\n    [\"yuml\", \"\\u00FF\"],\n    [\"OElig\", \"\\u0152\"],\n    [\"oelig\", \"\\u0153\"],\n    [\"Scaron\", \"\\u0160\"],\n    [\"scaron\", \"\\u0161\"],\n    [\"Yuml\", \"\\u0178\"],\n    [\"fnof\", \"\\u0192\"],\n    [\"circ\", \"\\u02C6\"],\n    [\"tilde\", \"\\u02DC\"],\n    [\"Alpha\", \"\\u0391\"],\n    [\"Beta\", \"\\u0392\"],\n    [\"Gamma\", \"\\u0393\"],\n    [\"Delta\", \"\\u0394\"],\n    [\"Epsilon\", \"\\u0395\"],\n    [\"Zeta\", \"\\u0396\"],\n    [\"Eta\", \"\\u0397\"],\n    [\"Theta\", \"\\u0398\"],\n    [\"Iota\", \"\\u0399\"],\n    [\"Kappa\", \"\\u039A\"],\n    [\"Lambda\", \"\\u039B\"],\n    [\"Mu\", \"\\u039C\"],\n    [\"Nu\", \"\\u039D\"],\n    [\"Xi\", \"\\u039E\"],\n    [\"Omicron\", \"\\u039F\"],\n    [\"Pi\", \"\\u03A0\"],\n    [\"Rho\", \"\\u03A1\"],\n    [\"Sigma\", \"\\u03A3\"],\n    [\"Tau\", \"\\u03A4\"],\n    [\"Upsilon\", \"\\u03A5\"],\n    [\"Phi\", \"\\u03A6\"],\n    [\"Chi\", \"\\u03A7\"],\n    [\"Psi\", \"\\u03A8\"],\n    [\"Omega\", \"\\u03A9\"],\n    [\"alpha\", \"\\u03B1\"],\n    [\"beta\", \"\\u03B2\"],\n    [\"gamma\", \"\\u03B3\"],\n    [\"delta\", \"\\u03B4\"],\n    [\"epsilon\", \"\\u03B5\"],\n    [\"zeta\", \"\\u03B6\"],\n    [\"eta\", \"\\u03B7\"],\n    [\"theta\", \"\\u03B8\"],\n    [\"iota\", \"\\u03B9\"],\n    [\"kappa\", \"\\u03BA\"],\n    [\"lambda\", \"\\u03BB\"],\n    [\"mu\", \"\\u03BC\"],\n    [\"nu\", \"\\u03BD\"],\n    [\"xi\", \"\\u03BE\"],\n    [\"omicron\", \"\\u03BF\"],\n    [\"pi\", \"\\u03C0\"],\n    [\"rho\", \"\\u03C1\"],\n    [\"sigmaf\", \"\\u03C2\"],\n    [\"sigma\", \"\\u03C3\"],\n    [\"tau\", \"\\u03C4\"],\n    [\"upsilon\", \"\\u03C5\"],\n    [\"phi\", \"\\u03C6\"],\n    [\"chi\", \"\\u03C7\"],\n    [\"psi\", \"\\u03C8\"],\n    [\"omega\", \"\\u03C9\"],\n    [\"thetasym\", \"\\u03D1\"],\n    [\"upsih\", \"\\u03D2\"],\n    [\"piv\", \"\\u03D6\"],\n    [\"ensp\", \"\\u2002\"],\n    [\"emsp\", \"\\u2003\"],\n    [\"thinsp\", \"\\u2009\"],\n    [\"zwnj\", \"\\u200C\"],\n    [\"zwj\", \"\\u200D\"],\n    [\"lrm\", \"\\u200E\"],\n    [\"rlm\", \"\\u200F\"],\n    [\"ndash\", \"\\u2013\"],\n    [\"mdash\", \"\\u2014\"],\n    [\"lsquo\", \"\\u2018\"],\n    [\"rsquo\", \"\\u2019\"],\n    [\"sbquo\", \"\\u201A\"],\n    [\"ldquo\", \"\\u201C\"],\n    [\"rdquo\", \"\\u201D\"],\n    [\"bdquo\", \"\\u201E\"],\n    [\"dagger\", \"\\u2020\"],\n    [\"Dagger\", \"\\u2021\"],\n    [\"bull\", \"\\u2022\"],\n    [\"hellip\", \"\\u2026\"],\n    [\"permil\", \"\\u2030\"],\n    [\"prime\", \"\\u2032\"],\n    [\"Prime\", \"\\u2033\"],\n    [\"lsaquo\", \"\\u2039\"],\n    [\"rsaquo\", \"\\u203A\"],\n    [\"oline\", \"\\u203E\"],\n    [\"frasl\", \"\\u2044\"],\n    [\"euro\", \"\\u20AC\"],\n    [\"image\", \"\\u2111\"],\n    [\"weierp\", \"\\u2118\"],\n    [\"real\", \"\\u211C\"],\n    [\"trade\", \"\\u2122\"],\n    [\"alefsym\", \"\\u2135\"],\n    [\"larr\", \"\\u2190\"],\n    [\"uarr\", \"\\u2191\"],\n    [\"rarr\", \"\\u2192\"],\n    [\"darr\", \"\\u2193\"],\n    [\"harr\", \"\\u2194\"],\n    [\"crarr\", \"\\u21B5\"],\n    [\"lArr\", \"\\u21D0\"],\n    [\"uArr\", \"\\u21D1\"],\n    [\"rArr\", \"\\u21D2\"],\n    [\"dArr\", \"\\u21D3\"],\n    [\"hArr\", \"\\u21D4\"],\n    [\"forall\", \"\\u2200\"],\n    [\"part\", \"\\u2202\"],\n    [\"exist\", \"\\u2203\"],\n    [\"empty\", \"\\u2205\"],\n    [\"nabla\", \"\\u2207\"],\n    [\"isin\", \"\\u2208\"],\n    [\"notin\", \"\\u2209\"],\n    [\"ni\", \"\\u220B\"],\n    [\"prod\", \"\\u220F\"],\n    [\"sum\", \"\\u2211\"],\n    [\"minus\", \"\\u2212\"],\n    [\"lowast\", \"\\u2217\"],\n    [\"radic\", \"\\u221A\"],\n    [\"prop\", \"\\u221D\"],\n    [\"infin\", \"\\u221E\"],\n    [\"ang\", \"\\u2220\"],\n    [\"and\", \"\\u2227\"],\n    [\"or\", \"\\u2228\"],\n    [\"cap\", \"\\u2229\"],\n    [\"cup\", \"\\u222A\"],\n    [\"int\", \"\\u222B\"],\n    [\"there4\", \"\\u2234\"],\n    [\"sim\", \"\\u223C\"],\n    [\"cong\", \"\\u2245\"],\n    [\"asymp\", \"\\u2248\"],\n    [\"ne\", \"\\u2260\"],\n    [\"equiv\", \"\\u2261\"],\n    [\"le\", \"\\u2264\"],\n    [\"ge\", \"\\u2265\"],\n    [\"sub\", \"\\u2282\"],\n    [\"sup\", \"\\u2283\"],\n    [\"nsub\", \"\\u2284\"],\n    [\"sube\", \"\\u2286\"],\n    [\"supe\", \"\\u2287\"],\n    [\"oplus\", \"\\u2295\"],\n    [\"otimes\", \"\\u2297\"],\n    [\"perp\", \"\\u22A5\"],\n    [\"sdot\", \"\\u22C5\"],\n    [\"lceil\", \"\\u2308\"],\n    [\"rceil\", \"\\u2309\"],\n    [\"lfloor\", \"\\u230A\"],\n    [\"rfloor\", \"\\u230B\"],\n    [\"lang\", \"\\u2329\"],\n    [\"rang\", \"\\u232A\"],\n    [\"loz\", \"\\u25CA\"],\n    [\"spades\", \"\\u2660\"],\n    [\"clubs\", \"\\u2663\"],\n    [\"hearts\", \"\\u2665\"],\n    [\"diams\", \"\\u2666\"],\n]);\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"default"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/plugins/jsx/xhtml.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    // Use a Map rather than object to avoid unexpected __proto__ access.\n    exports.default = new Map([\n        [\"quot\", \"\\u0022\"],\n        [\"amp\", \"&\"],\n        [\"apos\", \"\\u0027\"],\n        [\"lt\", \"<\"],\n        [\"gt\", \">\"],\n        [\"nbsp\", \"\\u00A0\"],\n        [\"iexcl\", \"\\u00A1\"],\n        [\"cent\", \"\\u00A2\"],\n        [\"pound\", \"\\u00A3\"],\n        [\"curren\", \"\\u00A4\"],\n        [\"yen\", \"\\u00A5\"],\n        [\"brvbar\", \"\\u00A6\"],\n        [\"sect\", \"\\u00A7\"],\n        [\"uml\", \"\\u00A8\"],\n        [\"copy\", \"\\u00A9\"],\n        [\"ordf\", \"\\u00AA\"],\n        [\"laquo\", \"\\u00AB\"],\n        [\"not\", \"\\u00AC\"],\n        [\"shy\", \"\\u00AD\"],\n        [\"reg\", \"\\u00AE\"],\n        [\"macr\", \"\\u00AF\"],\n        [\"deg\", \"\\u00B0\"],\n        [\"plusmn\", \"\\u00B1\"],\n        [\"sup2\", \"\\u00B2\"],\n        [\"sup3\", \"\\u00B3\"],\n        [\"acute\", \"\\u00B4\"],\n        [\"micro\", \"\\u00B5\"],\n        [\"para\", \"\\u00B6\"],\n        [\"middot\", \"\\u00B7\"],\n        [\"cedil\", \"\\u00B8\"],\n        [\"sup1\", \"\\u00B9\"],\n        [\"ordm\", \"\\u00BA\"],\n        [\"raquo\", \"\\u00BB\"],\n        [\"frac14\", \"\\u00BC\"],\n        [\"frac12\", \"\\u00BD\"],\n        [\"frac34\", \"\\u00BE\"],\n        [\"iquest\", \"\\u00BF\"],\n        [\"Agrave\", \"\\u00C0\"],\n        [\"Aacute\", \"\\u00C1\"],\n        [\"Acirc\", \"\\u00C2\"],\n        [\"Atilde\", \"\\u00C3\"],\n        [\"Auml\", \"\\u00C4\"],\n        [\"Aring\", \"\\u00C5\"],\n        [\"AElig\", \"\\u00C6\"],\n        [\"Ccedil\", \"\\u00C7\"],\n        [\"Egrave\", \"\\u00C8\"],\n        [\"Eacute\", \"\\u00C9\"],\n        [\"Ecirc\", \"\\u00CA\"],\n        [\"Euml\", \"\\u00CB\"],\n        [\"Igrave\", \"\\u00CC\"],\n        [\"Iacute\", \"\\u00CD\"],\n        [\"Icirc\", \"\\u00CE\"],\n        [\"Iuml\", \"\\u00CF\"],\n        [\"ETH\", \"\\u00D0\"],\n        [\"Ntilde\", \"\\u00D1\"],\n        [\"Ograve\", \"\\u00D2\"],\n        [\"Oacute\", \"\\u00D3\"],\n        [\"Ocirc\", \"\\u00D4\"],\n        [\"Otilde\", \"\\u00D5\"],\n        [\"Ouml\", \"\\u00D6\"],\n        [\"times\", \"\\u00D7\"],\n        [\"Oslash\", \"\\u00D8\"],\n        [\"Ugrave\", \"\\u00D9\"],\n        [\"Uacute\", \"\\u00DA\"],\n        [\"Ucirc\", \"\\u00DB\"],\n        [\"Uuml\", \"\\u00DC\"],\n        [\"Yacute\", \"\\u00DD\"],\n        [\"THORN\", \"\\u00DE\"],\n        [\"szlig\", \"\\u00DF\"],\n        [\"agrave\", \"\\u00E0\"],\n        [\"aacute\", \"\\u00E1\"],\n        [\"acirc\", \"\\u00E2\"],\n        [\"atilde\", \"\\u00E3\"],\n        [\"auml\", \"\\u00E4\"],\n        [\"aring\", \"\\u00E5\"],\n        [\"aelig\", \"\\u00E6\"],\n        [\"ccedil\", \"\\u00E7\"],\n        [\"egrave\", \"\\u00E8\"],\n        [\"eacute\", \"\\u00E9\"],\n        [\"ecirc\", \"\\u00EA\"],\n        [\"euml\", \"\\u00EB\"],\n        [\"igrave\", \"\\u00EC\"],\n        [\"iacute\", \"\\u00ED\"],\n        [\"icirc\", \"\\u00EE\"],\n        [\"iuml\", \"\\u00EF\"],\n        [\"eth\", \"\\u00F0\"],\n        [\"ntilde\", \"\\u00F1\"],\n        [\"ograve\", \"\\u00F2\"],\n        [\"oacute\", \"\\u00F3\"],\n        [\"ocirc\", \"\\u00F4\"],\n        [\"otilde\", \"\\u00F5\"],\n        [\"ouml\", \"\\u00F6\"],\n        [\"divide\", \"\\u00F7\"],\n        [\"oslash\", \"\\u00F8\"],\n        [\"ugrave\", \"\\u00F9\"],\n        [\"uacute\", \"\\u00FA\"],\n        [\"ucirc\", \"\\u00FB\"],\n        [\"uuml\", \"\\u00FC\"],\n        [\"yacute\", \"\\u00FD\"],\n        [\"thorn\", \"\\u00FE\"],\n        [\"yuml\", \"\\u00FF\"],\n        [\"OElig\", \"\\u0152\"],\n        [\"oelig\", \"\\u0153\"],\n        [\"Scaron\", \"\\u0160\"],\n        [\"scaron\", \"\\u0161\"],\n        [\"Yuml\", \"\\u0178\"],\n        [\"fnof\", \"\\u0192\"],\n        [\"circ\", \"\\u02C6\"],\n        [\"tilde\", \"\\u02DC\"],\n        [\"Alpha\", \"\\u0391\"],\n        [\"Beta\", \"\\u0392\"],\n        [\"Gamma\", \"\\u0393\"],\n        [\"Delta\", \"\\u0394\"],\n        [\"Epsilon\", \"\\u0395\"],\n        [\"Zeta\", \"\\u0396\"],\n        [\"Eta\", \"\\u0397\"],\n        [\"Theta\", \"\\u0398\"],\n        [\"Iota\", \"\\u0399\"],\n        [\"Kappa\", \"\\u039A\"],\n        [\"Lambda\", \"\\u039B\"],\n        [\"Mu\", \"\\u039C\"],\n        [\"Nu\", \"\\u039D\"],\n        [\"Xi\", \"\\u039E\"],\n        [\"Omicron\", \"\\u039F\"],\n        [\"Pi\", \"\\u03A0\"],\n        [\"Rho\", \"\\u03A1\"],\n        [\"Sigma\", \"\\u03A3\"],\n        [\"Tau\", \"\\u03A4\"],\n        [\"Upsilon\", \"\\u03A5\"],\n        [\"Phi\", \"\\u03A6\"],\n        [\"Chi\", \"\\u03A7\"],\n        [\"Psi\", \"\\u03A8\"],\n        [\"Omega\", \"\\u03A9\"],\n        [\"alpha\", \"\\u03B1\"],\n        [\"beta\", \"\\u03B2\"],\n        [\"gamma\", \"\\u03B3\"],\n        [\"delta\", \"\\u03B4\"],\n        [\"epsilon\", \"\\u03B5\"],\n        [\"zeta\", \"\\u03B6\"],\n        [\"eta\", \"\\u03B7\"],\n        [\"theta\", \"\\u03B8\"],\n        [\"iota\", \"\\u03B9\"],\n        [\"kappa\", \"\\u03BA\"],\n        [\"lambda\", \"\\u03BB\"],\n        [\"mu\", \"\\u03BC\"],\n        [\"nu\", \"\\u03BD\"],\n        [\"xi\", \"\\u03BE\"],\n        [\"omicron\", \"\\u03BF\"],\n        [\"pi\", \"\\u03C0\"],\n        [\"rho\", \"\\u03C1\"],\n        [\"sigmaf\", \"\\u03C2\"],\n        [\"sigma\", \"\\u03C3\"],\n        [\"tau\", \"\\u03C4\"],\n        [\"upsilon\", \"\\u03C5\"],\n        [\"phi\", \"\\u03C6\"],\n        [\"chi\", \"\\u03C7\"],\n        [\"psi\", \"\\u03C8\"],\n        [\"omega\", \"\\u03C9\"],\n        [\"thetasym\", \"\\u03D1\"],\n        [\"upsih\", \"\\u03D2\"],\n        [\"piv\", \"\\u03D6\"],\n        [\"ensp\", \"\\u2002\"],\n        [\"emsp\", \"\\u2003\"],\n        [\"thinsp\", \"\\u2009\"],\n        [\"zwnj\", \"\\u200C\"],\n        [\"zwj\", \"\\u200D\"],\n        [\"lrm\", \"\\u200E\"],\n        [\"rlm\", \"\\u200F\"],\n        [\"ndash\", \"\\u2013\"],\n        [\"mdash\", \"\\u2014\"],\n        [\"lsquo\", \"\\u2018\"],\n        [\"rsquo\", \"\\u2019\"],\n        [\"sbquo\", \"\\u201A\"],\n        [\"ldquo\", \"\\u201C\"],\n        [\"rdquo\", \"\\u201D\"],\n        [\"bdquo\", \"\\u201E\"],\n        [\"dagger\", \"\\u2020\"],\n        [\"Dagger\", \"\\u2021\"],\n        [\"bull\", \"\\u2022\"],\n        [\"hellip\", \"\\u2026\"],\n        [\"permil\", \"\\u2030\"],\n        [\"prime\", \"\\u2032\"],\n        [\"Prime\", \"\\u2033\"],\n        [\"lsaquo\", \"\\u2039\"],\n        [\"rsaquo\", \"\\u203A\"],\n        [\"oline\", \"\\u203E\"],\n        [\"frasl\", \"\\u2044\"],\n        [\"euro\", \"\\u20AC\"],\n        [\"image\", \"\\u2111\"],\n        [\"weierp\", \"\\u2118\"],\n        [\"real\", \"\\u211C\"],\n        [\"trade\", \"\\u2122\"],\n        [\"alefsym\", \"\\u2135\"],\n        [\"larr\", \"\\u2190\"],\n        [\"uarr\", \"\\u2191\"],\n        [\"rarr\", \"\\u2192\"],\n        [\"darr\", \"\\u2193\"],\n        [\"harr\", \"\\u2194\"],\n        [\"crarr\", \"\\u21B5\"],\n        [\"lArr\", \"\\u21D0\"],\n        [\"uArr\", \"\\u21D1\"],\n        [\"rArr\", \"\\u21D2\"],\n        [\"dArr\", \"\\u21D3\"],\n        [\"hArr\", \"\\u21D4\"],\n        [\"forall\", \"\\u2200\"],\n        [\"part\", \"\\u2202\"],\n        [\"exist\", \"\\u2203\"],\n        [\"empty\", \"\\u2205\"],\n        [\"nabla\", \"\\u2207\"],\n        [\"isin\", \"\\u2208\"],\n        [\"notin\", \"\\u2209\"],\n        [\"ni\", \"\\u220B\"],\n        [\"prod\", \"\\u220F\"],\n        [\"sum\", \"\\u2211\"],\n        [\"minus\", \"\\u2212\"],\n        [\"lowast\", \"\\u2217\"],\n        [\"radic\", \"\\u221A\"],\n        [\"prop\", \"\\u221D\"],\n        [\"infin\", \"\\u221E\"],\n        [\"ang\", \"\\u2220\"],\n        [\"and\", \"\\u2227\"],\n        [\"or\", \"\\u2228\"],\n        [\"cap\", \"\\u2229\"],\n        [\"cup\", \"\\u222A\"],\n        [\"int\", \"\\u222B\"],\n        [\"there4\", \"\\u2234\"],\n        [\"sim\", \"\\u223C\"],\n        [\"cong\", \"\\u2245\"],\n        [\"asymp\", \"\\u2248\"],\n        [\"ne\", \"\\u2260\"],\n        [\"equiv\", \"\\u2261\"],\n        [\"le\", \"\\u2264\"],\n        [\"ge\", \"\\u2265\"],\n        [\"sub\", \"\\u2282\"],\n        [\"sup\", \"\\u2283\"],\n        [\"nsub\", \"\\u2284\"],\n        [\"sube\", \"\\u2286\"],\n        [\"supe\", \"\\u2287\"],\n        [\"oplus\", \"\\u2295\"],\n        [\"otimes\", \"\\u2297\"],\n        [\"perp\", \"\\u22A5\"],\n        [\"sdot\", \"\\u22C5\"],\n        [\"lceil\", \"\\u2308\"],\n        [\"rceil\", \"\\u2309\"],\n        [\"lfloor\", \"\\u230A\"],\n        [\"rfloor\", \"\\u230B\"],\n        [\"lang\", \"\\u2329\"],\n        [\"rang\", \"\\u232A\"],\n        [\"loz\", \"\\u25CA\"],\n        [\"spades\", \"\\u2660\"],\n        [\"clubs\", \"\\u2663\"],\n        [\"hearts\", \"\\u2665\"],\n        [\"diams\", \"\\u2666\"],\n    ]);\n}\n","min_source":"function _(a,e,r,i,l){i(),r.default=new Map([[\"quot\",'\"'],[\"amp\",\"&\"],[\"apos\",\"'\"],[\"lt\",\"<\"],[\"gt\",\">\"],[\"nbsp\",\"\\xa0\"],[\"iexcl\",\"\\xa1\"],[\"cent\",\"\\xa2\"],[\"pound\",\"\\xa3\"],[\"curren\",\"\\xa4\"],[\"yen\",\"\\xa5\"],[\"brvbar\",\"\\xa6\"],[\"sect\",\"\\xa7\"],[\"uml\",\"\\xa8\"],[\"copy\",\"\\xa9\"],[\"ordf\",\"\\xaa\"],[\"laquo\",\"\\xab\"],[\"not\",\"\\xac\"],[\"shy\",\"\\xad\"],[\"reg\",\"\\xae\"],[\"macr\",\"\\xaf\"],[\"deg\",\"\\xb0\"],[\"plusmn\",\"\\xb1\"],[\"sup2\",\"\\xb2\"],[\"sup3\",\"\\xb3\"],[\"acute\",\"\\xb4\"],[\"micro\",\"\\xb5\"],[\"para\",\"\\xb6\"],[\"middot\",\"\\xb7\"],[\"cedil\",\"\\xb8\"],[\"sup1\",\"\\xb9\"],[\"ordm\",\"\\xba\"],[\"raquo\",\"\\xbb\"],[\"frac14\",\"\\xbc\"],[\"frac12\",\"\\xbd\"],[\"frac34\",\"\\xbe\"],[\"iquest\",\"\\xbf\"],[\"Agrave\",\"\\xc0\"],[\"Aacute\",\"\\xc1\"],[\"Acirc\",\"\\xc2\"],[\"Atilde\",\"\\xc3\"],[\"Auml\",\"\\xc4\"],[\"Aring\",\"\\xc5\"],[\"AElig\",\"\\xc6\"],[\"Ccedil\",\"\\xc7\"],[\"Egrave\",\"\\xc8\"],[\"Eacute\",\"\\xc9\"],[\"Ecirc\",\"\\xca\"],[\"Euml\",\"\\xcb\"],[\"Igrave\",\"\\xcc\"],[\"Iacute\",\"\\xcd\"],[\"Icirc\",\"\\xce\"],[\"Iuml\",\"\\xcf\"],[\"ETH\",\"\\xd0\"],[\"Ntilde\",\"\\xd1\"],[\"Ograve\",\"\\xd2\"],[\"Oacute\",\"\\xd3\"],[\"Ocirc\",\"\\xd4\"],[\"Otilde\",\"\\xd5\"],[\"Ouml\",\"\\xd6\"],[\"times\",\"\\xd7\"],[\"Oslash\",\"\\xd8\"],[\"Ugrave\",\"\\xd9\"],[\"Uacute\",\"\\xda\"],[\"Ucirc\",\"\\xdb\"],[\"Uuml\",\"\\xdc\"],[\"Yacute\",\"\\xdd\"],[\"THORN\",\"\\xde\"],[\"szlig\",\"\\xdf\"],[\"agrave\",\"\\xe0\"],[\"aacute\",\"\\xe1\"],[\"acirc\",\"\\xe2\"],[\"atilde\",\"\\xe3\"],[\"auml\",\"\\xe4\"],[\"aring\",\"\\xe5\"],[\"aelig\",\"\\xe6\"],[\"ccedil\",\"\\xe7\"],[\"egrave\",\"\\xe8\"],[\"eacute\",\"\\xe9\"],[\"ecirc\",\"\\xea\"],[\"euml\",\"\\xeb\"],[\"igrave\",\"\\xec\"],[\"iacute\",\"\\xed\"],[\"icirc\",\"\\xee\"],[\"iuml\",\"\\xef\"],[\"eth\",\"\\xf0\"],[\"ntilde\",\"\\xf1\"],[\"ograve\",\"\\xf2\"],[\"oacute\",\"\\xf3\"],[\"ocirc\",\"\\xf4\"],[\"otilde\",\"\\xf5\"],[\"ouml\",\"\\xf6\"],[\"divide\",\"\\xf7\"],[\"oslash\",\"\\xf8\"],[\"ugrave\",\"\\xf9\"],[\"uacute\",\"\\xfa\"],[\"ucirc\",\"\\xfb\"],[\"uuml\",\"\\xfc\"],[\"yacute\",\"\\xfd\"],[\"thorn\",\"\\xfe\"],[\"yuml\",\"\\xff\"],[\"OElig\",\"\\u0152\"],[\"oelig\",\"\\u0153\"],[\"Scaron\",\"\\u0160\"],[\"scaron\",\"\\u0161\"],[\"Yuml\",\"\\u0178\"],[\"fnof\",\"\\u0192\"],[\"circ\",\"\\u02c6\"],[\"tilde\",\"\\u02dc\"],[\"Alpha\",\"\\u0391\"],[\"Beta\",\"\\u0392\"],[\"Gamma\",\"\\u0393\"],[\"Delta\",\"\\u0394\"],[\"Epsilon\",\"\\u0395\"],[\"Zeta\",\"\\u0396\"],[\"Eta\",\"\\u0397\"],[\"Theta\",\"\\u0398\"],[\"Iota\",\"\\u0399\"],[\"Kappa\",\"\\u039a\"],[\"Lambda\",\"\\u039b\"],[\"Mu\",\"\\u039c\"],[\"Nu\",\"\\u039d\"],[\"Xi\",\"\\u039e\"],[\"Omicron\",\"\\u039f\"],[\"Pi\",\"\\u03a0\"],[\"Rho\",\"\\u03a1\"],[\"Sigma\",\"\\u03a3\"],[\"Tau\",\"\\u03a4\"],[\"Upsilon\",\"\\u03a5\"],[\"Phi\",\"\\u03a6\"],[\"Chi\",\"\\u03a7\"],[\"Psi\",\"\\u03a8\"],[\"Omega\",\"\\u03a9\"],[\"alpha\",\"\\u03b1\"],[\"beta\",\"\\u03b2\"],[\"gamma\",\"\\u03b3\"],[\"delta\",\"\\u03b4\"],[\"epsilon\",\"\\u03b5\"],[\"zeta\",\"\\u03b6\"],[\"eta\",\"\\u03b7\"],[\"theta\",\"\\u03b8\"],[\"iota\",\"\\u03b9\"],[\"kappa\",\"\\u03ba\"],[\"lambda\",\"\\u03bb\"],[\"mu\",\"\\u03bc\"],[\"nu\",\"\\u03bd\"],[\"xi\",\"\\u03be\"],[\"omicron\",\"\\u03bf\"],[\"pi\",\"\\u03c0\"],[\"rho\",\"\\u03c1\"],[\"sigmaf\",\"\\u03c2\"],[\"sigma\",\"\\u03c3\"],[\"tau\",\"\\u03c4\"],[\"upsilon\",\"\\u03c5\"],[\"phi\",\"\\u03c6\"],[\"chi\",\"\\u03c7\"],[\"psi\",\"\\u03c8\"],[\"omega\",\"\\u03c9\"],[\"thetasym\",\"\\u03d1\"],[\"upsih\",\"\\u03d2\"],[\"piv\",\"\\u03d6\"],[\"ensp\",\"\\u2002\"],[\"emsp\",\"\\u2003\"],[\"thinsp\",\"\\u2009\"],[\"zwnj\",\"\\u200c\"],[\"zwj\",\"\\u200d\"],[\"lrm\",\"\\u200e\"],[\"rlm\",\"\\u200f\"],[\"ndash\",\"\\u2013\"],[\"mdash\",\"\\u2014\"],[\"lsquo\",\"\\u2018\"],[\"rsquo\",\"\\u2019\"],[\"sbquo\",\"\\u201a\"],[\"ldquo\",\"\\u201c\"],[\"rdquo\",\"\\u201d\"],[\"bdquo\",\"\\u201e\"],[\"dagger\",\"\\u2020\"],[\"Dagger\",\"\\u2021\"],[\"bull\",\"\\u2022\"],[\"hellip\",\"\\u2026\"],[\"permil\",\"\\u2030\"],[\"prime\",\"\\u2032\"],[\"Prime\",\"\\u2033\"],[\"lsaquo\",\"\\u2039\"],[\"rsaquo\",\"\\u203a\"],[\"oline\",\"\\u203e\"],[\"frasl\",\"\\u2044\"],[\"euro\",\"\\u20ac\"],[\"image\",\"\\u2111\"],[\"weierp\",\"\\u2118\"],[\"real\",\"\\u211c\"],[\"trade\",\"\\u2122\"],[\"alefsym\",\"\\u2135\"],[\"larr\",\"\\u2190\"],[\"uarr\",\"\\u2191\"],[\"rarr\",\"\\u2192\"],[\"darr\",\"\\u2193\"],[\"harr\",\"\\u2194\"],[\"crarr\",\"\\u21b5\"],[\"lArr\",\"\\u21d0\"],[\"uArr\",\"\\u21d1\"],[\"rArr\",\"\\u21d2\"],[\"dArr\",\"\\u21d3\"],[\"hArr\",\"\\u21d4\"],[\"forall\",\"\\u2200\"],[\"part\",\"\\u2202\"],[\"exist\",\"\\u2203\"],[\"empty\",\"\\u2205\"],[\"nabla\",\"\\u2207\"],[\"isin\",\"\\u2208\"],[\"notin\",\"\\u2209\"],[\"ni\",\"\\u220b\"],[\"prod\",\"\\u220f\"],[\"sum\",\"\\u2211\"],[\"minus\",\"\\u2212\"],[\"lowast\",\"\\u2217\"],[\"radic\",\"\\u221a\"],[\"prop\",\"\\u221d\"],[\"infin\",\"\\u221e\"],[\"ang\",\"\\u2220\"],[\"and\",\"\\u2227\"],[\"or\",\"\\u2228\"],[\"cap\",\"\\u2229\"],[\"cup\",\"\\u222a\"],[\"int\",\"\\u222b\"],[\"there4\",\"\\u2234\"],[\"sim\",\"\\u223c\"],[\"cong\",\"\\u2245\"],[\"asymp\",\"\\u2248\"],[\"ne\",\"\\u2260\"],[\"equiv\",\"\\u2261\"],[\"le\",\"\\u2264\"],[\"ge\",\"\\u2265\"],[\"sub\",\"\\u2282\"],[\"sup\",\"\\u2283\"],[\"nsub\",\"\\u2284\"],[\"sube\",\"\\u2286\"],[\"supe\",\"\\u2287\"],[\"oplus\",\"\\u2295\"],[\"otimes\",\"\\u2297\"],[\"perp\",\"\\u22a5\"],[\"sdot\",\"\\u22c5\"],[\"lceil\",\"\\u2308\"],[\"rceil\",\"\\u2309\"],[\"lfloor\",\"\\u230a\"],[\"rfloor\",\"\\u230b\"],[\"lang\",\"\\u2329\"],[\"rang\",\"\\u232a\"],[\"loz\",\"\\u25ca\"],[\"spades\",\"\\u2660\"],[\"clubs\",\"\\u2663\"],[\"hearts\",\"\\u2665\"],[\"diams\",\"\\u2666\"]])}\n//# sourceMappingURL=xhtml.min.js.map","min_map":"{\"version\":3,\"file\":\"xhtml.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"Map\"],\"sources\":[\"0\"],\"mappings\":\"AAAmD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAChGD,IAEAD,EAAQG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,UACR,CAAC,QAAS,UACV,CAAC,SAAU,UACX,CAAC,QAAS,UACV,CAAC,OAAQ,UACT,CAAC,QAAS,UACV,CAAC,MAAO,UACR,CAAC,MAAO,UACR,CAAC,KAAM,UACP,CAAC,MAAO,UACR,CAAC,MAAO,UACR,CAAC,MAAO,UACR,CAAC,SAAU,UACX,CAAC,MAAO,UACR,CAAC,OAAQ,UACT,CAAC,QAAS,UACV,CAAC,KAAM,UACP,CAAC,QAAS,UACV,CAAC,KAAM,UACP,CAAC,KAAM,UACP,CAAC,MAAO,UACR,CAAC,MAAO,UACR,CAAC,OAAQ,UACT,CAAC,OAAQ,UACT,CAAC,OAAQ,UACT,CAAC,QAAS,UACV,CAAC,SAAU,UACX,CAAC,OAAQ,UACT,CAAC,OAAQ,UACT,CAAC,QAAS,UACV,CAAC,QAAS,UACV,CAAC,SAAU,UACX,CAAC,SAAU,UACX,CAAC,OAAQ,UACT,CAAC,OAAQ,UACT,CAAC,MAAO,UACR,CAAC,SAAU,UACX,CAAC,QAAS,UACV,CAAC,SAAU,UACX,CAAC,QAAS,WAElB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getJSXPragmaInfo.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/util/getJSXPragmaInfo.js","resolution":"ESM","id":"d797c101ed","hash":"d797c101edd561edf9af7c7fea9a848f9100f6646e26da850e524fedb7882c4e","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = getJSXPragmaInfo;\nfunction getJSXPragmaInfo(options) {\n    const [base, suffix] = splitPragma(options.jsxPragma || \"React.createElement\");\n    const [fragmentBase, fragmentSuffix] = splitPragma(options.jsxFragmentPragma || \"React.Fragment\");\n    return { base, suffix, fragmentBase, fragmentSuffix };\n}\nfunction splitPragma(pragma) {\n    let dotIndex = pragma.indexOf(\".\");\n    if (dotIndex === -1) {\n        dotIndex = pragma.length;\n    }\n    return [pragma.slice(0, dotIndex), pragma.slice(dotIndex)];\n}\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"getJSXPragmaInfo"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/util/getJSXPragmaInfo.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = getJSXPragmaInfo;\n    function getJSXPragmaInfo(options) {\n        const [base, suffix] = splitPragma(options.jsxPragma || \"React.createElement\");\n        const [fragmentBase, fragmentSuffix] = splitPragma(options.jsxFragmentPragma || \"React.Fragment\");\n        return { base, suffix, fragmentBase, fragmentSuffix };\n    }\n    function splitPragma(pragma) {\n        let dotIndex = pragma.indexOf(\".\");\n        if (dotIndex === -1) {\n            dotIndex = pragma.length;\n        }\n        return [pragma.slice(0, dotIndex), pragma.slice(dotIndex)];\n    }\n}\n","min_source":"function _(e,t,n,a,f){function r(e){let t=e.indexOf(\".\");return-1===t&&(t=e.length),[e.slice(0,t),e.slice(t)]}a(),n.default=function(e){const[t,n]=r(e.jsxPragma||\"React.createElement\"),[a,f]=r(e.jsxFragmentPragma||\"React.Fragment\");return{base:t,suffix:n,fragmentBase:a,fragmentSuffix:f}}}\n//# sourceMappingURL=getJSXPragmaInfo.min.js.map","min_map":"{\"version\":3,\"file\":\"getJSXPragmaInfo.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"splitPragma\",\"pragma\",\"dotIndex\",\"indexOf\",\"length\",\"slice\",\"default\",\"options\",\"base\",\"suffix\",\"jsxPragma\",\"fragmentBase\",\"fragmentSuffix\",\"jsxFragmentPragma\"],\"sources\":[\"0\"],\"mappings\":\"AAAgD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAQ7F,SAASC,EAAYC,GACjB,IAAIC,EAAWD,EAAOE,QAAQ,KAI9B,OAHkB,IAAdD,IACAA,EAAWD,EAAOG,QAEf,CAACH,EAAOI,MAAM,EAAGH,GAAWD,EAAOI,MAAMH,GACpD,CAbAJ,IACAD,EAAQS,QACR,SAA0BC,GACtB,MAAOC,EAAMC,GAAUT,EAAYO,EAAQG,WAAa,wBACjDC,EAAcC,GAAkBZ,EAAYO,EAAQM,mBAAqB,kBAChF,MAAO,CAAEL,OAAMC,SAAQE,eAAcC,iBACzC,CAQJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/Transformer.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/transformers/Transformer.js","resolution":"ESM","id":"a46f119f74","hash":"a46f119f74c96a28a1d828e056decdd910c356dcd133dfaba5e5258afdc007d4","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nclass Transformer {\n    // Return true if anything was processed, false otherwise.\n    getPrefixCode() {\n        return \"\";\n    }\n    getHoistedCode() {\n        return \"\";\n    }\n    getSuffixCode() {\n        return \"\";\n    }\n}\nexports.default = Transformer;\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"Transformer"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/transformers/Transformer.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    class Transformer {\n        // Return true if anything was processed, false otherwise.\n        getPrefixCode() {\n            return \"\";\n        }\n        getHoistedCode() {\n            return \"\";\n        }\n        getSuffixCode() {\n            return \"\";\n        }\n    }\n    exports.default = Transformer;\n}\n","min_source":"function _(e,t,r,u,d){u();r.default=class{getPrefixCode(){return\"\"}getHoistedCode(){return\"\"}getSuffixCode(){return\"\"}}}\n//# sourceMappingURL=Transformer.min.js.map","min_map":"{\"version\":3,\"file\":\"Transformer.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"getPrefixCode\",\"getHoistedCode\",\"getSuffixCode\"],\"sources\":[\"0\"],\"mappings\":\"AAAmD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAChGD,IAaAD,EAAQG,QAZR,MAEI,aAAAC,GACI,MAAO,EACX,CACA,cAAAC,GACI,MAAO,EACX,CACA,aAAAC,GACI,MAAO,EACX,EAGR\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/computeSourceMap.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/computeSourceMap.js","resolution":"ESM","id":"03a5a23920","hash":"03a5a23920eb70293e98c462d842cc23a921b1dfdcf46311f6a0e335c378d888","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = computeSourceMap;\nconst gen_mapping_1 = require(\"@jridgewell/gen-mapping\");\nconst charcodes_1 = require(\"./parser/util/charcodes\");\n/**\n * Generate a source map indicating that each line maps directly to the original line,\n * with the tokens in their new positions.\n */\nfunction computeSourceMap({ code: generatedCode, mappings: rawMappings }, filePath, options, source, tokens) {\n    const sourceColumns = computeSourceColumns(source, tokens);\n    const map = new gen_mapping_1.GenMapping({ file: options.compiledFilename });\n    let tokenIndex = 0;\n    // currentMapping is the output source index for the current input token being\n    // considered.\n    let currentMapping = rawMappings[0];\n    while (currentMapping === undefined && tokenIndex < rawMappings.length - 1) {\n        tokenIndex++;\n        currentMapping = rawMappings[tokenIndex];\n    }\n    let line = 0;\n    let lineStart = 0;\n    if (currentMapping !== lineStart) {\n        (0, gen_mapping_1.maybeAddSegment)(map, line, 0, filePath, line, 0);\n    }\n    for (let i = 0; i < generatedCode.length; i++) {\n        if (i === currentMapping) {\n            const genColumn = currentMapping - lineStart;\n            const sourceColumn = sourceColumns[tokenIndex];\n            (0, gen_mapping_1.maybeAddSegment)(map, line, genColumn, filePath, line, sourceColumn);\n            while ((currentMapping === i || currentMapping === undefined) &&\n                tokenIndex < rawMappings.length - 1) {\n                tokenIndex++;\n                currentMapping = rawMappings[tokenIndex];\n            }\n        }\n        if (generatedCode.charCodeAt(i) === charcodes_1.charCodes.lineFeed) {\n            line++;\n            lineStart = i + 1;\n            if (currentMapping !== lineStart) {\n                (0, gen_mapping_1.maybeAddSegment)(map, line, 0, filePath, line, 0);\n            }\n        }\n    }\n    const { sourceRoot, sourcesContent, ...sourceMap } = (0, gen_mapping_1.toEncodedMap)(map);\n    return sourceMap;\n}\n/**\n * Create an array mapping each token index to the 0-based column of the start\n * position of the token.\n */\nfunction computeSourceColumns(code, tokens) {\n    const sourceColumns = new Array(tokens.length);\n    let tokenIndex = 0;\n    let currentMapping = tokens[tokenIndex].start;\n    let lineStart = 0;\n    for (let i = 0; i < code.length; i++) {\n        if (i === currentMapping) {\n            sourceColumns[tokenIndex] = currentMapping - lineStart;\n            tokenIndex++;\n            currentMapping = tokens[tokenIndex].start;\n        }\n        if (code.charCodeAt(i) === charcodes_1.charCodes.lineFeed) {\n            lineStart = i + 1;\n        }\n    }\n    return sourceColumns;\n}\n","type":"js","dependency_paths":[["@jridgewell/gen-mapping","/home/runner/work/panel/panel/panel/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs"],["./parser/util/charcodes","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/charcodes.js"]],"dependency_map":[],"exported":[{"type":"named","name":"computeSourceMap"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/computeSourceMap.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = computeSourceMap;\n    const gen_mapping_1 = require(\"dba3894e29\") /* @jridgewell/gen-mapping */;\n    const charcodes_1 = require(\"22746c8ce8\") /* ./parser/util/charcodes */;\n    /**\n     * Generate a source map indicating that each line maps directly to the original line,\n     * with the tokens in their new positions.\n     */\n    function computeSourceMap({ code: generatedCode, mappings: rawMappings }, filePath, options, source, tokens) {\n        const sourceColumns = computeSourceColumns(source, tokens);\n        const map = new gen_mapping_1.GenMapping({ file: options.compiledFilename });\n        let tokenIndex = 0;\n        // currentMapping is the output source index for the current input token being\n        // considered.\n        let currentMapping = rawMappings[0];\n        while (currentMapping === undefined && tokenIndex < rawMappings.length - 1) {\n            tokenIndex++;\n            currentMapping = rawMappings[tokenIndex];\n        }\n        let line = 0;\n        let lineStart = 0;\n        if (currentMapping !== lineStart) {\n            (0, gen_mapping_1.maybeAddSegment)(map, line, 0, filePath, line, 0);\n        }\n        for (let i = 0; i < generatedCode.length; i++) {\n            if (i === currentMapping) {\n                const genColumn = currentMapping - lineStart;\n                const sourceColumn = sourceColumns[tokenIndex];\n                (0, gen_mapping_1.maybeAddSegment)(map, line, genColumn, filePath, line, sourceColumn);\n                while ((currentMapping === i || currentMapping === undefined) &&\n                    tokenIndex < rawMappings.length - 1) {\n                    tokenIndex++;\n                    currentMapping = rawMappings[tokenIndex];\n                }\n            }\n            if (generatedCode.charCodeAt(i) === charcodes_1.charCodes.lineFeed) {\n                line++;\n                lineStart = i + 1;\n                if (currentMapping !== lineStart) {\n                    (0, gen_mapping_1.maybeAddSegment)(map, line, 0, filePath, line, 0);\n                }\n            }\n        }\n        const { sourceRoot, sourcesContent, ...sourceMap } = (0, gen_mapping_1.toEncodedMap)(map);\n        return sourceMap;\n    }\n    /**\n     * Create an array mapping each token index to the 0-based column of the start\n     * position of the token.\n     */\n    function computeSourceColumns(code, tokens) {\n        const sourceColumns = new Array(tokens.length);\n        let tokenIndex = 0;\n        let currentMapping = tokens[tokenIndex].start;\n        let lineStart = 0;\n        for (let i = 0; i < code.length; i++) {\n            if (i === currentMapping) {\n                sourceColumns[tokenIndex] = currentMapping - lineStart;\n                tokenIndex++;\n                currentMapping = tokens[tokenIndex].start;\n            }\n            if (code.charCodeAt(i) === charcodes_1.charCodes.lineFeed) {\n                lineStart = i + 1;\n            }\n        }\n        return sourceColumns;\n    }\n}\n","min_source":"function _(e,t,n,o,d){o(),n.default=function({code:e,mappings:t},n,o,d,a){const l=function(e,t){const n=new Array(t.length);let o=0,d=t[o].start,c=0;for(let a=0;a<e.length;a++)a===d&&(n[o]=d-c,o++,d=t[o].start),e.charCodeAt(a)===r.charCodes.lineFeed&&(c=a+1);return n}(d,a),i=new c.GenMapping({file:o.compiledFilename});let s=0,f=t[0];for(;void 0===f&&s<t.length-1;)s++,f=t[s];let g=0,h=0;f!==h&&(0,c.maybeAddSegment)(i,g,0,n,g,0);for(let o=0;o<e.length;o++){if(o===f){const e=f-h,d=l[s];for((0,c.maybeAddSegment)(i,g,e,n,g,d);(f===o||void 0===f)&&s<t.length-1;)s++,f=t[s]}e.charCodeAt(o)===r.charCodes.lineFeed&&(g++,h=o+1,f!==h&&(0,c.maybeAddSegment)(i,g,0,n,g,0))}const{sourceRoot:m,sourcesContent:u,...p}=(0,c.toEncodedMap)(i);return p};const c=e(\"dba3894e29\"),r=e(\"22746c8ce8\")}\n//# sourceMappingURL=computeSourceMap.min.js.map","min_map":"{\"version\":3,\"file\":\"computeSourceMap.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"code\",\"generatedCode\",\"mappings\",\"rawMappings\",\"filePath\",\"options\",\"source\",\"tokens\",\"sourceColumns\",\"Array\",\"length\",\"tokenIndex\",\"currentMapping\",\"start\",\"lineStart\",\"i\",\"charCodeAt\",\"charcodes_1\",\"charCodes\",\"lineFeed\",\"computeSourceColumns\",\"map\",\"gen_mapping_1\",\"GenMapping\",\"file\",\"compiledFilename\",\"undefined\",\"line\",\"maybeAddSegment\",\"genColumn\",\"sourceColumn\",\"sourceRoot\",\"sourcesContent\",\"sourceMap\",\"toEncodedMap\"],\"sources\":[\"0\"],\"mappings\":\"AAA2C,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACxFD,IACAD,EAAQG,QAOR,UAA4BC,KAAMC,EAAeC,SAAUC,GAAeC,EAAUC,EAASC,EAAQC,GACjG,MAAMC,EAyCV,SAA8BR,EAAMO,GAChC,MAAMC,EAAgB,IAAIC,MAAMF,EAAOG,QACvC,IAAIC,EAAa,EACbC,EAAiBL,EAAOI,GAAYE,MACpCC,EAAY,EAChB,IAAK,IAAIC,EAAI,EAAGA,EAAIf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ner/work/panel/panel/panel/node_modules","base_path":"@jridgewell/gen-mapping/dist/gen-mapping.mjs","resolution":"ESM","id":"dba3894e29","hash":"dba3894e29841deb803eb07641f6f5bd320aa89677e40e1d88167cd9125f9129","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.maybeAddSegment = exports.maybeAddMapping = exports.GenMapping = void 0;\nexports.addMapping = addMapping;\nexports.addSegment = addSegment;\nexports.allMappings = allMappings;\nexports.fromMap = fromMap;\nexports.setIgnore = setIgnore;\nexports.setSourceContent = setSourceContent;\nexports.toDecodedMap = toDecodedMap;\nexports.toEncodedMap = toEncodedMap;\nconst set_array_1 = require(\"@jridgewell/set-array\");\nconst sourcemap_codec_1 = require(\"@jridgewell/sourcemap-codec\");\nconst trace_mapping_1 = require(\"@jridgewell/trace-mapping\");\nconst COLUMN = 0;\nconst SOURCES_INDEX = 1;\nconst SOURCE_LINE = 2;\nconst SOURCE_COLUMN = 3;\nconst NAMES_INDEX = 4;\nconst NO_NAME = -1;\n/**\n * Provides the state to generate a sourcemap.\n */\nclass GenMapping {\n    constructor({ file, sourceRoot } = {}) {\n        this._names = new set_array_1.SetArray();\n        this._sources = new set_array_1.SetArray();\n        this._sourcesContent = [];\n        this._mappings = [];\n        this.file = file;\n        this.sourceRoot = sourceRoot;\n        this._ignoreList = new set_array_1.SetArray();\n    }\n}\nexports.GenMapping = GenMapping;\n/**\n * Typescript doesn't allow friend access to private fields, so this just casts the map into a type\n * with public access modifiers.\n */\nfunction cast(map) {\n    return map;\n}\nfunction addSegment(map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {\n    return addSegmentInternal(false, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content);\n}\nfunction addMapping(map, mapping) {\n    return addMappingInternal(false, map, mapping);\n}\n/**\n * Same as `addSegment`, but will only add the segment if it generates useful information in the\n * resulting map. This only works correctly if segments are added **in order**, meaning you should\n * not add a segment with a lower generated line/column than one that came before.\n */\nconst maybeAddSegment = (map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) => {\n    return addSegmentInternal(true, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content);\n};\nexports.maybeAddSegment = maybeAddSegment;\n/**\n * Same as `addMapping`, but will only add the mapping if it generates useful information in the\n * resulting map. This only works correctly if mappings are added **in order**, meaning you should\n * not add a mapping with a lower generated line/column than one that came before.\n */\nconst maybeAddMapping = (map, mapping) => {\n    return addMappingInternal(true, map, mapping);\n};\nexports.maybeAddMapping = maybeAddMapping;\n/**\n * Adds/removes the content of the source file to the source map.\n */\nfunction setSourceContent(map, source, content) {\n    const { _sources: sources, _sourcesContent: sourcesContent } = cast(map);\n    const index = (0, set_array_1.put)(sources, source);\n    sourcesContent[index] = content;\n}\nfunction setIgnore(map, source, ignore = true) {\n    const { _sources: sources, _sourcesContent: sourcesContent, _ignoreList: ignoreList } = cast(map);\n    const index = (0, set_array_1.put)(sources, source);\n    if (index === sourcesContent.length)\n        sourcesContent[index] = null;\n    if (ignore)\n        (0, set_array_1.put)(ignoreList, index);\n    else\n        (0, set_array_1.remove)(ignoreList, index);\n}\n/**\n * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects\n * a sourcemap, or to JSON.stringify.\n */\nfunction toDecodedMap(map) {\n    const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, _ignoreList: ignoreList, } = cast(map);\n    removeEmptyFinalLines(mappings);\n    return {\n        version: 3,\n        file: map.file || undefined,\n        names: names.array,\n        sourceRoot: map.sourceRoot || undefined,\n        sources: sources.array,\n        sourcesContent,\n        mappings,\n        ignoreList: ignoreList.array,\n    };\n}\n/**\n * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects\n * a sourcemap, or to JSON.stringify.\n */\nfunction toEncodedMap(map) {\n    const decoded = toDecodedMap(map);\n    return Object.assign(Object.assign({}, decoded), { mappings: (0, sourcemap_codec_1.encode)(decoded.mappings) });\n}\n/**\n * Constructs a new GenMapping, using the already present mappings of the input.\n */\nfunction fromMap(input) {\n    const map = new trace_mapping_1.TraceMap(input);\n    const gen = new GenMapping({ file: map.file, sourceRoot: map.sourceRoot });\n    putAll(cast(gen)._names, map.names);\n    putAll(cast(gen)._sources, map.sources);\n    cast(gen)._sourcesContent = map.sourcesContent || map.sources.map(() => null);\n    cast(gen)._mappings = (0, trace_mapping_1.decodedMappings)(map);\n    if (map.ignoreList)\n        putAll(cast(gen)._ignoreList, map.ignoreList);\n    return gen;\n}\n/**\n * Returns an array of high-level mapping objects for every recorded segment, which could then be\n * passed to the `source-map` library.\n */\nfunction allMappings(map) {\n    const out = [];\n    const { _mappings: mappings, _sources: sources, _names: names } = cast(map);\n    for (let i = 0; i < mappings.length; i++) {\n        const line = mappings[i];\n        for (let j = 0; j < line.length; j++) {\n            const seg = line[j];\n            const generated = { line: i + 1, column: seg[COLUMN] };\n            let source = undefined;\n            let original = undefined;\n            let name = undefined;\n            if (seg.length !== 1) {\n                source = sources.array[seg[SOURCES_INDEX]];\n                original = { line: seg[SOURCE_LINE] + 1, column: seg[SOURCE_COLUMN] };\n                if (seg.length === 5)\n                    name = names.array[seg[NAMES_INDEX]];\n            }\n            out.push({ generated, source, original, name });\n        }\n    }\n    return out;\n}\n// This split declaration is only so that terser can elminiate the static initialization block.\nfunction addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {\n    const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, } = cast(map);\n    const line = getLine(mappings, genLine);\n    const index = getColumnIndex(line, genColumn);\n    if (!source) {\n        if (skipable && skipSourceless(line, index))\n            return;\n        return insert(line, index, [genColumn]);\n    }\n    const sourcesIndex = (0, set_array_1.put)(sources, source);\n    const namesIndex = name ? (0, set_array_1.put)(names, name) : NO_NAME;\n    if (sourcesIndex === sourcesContent.length)\n        sourcesContent[sourcesIndex] = content !== null && content !== void 0 ? content : null;\n    if (skipable && skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex)) {\n        return;\n    }\n    return insert(line, index, name\n        ? [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex]\n        : [genColumn, sourcesIndex, sourceLine, sourceColumn]);\n}\nfunction getLine(mappings, index) {\n    for (let i = mappings.length; i <= index; i++) {\n        mappings[i] = [];\n    }\n    return mappings[index];\n}\nfunction getColumnIndex(line, genColumn) {\n    let index = line.length;\n    for (let i = index - 1; i >= 0; index = i--) {\n        const current = line[i];\n        if (genColumn >= current[COLUMN])\n            break;\n    }\n    return index;\n}\nfunction insert(array, index, value) {\n    for (let i = array.length; i > index; i--) {\n        array[i] = array[i - 1];\n    }\n    array[index] = value;\n}\nfunction removeEmptyFinalLines(mappings) {\n    const { length } = mappings;\n    let len = length;\n    for (let i = len - 1; i >= 0; len = i, i--) {\n        if (mappings[i].length > 0)\n            break;\n    }\n    if (len < length)\n        mappings.length = len;\n}\nfunction putAll(setarr, array) {\n    for (let i = 0; i < array.length; i++)\n        (0, set_array_1.put)(setarr, array[i]);\n}\nfunction skipSourceless(line, index) {\n    // The start of a line is already sourceless, so adding a sourceless segment to the beginning\n    // doesn't generate any useful information.\n    if (index === 0)\n        return true;\n    const prev = line[index - 1];\n    // If the previous segment is also sourceless, then adding another sourceless segment doesn't\n    // genrate any new information. Else, this segment will end the source/named segment and point to\n    // a sourceless position, which is useful.\n    return prev.length === 1;\n}\nfunction skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex) {\n    // A source/named segment at the start of a line gives position at that genColumn\n    if (index === 0)\n        return false;\n    const prev = line[index - 1];\n    // If the previous segment is sourceless, then we're transitioning to a source.\n    if (prev.length === 1)\n        return false;\n    // If the previous segment maps to the exact same source position, then this segment doesn't\n    // provide any new position information.\n    return (sourcesIndex === prev[SOURCES_INDEX] &&\n        sourceLine === prev[SOURCE_LINE] &&\n        sourceColumn === prev[SOURCE_COLUMN] &&\n        namesIndex === (prev.length === 5 ? prev[NAMES_INDEX] : NO_NAME));\n}\nfunction addMappingInternal(skipable, map, mapping) {\n    const { generated, source, original, name, content } = mapping;\n    if (!source) {\n        return addSegmentInternal(skipable, map, generated.line - 1, generated.column, null, null, null, null, null);\n    }\n    return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);\n}\n//# sourceMappingURL=gen-mapping.mjs.map\n","type":"js","dependency_paths":[["@jridgewell/set-array","/home/runner/work/panel/panel/panel/node_modules/@jridgewell/set-array/dist/set-array.mjs"],["@jridgewell/sourcemap-codec","/home/runner/work/panel/panel/panel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs"],["@jridgewell/trace-mapping","/home/runner/work/panel/panel/panel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs"]],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* @jridgewell/gen-mapping/dist/gen-mapping.mjs */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.addMapping = addMapping;\n    exports.addSegment = addSegment;\n    exports.allMappings = allMappings;\n    exports.fromMap = fromMap;\n    exports.setIgnore = setIgnore;\n    exports.setSourceContent = setSourceContent;\n    exports.toDecodedMap = toDecodedMap;\n    exports.toEncodedMap = toEncodedMap;\n    const set_array_1 = require(\"39961f1de0\") /* @jridgewell/set-array */;\n    const sourcemap_codec_1 = require(\"4b3e7fe51a\") /* @jridgewell/sourcemap-codec */;\n    const trace_mapping_1 = require(\"ed38200738\") /* @jridgewell/trace-mapping */;\n    const COLUMN = 0;\n    const SOURCES_INDEX = 1;\n    const SOURCE_LINE = 2;\n    const SOURCE_COLUMN = 3;\n    const NAMES_INDEX = 4;\n    const NO_NAME = -1;\n    /**\n     * Provides the state to generate a sourcemap.\n     */\n    class GenMapping {\n        constructor({ file, sourceRoot } = {}) {\n            this._names = new set_array_1.SetArray();\n            this._sources = new set_array_1.SetArray();\n            this._sourcesContent = [];\n            this._mappings = [];\n            this.file = file;\n            this.sourceRoot = sourceRoot;\n            this._ignoreList = new set_array_1.SetArray();\n        }\n    }\n    exports.GenMapping = GenMapping;\n    /**\n     * Typescript doesn't allow friend access to private fields, so this just casts the map into a type\n     * with public access modifiers.\n     */\n    function cast(map) {\n        return map;\n    }\n    function addSegment(map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {\n        return addSegmentInternal(false, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content);\n    }\n    function addMapping(map, mapping) {\n        return addMappingInternal(false, map, mapping);\n    }\n    /**\n     * Same as `addSegment`, but will only add the segment if it generates useful information in the\n     * resulting map. This only works correctly if segments are added **in order**, meaning you should\n     * not add a segment with a lower generated line/column than one that came before.\n     */\n    const maybeAddSegment = (map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) => {\n        return addSegmentInternal(true, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content);\n    };\n    exports.maybeAddSegment = maybeAddSegment;\n    /**\n     * Same as `addMapping`, but will only add the mapping if it generates useful information in the\n     * resulting map. This only works correctly if mappings are added **in order**, meaning you should\n     * not add a mapping with a lower generated line/column than one that came before.\n     */\n    const maybeAddMapping = (map, mapping) => {\n        return addMappingInternal(true, map, mapping);\n    };\n    exports.maybeAddMapping = maybeAddMapping;\n    /**\n     * Adds/removes the content of the source file to the source map.\n     */\n    function setSourceContent(map, source, content) {\n        const { _sources: sources, _sourcesContent: sourcesContent } = cast(map);\n        const index = (0, set_array_1.put)(sources, source);\n        sourcesContent[index] = content;\n    }\n    function setIgnore(map, source, ignore = true) {\n        const { _sources: sources, _sourcesContent: sourcesContent, _ignoreList: ignoreList } = cast(map);\n        const index = (0, set_array_1.put)(sources, source);\n        if (index === sourcesContent.length)\n            sourcesContent[index] = null;\n        if (ignore)\n            (0, set_array_1.put)(ignoreList, index);\n        else\n            (0, set_array_1.remove)(ignoreList, index);\n    }\n    /**\n     * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects\n     * a sourcemap, or to JSON.stringify.\n     */\n    function toDecodedMap(map) {\n        const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, _ignoreList: ignoreList, } = cast(map);\n        removeEmptyFinalLines(mappings);\n        return {\n            version: 3,\n            file: map.file || undefined,\n            names: names.array,\n            sourceRoot: map.sourceRoot || undefined,\n            sources: sources.array,\n            sourcesContent,\n            mappings,\n            ignoreList: ignoreList.array,\n        };\n    }\n    /**\n     * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects\n     * a sourcemap, or to JSON.stringify.\n     */\n    function toEncodedMap(map) {\n        const decoded = toDecodedMap(map);\n        return Object.assign(Object.assign({}, decoded), { mappings: (0, sourcemap_codec_1.encode)(decoded.mappings) });\n    }\n    /**\n     * Constructs a new GenMapping, using the already present mappings of the input.\n     */\n    function fromMap(input) {\n        const map = new trace_mapping_1.TraceMap(input);\n        const gen = new GenMapping({ file: map.file, sourceRoot: map.sourceRoot });\n        putAll(cast(gen)._names, map.names);\n        putAll(cast(gen)._sources, map.sources);\n        cast(gen)._sourcesContent = map.sourcesContent || map.sources.map(() => null);\n        cast(gen)._mappings = (0, trace_mapping_1.decodedMappings)(map);\n        if (map.ignoreList)\n            putAll(cast(gen)._ignoreList, map.ignoreList);\n        return gen;\n    }\n    /**\n     * Returns an array of high-level mapping objects for every recorded segment, which could then be\n     * passed to the `source-map` library.\n     */\n    function allMappings(map) {\n        const out = [];\n        const { _mappings: mappings, _sources: sources, _names: names } = cast(map);\n        for (let i = 0; i < mappings.length; i++) {\n            const line = mappings[i];\n            for (let j = 0; j < line.length; j++) {\n                const seg = line[j];\n                const generated = { line: i + 1, column: seg[COLUMN] };\n                let source = undefined;\n                let original = undefined;\n                let name = undefined;\n                if (seg.length !== 1) {\n                    source = sources.array[seg[SOURCES_INDEX]];\n                    original = { line: seg[SOURCE_LINE] + 1, column: seg[SOURCE_COLUMN] };\n                    if (seg.length === 5)\n                        name = names.array[seg[NAMES_INDEX]];\n                }\n                out.push({ generated, source, original, name });\n            }\n        }\n        return out;\n    }\n    // This split declaration is only so that terser can elminiate the static initialization block.\n    function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {\n        const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, } = cast(map);\n        const line = getLine(mappings, genLine);\n        const index = getColumnIndex(line, genColumn);\n        if (!source) {\n            if (skipable && skipSourceless(line, index))\n                return;\n            return insert(line, index, [genColumn]);\n        }\n        const sourcesIndex = (0, set_array_1.put)(sources, source);\n        const namesIndex = name ? (0, set_array_1.put)(names, name) : NO_NAME;\n        if (sourcesIndex === sourcesContent.length)\n            sourcesContent[sourcesIndex] = content !== null && content !== void 0 ? content : null;\n        if (skipable && skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex)) {\n            return;\n        }\n        return insert(line, index, name\n            ? [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex]\n            : [genColumn, sourcesIndex, sourceLine, sourceColumn]);\n    }\n    function getLine(mappings, index) {\n        for (let i = mappings.length; i <= index; i++) {\n            mappings[i] = [];\n        }\n        return mappings[index];\n    }\n    function getColumnIndex(line, genColumn) {\n        let index = line.length;\n        for (let i = index - 1; i >= 0; index = i--) {\n            const current = line[i];\n            if (genColumn >= current[COLUMN])\n                break;\n        }\n        return index;\n    }\n    function insert(array, index, value) {\n        for (let i = array.length; i > index; i--) {\n            array[i] = array[i - 1];\n        }\n        array[index] = value;\n    }\n    function removeEmptyFinalLines(mappings) {\n        const { length } = mappings;\n        let len = length;\n        for (let i = len - 1; i >= 0; len = i, i--) {\n            if (mappings[i].length > 0)\n                break;\n        }\n        if (len < length)\n            mappings.length = len;\n    }\n    function putAll(setarr, array) {\n        for (let i = 0; i < array.length; i++)\n            (0, set_array_1.put)(setarr, array[i]);\n    }\n    function skipSourceless(line, index) {\n        // The start of a line is already sourceless, so adding a sourceless segment to the beginning\n        // doesn't generate any useful information.\n        if (index === 0)\n            return true;\n        const prev = line[index - 1];\n        // If the previous segment is also sourceless, then adding another sourceless segment doesn't\n        // genrate any new information. Else, this segment will end the source/named segment and point to\n        // a sourceless position, which is useful.\n        return prev.length === 1;\n    }\n    function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex) {\n        // A source/named segment at the start of a line gives position at that genColumn\n        if (index === 0)\n            return false;\n        const prev = line[index - 1];\n        // If the previous segment is sourceless, then we're transitioning to a source.\n        if (prev.length === 1)\n            return false;\n        // If the previous segment maps to the exact same source position, then this segment doesn't\n        // provide any new position information.\n        return (sourcesIndex === prev[SOURCES_INDEX] &&\n            sourceLine === prev[SOURCE_LINE] &&\n            sourceColumn === prev[SOURCE_COLUMN] &&\n            namesIndex === (prev.length === 5 ? prev[NAMES_INDEX] : NO_NAME));\n    }\n    function addMappingInternal(skipable, map, mapping) {\n        const { generated, source, original, name, content } = mapping;\n        if (!source) {\n            return addSegmentInternal(skipable, map, generated.line - 1, generated.column, null, null, null, null, null);\n        }\n        return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);\n    }\n}\n","min_source":"function _(n,e,t,o,r){o(),t.addMapping=function(n,e){return C(!1,n,e)},t.addSegment=function(n,e,t,o,r,s,u,i){return h(!1,n,e,t,o,r,s,u,i)},t.allMappings=function(n){const e=[],{_mappings:t,_sources:o,_names:r}=n;for(let n=0;n<t.length;n++){const s=t[n];for(let t=0;t<s.length;t++){const u=s[t],i={line:n+1,column:u[c]};let p,m,_;1!==u.length&&(p=o.array[u[l]],m={line:u[a]+1,column:u[g]},5===u.length&&(_=r.array[u[f]])),e.push({generated:i,source:p,original:m,name:_})}}return e},t.fromMap=function(n){const e=new i.TraceMap(n),t=new m({file:e.file,sourceRoot:e.sourceRoot});y(t._names,e.names),y(t._sources,e.sources),t._sourcesContent=e.sourcesContent||e.sources.map((()=>null)),t._mappings=(0,i.decodedMappings)(e),e.ignoreList&&y(t._ignoreList,e.ignoreList);return t},t.setIgnore=function(n,e,t=!0){const{_sources:o,_sourcesContent:r,_ignoreList:u}=n,i=(0,s.put)(o,e);i===r.length&&(r[i]=null);t?(0,s.put)(u,i):(0,s.remove)(u,i)},t.setSourceContent=function(n,e,t){const{_sources:o,_sourcesContent:r}=n,u=(0,s.put)(o,e);r[u]=t},t.toDecodedMap=_,t.toEncodedMap=function(n){const e=_(n);return Object.assign(Object.assign({},e),{mappings:(0,u.encode)(e.mappings)})};const s=n(\"39961f1de0\"),u=n(\"4b3e7fe51a\"),i=n(\"ed38200738\"),c=0,l=1,a=2,g=3,f=4,p=-1;class m{constructor({file:n,sourceRoot:e}={}){this._names=new s.SetArray,this._sources=new s.SetArray,this._sourcesContent=[],this._mappings=[],this.file=n,this.sourceRoot=e,this._ignoreList=new s.SetArray}}t.GenMapping=m;t.maybeAddSegment=(n,e,t,o,r,s,u,i)=>h(!0,n,e,t,o,r,s,u,i);function _(n){const{_mappings:e,_sources:t,_sourcesContent:o,_names:r,_ignoreList:s}=n;return function(n){const{length:e}=n;let t=e;for(let e=t-1;e>=0&&!(n[e].length>0);t=e,e--);t<e&&(n.length=t)}(e),{version:3,file:n.file||void 0,names:r.array,sourceRoot:n.sourceRoot||void 0,sources:t.array,sourcesContent:o,mappings:e,ignoreList:s.array}}function h(n,e,t,o,r,u,i,m,_){const{_mappings:h,_sources:y,_sourcesContent:C,_names:M}=e,L=function(n,e){for(let t=n.length;t<=e;t++)n[t]=[];return n[e]}(h,t),b=function(n,e){let t=n.length;for(let o=t-1;o>=0;t=o--){if(e>=n[o][c])break}return t}(L,o);if(!r){if(n&&function(n,e){if(0===e)return!0;const t=n[e-1];return 1===t.length}(L,b))return;return d(L,b,[o])}const R=(0,s.put)(y,r),S=m?(0,s.put)(M,m):p;if(R===C.length&&(C[R]=null!=_?_:null),!n||!function(n,e,t,o,r,s){if(0===e)return!1;const u=n[e-1];return 1!==u.length&&(t===u[l]&&o===u[a]&&r===u[g]&&s===(5===u.length?u[f]:p))}(L,b,R,u,i,S))return d(L,b,m?[o,R,u,i,S]:[o,R,u,i])}function d(n,e,t){for(let t=n.length;t>e;t--)n[t]=n[t-1];n[e]=t}function y(n,e){for(let t=0;t<e.length;t++)(0,s.put)(n,e[t])}function C(n,e,t){const{generated:o,source:r,original:s,name:u,content:i}=t;return r?h(n,e,o.line-1,o.column,r,s.line-1,s.column,u,i):h(n,e,o.line-1,o.column,null,null,null,null,null)}t.maybeAddMapping=(n,e)=>C(!0,n,e)}\n//# sourceMappingURL=gen-mapping.min.js.map","min_map":"{\"version\":3,\"file\":\"gen-mapping.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"addMapping\",\"map\",\"mapping\",\"addMappingInternal\",\"addSegment\",\"genLine\",\"genColumn\",\"source\",\"sourceLine\",\"sourceColumn\",\"name\",\"content\",\"addSegmentInternal\",\"allMappings\",\"out\",\"_mappings\",\"mappings\",\"_sources\",\"sources\",\"_names\",\"names\",\"i\",\"length\",\"line\",\"j\",\"seg\",\"generated\",\"column\",\"COLUMN\",\"original\",\"array\",\"SOURCES_INDEX\",\"SOURCE_LINE\",\"SOURCE_COLUMN\",\"NAMES_INDEX\",\"push\",\"fromMap\",\"input\",\"trace_mapping_1\",\"TraceMap\",\"gen\",\"GenMapping\",\"file\",\"sourceRoot\",\"putAll\",\"_sourcesContent\",\"sourcesContent\",\"decodedMappings\",\"ignoreList\",\"_ignoreList\",\"setIgnore\",\"ignore\",\"index\",\"set_array_1\",\"put\",\"remove\",\"setSourceContent\",\"toDecodedMap\",\"toEncodedMap\",\"decoded\",\"Object\",\"assign\",\"sourcemap_codec_1\",\"encode\",\"NO_NAME\",\"constructor\",\"this\",\"SetArray\",\"maybeAddSegment\",\"len\",\"removeEmptyFinalLines\",\"version\",\"undefined\",\"skipable\",\"getLine\",\"getColumnIndex\",\"prev\",\"skipSourceless\",\"insert\",\"sourcesIndex\",\"namesIndex\",\"skipSource\",\"value\",\"setarr\",\"maybeAddMapping\"],\"sources\":[\"0\"],\"mappings\":\"AAAmD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAChGD,IACAD,EAAQG,WA0CR,SAAoBC,EAAKC,GACrB,OAAOC,GAAmB,EAAOF,EAAKC,EAC1C,EA3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EAAQnB,KAAEA,EAAIC,QAAEA,GAAYT,EACvD,OAAKK,EAGEK,EAAmB6D,EAAUxE,EAAKyB,EAAUH,KAAO,EAAGG,EAAUC,OAAQpB,EAAQsB,EAASN,KAAO,EAAGM,EAASF,OAAQjB,EAAMC,GAFtHC,EAAmB6D,EAAUxE,EAAKyB,EAAUH,KAAO,EAAGG,EAAUC,OAAQ,KAAM,KAAM,KAAM,KAAM,KAG/G,CA7KA9B,EAAQuF,gBAHgB,CAACnF,EAAKC,IACnBC,GAAmB,EAAMF,EAAKC,EAgL7C\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/@jridgewell/set-array/dist/set-array.mjs","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"@jridgewell/set-array/dist/set-array.mjs","resolution":"ESM","id":"39961f1de0","hash":"39961f1de056663a3917c789bfb7f9e6b82be4dc52989b48669bd1b8cb90cfb3","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SetArray = void 0;\nexports.get = get;\nexports.pop = pop;\nexports.put = put;\nexports.remove = remove;\n/**\n * SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the\n * index of the `key` in the backing array.\n *\n * This is designed to allow synchronizing a second array with the contents of the backing array,\n * like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`,\n * and there are never duplicates.\n */\nclass SetArray {\n    constructor() {\n        this._indexes = { __proto__: null };\n        this.array = [];\n    }\n}\nexports.SetArray = SetArray;\n/**\n * Typescript doesn't allow friend access to private fields, so this just casts the set into a type\n * with public access modifiers.\n */\nfunction cast(set) {\n    return set;\n}\n/**\n * Gets the index associated with `key` in the backing array, if it is already present.\n */\nfunction get(setarr, key) {\n    return cast(setarr)._indexes[key];\n}\n/**\n * Puts `key` into the backing array, if it is not already present. Returns\n * the index of the `key` in the backing array.\n */\nfunction put(setarr, key) {\n    // The key may or may not be present. If it is present, it's a number.\n    const index = get(setarr, key);\n    if (index !== undefined)\n        return index;\n    const { array, _indexes: indexes } = cast(setarr);\n    const length = array.push(key);\n    return (indexes[key] = length - 1);\n}\n/**\n * Pops the last added item out of the SetArray.\n */\nfunction pop(setarr) {\n    const { array, _indexes: indexes } = cast(setarr);\n    if (array.length === 0)\n        return;\n    const last = array.pop();\n    indexes[last] = undefined;\n}\n/**\n * Removes the key, if it exists in the set.\n */\nfunction remove(setarr, key) {\n    const index = get(setarr, key);\n    if (index === undefined)\n        return;\n    const { array, _indexes: indexes } = cast(setarr);\n    for (let i = index + 1; i < array.length; i++) {\n        const k = array[i];\n        array[i - 1] = k;\n        indexes[k]--;\n    }\n    indexes[key] = undefined;\n    array.pop();\n}\n//# sourceMappingURL=set-array.mjs.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* @jridgewell/set-array/dist/set-array.mjs */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.get = get;\n    exports.pop = pop;\n    exports.put = put;\n    exports.remove = remove;\n    /**\n     * SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the\n     * index of the `key` in the backing array.\n     *\n     * This is designed to allow synchronizing a second array with the contents of the backing array,\n     * like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`,\n     * and there are never duplicates.\n     */\n    class SetArray {\n        constructor() {\n            this._indexes = { __proto__: null };\n            this.array = [];\n        }\n    }\n    exports.SetArray = SetArray;\n    /**\n     * Typescript doesn't allow friend access to private fields, so this just casts the set into a type\n     * with public access modifiers.\n     */\n    function cast(set) {\n        return set;\n    }\n    /**\n     * Gets the index associated with `key` in the backing array, if it is already present.\n     */\n    function get(setarr, key) {\n        return cast(setarr)._indexes[key];\n    }\n    /**\n     * Puts `key` into the backing array, if it is not already present. Returns\n     * the index of the `key` in the backing array.\n     */\n    function put(setarr, key) {\n        // The key may or may not be present. If it is present, it's a number.\n        const index = get(setarr, key);\n        if (index !== undefined)\n            return index;\n        const { array, _indexes: indexes } = cast(setarr);\n        const length = array.push(key);\n        return (indexes[key] = length - 1);\n    }\n    /**\n     * Pops the last added item out of the SetArray.\n     */\n    function pop(setarr) {\n        const { array, _indexes: indexes } = cast(setarr);\n        if (array.length === 0)\n            return;\n        const last = array.pop();\n        indexes[last] = undefined;\n    }\n    /**\n     * Removes the key, if it exists in the set.\n     */\n    function remove(setarr, key) {\n        const index = get(setarr, key);\n        if (index === undefined)\n            return;\n        const { array, _indexes: indexes } = cast(setarr);\n        for (let i = index + 1; i < array.length; i++) {\n            const k = array[i];\n            array[i - 1] = k;\n            indexes[k]--;\n        }\n        indexes[key] = undefined;\n        array.pop();\n    }\n}\n","min_source":"function _(n,t,o,r,e){r(),o.get=i,o.pop=function(n){const{array:t,_indexes:o}=n;if(0===t.length)return;const r=t.pop();o[r]=void 0},o.put=function(n,t){const o=i(n,t);if(void 0!==o)return o;const{array:r,_indexes:e}=n,s=r.push(t);return e[t]=s-1},o.remove=function(n,t){const o=i(n,t);if(void 0===o)return;const{array:r,_indexes:e}=n;for(let n=o+1;n<r.length;n++){const t=r[n];r[n-1]=t,e[t]--}e[t]=void 0,r.pop()};function i(n,t){return n._indexes[t]}o.SetArray=class{constructor(){this._indexes={__proto__:null},this.array=[]}}}\n//# sourceMappingURL=set-array.min.js.map","min_map":"{\"version\":3,\"file\":\"set-array.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"get\",\"pop\",\"setarr\",\"array\",\"_indexes\",\"indexes\",\"length\",\"last\",\"undefined\",\"put\",\"key\",\"index\",\"push\",\"remove\",\"i\",\"k\",\"SetArray\",\"constructor\",\"this\",\"__proto__\"],\"sources\":[\"0\"],\"mappings\":\"AAA+C,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC5FD,IACAD,EAAQG,IAAMA,EACdH,EAAQI,IA+CR,SAAaC,GACT,MAAMC,MAAEA,EAAOC,SAAUC,GAAiBH,EAC1C,GAAqB,IAAjBC,EAAMG,OACN,OACJ,MAAMC,EAAOJ,EAAMF,MACnBI,EAAQE,QAAQC,CACpB,EApDAX,EAAQY,IAkCR,SAAaP,EAAQQ,GAEjB,MAAMC,EAAQX,EAAIE,EAAQQ,GAC1B,QAAcF,IAAVG,EACA,OAAOA,EACX,MAAMR,MAAEA,EAAOC,SAAUC,GAAiBH,EACpCI,EAASH,EAAMS,KAAKF,GAC1B,OAAQL,EAAQK,GAAOJ,EAAS,CACpC,EAzCAT,EAAQgB,OAuDR,SAAgBX,EAAQQ,GACpB,MAAMC,EAAQX,EAAIE,EAAQQ,GAC1B,QAAcF,IAAVG,EACA,OACJ,MAAMR,MAAEA,EAAOC,SAAUC,GAAiBH,EAC1C,IAAK,IAAIY,EAAIH,EAAQ,EAAGG,EAAIX,EAAMG,OAAQQ,IAAK,CAC3C,MAAMC,EAAIZ,EAAMW,GAChBX,EAAMW,EAAI,GAAKC,EACfV,EAAQU,IACZ,CACAV,EAAQK,QAAOF,EACfL,EAAMF,KACV,EAzCA,SAASD,EAAIE,EAAQQ,GACjB,OAAYR,EAAQE,SAASM,EACjC,CAbAb,EAAQmB,SANR,MACI,WAAAC,GACIC,KAAKd,SAAW,CAAEe,UAAW,MAC7BD,KAAKf,MAAQ,EACjB,EAuDR\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs","resolution":"ESM","id":"4b3e7fe51a","hash":"4b3e7fe51a527790cdda6f8c666820492efa868e1dd0f835e524b6219c433480","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.decode = decode;\nexports.decodeGeneratedRanges = decodeGeneratedRanges;\nexports.decodeOriginalScopes = decodeOriginalScopes;\nexports.encode = encode;\nexports.encodeGeneratedRanges = encodeGeneratedRanges;\nexports.encodeOriginalScopes = encodeOriginalScopes;\nconst comma = ','.charCodeAt(0);\nconst semicolon = ';'.charCodeAt(0);\nconst chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\nconst intToChar = new Uint8Array(64); // 64 possible chars.\nconst charToInt = new Uint8Array(128); // z is 122 in ASCII\nfor (let i = 0; i < chars.length; i++) {\n    const c = chars.charCodeAt(i);\n    intToChar[i] = c;\n    charToInt[c] = i;\n}\nfunction decodeInteger(reader, relative) {\n    let value = 0;\n    let shift = 0;\n    let integer = 0;\n    do {\n        const c = reader.next();\n        integer = charToInt[c];\n        value |= (integer & 31) << shift;\n        shift += 5;\n    } while (integer & 32);\n    const shouldNegate = value & 1;\n    value >>>= 1;\n    if (shouldNegate) {\n        value = -0x80000000 | -value;\n    }\n    return relative + value;\n}\nfunction encodeInteger(builder, num, relative) {\n    let delta = num - relative;\n    delta = delta < 0 ? (-delta << 1) | 1 : delta << 1;\n    do {\n        let clamped = delta & 0b011111;\n        delta >>>= 5;\n        if (delta > 0)\n            clamped |= 0b100000;\n        builder.write(intToChar[clamped]);\n    } while (delta > 0);\n    return num;\n}\nfunction hasMoreVlq(reader, max) {\n    if (reader.pos >= max)\n        return false;\n    return reader.peek() !== comma;\n}\nconst bufLength = 1024 * 16;\n// Provide a fallback for older environments.\nconst td = typeof TextDecoder !== 'undefined'\n    ? /* #__PURE__ */ new TextDecoder()\n    : typeof Buffer !== 'undefined'\n        ? {\n            decode(buf) {\n                const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);\n                return out.toString();\n            },\n        }\n        : {\n            decode(buf) {\n                let out = '';\n                for (let i = 0; i < buf.length; i++) {\n                    out += String.fromCharCode(buf[i]);\n                }\n                return out;\n            },\n        };\nclass StringWriter {\n    constructor() {\n        this.pos = 0;\n        this.out = '';\n        this.buffer = new Uint8Array(bufLength);\n    }\n    write(v) {\n        const { buffer } = this;\n        buffer[this.pos++] = v;\n        if (this.pos === bufLength) {\n            this.out += td.decode(buffer);\n            this.pos = 0;\n        }\n    }\n    flush() {\n        const { buffer, out, pos } = this;\n        return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;\n    }\n}\nclass StringReader {\n    constructor(buffer) {\n        this.pos = 0;\n        this.buffer = buffer;\n    }\n    next() {\n        return this.buffer.charCodeAt(this.pos++);\n    }\n    peek() {\n        return this.buffer.charCodeAt(this.pos);\n    }\n    indexOf(char) {\n        const { buffer, pos } = this;\n        const idx = buffer.indexOf(char, pos);\n        return idx === -1 ? buffer.length : idx;\n    }\n}\nconst EMPTY = [];\nfunction decodeOriginalScopes(input) {\n    const { length } = input;\n    const reader = new StringReader(input);\n    const scopes = [];\n    const stack = [];\n    let line = 0;\n    for (; reader.pos < length; reader.pos++) {\n        line = decodeInteger(reader, line);\n        const column = decodeInteger(reader, 0);\n        if (!hasMoreVlq(reader, length)) {\n            const last = stack.pop();\n            last[2] = line;\n            last[3] = column;\n            continue;\n        }\n        const kind = decodeInteger(reader, 0);\n        const fields = decodeInteger(reader, 0);\n        const hasName = fields & 0b0001;\n        const scope = (hasName ? [line, column, 0, 0, kind, decodeInteger(reader, 0)] : [line, column, 0, 0, kind]);\n        let vars = EMPTY;\n        if (hasMoreVlq(reader, length)) {\n            vars = [];\n            do {\n                const varsIndex = decodeInteger(reader, 0);\n                vars.push(varsIndex);\n            } while (hasMoreVlq(reader, length));\n        }\n        scope.vars = vars;\n        scopes.push(scope);\n        stack.push(scope);\n    }\n    return scopes;\n}\nfunction encodeOriginalScopes(scopes) {\n    const writer = new StringWriter();\n    for (let i = 0; i < scopes.length;) {\n        i = _encodeOriginalScopes(scopes, i, writer, [0]);\n    }\n    return writer.flush();\n}\nfunction _encodeOriginalScopes(scopes, index, writer, state) {\n    const scope = scopes[index];\n    const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope;\n    if (index > 0)\n        writer.write(comma);\n    state[0] = encodeInteger(writer, startLine, state[0]);\n    encodeInteger(writer, startColumn, 0);\n    encodeInteger(writer, kind, 0);\n    const fields = scope.length === 6 ? 0b0001 : 0;\n    encodeInteger(writer, fields, 0);\n    if (scope.length === 6)\n        encodeInteger(writer, scope[5], 0);\n    for (const v of vars) {\n        encodeInteger(writer, v, 0);\n    }\n    for (index++; index < scopes.length;) {\n        const next = scopes[index];\n        const { 0: l, 1: c } = next;\n        if (l > endLine || (l === endLine && c >= endColumn)) {\n            break;\n        }\n        index = _encodeOriginalScopes(scopes, index, writer, state);\n    }\n    writer.write(comma);\n    state[0] = encodeInteger(writer, endLine, state[0]);\n    encodeInteger(writer, endColumn, 0);\n    return index;\n}\nfunction decodeGeneratedRanges(input) {\n    const { length } = input;\n    const reader = new StringReader(input);\n    const ranges = [];\n    const stack = [];\n    let genLine = 0;\n    let definitionSourcesIndex = 0;\n    let definitionScopeIndex = 0;\n    let callsiteSourcesIndex = 0;\n    let callsiteLine = 0;\n    let callsiteColumn = 0;\n    let bindingLine = 0;\n    let bindingColumn = 0;\n    do {\n        const semi = reader.indexOf(';');\n        let genColumn = 0;\n        for (; reader.pos < semi; reader.pos++) {\n            genColumn = decodeInteger(reader, genColumn);\n            if (!hasMoreVlq(reader, semi)) {\n                const last = stack.pop();\n                last[2] = genLine;\n                last[3] = genColumn;\n                continue;\n            }\n            const fields = decodeInteger(reader, 0);\n            const hasDefinition = fields & 0b0001;\n            const hasCallsite = fields & 0b0010;\n            const hasScope = fields & 0b0100;\n            let callsite = null;\n            let bindings = EMPTY;\n            let range;\n            if (hasDefinition) {\n                const defSourcesIndex = decodeInteger(reader, definitionSourcesIndex);\n                definitionScopeIndex = decodeInteger(reader, definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0);\n                definitionSourcesIndex = defSourcesIndex;\n                range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex];\n            }\n            else {\n                range = [genLine, genColumn, 0, 0];\n            }\n            range.isScope = !!hasScope;\n            if (hasCallsite) {\n                const prevCsi = callsiteSourcesIndex;\n                const prevLine = callsiteLine;\n                callsiteSourcesIndex = decodeInteger(reader, callsiteSourcesIndex);\n                const sameSource = prevCsi === callsiteSourcesIndex;\n                callsiteLine = decodeInteger(reader, sameSource ? callsiteLine : 0);\n                callsiteColumn = decodeInteger(reader, sameSource && prevLine === callsiteLine ? callsiteColumn : 0);\n                callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn];\n            }\n            range.callsite = callsite;\n            if (hasMoreVlq(reader, semi)) {\n                bindings = [];\n                do {\n                    bindingLine = genLine;\n                    bindingColumn = genColumn;\n                    const expressionsCount = decodeInteger(reader, 0);\n                    let expressionRanges;\n                    if (expressionsCount < -1) {\n                        expressionRanges = [[decodeInteger(reader, 0)]];\n                        for (let i = -1; i > expressionsCount; i--) {\n                            const prevBl = bindingLine;\n                            bindingLine = decodeInteger(reader, bindingLine);\n                            bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0);\n                            const expression = decodeInteger(reader, 0);\n                            expressionRanges.push([expression, bindingLine, bindingColumn]);\n                        }\n                    }\n                    else {\n                        expressionRanges = [[expressionsCount]];\n                    }\n                    bindings.push(expressionRanges);\n                } while (hasMoreVlq(reader, semi));\n            }\n            range.bindings = bindings;\n            ranges.push(range);\n            stack.push(range);\n        }\n        genLine++;\n        reader.pos = semi + 1;\n    } while (reader.pos < length);\n    return ranges;\n}\nfunction encodeGeneratedRanges(ranges) {\n    if (ranges.length === 0)\n        return '';\n    const writer = new StringWriter();\n    for (let i = 0; i < ranges.length;) {\n        i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]);\n    }\n    return writer.flush();\n}\nfunction _encodeGeneratedRanges(ranges, index, writer, state) {\n    const range = ranges[index];\n    const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, isScope, callsite, bindings, } = range;\n    if (state[0] < startLine) {\n        catchupLine(writer, state[0], startLine);\n        state[0] = startLine;\n        state[1] = 0;\n    }\n    else if (index > 0) {\n        writer.write(comma);\n    }\n    state[1] = encodeInteger(writer, range[1], state[1]);\n    const fields = (range.length === 6 ? 0b0001 : 0) | (callsite ? 0b0010 : 0) | (isScope ? 0b0100 : 0);\n    encodeInteger(writer, fields, 0);\n    if (range.length === 6) {\n        const { 4: sourcesIndex, 5: scopesIndex } = range;\n        if (sourcesIndex !== state[2]) {\n            state[3] = 0;\n        }\n        state[2] = encodeInteger(writer, sourcesIndex, state[2]);\n        state[3] = encodeInteger(writer, scopesIndex, state[3]);\n    }\n    if (callsite) {\n        const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite;\n        if (sourcesIndex !== state[4]) {\n            state[5] = 0;\n            state[6] = 0;\n        }\n        else if (callLine !== state[5]) {\n            state[6] = 0;\n        }\n        state[4] = encodeInteger(writer, sourcesIndex, state[4]);\n        state[5] = encodeInteger(writer, callLine, state[5]);\n        state[6] = encodeInteger(writer, callColumn, state[6]);\n    }\n    if (bindings) {\n        for (const binding of bindings) {\n            if (binding.length > 1)\n                encodeInteger(writer, -binding.length, 0);\n            const expression = binding[0][0];\n            encodeInteger(writer, expression, 0);\n            let bindingStartLine = startLine;\n            let bindingStartColumn = startColumn;\n            for (let i = 1; i < binding.length; i++) {\n                const expRange = binding[i];\n                bindingStartLine = encodeInteger(writer, expRange[1], bindingStartLine);\n                bindingStartColumn = encodeInteger(writer, expRange[2], bindingStartColumn);\n                encodeInteger(writer, expRange[0], 0);\n            }\n        }\n    }\n    for (index++; index < ranges.length;) {\n        const next = ranges[index];\n        const { 0: l, 1: c } = next;\n        if (l > endLine || (l === endLine && c >= endColumn)) {\n            break;\n        }\n        index = _encodeGeneratedRanges(ranges, index, writer, state);\n    }\n    if (state[0] < endLine) {\n        catchupLine(writer, state[0], endLine);\n        state[0] = endLine;\n        state[1] = 0;\n    }\n    else {\n        writer.write(comma);\n    }\n    state[1] = encodeInteger(writer, endColumn, state[1]);\n    return index;\n}\nfunction catchupLine(writer, lastLine, line) {\n    do {\n        writer.write(semicolon);\n    } while (++lastLine < line);\n}\nfunction decode(mappings) {\n    const { length } = mappings;\n    const reader = new StringReader(mappings);\n    const decoded = [];\n    let genColumn = 0;\n    let sourcesIndex = 0;\n    let sourceLine = 0;\n    let sourceColumn = 0;\n    let namesIndex = 0;\n    do {\n        const semi = reader.indexOf(';');\n        const line = [];\n        let sorted = true;\n        let lastCol = 0;\n        genColumn = 0;\n        while (reader.pos < semi) {\n            let seg;\n            genColumn = decodeInteger(reader, genColumn);\n            if (genColumn < lastCol)\n                sorted = false;\n            lastCol = genColumn;\n            if (hasMoreVlq(reader, semi)) {\n                sourcesIndex = decodeInteger(reader, sourcesIndex);\n                sourceLine = decodeInteger(reader, sourceLine);\n                sourceColumn = decodeInteger(reader, sourceColumn);\n                if (hasMoreVlq(reader, semi)) {\n                    namesIndex = decodeInteger(reader, namesIndex);\n                    seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];\n                }\n                else {\n                    seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];\n                }\n            }\n            else {\n                seg = [genColumn];\n            }\n            line.push(seg);\n            reader.pos++;\n        }\n        if (!sorted)\n            sort(line);\n        decoded.push(line);\n        reader.pos = semi + 1;\n    } while (reader.pos <= length);\n    return decoded;\n}\nfunction sort(line) {\n    line.sort(sortComparator);\n}\nfunction sortComparator(a, b) {\n    return a[0] - b[0];\n}\nfunction encode(decoded) {\n    const writer = new StringWriter();\n    let sourcesIndex = 0;\n    let sourceLine = 0;\n    let sourceColumn = 0;\n    let namesIndex = 0;\n    for (let i = 0; i < decoded.length; i++) {\n        const line = decoded[i];\n        if (i > 0)\n            writer.write(semicolon);\n        if (line.length === 0)\n            continue;\n        let genColumn = 0;\n        for (let j = 0; j < line.length; j++) {\n            const segment = line[j];\n            if (j > 0)\n                writer.write(comma);\n            genColumn = encodeInteger(writer, segment[0], genColumn);\n            if (segment.length === 1)\n                continue;\n            sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);\n            sourceLine = encodeInteger(writer, segment[2], sourceLine);\n            sourceColumn = encodeInteger(writer, segment[3], sourceColumn);\n            if (segment.length === 4)\n                continue;\n            namesIndex = encodeInteger(writer, segment[4], namesIndex);\n        }\n    }\n    return writer.flush();\n}\n//# sourceMappingURL=sourcemap-codec.mjs.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* @jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.decode = decode;\n    exports.decodeGeneratedRanges = decodeGeneratedRanges;\n    exports.decodeOriginalScopes = decodeOriginalScopes;\n    exports.encode = encode;\n    exports.encodeGeneratedRanges = encodeGeneratedRanges;\n    exports.encodeOriginalScopes = encodeOriginalScopes;\n    const comma = ','.charCodeAt(0);\n    const semicolon = ';'.charCodeAt(0);\n    const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n    const intToChar = new Uint8Array(64); // 64 possible chars.\n    const charToInt = new Uint8Array(128); // z is 122 in ASCII\n    for (let i = 0; i < chars.length; i++) {\n        const c = chars.charCodeAt(i);\n        intToChar[i] = c;\n        charToInt[c] = i;\n    }\n    function decodeInteger(reader, relative) {\n        let value = 0;\n        let shift = 0;\n        let integer = 0;\n        do {\n            const c = reader.next();\n            integer = charToInt[c];\n            value |= (integer & 31) << shift;\n            shift += 5;\n        } while (integer & 32);\n        const shouldNegate = value & 1;\n        value >>>= 1;\n        if (shouldNegate) {\n            value = -0x80000000 | -value;\n        }\n        return relative + value;\n    }\n    function encodeInteger(builder, num, relative) {\n        let delta = num - relative;\n        delta = delta < 0 ? (-delta << 1) | 1 : delta << 1;\n        do {\n            let clamped = delta & 0b011111;\n            delta >>>= 5;\n            if (delta > 0)\n                clamped |= 0b100000;\n            builder.write(intToChar[clamped]);\n        } while (delta > 0);\n        return num;\n    }\n    function hasMoreVlq(reader, max) {\n        if (reader.pos >= max)\n            return false;\n        return reader.peek() !== comma;\n    }\n    const bufLength = 1024 * 16;\n    // Provide a fallback for older environments.\n    const td = typeof TextDecoder !== 'undefined'\n        ? /* #__PURE__ */ new TextDecoder()\n        : typeof Buffer !== 'undefined'\n            ? {\n                decode(buf) {\n                    const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);\n                    return out.toString();\n                },\n            }\n            : {\n                decode(buf) {\n                    let out = '';\n                    for (let i = 0; i < buf.length; i++) {\n                        out += String.fromCharCode(buf[i]);\n                    }\n                    return out;\n                },\n            };\n    class StringWriter {\n        constructor() {\n            this.pos = 0;\n            this.out = '';\n            this.buffer = new Uint8Array(bufLength);\n        }\n        write(v) {\n            const { buffer } = this;\n            buffer[this.pos++] = v;\n            if (this.pos === bufLength) {\n                this.out += td.decode(buffer);\n                this.pos = 0;\n            }\n        }\n        flush() {\n            const { buffer, out, pos } = this;\n            return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;\n        }\n    }\n    class StringReader {\n        constructor(buffer) {\n            this.pos = 0;\n            this.buffer = buffer;\n        }\n        next() {\n            return this.buffer.charCodeAt(this.pos++);\n        }\n        peek() {\n            return this.buffer.charCodeAt(this.pos);\n        }\n        indexOf(char) {\n            const { buffer, pos } = this;\n            const idx = buffer.indexOf(char, pos);\n            return idx === -1 ? buffer.length : idx;\n        }\n    }\n    const EMPTY = [];\n    function decodeOriginalScopes(input) {\n        const { length } = input;\n        const reader = new StringReader(input);\n        const scopes = [];\n        const stack = [];\n        let line = 0;\n        for (; reader.pos < length; reader.pos++) {\n            line = decodeInteger(reader, line);\n            const column = decodeInteger(reader, 0);\n            if (!hasMoreVlq(reader, length)) {\n                const last = stack.pop();\n                last[2] = line;\n                last[3] = column;\n                continue;\n            }\n            const kind = decodeInteger(reader, 0);\n            const fields = decodeInteger(reader, 0);\n            const hasName = fields & 0b0001;\n            const scope = (hasName ? [line, column, 0, 0, kind, decodeInteger(reader, 0)] : [line, column, 0, 0, kind]);\n            let vars = EMPTY;\n            if (hasMoreVlq(reader, length)) {\n                vars = [];\n                do {\n                    const varsIndex = decodeInteger(reader, 0);\n                    vars.push(varsIndex);\n                } while (hasMoreVlq(reader, length));\n            }\n            scope.vars = vars;\n            scopes.push(scope);\n            stack.push(scope);\n        }\n        return scopes;\n    }\n    function encodeOriginalScopes(scopes) {\n        const writer = new StringWriter();\n        for (let i = 0; i < scopes.length;) {\n            i = _encodeOriginalScopes(scopes, i, writer, [0]);\n        }\n        return writer.flush();\n    }\n    function _encodeOriginalScopes(scopes, index, writer, state) {\n        const scope = scopes[index];\n        const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope;\n        if (index > 0)\n            writer.write(comma);\n        state[0] = encodeInteger(writer, startLine, state[0]);\n        encodeInteger(writer, startColumn, 0);\n        encodeInteger(writer, kind, 0);\n        const fields = scope.length === 6 ? 0b0001 : 0;\n        encodeInteger(writer, fields, 0);\n        if (scope.length === 6)\n            encodeInteger(writer, scope[5], 0);\n        for (const v of vars) {\n            encodeInteger(writer, v, 0);\n        }\n        for (index++; index < scopes.length;) {\n            const next = scopes[index];\n            const { 0: l, 1: c } = next;\n            if (l > endLine || (l === endLine && c >= endColumn)) {\n                break;\n            }\n            index = _encodeOriginalScopes(scopes, index, writer, state);\n        }\n        writer.write(comma);\n        state[0] = encodeInteger(writer, endLine, state[0]);\n        encodeInteger(writer, endColumn, 0);\n        return index;\n    }\n    function decodeGeneratedRanges(input) {\n        const { length } = input;\n        const reader = new StringReader(input);\n        const ranges = [];\n        const stack = [];\n        let genLine = 0;\n        let definitionSourcesIndex = 0;\n        let definitionScopeIndex = 0;\n        let callsiteSourcesIndex = 0;\n        let callsiteLine = 0;\n        let callsiteColumn = 0;\n        let bindingLine = 0;\n        let bindingColumn = 0;\n        do {\n            const semi = reader.indexOf(';');\n            let genColumn = 0;\n            for (; reader.pos < semi; reader.pos++) {\n                genColumn = decodeInteger(reader, genColumn);\n                if (!hasMoreVlq(reader, semi)) {\n                    const last = stack.pop();\n                    last[2] = genLine;\n                    last[3] = genColumn;\n                    continue;\n                }\n                const fields = decodeInteger(reader, 0);\n                const hasDefinition = fields & 0b0001;\n                const hasCallsite = fields & 0b0010;\n                const hasScope = fields & 0b0100;\n                let callsite = null;\n                let bindings = EMPTY;\n                let range;\n                if (hasDefinition) {\n                    const defSourcesIndex = decodeInteger(reader, definitionSourcesIndex);\n                    definitionScopeIndex = decodeInteger(reader, definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0);\n                    definitionSourcesIndex = defSourcesIndex;\n                    range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex];\n                }\n                else {\n                    range = [genLine, genColumn, 0, 0];\n                }\n                range.isScope = !!hasScope;\n                if (hasCallsite) {\n                    const prevCsi = callsiteSourcesIndex;\n                    const prevLine = callsiteLine;\n                    callsiteSourcesIndex = decodeInteger(reader, callsiteSourcesIndex);\n                    const sameSource = prevCsi === callsiteSourcesIndex;\n                    callsiteLine = decodeInteger(reader, sameSource ? callsiteLine : 0);\n                    callsiteColumn = decodeInteger(reader, sameSource && prevLine === callsiteLine ? callsiteColumn : 0);\n                    callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn];\n                }\n                range.callsite = callsite;\n                if (hasMoreVlq(reader, semi)) {\n                    bindings = [];\n                    do {\n                        bindingLine = genLine;\n                        bindingColumn = genColumn;\n                        const expressionsCount = decodeInteger(reader, 0);\n                        let expressionRanges;\n                        if (expressionsCount < -1) {\n                            expressionRanges = [[decodeInteger(reader, 0)]];\n                            for (let i = -1; i > expressionsCount; i--) {\n                                const prevBl = bindingLine;\n                                bindingLine = decodeInteger(reader, bindingLine);\n                                bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0);\n                                const expression = decodeInteger(reader, 0);\n                                expressionRanges.push([expression, bindingLine, bindingColumn]);\n                            }\n                        }\n                        else {\n                            expressionRanges = [[expressionsCount]];\n                        }\n                        bindings.push(expressionRanges);\n                    } while (hasMoreVlq(reader, semi));\n                }\n                range.bindings = bindings;\n                ranges.push(range);\n                stack.push(range);\n            }\n            genLine++;\n            reader.pos = semi + 1;\n        } while (reader.pos < length);\n        return ranges;\n    }\n    function encodeGeneratedRanges(ranges) {\n        if (ranges.length === 0)\n            return '';\n        const writer = new StringWriter();\n        for (let i = 0; i < ranges.length;) {\n            i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]);\n        }\n        return writer.flush();\n    }\n    function _encodeGeneratedRanges(ranges, index, writer, state) {\n        const range = ranges[index];\n        const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, isScope, callsite, bindings, } = range;\n        if (state[0] < startLine) {\n            catchupLine(writer, state[0], startLine);\n            state[0] = startLine;\n            state[1] = 0;\n        }\n        else if (index > 0) {\n            writer.write(comma);\n        }\n        state[1] = encodeInteger(writer, range[1], state[1]);\n        const fields = (range.length === 6 ? 0b0001 : 0) | (callsite ? 0b0010 : 0) | (isScope ? 0b0100 : 0);\n        encodeInteger(writer, fields, 0);\n        if (range.length === 6) {\n            const { 4: sourcesIndex, 5: scopesIndex } = range;\n            if (sourcesIndex !== state[2]) {\n                state[3] = 0;\n            }\n            state[2] = encodeInteger(writer, sourcesIndex, state[2]);\n            state[3] = encodeInteger(writer, scopesIndex, state[3]);\n        }\n        if (callsite) {\n            const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite;\n            if (sourcesIndex !== state[4]) {\n                state[5] = 0;\n                state[6] = 0;\n            }\n            else if (callLine !== state[5]) {\n                state[6] = 0;\n            }\n            state[4] = encodeInteger(writer, sourcesIndex, state[4]);\n            state[5] = encodeInteger(writer, callLine, state[5]);\n            state[6] = encodeInteger(writer, callColumn, state[6]);\n        }\n        if (bindings) {\n            for (const binding of bindings) {\n                if (binding.length > 1)\n                    encodeInteger(writer, -binding.length, 0);\n                const expression = binding[0][0];\n                encodeInteger(writer, expression, 0);\n                let bindingStartLine = startLine;\n                let bindingStartColumn = startColumn;\n                for (let i = 1; i < binding.length; i++) {\n                    const expRange = binding[i];\n                    bindingStartLine = encodeInteger(writer, expRange[1], bindingStartLine);\n                    bindingStartColumn = encodeInteger(writer, expRange[2], bindingStartColumn);\n                    encodeInteger(writer, expRange[0], 0);\n                }\n            }\n        }\n        for (index++; index < ranges.length;) {\n            const next = ranges[index];\n            const { 0: l, 1: c } = next;\n            if (l > endLine || (l === endLine && c >= endColumn)) {\n                break;\n            }\n            index = _encodeGeneratedRanges(ranges, index, writer, state);\n        }\n        if (state[0] < endLine) {\n            catchupLine(writer, state[0], endLine);\n            state[0] = endLine;\n            state[1] = 0;\n        }\n        else {\n            writer.write(comma);\n        }\n        state[1] = encodeInteger(writer, endColumn, state[1]);\n        return index;\n    }\n    function catchupLine(writer, lastLine, line) {\n        do {\n            writer.write(semicolon);\n        } while (++lastLine < line);\n    }\n    function decode(mappings) {\n        const { length } = mappings;\n        const reader = new StringReader(mappings);\n        const decoded = [];\n        let genColumn = 0;\n        let sourcesIndex = 0;\n        let sourceLine = 0;\n        let sourceColumn = 0;\n        let namesIndex = 0;\n        do {\n            const semi = reader.indexOf(';');\n            const line = [];\n            let sorted = true;\n            let lastCol = 0;\n            genColumn = 0;\n            while (reader.pos < semi) {\n                let seg;\n                genColumn = decodeInteger(reader, genColumn);\n                if (genColumn < lastCol)\n                    sorted = false;\n                lastCol = genColumn;\n                if (hasMoreVlq(reader, semi)) {\n                    sourcesIndex = decodeInteger(reader, sourcesIndex);\n                    sourceLine = decodeInteger(reader, sourceLine);\n                    sourceColumn = decodeInteger(reader, sourceColumn);\n                    if (hasMoreVlq(reader, semi)) {\n                        namesIndex = decodeInteger(reader, namesIndex);\n                        seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];\n                    }\n                    else {\n                        seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];\n                    }\n                }\n                else {\n                    seg = [genColumn];\n                }\n                line.push(seg);\n                reader.pos++;\n            }\n            if (!sorted)\n                sort(line);\n            decoded.push(line);\n            reader.pos = semi + 1;\n        } while (reader.pos <= length);\n        return decoded;\n    }\n    function sort(line) {\n        line.sort(sortComparator);\n    }\n    function sortComparator(a, b) {\n        return a[0] - b[0];\n    }\n    function encode(decoded) {\n        const writer = new StringWriter();\n        let sourcesIndex = 0;\n        let sourceLine = 0;\n        let sourceColumn = 0;\n        let namesIndex = 0;\n        for (let i = 0; i < decoded.length; i++) {\n            const line = decoded[i];\n            if (i > 0)\n                writer.write(semicolon);\n            if (line.length === 0)\n                continue;\n            let genColumn = 0;\n            for (let j = 0; j < line.length; j++) {\n                const segment = line[j];\n                if (j > 0)\n                    writer.write(comma);\n                genColumn = encodeInteger(writer, segment[0], genColumn);\n                if (segment.length === 1)\n                    continue;\n                sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);\n                sourceLine = encodeInteger(writer, segment[2], sourceLine);\n                sourceColumn = encodeInteger(writer, segment[3], sourceColumn);\n                if (segment.length === 4)\n                    continue;\n                namesIndex = encodeInteger(writer, segment[4], namesIndex);\n            }\n        }\n        return writer.flush();\n    }\n}\n","min_source":"function _(t,e,n,o,s){o(),n.decode=function(t){const{length:e}=t,n=new a(t),o=[];let s=0,r=0,c=0,i=0,f=0;do{const t=n.indexOf(\";\"),e=[];let l=!0,h=0;for(s=0;n.pos<t;){let o;s=u(n,s),s<h&&(l=!1),h=s,d(n,t)?(r=u(n,r),c=u(n,c),i=u(n,i),d(n,t)?(f=u(n,f),o=[s,r,c,i,f]):o=[s,r,c,i]):o=[s],e.push(o),n.pos++}l||A(e),o.push(e),n.pos=t+1}while(n.pos<=e);return o},n.decodeGeneratedRanges=function(t){const{length:e}=t,n=new a(t),o=[],s=[];let r=0,c=0,i=0,f=0,l=0,h=0,p=0,g=0;do{const t=n.indexOf(\";\");let e=0;for(;n.pos<t;n.pos++){if(e=u(n,e),!d(n,t)){const t=s.pop();t[2]=r,t[3]=e;continue}const a=u(n,0),b=2&a,x=4&a;let y,A=null,C=w;if(1&a){const t=u(n,c);i=u(n,c===t?i:0),c=t,y=[r,e,0,0,t,i]}else y=[r,e,0,0];if(y.isScope=!!x,b){const t=f,e=l;f=u(n,f);const o=t===f;l=u(n,o?l:0),h=u(n,o&&e===l?h:0),A=[f,l,h]}if(y.callsite=A,d(n,t)){C=[];do{p=r,g=e;const t=u(n,0);let o;if(t<-1){o=[[u(n,0)]];for(let e=-1;e>t;e--){const t=p;p=u(n,p),g=u(n,p===t?g:0);const e=u(n,0);o.push([e,p,g])}}else o=[[t]];C.push(o)}while(d(n,t))}y.bindings=C,o.push(y),s.push(y)}r++,n.pos=t+1}while(n.pos<e);return o},n.decodeOriginalScopes=function(t){const{length:e}=t,n=new a(t),o=[],s=[];let r=0;for(;n.pos<e;n.pos++){r=u(n,r);const t=u(n,0);if(!d(n,e)){const e=s.pop();e[2]=r,e[3]=t;continue}const c=u(n,0),i=1&u(n,0)?[r,t,0,0,c,u(n,0)]:[r,t,0,0,c];let f=w;if(d(n,e)){f=[];do{const t=u(n,0);f.push(t)}while(d(n,e))}i.vars=f,o.push(i),s.push(i)}return o},n.encode=function(t){const e=new g;let n=0,o=0,s=0,i=0;for(let f=0;f<t.length;f++){const l=t[f];if(f>0&&e.write(c),0===l.length)continue;let u=0;for(let t=0;t<l.length;t++){const c=l[t];t>0&&e.write(r),u=h(e,c[0],u),1!==c.length&&(n=h(e,c[1],n),o=h(e,c[2],o),s=h(e,c[3],s),4!==c.length&&(i=h(e,c[4],i)))}}return e.flush()},n.encodeGeneratedRanges=function(t){if(0===t.length)return\"\";const e=new g;for(let n=0;n<t.length;)n=x(t,n,e,[0,0,0,0,0,0,0]);return e.flush()},n.encodeOriginalScopes=function(t){const e=new g;for(let n=0;n<t.length;)n=b(t,n,e,[0]);return e.flush()};const r=\",\".charCodeAt(0),c=\";\".charCodeAt(0),i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",f=new Uint8Array(64),l=new Uint8Array(128);for(let t=0;t<64;t++){const e=i.charCodeAt(t);f[t]=e,l[e]=t}function u(t,e){let n=0,o=0,s=0;do{const e=t.next();s=l[e],n|=(31&s)<<o,o+=5}while(32&s);const r=1&n;return n>>>=1,r&&(n=-2147483648|-n),e+n}function h(t,e,n){let o=e-n;o=o<0?-o<<1|1:o<<1;do{let e=31&o;o>>>=5,o>0&&(e|=32),t.write(f[e])}while(o>0);return e}function d(t,e){return!(t.pos>=e)&&t.peek()!==r}const p=\"undefined\"!=typeof TextDecoder?new TextDecoder:\"undefined\"!=typeof Buffer?{decode:t=>Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}:{decode(t){let e=\"\";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}};class g{constructor(){this.pos=0,this.out=\"\",this.buffer=new Uint8Array(16384)}write(t){const{buffer:e}=this;e[this.pos++]=t,16384===this.pos&&(this.out+=p.decode(e),this.pos=0)}flush(){const{buffer:t,out:e,pos:n}=this;return n>0?e+p.decode(t.subarray(0,n)):e}}class a{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:e,pos:n}=this,o=e.indexOf(t,n);return-1===o?e.length:o}}const w=[];function b(t,e,n,o){const s=t[e],{0:c,1:i,2:f,3:l,4:u,vars:d}=s;e>0&&n.write(r),o[0]=h(n,c,o[0]),h(n,i,0),h(n,u,0);h(n,6===s.length?1:0,0),6===s.length&&h(n,s[5],0);for(const t of d)h(n,t,0);for(e++;e<t.length;){const s=t[e],{0:r,1:c}=s;if(r>f||r===f&&c>=l)break;e=b(t,e,n,o)}return n.write(r),o[0]=h(n,f,o[0]),h(n,l,0),e}function x(t,e,n,o){const s=t[e],{0:c,1:i,2:f,3:l,isScope:u,callsite:d,bindings:p}=s;o[0]<c?(y(n,o[0],c),o[0]=c,o[1]=0):e>0&&n.write(r),o[1]=h(n,s[1],o[1]);if(h(n,(6===s.length?1:0)|(d?2:0)|(u?4:0),0),6===s.length){const{4:t,5:e}=s;t!==o[2]&&(o[3]=0),o[2]=h(n,t,o[2]),o[3]=h(n,e,o[3])}if(d){const{0:t,1:e,2:r}=s.callsite;t!==o[4]?(o[5]=0,o[6]=0):e!==o[5]&&(o[6]=0),o[4]=h(n,t,o[4]),o[5]=h(n,e,o[5]),o[6]=h(n,r,o[6])}if(p)for(const t of p){t.length>1&&h(n,-t.length,0);h(n,t[0][0],0);let e=c,o=i;for(let s=1;s<t.length;s++){const r=t[s];e=h(n,r[1],e),o=h(n,r[2],o),h(n,r[0],0)}}for(e++;e<t.length;){const s=t[e],{0:r,1:c}=s;if(r>f||r===f&&c>=l)break;e=x(t,e,n,o)}return o[0]<f?(y(n,o[0],f),o[0]=f,o[1]=0):n.write(r),o[1]=h(n,l,o[1]),e}function y(t,e,n){do{t.write(c)}while(++e<n)}function A(t){t.sort(C)}function C(t,e){return t[0]-e[0]}}\n//# sourceMappingURL=sourcemap-codec.min.js.map","min_map":"{\"version\":3,\"file\":\"sourcemap-codec.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"decode\",\"mappings\",\"length\",\"reader\",\"StringReader\",\"decoded\",\"genColumn\",\"sourcesIndex\",\"sourceLine\",\"sourceColumn\",\"namesIndex\",\"semi\",\"indexOf\",\"line\",\"sorted\",\"lastCol\",\"pos\",\"seg\",\"decodeInteger\",\"hasMoreVlq\",\"push\",\"sort\",\"decodeGeneratedRanges\",\"input\",\"ranges\",\"stack\",\"genLine\",\"definitionSourcesIndex\",\"definitionScopeIndex\",\"callsiteSourcesIndex\",\"callsiteLine\",\"callsiteColumn\",\"bindingLine\",\"bindingColumn\",\"last\",\"pop\",\"fields\",\"hasCallsite\",\"hasScope\",\"range\",\"callsite\",\"bindings\",\"EMPTY\",\"defSourcesIndex\",\"isScope\",\"prevCsi\",\"prevLine\",\"sameSource\",\"expressionsCount\",\"expressionRanges\",\"i\",\"prevBl\",\"expression\",\"decodeOriginalScopes\",\"scopes\",\"column\",\"kind\",\"scope\",\"vars\",\"varsIndex\",\"encode\",\"writer\",\"StringWriter\",\"write\",\"semicolon\",\"j\",\"segment\",\"comma\",\"encodeInteger\",\"flush\",\"encodeGeneratedRanges\",\"_encodeGeneratedRanges\",\"encodeOriginalScopes\",\"_encodeOriginalScopes\",\"charCodeAt\",\"chars\",\"intToChar\",\"Uint8Array\",\"charToInt\",\"c\",\"relative\",\"value\",\"shift\",\"integer\",\"next\",\"shouldNegate\",\"builder\",\"num\",\"delta\",\"clamped\",\"max\",\"peek\",\"td\",\"TextDecoder\",\"Buffer\",\"buf\",\"from\",\"buffer\",\"byteOffset\",\"byteLength\",\"toString\",\"out\",\"String\",\"fromCharCode\",\"constructor\",\"this\",\"v\",\"subarray\",\"char\",\"idx\",\"index\",\"state\",\"startLine\",\"startColumn\",\"endLine\",\"endColumn\",\"l\",\"catchupLine\",\"scopesIndex\",\"callLine\",\"callColumn\",\"binding\",\"bindingStartLine\",\"bindingStartColumn\",\"expRange\",\"lastLine\",\"sortComparator\",\"a\",\"b\"],\"sources\":[\"0\"],\"mappings\":\"AAA2D,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACxGD,IACAD,EAAQG,OAsVR,SAAgBC,GACZ,MAAMC,OAAEA,GAAWD,EACbE,EAAS,IAAIC,EAAaH,GAC1BI,EAAU,GAChB,IAAIC,EAAY,EACZC,EAAe,EACfC,EAAa,EACbC,EAAe,EACfC,EAAa,EACjB,EAAG,CACC,MAAMC,EAAOR,EAAOS,QAAQ,KACtBC,EAAO,GACb,IAAIC,GAAS,EACTC,EAAU,EAEd,IADAT,EAAY,EACLH,EAAOa,IAAML,GAAM,CACtB,IAAIM,EACJX,EAAYY,EAAcf,EAAQG,GAC9BA,EAAYS,IACZD,GAAS,GACbC,EAAUT,EACNa,EAAWhB,EAAQQ,IACnBJ,EAAeW,EAAcf,EAAQI,GACrCC,EAAaU,EAAcf,EAAQK,GACnCC,EAAeS,EAAcf,EAAQM,GACjCU,EAAWhB,EAAQQ,IACnBD,EAAaQ,EAAcf,EAAQO,GACnCO,EAAM,CAACX,EAAWC,EAAcC,EAAYC,EAAcC,IAG1DO,EAAM,CAACX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GAAYE,IAAMF,GAAWnC,GAAKoC,EACtC,MAEJL,EAAQvC,EAAuB/C,EAAQsF,EAAOjD,EAAQkD,EAC1D,CAUA,OATIA,EAAM,GAAKG,GACXG,EAAYxD,EAAQkD,EAAM,GAAIG,GAC9BH,EAAM,GAAKG,EACXH,EAAM,GAAK,GAGXlD,EAAOE,MAAMI,GAEjB4C,EAAM,GAAK3C,EAAcP,EAAQsD,EAAWJ,EAAM,IAC3CD,CACX,CACA,SAASO,EAAYxD,EAAQgE,EAAUhH,GACnC,GACIgD,EAAOE,MAAMC,WACN6D,EAAWhH,EAC1B,CA+CA,SAASQ,EAAKR,GACVA,EAAKQ,KAAKyG,EACd,CACA,SAASA,EAAeC,EAAGC,GACvB,OAAOD,EAAE,GAAKC,EAAE,EACpB,CA+BJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"@jridgewell/trace-mapping/dist/trace-mapping.mjs","resolution":"ESM","id":"ed38200738","hash":"ed3820073847b25137a1227b7341c8f3f93287b974f6b6f6c1f224b57d0615e1","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TraceMap = exports.LEAST_UPPER_BOUND = exports.GREATEST_LOWER_BOUND = exports.AnyMap = void 0;\nexports.allGeneratedPositionsFor = allGeneratedPositionsFor;\nexports.decodedMap = decodedMap;\nexports.decodedMappings = decodedMappings;\nexports.eachMapping = eachMapping;\nexports.encodedMap = encodedMap;\nexports.encodedMappings = encodedMappings;\nexports.generatedPositionFor = generatedPositionFor;\nexports.isIgnored = isIgnored;\nexports.originalPositionFor = originalPositionFor;\nexports.presortedDecodedMap = presortedDecodedMap;\nexports.sourceContentFor = sourceContentFor;\nexports.traceSegment = traceSegment;\nconst tslib_1 = require(\"tslib\");\nconst sourcemap_codec_1 = require(\"@jridgewell/sourcemap-codec\");\nconst resolve_uri_1 = tslib_1.__importDefault(require(\"@jridgewell/resolve-uri\"));\nfunction resolve(input, base) {\n    // The base is always treated as a directory, if it's not empty.\n    // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327\n    // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401\n    if (base && !base.endsWith('/'))\n        base += '/';\n    return (0, resolve_uri_1.default)(input, base);\n}\n/**\n * Removes everything after the last \"/\", but leaves the slash.\n */\nfunction stripFilename(path) {\n    if (!path)\n        return '';\n    const index = path.lastIndexOf('/');\n    return path.slice(0, index + 1);\n}\nconst COLUMN = 0;\nconst SOURCES_INDEX = 1;\nconst SOURCE_LINE = 2;\nconst SOURCE_COLUMN = 3;\nconst NAMES_INDEX = 4;\nconst REV_GENERATED_LINE = 1;\nconst REV_GENERATED_COLUMN = 2;\nfunction maybeSort(mappings, owned) {\n    const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);\n    if (unsortedIndex === mappings.length)\n        return mappings;\n    // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If\n    // not, we do not want to modify the consumer's input array.\n    if (!owned)\n        mappings = mappings.slice();\n    for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) {\n        mappings[i] = sortSegments(mappings[i], owned);\n    }\n    return mappings;\n}\nfunction nextUnsortedSegmentLine(mappings, start) {\n    for (let i = start; i < mappings.length; i++) {\n        if (!isSorted(mappings[i]))\n            return i;\n    }\n    return mappings.length;\n}\nfunction isSorted(line) {\n    for (let j = 1; j < line.length; j++) {\n        if (line[j][COLUMN] < line[j - 1][COLUMN]) {\n            return false;\n        }\n    }\n    return true;\n}\nfunction sortSegments(line, owned) {\n    if (!owned)\n        line = line.slice();\n    return line.sort(sortComparator);\n}\nfunction sortComparator(a, b) {\n    return a[COLUMN] - b[COLUMN];\n}\nlet found = false;\n/**\n * A binary search implementation that returns the index if a match is found.\n * If no match is found, then the left-index (the index associated with the item that comes just\n * before the desired index) is returned. To maintain proper sort order, a splice would happen at\n * the next index:\n *\n * ```js\n * const array = [1, 3];\n * const needle = 2;\n * const index = binarySearch(array, needle, (item, needle) => item - needle);\n *\n * assert.equal(index, 0);\n * array.splice(index + 1, 0, needle);\n * assert.deepEqual(array, [1, 2, 3]);\n * ```\n */\nfunction binarySearch(haystack, needle, low, high) {\n    while (low <= high) {\n        const mid = low + ((high - low) >> 1);\n        const cmp = haystack[mid][COLUMN] - needle;\n        if (cmp === 0) {\n            found = true;\n            return mid;\n        }\n        if (cmp < 0) {\n            low = mid + 1;\n        }\n        else {\n            high = mid - 1;\n        }\n    }\n    found = false;\n    return low - 1;\n}\nfunction upperBound(haystack, needle, index) {\n    for (let i = index + 1; i < haystack.length; index = i++) {\n        if (haystack[i][COLUMN] !== needle)\n            break;\n    }\n    return index;\n}\nfunction lowerBound(haystack, needle, index) {\n    for (let i = index - 1; i >= 0; index = i--) {\n        if (haystack[i][COLUMN] !== needle)\n            break;\n    }\n    return index;\n}\nfunction memoizedState() {\n    return {\n        lastKey: -1,\n        lastNeedle: -1,\n        lastIndex: -1,\n    };\n}\n/**\n * This overly complicated beast is just to record the last tested line/column and the resulting\n * index, allowing us to skip a few tests if mappings are monotonically increasing.\n */\nfunction memoizedBinarySearch(haystack, needle, state, key) {\n    const { lastKey, lastNeedle, lastIndex } = state;\n    let low = 0;\n    let high = haystack.length - 1;\n    if (key === lastKey) {\n        if (needle === lastNeedle) {\n            found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;\n            return lastIndex;\n        }\n        if (needle >= lastNeedle) {\n            // lastIndex may be -1 if the previous needle was not found.\n            low = lastIndex === -1 ? 0 : lastIndex;\n        }\n        else {\n            high = lastIndex;\n        }\n    }\n    state.lastKey = key;\n    state.lastNeedle = needle;\n    return (state.lastIndex = binarySearch(haystack, needle, low, high));\n}\n// Rebuilds the original source files, with mappings that are ordered by source line/column instead\n// of generated line/column.\nfunction buildBySources(decoded, memos) {\n    const sources = memos.map(buildNullArray);\n    for (let i = 0; i < decoded.length; i++) {\n        const line = decoded[i];\n        for (let j = 0; j < line.length; j++) {\n            const seg = line[j];\n            if (seg.length === 1)\n                continue;\n            const sourceIndex = seg[SOURCES_INDEX];\n            const sourceLine = seg[SOURCE_LINE];\n            const sourceColumn = seg[SOURCE_COLUMN];\n            const originalSource = sources[sourceIndex];\n            const originalLine = (originalSource[sourceLine] || (originalSource[sourceLine] = []));\n            const memo = memos[sourceIndex];\n            // The binary search either found a match, or it found the left-index just before where the\n            // segment should go. Either way, we want to insert after that. And there may be multiple\n            // generated segments associated with an original location, so there may need to move several\n            // indexes before we find where we need to insert.\n            let index = upperBound(originalLine, sourceColumn, memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine));\n            memo.lastIndex = ++index;\n            insert(originalLine, index, [sourceColumn, i, seg[COLUMN]]);\n        }\n    }\n    return sources;\n}\nfunction insert(array, index, value) {\n    for (let i = array.length; i > index; i--) {\n        array[i] = array[i - 1];\n    }\n    array[index] = value;\n}\n// Null arrays allow us to use ordered index keys without actually allocating contiguous memory like\n// a real array. We use a null-prototype object to avoid prototype pollution and deoptimizations.\n// Numeric properties on objects are magically sorted in ascending order by the engine regardless of\n// the insertion order. So, by setting any numeric keys, even out of order, we'll get ascending\n// order when iterating with for-in.\nfunction buildNullArray() {\n    return { __proto__: null };\n}\nconst AnyMap = function (map, mapUrl) {\n    const parsed = parse(map);\n    if (!('sections' in parsed)) {\n        return new TraceMap(parsed, mapUrl);\n    }\n    const mappings = [];\n    const sources = [];\n    const sourcesContent = [];\n    const names = [];\n    const ignoreList = [];\n    recurse(parsed, mapUrl, mappings, sources, sourcesContent, names, ignoreList, 0, 0, Infinity, Infinity);\n    const joined = {\n        version: 3,\n        file: parsed.file,\n        names,\n        sources,\n        sourcesContent,\n        mappings,\n        ignoreList,\n    };\n    return presortedDecodedMap(joined);\n};\nexports.AnyMap = AnyMap;\nfunction parse(map) {\n    return typeof map === 'string' ? JSON.parse(map) : map;\n}\nfunction recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {\n    const { sections } = input;\n    for (let i = 0; i < sections.length; i++) {\n        const { map, offset } = sections[i];\n        let sl = stopLine;\n        let sc = stopColumn;\n        if (i + 1 < sections.length) {\n            const nextOffset = sections[i + 1].offset;\n            sl = Math.min(stopLine, lineOffset + nextOffset.line);\n            if (sl === stopLine) {\n                sc = Math.min(stopColumn, columnOffset + nextOffset.column);\n            }\n            else if (sl < stopLine) {\n                sc = columnOffset + nextOffset.column;\n            }\n        }\n        addSection(map, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset + offset.line, columnOffset + offset.column, sl, sc);\n    }\n}\nfunction addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {\n    const parsed = parse(input);\n    if ('sections' in parsed)\n        return recurse(...arguments);\n    const map = new TraceMap(parsed, mapUrl);\n    const sourcesOffset = sources.length;\n    const namesOffset = names.length;\n    const decoded = decodedMappings(map);\n    const { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map;\n    append(sources, resolvedSources);\n    append(names, map.names);\n    if (contents)\n        append(sourcesContent, contents);\n    else\n        for (let i = 0; i < resolvedSources.length; i++)\n            sourcesContent.push(null);\n    if (ignores)\n        for (let i = 0; i < ignores.length; i++)\n            ignoreList.push(ignores[i] + sourcesOffset);\n    for (let i = 0; i < decoded.length; i++) {\n        const lineI = lineOffset + i;\n        // We can only add so many lines before we step into the range that the next section's map\n        // controls. When we get to the last line, then we'll start checking the segments to see if\n        // they've crossed into the column range. But it may not have any columns that overstep, so we\n        // still need to check that we don't overstep lines, too.\n        if (lineI > stopLine)\n            return;\n        // The out line may already exist in mappings (if we're continuing the line started by a\n        // previous section). Or, we may have jumped ahead several lines to start this section.\n        const out = getLine(mappings, lineI);\n        // On the 0th loop, the section's column offset shifts us forward. On all other lines (since the\n        // map can be multiple lines), it doesn't.\n        const cOffset = i === 0 ? columnOffset : 0;\n        const line = decoded[i];\n        for (let j = 0; j < line.length; j++) {\n            const seg = line[j];\n            const column = cOffset + seg[COLUMN];\n            // If this segment steps into the column range that the next section's map controls, we need\n            // to stop early.\n            if (lineI === stopLine && column >= stopColumn)\n                return;\n            if (seg.length === 1) {\n                out.push([column]);\n                continue;\n            }\n            const sourcesIndex = sourcesOffset + seg[SOURCES_INDEX];\n            const sourceLine = seg[SOURCE_LINE];\n            const sourceColumn = seg[SOURCE_COLUMN];\n            out.push(seg.length === 4\n                ? [column, sourcesIndex, sourceLine, sourceColumn]\n                : [column, sourcesIndex, sourceLine, sourceColumn, namesOffset + seg[NAMES_INDEX]]);\n        }\n    }\n}\nfunction append(arr, other) {\n    for (let i = 0; i < other.length; i++)\n        arr.push(other[i]);\n}\nfunction getLine(arr, index) {\n    for (let i = arr.length; i <= index; i++)\n        arr[i] = [];\n    return arr[index];\n}\nconst LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)';\nconst COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)';\nconst LEAST_UPPER_BOUND = -1;\nexports.LEAST_UPPER_BOUND = LEAST_UPPER_BOUND;\nconst GREATEST_LOWER_BOUND = 1;\nexports.GREATEST_LOWER_BOUND = GREATEST_LOWER_BOUND;\nclass TraceMap {\n    constructor(map, mapUrl) {\n        const isString = typeof map === 'string';\n        if (!isString && map._decodedMemo)\n            return map;\n        const parsed = (isString ? JSON.parse(map) : map);\n        const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;\n        this.version = version;\n        this.file = file;\n        this.names = names || [];\n        this.sourceRoot = sourceRoot;\n        this.sources = sources;\n        this.sourcesContent = sourcesContent;\n        this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined;\n        const from = resolve(sourceRoot || '', stripFilename(mapUrl));\n        this.resolvedSources = sources.map((s) => resolve(s || '', from));\n        const { mappings } = parsed;\n        if (typeof mappings === 'string') {\n            this._encoded = mappings;\n            this._decoded = undefined;\n        }\n        else {\n            this._encoded = undefined;\n            this._decoded = maybeSort(mappings, isString);\n        }\n        this._decodedMemo = memoizedState();\n        this._bySources = undefined;\n        this._bySourceMemos = undefined;\n    }\n}\nexports.TraceMap = TraceMap;\n/**\n * Typescript doesn't allow friend access to private fields, so this just casts the map into a type\n * with public access modifiers.\n */\nfunction cast(map) {\n    return map;\n}\n/**\n * Returns the encoded (VLQ string) form of the SourceMap's mappings field.\n */\nfunction encodedMappings(map) {\n    var _a;\n    var _b;\n    return ((_a = (_b = cast(map))._encoded) !== null && _a !== void 0 ? _a : (_b._encoded = (0, sourcemap_codec_1.encode)(cast(map)._decoded)));\n}\n/**\n * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.\n */\nfunction decodedMappings(map) {\n    var _a;\n    return ((_a = cast(map))._decoded || (_a._decoded = (0, sourcemap_codec_1.decode)(cast(map)._encoded)));\n}\n/**\n * A low-level API to find the segment associated with a generated line/column (think, from a\n * stack trace). Line and column here are 0-based, unlike `originalPositionFor`.\n */\nfunction traceSegment(map, line, column) {\n    const decoded = decodedMappings(map);\n    // It's common for parent source maps to have pointers to lines that have no\n    // mapping (like a \"//# sourceMappingURL=\") at the end of the child file.\n    if (line >= decoded.length)\n        return null;\n    const segments = decoded[line];\n    const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, GREATEST_LOWER_BOUND);\n    return index === -1 ? null : segments[index];\n}\n/**\n * A higher-level API to find the source/line/column associated with a generated line/column\n * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in\n * `source-map` library.\n */\nfunction originalPositionFor(map, needle) {\n    let { line, column, bias } = needle;\n    line--;\n    if (line < 0)\n        throw new Error(LINE_GTR_ZERO);\n    if (column < 0)\n        throw new Error(COL_GTR_EQ_ZERO);\n    const decoded = decodedMappings(map);\n    // It's common for parent source maps to have pointers to lines that have no\n    // mapping (like a \"//# sourceMappingURL=\") at the end of the child file.\n    if (line >= decoded.length)\n        return OMapping(null, null, null, null);\n    const segments = decoded[line];\n    const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);\n    if (index === -1)\n        return OMapping(null, null, null, null);\n    const segment = segments[index];\n    if (segment.length === 1)\n        return OMapping(null, null, null, null);\n    const { names, resolvedSources } = map;\n    return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null);\n}\n/**\n * Finds the generated line/column position of the provided source/line/column source position.\n */\nfunction generatedPositionFor(map, needle) {\n    const { source, line, column, bias } = needle;\n    return generatedPosition(map, source, line, column, bias || GREATEST_LOWER_BOUND, false);\n}\n/**\n * Finds all generated line/column positions of the provided source/line/column source position.\n */\nfunction allGeneratedPositionsFor(map, needle) {\n    const { source, line, column, bias } = needle;\n    // SourceMapConsumer uses LEAST_UPPER_BOUND for some reason, so we follow suit.\n    return generatedPosition(map, source, line, column, bias || LEAST_UPPER_BOUND, true);\n}\n/**\n * Iterates each mapping in generated position order.\n */\nfunction eachMapping(map, cb) {\n    const decoded = decodedMappings(map);\n    const { names, resolvedSources } = map;\n    for (let i = 0; i < decoded.length; i++) {\n        const line = decoded[i];\n        for (let j = 0; j < line.length; j++) {\n            const seg = line[j];\n            const generatedLine = i + 1;\n            const generatedColumn = seg[0];\n            let source = null;\n            let originalLine = null;\n            let originalColumn = null;\n            let name = null;\n            if (seg.length !== 1) {\n                source = resolvedSources[seg[1]];\n                originalLine = seg[2] + 1;\n                originalColumn = seg[3];\n            }\n            if (seg.length === 5)\n                name = names[seg[4]];\n            cb({\n                generatedLine,\n                generatedColumn,\n                source,\n                originalLine,\n                originalColumn,\n                name,\n            });\n        }\n    }\n}\nfunction sourceIndex(map, source) {\n    const { sources, resolvedSources } = map;\n    let index = sources.indexOf(source);\n    if (index === -1)\n        index = resolvedSources.indexOf(source);\n    return index;\n}\n/**\n * Retrieves the source content for a particular source, if its found. Returns null if not.\n */\nfunction sourceContentFor(map, source) {\n    const { sourcesContent } = map;\n    if (sourcesContent == null)\n        return null;\n    const index = sourceIndex(map, source);\n    return index === -1 ? null : sourcesContent[index];\n}\n/**\n * Determines if the source is marked to ignore by the source map.\n */\nfunction isIgnored(map, source) {\n    const { ignoreList } = map;\n    if (ignoreList == null)\n        return false;\n    const index = sourceIndex(map, source);\n    return index === -1 ? false : ignoreList.includes(index);\n}\n/**\n * A helper that skips sorting of the input map's mappings array, which can be expensive for larger\n * maps.\n */\nfunction presortedDecodedMap(map, mapUrl) {\n    const tracer = new TraceMap(clone(map, []), mapUrl);\n    cast(tracer)._decoded = map.mappings;\n    return tracer;\n}\n/**\n * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects\n * a sourcemap, or to JSON.stringify.\n */\nfunction decodedMap(map) {\n    return clone(map, decodedMappings(map));\n}\n/**\n * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects\n * a sourcemap, or to JSON.stringify.\n */\nfunction encodedMap(map) {\n    return clone(map, encodedMappings(map));\n}\nfunction clone(map, mappings) {\n    return {\n        version: map.version,\n        file: map.file,\n        names: map.names,\n        sourceRoot: map.sourceRoot,\n        sources: map.sources,\n        sourcesContent: map.sourcesContent,\n        mappings,\n        ignoreList: map.ignoreList || map.x_google_ignoreList,\n    };\n}\nfunction OMapping(source, line, column, name) {\n    return { source, line, column, name };\n}\nfunction GMapping(line, column) {\n    return { line, column };\n}\nfunction traceSegmentInternal(segments, memo, line, column, bias) {\n    let index = memoizedBinarySearch(segments, column, memo, line);\n    if (found) {\n        index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);\n    }\n    else if (bias === LEAST_UPPER_BOUND)\n        index++;\n    if (index === -1 || index === segments.length)\n        return -1;\n    return index;\n}\nfunction sliceGeneratedPositions(segments, memo, line, column, bias) {\n    let min = traceSegmentInternal(segments, memo, line, column, GREATEST_LOWER_BOUND);\n    // We ignored the bias when tracing the segment so that we're guarnateed to find the first (in\n    // insertion order) segment that matched. Even if we did respect the bias when tracing, we would\n    // still need to call `lowerBound()` to find the first segment, which is slower than just looking\n    // for the GREATEST_LOWER_BOUND to begin with. The only difference that matters for us is when the\n    // binary search didn't match, in which case GREATEST_LOWER_BOUND just needs to increment to\n    // match LEAST_UPPER_BOUND.\n    if (!found && bias === LEAST_UPPER_BOUND)\n        min++;\n    if (min === -1 || min === segments.length)\n        return [];\n    // We may have found the segment that started at an earlier column. If this is the case, then we\n    // need to slice all generated segments that match _that_ column, because all such segments span\n    // to our desired column.\n    const matchedColumn = found ? column : segments[min][COLUMN];\n    // The binary search is not guaranteed to find the lower bound when a match wasn't found.\n    if (!found)\n        min = lowerBound(segments, matchedColumn, min);\n    const max = upperBound(segments, matchedColumn, min);\n    const result = [];\n    for (; min <= max; min++) {\n        const segment = segments[min];\n        result.push(GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]));\n    }\n    return result;\n}\nfunction generatedPosition(map, source, line, column, bias, all) {\n    var _a;\n    line--;\n    if (line < 0)\n        throw new Error(LINE_GTR_ZERO);\n    if (column < 0)\n        throw new Error(COL_GTR_EQ_ZERO);\n    const { sources, resolvedSources } = map;\n    let sourceIndex = sources.indexOf(source);\n    if (sourceIndex === -1)\n        sourceIndex = resolvedSources.indexOf(source);\n    if (sourceIndex === -1)\n        return all ? [] : GMapping(null, null);\n    const generated = ((_a = cast(map))._bySources || (_a._bySources = buildBySources(decodedMappings(map), (cast(map)._bySourceMemos = sources.map(memoizedState)))));\n    const segments = generated[sourceIndex][line];\n    if (segments == null)\n        return all ? [] : GMapping(null, null);\n    const memo = cast(map)._bySourceMemos[sourceIndex];\n    if (all)\n        return sliceGeneratedPositions(segments, memo, line, column, bias);\n    const index = traceSegmentInternal(segments, memo, line, column, bias);\n    if (index === -1)\n        return GMapping(null, null);\n    const segment = segments[index];\n    return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]);\n}\n//# sourceMappingURL=trace-mapping.mjs.map\n","type":"js","dependency_paths":[["@jridgewell/sourcemap-codec","/home/runner/work/panel/panel/panel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs"],["@jridgewell/resolve-uri","/home/runner/work/panel/panel/panel/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs"]],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* @jridgewell/trace-mapping/dist/trace-mapping.mjs */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.allGeneratedPositionsFor = allGeneratedPositionsFor;\n    exports.decodedMap = decodedMap;\n    exports.decodedMappings = decodedMappings;\n    exports.eachMapping = eachMapping;\n    exports.encodedMap = encodedMap;\n    exports.encodedMappings = encodedMappings;\n    exports.generatedPositionFor = generatedPositionFor;\n    exports.isIgnored = isIgnored;\n    exports.originalPositionFor = originalPositionFor;\n    exports.presortedDecodedMap = presortedDecodedMap;\n    exports.sourceContentFor = sourceContentFor;\n    exports.traceSegment = traceSegment;\n    const tslib_1 = require(\"tslib\");\n    const sourcemap_codec_1 = require(\"4b3e7fe51a\") /* @jridgewell/sourcemap-codec */;\n    const resolve_uri_1 = tslib_1.__importDefault(require(\"92bc7d86f0\") /* @jridgewell/resolve-uri */);\n    function resolve(input, base) {\n        // The base is always treated as a directory, if it's not empty.\n        // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327\n        // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401\n        if (base && !base.endsWith('/'))\n            base += '/';\n        return (0, resolve_uri_1.default)(input, base);\n    }\n    /**\n     * Removes everything after the last \"/\", but leaves the slash.\n     */\n    function stripFilename(path) {\n        if (!path)\n            return '';\n        const index = path.lastIndexOf('/');\n        return path.slice(0, index + 1);\n    }\n    const COLUMN = 0;\n    const SOURCES_INDEX = 1;\n    const SOURCE_LINE = 2;\n    const SOURCE_COLUMN = 3;\n    const NAMES_INDEX = 4;\n    const REV_GENERATED_LINE = 1;\n    const REV_GENERATED_COLUMN = 2;\n    function maybeSort(mappings, owned) {\n        const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);\n        if (unsortedIndex === mappings.length)\n            return mappings;\n        // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If\n        // not, we do not want to modify the consumer's input array.\n        if (!owned)\n            mappings = mappings.slice();\n        for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) {\n            mappings[i] = sortSegments(mappings[i], owned);\n        }\n        return mappings;\n    }\n    function nextUnsortedSegmentLine(mappings, start) {\n        for (let i = start; i < mappings.length; i++) {\n            if (!isSorted(mappings[i]))\n                return i;\n        }\n        return mappings.length;\n    }\n    function isSorted(line) {\n        for (let j = 1; j < line.length; j++) {\n            if (line[j][COLUMN] < line[j - 1][COLUMN]) {\n                return false;\n            }\n        }\n        return true;\n    }\n    function sortSegments(line, owned) {\n        if (!owned)\n            line = line.slice();\n        return line.sort(sortComparator);\n    }\n    function sortComparator(a, b) {\n        return a[COLUMN] - b[COLUMN];\n    }\n    let found = false;\n    /**\n     * A binary search implementation that returns the index if a match is found.\n     * If no match is found, then the left-index (the index associated with the item that comes just\n     * before the desired index) is returned. To maintain proper sort order, a splice would happen at\n     * the next index:\n     *\n     * ```js\n     * const array = [1, 3];\n     * const needle = 2;\n     * const index = binarySearch(array, needle, (item, needle) => item - needle);\n     *\n     * assert.equal(index, 0);\n     * array.splice(index + 1, 0, needle);\n     * assert.deepEqual(array, [1, 2, 3]);\n     * ```\n     */\n    function binarySearch(haystack, needle, low, high) {\n        while (low <= high) {\n            const mid = low + ((high - low) >> 1);\n            const cmp = haystack[mid][COLUMN] - needle;\n            if (cmp === 0) {\n                found = true;\n                return mid;\n            }\n            if (cmp < 0) {\n                low = mid + 1;\n            }\n            else {\n                high = mid - 1;\n            }\n        }\n        found = false;\n        return low - 1;\n    }\n    function upperBound(haystack, needle, index) {\n        for (let i = index + 1; i < haystack.length; index = i++) {\n            if (haystack[i][COLUMN] !== needle)\n                break;\n        }\n        return index;\n    }\n    function lowerBound(haystack, needle, index) {\n        for (let i = index - 1; i >= 0; index = i--) {\n            if (haystack[i][COLUMN] !== needle)\n                break;\n        }\n        return index;\n    }\n    function memoizedState() {\n        return {\n            lastKey: -1,\n            lastNeedle: -1,\n            lastIndex: -1,\n        };\n    }\n    /**\n     * This overly complicated beast is just to record the last tested line/column and the resulting\n     * index, allowing us to skip a few tests if mappings are monotonically increasing.\n     */\n    function memoizedBinarySearch(haystack, needle, state, key) {\n        const { lastKey, lastNeedle, lastIndex } = state;\n        let low = 0;\n        let high = haystack.length - 1;\n        if (key === lastKey) {\n            if (needle === lastNeedle) {\n                found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;\n                return lastIndex;\n            }\n            if (needle >= lastNeedle) {\n                // lastIndex may be -1 if the previous needle was not found.\n                low = lastIndex === -1 ? 0 : lastIndex;\n            }\n            else {\n                high = lastIndex;\n            }\n        }\n        state.lastKey = key;\n        state.lastNeedle = needle;\n        return (state.lastIndex = binarySearch(haystack, needle, low, high));\n    }\n    // Rebuilds the original source files, with mappings that are ordered by source line/column instead\n    // of generated line/column.\n    function buildBySources(decoded, memos) {\n        const sources = memos.map(buildNullArray);\n        for (let i = 0; i < decoded.length; i++) {\n            const line = decoded[i];\n            for (let j = 0; j < line.length; j++) {\n                const seg = line[j];\n                if (seg.length === 1)\n                    continue;\n                const sourceIndex = seg[SOURCES_INDEX];\n                const sourceLine = seg[SOURCE_LINE];\n                const sourceColumn = seg[SOURCE_COLUMN];\n                const originalSource = sources[sourceIndex];\n                const originalLine = (originalSource[sourceLine] || (originalSource[sourceLine] = []));\n                const memo = memos[sourceIndex];\n                // The binary search either found a match, or it found the left-index just before where the\n                // segment should go. Either way, we want to insert after that. And there may be multiple\n                // generated segments associated with an original location, so there may need to move several\n                // indexes before we find where we need to insert.\n                let index = upperBound(originalLine, sourceColumn, memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine));\n                memo.lastIndex = ++index;\n                insert(originalLine, index, [sourceColumn, i, seg[COLUMN]]);\n            }\n        }\n        return sources;\n    }\n    function insert(array, index, value) {\n        for (let i = array.length; i > index; i--) {\n            array[i] = array[i - 1];\n        }\n        array[index] = value;\n    }\n    // Null arrays allow us to use ordered index keys without actually allocating contiguous memory like\n    // a real array. We use a null-prototype object to avoid prototype pollution and deoptimizations.\n    // Numeric properties on objects are magically sorted in ascending order by the engine regardless of\n    // the insertion order. So, by setting any numeric keys, even out of order, we'll get ascending\n    // order when iterating with for-in.\n    function buildNullArray() {\n        return { __proto__: null };\n    }\n    const AnyMap = function (map, mapUrl) {\n        const parsed = parse(map);\n        if (!('sections' in parsed)) {\n            return new TraceMap(parsed, mapUrl);\n        }\n        const mappings = [];\n        const sources = [];\n        const sourcesContent = [];\n        const names = [];\n        const ignoreList = [];\n        recurse(parsed, mapUrl, mappings, sources, sourcesContent, names, ignoreList, 0, 0, Infinity, Infinity);\n        const joined = {\n            version: 3,\n            file: parsed.file,\n            names,\n            sources,\n            sourcesContent,\n            mappings,\n            ignoreList,\n        };\n        return presortedDecodedMap(joined);\n    };\n    exports.AnyMap = AnyMap;\n    function parse(map) {\n        return typeof map === 'string' ? JSON.parse(map) : map;\n    }\n    function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {\n        const { sections } = input;\n        for (let i = 0; i < sections.length; i++) {\n            const { map, offset } = sections[i];\n            let sl = stopLine;\n            let sc = stopColumn;\n            if (i + 1 < sections.length) {\n                const nextOffset = sections[i + 1].offset;\n                sl = Math.min(stopLine, lineOffset + nextOffset.line);\n                if (sl === stopLine) {\n                    sc = Math.min(stopColumn, columnOffset + nextOffset.column);\n                }\n                else if (sl < stopLine) {\n                    sc = columnOffset + nextOffset.column;\n                }\n            }\n            addSection(map, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset + offset.line, columnOffset + offset.column, sl, sc);\n        }\n    }\n    function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {\n        const parsed = parse(input);\n        if ('sections' in parsed)\n            return recurse(...arguments);\n        const map = new TraceMap(parsed, mapUrl);\n        const sourcesOffset = sources.length;\n        const namesOffset = names.length;\n        const decoded = decodedMappings(map);\n        const { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map;\n        append(sources, resolvedSources);\n        append(names, map.names);\n        if (contents)\n            append(sourcesContent, contents);\n        else\n            for (let i = 0; i < resolvedSources.length; i++)\n                sourcesContent.push(null);\n        if (ignores)\n            for (let i = 0; i < ignores.length; i++)\n                ignoreList.push(ignores[i] + sourcesOffset);\n        for (let i = 0; i < decoded.length; i++) {\n            const lineI = lineOffset + i;\n            // We can only add so many lines before we step into the range that the next section's map\n            // controls. When we get to the last line, then we'll start checking the segments to see if\n            // they've crossed into the column range. But it may not have any columns that overstep, so we\n            // still need to check that we don't overstep lines, too.\n            if (lineI > stopLine)\n                return;\n            // The out line may already exist in mappings (if we're continuing the line started by a\n            // previous section). Or, we may have jumped ahead several lines to start this section.\n            const out = getLine(mappings, lineI);\n            // On the 0th loop, the section's column offset shifts us forward. On all other lines (since the\n            // map can be multiple lines), it doesn't.\n            const cOffset = i === 0 ? columnOffset : 0;\n            const line = decoded[i];\n            for (let j = 0; j < line.length; j++) {\n                const seg = line[j];\n                const column = cOffset + seg[COLUMN];\n                // If this segment steps into the column range that the next section's map controls, we need\n                // to stop early.\n                if (lineI === stopLine && column >= stopColumn)\n                    return;\n                if (seg.length === 1) {\n                    out.push([column]);\n                    continue;\n                }\n                const sourcesIndex = sourcesOffset + seg[SOURCES_INDEX];\n                const sourceLine = seg[SOURCE_LINE];\n                const sourceColumn = seg[SOURCE_COLUMN];\n                out.push(seg.length === 4\n                    ? [column, sourcesIndex, sourceLine, sourceColumn]\n                    : [column, sourcesIndex, sourceLine, sourceColumn, namesOffset + seg[NAMES_INDEX]]);\n            }\n        }\n    }\n    function append(arr, other) {\n        for (let i = 0; i < other.length; i++)\n            arr.push(other[i]);\n    }\n    function getLine(arr, index) {\n        for (let i = arr.length; i <= index; i++)\n            arr[i] = [];\n        return arr[index];\n    }\n    const LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)';\n    const COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)';\n    const LEAST_UPPER_BOUND = -1;\n    exports.LEAST_UPPER_BOUND = LEAST_UPPER_BOUND;\n    const GREATEST_LOWER_BOUND = 1;\n    exports.GREATEST_LOWER_BOUND = GREATEST_LOWER_BOUND;\n    class TraceMap {\n        constructor(map, mapUrl) {\n            const isString = typeof map === 'string';\n            if (!isString && map._decodedMemo)\n                return map;\n            const parsed = (isString ? JSON.parse(map) : map);\n            const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;\n            this.version = version;\n            this.file = file;\n            this.names = names || [];\n            this.sourceRoot = sourceRoot;\n            this.sources = sources;\n            this.sourcesContent = sourcesContent;\n            this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined;\n            const from = resolve(sourceRoot || '', stripFilename(mapUrl));\n            this.resolvedSources = sources.map((s) => resolve(s || '', from));\n            const { mappings } = parsed;\n            if (typeof mappings === 'string') {\n                this._encoded = mappings;\n                this._decoded = undefined;\n            }\n            else {\n                this._encoded = undefined;\n                this._decoded = maybeSort(mappings, isString);\n            }\n            this._decodedMemo = memoizedState();\n            this._bySources = undefined;\n            this._bySourceMemos = undefined;\n        }\n    }\n    exports.TraceMap = TraceMap;\n    /**\n     * Typescript doesn't allow friend access to private fields, so this just casts the map into a type\n     * with public access modifiers.\n     */\n    function cast(map) {\n        return map;\n    }\n    /**\n     * Returns the encoded (VLQ string) form of the SourceMap's mappings field.\n     */\n    function encodedMappings(map) {\n        var _a;\n        var _b;\n        return ((_a = (_b = cast(map))._encoded) !== null && _a !== void 0 ? _a : (_b._encoded = (0, sourcemap_codec_1.encode)(cast(map)._decoded)));\n    }\n    /**\n     * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.\n     */\n    function decodedMappings(map) {\n        var _a;\n        return ((_a = cast(map))._decoded || (_a._decoded = (0, sourcemap_codec_1.decode)(cast(map)._encoded)));\n    }\n    /**\n     * A low-level API to find the segment associated with a generated line/column (think, from a\n     * stack trace). Line and column here are 0-based, unlike `originalPositionFor`.\n     */\n    function traceSegment(map, line, column) {\n        const decoded = decodedMappings(map);\n        // It's common for parent source maps to have pointers to lines that have no\n        // mapping (like a \"//# sourceMappingURL=\") at the end of the child file.\n        if (line >= decoded.length)\n            return null;\n        const segments = decoded[line];\n        const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, GREATEST_LOWER_BOUND);\n        return index === -1 ? null : segments[index];\n    }\n    /**\n     * A higher-level API to find the source/line/column associated with a generated line/column\n     * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in\n     * `source-map` library.\n     */\n    function originalPositionFor(map, needle) {\n        let { line, column, bias } = needle;\n        line--;\n        if (line < 0)\n            throw new Error(LINE_GTR_ZERO);\n        if (column < 0)\n            throw new Error(COL_GTR_EQ_ZERO);\n        const decoded = decodedMappings(map);\n        // It's common for parent source maps to have pointers to lines that have no\n        // mapping (like a \"//# sourceMappingURL=\") at the end of the child file.\n        if (line >= decoded.length)\n            return OMapping(null, null, null, null);\n        const segments = decoded[line];\n        const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);\n        if (index === -1)\n            return OMapping(null, null, null, null);\n        const segment = segments[index];\n        if (segment.length === 1)\n            return OMapping(null, null, null, null);\n        const { names, resolvedSources } = map;\n        return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null);\n    }\n    /**\n     * Finds the generated line/column position of the provided source/line/column source position.\n     */\n    function generatedPositionFor(map, needle) {\n        const { source, line, column, bias } = needle;\n        return generatedPosition(map, source, line, column, bias || GREATEST_LOWER_BOUND, false);\n    }\n    /**\n     * Finds all generated line/column positions of the provided source/line/column source position.\n     */\n    function allGeneratedPositionsFor(map, needle) {\n        const { source, line, column, bias } = needle;\n        // SourceMapConsumer uses LEAST_UPPER_BOUND for some reason, so we follow suit.\n        return generatedPosition(map, source, line, column, bias || LEAST_UPPER_BOUND, true);\n    }\n    /**\n     * Iterates each mapping in generated position order.\n     */\n    function eachMapping(map, cb) {\n        const decoded = decodedMappings(map);\n        const { names, resolvedSources } = map;\n        for (let i = 0; i < decoded.length; i++) {\n            const line = decoded[i];\n            for (let j = 0; j < line.length; j++) {\n                const seg = line[j];\n                const generatedLine = i + 1;\n                const generatedColumn = seg[0];\n                let source = null;\n                let originalLine = null;\n                let originalColumn = null;\n                let name = null;\n                if (seg.length !== 1) {\n                    source = resolvedSources[seg[1]];\n                    originalLine = seg[2] + 1;\n                    originalColumn = seg[3];\n                }\n                if (seg.length === 5)\n                    name = names[seg[4]];\n                cb({\n                    generatedLine,\n                    generatedColumn,\n                    source,\n                    originalLine,\n                    originalColumn,\n                    name,\n                });\n            }\n        }\n    }\n    function sourceIndex(map, source) {\n        const { sources, resolvedSources } = map;\n        let index = sources.indexOf(source);\n        if (index === -1)\n            index = resolvedSources.indexOf(source);\n        return index;\n    }\n    /**\n     * Retrieves the source content for a particular source, if its found. Returns null if not.\n     */\n    function sourceContentFor(map, source) {\n        const { sourcesContent } = map;\n        if (sourcesContent == null)\n            return null;\n        const index = sourceIndex(map, source);\n        return index === -1 ? null : sourcesContent[index];\n    }\n    /**\n     * Determines if the source is marked to ignore by the source map.\n     */\n    function isIgnored(map, source) {\n        const { ignoreList } = map;\n        if (ignoreList == null)\n            return false;\n        const index = sourceIndex(map, source);\n        return index === -1 ? false : ignoreList.includes(index);\n    }\n    /**\n     * A helper that skips sorting of the input map's mappings array, which can be expensive for larger\n     * maps.\n     */\n    function presortedDecodedMap(map, mapUrl) {\n        const tracer = new TraceMap(clone(map, []), mapUrl);\n        cast(tracer)._decoded = map.mappings;\n        return tracer;\n    }\n    /**\n     * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects\n     * a sourcemap, or to JSON.stringify.\n     */\n    function decodedMap(map) {\n        return clone(map, decodedMappings(map));\n    }\n    /**\n     * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects\n     * a sourcemap, or to JSON.stringify.\n     */\n    function encodedMap(map) {\n        return clone(map, encodedMappings(map));\n    }\n    function clone(map, mappings) {\n        return {\n            version: map.version,\n            file: map.file,\n            names: map.names,\n            sourceRoot: map.sourceRoot,\n            sources: map.sources,\n            sourcesContent: map.sourcesContent,\n            mappings,\n            ignoreList: map.ignoreList || map.x_google_ignoreList,\n        };\n    }\n    function OMapping(source, line, column, name) {\n        return { source, line, column, name };\n    }\n    function GMapping(line, column) {\n        return { line, column };\n    }\n    function traceSegmentInternal(segments, memo, line, column, bias) {\n        let index = memoizedBinarySearch(segments, column, memo, line);\n        if (found) {\n            index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);\n        }\n        else if (bias === LEAST_UPPER_BOUND)\n            index++;\n        if (index === -1 || index === segments.length)\n            return -1;\n        return index;\n    }\n    function sliceGeneratedPositions(segments, memo, line, column, bias) {\n        let min = traceSegmentInternal(segments, memo, line, column, GREATEST_LOWER_BOUND);\n        // We ignored the bias when tracing the segment so that we're guarnateed to find the first (in\n        // insertion order) segment that matched. Even if we did respect the bias when tracing, we would\n        // still need to call `lowerBound()` to find the first segment, which is slower than just looking\n        // for the GREATEST_LOWER_BOUND to begin with. The only difference that matters for us is when the\n        // binary search didn't match, in which case GREATEST_LOWER_BOUND just needs to increment to\n        // match LEAST_UPPER_BOUND.\n        if (!found && bias === LEAST_UPPER_BOUND)\n            min++;\n        if (min === -1 || min === segments.length)\n            return [];\n        // We may have found the segment that started at an earlier column. If this is the case, then we\n        // need to slice all generated segments that match _that_ column, because all such segments span\n        // to our desired column.\n        const matchedColumn = found ? column : segments[min][COLUMN];\n        // The binary search is not guaranteed to find the lower bound when a match wasn't found.\n        if (!found)\n            min = lowerBound(segments, matchedColumn, min);\n        const max = upperBound(segments, matchedColumn, min);\n        const result = [];\n        for (; min <= max; min++) {\n            const segment = segments[min];\n            result.push(GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]));\n        }\n        return result;\n    }\n    function generatedPosition(map, source, line, column, bias, all) {\n        var _a;\n        line--;\n        if (line < 0)\n            throw new Error(LINE_GTR_ZERO);\n        if (column < 0)\n            throw new Error(COL_GTR_EQ_ZERO);\n        const { sources, resolvedSources } = map;\n        let sourceIndex = sources.indexOf(source);\n        if (sourceIndex === -1)\n            sourceIndex = resolvedSources.indexOf(source);\n        if (sourceIndex === -1)\n            return all ? [] : GMapping(null, null);\n        const generated = ((_a = cast(map))._bySources || (_a._bySources = buildBySources(decodedMappings(map), (cast(map)._bySourceMemos = sources.map(memoizedState)))));\n        const segments = generated[sourceIndex][line];\n        if (segments == null)\n            return all ? [] : GMapping(null, null);\n        const memo = cast(map)._bySourceMemos[sourceIndex];\n        if (all)\n            return sliceGeneratedPositions(segments, memo, line, column, bias);\n        const index = traceSegmentInternal(segments, memo, line, column, bias);\n        if (index === -1)\n            return GMapping(null, null);\n        const segment = segments[index];\n        return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]);\n    }\n}\n","min_source":"function _(n,e,t,o,r){o(),t.allGeneratedPositionsFor=function(n,e){const{source:t,line:o,column:r,bias:s}=e;return k(n,t,o,r,s||F,!0)},t.decodedMap=function(n){return J(n,U(n))},t.decodedMappings=U,t.eachMapping=function(n,e){const t=U(n),{names:o,resolvedSources:r}=n;for(let n=0;n<t.length;n++){const s=t[n];for(let t=0;t<s.length;t++){const l=s[t],u=n+1,i=l[0];let c=null,f=null,d=null,a=null;1!==l.length&&(c=r[l[1]],f=l[2]+1,d=l[3]),5===l.length&&(a=o[l[4]]),e({generatedLine:u,generatedColumn:i,source:c,originalLine:f,originalColumn:d,name:a})}}},t.encodedMap=function(n){return J(n,A(n))},t.encodedMappings=A,t.generatedPositionFor=function(n,e){const{source:t,line:o,column:r,bias:s}=e;return k(n,t,o,r,s||K,!1)},t.isIgnored=function(n,e){const{ignoreList:t}=n;if(null==t)return!1;const o=B(n,e);return-1!==o&&t.includes(o)},t.originalPositionFor=function(n,e){let{line:t,column:o,bias:r}=e;if(t--,t<0)throw new Error(P);if(o<0)throw new Error(D);const s=U(n);if(t>=s.length)return W(null,null,null,null);const l=s[t],u=j(l,n._decodedMemo,t,o,r||K);if(-1===u)return W(null,null,null,null);const i=l[u];if(1===i.length)return W(null,null,null,null);const{names:c,resolvedSources:h}=n;return W(h[i[f]],i[d]+1,i[a],5===i.length?c[i[g]]:null)},t.presortedDecodedMap=G,t.sourceContentFor=function(n,e){const{sourcesContent:t}=n;if(null==t)return null;const o=B(n,e);return-1===o?null:t[o]},t.traceSegment=function(n,e,t){const o=U(n);if(e>=o.length)return null;const r=o[e],s=j(r,n._decodedMemo,e,t,K);return-1===s?null:r[s]};const s=n(\"tslib\"),l=n(\"4b3e7fe51a\"),u=s.__importDefault(n(\"92bc7d86f0\"));function i(n,e){return e&&!e.endsWith(\"/\")&&(e+=\"/\"),(0,u.default)(n,e)}const c=0,f=1,d=2,a=3,g=4,h=1,m=2;function p(n,e){for(let t=e;t<n.length;t++)if(!_(n[t]))return t;return n.length}function _(n){for(let e=1;e<n.length;e++)if(n[e][c]<n[e-1][c])return!1;return!0}function v(n,e){return e||(n=n.slice()),n.sort(M)}function M(n,e){return n[c]-e[c]}let S=!1;function b(n,e,t){for(let o=t+1;o<n.length&&n[o][c]===e;t=o++);return t}function y(n,e,t){for(let o=t-1;o>=0&&n[o][c]===e;t=o--);return t}function L(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function x(n,e,t,o){const{lastKey:r,lastNeedle:s,lastIndex:l}=t;let u=0,i=n.length-1;if(o===r){if(e===s)return S=-1!==l&&n[l][c]===e,l;e>=s?u=-1===l?0:l:i=l}return t.lastKey=o,t.lastNeedle=e,t.lastIndex=function(n,e,t,o){for(;t<=o;){const r=t+(o-t>>1),s=n[r][c]-e;if(0===s)return S=!0,r;s<0?t=r+1:o=r-1}return S=!1,t-1}(n,e,u,i)}function w(n,e,t){for(let t=n.length;t>e;t--)n[t]=n[t-1];n[e]=t}function C(){return{__proto__:null}}function O(n){return\"string\"==typeof n?JSON.parse(n):n}function E(n,e,t,o,r,s,l,u,i,c,f){const{sections:d}=n;for(let n=0;n<d.length;n++){const{map:a,offset:g}=d[n];let h=c,m=f;if(n+1<d.length){const e=d[n+1].offset;h=Math.min(c,u+e.line),h===c?m=Math.min(f,i+e.column):h<c&&(m=i+e.column)}N(a,e,t,o,r,s,l,u+g.line,i+g.column,h,m)}}function N(n,e,t,o,r,s,l,u,i,h,m){const p=O(n);if(\"sections\"in p)return E(...arguments);const _=new T(p,e),v=o.length,M=s.length,S=U(_),{resolvedSources:b,sourcesContent:y,ignoreList:L}=_;if(I(o,b),I(s,_.names),y)I(r,y);else for(let n=0;n<b.length;n++)r.push(null);if(L)for(let n=0;n<L.length;n++)l.push(L[n]+v);for(let n=0;n<S.length;n++){const e=u+n;if(e>h)return;const o=R(t,e),r=0===n?i:0,s=S[n];for(let n=0;n<s.length;n++){const t=s[n],l=r+t[c];if(e===h&&l>=m)return;if(1===t.length){o.push([l]);continue}const u=v+t[f],i=t[d],p=t[a];o.push(4===t.length?[l,u,i,p]:[l,u,i,p,M+t[g]])}}}function I(n,e){for(let t=0;t<e.length;t++)n.push(e[t])}function R(n,e){for(let t=n.length;t<=e;t++)n[t]=[];return n[e]}t.AnyMap=function(n,e){const t=O(n);if(!(\"sections\"in t))return new T(t,e);const o=[],r=[],s=[],l=[],u=[];E(t,e,o,r,s,l,u,0,0,1/0,1/0);return G({version:3,file:t.file,names:l,sources:r,sourcesContent:s,mappings:o,ignoreList:u})};const P=\"`line` must be greater than 0 (lines start at line 1)\",D=\"`column` must be greater than or equal to 0 (columns start at column 0)\",F=-1;t.LEAST_UPPER_BOUND=F;const K=1;t.GREATEST_LOWER_BOUND=K;class T{constructor(n,e){const t=\"string\"==typeof n;if(!t&&n._decodedMemo)return n;const o=t?JSON.parse(n):n,{version:r,file:s,names:l,sourceRoot:u,sources:c,sourcesContent:f}=o;this.version=r,this.file=s,this.names=l||[],this.sourceRoot=u,this.sources=c,this.sourcesContent=f,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;const d=i(u||\"\",function(n){if(!n)return\"\";const e=n.lastIndexOf(\"/\");return n.slice(0,e+1)}(e));this.resolvedSources=c.map((n=>i(n||\"\",d)));const{mappings:a}=o;\"string\"==typeof a?(this._encoded=a,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(n,e){const t=p(n,0);if(t===n.length)return n;e||(n=n.slice());for(let o=t;o<n.length;o=p(n,o+1))n[o]=v(n[o],e);return n}(a,t)),this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}}function A(n){var e,t;return null!==(e=(t=n)._encoded)&&void 0!==e?e:t._encoded=(0,l.encode)(n._decoded)}function U(n){var e;return(e=n)._decoded||(e._decoded=(0,l.decode)(n._encoded))}function B(n,e){const{sources:t,resolvedSources:o}=n;let r=t.indexOf(e);return-1===r&&(r=o.indexOf(e)),r}function G(n,e){const t=new T(J(n,[]),e);return t._decoded=n.mappings,t}function J(n,e){return{version:n.version,file:n.file,names:n.names,sourceRoot:n.sourceRoot,sources:n.sources,sourcesContent:n.sourcesContent,mappings:e,ignoreList:n.ignoreList||n.x_google_ignoreList}}function W(n,e,t,o){return{source:n,line:e,column:t,name:o}}function q(n,e){return{line:n,column:e}}function j(n,e,t,o,r){let s=x(n,o,e,t);return S?s=(r===F?b:y)(n,o,s):r===F&&s++,-1===s||s===n.length?-1:s}function k(n,e,t,o,r,s){var l;if(--t<0)throw new Error(P);if(o<0)throw new Error(D);const{sources:u,resolvedSources:i}=n;let g=u.indexOf(e);if(-1===g&&(g=i.indexOf(e)),-1===g)return s?[]:q(null,null);const p=(l=n)._bySources||(l._bySources=function(n,e){const t=e.map(C);for(let o=0;o<n.length;o++){const r=n[o];for(let n=0;n<r.length;n++){const s=r[n];if(1===s.length)continue;const l=s[f],u=s[d],i=s[a],g=t[l],h=g[u]||(g[u]=[]),m=e[l];let p=b(h,i,x(h,i,m,u));m.lastIndex=++p,w(h,p,[i,o,s[c]])}}return t}(U(n),n._bySourceMemos=u.map(L))),_=p[g][t];if(null==_)return s?[]:q(null,null);const v=n._bySourceMemos[g];if(s)return function(n,e,t,o,r){let s=j(n,e,t,o,K);if(S||r!==F||s++,-1===s||s===n.length)return[];const l=S?o:n[s][c];S||(s=y(n,l,s));const u=b(n,l,s),i=[];for(;s<=u;s++){const e=n[s];i.push(q(e[h]+1,e[m]))}return i}(_,v,t,o,r);const M=j(_,v,t,o,r);if(-1===M)return q(null,null);const O=_[M];return q(O[h]+1,O[m])}t.TraceMap=T}\n//# sourceMappingURL=trace-mapping.min.js.map","min_map":"{\"version\":3,\"file\":\"trace-mapping.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"allGeneratedPositionsFor\",\"map\",\"needle\",\"source\",\"line\",\"column\",\"bias\",\"generatedPosition\",\"LEAST_UPPER_BOUND\",\"decodedMap\",\"clone\",\"decodedMappings\",\"eachMapping\",\"cb\",\"decoded\",\"names\",\"resolvedSources\",\"i\",\"length\",\"j\",\"seg\",\"generatedLine\",\"generatedColumn\",\"originalLine\",\"originalColumn\",\"name\",\"encodedMap\",\"encodedMappings\",\"generatedPositionFor\",\"GREATEST_LOWER_BOUND\",\"isIgnored\",\"ignoreList\",\"index\",\"sourceIndex\",\"includes\",\"originalPositionFor\",\"Error\",\"LINE_GTR_ZERO\",\"COL_GTR_EQ_ZERO\",\"OMapping\",\"segments\",\"traceSegmentInternal\",\"_decodedMemo\",\"segment\",\"SOURCES_INDEX\",\"SOURCE_LINE\",\"SOURCE_COLUMN\",\"NAMES_INDEX\",\"presortedDecodedMap\",\"sourceContentFor\",\"sourcesContent\",\"traceSegment\",\"tslib_1\",\"sourcemap_codec_1\",\"resolve_uri_1\",\"__importDefault\",\"resolve\",\"input\",\"base\",\"endsWith\",\"default\",\"COLUMN\",\"REV_GENERATED_LINE\",\"REV_GENERATED_COLUMN\",\"nextUnsortedSegmentLine\",\"mappings\",\"start\",\"isSorted\",\"sortSegments\",\"owned\",\"slice\",\"sort\",\"sortComparator\",\"a\",\"b\",\"found\",\"upperBound\",\"haystack\",\"lowerBound\",\"memoizedState\",\"lastKey\",\"lastNeedle\",\"lastIndex\",\"memoizedBinarySearch\",\"state\",\"key\",\"low\",\"high\",\"mid\",\"cmp\",\"binarySearch\",\"insert\",\"array\",\"value\",\"buildNullArray\",\"__proto__\",\"parse\",\"JSON\",\"recurse\",\"mapUrl\",\"sources\",\"lineOffset\",\"columnOffset\",\"stopLine\",\"stopColumn\",\"sections\",\"offset\",\"sl\",\"sc\",\"nextOffset\",\"Math\",\"min\",\"addSection\",\"parsed\",\"arguments\",\"TraceMap\",\"sourcesOffset\",\"namesOffset\",\"contents\",\"ignores\",\"append\",\"push\",\"lineI\",\"out\",\"getLine\",\"cOffset\",\"sourcesIndex\",\"sourceLine\",\"sourceColumn\",\"arr\",\"other\",\"AnyMap\",\"Infinity\",\"version\",\"file\",\"constructor\",\"isString\",\"sourceRoot\",\"this\",\"x_google_ignoreList\",\"undefined\",\"from\",\"path\",\"lastIndexOf\",\"stripFilename\",\"s\",\"_encoded\",\"_decoded\",\"unsortedIndex\",\"maybeSort\",\"_bySources\",\"_bySourceMemos\",\"_a\",\"_b\",\"encode\",\"decode\",\"indexOf\",\"tracer\",\"GMapping\",\"memo\",\"all\",\"generated\",\"memos\",\"originalSource\",\"buildBySources\",\"matchedColumn\",\"max\",\"result\",\"sliceGeneratedPositions\"],\"sources\":[\"0\"],\"mappings\":\"AAAuD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACpGD,IACAD,EAAQG,yBA+ZR,SAAkCC,EAAKC,GACnC,MAAMC,OAAEA,EAAMC,KAA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ve-uri/dist/resolve-uri.mjs","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"@jridgewell/resolve-uri/dist/resolve-uri.mjs","resolution":"ESM","id":"92bc7d86f0","hash":"92bc7d86f012f0a1a38447512014d2decabeec0663bcebf49b95ca6081722b90","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = resolve;\n// Matches the scheme of a URL, eg \"http://\"\nconst schemeRegex = /^[\\w+.-]+:\\/\\//;\n/**\n * Matches the parts of a URL:\n * 1. Scheme, including \":\", guaranteed.\n * 2. User/password, including \"@\", optional.\n * 3. Host, guaranteed.\n * 4. Port, including \":\", optional.\n * 5. Path, including \"/\", optional.\n * 6. Query, including \"?\", optional.\n * 7. Hash, including \"#\", optional.\n */\nconst urlRegex = /^([\\w+.-]+:)\\/\\/([^@/#?]*@)?([^:/#?]*)(:\\d+)?(\\/[^#?]*)?(\\?[^#]*)?(#.*)?/;\n/**\n * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start\n * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive).\n *\n * 1. Host, optional.\n * 2. Path, which may include \"/\", guaranteed.\n * 3. Query, including \"?\", optional.\n * 4. Hash, including \"#\", optional.\n */\nconst fileRegex = /^file:(?:\\/\\/((?![a-z]:)[^/#?]*)?)?(\\/?[^#?]*)(\\?[^#]*)?(#.*)?/i;\nfunction isAbsoluteUrl(input) {\n    return schemeRegex.test(input);\n}\nfunction isSchemeRelativeUrl(input) {\n    return input.startsWith('//');\n}\nfunction isAbsolutePath(input) {\n    return input.startsWith('/');\n}\nfunction isFileUrl(input) {\n    return input.startsWith('file:');\n}\nfunction isRelative(input) {\n    return /^[.?#]/.test(input);\n}\nfunction parseAbsoluteUrl(input) {\n    const match = urlRegex.exec(input);\n    return makeUrl(match[1], match[2] || '', match[3], match[4] || '', match[5] || '/', match[6] || '', match[7] || '');\n}\nfunction parseFileUrl(input) {\n    const match = fileRegex.exec(input);\n    const path = match[2];\n    return makeUrl('file:', '', match[1] || '', '', isAbsolutePath(path) ? path : '/' + path, match[3] || '', match[4] || '');\n}\nfunction makeUrl(scheme, user, host, port, path, query, hash) {\n    return {\n        scheme,\n        user,\n        host,\n        port,\n        path,\n        query,\n        hash,\n        type: 7 /* Absolute */,\n    };\n}\nfunction parseUrl(input) {\n    if (isSchemeRelativeUrl(input)) {\n        const url = parseAbsoluteUrl('http:' + input);\n        url.scheme = '';\n        url.type = 6 /* SchemeRelative */;\n        return url;\n    }\n    if (isAbsolutePath(input)) {\n        const url = parseAbsoluteUrl('http://foo.com' + input);\n        url.scheme = '';\n        url.host = '';\n        url.type = 5 /* AbsolutePath */;\n        return url;\n    }\n    if (isFileUrl(input))\n        return parseFileUrl(input);\n    if (isAbsoluteUrl(input))\n        return parseAbsoluteUrl(input);\n    const url = parseAbsoluteUrl('http://foo.com/' + input);\n    url.scheme = '';\n    url.host = '';\n    url.type = input\n        ? input.startsWith('?')\n            ? 3 /* Query */\n            : input.startsWith('#')\n                ? 2 /* Hash */\n                : 4 /* RelativePath */\n        : 1 /* Empty */;\n    return url;\n}\nfunction stripPathFilename(path) {\n    // If a path ends with a parent directory \"..\", then it's a relative path with excess parent\n    // paths. It's not a file, so we can't strip it.\n    if (path.endsWith('/..'))\n        return path;\n    const index = path.lastIndexOf('/');\n    return path.slice(0, index + 1);\n}\nfunction mergePaths(url, base) {\n    normalizePath(base, base.type);\n    // If the path is just a \"/\", then it was an empty path to begin with (remember, we're a relative\n    // path).\n    if (url.path === '/') {\n        url.path = base.path;\n    }\n    else {\n        // Resolution happens relative to the base path's directory, not the file.\n        url.path = stripPathFilename(base.path) + url.path;\n    }\n}\n/**\n * The path can have empty directories \"//\", unneeded parents \"foo/..\", or current directory\n * \"foo/.\". We need to normalize to a standard representation.\n */\nfunction normalizePath(url, type) {\n    const rel = type <= 4 /* RelativePath */;\n    const pieces = url.path.split('/');\n    // We need to preserve the first piece always, so that we output a leading slash. The item at\n    // pieces[0] is an empty string.\n    let pointer = 1;\n    // Positive is the number of real directories we've output, used for popping a parent directory.\n    // Eg, \"foo/bar/..\" will have a positive 2, and we can decrement to be left with just \"foo\".\n    let positive = 0;\n    // We need to keep a trailing slash if we encounter an empty directory (eg, splitting \"foo/\" will\n    // generate `[\"foo\", \"\"]` pieces). And, if we pop a parent directory. But once we encounter a\n    // real directory, we won't need to append, unless the other conditions happen again.\n    let addTrailingSlash = false;\n    for (let i = 1; i < pieces.length; i++) {\n        const piece = pieces[i];\n        // An empty directory, could be a trailing slash, or just a double \"//\" in the path.\n        if (!piece) {\n            addTrailingSlash = true;\n            continue;\n        }\n        // If we encounter a real directory, then we don't need to append anymore.\n        addTrailingSlash = false;\n        // A current directory, which we can always drop.\n        if (piece === '.')\n            continue;\n        // A parent directory, we need to see if there are any real directories we can pop. Else, we\n        // have an excess of parents, and we'll need to keep the \"..\".\n        if (piece === '..') {\n            if (positive) {\n                addTrailingSlash = true;\n                positive--;\n                pointer--;\n            }\n            else if (rel) {\n                // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute\n                // URL, protocol relative URL, or an absolute path, we don't need to keep excess.\n                pieces[pointer++] = piece;\n            }\n            continue;\n        }\n        // We've encountered a real directory. Move it to the next insertion pointer, which accounts for\n        // any popped or dropped directories.\n        pieces[pointer++] = piece;\n        positive++;\n    }\n    let path = '';\n    for (let i = 1; i < pointer; i++) {\n        path += '/' + pieces[i];\n    }\n    if (!path || (addTrailingSlash && !path.endsWith('/..'))) {\n        path += '/';\n    }\n    url.path = path;\n}\n/**\n * Attempts to resolve `input` URL/path relative to `base`.\n */\nfunction resolve(input, base) {\n    if (!input && !base)\n        return '';\n    const url = parseUrl(input);\n    let inputType = url.type;\n    if (base && inputType !== 7 /* Absolute */) {\n        const baseUrl = parseUrl(base);\n        const baseType = baseUrl.type;\n        switch (inputType) {\n            case 1 /* Empty */:\n                url.hash = baseUrl.hash;\n            // fall through\n            case 2 /* Hash */:\n                url.query = baseUrl.query;\n            // fall through\n            case 3 /* Query */:\n            case 4 /* RelativePath */:\n                mergePaths(url, baseUrl);\n            // fall through\n            case 5 /* AbsolutePath */:\n                // The host, user, and port are joined, you can't copy one without the others.\n                url.user = baseUrl.user;\n                url.host = baseUrl.host;\n                url.port = baseUrl.port;\n            // fall through\n            case 6 /* SchemeRelative */:\n                // The input doesn't have a schema at least, so we need to copy at least that over.\n                url.scheme = baseUrl.scheme;\n        }\n        if (baseType > inputType)\n            inputType = baseType;\n    }\n    normalizePath(url, inputType);\n    const queryHash = url.query + url.hash;\n    switch (inputType) {\n        // This is impossible, because of the empty checks at the start of the function.\n        // case UrlType.Empty:\n        case 2 /* Hash */:\n        case 3 /* Query */:\n            return queryHash;\n        case 4 /* RelativePath */: {\n            // The first char is always a \"/\", and we need it to be relative.\n            const path = url.path.slice(1);\n            if (!path)\n                return queryHash || '.';\n            if (isRelative(base || input) && !isRelative(path)) {\n                // If base started with a leading \".\", or there is no base and input started with a \".\",\n                // then we need to ensure that the relative path starts with a \".\". We don't know if\n                // relative starts with a \"..\", though, so check before prepending.\n                return './' + path + queryHash;\n            }\n            return path + queryHash;\n        }\n        case 5 /* AbsolutePath */:\n            return url.path + queryHash;\n        default:\n            return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash;\n    }\n}\n//# sourceMappingURL=resolve-uri.mjs.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* @jridgewell/resolve-uri/dist/resolve-uri.mjs */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = resolve;\n    // Matches the scheme of a URL, eg \"http://\"\n    const schemeRegex = /^[\\w+.-]+:\\/\\//;\n    /**\n     * Matches the parts of a URL:\n     * 1. Scheme, including \":\", guaranteed.\n     * 2. User/password, including \"@\", optional.\n     * 3. Host, guaranteed.\n     * 4. Port, including \":\", optional.\n     * 5. Path, including \"/\", optional.\n     * 6. Query, including \"?\", optional.\n     * 7. Hash, including \"#\", optional.\n     */\n    const urlRegex = /^([\\w+.-]+:)\\/\\/([^@/#?]*@)?([^:/#?]*)(:\\d+)?(\\/[^#?]*)?(\\?[^#]*)?(#.*)?/;\n    /**\n     * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start\n     * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive).\n     *\n     * 1. Host, optional.\n     * 2. Path, which may include \"/\", guaranteed.\n     * 3. Query, including \"?\", optional.\n     * 4. Hash, including \"#\", optional.\n     */\n    const fileRegex = /^file:(?:\\/\\/((?![a-z]:)[^/#?]*)?)?(\\/?[^#?]*)(\\?[^#]*)?(#.*)?/i;\n    function isAbsoluteUrl(input) {\n        return schemeRegex.test(input);\n    }\n    function isSchemeRelativeUrl(input) {\n        return input.startsWith('//');\n    }\n    function isAbsolutePath(input) {\n        return input.startsWith('/');\n    }\n    function isFileUrl(input) {\n        return input.startsWith('file:');\n    }\n    function isRelative(input) {\n        return /^[.?#]/.test(input);\n    }\n    function parseAbsoluteUrl(input) {\n        const match = urlRegex.exec(input);\n        return makeUrl(match[1], match[2] || '', match[3], match[4] || '', match[5] || '/', match[6] || '', match[7] || '');\n    }\n    function parseFileUrl(input) {\n        const match = fileRegex.exec(input);\n        const path = match[2];\n        return makeUrl('file:', '', match[1] || '', '', isAbsolutePath(path) ? path : '/' + path, match[3] || '', match[4] || '');\n    }\n    function makeUrl(scheme, user, host, port, path, query, hash) {\n        return {\n            scheme,\n            user,\n            host,\n            port,\n            path,\n            query,\n            hash,\n            type: 7 /* Absolute */,\n        };\n    }\n    function parseUrl(input) {\n        if (isSchemeRelativeUrl(input)) {\n            const url = parseAbsoluteUrl('http:' + input);\n            url.scheme = '';\n            url.type = 6 /* SchemeRelative */;\n            return url;\n        }\n        if (isAbsolutePath(input)) {\n            const url = parseAbsoluteUrl('http://foo.com' + input);\n            url.scheme = '';\n            url.host = '';\n            url.type = 5 /* AbsolutePath */;\n            return url;\n        }\n        if (isFileUrl(input))\n            return parseFileUrl(input);\n        if (isAbsoluteUrl(input))\n            return parseAbsoluteUrl(input);\n        const url = parseAbsoluteUrl('http://foo.com/' + input);\n        url.scheme = '';\n        url.host = '';\n        url.type = input\n            ? input.startsWith('?')\n                ? 3 /* Query */\n                : input.startsWith('#')\n                    ? 2 /* Hash */\n                    : 4 /* RelativePath */\n            : 1 /* Empty */;\n        return url;\n    }\n    function stripPathFilename(path) {\n        // If a path ends with a parent directory \"..\", then it's a relative path with excess parent\n        // paths. It's not a file, so we can't strip it.\n        if (path.endsWith('/..'))\n            return path;\n        const index = path.lastIndexOf('/');\n        return path.slice(0, index + 1);\n    }\n    function mergePaths(url, base) {\n        normalizePath(base, base.type);\n        // If the path is just a \"/\", then it was an empty path to begin with (remember, we're a relative\n        // path).\n        if (url.path === '/') {\n            url.path = base.path;\n        }\n        else {\n            // Resolution happens relative to the base path's directory, not the file.\n            url.path = stripPathFilename(base.path) + url.path;\n        }\n    }\n    /**\n     * The path can have empty directories \"//\", unneeded parents \"foo/..\", or current directory\n     * \"foo/.\". We need to normalize to a standard representation.\n     */\n    function normalizePath(url, type) {\n        const rel = type <= 4 /* RelativePath */;\n        const pieces = url.path.split('/');\n        // We need to preserve the first piece always, so that we output a leading slash. The item at\n        // pieces[0] is an empty string.\n        let pointer = 1;\n        // Positive is the number of real directories we've output, used for popping a parent directory.\n        // Eg, \"foo/bar/..\" will have a positive 2, and we can decrement to be left with just \"foo\".\n        let positive = 0;\n        // We need to keep a trailing slash if we encounter an empty directory (eg, splitting \"foo/\" will\n        // generate `[\"foo\", \"\"]` pieces). And, if we pop a parent directory. But once we encounter a\n        // real directory, we won't need to append, unless the other conditions happen again.\n        let addTrailingSlash = false;\n        for (let i = 1; i < pieces.length; i++) {\n            const piece = pieces[i];\n            // An empty directory, could be a trailing slash, or just a double \"//\" in the path.\n            if (!piece) {\n                addTrailingSlash = true;\n                continue;\n            }\n            // If we encounter a real directory, then we don't need to append anymore.\n            addTrailingSlash = false;\n            // A current directory, which we can always drop.\n            if (piece === '.')\n                continue;\n            // A parent directory, we need to see if there are any real directories we can pop. Else, we\n            // have an excess of parents, and we'll need to keep the \"..\".\n            if (piece === '..') {\n                if (positive) {\n                    addTrailingSlash = true;\n                    positive--;\n                    pointer--;\n                }\n                else if (rel) {\n                    // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute\n                    // URL, protocol relative URL, or an absolute path, we don't need to keep excess.\n                    pieces[pointer++] = piece;\n                }\n                continue;\n            }\n            // We've encountered a real directory. Move it to the next insertion pointer, which accounts for\n            // any popped or dropped directories.\n            pieces[pointer++] = piece;\n            positive++;\n        }\n        let path = '';\n        for (let i = 1; i < pointer; i++) {\n            path += '/' + pieces[i];\n        }\n        if (!path || (addTrailingSlash && !path.endsWith('/..'))) {\n            path += '/';\n        }\n        url.path = path;\n    }\n    /**\n     * Attempts to resolve `input` URL/path relative to `base`.\n     */\n    function resolve(input, base) {\n        if (!input && !base)\n            return '';\n        const url = parseUrl(input);\n        let inputType = url.type;\n        if (base && inputType !== 7 /* Absolute */) {\n            const baseUrl = parseUrl(base);\n            const baseType = baseUrl.type;\n            switch (inputType) {\n                case 1 /* Empty */:\n                    url.hash = baseUrl.hash;\n                // fall through\n                case 2 /* Hash */:\n                    url.query = baseUrl.query;\n                // fall through\n                case 3 /* Query */:\n                case 4 /* RelativePath */:\n                    mergePaths(url, baseUrl);\n                // fall through\n                case 5 /* AbsolutePath */:\n                    // The host, user, and port are joined, you can't copy one without the others.\n                    url.user = baseUrl.user;\n                    url.host = baseUrl.host;\n                    url.port = baseUrl.port;\n                // fall through\n                case 6 /* SchemeRelative */:\n                    // The input doesn't have a schema at least, so we need to copy at least that over.\n                    url.scheme = baseUrl.scheme;\n            }\n            if (baseType > inputType)\n                inputType = baseType;\n        }\n        normalizePath(url, inputType);\n        const queryHash = url.query + url.hash;\n        switch (inputType) {\n            // This is impossible, because of the empty checks at the start of the function.\n            // case UrlType.Empty:\n            case 2 /* Hash */:\n            case 3 /* Query */:\n                return queryHash;\n            case 4 /* RelativePath */: {\n                // The first char is always a \"/\", and we need it to be relative.\n                const path = url.path.slice(1);\n                if (!path)\n                    return queryHash || '.';\n                if (isRelative(base || input) && !isRelative(path)) {\n                    // If base started with a leading \".\", or there is no base and input started with a \".\",\n                    // then we need to ensure that the relative path starts with a \".\". We don't know if\n                    // relative starts with a \"..\", though, so check before prepending.\n                    return './' + path + queryHash;\n                }\n                return path + queryHash;\n            }\n            case 5 /* AbsolutePath */:\n                return url.path + queryHash;\n            default:\n                return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash;\n        }\n    }\n}\n","min_source":"function _(t,e,n,s,r){s(),n.default=function(t,e){if(!t&&!e)return\"\";const n=p(t);let s=n.type;if(e&&7!==s){const t=p(e),r=t.type;switch(s){case 1:n.hash=t.hash;case 2:n.query=t.query;case 3:case 4:!function(t,e){l(e,e.type),\"/\"===t.path?t.path=e.path:t.path=function(t){if(t.endsWith(\"/..\"))return t;const e=t.lastIndexOf(\"/\");return t.slice(0,e+1)}(e.path)+t.path}(n,t);case 5:n.user=t.user,n.host=t.host,n.port=t.port;case 6:n.scheme=t.scheme}r>s&&(s=r)}l(n,s);const r=n.query+n.hash;switch(s){case 2:case 3:return r;case 4:{const s=n.path.slice(1);return s?i(e||t)&&!i(s)?\"./\"+s+r:s+r:r||\".\"}case 5:return n.path+r;default:return n.scheme+\"//\"+n.user+n.host+n.port+n.path+r}};const c=/^[\\w+.-]+:\\/\\//,h=/^([\\w+.-]+:)\\/\\/([^@/#?]*@)?([^:/#?]*)(:\\d+)?(\\/[^#?]*)?(\\?[^#]*)?(#.*)?/,o=/^file:(?:\\/\\/((?![a-z]:)[^/#?]*)?)?(\\/?[^#?]*)(\\?[^#]*)?(#.*)?/i;function u(t){return t.startsWith(\"/\")}function i(t){return/^[.?#]/.test(t)}function a(t){const e=h.exec(t);return f(e[1],e[2]||\"\",e[3],e[4]||\"\",e[5]||\"/\",e[6]||\"\",e[7]||\"\")}function f(t,e,n,s,r,c,h){return{scheme:t,user:e,host:n,port:s,path:r,query:c,hash:h,type:7}}function p(t){if(function(t){return t.startsWith(\"//\")}(t)){const e=a(\"http:\"+t);return e.scheme=\"\",e.type=6,e}if(u(t)){const e=a(\"http://foo.com\"+t);return e.scheme=\"\",e.host=\"\",e.type=5,e}if(function(t){return t.startsWith(\"file:\")}(t))return function(t){const e=o.exec(t),n=e[2];return f(\"file:\",\"\",e[1]||\"\",\"\",u(n)?n:\"/\"+n,e[3]||\"\",e[4]||\"\")}(t);if(function(t){return c.test(t)}(t))return a(t);const e=a(\"http://foo.com/\"+t);return e.scheme=\"\",e.host=\"\",e.type=t?t.startsWith(\"?\")?3:t.startsWith(\"#\")?2:4:1,e}function l(t,e){const n=e<=4,s=t.path.split(\"/\");let r=1,c=0,h=!1;for(let t=1;t<s.length;t++){const e=s[t];e?(h=!1,\".\"!==e&&(\"..\"!==e?(s[r++]=e,c++):c?(h=!0,c--,r--):n&&(s[r++]=e))):h=!0}let o=\"\";for(let t=1;t<r;t++)o+=\"/\"+s[t];(!o||h&&!o.endsWith(\"/..\"))&&(o+=\"/\"),t.path=o}}\n//# sourceMappingURL=resolve-uri.min.js.map","min_map":"{\"version\":3,\"file\":\"resolve-uri.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"input\",\"base\",\"url\",\"parseUrl\",\"inputType\",\"type\",\"baseUrl\",\"baseType\",\"hash\",\"query\",\"normalizePath\",\"path\",\"endsWith\",\"index\",\"lastIndexOf\",\"slice\",\"stripPathFilename\",\"mergePaths\",\"user\",\"host\",\"port\",\"scheme\",\"queryHash\",\"isRelative\",\"schemeRegex\",\"urlRegex\",\"fileRegex\",\"isAbsolutePath\",\"startsWith\",\"test\",\"parseAbsoluteUrl\",\"match\",\"exec\",\"makeUrl\",\"isSchemeRelativeUrl\",\"isFileUrl\",\"parseFileUrl\",\"isAbsoluteUrl\",\"rel\",\"pieces\",\"split\",\"pointer\",\"positive\",\"addTrailingSlash\",\"i\",\"length\",\"piece\"],\"sources\":[\"0\"],\"mappings\":\"AAAmD,SA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GApDJ,SAAuBA,GACnB,OAAOwB,EAAYK,KAAK7B,EAC5B,CAkDQqC,CAAcrC,GACd,OAAO8B,EAAiB9B,GAC5B,MAAME,EAAM4B,EAAiB,kBAAoB9B,GAUjD,OATAE,EAAImB,OAAS,GACbnB,EAAIiB,KAAO,GACXjB,EAAIG,KAAOL,EACLA,EAAM4B,WAAW,KACb,EACA5B,EAAM4B,WAAW,KACb,EACA,EACR,EACC1B,CACX,CAyBA,SAASQ,EAAcR,EAAKG,GACxB,MAAMiC,EAAMjC,GAAQ,EACdkC,EAASrC,EAAIS,KAAK6B,MAAM,KAG9B,IAAIC,EAAU,EAGVC,EAAW,EAIXC,GAAmB,EACvB,IAAK,IAAIC,EAAI,EAAGA,EAAIL,EAAOM,OAAQD,IAAK,CACpC,MAAME,EAAQP,EAAOK,GAEhBE,GAKLH,GAAmB,EAEL,MAAVG,IAIU,OAAVA,GAeJP,EAAOE,KAAaK,EACpBJ,KAfQA,GACAC,GAAmB,EACnBD,IACAD,KAEKH,IAGLC,EAAOE,KAAaK,KAnBxBH,GAAmB,CA2B3B,CACA,IAAIhC,EAAO,GACX,IAAK,IAAIiC,EAAI,EAAGA,EAAIH,EAASG,IACzBjC,GAAQ,IAAM4B,EAAOK,KAEpBjC,GAASgC,IAAqBhC,EAAKC,SAAS,UAC7CD,GAAQ,KAEZT,EAAIS,KAAOA,CACf,CA+DJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/HelperManager.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/HelperManager.js","resolution":"ESM","id":"40e1a4d3af","hash":"40e1a4d3affd2d6508578027bd5bc1402dca3661346ca33840e2b8c892e89e82","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.HelperManager = void 0;\nconst HELPERS = {\n    require: `\n    import {createRequire as CREATE_REQUIRE_NAME} from \"module\";\n    const require = CREATE_REQUIRE_NAME(import.meta.url);\n  `,\n    interopRequireWildcard: `\n    function interopRequireWildcard(obj) {\n      if (obj && obj.__esModule) {\n        return obj;\n      } else {\n        var newObj = {};\n        if (obj != null) {\n          for (var key in obj) {\n            if (Object.prototype.hasOwnProperty.call(obj, key)) {\n              newObj[key] = obj[key];\n            }\n          }\n        }\n        newObj.default = obj;\n        return newObj;\n      }\n    }\n  `,\n    interopRequireDefault: `\n    function interopRequireDefault(obj) {\n      return obj && obj.__esModule ? obj : { default: obj };\n    }\n  `,\n    createNamedExportFrom: `\n    function createNamedExportFrom(obj, localName, importedName) {\n      Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});\n    }\n  `,\n    // Note that TypeScript and Babel do this differently; TypeScript does a simple existence\n    // check in the exports object and does a plain assignment, whereas Babel uses\n    // defineProperty and builds an object of explicitly-exported names so that star exports can\n    // always take lower precedence. For now, we do the easier TypeScript thing.\n    createStarExport: `\n    function createStarExport(obj) {\n      Object.keys(obj)\n        .filter((key) => key !== \"default\" && key !== \"__esModule\")\n        .forEach((key) => {\n          if (exports.hasOwnProperty(key)) {\n            return;\n          }\n          Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});\n        });\n    }\n  `,\n    nullishCoalesce: `\n    function nullishCoalesce(lhs, rhsFn) {\n      if (lhs != null) {\n        return lhs;\n      } else {\n        return rhsFn();\n      }\n    }\n  `,\n    asyncNullishCoalesce: `\n    async function asyncNullishCoalesce(lhs, rhsFn) {\n      if (lhs != null) {\n        return lhs;\n      } else {\n        return await rhsFn();\n      }\n    }\n  `,\n    optionalChain: `\n    function optionalChain(ops) {\n      let lastAccessLHS = undefined;\n      let value = ops[0];\n      let i = 1;\n      while (i < ops.length) {\n        const op = ops[i];\n        const fn = ops[i + 1];\n        i += 2;\n        if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n          return undefined;\n        }\n        if (op === 'access' || op === 'optionalAccess') {\n          lastAccessLHS = value;\n          value = fn(value);\n        } else if (op === 'call' || op === 'optionalCall') {\n          value = fn((...args) => value.call(lastAccessLHS, ...args));\n          lastAccessLHS = undefined;\n        }\n      }\n      return value;\n    }\n  `,\n    asyncOptionalChain: `\n    async function asyncOptionalChain(ops) {\n      let lastAccessLHS = undefined;\n      let value = ops[0];\n      let i = 1;\n      while (i < ops.length) {\n        const op = ops[i];\n        const fn = ops[i + 1];\n        i += 2;\n        if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n          return undefined;\n        }\n        if (op === 'access' || op === 'optionalAccess') {\n          lastAccessLHS = value;\n          value = await fn(value);\n        } else if (op === 'call' || op === 'optionalCall') {\n          value = await fn((...args) => value.call(lastAccessLHS, ...args));\n          lastAccessLHS = undefined;\n        }\n      }\n      return value;\n    }\n  `,\n    optionalChainDelete: `\n    function optionalChainDelete(ops) {\n      const result = OPTIONAL_CHAIN_NAME(ops);\n      return result == null ? true : result;\n    }\n  `,\n    asyncOptionalChainDelete: `\n    async function asyncOptionalChainDelete(ops) {\n      const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\n      return result == null ? true : result;\n    }\n  `,\n};\nclass HelperManager {\n    __init() { this.helperNames = {}; }\n    __init2() { this.createRequireName = null; }\n    constructor(nameManager) { ; this.nameManager = nameManager; HelperManager.prototype.__init.call(this); HelperManager.prototype.__init2.call(this); }\n    getHelperName(baseName) {\n        let helperName = this.helperNames[baseName];\n        if (helperName) {\n            return helperName;\n        }\n        helperName = this.nameManager.claimFreeName(`_${baseName}`);\n        this.helperNames[baseName] = helperName;\n        return helperName;\n    }\n    emitHelpers() {\n        let resultCode = \"\";\n        if (this.helperNames.optionalChainDelete) {\n            this.getHelperName(\"optionalChain\");\n        }\n        if (this.helperNames.asyncOptionalChainDelete) {\n            this.getHelperName(\"asyncOptionalChain\");\n        }\n        for (const [baseName, helperCodeTemplate] of Object.entries(HELPERS)) {\n            const helperName = this.helperNames[baseName];\n            let helperCode = helperCodeTemplate;\n            if (baseName === \"optionalChainDelete\") {\n                helperCode = helperCode.replace(\"OPTIONAL_CHAIN_NAME\", this.helperNames.optionalChain);\n            }\n            else if (baseName === \"asyncOptionalChainDelete\") {\n                helperCode = helperCode.replace(\"ASYNC_OPTIONAL_CHAIN_NAME\", this.helperNames.asyncOptionalChain);\n            }\n            else if (baseName === \"require\") {\n                if (this.createRequireName === null) {\n                    this.createRequireName = this.nameManager.claimFreeName(\"_createRequire\");\n                }\n                helperCode = helperCode.replace(/CREATE_REQUIRE_NAME/g, this.createRequireName);\n            }\n            if (helperName) {\n                resultCode += \" \";\n                resultCode += helperCode.replace(baseName, helperName).replace(/\\s+/g, \" \").trim();\n            }\n        }\n        return resultCode;\n    }\n}\nexports.HelperManager = HelperManager;\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"HelperManager"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/HelperManager.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const HELPERS = {\n        require: `\n    import {createRequire as CREATE_REQUIRE_NAME} from \"module\";\n    const require = CREATE_REQUIRE_NAME(import.meta.url);\n  `,\n        interopRequireWildcard: `\n    function interopRequireWildcard(obj) {\n      if (obj && obj.__esModule) {\n        return obj;\n      } else {\n        var newObj = {};\n        if (obj != null) {\n          for (var key in obj) {\n            if (Object.prototype.hasOwnProperty.call(obj, key)) {\n              newObj[key] = obj[key];\n            }\n          }\n        }\n        newObj.default = obj;\n        return newObj;\n      }\n    }\n  `,\n        interopRequireDefault: `\n    function interopRequireDefault(obj) {\n      return obj && obj.__esModule ? obj : { default: obj };\n    }\n  `,\n        createNamedExportFrom: `\n    function createNamedExportFrom(obj, localName, importedName) {\n      Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});\n    }\n  `,\n        // Note that TypeScript and Babel do this differently; TypeScript does a simple existence\n        // check in the exports object and does a plain assignment, whereas Babel uses\n        // defineProperty and builds an object of explicitly-exported names so that star exports can\n        // always take lower precedence. For now, we do the easier TypeScript thing.\n        createStarExport: `\n    function createStarExport(obj) {\n      Object.keys(obj)\n        .filter((key) => key !== \"default\" && key !== \"__esModule\")\n        .forEach((key) => {\n          if (exports.hasOwnProperty(key)) {\n            return;\n          }\n          Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});\n        });\n    }\n  `,\n        nullishCoalesce: `\n    function nullishCoalesce(lhs, rhsFn) {\n      if (lhs != null) {\n        return lhs;\n      } else {\n        return rhsFn();\n      }\n    }\n  `,\n        asyncNullishCoalesce: `\n    async function asyncNullishCoalesce(lhs, rhsFn) {\n      if (lhs != null) {\n        return lhs;\n      } else {\n        return await rhsFn();\n      }\n    }\n  `,\n        optionalChain: `\n    function optionalChain(ops) {\n      let lastAccessLHS = undefined;\n      let value = ops[0];\n      let i = 1;\n      while (i < ops.length) {\n        const op = ops[i];\n        const fn = ops[i + 1];\n        i += 2;\n        if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n          return undefined;\n        }\n        if (op === 'access' || op === 'optionalAccess') {\n          lastAccessLHS = value;\n          value = fn(value);\n        } else if (op === 'call' || op === 'optionalCall') {\n          value = fn((...args) => value.call(lastAccessLHS, ...args));\n          lastAccessLHS = undefined;\n        }\n      }\n      return value;\n    }\n  `,\n        asyncOptionalChain: `\n    async function asyncOptionalChain(ops) {\n      let lastAccessLHS = undefined;\n      let value = ops[0];\n      let i = 1;\n      while (i < ops.length) {\n        const op = ops[i];\n        const fn = ops[i + 1];\n        i += 2;\n        if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n          return undefined;\n        }\n        if (op === 'access' || op === 'optionalAccess') {\n          lastAccessLHS = value;\n          value = await fn(value);\n        } else if (op === 'call' || op === 'optionalCall') {\n          value = await fn((...args) => value.call(lastAccessLHS, ...args));\n          lastAccessLHS = undefined;\n        }\n      }\n      return value;\n    }\n  `,\n        optionalChainDelete: `\n    function optionalChainDelete(ops) {\n      const result = OPTIONAL_CHAIN_NAME(ops);\n      return result == null ? true : result;\n    }\n  `,\n        asyncOptionalChainDelete: `\n    async function asyncOptionalChainDelete(ops) {\n      const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\n      return result == null ? true : result;\n    }\n  `,\n    };\n    class HelperManager {\n        __init() { this.helperNames = {}; }\n        __init2() { this.createRequireName = null; }\n        constructor(nameManager) { ; this.nameManager = nameManager; HelperManager.prototype.__init.call(this); HelperManager.prototype.__init2.call(this); }\n        getHelperName(baseName) {\n            let helperName = this.helperNames[baseName];\n            if (helperName) {\n                return helperName;\n            }\n            helperName = this.nameManager.claimFreeName(`_${baseName}`);\n            this.helperNames[baseName] = helperName;\n            return helperName;\n        }\n        emitHelpers() {\n            let resultCode = \"\";\n            if (this.helperNames.optionalChainDelete) {\n                this.getHelperName(\"optionalChain\");\n            }\n            if (this.helperNames.asyncOptionalChainDelete) {\n                this.getHelperName(\"asyncOptionalChain\");\n            }\n            for (const [baseName, helperCodeTemplate] of Object.entries(HELPERS)) {\n                const helperName = this.helperNames[baseName];\n                let helperCode = helperCodeTemplate;\n                if (baseName === \"optionalChainDelete\") {\n                    helperCode = helperCode.replace(\"OPTIONAL_CHAIN_NAME\", this.helperNames.optionalChain);\n                }\n                else if (baseName === \"asyncOptionalChainDelete\") {\n                    helperCode = helperCode.replace(\"ASYNC_OPTIONAL_CHAIN_NAME\", this.helperNames.asyncOptionalChain);\n                }\n                else if (baseName === \"require\") {\n                    if (this.createRequireName === null) {\n                        this.createRequireName = this.nameManager.claimFreeName(\"_createRequire\");\n                    }\n                    helperCode = helperCode.replace(/CREATE_REQUIRE_NAME/g, this.createRequireName);\n                }\n                if (helperName) {\n                    resultCode += \" \";\n                    resultCode += helperCode.replace(baseName, helperName).replace(/\\s+/g, \" \").trim();\n                }\n            }\n            return resultCode;\n        }\n    }\n    exports.HelperManager = HelperManager;\n}\n","min_source":"function _(e,n,t,a,l){a();const o={require:'\\n    import {createRequire as CREATE_REQUIRE_NAME} from \"module\";\\n    const require = CREATE_REQUIRE_NAME(import.meta.url);\\n  ',interopRequireWildcard:\"\\n    function interopRequireWildcard(obj) {\\n      if (obj && obj.__esModule) {\\n        return obj;\\n      } else {\\n        var newObj = {};\\n        if (obj != null) {\\n          for (var key in obj) {\\n            if (Object.prototype.hasOwnProperty.call(obj, key)) {\\n              newObj[key] = obj[key];\\n            }\\n          }\\n        }\\n        newObj.default = obj;\\n        return newObj;\\n      }\\n    }\\n  \",interopRequireDefault:\"\\n    function interopRequireDefault(obj) {\\n      return obj && obj.__esModule ? obj : { default: obj };\\n    }\\n  \",createNamedExportFrom:\"\\n    function createNamedExportFrom(obj, localName, importedName) {\\n      Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});\\n    }\\n  \",createStarExport:'\\n    function createStarExport(obj) {\\n      Object.keys(obj)\\n        .filter((key) => key !== \"default\" && key !== \"__esModule\")\\n        .forEach((key) => {\\n          if (exports.hasOwnProperty(key)) {\\n            return;\\n          }\\n          Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});\\n        });\\n    }\\n  ',nullishCoalesce:\"\\n    function nullishCoalesce(lhs, rhsFn) {\\n      if (lhs != null) {\\n        return lhs;\\n      } else {\\n        return rhsFn();\\n      }\\n    }\\n  \",asyncNullishCoalesce:\"\\n    async function asyncNullishCoalesce(lhs, rhsFn) {\\n      if (lhs != null) {\\n        return lhs;\\n      } else {\\n        return await rhsFn();\\n      }\\n    }\\n  \",optionalChain:\"\\n    function optionalChain(ops) {\\n      let lastAccessLHS = undefined;\\n      let value = ops[0];\\n      let i = 1;\\n      while (i < ops.length) {\\n        const op = ops[i];\\n        const fn = ops[i + 1];\\n        i += 2;\\n        if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\\n          return undefined;\\n        }\\n        if (op === 'access' || op === 'optionalAccess') {\\n          lastAccessLHS = value;\\n          value = fn(value);\\n        } else if (op === 'call' || op === 'optionalCall') {\\n          value = fn((...args) => value.call(lastAccessLHS, ...args));\\n          lastAccessLHS = undefined;\\n        }\\n      }\\n      return value;\\n    }\\n  \",asyncOptionalChain:\"\\n    async function asyncOptionalChain(ops) {\\n      let lastAccessLHS = undefined;\\n      let value = ops[0];\\n      let i = 1;\\n      while (i < ops.length) {\\n        const op = ops[i];\\n        const fn = ops[i + 1];\\n        i += 2;\\n        if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\\n          return undefined;\\n        }\\n        if (op === 'access' || op === 'optionalAccess') {\\n          lastAccessLHS = value;\\n          value = await fn(value);\\n        } else if (op === 'call' || op === 'optionalCall') {\\n          value = await fn((...args) => value.call(lastAccessLHS, ...args));\\n          lastAccessLHS = undefined;\\n        }\\n      }\\n      return value;\\n    }\\n  \",optionalChainDelete:\"\\n    function optionalChainDelete(ops) {\\n      const result = OPTIONAL_CHAIN_NAME(ops);\\n      return result == null ? true : result;\\n    }\\n  \",asyncOptionalChainDelete:\"\\n    async function asyncOptionalChainDelete(ops) {\\n      const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\\n      return result == null ? true : result;\\n    }\\n  \"};class i{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(e){this.nameManager=e,i.prototype.__init.call(this),i.prototype.__init2.call(this)}getHelperName(e){let n=this.helperNames[e];return n||(n=this.nameManager.claimFreeName(`_${e}`),this.helperNames[e]=n,n)}emitHelpers(){let e=\"\";this.helperNames.optionalChainDelete&&this.getHelperName(\"optionalChain\"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName(\"asyncOptionalChain\");for(const[n,t]of Object.entries(o)){const a=this.helperNames[n];let l=t;\"optionalChainDelete\"===n?l=l.replace(\"OPTIONAL_CHAIN_NAME\",this.helperNames.optionalChain):\"asyncOptionalChainDelete\"===n?l=l.replace(\"ASYNC_OPTIONAL_CHAIN_NAME\",this.helperNames.asyncOptionalChain):\"require\"===n&&(null===this.createRequireName&&(this.createRequireName=this.nameManager.claimFreeName(\"_createRequire\")),l=l.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),a&&(e+=\" \",e+=l.replace(n,a).replace(/\\s+/g,\" \").trim())}return e}}t.HelperManager=i}\n//# sourceMappingURL=HelperManager.min.js.map","min_map":"{\"version\":3,\"file\":\"HelperManager.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"HELPERS\",\"interopRequireWildcard\",\"interopRequireDefault\",\"createNamedExportFrom\",\"createStarExport\",\"nullishCoalesce\",\"asyncNullishCoalesce\",\"optionalChain\",\"asyncOptionalChain\",\"optionalChainDelete\",\"asyncOptionalChainDelete\",\"HelperManager\",\"__init\",\"this\",\"helperNames\",\"__init2\",\"createRequireName\",\"constructor\",\"nameManager\",\"prototype\",\"call\",\"getHelperName\",\"baseName\",\"helperName\",\"claimFreeName\",\"emitHelpers\",\"resultCode\",\"helperCodeTemplate\",\"Object\",\"entries\",\"helperCode\",\"replace\",\"trim\"],\"sources\":[\"0\"],\"mappings\":\"AAAwC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACrFD,IACA,MAAME,EAAU,CACZL,QAAS,oIAITM,uBAAwB,4aAkBxBC,sBAAuB,uHAKvBC,sBAAuB,0MASvBC,iBAAkB,wXAYlBC,gBAAiB,2JASjBC,qBAAsB,4KAStBC,cAAe,6rBAuBfC,mBAAoB,otBAuBpBC,oBAAqB,qJAMrBC,yBAA0B,6KAO9B,MAAMC,EACF,MAAAC,GAAWC,KAAKC,YAAc,CAAC,CAAG,CAClC,OAAAC,GAAYF,KAAKG,kBAAoB,IAAM,CAC3C,WAAAC,CAAYC,GAAiBL,KAAKK,YAAcA,EAAaP,EAAcQ,UAAUP,OAAOQ,KAAKP,MAAOF,EAAcQ,UAAUJ,QAAQK,KAAKP,KAAO,CACpJ,aAAAQ,CAAcC,GACV,IAAIC,EAAaV,KAAKC,YAAYQ,GAClC,OAAIC,IAGJA,EAAaV,KAAKK,YAAYM,cAAc,IAAIF,KAChDT,KAAKC,YAAYQ,GAAYC,EACtBA,EACX,CACA,WAAAE,GACI,IAAIC,EAAa,GACbb,KAAKC,YAAYL,qBACjBI,KAAKQ,cAAc,iBAEnBR,KAAKC,YAAYJ,0BACjBG,KAAKQ,cAAc,sBAEvB,IAAK,MAAOC,EAAUK,KAAuBC,OAAOC,QAAQ7B,GAAU,CAClE,MAAMuB,EAAaV,KAAKC,YAAYQ,GACpC,IAAIQ,EAAaH,EACA,wBAAbL,EACAQ,EAAaA,EAAWC,QAAQ,sBAAuBlB,KAAKC,YAAYP,eAEtD,6BAAbe,EACLQ,EAAaA,EAAWC,QAAQ,4BAA6BlB,KAAKC,YAAYN,oBAE5D,YAAbc,IAC0B,OAA3BT,KAAKG,oBACLH,KAAKG,kBAAoBH,KAAKK,YAAYM,cAAc,mBAE5DM,EAAaA,EAAWC,QAAQ,uBAAwBlB,KAAKG,oBAE7DO,IACAG,GAAc,IACdA,GAAcI,EAAWC,QAAQT,EAAUC,GAAYQ,QAAQ,OAAQ,KAAKC,OAEpF,CACA,OAAON,CACX,EAEJ7B,EAAQc,cAAgBA,CAC5B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/identifyShadowedGlobals.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/identifyShadowedGlobals.js","resolution":"ESM","id":"5f4ada3fc1","hash":"5f4ada3fc1230c1c3b3bb596d25a9a49c8845c999961293fb3c4e68e9c9b33df","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = identifyShadowedGlobals;\nexports.hasShadowedGlobals = hasShadowedGlobals;\nconst tokenizer_1 = require(\"./parser/tokenizer\");\nconst types_1 = require(\"./parser/tokenizer/types\");\n/**\n * Traverse the given tokens and modify them if necessary to indicate that some names shadow global\n * variables.\n */\nfunction identifyShadowedGlobals(tokens, scopes, globalNames) {\n    if (!hasShadowedGlobals(tokens, globalNames)) {\n        return;\n    }\n    markShadowedGlobals(tokens, scopes, globalNames);\n}\n/**\n * We can do a fast up-front check to see if there are any declarations to global names. If not,\n * then there's no point in computing scope assignments.\n */\n// Exported for testing.\nfunction hasShadowedGlobals(tokens, globalNames) {\n    for (const token of tokens.tokens) {\n        if (token.type === types_1.TokenType.name &&\n            !token.isType &&\n            (0, tokenizer_1.isNonTopLevelDeclaration)(token) &&\n            globalNames.has(tokens.identifierNameForToken(token))) {\n            return true;\n        }\n    }\n    return false;\n}\nfunction markShadowedGlobals(tokens, scopes, globalNames) {\n    const scopeStack = [];\n    let scopeIndex = scopes.length - 1;\n    // Scopes were generated at completion time, so they're sorted by end index, so we can maintain a\n    // good stack by going backwards through them.\n    for (let i = tokens.tokens.length - 1;; i--) {\n        while (scopeStack.length > 0 && scopeStack[scopeStack.length - 1].startTokenIndex === i + 1) {\n            scopeStack.pop();\n        }\n        while (scopeIndex >= 0 && scopes[scopeIndex].endTokenIndex === i + 1) {\n            scopeStack.push(scopes[scopeIndex]);\n            scopeIndex--;\n        }\n        // Process scopes after the last iteration so we can make sure we pop all of them.\n        if (i < 0) {\n            break;\n        }\n        const token = tokens.tokens[i];\n        const name = tokens.identifierNameForToken(token);\n        if (scopeStack.length > 1 && !token.isType && token.type === types_1.TokenType.name && globalNames.has(name)) {\n            if ((0, tokenizer_1.isBlockScopedDeclaration)(token)) {\n                markShadowedForScope(scopeStack[scopeStack.length - 1], tokens, name);\n            }\n            else if ((0, tokenizer_1.isFunctionScopedDeclaration)(token)) {\n                let stackIndex = scopeStack.length - 1;\n                while (stackIndex > 0 && !scopeStack[stackIndex].isFunctionScope) {\n                    stackIndex--;\n                }\n                if (stackIndex < 0) {\n                    throw new Error(\"Did not find parent function scope.\");\n                }\n                markShadowedForScope(scopeStack[stackIndex], tokens, name);\n            }\n        }\n    }\n    if (scopeStack.length > 0) {\n        throw new Error(\"Expected empty scope stack after processing file.\");\n    }\n}\nfunction markShadowedForScope(scope, tokens, name) {\n    for (let i = scope.startTokenIndex; i < scope.endTokenIndex; i++) {\n        const token = tokens.tokens[i];\n        if ((token.type === types_1.TokenType.name || token.type === types_1.TokenType.jsxName) &&\n            tokens.identifierNameForToken(token) === name) {\n            token.shadowsGlobal = true;\n        }\n    }\n}\n","type":"js","dependency_paths":[["./parser/tokenizer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["./parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"]],"dependency_map":[],"exported":[{"type":"named","name":"identifyShadowedGlobals"},{"type":"named","name":"hasShadowedGlobals"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/identifyShadowedGlobals.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = identifyShadowedGlobals;\n    exports.hasShadowedGlobals = hasShadowedGlobals;\n    const tokenizer_1 = require(\"bfb18d0576\") /* ./parser/tokenizer */;\n    const types_1 = require(\"f0c35cbd76\") /* ./parser/tokenizer/types */;\n    /**\n     * Traverse the given tokens and modify them if necessary to indicate that some names shadow global\n     * variables.\n     */\n    function identifyShadowedGlobals(tokens, scopes, globalNames) {\n        if (!hasShadowedGlobals(tokens, globalNames)) {\n            return;\n        }\n        markShadowedGlobals(tokens, scopes, globalNames);\n    }\n    /**\n     * We can do a fast up-front check to see if there are any declarations to global names. If not,\n     * then there's no point in computing scope assignments.\n     */\n    // Exported for testing.\n    function hasShadowedGlobals(tokens, globalNames) {\n        for (const token of tokens.tokens) {\n            if (token.type === types_1.TokenType.name &&\n                !token.isType &&\n                (0, tokenizer_1.isNonTopLevelDeclaration)(token) &&\n                globalNames.has(tokens.identifierNameForToken(token))) {\n                return true;\n            }\n        }\n        return false;\n    }\n    function markShadowedGlobals(tokens, scopes, globalNames) {\n        const scopeStack = [];\n        let scopeIndex = scopes.length - 1;\n        // Scopes were generated at completion time, so they're sorted by end index, so we can maintain a\n        // good stack by going backwards through them.\n        for (let i = tokens.tokens.length - 1;; i--) {\n            while (scopeStack.length > 0 && scopeStack[scopeStack.length - 1].startTokenIndex === i + 1) {\n                scopeStack.pop();\n            }\n            while (scopeIndex >= 0 && scopes[scopeIndex].endTokenIndex === i + 1) {\n                scopeStack.push(scopes[scopeIndex]);\n                scopeIndex--;\n            }\n            // Process scopes after the last iteration so we can make sure we pop all of them.\n            if (i < 0) {\n                break;\n            }\n            const token = tokens.tokens[i];\n            const name = tokens.identifierNameForToken(token);\n            if (scopeStack.length > 1 && !token.isType && token.type === types_1.TokenType.name && globalNames.has(name)) {\n                if ((0, tokenizer_1.isBlockScopedDeclaration)(token)) {\n                    markShadowedForScope(scopeStack[scopeStack.length - 1], tokens, name);\n                }\n                else if ((0, tokenizer_1.isFunctionScopedDeclaration)(token)) {\n                    let stackIndex = scopeStack.length - 1;\n                    while (stackIndex > 0 && !scopeStack[stackIndex].isFunctionScope) {\n                        stackIndex--;\n                    }\n                    if (stackIndex < 0) {\n                        throw new Error(\"Did not find parent function scope.\");\n                    }\n                    markShadowedForScope(scopeStack[stackIndex], tokens, name);\n                }\n            }\n        }\n        if (scopeStack.length > 0) {\n            throw new Error(\"Expected empty scope stack after processing file.\");\n        }\n    }\n    function markShadowedForScope(scope, tokens, name) {\n        for (let i = scope.startTokenIndex; i < scope.endTokenIndex; i++) {\n            const token = tokens.tokens[i];\n            if ((token.type === types_1.TokenType.name || token.type === types_1.TokenType.jsxName) &&\n                tokens.identifierNameForToken(token) === name) {\n                token.shadowsGlobal = true;\n            }\n        }\n    }\n}\n","min_source":"function _(e,n,o,t,i){t(),o.default=function(e,n,o){if(!f(e,o))return;!function(e,n,o){const t=[];let i=n.length-1;for(let f=e.tokens.length-1;;f--){for(;t.length>0&&t[t.length-1].startTokenIndex===f+1;)t.pop();for(;i>=0&&n[i].endTokenIndex===f+1;)t.push(n[i]),i--;if(f<0)break;const c=e.tokens[f],l=e.identifierNameForToken(c);if(t.length>1&&!c.isType&&c.type===s.TokenType.name&&o.has(l))if((0,r.isBlockScopedDeclaration)(c))a(t[t.length-1],e,l);else if((0,r.isFunctionScopedDeclaration)(c)){let n=t.length-1;for(;n>0&&!t[n].isFunctionScope;)n--;if(n<0)throw new Error(\"Did not find parent function scope.\");a(t[n],e,l)}}if(t.length>0)throw new Error(\"Expected empty scope stack after processing file.\")}(e,n,o)},o.hasShadowedGlobals=f;const r=e(\"bfb18d0576\"),s=e(\"f0c35cbd76\");function f(e,n){for(const o of e.tokens)if(o.type===s.TokenType.name&&!o.isType&&(0,r.isNonTopLevelDeclaration)(o)&&n.has(e.identifierNameForToken(o)))return!0;return!1}function a(e,n,o){for(let t=e.startTokenIndex;t<e.endTokenIndex;t++){const e=n.tokens[t];e.type!==s.TokenType.name&&e.type!==s.TokenType.jsxName||n.identifierNameForToken(e)!==o||(e.shadowsGlobal=!0)}}}\n//# sourceMappingURL=identifyShadowedGlobals.min.js.map","min_map":"{\"version\":3,\"file\":\"identifyShadowedGlobals.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"tokens\",\"scopes\",\"globalNames\",\"hasShadowedGlobals\",\"scopeStack\",\"scopeIndex\",\"length\",\"i\",\"startTokenIndex\",\"pop\",\"endTokenIndex\",\"push\",\"token\",\"name\",\"identifierNameForToken\",\"isType\",\"type\",\"types_1\",\"TokenType\",\"has\",\"tokenizer_1\",\"isBlockScopedDeclaration\",\"markShadowedForScope\",\"isFunctionScopedDeclaration\",\"stackIndex\",\"isFunctionScope\",\"Error\",\"markShadowedGlobals\",\"isNonTopLevelDeclaration\",\"scope\",\"jsxName\",\"shadowsGlobal\"],\"sources\":[\"0\"],\"mappings\":\"AAAkD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC/FD,IACAD,EAAQG,QAQR,SAAiCC,EAAQC,EAAQC,GAC7C,IAAKC,EAAmBH,EAAQE,GAC5B,QAoBR,SAA6BF,EAAQC,EAAQC,GACzC,MAAME,EAAa,GACnB,IAAIC,EAAaJ,EAAOK,OAAS,EAGjC,IAAK,IAAIC,EAAIP,EAAOA,OAAOM,OAAS,GAAIC,IAAK,CACzC,KAAOH,EAAWE,OAAS,GAAKF,EAAWA,E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EAAQC,UAAUL,MAAQD,EAAMI,OAASC,EAAQC,UAAUY,SAC3E9B,EAAOc,uBAAuBF,KAAWC,IACzCD,EAAMmB,eAAgB,EAE9B,CACJ,CACJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/NameManager.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/NameManager.js","resolution":"ESM","id":"425f39b83e","hash":"425f39b83e823e90a2e1ba1f10ae118b38bb0e0125c5524aea465d4d6efac7b7","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\nconst getIdentifierNames_1 = tslib_1.__importDefault(require(\"./util/getIdentifierNames\"));\nclass NameManager {\n    __init() { this.usedNames = new Set(); }\n    constructor(code, tokens) {\n        ;\n        NameManager.prototype.__init.call(this);\n        this.usedNames = new Set((0, getIdentifierNames_1.default)(code, tokens));\n    }\n    claimFreeName(name) {\n        const newName = this.findFreeName(name);\n        this.usedNames.add(newName);\n        return newName;\n    }\n    findFreeName(name) {\n        if (!this.usedNames.has(name)) {\n            return name;\n        }\n        let suffixNum = 2;\n        while (this.usedNames.has(name + String(suffixNum))) {\n            suffixNum++;\n        }\n        return name + String(suffixNum);\n    }\n}\nexports.default = NameManager;\n","type":"js","dependency_paths":[["./util/getIdentifierNames","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getIdentifierNames.js"]],"dependency_map":[],"exported":[{"type":"named","name":"NameManager"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/NameManager.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const getIdentifierNames_1 = tslib_1.__importDefault(require(\"981a8f5cdf\") /* ./util/getIdentifierNames */);\n    class NameManager {\n        __init() { this.usedNames = new Set(); }\n        constructor(code, tokens) {\n            ;\n            NameManager.prototype.__init.call(this);\n            this.usedNames = new Set((0, getIdentifierNames_1.default)(code, tokens));\n        }\n        claimFreeName(name) {\n            const newName = this.findFreeName(name);\n            this.usedNames.add(newName);\n            return newName;\n        }\n        findFreeName(name) {\n            if (!this.usedNames.has(name)) {\n                return name;\n            }\n            let suffixNum = 2;\n            while (this.usedNames.has(name + String(suffixNum))) {\n                suffixNum++;\n            }\n            return name + String(suffixNum);\n        }\n    }\n    exports.default = NameManager;\n}\n","min_source":"function _(e,t,s,i,a){i();const n=e(\"tslib\").__importDefault(e(\"981a8f5cdf\"));class r{__init(){this.usedNames=new Set}constructor(e,t){r.prototype.__init.call(this),this.usedNames=new Set((0,n.default)(e,t))}claimFreeName(e){const t=this.findFreeName(e);return this.usedNames.add(t),t}findFreeName(e){if(!this.usedNames.has(e))return e;let t=2;for(;this.usedNames.has(e+String(t));)t++;return e+String(t)}}s.default=r}\n//# sourceMappingURL=NameManager.min.js.map","min_map":"{\"version\":3,\"file\":\"NameManager.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"getIdentifierNames_1\",\"__importDefault\",\"NameManager\",\"__init\",\"this\",\"usedNames\",\"Set\",\"constructor\",\"code\",\"tokens\",\"prototype\",\"call\",\"default\",\"claimFreeName\",\"name\",\"newName\",\"findFreeName\",\"add\",\"has\",\"suffixNum\",\"String\"],\"sources\":[\"0\"],\"mappings\":\"AAAsC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACnFD,IACA,MACME,EADUL,EAAQ,SACaM,gBAAgBN,EAAQ,eAC7D,MAAMO,EACF,MAAAC,GAAWC,KAAKC,UAAY,IAAIC,GAAO,CACvC,WAAAC,CAAYC,EAAMC,GAEdP,EAAYQ,UAAUP,OAAOQ,KAAKP,MAClCA,KAAKC,UAAY,IAAIC,KAAI,EAAIN,EAAqBY,SAASJ,EAAMC,GACrE,CACA,aAAAI,CAAcC,GACV,MAAMC,EAAUX,KAAKY,aAAaF,GAElC,OADAV,KAAKC,UAAUY,IAAIF,GACZA,CACX,CACA,YAAAC,CAAaF,GACT,IAAKV,KAAKC,UAAUa,IAAIJ,GACpB,OAAOA,EAEX,IAAIK,EAAY,EAChB,KAAOf,KAAKC,UAAUa,IAAIJ,EAAOM,OAAOD,KACpCA,IAEJ,OAAOL,EAAOM,OAAOD,EACzB,EAEJtB,EAAQe,QAAUV,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getIdentifierNames.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/util/getIdentifierNames.js","resolution":"ESM","id":"981a8f5cdf","hash":"981a8f5cdf36494c740090525fe1be2c0d8db7eaff157ecf2232b0f25191f4a8","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = getIdentifierNames;\nconst types_1 = require(\"../parser/tokenizer/types\");\n/**\n * Get all identifier names in the code, in order, including duplicates.\n */\nfunction getIdentifierNames(code, tokens) {\n    const names = [];\n    for (const token of tokens) {\n        if (token.type === types_1.TokenType.name) {\n            names.push(code.slice(token.start, token.end));\n        }\n    }\n    return names;\n}\n","type":"js","dependency_paths":[["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"]],"dependency_map":[],"exported":[{"type":"named","name":"getIdentifierNames"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/util/getIdentifierNames.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = getIdentifierNames;\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    /**\n     * Get all identifier names in the code, in order, including duplicates.\n     */\n    function getIdentifierNames(code, tokens) {\n        const names = [];\n        for (const token of tokens) {\n            if (token.type === types_1.TokenType.name) {\n                names.push(code.slice(token.start, token.end));\n            }\n        }\n        return names;\n    }\n}\n","min_source":"function _(n,t,c,e,o){e(),c.default=function(n,t){const c=[];for(const e of t)e.type===f.TokenType.name&&c.push(n.slice(e.start,e.end));return c};const f=n(\"f0c35cbd76\")}\n//# sourceMappingURL=getIdentifierNames.min.js.map","min_map":"{\"version\":3,\"file\":\"getIdentifierNames.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"code\",\"tokens\",\"names\",\"token\",\"type\",\"types_1\",\"TokenType\",\"name\",\"push\",\"slice\",\"start\",\"end\"],\"sources\":[\"0\"],\"mappings\":\"AAAkD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC/FD,IACAD,EAAQG,QAKR,SAA4BC,EAAMC,GAC9B,MAAMC,EAAQ,GACd,IAAK,MAAMC,KAASF,EACZE,EAAMC,OAASC,EAAQC,UAAUC,MACjCL,EAAMM,KAAKR,EAAKS,MAAMN,EAAMO,MAAOP,EAAMQ,MAGjD,OAAOT,CACX,EAZA,MAAMG,EAAUX,EAAQ,aAa5B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/Options.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/Options.js","resolution":"ESM","id":"bb0c9c6022","hash":"bb0c9c6022003518ed4a13bdb7b95054b0fd6aa853ee4fb4a0b3e4b7acf514fb","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.validateOptions = validateOptions;\nconst tslib_1 = require(\"tslib\");\nconst ts_interface_checker_1 = require(\"ts-interface-checker\");\nconst Options_gen_types_1 = tslib_1.__importDefault(require(\"./Options-gen-types\"));\nconst { Options: OptionsChecker } = (0, ts_interface_checker_1.createCheckers)(Options_gen_types_1.default);\nfunction validateOptions(options) {\n    OptionsChecker.strictCheck(options);\n}\n","type":"js","dependency_paths":[["ts-interface-checker","/home/runner/work/panel/panel/panel/node_modules/ts-interface-checker/dist/index.js"],["./Options-gen-types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/Options-gen-types.js"]],"dependency_map":[],"exported":[{"type":"named","name":"validateOptions"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/Options.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.validateOptions = validateOptions;\n    const tslib_1 = require(\"tslib\");\n    const ts_interface_checker_1 = require(\"566f6e7d92\") /* ts-interface-checker */;\n    const Options_gen_types_1 = tslib_1.__importDefault(require(\"26465ac544\") /* ./Options-gen-types */);\n    const { Options: OptionsChecker } = (0, ts_interface_checker_1.createCheckers)(Options_gen_types_1.default);\n    function validateOptions(options) {\n        OptionsChecker.strictCheck(options);\n    }\n}\n","min_source":"function _(t,e,c,i,n){i(),c.validateOptions=function(t){f.strictCheck(t)};const a=t(\"tslib\"),o=t(\"566f6e7d92\"),s=a.__importDefault(t(\"26465ac544\")),{Options:f}=(0,o.createCheckers)(s.default)}\n//# sourceMappingURL=Options.min.js.map","min_map":"{\"version\":3,\"file\":\"Options.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"validateOptions\",\"options\",\"OptionsChecker\",\"strictCheck\",\"tslib_1\",\"ts_interface_checker_1\",\"Options_gen_types_1\",\"__importDefault\",\"Options\",\"createCheckers\",\"default\"],\"sources\":[\"0\"],\"mappings\":\"AAAkC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC/ED,IACAD,EAAQG,gBAKR,SAAyBC,GACrBC,EAAeC,YAAYF,EAC/B,EANA,MAAMG,EAAUT,EAAQ,SAClBU,EAAyBV,EAAQ,cACjCW,EAAsBF,EAAQG,gBAAgBZ,EAAQ,gBACpDa,QAASN,IAAmB,EAAIG,EAAuBI,gBAAgBH,EAAoBI,QAIvG\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/ts-interface-checker/dist/index.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"ts-interface-checker/dist/index.js","resolution":"CJS","id":"566f6e7d92","hash":"566f6e7d922bcdee94871b78744cf7096d684d1044e9bb511910251cfc95b9d8","source":"\"use strict\";\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n    for (var r = Array(s), k = 0, i = 0; i < il; i++)\n        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n            r[k] = a[j];\n    return r;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Checker = exports.createCheckers = void 0;\nvar types_1 = require(\"./types\");\nvar util_1 = require(\"./util\");\n/**\n * Export functions used to define interfaces.\n */\nvar types_2 = require(\"./types\");\nObject.defineProperty(exports, \"TArray\", { enumerable: true, get: function () { return types_2.TArray; } });\nObject.defineProperty(exports, \"TEnumType\", { enumerable: true, get: function () { return types_2.TEnumType; } });\nObject.defineProperty(exports, \"TEnumLiteral\", { enumerable: true, get: function () { return types_2.TEnumLiteral; } });\nObject.defineProperty(exports, \"TFunc\", { enumerable: true, get: function () { return types_2.TFunc; } });\nObject.defineProperty(exports, \"TIface\", { enumerable: true, get: function () { return types_2.TIface; } });\nObject.defineProperty(exports, \"TLiteral\", { enumerable: true, get: function () { return types_2.TLiteral; } });\nObject.defineProperty(exports, \"TName\", { enumerable: true, get: function () { return types_2.TName; } });\nObject.defineProperty(exports, \"TOptional\", { enumerable: true, get: function () { return types_2.TOptional; } });\nObject.defineProperty(exports, \"TParam\", { enumerable: true, get: function () { return types_2.TParam; } });\nObject.defineProperty(exports, \"TParamList\", { enumerable: true, get: function () { return types_2.TParamList; } });\nObject.defineProperty(exports, \"TProp\", { enumerable: true, get: function () { return types_2.TProp; } });\nObject.defineProperty(exports, \"TTuple\", { enumerable: true, get: function () { return types_2.TTuple; } });\nObject.defineProperty(exports, \"TType\", { enumerable: true, get: function () { return types_2.TType; } });\nObject.defineProperty(exports, \"TUnion\", { enumerable: true, get: function () { return types_2.TUnion; } });\nObject.defineProperty(exports, \"TIntersection\", { enumerable: true, get: function () { return types_2.TIntersection; } });\nObject.defineProperty(exports, \"array\", { enumerable: true, get: function () { return types_2.array; } });\nObject.defineProperty(exports, \"enumlit\", { enumerable: true, get: function () { return types_2.enumlit; } });\nObject.defineProperty(exports, \"enumtype\", { enumerable: true, get: function () { return types_2.enumtype; } });\nObject.defineProperty(exports, \"func\", { enumerable: true, get: function () { return types_2.func; } });\nObject.defineProperty(exports, \"iface\", { enumerable: true, get: function () { return types_2.iface; } });\nObject.defineProperty(exports, \"lit\", { enumerable: true, get: function () { return types_2.lit; } });\nObject.defineProperty(exports, \"name\", { enumerable: true, get: function () { return types_2.name; } });\nObject.defineProperty(exports, \"opt\", { enumerable: true, get: function () { return types_2.opt; } });\nObject.defineProperty(exports, \"param\", { enumerable: true, get: function () { return types_2.param; } });\nObject.defineProperty(exports, \"tuple\", { enumerable: true, get: function () { return types_2.tuple; } });\nObject.defineProperty(exports, \"union\", { enumerable: true, get: function () { return types_2.union; } });\nObject.defineProperty(exports, \"intersection\", { enumerable: true, get: function () { return types_2.intersection; } });\nObject.defineProperty(exports, \"BasicType\", { enumerable: true, get: function () { return types_2.BasicType; } });\nvar util_2 = require(\"./util\");\nObject.defineProperty(exports, \"VError\", { enumerable: true, get: function () { return util_2.VError; } });\n/**\n * Takes one of more type suites (e.g. a module generated by `ts-interface-builder`), and combines\n * them into a suite of interface checkers. If a type is used by name, that name should be present\n * among the passed-in type suites.\n *\n * The returned object maps type names to Checker objects.\n */\nfunction createCheckers() {\n    var typeSuite = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        typeSuite[_i] = arguments[_i];\n    }\n    var fullSuite = Object.assign.apply(Object, __spreadArrays([{}, types_1.basicTypes], typeSuite));\n    var checkers = {};\n    for (var _a = 0, typeSuite_1 = typeSuite; _a < typeSuite_1.length; _a++) {\n        var suite_1 = typeSuite_1[_a];\n        for (var _b = 0, _c = Object.keys(suite_1); _b < _c.length; _b++) {\n            var name = _c[_b];\n            checkers[name] = new Checker(fullSuite, suite_1[name]);\n        }\n    }\n    return checkers;\n}\nexports.createCheckers = createCheckers;\n/**\n * Checker implements validation of objects, and also includes accessors to validate method calls.\n * Checkers should be created using `createCheckers()`.\n */\nvar Checker = /** @class */ (function () {\n    // Create checkers by using `createCheckers()` function.\n    function Checker(suite, ttype, _path) {\n        if (_path === void 0) { _path = 'value'; }\n        this.suite = suite;\n        this.ttype = ttype;\n        this._path = _path;\n        this.props = new Map();\n        if (ttype instanceof types_1.TIface) {\n            for (var _i = 0, _a = ttype.props; _i < _a.length; _i++) {\n                var p = _a[_i];\n                this.props.set(p.name, p.ttype);\n            }\n        }\n        this.checkerPlain = this.ttype.getChecker(suite, false);\n        this.checkerStrict = this.ttype.getChecker(suite, true);\n    }\n    /**\n     * Set the path to report in errors, instead of the default \"value\". (E.g. if the Checker is for\n     * a \"person\" interface, set path to \"person\" to report e.g. \"person.name is not a string\".)\n     */\n    Checker.prototype.setReportedPath = function (path) {\n        this._path = path;\n    };\n    /**\n     * Check that the given value satisfies this checker's type, or throw Error.\n     */\n    Checker.prototype.check = function (value) { return this._doCheck(this.checkerPlain, value); };\n    /**\n     * A fast check for whether or not the given value satisfies this Checker's type. This returns\n     * true or false, does not produce an error message, and is fast both on success and on failure.\n     */\n    Checker.prototype.test = function (value) {\n        return this.checkerPlain(value, new util_1.NoopContext());\n    };\n    /**\n     * Returns an error object describing the errors if the given value does not satisfy this\n     * Checker's type, or null if it does.\n     */\n    Checker.prototype.validate = function (value) {\n        return this._doValidate(this.checkerPlain, value);\n    };\n    /**\n     * Check that the given value satisfies this checker's type strictly. This checks that objects\n     * and tuples have no extra members. Note that this prevents backward compatibility, so usually\n     * a plain check() is more appropriate.\n     */\n    Checker.prototype.strictCheck = function (value) { return this._doCheck(this.checkerStrict, value); };\n    /**\n     * A fast strict check for whether or not the given value satisfies this Checker's type. Returns\n     * true or false, does not produce an error message, and is fast both on success and on failure.\n     */\n    Checker.prototype.strictTest = function (value) {\n        return this.checkerStrict(value, new util_1.NoopContext());\n    };\n    /**\n     * Returns an error object describing the errors if the given value does not satisfy this\n     * Checker's type strictly, or null if it does.\n     */\n    Checker.prototype.strictValidate = function (value) {\n        return this._doValidate(this.checkerStrict, value);\n    };\n    /**\n     * If this checker is for an interface, returns a Checker for the type required for the given\n     * property of this interface.\n     */\n    Checker.prototype.getProp = function (prop) {\n        var ttype = this.props.get(prop);\n        if (!ttype) {\n            throw new Error(\"Type has no property \" + prop);\n        }\n        return new Checker(this.suite, ttype, this._path + \".\" + prop);\n    };\n    /**\n     * If this checker is for an interface, returns a Checker for the argument-list required to call\n     * the given method of this interface. E.g. if this Checker is for the interface:\n     *    interface Foo {\n     *      find(s: string, pos?: number): number;\n     *    }\n     * Then methodArgs(\"find\").check(...) will succeed for [\"foo\"] and [\"foo\", 3], but not for [17].\n     */\n    Checker.prototype.methodArgs = function (methodName) {\n        var tfunc = this._getMethod(methodName);\n        return new Checker(this.suite, tfunc.paramList);\n    };\n    /**\n     * If this checker is for an interface, returns a Checker for the return value of the given\n     * method of this interface.\n     */\n    Checker.prototype.methodResult = function (methodName) {\n        var tfunc = this._getMethod(methodName);\n        return new Checker(this.suite, tfunc.result);\n    };\n    /**\n     * If this checker is for a function, returns a Checker for its argument-list.\n     */\n    Checker.prototype.getArgs = function () {\n        if (!(this.ttype instanceof types_1.TFunc)) {\n            throw new Error(\"getArgs() applied to non-function\");\n        }\n        return new Checker(this.suite, this.ttype.paramList);\n    };\n    /**\n     * If this checker is for a function, returns a Checker for its result.\n     */\n    Checker.prototype.getResult = function () {\n        if (!(this.ttype instanceof types_1.TFunc)) {\n            throw new Error(\"getResult() applied to non-function\");\n        }\n        return new Checker(this.suite, this.ttype.result);\n    };\n    /**\n     * Return the type for which this is a checker.\n     */\n    Checker.prototype.getType = function () {\n        return this.ttype;\n    };\n    /**\n     * Actual implementation of check() and strictCheck().\n     */\n    Checker.prototype._doCheck = function (checkerFunc, value) {\n        var noopCtx = new util_1.NoopContext();\n        if (!checkerFunc(value, noopCtx)) {\n            var detailCtx = new util_1.DetailContext();\n            checkerFunc(value, detailCtx);\n            throw detailCtx.getError(this._path);\n        }\n    };\n    Checker.prototype._doValidate = function (checkerFunc, value) {\n        var noopCtx = new util_1.NoopContext();\n        if (checkerFunc(value, noopCtx)) {\n            return null;\n        }\n        var detailCtx = new util_1.DetailContext();\n        checkerFunc(value, detailCtx);\n        return detailCtx.getErrorDetail(this._path);\n    };\n    Checker.prototype._getMethod = function (methodName) {\n        var ttype = this.props.get(methodName);\n        if (!ttype) {\n            throw new Error(\"Type has no property \" + methodName);\n        }\n        if (!(ttype instanceof types_1.TFunc)) {\n            throw new Error(\"Property \" + methodName + \" is not a method\");\n        }\n        return ttype;\n    };\n    return Checker;\n}());\nexports.Checker = Checker;\n","type":"js","dependency_paths":[["./types","/home/runner/work/panel/panel/panel/node_modules/ts-interface-checker/dist/types.js"],["./util","/home/runner/work/panel/panel/panel/node_modules/ts-interface-checker/dist/util.js"]],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* ts-interface-checker/dist/index.js */ function _(require, module, exports, __esModule, __esExport) {\n    var __spreadArrays = (this && this.__spreadArrays) || function () {\n        for (var s = 0, i = 0, il = arguments.length; i < il; i++)\n            s += arguments[i].length;\n        for (var r = Array(s), k = 0, i = 0; i < il; i++)\n            for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n                r[k] = a[j];\n        return r;\n    };\n    __esModule();\n    var types_1 = require(\"feda7bf54d\") /* ./types */;\n    var util_1 = require(\"cc5514a417\") /* ./util */;\n    /**\n     * Export functions used to define interfaces.\n     */\n    var types_2 = require(\"feda7bf54d\") /* ./types */;\n    __esExport(\"TArray\", types_2.TArray);\n    __esExport(\"TEnumType\", types_2.TEnumType);\n    __esExport(\"TEnumLiteral\", types_2.TEnumLiteral);\n    __esExport(\"TFunc\", types_2.TFunc);\n    __esExport(\"TIface\", types_2.TIface);\n    __esExport(\"TLiteral\", types_2.TLiteral);\n    __esExport(\"TName\", types_2.TName);\n    __esExport(\"TOptional\", types_2.TOptional);\n    __esExport(\"TParam\", types_2.TParam);\n    __esExport(\"TParamList\", types_2.TParamList);\n    __esExport(\"TProp\", types_2.TProp);\n    __esExport(\"TTuple\", types_2.TTuple);\n    __esExport(\"TType\", types_2.TType);\n    __esExport(\"TUnion\", types_2.TUnion);\n    __esExport(\"TIntersection\", types_2.TIntersection);\n    __esExport(\"array\", types_2.array);\n    __esExport(\"enumlit\", types_2.enumlit);\n    __esExport(\"enumtype\", types_2.enumtype);\n    __esExport(\"func\", types_2.func);\n    __esExport(\"iface\", types_2.iface);\n    __esExport(\"lit\", types_2.lit);\n    __esExport(\"name\", types_2.name);\n    __esExport(\"opt\", types_2.opt);\n    __esExport(\"param\", types_2.param);\n    __esExport(\"tuple\", types_2.tuple);\n    __esExport(\"union\", types_2.union);\n    __esExport(\"intersection\", types_2.intersection);\n    __esExport(\"BasicType\", types_2.BasicType);\n    var util_2 = require(\"cc5514a417\") /* ./util */;\n    __esExport(\"VError\", util_2.VError);\n    /**\n     * Takes one of more type suites (e.g. a module generated by `ts-interface-builder`), and combines\n     * them into a suite of interface checkers. If a type is used by name, that name should be present\n     * among the passed-in type suites.\n     *\n     * The returned object maps type names to Checker objects.\n     */\n    function createCheckers() {\n        var typeSuite = [];\n        for (var _i = 0; _i < arguments.length; _i++) {\n            typeSuite[_i] = arguments[_i];\n        }\n        var fullSuite = Object.assign.apply(Object, __spreadArrays([{}, types_1.basicTypes], typeSuite));\n        var checkers = {};\n        for (var _a = 0, typeSuite_1 = typeSuite; _a < typeSuite_1.length; _a++) {\n            var suite_1 = typeSuite_1[_a];\n            for (var _b = 0, _c = Object.keys(suite_1); _b < _c.length; _b++) {\n                var name = _c[_b];\n                checkers[name] = new Checker(fullSuite, suite_1[name]);\n            }\n        }\n        return checkers;\n    }\n    exports.createCheckers = createCheckers;\n    /**\n     * Checker implements validation of objects, and also includes accessors to validate method calls.\n     * Checkers should be created using `createCheckers()`.\n     */\n    var Checker = /** @class */ (function () {\n        // Create checkers by using `createCheckers()` function.\n        function Checker(suite, ttype, _path) {\n            if (_path === void 0) {\n                _path = 'value';\n            }\n            this.suite = suite;\n            this.ttype = ttype;\n            this._path = _path;\n            this.props = new Map();\n            if (ttype instanceof types_1.TIface) {\n                for (var _i = 0, _a = ttype.props; _i < _a.length; _i++) {\n                    var p = _a[_i];\n                    this.props.set(p.name, p.ttype);\n                }\n            }\n            this.checkerPlain = this.ttype.getChecker(suite, false);\n            this.checkerStrict = this.ttype.getChecker(suite, true);\n        }\n        /**\n         * Set the path to report in errors, instead of the default \"value\". (E.g. if the Checker is for\n         * a \"person\" interface, set path to \"person\" to report e.g. \"person.name is not a string\".)\n         */\n        Checker.prototype.setReportedPath = function (path) {\n            this._path = path;\n        };\n        /**\n         * Check that the given value satisfies this checker's type, or throw Error.\n         */\n        Checker.prototype.check = function (value) { return this._doCheck(this.checkerPlain, value); };\n        /**\n         * A fast check for whether or not the given value satisfies this Checker's type. This returns\n         * true or false, does not produce an error message, and is fast both on success and on failure.\n         */\n        Checker.prototype.test = function (value) {\n            return this.checkerPlain(value, new util_1.NoopContext());\n        };\n        /**\n         * Returns an error object describing the errors if the given value does not satisfy this\n         * Checker's type, or null if it does.\n         */\n        Checker.prototype.validate = function (value) {\n            return this._doValidate(this.checkerPlain, value);\n        };\n        /**\n         * Check that the given value satisfies this checker's type strictly. This checks that objects\n         * and tuples have no extra members. Note that this prevents backward compatibility, so usually\n         * a plain check() is more appropriate.\n         */\n        Checker.prototype.strictCheck = function (value) { return this._doCheck(this.checkerStrict, value); };\n        /**\n         * A fast strict check for whether or not the given value satisfies this Checker's type. Returns\n         * true or false, does not produce an error message, and is fast both on success and on failure.\n         */\n        Checker.prototype.strictTest = function (value) {\n            return this.checkerStrict(value, new util_1.NoopContext());\n        };\n        /**\n         * Returns an error object describing the errors if the given value does not satisfy this\n         * Checker's type strictly, or null if it does.\n         */\n        Checker.prototype.strictValidate = function (value) {\n            return this._doValidate(this.checkerStrict, value);\n        };\n        /**\n         * If this checker is for an interface, returns a Checker for the type required for the given\n         * property of this interface.\n         */\n        Checker.prototype.getProp = function (prop) {\n            var ttype = this.props.get(prop);\n            if (!ttype) {\n                throw new Error(\"Type has no property \" + prop);\n            }\n            return new Checker(this.suite, ttype, this._path + \".\" + prop);\n        };\n        /**\n         * If this checker is for an interface, returns a Checker for the argument-list required to call\n         * the given method of this interface. E.g. if this Checker is for the interface:\n         *    interface Foo {\n         *      find(s: string, pos?: number): number;\n         *    }\n         * Then methodArgs(\"find\").check(...) will succeed for [\"foo\"] and [\"foo\", 3], but not for [17].\n         */\n        Checker.prototype.methodArgs = function (methodName) {\n            var tfunc = this._getMethod(methodName);\n            return new Checker(this.suite, tfunc.paramList);\n        };\n        /**\n         * If this checker is for an interface, returns a Checker for the return value of the given\n         * method of this interface.\n         */\n        Checker.prototype.methodResult = function (methodName) {\n            var tfunc = this._getMethod(methodName);\n            return new Checker(this.suite, tfunc.result);\n        };\n        /**\n         * If this checker is for a function, returns a Checker for its argument-list.\n         */\n        Checker.prototype.getArgs = function () {\n            if (!(this.ttype instanceof types_1.TFunc)) {\n                throw new Error(\"getArgs() applied to non-function\");\n            }\n            return new Checker(this.suite, this.ttype.paramList);\n        };\n        /**\n         * If this checker is for a function, returns a Checker for its result.\n         */\n        Checker.prototype.getResult = function () {\n            if (!(this.ttype instanceof types_1.TFunc)) {\n                throw new Error(\"getResult() applied to non-function\");\n            }\n            return new Checker(this.suite, this.ttype.result);\n        };\n        /**\n         * Return the type for which this is a checker.\n         */\n        Checker.prototype.getType = function () {\n            return this.ttype;\n        };\n        /**\n         * Actual implementation of check() and strictCheck().\n         */\n        Checker.prototype._doCheck = function (checkerFunc, value) {\n            var noopCtx = new util_1.NoopContext();\n            if (!checkerFunc(value, noopCtx)) {\n                var detailCtx = new util_1.DetailContext();\n                checkerFunc(value, detailCtx);\n                throw detailCtx.getError(this._path);\n            }\n        };\n        Checker.prototype._doValidate = function (checkerFunc, value) {\n            var noopCtx = new util_1.NoopContext();\n            if (checkerFunc(value, noopCtx)) {\n                return null;\n            }\n            var detailCtx = new util_1.DetailContext();\n            checkerFunc(value, detailCtx);\n            return detailCtx.getErrorDetail(this._path);\n        };\n        Checker.prototype._getMethod = function (methodName) {\n            var ttype = this.props.get(methodName);\n            if (!ttype) {\n                throw new Error(\"Type has no property \" + methodName);\n            }\n            if (!(ttype instanceof types_1.TFunc)) {\n                throw new Error(\"Property \" + methodName + \" is not a method\");\n            }\n            return ttype;\n        };\n        return Checker;\n    }());\n    exports.Checker = Checker;\n}\n","min_source":"function _(t,e,r,n,o){var i=this&&this.__spreadArrays||function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<r;e++)for(var i=arguments[e],a=0,p=i.length;a<p;a++,o++)n[o]=i[a];return n};n();var a=t(\"feda7bf54d\"),p=t(\"cc5514a417\"),s=t(\"feda7bf54d\");o(\"TArray\",s.TArray),o(\"TEnumType\",s.TEnumType),o(\"TEnumLiteral\",s.TEnumLiteral),o(\"TFunc\",s.TFunc),o(\"TIface\",s.TIface),o(\"TLiteral\",s.TLiteral),o(\"TName\",s.TName),o(\"TOptional\",s.TOptional),o(\"TParam\",s.TParam),o(\"TParamList\",s.TParamList),o(\"TProp\",s.TProp),o(\"TTuple\",s.TTuple),o(\"TType\",s.TType),o(\"TUnion\",s.TUnion),o(\"TIntersection\",s.TIntersection),o(\"array\",s.array),o(\"enumlit\",s.enumlit),o(\"enumtype\",s.enumtype),o(\"func\",s.func),o(\"iface\",s.iface),o(\"lit\",s.lit),o(\"name\",s.name),o(\"opt\",s.opt),o(\"param\",s.param),o(\"tuple\",s.tuple),o(\"union\",s.union),o(\"intersection\",s.intersection),o(\"BasicType\",s.BasicType),o(\"VError\",t(\"cc5514a417\").VError),r.createCheckers=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=Object.assign.apply(Object,i([{},a.basicTypes],t)),n={},o=0,p=t;o<p.length;o++)for(var s=p[o],h=0,u=Object.keys(s);h<u.length;h++){var f=u[h];n[f]=new c(r,s[f])}return n};var c=function(){function t(t,e,r){if(void 0===r&&(r=\"value\"),this.suite=t,this.ttype=e,this._path=r,this.props=new Map,e instanceof a.TIface)for(var n=0,o=e.props;n<o.length;n++){var i=o[n];this.props.set(i.name,i.ttype)}this.checkerPlain=this.ttype.getChecker(t,!1),this.checkerStrict=this.ttype.getChecker(t,!0)}return t.prototype.setReportedPath=function(t){this._path=t},t.prototype.check=function(t){return this._doCheck(this.checkerPlain,t)},t.prototype.test=function(t){return this.checkerPlain(t,new p.NoopContext)},t.prototype.validate=function(t){return this._doValidate(this.checkerPlain,t)},t.prototype.strictCheck=function(t){return this._doCheck(this.checkerStrict,t)},t.prototype.strictTest=function(t){return this.checkerStrict(t,new p.NoopContext)},t.prototype.strictValidate=function(t){return this._doValidate(this.checkerStrict,t)},t.prototype.getProp=function(e){var r=this.props.get(e);if(!r)throw new Error(\"Type has no property \"+e);return new t(this.suite,r,this._path+\".\"+e)},t.prototype.methodArgs=function(e){var r=this._getMethod(e);return new t(this.suite,r.paramList)},t.prototype.methodResult=function(e){var r=this._getMethod(e);return new t(this.suite,r.result)},t.prototype.getArgs=function(){if(!(this.ttype instanceof a.TFunc))throw new Error(\"getArgs() applied to non-function\");return new t(this.suite,this.ttype.paramList)},t.prototype.getResult=function(){if(!(this.ttype instanceof a.TFunc))throw new Error(\"getResult() applied to non-function\");return new t(this.suite,this.ttype.result)},t.prototype.getType=function(){return this.ttype},t.prototype._doCheck=function(t,e){if(!t(e,new p.NoopContext)){var r=new p.DetailContext;throw t(e,r),r.getError(this._path)}},t.prototype._doValidate=function(t,e){if(t(e,new p.NoopContext))return null;var r=new p.DetailContext;return t(e,r),r.getErrorDetail(this._path)},t.prototype._getMethod=function(t){var e=this.props.get(t);if(!e)throw new Error(\"Type has no property \"+t);if(!(e instanceof a.TFunc))throw new Error(\"Property \"+t+\" is not a method\");return e},t}();r.Checker=c}\n//# sourceMappingURL=index.min.js.map","min_map":"{\"version\":3,\"file\":\"index.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"__spreadArrays\",\"this\",\"s\",\"i\",\"il\",\"arguments\",\"length\",\"r\",\"Array\",\"k\",\"a\",\"j\",\"jl\",\"types_1\",\"util_1\",\"types_2\",\"TArray\",\"TEnumType\",\"TEnumLiteral\",\"TFunc\",\"TIface\",\"TLiteral\",\"TName\",\"TOptional\",\"TParam\",\"TParamList\",\"TProp\",\"TTuple\",\"TType\",\"TUnion\",\"TIntersection\",\"array\",\"enumlit\",\"enumtype\",\"func\",\"iface\",\"lit\",\"name\",\"opt\",\"param\",\"tuple\",\"union\",\"intersection\",\"BasicType\",\"VError\",\"createCheckers\",\"typeSuite\",\"_i\",\"fullSuite\",\"Object\",\"assign\",\"apply\",\"basicTypes\",\"checkers\",\"_a\",\"typeSuite_1\",\"suite_1\",\"_b\",\"_c\",\"keys\",\"Checker\",\"suite\",\"ttype\",\"_path\",\"props\",\"Map\",\"p\",\"set\",\"checkerPlain\",\"getChecker\",\"checkerStrict\",\"prototype\",\"setReportedPath\",\"path\",\"check\",\"value\",\"_doCheck\",\"test\",\"NoopContext\",\"validate\",\"_doValidate\",\"strictCheck\",\"strictTest\",\"strictValidate\",\"getProp\",\"prop\",\"get\",\"Error\",\"methodArgs\",\"methodName\",\"tfunc\",\"_getMethod\",\"paramList\",\"methodResult\",\"result\",\"getArgs\",\"getResult\",\"getType\",\"checkerFunc\",\"detailCtx\",\"DetailContext\",\"getError\",\"getErrorDetail\"],\"sources\":[\"0\"],\"mappings\":\"AAAyC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACtF,IAAIC,EAAkBC,MAAQA,KAAKD,gBAAmB,WAClD,IAAK,IAAIE,EAAI,EAAGC,EAAI,EAAGC,EAAKC,UAAUC,OAAQH,EAAIC,EAAID,IAClDD,GAAKG,UAAUF,GAAGG,OACjB,IAAIC,EAAIC,MAAMN,GAAIO,EAAI,EAA3B,IAA8BN,EAAI,EAAGA,EAAIC,EAAID,IACzC,IAAK,I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EAAQW,UAAUK,SAAW,SAAUsB,EAAavB,GAEhD,IAAKuB,EAAYvB,EADH,IAAI7D,EAAOgE,aACS,CAC9B,IAAIqB,EAAY,IAAIrF,EAAOsF,cAE3B,MADAF,EAAYvB,EAAOwB,GACbA,EAAUE,SAASpG,KAAK8D,MAClC,CACJ,EACAH,EAAQW,UAAUS,YAAc,SAAUkB,EAAavB,GAEnD,GAAIuB,EAAYvB,EADF,IAAI7D,EAAOgE,aAErB,OAAO,KAEX,IAAIqB,EAAY,IAAIrF,EAAOsF,cAE3B,OADAF,EAAYvB,EAAOwB,GACZA,EAAUG,eAAerG,KAAK8D,MACzC,EACAH,EAAQW,UAAUoB,WAAa,SAAUF,GACrC,IAAI3B,EAAQ7D,KAAK+D,MAAMsB,IAAIG,GAC3B,IAAK3B,EACD,MAAM,IAAIyB,MAAM,wBAA0BE,GAE9C,KAAM3B,aAAiBjD,EAAQM,OAC3B,MAAM,IAAIoE,MAAM,YAAcE,EAAa,oBAE/C,OAAO3B,CACX,EACOF,CACX,CAtJ4B,GAuJ5B/D,EAAQ+D,QAAUA,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/ts-interface-checker/dist/types.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"ts-interface-checker/dist/types.js","resolution":"CJS","id":"feda7bf54d","hash":"feda7bf54d138a96b499921a97abf0d43eee5fda069a64aa05ecd5bb64267fca","source":"\"use strict\";\n/**\n * This module defines nodes used to define types and validations for objects and interfaces.\n */\n// tslint:disable:no-shadowed-variable prefer-for-of\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.basicTypes = exports.BasicType = exports.TParamList = exports.TParam = exports.param = exports.TFunc = exports.func = exports.TProp = exports.TOptional = exports.opt = exports.TIface = exports.iface = exports.TEnumLiteral = exports.enumlit = exports.TEnumType = exports.enumtype = exports.TIntersection = exports.intersection = exports.TUnion = exports.union = exports.TTuple = exports.tuple = exports.TArray = exports.array = exports.TLiteral = exports.lit = exports.TName = exports.name = exports.TType = void 0;\nvar util_1 = require(\"./util\");\n/** Node that represents a type. */\nvar TType = /** @class */ (function () {\n    function TType() {\n    }\n    return TType;\n}());\nexports.TType = TType;\n/** Parses a type spec into a TType node. */\nfunction parseSpec(typeSpec) {\n    return typeof typeSpec === \"string\" ? name(typeSpec) : typeSpec;\n}\nfunction getNamedType(suite, name) {\n    var ttype = suite[name];\n    if (!ttype) {\n        throw new Error(\"Unknown type \" + name);\n    }\n    return ttype;\n}\n/**\n * Defines a type name, either built-in, or defined in this suite. It can typically be included in\n * the specs as just a plain string.\n */\nfunction name(value) { return new TName(value); }\nexports.name = name;\nvar TName = /** @class */ (function (_super) {\n    __extends(TName, _super);\n    function TName(name) {\n        var _this = _super.call(this) || this;\n        _this.name = name;\n        _this._failMsg = \"is not a \" + name;\n        return _this;\n    }\n    TName.prototype.getChecker = function (suite, strict, allowedProps) {\n        var _this = this;\n        var ttype = getNamedType(suite, this.name);\n        var checker = ttype.getChecker(suite, strict, allowedProps);\n        if (ttype instanceof BasicType || ttype instanceof TName) {\n            return checker;\n        }\n        // For complex types, add an additional \"is not a <Type>\" message on failure.\n        return function (value, ctx) { return checker(value, ctx) ? true : ctx.fail(null, _this._failMsg, 0); };\n    };\n    return TName;\n}(TType));\nexports.TName = TName;\n/**\n * Defines a literal value, e.g. lit('hello') or lit(123).\n */\nfunction lit(value) { return new TLiteral(value); }\nexports.lit = lit;\nvar TLiteral = /** @class */ (function (_super) {\n    __extends(TLiteral, _super);\n    function TLiteral(value) {\n        var _this = _super.call(this) || this;\n        _this.value = value;\n        _this.name = JSON.stringify(value);\n        _this._failMsg = \"is not \" + _this.name;\n        return _this;\n    }\n    TLiteral.prototype.getChecker = function (suite, strict) {\n        var _this = this;\n        return function (value, ctx) { return (value === _this.value) ? true : ctx.fail(null, _this._failMsg, -1); };\n    };\n    return TLiteral;\n}(TType));\nexports.TLiteral = TLiteral;\n/**\n * Defines an array type, e.g. array('number').\n */\nfunction array(typeSpec) { return new TArray(parseSpec(typeSpec)); }\nexports.array = array;\nvar TArray = /** @class */ (function (_super) {\n    __extends(TArray, _super);\n    function TArray(ttype) {\n        var _this = _super.call(this) || this;\n        _this.ttype = ttype;\n        return _this;\n    }\n    TArray.prototype.getChecker = function (suite, strict) {\n        var itemChecker = this.ttype.getChecker(suite, strict);\n        return function (value, ctx) {\n            if (!Array.isArray(value)) {\n                return ctx.fail(null, \"is not an array\", 0);\n            }\n            for (var i = 0; i < value.length; i++) {\n                var ok = itemChecker(value[i], ctx);\n                if (!ok) {\n                    return ctx.fail(i, null, 1);\n                }\n            }\n            return true;\n        };\n    };\n    return TArray;\n}(TType));\nexports.TArray = TArray;\n/**\n * Defines a tuple type, e.g. tuple('string', 'number').\n */\nfunction tuple() {\n    var typeSpec = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        typeSpec[_i] = arguments[_i];\n    }\n    return new TTuple(typeSpec.map(function (t) { return parseSpec(t); }));\n}\nexports.tuple = tuple;\nvar TTuple = /** @class */ (function (_super) {\n    __extends(TTuple, _super);\n    function TTuple(ttypes) {\n        var _this = _super.call(this) || this;\n        _this.ttypes = ttypes;\n        return _this;\n    }\n    TTuple.prototype.getChecker = function (suite, strict) {\n        var itemCheckers = this.ttypes.map(function (t) { return t.getChecker(suite, strict); });\n        var checker = function (value, ctx) {\n            if (!Array.isArray(value)) {\n                return ctx.fail(null, \"is not an array\", 0);\n            }\n            for (var i = 0; i < itemCheckers.length; i++) {\n                var ok = itemCheckers[i](value[i], ctx);\n                if (!ok) {\n                    return ctx.fail(i, null, 1);\n                }\n            }\n            return true;\n        };\n        if (!strict) {\n            return checker;\n        }\n        return function (value, ctx) {\n            if (!checker(value, ctx)) {\n                return false;\n            }\n            return value.length <= itemCheckers.length ? true :\n                ctx.fail(itemCheckers.length, \"is extraneous\", 2);\n        };\n    };\n    return TTuple;\n}(TType));\nexports.TTuple = TTuple;\n/**\n * Defines a union type, e.g. union('number', 'null').\n */\nfunction union() {\n    var typeSpec = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        typeSpec[_i] = arguments[_i];\n    }\n    return new TUnion(typeSpec.map(function (t) { return parseSpec(t); }));\n}\nexports.union = union;\nvar TUnion = /** @class */ (function (_super) {\n    __extends(TUnion, _super);\n    function TUnion(ttypes) {\n        var _this = _super.call(this) || this;\n        _this.ttypes = ttypes;\n        var names = ttypes.map(function (t) { return t instanceof TName || t instanceof TLiteral ? t.name : null; })\n            .filter(function (n) { return n; });\n        var otherTypes = ttypes.length - names.length;\n        if (names.length) {\n            if (otherTypes > 0) {\n                names.push(otherTypes + \" more\");\n            }\n            _this._failMsg = \"is none of \" + names.join(\", \");\n        }\n        else {\n            _this._failMsg = \"is none of \" + otherTypes + \" types\";\n        }\n        return _this;\n    }\n    TUnion.prototype.getChecker = function (suite, strict) {\n        var _this = this;\n        var itemCheckers = this.ttypes.map(function (t) { return t.getChecker(suite, strict); });\n        return function (value, ctx) {\n            var ur = ctx.unionResolver();\n            for (var i = 0; i < itemCheckers.length; i++) {\n                var ok = itemCheckers[i](value, ur.createContext());\n                if (ok) {\n                    return true;\n                }\n            }\n            ctx.resolveUnion(ur);\n            return ctx.fail(null, _this._failMsg, 0);\n        };\n    };\n    return TUnion;\n}(TType));\nexports.TUnion = TUnion;\n/**\n * Defines an intersection type, e.g. intersection('number', 'null').\n */\nfunction intersection() {\n    var typeSpec = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        typeSpec[_i] = arguments[_i];\n    }\n    return new TIntersection(typeSpec.map(function (t) { return parseSpec(t); }));\n}\nexports.intersection = intersection;\nvar TIntersection = /** @class */ (function (_super) {\n    __extends(TIntersection, _super);\n    function TIntersection(ttypes) {\n        var _this = _super.call(this) || this;\n        _this.ttypes = ttypes;\n        return _this;\n    }\n    TIntersection.prototype.getChecker = function (suite, strict) {\n        var allowedProps = new Set();\n        var itemCheckers = this.ttypes.map(function (t) { return t.getChecker(suite, strict, allowedProps); });\n        return function (value, ctx) {\n            var ok = itemCheckers.every(function (checker) { return checker(value, ctx); });\n            if (ok) {\n                return true;\n            }\n            return ctx.fail(null, null, 0);\n        };\n    };\n    return TIntersection;\n}(TType));\nexports.TIntersection = TIntersection;\n/**\n * Defines an enum type, e.g. enum({'A': 1, 'B': 2}).\n */\nfunction enumtype(values) {\n    return new TEnumType(values);\n}\nexports.enumtype = enumtype;\nvar TEnumType = /** @class */ (function (_super) {\n    __extends(TEnumType, _super);\n    function TEnumType(members) {\n        var _this = _super.call(this) || this;\n        _this.members = members;\n        _this.validValues = new Set();\n        _this._failMsg = \"is not a valid enum value\";\n        _this.validValues = new Set(Object.keys(members).map(function (name) { return members[name]; }));\n        return _this;\n    }\n    TEnumType.prototype.getChecker = function (suite, strict) {\n        var _this = this;\n        return function (value, ctx) {\n            return (_this.validValues.has(value) ? true : ctx.fail(null, _this._failMsg, 0));\n        };\n    };\n    return TEnumType;\n}(TType));\nexports.TEnumType = TEnumType;\n/**\n * Defines a literal enum value, such as Direction.Up, specified as enumlit(\"Direction\", \"Up\").\n */\nfunction enumlit(name, prop) {\n    return new TEnumLiteral(name, prop);\n}\nexports.enumlit = enumlit;\nvar TEnumLiteral = /** @class */ (function (_super) {\n    __extends(TEnumLiteral, _super);\n    function TEnumLiteral(enumName, prop) {\n        var _this = _super.call(this) || this;\n        _this.enumName = enumName;\n        _this.prop = prop;\n        _this._failMsg = \"is not \" + enumName + \".\" + prop;\n        return _this;\n    }\n    TEnumLiteral.prototype.getChecker = function (suite, strict) {\n        var _this = this;\n        var ttype = getNamedType(suite, this.enumName);\n        if (!(ttype instanceof TEnumType)) {\n            throw new Error(\"Type \" + this.enumName + \" used in enumlit is not an enum type\");\n        }\n        var val = ttype.members[this.prop];\n        if (!ttype.members.hasOwnProperty(this.prop)) {\n            throw new Error(\"Unknown value \" + this.enumName + \".\" + this.prop + \" used in enumlit\");\n        }\n        return function (value, ctx) { return (value === val) ? true : ctx.fail(null, _this._failMsg, -1); };\n    };\n    return TEnumLiteral;\n}(TType));\nexports.TEnumLiteral = TEnumLiteral;\nfunction makeIfaceProps(props) {\n    return Object.keys(props).map(function (name) { return makeIfaceProp(name, props[name]); });\n}\nfunction makeIfaceProp(name, prop) {\n    return prop instanceof TOptional ?\n        new TProp(name, prop.ttype, true) :\n        new TProp(name, parseSpec(prop), false);\n}\n/**\n * Defines an interface. The first argument is an array of interfaces that it extends, and the\n * second is an array of properties.\n */\nfunction iface(bases, props) {\n    return new TIface(bases, makeIfaceProps(props));\n}\nexports.iface = iface;\nvar TIface = /** @class */ (function (_super) {\n    __extends(TIface, _super);\n    function TIface(bases, props) {\n        var _this = _super.call(this) || this;\n        _this.bases = bases;\n        _this.props = props;\n        _this.propSet = new Set(props.map(function (p) { return p.name; }));\n        return _this;\n    }\n    TIface.prototype.getChecker = function (suite, strict, allowedProps) {\n        var _this = this;\n        var baseCheckers = this.bases.map(function (b) { return getNamedType(suite, b).getChecker(suite, strict); });\n        var propCheckers = this.props.map(function (prop) { return prop.ttype.getChecker(suite, strict); });\n        var testCtx = new util_1.NoopContext();\n        // Consider a prop required if it's not optional AND does not allow for undefined as a value.\n        var isPropRequired = this.props.map(function (prop, i) {\n            return !prop.isOpt && !propCheckers[i](undefined, testCtx);\n        });\n        var checker = function (value, ctx) {\n            if (typeof value !== \"object\" || value === null) {\n                return ctx.fail(null, \"is not an object\", 0);\n            }\n            for (var i = 0; i < baseCheckers.length; i++) {\n                if (!baseCheckers[i](value, ctx)) {\n                    return false;\n                }\n            }\n            for (var i = 0; i < propCheckers.length; i++) {\n                var name_1 = _this.props[i].name;\n                var v = value[name_1];\n                if (v === undefined) {\n                    if (isPropRequired[i]) {\n                        return ctx.fail(name_1, \"is missing\", 1);\n                    }\n                }\n                else {\n                    var ok = propCheckers[i](v, ctx);\n                    if (!ok) {\n                        return ctx.fail(name_1, null, 1);\n                    }\n                }\n            }\n            return true;\n        };\n        if (!strict) {\n            return checker;\n        }\n        var propSet = this.propSet;\n        if (allowedProps) {\n            this.propSet.forEach(function (prop) { return allowedProps.add(prop); });\n            propSet = allowedProps;\n        }\n        // In strict mode, check also for unknown enumerable properties.\n        return function (value, ctx) {\n            if (!checker(value, ctx)) {\n                return false;\n            }\n            for (var prop in value) {\n                if (!propSet.has(prop)) {\n                    return ctx.fail(prop, \"is extraneous\", 2);\n                }\n            }\n            return true;\n        };\n    };\n    return TIface;\n}(TType));\nexports.TIface = TIface;\n/**\n * Defines an optional property on an interface.\n */\nfunction opt(typeSpec) { return new TOptional(parseSpec(typeSpec)); }\nexports.opt = opt;\nvar TOptional = /** @class */ (function (_super) {\n    __extends(TOptional, _super);\n    function TOptional(ttype) {\n        var _this = _super.call(this) || this;\n        _this.ttype = ttype;\n        return _this;\n    }\n    TOptional.prototype.getChecker = function (suite, strict) {\n        var itemChecker = this.ttype.getChecker(suite, strict);\n        return function (value, ctx) {\n            return value === undefined || itemChecker(value, ctx);\n        };\n    };\n    return TOptional;\n}(TType));\nexports.TOptional = TOptional;\n/**\n * Defines a property in an interface.\n */\nvar TProp = /** @class */ (function () {\n    function TProp(name, ttype, isOpt) {\n        this.name = name;\n        this.ttype = ttype;\n        this.isOpt = isOpt;\n    }\n    return TProp;\n}());\nexports.TProp = TProp;\n/**\n * Defines a function. The first argument declares the function's return type, the rest declare\n * its parameters.\n */\nfunction func(resultSpec) {\n    var params = [];\n    for (var _i = 1; _i < arguments.length; _i++) {\n        params[_i - 1] = arguments[_i];\n    }\n    return new TFunc(new TParamList(params), parseSpec(resultSpec));\n}\nexports.func = func;\nvar TFunc = /** @class */ (function (_super) {\n    __extends(TFunc, _super);\n    function TFunc(paramList, result) {\n        var _this = _super.call(this) || this;\n        _this.paramList = paramList;\n        _this.result = result;\n        return _this;\n    }\n    TFunc.prototype.getChecker = function (suite, strict) {\n        return function (value, ctx) {\n            return typeof value === \"function\" ? true : ctx.fail(null, \"is not a function\", 0);\n        };\n    };\n    return TFunc;\n}(TType));\nexports.TFunc = TFunc;\n/**\n * Defines a function parameter.\n */\nfunction param(name, typeSpec, isOpt) {\n    return new TParam(name, parseSpec(typeSpec), Boolean(isOpt));\n}\nexports.param = param;\nvar TParam = /** @class */ (function () {\n    function TParam(name, ttype, isOpt) {\n        this.name = name;\n        this.ttype = ttype;\n        this.isOpt = isOpt;\n    }\n    return TParam;\n}());\nexports.TParam = TParam;\n/**\n * Defines a function parameter list.\n */\nvar TParamList = /** @class */ (function (_super) {\n    __extends(TParamList, _super);\n    function TParamList(params) {\n        var _this = _super.call(this) || this;\n        _this.params = params;\n        return _this;\n    }\n    TParamList.prototype.getChecker = function (suite, strict) {\n        var _this = this;\n        var itemCheckers = this.params.map(function (t) { return t.ttype.getChecker(suite, strict); });\n        var testCtx = new util_1.NoopContext();\n        var isParamRequired = this.params.map(function (param, i) {\n            return !param.isOpt && !itemCheckers[i](undefined, testCtx);\n        });\n        var checker = function (value, ctx) {\n            if (!Array.isArray(value)) {\n                return ctx.fail(null, \"is not an array\", 0);\n            }\n            for (var i = 0; i < itemCheckers.length; i++) {\n                var p = _this.params[i];\n                if (value[i] === undefined) {\n                    if (isParamRequired[i]) {\n                        return ctx.fail(p.name, \"is missing\", 1);\n                    }\n                }\n                else {\n                    var ok = itemCheckers[i](value[i], ctx);\n                    if (!ok) {\n                        return ctx.fail(p.name, null, 1);\n                    }\n                }\n            }\n            return true;\n        };\n        if (!strict) {\n            return checker;\n        }\n        return function (value, ctx) {\n            if (!checker(value, ctx)) {\n                return false;\n            }\n            return value.length <= itemCheckers.length ? true :\n                ctx.fail(itemCheckers.length, \"is extraneous\", 2);\n        };\n    };\n    return TParamList;\n}(TType));\nexports.TParamList = TParamList;\n/**\n * Single TType implementation for all basic built-in types.\n */\nvar BasicType = /** @class */ (function (_super) {\n    __extends(BasicType, _super);\n    function BasicType(validator, message) {\n        var _this = _super.call(this) || this;\n        _this.validator = validator;\n        _this.message = message;\n        return _this;\n    }\n    BasicType.prototype.getChecker = function (suite, strict) {\n        var _this = this;\n        return function (value, ctx) { return _this.validator(value) ? true : ctx.fail(null, _this.message, 0); };\n    };\n    return BasicType;\n}(TType));\nexports.BasicType = BasicType;\n/**\n * Defines the suite of basic types.\n */\nexports.basicTypes = {\n    any: new BasicType(function (v) { return true; }, \"is invalid\"),\n    number: new BasicType(function (v) { return (typeof v === \"number\"); }, \"is not a number\"),\n    object: new BasicType(function (v) { return (typeof v === \"object\" && v); }, \"is not an object\"),\n    boolean: new BasicType(function (v) { return (typeof v === \"boolean\"); }, \"is not a boolean\"),\n    string: new BasicType(function (v) { return (typeof v === \"string\"); }, \"is not a string\"),\n    symbol: new BasicType(function (v) { return (typeof v === \"symbol\"); }, \"is not a symbol\"),\n    void: new BasicType(function (v) { return (v == null); }, \"is not void\"),\n    undefined: new BasicType(function (v) { return (v === undefined); }, \"is not undefined\"),\n    null: new BasicType(function (v) { return (v === null); }, \"is not null\"),\n    never: new BasicType(function (v) { return false; }, \"is unexpected\"),\n    Date: new BasicType(getIsNativeChecker(\"[object Date]\"), \"is not a Date\"),\n    RegExp: new BasicType(getIsNativeChecker(\"[object RegExp]\"), \"is not a RegExp\"),\n};\n// This approach for checking native object types mirrors that of lodash. Its advantage over\n// `isinstance` is that it can still return true for native objects created in different JS\n// execution environments.\nvar nativeToString = Object.prototype.toString;\nfunction getIsNativeChecker(tag) {\n    return function (v) { return typeof v === \"object\" && v && nativeToString.call(v) === tag; };\n}\nif (typeof Buffer !== \"undefined\") {\n    exports.basicTypes.Buffer = new BasicType(function (v) { return Buffer.isBuffer(v); }, \"is not a Buffer\");\n}\nvar _loop_1 = function (array_1) {\n    exports.basicTypes[array_1.name] = new BasicType(function (v) { return (v instanceof array_1); }, \"is not a \" + array_1.name);\n};\n// Support typed arrays of various flavors\nfor (var _i = 0, _a = [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array,\n    Int32Array, Uint32Array, Float32Array, Float64Array, ArrayBuffer]; _i < _a.length; _i++) {\n    var array_1 = _a[_i];\n    _loop_1(array_1);\n}\n","type":"js","dependency_paths":[["./util","/home/runner/work/panel/panel/panel/node_modules/ts-interface-checker/dist/util.js"]],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* ts-interface-checker/dist/types.js */ function _(require, module, exports, __esModule, __esExport) {\n    /**\n     * This module defines nodes used to define types and validations for objects and interfaces.\n     */\n    // tslint:disable:no-shadowed-variable prefer-for-of\n    var __extends = (this && this.__extends) || (function () {\n        var extendStatics = function (d, b) {\n            extendStatics = Object.setPrototypeOf ||\n                ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n                function (d, b) { for (var p in b)\n                    if (b.hasOwnProperty(p))\n                        d[p] = b[p]; };\n            return extendStatics(d, b);\n        };\n        return function (d, b) {\n            extendStatics(d, b);\n            function __() { this.constructor = d; }\n            d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n        };\n    })();\n    __esModule();\n    var util_1 = require(\"cc5514a417\") /* ./util */;\n    /** Node that represents a type. */\n    var TType = /** @class */ (function () {\n        function TType() {\n        }\n        return TType;\n    }());\n    exports.TType = TType;\n    /** Parses a type spec into a TType node. */\n    function parseSpec(typeSpec) {\n        return typeof typeSpec === \"string\" ? name(typeSpec) : typeSpec;\n    }\n    function getNamedType(suite, name) {\n        var ttype = suite[name];\n        if (!ttype) {\n            throw new Error(\"Unknown type \" + name);\n        }\n        return ttype;\n    }\n    /**\n     * Defines a type name, either built-in, or defined in this suite. It can typically be included in\n     * the specs as just a plain string.\n     */\n    function name(value) { return new TName(value); }\n    exports.name = name;\n    var TName = /** @class */ (function (_super) {\n        __extends(TName, _super);\n        function TName(name) {\n            var _this = _super.call(this) || this;\n            _this.name = name;\n            _this._failMsg = \"is not a \" + name;\n            return _this;\n        }\n        TName.prototype.getChecker = function (suite, strict, allowedProps) {\n            var _this = this;\n            var ttype = getNamedType(suite, this.name);\n            var checker = ttype.getChecker(suite, strict, allowedProps);\n            if (ttype instanceof BasicType || ttype instanceof TName) {\n                return checker;\n            }\n            // For complex types, add an additional \"is not a <Type>\" message on failure.\n            return function (value, ctx) { return checker(value, ctx) ? true : ctx.fail(null, _this._failMsg, 0); };\n        };\n        return TName;\n    }(TType));\n    exports.TName = TName;\n    /**\n     * Defines a literal value, e.g. lit('hello') or lit(123).\n     */\n    function lit(value) { return new TLiteral(value); }\n    exports.lit = lit;\n    var TLiteral = /** @class */ (function (_super) {\n        __extends(TLiteral, _super);\n        function TLiteral(value) {\n            var _this = _super.call(this) || this;\n            _this.value = value;\n            _this.name = JSON.stringify(value);\n            _this._failMsg = \"is not \" + _this.name;\n            return _this;\n        }\n        TLiteral.prototype.getChecker = function (suite, strict) {\n            var _this = this;\n            return function (value, ctx) { return (value === _this.value) ? true : ctx.fail(null, _this._failMsg, -1); };\n        };\n        return TLiteral;\n    }(TType));\n    exports.TLiteral = TLiteral;\n    /**\n     * Defines an array type, e.g. array('number').\n     */\n    function array(typeSpec) { return new TArray(parseSpec(typeSpec)); }\n    exports.array = array;\n    var TArray = /** @class */ (function (_super) {\n        __extends(TArray, _super);\n        function TArray(ttype) {\n            var _this = _super.call(this) || this;\n            _this.ttype = ttype;\n            return _this;\n        }\n        TArray.prototype.getChecker = function (suite, strict) {\n            var itemChecker = this.ttype.getChecker(suite, strict);\n            return function (value, ctx) {\n                if (!Array.isArray(value)) {\n                    return ctx.fail(null, \"is not an array\", 0);\n                }\n                for (var i = 0; i < value.length; i++) {\n                    var ok = itemChecker(value[i], ctx);\n                    if (!ok) {\n                        return ctx.fail(i, null, 1);\n                    }\n                }\n                return true;\n            };\n        };\n        return TArray;\n    }(TType));\n    exports.TArray = TArray;\n    /**\n     * Defines a tuple type, e.g. tuple('string', 'number').\n     */\n    function tuple() {\n        var typeSpec = [];\n        for (var _i = 0; _i < arguments.length; _i++) {\n            typeSpec[_i] = arguments[_i];\n        }\n        return new TTuple(typeSpec.map(function (t) { return parseSpec(t); }));\n    }\n    exports.tuple = tuple;\n    var TTuple = /** @class */ (function (_super) {\n        __extends(TTuple, _super);\n        function TTuple(ttypes) {\n            var _this = _super.call(this) || this;\n            _this.ttypes = ttypes;\n            return _this;\n        }\n        TTuple.prototype.getChecker = function (suite, strict) {\n            var itemCheckers = this.ttypes.map(function (t) { return t.getChecker(suite, strict); });\n            var checker = function (value, ctx) {\n                if (!Array.isArray(value)) {\n                    return ctx.fail(null, \"is not an array\", 0);\n                }\n                for (var i = 0; i < itemCheckers.length; i++) {\n                    var ok = itemCheckers[i](value[i], ctx);\n                    if (!ok) {\n                        return ctx.fail(i, null, 1);\n                    }\n                }\n                return true;\n            };\n            if (!strict) {\n                return checker;\n            }\n            return function (value, ctx) {\n                if (!checker(value, ctx)) {\n                    return false;\n                }\n                return value.length <= itemCheckers.length ? true :\n                    ctx.fail(itemCheckers.length, \"is extraneous\", 2);\n            };\n        };\n        return TTuple;\n    }(TType));\n    exports.TTuple = TTuple;\n    /**\n     * Defines a union type, e.g. union('number', 'null').\n     */\n    function union() {\n        var typeSpec = [];\n        for (var _i = 0; _i < arguments.length; _i++) {\n            typeSpec[_i] = arguments[_i];\n        }\n        return new TUnion(typeSpec.map(function (t) { return parseSpec(t); }));\n    }\n    exports.union = union;\n    var TUnion = /** @class */ (function (_super) {\n        __extends(TUnion, _super);\n        function TUnion(ttypes) {\n            var _this = _super.call(this) || this;\n            _this.ttypes = ttypes;\n            var names = ttypes.map(function (t) { return t instanceof TName || t instanceof TLiteral ? t.name : null; })\n                .filter(function (n) { return n; });\n            var otherTypes = ttypes.length - names.length;\n            if (names.length) {\n                if (otherTypes > 0) {\n                    names.push(otherTypes + \" more\");\n                }\n                _this._failMsg = \"is none of \" + names.join(\", \");\n            }\n            else {\n                _this._failMsg = \"is none of \" + otherTypes + \" types\";\n            }\n            return _this;\n        }\n        TUnion.prototype.getChecker = function (suite, strict) {\n            var _this = this;\n            var itemCheckers = this.ttypes.map(function (t) { return t.getChecker(suite, strict); });\n            return function (value, ctx) {\n                var ur = ctx.unionResolver();\n                for (var i = 0; i < itemCheckers.length; i++) {\n                    var ok = itemCheckers[i](value, ur.createContext());\n                    if (ok) {\n                        return true;\n                    }\n                }\n                ctx.resolveUnion(ur);\n                return ctx.fail(null, _this._failMsg, 0);\n            };\n        };\n        return TUnion;\n    }(TType));\n    exports.TUnion = TUnion;\n    /**\n     * Defines an intersection type, e.g. intersection('number', 'null').\n     */\n    function intersection() {\n        var typeSpec = [];\n        for (var _i = 0; _i < arguments.length; _i++) {\n            typeSpec[_i] = arguments[_i];\n        }\n        return new TIntersection(typeSpec.map(function (t) { return parseSpec(t); }));\n    }\n    exports.intersection = intersection;\n    var TIntersection = /** @class */ (function (_super) {\n        __extends(TIntersection, _super);\n        function TIntersection(ttypes) {\n            var _this = _super.call(this) || this;\n            _this.ttypes = ttypes;\n            return _this;\n        }\n        TIntersection.prototype.getChecker = function (suite, strict) {\n            var allowedProps = new Set();\n            var itemCheckers = this.ttypes.map(function (t) { return t.getChecker(suite, strict, allowedProps); });\n            return function (value, ctx) {\n                var ok = itemCheckers.every(function (checker) { return checker(value, ctx); });\n                if (ok) {\n                    return true;\n                }\n                return ctx.fail(null, null, 0);\n            };\n        };\n        return TIntersection;\n    }(TType));\n    exports.TIntersection = TIntersection;\n    /**\n     * Defines an enum type, e.g. enum({'A': 1, 'B': 2}).\n     */\n    function enumtype(values) {\n        return new TEnumType(values);\n    }\n    exports.enumtype = enumtype;\n    var TEnumType = /** @class */ (function (_super) {\n        __extends(TEnumType, _super);\n        function TEnumType(members) {\n            var _this = _super.call(this) || this;\n            _this.members = members;\n            _this.validValues = new Set();\n            _this._failMsg = \"is not a valid enum value\";\n            _this.validValues = new Set(Object.keys(members).map(function (name) { return members[name]; }));\n            return _this;\n        }\n        TEnumType.prototype.getChecker = function (suite, strict) {\n            var _this = this;\n            return function (value, ctx) {\n                return (_this.validValues.has(value) ? true : ctx.fail(null, _this._failMsg, 0));\n            };\n        };\n        return TEnumType;\n    }(TType));\n    exports.TEnumType = TEnumType;\n    /**\n     * Defines a literal enum value, such as Direction.Up, specified as enumlit(\"Direction\", \"Up\").\n     */\n    function enumlit(name, prop) {\n        return new TEnumLiteral(name, prop);\n    }\n    exports.enumlit = enumlit;\n    var TEnumLiteral = /** @class */ (function (_super) {\n        __extends(TEnumLiteral, _super);\n        function TEnumLiteral(enumName, prop) {\n            var _this = _super.call(this) || this;\n            _this.enumName = enumName;\n            _this.prop = prop;\n            _this._failMsg = \"is not \" + enumName + \".\" + prop;\n            return _this;\n        }\n        TEnumLiteral.prototype.getChecker = function (suite, strict) {\n            var _this = this;\n            var ttype = getNamedType(suite, this.enumName);\n            if (!(ttype instanceof TEnumType)) {\n                throw new Error(\"Type \" + this.enumName + \" used in enumlit is not an enum type\");\n            }\n            var val = ttype.members[this.prop];\n            if (!ttype.members.hasOwnProperty(this.prop)) {\n                throw new Error(\"Unknown value \" + this.enumName + \".\" + this.prop + \" used in enumlit\");\n            }\n            return function (value, ctx) { return (value === val) ? true : ctx.fail(null, _this._failMsg, -1); };\n        };\n        return TEnumLiteral;\n    }(TType));\n    exports.TEnumLiteral = TEnumLiteral;\n    function makeIfaceProps(props) {\n        return Object.keys(props).map(function (name) { return makeIfaceProp(name, props[name]); });\n    }\n    function makeIfaceProp(name, prop) {\n        return prop instanceof TOptional ?\n            new TProp(name, prop.ttype, true) :\n            new TProp(name, parseSpec(prop), false);\n    }\n    /**\n     * Defines an interface. The first argument is an array of interfaces that it extends, and the\n     * second is an array of properties.\n     */\n    function iface(bases, props) {\n        return new TIface(bases, makeIfaceProps(props));\n    }\n    exports.iface = iface;\n    var TIface = /** @class */ (function (_super) {\n        __extends(TIface, _super);\n        function TIface(bases, props) {\n            var _this = _super.call(this) || this;\n            _this.bases = bases;\n            _this.props = props;\n            _this.propSet = new Set(props.map(function (p) { return p.name; }));\n            return _this;\n        }\n        TIface.prototype.getChecker = function (suite, strict, allowedProps) {\n            var _this = this;\n            var baseCheckers = this.bases.map(function (b) { return getNamedType(suite, b).getChecker(suite, strict); });\n            var propCheckers = this.props.map(function (prop) { return prop.ttype.getChecker(suite, strict); });\n            var testCtx = new util_1.NoopContext();\n            // Consider a prop required if it's not optional AND does not allow for undefined as a value.\n            var isPropRequired = this.props.map(function (prop, i) {\n                return !prop.isOpt && !propCheckers[i](undefined, testCtx);\n            });\n            var checker = function (value, ctx) {\n                if (typeof value !== \"object\" || value === null) {\n                    return ctx.fail(null, \"is not an object\", 0);\n                }\n                for (var i = 0; i < baseCheckers.length; i++) {\n                    if (!baseCheckers[i](value, ctx)) {\n                        return false;\n                    }\n                }\n                for (var i = 0; i < propCheckers.length; i++) {\n                    var name_1 = _this.props[i].name;\n                    var v = value[name_1];\n                    if (v === undefined) {\n                        if (isPropRequired[i]) {\n                            return ctx.fail(name_1, \"is missing\", 1);\n                        }\n                    }\n                    else {\n                        var ok = propCheckers[i](v, ctx);\n                        if (!ok) {\n                            return ctx.fail(name_1, null, 1);\n                        }\n                    }\n                }\n                return true;\n            };\n            if (!strict) {\n                return checker;\n            }\n            var propSet = this.propSet;\n            if (allowedProps) {\n                this.propSet.forEach(function (prop) { return allowedProps.add(prop); });\n                propSet = allowedProps;\n            }\n            // In strict mode, check also for unknown enumerable properties.\n            return function (value, ctx) {\n                if (!checker(value, ctx)) {\n                    return false;\n                }\n                for (var prop in value) {\n                    if (!propSet.has(prop)) {\n                        return ctx.fail(prop, \"is extraneous\", 2);\n                    }\n                }\n                return true;\n            };\n        };\n        return TIface;\n    }(TType));\n    exports.TIface = TIface;\n    /**\n     * Defines an optional property on an interface.\n     */\n    function opt(typeSpec) { return new TOptional(parseSpec(typeSpec)); }\n    exports.opt = opt;\n    var TOptional = /** @class */ (function (_super) {\n        __extends(TOptional, _super);\n        function TOptional(ttype) {\n            var _this = _super.call(this) || this;\n            _this.ttype = ttype;\n            return _this;\n        }\n        TOptional.prototype.getChecker = function (suite, strict) {\n            var itemChecker = this.ttype.getChecker(suite, strict);\n            return function (value, ctx) {\n                return value === undefined || itemChecker(value, ctx);\n            };\n        };\n        return TOptional;\n    }(TType));\n    exports.TOptional = TOptional;\n    /**\n     * Defines a property in an interface.\n     */\n    var TProp = /** @class */ (function () {\n        function TProp(name, ttype, isOpt) {\n            this.name = name;\n            this.ttype = ttype;\n            this.isOpt = isOpt;\n        }\n        return TProp;\n    }());\n    exports.TProp = TProp;\n    /**\n     * Defines a function. The first argument declares the function's return type, the rest declare\n     * its parameters.\n     */\n    function func(resultSpec) {\n        var params = [];\n        for (var _i = 1; _i < arguments.length; _i++) {\n            params[_i - 1] = arguments[_i];\n        }\n        return new TFunc(new TParamList(params), parseSpec(resultSpec));\n    }\n    exports.func = func;\n    var TFunc = /** @class */ (function (_super) {\n        __extends(TFunc, _super);\n        function TFunc(paramList, result) {\n            var _this = _super.call(this) || this;\n            _this.paramList = paramList;\n            _this.result = result;\n            return _this;\n        }\n        TFunc.prototype.getChecker = function (suite, strict) {\n            return function (value, ctx) {\n                return typeof value === \"function\" ? true : ctx.fail(null, \"is not a function\", 0);\n            };\n        };\n        return TFunc;\n    }(TType));\n    exports.TFunc = TFunc;\n    /**\n     * Defines a function parameter.\n     */\n    function param(name, typeSpec, isOpt) {\n        return new TParam(name, parseSpec(typeSpec), Boolean(isOpt));\n    }\n    exports.param = param;\n    var TParam = /** @class */ (function () {\n        function TParam(name, ttype, isOpt) {\n            this.name = name;\n            this.ttype = ttype;\n            this.isOpt = isOpt;\n        }\n        return TParam;\n    }());\n    exports.TParam = TParam;\n    /**\n     * Defines a function parameter list.\n     */\n    var TParamList = /** @class */ (function (_super) {\n        __extends(TParamList, _super);\n        function TParamList(params) {\n            var _this = _super.call(this) || this;\n            _this.params = params;\n            return _this;\n        }\n        TParamList.prototype.getChecker = function (suite, strict) {\n            var _this = this;\n            var itemCheckers = this.params.map(function (t) { return t.ttype.getChecker(suite, strict); });\n            var testCtx = new util_1.NoopContext();\n            var isParamRequired = this.params.map(function (param, i) {\n                return !param.isOpt && !itemCheckers[i](undefined, testCtx);\n            });\n            var checker = function (value, ctx) {\n                if (!Array.isArray(value)) {\n                    return ctx.fail(null, \"is not an array\", 0);\n                }\n                for (var i = 0; i < itemCheckers.length; i++) {\n                    var p = _this.params[i];\n                    if (value[i] === undefined) {\n                        if (isParamRequired[i]) {\n                            return ctx.fail(p.name, \"is missing\", 1);\n                        }\n                    }\n                    else {\n                        var ok = itemCheckers[i](value[i], ctx);\n                        if (!ok) {\n                            return ctx.fail(p.name, null, 1);\n                        }\n                    }\n                }\n                return true;\n            };\n            if (!strict) {\n                return checker;\n            }\n            return function (value, ctx) {\n                if (!checker(value, ctx)) {\n                    return false;\n                }\n                return value.length <= itemCheckers.length ? true :\n                    ctx.fail(itemCheckers.length, \"is extraneous\", 2);\n            };\n        };\n        return TParamList;\n    }(TType));\n    exports.TParamList = TParamList;\n    /**\n     * Single TType implementation for all basic built-in types.\n     */\n    var BasicType = /** @class */ (function (_super) {\n        __extends(BasicType, _super);\n        function BasicType(validator, message) {\n            var _this = _super.call(this) || this;\n            _this.validator = validator;\n            _this.message = message;\n            return _this;\n        }\n        BasicType.prototype.getChecker = function (suite, strict) {\n            var _this = this;\n            return function (value, ctx) { return _this.validator(value) ? true : ctx.fail(null, _this.message, 0); };\n        };\n        return BasicType;\n    }(TType));\n    exports.BasicType = BasicType;\n    /**\n     * Defines the suite of basic types.\n     */\n    exports.basicTypes = {\n        any: new BasicType(function (v) { return true; }, \"is invalid\"),\n        number: new BasicType(function (v) { return (typeof v === \"number\"); }, \"is not a number\"),\n        object: new BasicType(function (v) { return (typeof v === \"object\" && v); }, \"is not an object\"),\n        boolean: new BasicType(function (v) { return (typeof v === \"boolean\"); }, \"is not a boolean\"),\n        string: new BasicType(function (v) { return (typeof v === \"string\"); }, \"is not a string\"),\n        symbol: new BasicType(function (v) { return (typeof v === \"symbol\"); }, \"is not a symbol\"),\n        void: new BasicType(function (v) { return (v == null); }, \"is not void\"),\n        undefined: new BasicType(function (v) { return (v === undefined); }, \"is not undefined\"),\n        null: new BasicType(function (v) { return (v === null); }, \"is not null\"),\n        never: new BasicType(function (v) { return false; }, \"is unexpected\"),\n        Date: new BasicType(getIsNativeChecker(\"[object Date]\"), \"is not a Date\"),\n        RegExp: new BasicType(getIsNativeChecker(\"[object RegExp]\"), \"is not a RegExp\"),\n    };\n    // This approach for checking native object types mirrors that of lodash. Its advantage over\n    // `isinstance` is that it can still return true for native objects created in different JS\n    // execution environments.\n    var nativeToString = Object.prototype.toString;\n    function getIsNativeChecker(tag) {\n        return function (v) { return typeof v === \"object\" && v && nativeToString.call(v) === tag; };\n    }\n    if (typeof Buffer !== \"undefined\") {\n        exports.basicTypes.Buffer = new BasicType(function (v) { return Buffer.isBuffer(v); }, \"is not a Buffer\");\n    }\n    var _loop_1 = function (array_1) {\n        exports.basicTypes[array_1.name] = new BasicType(function (v) { return (v instanceof array_1); }, \"is not a \" + array_1.name);\n    };\n    // Support typed arrays of various flavors\n    for (var _i = 0, _a = [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array,\n        Int32Array, Uint32Array, Float32Array, Float64Array, ArrayBuffer]; _i < _a.length; _i++) {\n        var array_1 = _a[_i];\n        _loop_1(array_1);\n    }\n}\n","min_source":"function _(n,t,r,e,i){var u,o=this&&this.__extends||(u=function(n,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])},u(n,t)},function(n,t){function r(){this.constructor=n}u(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});e();var a=n(\"cc5514a417\"),f=function(){};function s(n){return\"string\"==typeof n?l(n):n}function c(n,t){var r=n[t];if(!r)throw new Error(\"Unknown type \"+t);return r}function l(n){return new p(n)}r.TType=f,r.name=l;var p=function(n){function t(t){var r=n.call(this)||this;return r.name=t,r._failMsg=\"is not a \"+t,r}return o(t,n),t.prototype.getChecker=function(n,r,e){var i=this,u=c(n,this.name),o=u.getChecker(n,r,e);return u instanceof O||u instanceof t?o:function(n,t){return!!o(n,t)||t.fail(null,i._failMsg,0)}},t}(f);r.TName=p,r.lit=function(n){return new h(n)};var h=function(n){function t(t){var r=n.call(this)||this;return r.value=t,r.name=JSON.stringify(t),r._failMsg=\"is not \"+r.name,r}return o(t,n),t.prototype.getChecker=function(n,t){var r=this;return function(n,t){return n===r.value||t.fail(null,r._failMsg,-1)}},t}(f);r.TLiteral=h,r.array=function(n){return new y(s(n))};var y=function(n){function t(t){var r=n.call(this)||this;return r.ttype=t,r}return o(t,n),t.prototype.getChecker=function(n,t){var r=this.ttype.getChecker(n,t);return function(n,t){if(!Array.isArray(n))return t.fail(null,\"is not an array\",0);for(var e=0;e<n.length;e++){if(!r(n[e],t))return t.fail(e,null,1)}return!0}},t}(f);r.TArray=y,r.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return new v(n.map((function(n){return s(n)})))};var v=function(n){function t(t){var r=n.call(this)||this;return r.ttypes=t,r}return o(t,n),t.prototype.getChecker=function(n,t){var r=this.ttypes.map((function(r){return r.getChecker(n,t)})),e=function(n,t){if(!Array.isArray(n))return t.fail(null,\"is not an array\",0);for(var e=0;e<r.length;e++){if(!r[e](n[e],t))return t.fail(e,null,1)}return!0};return t?function(n,t){return!!e(n,t)&&(n.length<=r.length||t.fail(r.length,\"is extraneous\",2))}:e},t}(f);r.TTuple=v,r.union=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return new m(n.map((function(n){return s(n)})))};var m=function(n){function t(t){var r=n.call(this)||this;r.ttypes=t;var e=t.map((function(n){return n instanceof p||n instanceof h?n.name:null})).filter((function(n){return n})),i=t.length-e.length;return e.length?(i>0&&e.push(i+\" more\"),r._failMsg=\"is none of \"+e.join(\", \")):r._failMsg=\"is none of \"+i+\" types\",r}return o(t,n),t.prototype.getChecker=function(n,t){var r=this,e=this.ttypes.map((function(r){return r.getChecker(n,t)}));return function(n,t){for(var i=t.unionResolver(),u=0;u<e.length;u++){if(e[u](n,i.createContext()))return!0}return t.resolveUnion(i),t.fail(null,r._failMsg,0)}},t}(f);r.TUnion=m,r.intersection=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return new g(n.map((function(n){return s(n)})))};var g=function(n){function t(t){var r=n.call(this)||this;return r.ttypes=t,r}return o(t,n),t.prototype.getChecker=function(n,t){var r=new Set,e=this.ttypes.map((function(e){return e.getChecker(n,t,r)}));return function(n,t){return!!e.every((function(r){return r(n,t)}))||t.fail(null,null,0)}},t}(f);r.TIntersection=g,r.enumtype=function(n){return new w(n)};var w=function(n){function t(t){var r=n.call(this)||this;return r.members=t,r.validValues=new Set,r._failMsg=\"is not a valid enum value\",r.validValues=new Set(Object.keys(t).map((function(n){return t[n]}))),r}return o(t,n),t.prototype.getChecker=function(n,t){var r=this;return function(n,t){return!!r.validValues.has(n)||t.fail(null,r._failMsg,0)}},t}(f);r.TEnumType=w,r.enumlit=function(n,t){return new b(n,t)};var b=function(n){function t(t,r){var e=n.call(this)||this;return e.enumName=t,e.prop=r,e._failMsg=\"is not \"+t+\".\"+r,e}return o(t,n),t.prototype.getChecker=function(n,t){var r=this,e=c(n,this.enumName);if(!(e instanceof w))throw new Error(\"Type \"+this.enumName+\" used in enumlit is not an enum type\");var i=e.members[this.prop];if(!e.members.hasOwnProperty(this.prop))throw new Error(\"Unknown value \"+this.enumName+\".\"+this.prop+\" used in enumlit\");return function(n,t){return n===i||t.fail(null,r._failMsg,-1)}},t}(f);function d(n){return Object.keys(n).map((function(t){return function(n,t){return t instanceof C?new T(n,t.ttype,!0):new T(n,s(t),!1)}(t,n[t])}))}r.TEnumLiteral=b,r.iface=function(n,t){return new k(n,d(t))};var k=function(n){function t(t,r){var e=n.call(this)||this;return e.bases=t,e.props=r,e.propSet=new Set(r.map((function(n){return n.name}))),e}return o(t,n),t.prototype.getChecker=function(n,t,r){var e=this,i=this.bases.map((function(r){return c(n,r).getChecker(n,t)})),u=this.props.map((function(r){return r.ttype.getChecker(n,t)})),o=new a.NoopContext,f=this.props.map((function(n,t){return!n.isOpt&&!u[t](void 0,o)})),s=function(n,t){if(\"object\"!=typeof n||null===n)return t.fail(null,\"is not an object\",0);for(var r=0;r<i.length;r++)if(!i[r](n,t))return!1;for(r=0;r<u.length;r++){var o=e.props[r].name,a=n[o];if(void 0===a){if(f[r])return t.fail(o,\"is missing\",1)}else if(!u[r](a,t))return t.fail(o,null,1)}return!0};if(!t)return s;var l=this.propSet;return r&&(this.propSet.forEach((function(n){return r.add(n)})),l=r),function(n,t){if(!s(n,t))return!1;for(var r in n)if(!l.has(r))return t.fail(r,\"is extraneous\",2);return!0}},t}(f);r.TIface=k,r.opt=function(n){return new C(s(n))};var C=function(n){function t(t){var r=n.call(this)||this;return r.ttype=t,r}return o(t,n),t.prototype.getChecker=function(n,t){var r=this.ttype.getChecker(n,t);return function(n,t){return void 0===n||r(n,t)}},t}(f);r.TOptional=C;var T=function(n,t,r){this.name=n,this.ttype=t,this.isOpt=r};r.TProp=T,r.func=function(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new _(new j(t),s(n))};var _=function(n){function t(t,r){var e=n.call(this)||this;return e.paramList=t,e.result=r,e}return o(t,n),t.prototype.getChecker=function(n,t){return function(n,t){return\"function\"==typeof n||t.fail(null,\"is not a function\",0)}},t}(f);r.TFunc=_,r.param=function(n,t,r){return new A(n,s(t),Boolean(r))};var A=function(n,t,r){this.name=n,this.ttype=t,this.isOpt=r};r.TParam=A;var j=function(n){function t(t){var r=n.call(this)||this;return r.params=t,r}return o(t,n),t.prototype.getChecker=function(n,t){var r=this,e=this.params.map((function(r){return r.ttype.getChecker(n,t)})),i=new a.NoopContext,u=this.params.map((function(n,t){return!n.isOpt&&!e[t](void 0,i)})),o=function(n,t){if(!Array.isArray(n))return t.fail(null,\"is not an array\",0);for(var i=0;i<e.length;i++){var o=r.params[i];if(void 0===n[i]){if(u[i])return t.fail(o.name,\"is missing\",1)}else if(!e[i](n[i],t))return t.fail(o.name,null,1)}return!0};return t?function(n,t){return!!o(n,t)&&(n.length<=e.length||t.fail(e.length,\"is extraneous\",2))}:o},t}(f);r.TParamList=j;var O=function(n){function t(t,r){var e=n.call(this)||this;return e.validator=t,e.message=r,e}return o(t,n),t.prototype.getChecker=function(n,t){var r=this;return function(n,t){return!!r.validator(n)||t.fail(null,r.message,0)}},t}(f);r.BasicType=O,r.basicTypes={any:new O((function(n){return!0}),\"is invalid\"),number:new O((function(n){return\"number\"==typeof n}),\"is not a number\"),object:new O((function(n){return\"object\"==typeof n&&n}),\"is not an object\"),boolean:new O((function(n){return\"boolean\"==typeof n}),\"is not a boolean\"),string:new O((function(n){return\"string\"==typeof n}),\"is not a string\"),symbol:new O((function(n){return\"symbol\"==typeof n}),\"is not a symbol\"),void:new O((function(n){return null==n}),\"is not void\"),undefined:new O((function(n){return void 0===n}),\"is not undefined\"),null:new O((function(n){return null===n}),\"is not null\"),never:new O((function(n){return!1}),\"is unexpected\"),Date:new O(M(\"[object Date]\"),\"is not a Date\"),RegExp:new O(M(\"[object RegExp]\"),\"is not a RegExp\")};var x=Object.prototype.toString;function M(n){return function(t){return\"object\"==typeof t&&t&&x.call(t)===n}}\"undefined\"!=typeof Buffer&&(r.basicTypes.Buffer=new O((function(n){return Buffer.isBuffer(n)}),\"is not a Buffer\"));for(var E=function(n){r.basicTypes[n.name]=new O((function(t){return t instanceof n}),\"is not a \"+n.name)},S=0,B=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];S<B.length;S++){E(B[S])}}\n//# sourceMappingURL=types.min.js.map","min_map":"{\"version\":3,\"file\":\"types.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"extendStatics\",\"__extends\",\"this\",\"d\",\"b\",\"Object\",\"setPrototypeOf\",\"__proto__\",\"Array\",\"p\",\"hasOwnProperty\",\"__\",\"constructor\",\"prototype\",\"create\",\"util_1\",\"TType\",\"parseSpec\",\"typeSpec\",\"name\",\"getNamedType\",\"suite\",\"ttype\",\"Error\",\"value\",\"TName\",\"_super\",\"_this\",\"call\",\"_failMsg\",\"getChecker\",\"strict\",\"allowedProps\",\"checker\",\"BasicType\",\"ctx\",\"fail\",\"lit\",\"TLiteral\",\"JSON\",\"stringify\",\"array\",\"TArray\",\"itemChecker\",\"isArray\",\"i\",\"length\",\"tuple\",\"_i\",\"arguments\",\"TTuple\",\"map\",\"t\",\"ttypes\",\"itemCheckers\",\"union\",\"TUnion\",\"names\",\"filter\",\"n\",\"otherTypes\",\"push\",\"join\",\"ur\",\"unionResolver\",\"createContext\",\"resolveUnion\",\"intersection\",\"TIntersection\",\"Set\",\"every\",\"enumtype\",\"values\",\"TEnumType\",\"members\",\"validValues\",\"keys\",\"has\",\"enumlit\",\"prop\",\"TEnumLiteral\",\"enumName\",\"val\",\"makeIfaceProps\",\"props\",\"TOptional\",\"TProp\",\"makeIfaceProp\",\"iface\",\"bases\",\"TIface\",\"propSet\",\"baseCheckers\",\"propCheckers\",\"testCtx\",\"NoopContext\",\"isPropRequired\",\"isOpt\",\"undefined\",\"name_1\",\"v\",\"forEach\",\"add\",\"opt\",\"func\",\"resultSpec\",\"params\",\"TFunc\",\"TParamList\",\"paramList\",\"result\",\"param\",\"TParam\",\"Boolean\",\"isParamRequired\",\"validator\",\"message\",\"basicTypes\",\"any\",\"number\",\"object\",\"boolean\",\"string\",\"symbol\",\"void\",\"null\",\"never\",\"Date\",\"getIsNativeChecker\",\"RegExp\",\"nativeToString\",\"toString\",\"tag\",\"Buffer\",\"isBuffer\",\"_loop_1\",\"array_1\",\"_a\",\"Int8Array\",\"Uint8Array\",\"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zF,GAErB,CACJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/ts-interface-checker/dist/util.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"ts-interface-checker/dist/util.js","resolution":"CJS","id":"cc5514a417","hash":"cc5514a417950b674f3fcfc14ec98a54bd7a9f3886122ea1885f16dbf3a3c568","source":"\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DetailContext = exports.NoopContext = exports.VError = void 0;\n/**\n * Error thrown by validation. Besides an informative message, it includes the path to the\n * property which triggered the failure.\n */\nvar VError = /** @class */ (function (_super) {\n    __extends(VError, _super);\n    function VError(path, message) {\n        var _this = _super.call(this, message) || this;\n        _this.path = path;\n        // See https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work for info about this workaround.\n        Object.setPrototypeOf(_this, VError.prototype);\n        return _this;\n    }\n    return VError;\n}(Error));\nexports.VError = VError;\n/**\n * Fast implementation of IContext used for first-pass validation. If that fails, we can validate\n * using DetailContext to collect error messages. That's faster for the common case when messages\n * normally pass validation.\n */\nvar NoopContext = /** @class */ (function () {\n    function NoopContext() {\n    }\n    NoopContext.prototype.fail = function (relPath, message, score) {\n        return false;\n    };\n    NoopContext.prototype.unionResolver = function () { return this; };\n    NoopContext.prototype.createContext = function () { return this; };\n    NoopContext.prototype.resolveUnion = function (ur) { };\n    return NoopContext;\n}());\nexports.NoopContext = NoopContext;\n/**\n * Complete implementation of IContext that collects meaningfull errors.\n */\nvar DetailContext = /** @class */ (function () {\n    function DetailContext() {\n        // Stack of property names and associated messages for reporting helpful error messages.\n        this._propNames = [\"\"];\n        this._messages = [null];\n        // Score is used to choose the best union member whose DetailContext to use for reporting.\n        // Higher score means better match (or rather less severe mismatch).\n        this._score = 0;\n    }\n    DetailContext.prototype.fail = function (relPath, message, score) {\n        this._propNames.push(relPath);\n        this._messages.push(message);\n        this._score += score;\n        return false;\n    };\n    DetailContext.prototype.unionResolver = function () {\n        return new DetailUnionResolver();\n    };\n    DetailContext.prototype.resolveUnion = function (unionResolver) {\n        var _a, _b;\n        var u = unionResolver;\n        var best = null;\n        for (var _i = 0, _c = u.contexts; _i < _c.length; _i++) {\n            var ctx = _c[_i];\n            if (!best || ctx._score >= best._score) {\n                best = ctx;\n            }\n        }\n        if (best && best._score > 0) {\n            (_a = this._propNames).push.apply(_a, best._propNames);\n            (_b = this._messages).push.apply(_b, best._messages);\n        }\n    };\n    DetailContext.prototype.getError = function (path) {\n        var msgParts = [];\n        for (var i = this._propNames.length - 1; i >= 0; i--) {\n            var p = this._propNames[i];\n            path += (typeof p === \"number\") ? \"[\" + p + \"]\" : (p ? \".\" + p : \"\");\n            var m = this._messages[i];\n            if (m) {\n                msgParts.push(path + \" \" + m);\n            }\n        }\n        return new VError(path, msgParts.join(\"; \"));\n    };\n    DetailContext.prototype.getErrorDetail = function (path) {\n        var details = [];\n        for (var i = this._propNames.length - 1; i >= 0; i--) {\n            var p = this._propNames[i];\n            path += (typeof p === \"number\") ? \"[\" + p + \"]\" : (p ? \".\" + p : \"\");\n            var message = this._messages[i];\n            if (message) {\n                details.push({ path: path, message: message });\n            }\n        }\n        var detail = null;\n        for (var i = details.length - 1; i >= 0; i--) {\n            if (detail) {\n                details[i].nested = [detail];\n            }\n            detail = details[i];\n        }\n        return detail;\n    };\n    return DetailContext;\n}());\nexports.DetailContext = DetailContext;\nvar DetailUnionResolver = /** @class */ (function () {\n    function DetailUnionResolver() {\n        this.contexts = [];\n    }\n    DetailUnionResolver.prototype.createContext = function () {\n        var ctx = new DetailContext();\n        this.contexts.push(ctx);\n        return ctx;\n    };\n    return DetailUnionResolver;\n}());\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* ts-interface-checker/dist/util.js */ function _(require, module, exports, __esModule, __esExport) {\n    var __extends = (this && this.__extends) || (function () {\n        var extendStatics = function (d, b) {\n            extendStatics = Object.setPrototypeOf ||\n                ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n                function (d, b) { for (var p in b)\n                    if (b.hasOwnProperty(p))\n                        d[p] = b[p]; };\n            return extendStatics(d, b);\n        };\n        return function (d, b) {\n            extendStatics(d, b);\n            function __() { this.constructor = d; }\n            d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n        };\n    })();\n    __esModule();\n    /**\n     * Error thrown by validation. Besides an informative message, it includes the path to the\n     * property which triggered the failure.\n     */\n    var VError = /** @class */ (function (_super) {\n        __extends(VError, _super);\n        function VError(path, message) {\n            var _this = _super.call(this, message) || this;\n            _this.path = path;\n            // See https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work for info about this workaround.\n            Object.setPrototypeOf(_this, VError.prototype);\n            return _this;\n        }\n        return VError;\n    }(Error));\n    exports.VError = VError;\n    /**\n     * Fast implementation of IContext used for first-pass validation. If that fails, we can validate\n     * using DetailContext to collect error messages. That's faster for the common case when messages\n     * normally pass validation.\n     */\n    var NoopContext = /** @class */ (function () {\n        function NoopContext() {\n        }\n        NoopContext.prototype.fail = function (relPath, message, score) {\n            return false;\n        };\n        NoopContext.prototype.unionResolver = function () { return this; };\n        NoopContext.prototype.createContext = function () { return this; };\n        NoopContext.prototype.resolveUnion = function (ur) { };\n        return NoopContext;\n    }());\n    exports.NoopContext = NoopContext;\n    /**\n     * Complete implementation of IContext that collects meaningfull errors.\n     */\n    var DetailContext = /** @class */ (function () {\n        function DetailContext() {\n            // Stack of property names and associated messages for reporting helpful error messages.\n            this._propNames = [\"\"];\n            this._messages = [null];\n            // Score is used to choose the best union member whose DetailContext to use for reporting.\n            // Higher score means better match (or rather less severe mismatch).\n            this._score = 0;\n        }\n        DetailContext.prototype.fail = function (relPath, message, score) {\n            this._propNames.push(relPath);\n            this._messages.push(message);\n            this._score += score;\n            return false;\n        };\n        DetailContext.prototype.unionResolver = function () {\n            return new DetailUnionResolver();\n        };\n        DetailContext.prototype.resolveUnion = function (unionResolver) {\n            var _a, _b;\n            var u = unionResolver;\n            var best = null;\n            for (var _i = 0, _c = u.contexts; _i < _c.length; _i++) {\n                var ctx = _c[_i];\n                if (!best || ctx._score >= best._score) {\n                    best = ctx;\n                }\n            }\n            if (best && best._score > 0) {\n                (_a = this._propNames).push.apply(_a, best._propNames);\n                (_b = this._messages).push.apply(_b, best._messages);\n            }\n        };\n        DetailContext.prototype.getError = function (path) {\n            var msgParts = [];\n            for (var i = this._propNames.length - 1; i >= 0; i--) {\n                var p = this._propNames[i];\n                path += (typeof p === \"number\") ? \"[\" + p + \"]\" : (p ? \".\" + p : \"\");\n                var m = this._messages[i];\n                if (m) {\n                    msgParts.push(path + \" \" + m);\n                }\n            }\n            return new VError(path, msgParts.join(\"; \"));\n        };\n        DetailContext.prototype.getErrorDetail = function (path) {\n            var details = [];\n            for (var i = this._propNames.length - 1; i >= 0; i--) {\n                var p = this._propNames[i];\n                path += (typeof p === \"number\") ? \"[\" + p + \"]\" : (p ? \".\" + p : \"\");\n                var message = this._messages[i];\n                if (message) {\n                    details.push({ path: path, message: message });\n                }\n            }\n            var detail = null;\n            for (var i = details.length - 1; i >= 0; i--) {\n                if (detail) {\n                    details[i].nested = [detail];\n                }\n                detail = details[i];\n            }\n            return detail;\n        };\n        return DetailContext;\n    }());\n    exports.DetailContext = DetailContext;\n    var DetailUnionResolver = /** @class */ (function () {\n        function DetailUnionResolver() {\n            this.contexts = [];\n        }\n        DetailUnionResolver.prototype.createContext = function () {\n            var ctx = new DetailContext();\n            this.contexts.push(ctx);\n            return ctx;\n        };\n        return DetailUnionResolver;\n    }());\n}\n","min_source":"function _(t,r,o,e,n){var s,p=this&&this.__extends||(s=function(t,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},s(t,r)},function(t,r){function o(){this.constructor=t}s(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)});e();var i=function(t){function r(o,e){var n=t.call(this,e)||this;return n.path=o,Object.setPrototypeOf(n,r.prototype),n}return p(r,t),r}(Error);o.VError=i;var u=function(){function t(){}return t.prototype.fail=function(t,r,o){return!1},t.prototype.unionResolver=function(){return this},t.prototype.createContext=function(){return this},t.prototype.resolveUnion=function(t){},t}();o.NoopContext=u;var a=function(){function t(){this._propNames=[\"\"],this._messages=[null],this._score=0}return t.prototype.fail=function(t,r,o){return this._propNames.push(t),this._messages.push(r),this._score+=o,!1},t.prototype.unionResolver=function(){return new c},t.prototype.resolveUnion=function(t){for(var r,o,e=null,n=0,s=t.contexts;n<s.length;n++){var p=s[n];(!e||p._score>=e._score)&&(e=p)}e&&e._score>0&&((r=this._propNames).push.apply(r,e._propNames),(o=this._messages).push.apply(o,e._messages))},t.prototype.getError=function(t){for(var r=[],o=this._propNames.length-1;o>=0;o--){var e=this._propNames[o];t+=\"number\"==typeof e?\"[\"+e+\"]\":e?\".\"+e:\"\";var n=this._messages[o];n&&r.push(t+\" \"+n)}return new i(t,r.join(\"; \"))},t.prototype.getErrorDetail=function(t){for(var r=[],o=this._propNames.length-1;o>=0;o--){var e=this._propNames[o];t+=\"number\"==typeof e?\"[\"+e+\"]\":e?\".\"+e:\"\";var n=this._messages[o];n&&r.push({path:t,message:n})}var s=null;for(o=r.length-1;o>=0;o--)s&&(r[o].nested=[s]),s=r[o];return s},t}();o.DetailContext=a;var c=function(){function t(){this.contexts=[]}return t.prototype.createContext=function(){var t=new a;return this.contexts.push(t),t},t}()}\n//# sourceMappingURL=util.min.js.map","min_map":"{\"version\":3,\"file\":\"util.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"extendStatics\",\"__extends\",\"this\",\"d\",\"b\",\"Object\",\"setPrototypeOf\",\"__proto__\",\"Array\",\"p\",\"hasOwnProperty\",\"__\",\"constructor\",\"prototype\",\"create\",\"VError\",\"_super\",\"path\",\"message\",\"_this\",\"call\",\"Error\",\"NoopContext\",\"fail\",\"relPath\",\"score\",\"unionResolver\",\"createContext\",\"resolveUnion\",\"ur\",\"DetailContext\",\"_propNames\",\"_messages\",\"_score\",\"push\",\"DetailUnionResolver\",\"_a\",\"_b\",\"best\",\"_i\",\"_c\",\"contexts\",\"length\",\"ctx\",\"apply\",\"getError\",\"msgParts\",\"i\",\"m\",\"join\",\"getErrorDetail\",\"details\",\"detail\",\"nested\"],\"sources\":[\"0\"],\"mappings\":\"AAAwC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACrF,IACQC,EADJC,EAAaC,MAAQA,KAAKD,YACtBD,EAAgB,SAAUG,EAAGC,GAM7B,OALAJ,EAAgBK,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,CAAG,GAC1E,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EACxBA,EAAEM,eAAeD,KACjBN,EAAEM,GAAKL,EAAEK,GAAI,EAClBT,EAAcG,EAAGC,EAC5B,EACO,SAAUD,EAAGC,GAEhB,SAASO,IAAOT,KAAKU,YAAcT,CAAG,CADtCH,EAAcG,EAAGC,GAEjBD,EAAEU,UAAkB,OAANT,EAAaC,OAAOS,OAAOV,IAAMO,EAAGE,UAAYT,EAAES,UAAW,IAAIF,EACnF,GAEJb,IAKA,IAAIiB,EAAwB,SAAUC,GAElC,SAASD,EAAOE,EAAMC,GAClB,IAAIC,EAAQH,EA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AU5B,GAEzC,IADA,IAAI6B,EAAW,GACNC,EAAI7C,KAAK6B,WAAWW,OAAS,EAAGK,GAAK,EAAGA,IAAK,CAClD,IAAItC,EAAIP,KAAK6B,WAAWgB,GACxB9B,GAAsB,iBAANR,EAAkB,IAAMA,EAAI,IAAOA,EAAI,IAAMA,EAAI,GACjE,IAAIuC,EAAI9C,KAAK8B,UAAUe,GACnBC,GACAF,EAASZ,KAAKjB,EAAO,IAAM+B,EAEnC,CACA,OAAO,IAAIjC,EAAOE,EAAM6B,EAASG,KAAK,MAC1C,EACAnB,EAAcjB,UAAUqC,eAAiB,SAAUjC,GAE/C,IADA,IAAIkC,EAAU,GACLJ,EAAI7C,KAAK6B,WAAWW,OAAS,EAAGK,GAAK,EAAGA,IAAK,CAClD,IAAItC,EAAIP,KAAK6B,WAAWgB,GACxB9B,GAAsB,iBAANR,EAAkB,IAAMA,EAAI,IAAOA,EAAI,IAAMA,EAAI,GACjE,IAAIS,EAAUhB,KAAK8B,UAAUe,GACzB7B,GACAiC,EAAQjB,KAAK,CAAEjB,KAAMA,EAAMC,QAASA,GAE5C,CACA,IAAIkC,EAAS,KACb,IAASL,EAAII,EAAQT,OAAS,EAAGK,GAAK,EAAGA,IACjCK,IACAD,EAAQJ,GAAGM,OAAS,CAACD,IAEzBA,EAASD,EAAQJ,GAErB,OAAOK,CACX,EACOtB,CACX,CAjEkC,GAkElCjC,EAAQiC,cAAgBA,EACxB,IAAIK,EAAqC,WACrC,SAASA,IACLjC,KAAKuC,SAAW,EACpB,CAMA,OALAN,EAAoBtB,UAAUc,cAAgB,WAC1C,IAAIgB,EAAM,IAAIb,EAEd,OADA5B,KAAKuC,SAASP,KAAKS,GACZA,CACX,EACOR,CACX,CAVwC,EAW5C\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/Options-gen-types.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/Options-gen-types.js","resolution":"ESM","id":"26465ac544","hash":"26465ac544903fa8195bab3e25fc68fe40ed98833766dafec94cdaa19c70754d","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Options = exports.SourceMapOptions = exports.Transform = void 0;\nconst tslib_1 = require(\"tslib\");\n/**\n * This module was automatically generated by `ts-interface-builder`\n */\nconst t = tslib_1.__importStar(require(\"ts-interface-checker\"));\n// tslint:disable:object-literal-key-quotes\nexports.Transform = t.union(t.lit(\"jsx\"), t.lit(\"typescript\"), t.lit(\"flow\"), t.lit(\"imports\"), t.lit(\"react-hot-loader\"), t.lit(\"jest\"));\nexports.SourceMapOptions = t.iface([], {\n    compiledFilename: \"string\",\n});\nexports.Options = t.iface([], {\n    transforms: t.array(\"Transform\"),\n    disableESTransforms: t.opt(\"boolean\"),\n    jsxRuntime: t.opt(t.union(t.lit(\"classic\"), t.lit(\"automatic\"), t.lit(\"preserve\"))),\n    production: t.opt(\"boolean\"),\n    jsxImportSource: t.opt(\"string\"),\n    jsxPragma: t.opt(\"string\"),\n    jsxFragmentPragma: t.opt(\"string\"),\n    keepUnusedImports: t.opt(\"boolean\"),\n    preserveDynamicImport: t.opt(\"boolean\"),\n    injectCreateRequireForImportRequire: t.opt(\"boolean\"),\n    enableLegacyTypeScriptModuleInterop: t.opt(\"boolean\"),\n    enableLegacyBabel5ModuleInterop: t.opt(\"boolean\"),\n    sourceMapOptions: t.opt(\"SourceMapOptions\"),\n    filePath: t.opt(\"string\"),\n});\nconst exportedTypeSuite = {\n    Transform: exports.Transform,\n    SourceMapOptions: exports.SourceMapOptions,\n    Options: exports.Options,\n};\nexports.default = exportedTypeSuite;\n","type":"js","dependency_paths":[["ts-interface-checker","/home/runner/work/panel/panel/panel/node_modules/ts-interface-checker/dist/index.js"]],"dependency_map":[],"exported":[{"type":"named","name":"default"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/Options-gen-types.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    /**\n     * This module was automatically generated by `ts-interface-builder`\n     */\n    const t = tslib_1.__importStar(require(\"566f6e7d92\") /* ts-interface-checker */);\n    // tslint:disable:object-literal-key-quotes\n    exports.Transform = t.union(t.lit(\"jsx\"), t.lit(\"typescript\"), t.lit(\"flow\"), t.lit(\"imports\"), t.lit(\"react-hot-loader\"), t.lit(\"jest\"));\n    exports.SourceMapOptions = t.iface([], {\n        compiledFilename: \"string\",\n    });\n    exports.Options = t.iface([], {\n        transforms: t.array(\"Transform\"),\n        disableESTransforms: t.opt(\"boolean\"),\n        jsxRuntime: t.opt(t.union(t.lit(\"classic\"), t.lit(\"automatic\"), t.lit(\"preserve\"))),\n        production: t.opt(\"boolean\"),\n        jsxImportSource: t.opt(\"string\"),\n        jsxPragma: t.opt(\"string\"),\n        jsxFragmentPragma: t.opt(\"string\"),\n        keepUnusedImports: t.opt(\"boolean\"),\n        preserveDynamicImport: t.opt(\"boolean\"),\n        injectCreateRequireForImportRequire: t.opt(\"boolean\"),\n        enableLegacyTypeScriptModuleInterop: t.opt(\"boolean\"),\n        enableLegacyBabel5ModuleInterop: t.opt(\"boolean\"),\n        sourceMapOptions: t.opt(\"SourceMapOptions\"),\n        filePath: t.opt(\"string\"),\n    });\n    const exportedTypeSuite = {\n        Transform: exports.Transform,\n        SourceMapOptions: exports.SourceMapOptions,\n        Options: exports.Options,\n    };\n    exports.default = exportedTypeSuite;\n}\n","min_source":"function _(o,t,e,r,n){r();const a=o(\"tslib\").__importStar(o(\"566f6e7d92\"));e.Transform=a.union(a.lit(\"jsx\"),a.lit(\"typescript\"),a.lit(\"flow\"),a.lit(\"imports\"),a.lit(\"react-hot-loader\"),a.lit(\"jest\")),e.SourceMapOptions=a.iface([],{compiledFilename:\"string\"}),e.Options=a.iface([],{transforms:a.array(\"Transform\"),disableESTransforms:a.opt(\"boolean\"),jsxRuntime:a.opt(a.union(a.lit(\"classic\"),a.lit(\"automatic\"),a.lit(\"preserve\"))),production:a.opt(\"boolean\"),jsxImportSource:a.opt(\"string\"),jsxPragma:a.opt(\"string\"),jsxFragmentPragma:a.opt(\"string\"),keepUnusedImports:a.opt(\"boolean\"),preserveDynamicImport:a.opt(\"boolean\"),injectCreateRequireForImportRequire:a.opt(\"boolean\"),enableLegacyTypeScriptModuleInterop:a.opt(\"boolean\"),enableLegacyBabel5ModuleInterop:a.opt(\"boolean\"),sourceMapOptions:a.opt(\"SourceMapOptions\"),filePath:a.opt(\"string\")});const i={Transform:e.Transform,SourceMapOptions:e.SourceMapOptions,Options:e.Options};e.default=i}\n//# sourceMappingURL=Options-gen-types.min.js.map","min_map":"{\"version\":3,\"file\":\"Options-gen-types.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"t\",\"__importStar\",\"Transform\",\"union\",\"lit\",\"SourceMapOptions\",\"iface\",\"compiledFilename\",\"Options\",\"transforms\",\"array\",\"disableESTransforms\",\"opt\",\"jsxRuntime\",\"production\",\"jsxImportSource\",\"jsxPragma\",\"jsxFragmentPragma\",\"keepUnusedImports\",\"preserveDynamicImport\",\"injectCreateRequireForImportRequire\",\"enableLegacyTypeScriptModuleInterop\",\"enableLegacyBabel5ModuleInterop\",\"sourceMapOptions\",\"filePath\",\"exportedTypeSuite\",\"default\"],\"sources\":[\"0\"],\"mappings\":\"AAA4C,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzFD,IACA,MAIME,EAJUL,EAAQ,SAINM,aAAaN,EAAQ,eAEvCE,EAAQK,UAAYF,EAAEG,MAAMH,EAAEI,IAAI,OAAQJ,EAAEI,IAAI,cAAeJ,EAAEI,IAAI,QAASJ,EAAEI,IAAI,WAAYJ,EAAEI,IAAI,oBAAqBJ,EAAEI,IAAI,SACjIP,EAAQQ,iBAAmBL,EAAEM,MAAM,GAAI,CACnCC,iBAAkB,WAEtBV,EAAQW,QAAUR,EAAEM,MAAM,GAAI,CAC1BG,WAAYT,EAAEU,MAAM,aACpBC,oBAAqBX,EAAEY,IAAI,WAC3BC,WAAYb,EAAEY,IAAIZ,EAAEG,MAAMH,EAAEI,IAAI,WAAYJ,EAAEI,IAAI,aAAcJ,EAAEI,IAAI,cACtEU,WAAYd,EAAEY,IAAI,WAClBG,gBAAiBf,EAAEY,IAAI,UACvBI,UAAWhB,EAAEY,IAAI,UACjBK,kBAAmBjB,EAAEY,IAAI,UACzBM,kBAAmBlB,EAAEY,IAAI,WACzBO,sBAAuBnB,EAAEY,IAAI,WAC7BQ,oCAAqCpB,EAAEY,IAAI,WAC3CS,oCAAqCrB,EAAEY,IAAI,WAC3CU,gCAAiCtB,EAAEY,IAAI,WACvCW,iBAAkBvB,EAAEY,IAAI,oBACxBY,SAAUxB,EAAEY,IAAI,YAEpB,MAAMa,EAAoB,CACtBvB,UAAWL,EAAQK,UACnBG,iBAAkBR,EAAQQ,iBAC1BG,QAASX,EAAQW,SAErBX,EAAQ6B,QAAUD,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/index.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/index.js","resolution":"ESM","id":"7a45c9fdec","hash":"7a45c9fdec108be7ef7a7b56d1a9c3ce0a1f05ccb47ea2add22653f3a263fc31","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.File = void 0;\nexports.parse = parse;\nconst base_1 = require(\"./traverser/base\");\nconst index_1 = require(\"./traverser/index\");\nclass File {\n    constructor(tokens, scopes) {\n        this.tokens = tokens;\n        this.scopes = scopes;\n    }\n}\nexports.File = File;\nfunction parse(input, isJSXEnabled, isTypeScriptEnabled, isFlowEnabled) {\n    if (isFlowEnabled && isTypeScriptEnabled) {\n        throw new Error(\"Cannot combine flow and typescript plugins.\");\n    }\n    (0, base_1.initParser)(input, isJSXEnabled, isTypeScriptEnabled, isFlowEnabled);\n    const result = (0, index_1.parseFile)();\n    if (base_1.state.error) {\n        throw (0, base_1.augmentError)(base_1.state.error);\n    }\n    return result;\n}\n","type":"js","dependency_paths":[["./traverser/base","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/base.js"],["./traverser/index","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/index.js"]],"dependency_map":[],"exported":[{"type":"named","name":"File"},{"type":"named","name":"parse"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/index.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.parse = parse;\n    const base_1 = require(\"540718e523\") /* ./traverser/base */;\n    const index_1 = require(\"5bde8156b9\") /* ./traverser/index */;\n    class File {\n        constructor(tokens, scopes) {\n            this.tokens = tokens;\n            this.scopes = scopes;\n        }\n    }\n    exports.File = File;\n    function parse(input, isJSXEnabled, isTypeScriptEnabled, isFlowEnabled) {\n        if (isFlowEnabled && isTypeScriptEnabled) {\n            throw new Error(\"Cannot combine flow and typescript plugins.\");\n        }\n        (0, base_1.initParser)(input, isJSXEnabled, isTypeScriptEnabled, isFlowEnabled);\n        const result = (0, index_1.parseFile)();\n        if (base_1.state.error) {\n            throw (0, base_1.augmentError)(base_1.state.error);\n        }\n        return result;\n    }\n}\n","min_source":"function _(r,t,e,n,o){n(),e.parse=function(r,t,e,n){if(n&&e)throw new Error(\"Cannot combine flow and typescript plugins.\");(0,s.initParser)(r,t,e,n);const o=(0,i.parseFile)();if(s.state.error)throw(0,s.augmentError)(s.state.error);return o};const s=r(\"540718e523\"),i=r(\"5bde8156b9\");e.File=class{constructor(r,t){this.tokens=r,this.scopes=t}}}\n//# sourceMappingURL=index.min.js.map","min_map":"{\"version\":3,\"file\":\"index.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"parse\",\"input\",\"isJSXEnabled\",\"isTypeScriptEnabled\",\"isFlowEnabled\",\"Error\",\"base_1\",\"initParser\",\"result\",\"index_1\",\"parseFile\",\"state\",\"error\",\"augmentError\",\"File\",\"constructor\",\"tokens\",\"scopes\",\"this\"],\"sources\":[\"0\"],\"mappings\":\"AAAuC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACpFD,IACAD,EAAQG,MAUR,SAAeC,EAAOC,EAAcC,EAAqBC,GACrD,GAAIA,GAAiBD,EACjB,MAAM,IAAIE,MAAM,gDAEpB,EAAIC,EAAOC,YAAYN,EAAOC,EAAcC,EAAqBC,GACjE,MAAMI,GAAS,EAAIC,EAAQC,aAC3B,GAAIJ,EAAOK,MAAMC,MACb,MAAM,EAAIN,EAAOO,cAAcP,EAAOK,MAAMC,OAEhD,OAAOJ,CACX,EAnBA,MAAMF,EAASX,EAAQ,cACjBc,EAAUd,EAAQ,cAOxBE,EAAQiB,KANR,MACI,WAAAC,CAAYC,EAAQC,GAChBC,KAAKF,OAASA,EACdE,KAAKD,OAASA,CAClB,EAcR\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/index.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/traverser/index.js","resolution":"ESM","id":"5bde8156b9","hash":"5bde8156b9c70d6e276208b90460c7a5d405e1b87c42c84a0ebd74ff65d62cf4","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parseFile = parseFile;\nconst index_1 = require(\"../tokenizer/index\");\nconst charcodes_1 = require(\"../util/charcodes\");\nconst base_1 = require(\"./base\");\nconst statement_1 = require(\"./statement\");\nfunction parseFile() {\n    // If enabled, skip leading hashbang line.\n    if (base_1.state.pos === 0 &&\n        base_1.input.charCodeAt(0) === charcodes_1.charCodes.numberSign &&\n        base_1.input.charCodeAt(1) === charcodes_1.charCodes.exclamationMark) {\n        (0, index_1.skipLineComment)(2);\n    }\n    (0, index_1.nextToken)();\n    return (0, statement_1.parseTopLevel)();\n}\n","type":"js","dependency_paths":[["../tokenizer/index","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["../util/charcodes","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/charcodes.js"],["./base","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/base.js"],["./statement","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/statement.js"]],"dependency_map":[],"exported":[{"type":"named","name":"parseFile"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/traverser/index.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.parseFile = parseFile;\n    const index_1 = require(\"bfb18d0576\") /* ../tokenizer/index */;\n    const charcodes_1 = require(\"22746c8ce8\") /* ../util/charcodes */;\n    const base_1 = require(\"540718e523\") /* ./base */;\n    const statement_1 = require(\"e3b9989da1\") /* ./statement */;\n    function parseFile() {\n        // If enabled, skip leading hashbang line.\n        if (base_1.state.pos === 0 &&\n            base_1.input.charCodeAt(0) === charcodes_1.charCodes.numberSign &&\n            base_1.input.charCodeAt(1) === charcodes_1.charCodes.exclamationMark) {\n            (0, index_1.skipLineComment)(2);\n        }\n        (0, index_1.nextToken)();\n        return (0, statement_1.parseTopLevel)();\n    }\n}\n","min_source":"function _(e,n,t,o,a){o(),t.parseFile=function(){0===i.state.pos&&i.input.charCodeAt(0)===r.charCodes.numberSign&&i.input.charCodeAt(1)===r.charCodes.exclamationMark&&(0,c.skipLineComment)(2);return(0,c.nextToken)(),(0,s.parseTopLevel)()};const c=e(\"bfb18d0576\"),r=e(\"22746c8ce8\"),i=e(\"540718e523\"),s=e(\"e3b9989da1\")}\n//# sourceMappingURL=index.min.js.map","min_map":"{\"version\":3,\"file\":\"index.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"parseFile\",\"base_1\",\"state\",\"pos\",\"input\",\"charCodeAt\",\"charcodes_1\",\"charCodes\",\"numberSign\",\"exclamationMark\",\"index_1\",\"skipLineComment\",\"nextToken\",\"statement_1\",\"parseTopLevel\"],\"sources\":[\"0\"],\"mappings\":\"AAAiD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC9FD,IACAD,EAAQG,UAKR,WAE6B,IAArBC,EAAOC,MAAMC,KACbF,EAAOG,MAAMC,WAAW,KAAOC,EAAYC,UAAUC,YACrDP,EAAOG,MAAMC,WAAW,KAAOC,EAAYC,UAAUE,kBACrD,EAAIC,EAAQC,iBAAiB,GAGjC,OADA,EAAID,EAAQE,cACL,EAAIC,EAAYC,gBAC3B,EAbA,MAAMJ,EAAUf,EAAQ,cAClBW,EAAcX,EAAQ,cACtBM,EAASN,EAAQ,cACjBkB,EAAclB,EAAQ,aAWhC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/statement.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/traverser/statement.js","resolution":"ESM","id":"e3b9989da1","hash":"e3b9989da18fef2c628c1d55e805b97511fc3feb338aa883a9c596be49f06072","source":"\"use strict\";\n/* eslint max-len: 0 */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parseTopLevel = parseTopLevel;\nexports.parseStatement = parseStatement;\nexports.parseDecorators = parseDecorators;\nexports.baseParseMaybeDecoratorArguments = baseParseMaybeDecoratorArguments;\nexports.parseVarStatement = parseVarStatement;\nexports.parseBlock = parseBlock;\nexports.parseBlockBody = parseBlockBody;\nexports.parseFunction = parseFunction;\nexports.parseFunctionParams = parseFunctionParams;\nexports.parseClass = parseClass;\nexports.parseClassPropertyName = parseClassPropertyName;\nexports.parsePostMemberNameModifiers = parsePostMemberNameModifiers;\nexports.parseClassProperty = parseClassProperty;\nexports.parseExport = parseExport;\nexports.parseExportFrom = parseExportFrom;\nexports.baseParseExportStar = baseParseExportStar;\nexports.parseExportSpecifiers = parseExportSpecifiers;\nexports.parseImport = parseImport;\nconst index_1 = require(\"../index\");\nconst flow_1 = require(\"../plugins/flow\");\nconst typescript_1 = require(\"../plugins/typescript\");\nconst tokenizer_1 = require(\"../tokenizer\");\nconst keywords_1 = require(\"../tokenizer/keywords\");\nconst state_1 = require(\"../tokenizer/state\");\nconst types_1 = require(\"../tokenizer/types\");\nconst charcodes_1 = require(\"../util/charcodes\");\nconst base_1 = require(\"./base\");\nconst expression_1 = require(\"./expression\");\nconst lval_1 = require(\"./lval\");\nconst util_1 = require(\"./util\");\nfunction parseTopLevel() {\n    parseBlockBody(types_1.TokenType.eof);\n    base_1.state.scopes.push(new state_1.Scope(0, base_1.state.tokens.length, true));\n    if (base_1.state.scopeDepth !== 0) {\n        throw new Error(`Invalid scope depth at end of file: ${base_1.state.scopeDepth}`);\n    }\n    return new index_1.File(base_1.state.tokens, base_1.state.scopes);\n}\n// Parse a single statement.\n//\n// If expecting a statement and finding a slash operator, parse a\n// regular expression literal. This is to handle cases like\n// `if (foo) /blah/.exec(foo)`, where looking at the previous token\n// does not help.\nfunction parseStatement(declaration) {\n    if (base_1.isFlowEnabled) {\n        if ((0, flow_1.flowTryParseStatement)()) {\n            return;\n        }\n    }\n    if ((0, tokenizer_1.match)(types_1.TokenType.at)) {\n        parseDecorators();\n    }\n    parseStatementContent(declaration);\n}\nfunction parseStatementContent(declaration) {\n    if (base_1.isTypeScriptEnabled) {\n        if ((0, typescript_1.tsTryParseStatementContent)()) {\n            return;\n        }\n    }\n    const starttype = base_1.state.type;\n    // Most types of statements are recognized by the keyword they\n    // start with. Many are trivial to parse, some require a bit of\n    // complexity.\n    switch (starttype) {\n        case types_1.TokenType._break:\n        case types_1.TokenType._continue:\n            parseBreakContinueStatement();\n            return;\n        case types_1.TokenType._debugger:\n            parseDebuggerStatement();\n            return;\n        case types_1.TokenType._do:\n            parseDoStatement();\n            return;\n        case types_1.TokenType._for:\n            parseForStatement();\n            return;\n        case types_1.TokenType._function:\n            if ((0, tokenizer_1.lookaheadType)() === types_1.TokenType.dot)\n                break;\n            if (!declaration)\n                (0, util_1.unexpected)();\n            parseFunctionStatement();\n            return;\n        case types_1.TokenType._class:\n            if (!declaration)\n                (0, util_1.unexpected)();\n            parseClass(true);\n            return;\n        case types_1.TokenType._if:\n            parseIfStatement();\n            return;\n        case types_1.TokenType._return:\n            parseReturnStatement();\n            return;\n        case types_1.TokenType._switch:\n            parseSwitchStatement();\n            return;\n        case types_1.TokenType._throw:\n            parseThrowStatement();\n            return;\n        case types_1.TokenType._try:\n            parseTryStatement();\n            return;\n        case types_1.TokenType._let:\n        case types_1.TokenType._const:\n            if (!declaration)\n                (0, util_1.unexpected)(); // NOTE: falls through to _var\n        case types_1.TokenType._var:\n            parseVarStatement(starttype !== types_1.TokenType._var);\n            return;\n        case types_1.TokenType._while:\n            parseWhileStatement();\n            return;\n        case types_1.TokenType.braceL:\n            parseBlock();\n            return;\n        case types_1.TokenType.semi:\n            parseEmptyStatement();\n            return;\n        case types_1.TokenType._export:\n        case types_1.TokenType._import: {\n            const nextType = (0, tokenizer_1.lookaheadType)();\n            if (nextType === types_1.TokenType.parenL || nextType === types_1.TokenType.dot) {\n                break;\n            }\n            (0, tokenizer_1.next)();\n            if (starttype === types_1.TokenType._import) {\n                parseImport();\n            }\n            else {\n                parseExport();\n            }\n            return;\n        }\n        case types_1.TokenType.name:\n            if (base_1.state.contextualKeyword === keywords_1.ContextualKeyword._async) {\n                const functionStart = base_1.state.start;\n                // peek ahead and see if next token is a function\n                const snapshot = base_1.state.snapshot();\n                (0, tokenizer_1.next)();\n                if ((0, tokenizer_1.match)(types_1.TokenType._function) && !(0, util_1.canInsertSemicolon)()) {\n                    (0, util_1.expect)(types_1.TokenType._function);\n                    parseFunction(functionStart, true);\n                    return;\n                }\n                else {\n                    base_1.state.restoreFromSnapshot(snapshot);\n                }\n            }\n            else if (base_1.state.contextualKeyword === keywords_1.ContextualKeyword._using &&\n                !(0, util_1.hasFollowingLineBreak)() &&\n                // Statements like `using[0]` and `using in foo` aren't actual using\n                // declarations.\n                (0, tokenizer_1.lookaheadType)() === types_1.TokenType.name) {\n                parseVarStatement(true);\n                return;\n            }\n            else if (startsAwaitUsing()) {\n                (0, util_1.expectContextual)(keywords_1.ContextualKeyword._await);\n                parseVarStatement(true);\n                return;\n            }\n        default:\n            // Do nothing.\n            break;\n    }\n    // If the statement does not start with a statement keyword or a\n    // brace, it's an ExpressionStatement or LabeledStatement. We\n    // simply start parsing an expression, and afterwards, if the\n    // next token is a colon and the expression was a simple\n    // Identifier node, we switch to interpreting it as a label.\n    const initialTokensLength = base_1.state.tokens.length;\n    (0, expression_1.parseExpression)();\n    let simpleName = null;\n    if (base_1.state.tokens.length === initialTokensLength + 1) {\n        const token = base_1.state.tokens[base_1.state.tokens.length - 1];\n        if (token.type === types_1.TokenType.name) {\n            simpleName = token.contextualKeyword;\n        }\n    }\n    if (simpleName == null) {\n        (0, util_1.semicolon)();\n        return;\n    }\n    if ((0, tokenizer_1.eat)(types_1.TokenType.colon)) {\n        parseLabeledStatement();\n    }\n    else {\n        // This was an identifier, so we might want to handle flow/typescript-specific cases.\n        parseIdentifierStatement(simpleName);\n    }\n}\n/**\n * Determine if we're positioned at an `await using` declaration.\n *\n * Note that this can happen either in place of a regular variable declaration\n * or in a loop body, and in both places, there are similar-looking cases where\n * we need to return false.\n *\n * Examples returning true:\n * await using foo = bar();\n * for (await using a of b) {}\n *\n * Examples returning false:\n * await using\n * await using + 1\n * await using instanceof T\n * for (await using;;) {}\n *\n * For now, we early return if we don't see `await`, then do a simple\n * backtracking-based lookahead for the `using` and identifier tokens. In the\n * future, this could be optimized with a character-based approach.\n */\nfunction startsAwaitUsing() {\n    if (!(0, util_1.isContextual)(keywords_1.ContextualKeyword._await)) {\n        return false;\n    }\n    const snapshot = base_1.state.snapshot();\n    // await\n    (0, tokenizer_1.next)();\n    if (!(0, util_1.isContextual)(keywords_1.ContextualKeyword._using) || (0, util_1.hasPrecedingLineBreak)()) {\n        base_1.state.restoreFromSnapshot(snapshot);\n        return false;\n    }\n    // using\n    (0, tokenizer_1.next)();\n    if (!(0, tokenizer_1.match)(types_1.TokenType.name) || (0, util_1.hasPrecedingLineBreak)()) {\n        base_1.state.restoreFromSnapshot(snapshot);\n        return false;\n    }\n    base_1.state.restoreFromSnapshot(snapshot);\n    return true;\n}\nfunction parseDecorators() {\n    while ((0, tokenizer_1.match)(types_1.TokenType.at)) {\n        parseDecorator();\n    }\n}\nfunction parseDecorator() {\n    (0, tokenizer_1.next)();\n    if ((0, tokenizer_1.eat)(types_1.TokenType.parenL)) {\n        (0, expression_1.parseExpression)();\n        (0, util_1.expect)(types_1.TokenType.parenR);\n    }\n    else {\n        (0, expression_1.parseIdentifier)();\n        while ((0, tokenizer_1.eat)(types_1.TokenType.dot)) {\n            (0, expression_1.parseIdentifier)();\n        }\n        parseMaybeDecoratorArguments();\n    }\n}\nfunction parseMaybeDecoratorArguments() {\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsParseMaybeDecoratorArguments)();\n    }\n    else {\n        baseParseMaybeDecoratorArguments();\n    }\n}\nfunction baseParseMaybeDecoratorArguments() {\n    if ((0, tokenizer_1.eat)(types_1.TokenType.parenL)) {\n        (0, expression_1.parseCallExpressionArguments)();\n    }\n}\nfunction parseBreakContinueStatement() {\n    (0, tokenizer_1.next)();\n    if (!(0, util_1.isLineTerminator)()) {\n        (0, expression_1.parseIdentifier)();\n        (0, util_1.semicolon)();\n    }\n}\nfunction parseDebuggerStatement() {\n    (0, tokenizer_1.next)();\n    (0, util_1.semicolon)();\n}\nfunction parseDoStatement() {\n    (0, tokenizer_1.next)();\n    parseStatement(false);\n    (0, util_1.expect)(types_1.TokenType._while);\n    (0, expression_1.parseParenExpression)();\n    (0, tokenizer_1.eat)(types_1.TokenType.semi);\n}\nfunction parseForStatement() {\n    base_1.state.scopeDepth++;\n    const startTokenIndex = base_1.state.tokens.length;\n    parseAmbiguousForStatement();\n    const endTokenIndex = base_1.state.tokens.length;\n    base_1.state.scopes.push(new state_1.Scope(startTokenIndex, endTokenIndex, false));\n    base_1.state.scopeDepth--;\n}\n/**\n * Determine if this token is a `using` declaration (explicit resource\n * management) as part of a loop.\n * https://github.com/tc39/proposal-explicit-resource-management\n */\nfunction isUsingInLoop() {\n    if (!(0, util_1.isContextual)(keywords_1.ContextualKeyword._using)) {\n        return false;\n    }\n    // This must be `for (using of`, where `using` is the name of the loop\n    // variable.\n    if ((0, util_1.isLookaheadContextual)(keywords_1.ContextualKeyword._of)) {\n        return false;\n    }\n    return true;\n}\n// Disambiguating between a `for` and a `for`/`in` or `for`/`of`\n// loop is non-trivial. Basically, we have to parse the init `var`\n// statement or expression, disallowing the `in` operator (see\n// the second parameter to `parseExpression`), and then check\n// whether the next token is `in` or `of`. When there is no init\n// part (semicolon immediately after the opening parenthesis), it\n// is a regular `for` loop.\nfunction parseAmbiguousForStatement() {\n    (0, tokenizer_1.next)();\n    let forAwait = false;\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._await)) {\n        forAwait = true;\n        (0, tokenizer_1.next)();\n    }\n    (0, util_1.expect)(types_1.TokenType.parenL);\n    if ((0, tokenizer_1.match)(types_1.TokenType.semi)) {\n        if (forAwait) {\n            (0, util_1.unexpected)();\n        }\n        parseFor();\n        return;\n    }\n    const isAwaitUsing = startsAwaitUsing();\n    if (isAwaitUsing || (0, tokenizer_1.match)(types_1.TokenType._var) || (0, tokenizer_1.match)(types_1.TokenType._let) || (0, tokenizer_1.match)(types_1.TokenType._const) || isUsingInLoop()) {\n        if (isAwaitUsing) {\n            (0, util_1.expectContextual)(keywords_1.ContextualKeyword._await);\n        }\n        (0, tokenizer_1.next)();\n        parseVar(true, base_1.state.type !== types_1.TokenType._var);\n        if ((0, tokenizer_1.match)(types_1.TokenType._in) || (0, util_1.isContextual)(keywords_1.ContextualKeyword._of)) {\n            parseForIn(forAwait);\n            return;\n        }\n        parseFor();\n        return;\n    }\n    (0, expression_1.parseExpression)(true);\n    if ((0, tokenizer_1.match)(types_1.TokenType._in) || (0, util_1.isContextual)(keywords_1.ContextualKeyword._of)) {\n        parseForIn(forAwait);\n        return;\n    }\n    if (forAwait) {\n        (0, util_1.unexpected)();\n    }\n    parseFor();\n}\nfunction parseFunctionStatement() {\n    const functionStart = base_1.state.start;\n    (0, tokenizer_1.next)();\n    parseFunction(functionStart, true);\n}\nfunction parseIfStatement() {\n    (0, tokenizer_1.next)();\n    (0, expression_1.parseParenExpression)();\n    parseStatement(false);\n    if ((0, tokenizer_1.eat)(types_1.TokenType._else)) {\n        parseStatement(false);\n    }\n}\nfunction parseReturnStatement() {\n    (0, tokenizer_1.next)();\n    // In `return` (and `break`/`continue`), the keywords with\n    // optional arguments, we eagerly look for a semicolon or the\n    // possibility to insert one.\n    if (!(0, util_1.isLineTerminator)()) {\n        (0, expression_1.parseExpression)();\n        (0, util_1.semicolon)();\n    }\n}\nfunction parseSwitchStatement() {\n    (0, tokenizer_1.next)();\n    (0, expression_1.parseParenExpression)();\n    base_1.state.scopeDepth++;\n    const startTokenIndex = base_1.state.tokens.length;\n    (0, util_1.expect)(types_1.TokenType.braceL);\n    // Don't bother validation; just go through any sequence of cases, defaults, and statements.\n    while (!(0, tokenizer_1.match)(types_1.TokenType.braceR) && !base_1.state.error) {\n        if ((0, tokenizer_1.match)(types_1.TokenType._case) || (0, tokenizer_1.match)(types_1.TokenType._default)) {\n            const isCase = (0, tokenizer_1.match)(types_1.TokenType._case);\n            (0, tokenizer_1.next)();\n            if (isCase) {\n                (0, expression_1.parseExpression)();\n            }\n            (0, util_1.expect)(types_1.TokenType.colon);\n        }\n        else {\n            parseStatement(true);\n        }\n    }\n    (0, tokenizer_1.next)(); // Closing brace\n    const endTokenIndex = base_1.state.tokens.length;\n    base_1.state.scopes.push(new state_1.Scope(startTokenIndex, endTokenIndex, false));\n    base_1.state.scopeDepth--;\n}\nfunction parseThrowStatement() {\n    (0, tokenizer_1.next)();\n    (0, expression_1.parseExpression)();\n    (0, util_1.semicolon)();\n}\nfunction parseCatchClauseParam() {\n    (0, lval_1.parseBindingAtom)(true /* isBlockScope */);\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsTryParseTypeAnnotation)();\n    }\n}\nfunction parseTryStatement() {\n    (0, tokenizer_1.next)();\n    parseBlock();\n    if ((0, tokenizer_1.match)(types_1.TokenType._catch)) {\n        (0, tokenizer_1.next)();\n        let catchBindingStartTokenIndex = null;\n        if ((0, tokenizer_1.match)(types_1.TokenType.parenL)) {\n            base_1.state.scopeDepth++;\n            catchBindingStartTokenIndex = base_1.state.tokens.length;\n            (0, util_1.expect)(types_1.TokenType.parenL);\n            parseCatchClauseParam();\n            (0, util_1.expect)(types_1.TokenType.parenR);\n        }\n        parseBlock();\n        if (catchBindingStartTokenIndex != null) {\n            // We need a special scope for the catch binding which includes the binding itself and the\n            // catch block.\n            const endTokenIndex = base_1.state.tokens.length;\n            base_1.state.scopes.push(new state_1.Scope(catchBindingStartTokenIndex, endTokenIndex, false));\n            base_1.state.scopeDepth--;\n        }\n    }\n    if ((0, tokenizer_1.eat)(types_1.TokenType._finally)) {\n        parseBlock();\n    }\n}\nfunction parseVarStatement(isBlockScope) {\n    (0, tokenizer_1.next)();\n    parseVar(false, isBlockScope);\n    (0, util_1.semicolon)();\n}\nfunction parseWhileStatement() {\n    (0, tokenizer_1.next)();\n    (0, expression_1.parseParenExpression)();\n    parseStatement(false);\n}\nfunction parseEmptyStatement() {\n    (0, tokenizer_1.next)();\n}\nfunction parseLabeledStatement() {\n    parseStatement(true);\n}\n/**\n * Parse a statement starting with an identifier of the given name. Subclasses match on the name\n * to handle statements like \"declare\".\n */\nfunction parseIdentifierStatement(contextualKeyword) {\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsParseIdentifierStatement)(contextualKeyword);\n    }\n    else if (base_1.isFlowEnabled) {\n        (0, flow_1.flowParseIdentifierStatement)(contextualKeyword);\n    }\n    else {\n        (0, util_1.semicolon)();\n    }\n}\n// Parse a semicolon-enclosed block of statements.\nfunction parseBlock(isFunctionScope = false, contextId = 0) {\n    const startTokenIndex = base_1.state.tokens.length;\n    base_1.state.scopeDepth++;\n    (0, util_1.expect)(types_1.TokenType.braceL);\n    if (contextId) {\n        base_1.state.tokens[base_1.state.tokens.length - 1].contextId = contextId;\n    }\n    parseBlockBody(types_1.TokenType.braceR);\n    if (contextId) {\n        base_1.state.tokens[base_1.state.tokens.length - 1].contextId = contextId;\n    }\n    const endTokenIndex = base_1.state.tokens.length;\n    base_1.state.scopes.push(new state_1.Scope(startTokenIndex, endTokenIndex, isFunctionScope));\n    base_1.state.scopeDepth--;\n}\nfunction parseBlockBody(end) {\n    while (!(0, tokenizer_1.eat)(end) && !base_1.state.error) {\n        parseStatement(true);\n    }\n}\n// Parse a regular `for` loop. The disambiguation code in\n// `parseStatement` will already have parsed the init statement or\n// expression.\nfunction parseFor() {\n    (0, util_1.expect)(types_1.TokenType.semi);\n    if (!(0, tokenizer_1.match)(types_1.TokenType.semi)) {\n        (0, expression_1.parseExpression)();\n    }\n    (0, util_1.expect)(types_1.TokenType.semi);\n    if (!(0, tokenizer_1.match)(types_1.TokenType.parenR)) {\n        (0, expression_1.parseExpression)();\n    }\n    (0, util_1.expect)(types_1.TokenType.parenR);\n    parseStatement(false);\n}\n// Parse a `for`/`in` and `for`/`of` loop, which are almost\n// same from parser's perspective.\nfunction parseForIn(forAwait) {\n    if (forAwait) {\n        (0, util_1.eatContextual)(keywords_1.ContextualKeyword._of);\n    }\n    else {\n        (0, tokenizer_1.next)();\n    }\n    (0, expression_1.parseExpression)();\n    (0, util_1.expect)(types_1.TokenType.parenR);\n    parseStatement(false);\n}\n// Parse a list of variable declarations.\nfunction parseVar(isFor, isBlockScope) {\n    while (true) {\n        parseVarHead(isBlockScope);\n        if ((0, tokenizer_1.eat)(types_1.TokenType.eq)) {\n            const eqIndex = base_1.state.tokens.length - 1;\n            (0, expression_1.parseMaybeAssign)(isFor);\n            base_1.state.tokens[eqIndex].rhsEndIndex = base_1.state.tokens.length;\n        }\n        if (!(0, tokenizer_1.eat)(types_1.TokenType.comma)) {\n            break;\n        }\n    }\n}\nfunction parseVarHead(isBlockScope) {\n    (0, lval_1.parseBindingAtom)(isBlockScope);\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsAfterParseVarHead)();\n    }\n    else if (base_1.isFlowEnabled) {\n        (0, flow_1.flowAfterParseVarHead)();\n    }\n}\n// Parse a function declaration or literal (depending on the\n// `isStatement` parameter).\nfunction parseFunction(functionStart, isStatement, optionalId = false) {\n    if ((0, tokenizer_1.match)(types_1.TokenType.star)) {\n        (0, tokenizer_1.next)();\n    }\n    if (isStatement && !optionalId && !(0, tokenizer_1.match)(types_1.TokenType.name) && !(0, tokenizer_1.match)(types_1.TokenType._yield)) {\n        (0, util_1.unexpected)();\n    }\n    let nameScopeStartTokenIndex = null;\n    if ((0, tokenizer_1.match)(types_1.TokenType.name)) {\n        // Expression-style functions should limit their name's scope to the function body, so we make\n        // a new function scope to enforce that.\n        if (!isStatement) {\n            nameScopeStartTokenIndex = base_1.state.tokens.length;\n            base_1.state.scopeDepth++;\n        }\n        (0, lval_1.parseBindingIdentifier)(false);\n    }\n    const startTokenIndex = base_1.state.tokens.length;\n    base_1.state.scopeDepth++;\n    parseFunctionParams();\n    (0, expression_1.parseFunctionBodyAndFinish)(functionStart);\n    const endTokenIndex = base_1.state.tokens.length;\n    // In addition to the block scope of the function body, we need a separate function-style scope\n    // that includes the params.\n    base_1.state.scopes.push(new state_1.Scope(startTokenIndex, endTokenIndex, true));\n    base_1.state.scopeDepth--;\n    if (nameScopeStartTokenIndex !== null) {\n        base_1.state.scopes.push(new state_1.Scope(nameScopeStartTokenIndex, endTokenIndex, true));\n        base_1.state.scopeDepth--;\n    }\n}\nfunction parseFunctionParams(allowModifiers = false, funcContextId = 0) {\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsStartParseFunctionParams)();\n    }\n    else if (base_1.isFlowEnabled) {\n        (0, flow_1.flowStartParseFunctionParams)();\n    }\n    (0, util_1.expect)(types_1.TokenType.parenL);\n    if (funcContextId) {\n        base_1.state.tokens[base_1.state.tokens.length - 1].contextId = funcContextId;\n    }\n    (0, lval_1.parseBindingList)(types_1.TokenType.parenR, false /* isBlockScope */, false /* allowEmpty */, allowModifiers, funcContextId);\n    if (funcContextId) {\n        base_1.state.tokens[base_1.state.tokens.length - 1].contextId = funcContextId;\n    }\n}\n// Parse a class declaration or literal (depending on the\n// `isStatement` parameter).\nfunction parseClass(isStatement, optionalId = false) {\n    // Put a context ID on the class keyword, the open-brace, and the close-brace, so that later\n    // code can easily navigate to meaningful points on the class.\n    const contextId = (0, base_1.getNextContextId)();\n    (0, tokenizer_1.next)();\n    base_1.state.tokens[base_1.state.tokens.length - 1].contextId = contextId;\n    base_1.state.tokens[base_1.state.tokens.length - 1].isExpression = !isStatement;\n    // Like with functions, we declare a special \"name scope\" from the start of the name to the end\n    // of the class, but only with expression-style classes, to represent the fact that the name is\n    // available to the body of the class but not an outer declaration.\n    let nameScopeStartTokenIndex = null;\n    if (!isStatement) {\n        nameScopeStartTokenIndex = base_1.state.tokens.length;\n        base_1.state.scopeDepth++;\n    }\n    parseClassId(isStatement, optionalId);\n    parseClassSuper();\n    const openBraceIndex = base_1.state.tokens.length;\n    parseClassBody(contextId);\n    if (base_1.state.error) {\n        return;\n    }\n    base_1.state.tokens[openBraceIndex].contextId = contextId;\n    base_1.state.tokens[base_1.state.tokens.length - 1].contextId = contextId;\n    if (nameScopeStartTokenIndex !== null) {\n        const endTokenIndex = base_1.state.tokens.length;\n        base_1.state.scopes.push(new state_1.Scope(nameScopeStartTokenIndex, endTokenIndex, false));\n        base_1.state.scopeDepth--;\n    }\n}\nfunction isClassProperty() {\n    return (0, tokenizer_1.match)(types_1.TokenType.eq) || (0, tokenizer_1.match)(types_1.TokenType.semi) || (0, tokenizer_1.match)(types_1.TokenType.braceR) || (0, tokenizer_1.match)(types_1.TokenType.bang) || (0, tokenizer_1.match)(types_1.TokenType.colon);\n}\nfunction isClassMethod() {\n    return (0, tokenizer_1.match)(types_1.TokenType.parenL) || (0, tokenizer_1.match)(types_1.TokenType.lessThan);\n}\nfunction parseClassBody(classContextId) {\n    (0, util_1.expect)(types_1.TokenType.braceL);\n    while (!(0, tokenizer_1.eat)(types_1.TokenType.braceR) && !base_1.state.error) {\n        if ((0, tokenizer_1.eat)(types_1.TokenType.semi)) {\n            continue;\n        }\n        if ((0, tokenizer_1.match)(types_1.TokenType.at)) {\n            parseDecorator();\n            continue;\n        }\n        const memberStart = base_1.state.start;\n        parseClassMember(memberStart, classContextId);\n    }\n}\nfunction parseClassMember(memberStart, classContextId) {\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsParseModifiers)([\n            keywords_1.ContextualKeyword._declare,\n            keywords_1.ContextualKeyword._public,\n            keywords_1.ContextualKeyword._protected,\n            keywords_1.ContextualKeyword._private,\n            keywords_1.ContextualKeyword._override,\n        ]);\n    }\n    let isStatic = false;\n    if ((0, tokenizer_1.match)(types_1.TokenType.name) && base_1.state.contextualKeyword === keywords_1.ContextualKeyword._static) {\n        (0, expression_1.parseIdentifier)(); // eats 'static'\n        if (isClassMethod()) {\n            parseClassMethod(memberStart, /* isConstructor */ false);\n            return;\n        }\n        else if (isClassProperty()) {\n            parseClassProperty();\n            return;\n        }\n        // otherwise something static\n        base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._static;\n        isStatic = true;\n        if ((0, tokenizer_1.match)(types_1.TokenType.braceL)) {\n            // This is a static block. Mark the word \"static\" with the class context ID for class element\n            // detection and parse as a regular block.\n            base_1.state.tokens[base_1.state.tokens.length - 1].contextId = classContextId;\n            parseBlock();\n            return;\n        }\n    }\n    parseClassMemberWithIsStatic(memberStart, isStatic, classContextId);\n}\nfunction parseClassMemberWithIsStatic(memberStart, isStatic, classContextId) {\n    if (base_1.isTypeScriptEnabled) {\n        if ((0, typescript_1.tsTryParseClassMemberWithIsStatic)(isStatic)) {\n            return;\n        }\n    }\n    if ((0, tokenizer_1.eat)(types_1.TokenType.star)) {\n        // a generator\n        parseClassPropertyName(classContextId);\n        parseClassMethod(memberStart, /* isConstructor */ false);\n        return;\n    }\n    // Get the identifier name so we can tell if it's actually a keyword like \"async\", \"get\", or\n    // \"set\".\n    parseClassPropertyName(classContextId);\n    let isConstructor = false;\n    const token = base_1.state.tokens[base_1.state.tokens.length - 1];\n    // We allow \"constructor\" as either an identifier or a string.\n    if (token.contextualKeyword === keywords_1.ContextualKeyword._constructor) {\n        isConstructor = true;\n    }\n    parsePostMemberNameModifiers();\n    if (isClassMethod()) {\n        parseClassMethod(memberStart, isConstructor);\n    }\n    else if (isClassProperty()) {\n        parseClassProperty();\n    }\n    else if (token.contextualKeyword === keywords_1.ContextualKeyword._async && !(0, util_1.isLineTerminator)()) {\n        base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._async;\n        // an async method\n        const isGenerator = (0, tokenizer_1.match)(types_1.TokenType.star);\n        if (isGenerator) {\n            (0, tokenizer_1.next)();\n        }\n        // The so-called parsed name would have been \"async\": get the real name.\n        parseClassPropertyName(classContextId);\n        parsePostMemberNameModifiers();\n        parseClassMethod(memberStart, false /* isConstructor */);\n    }\n    else if ((token.contextualKeyword === keywords_1.ContextualKeyword._get ||\n        token.contextualKeyword === keywords_1.ContextualKeyword._set) &&\n        !((0, util_1.isLineTerminator)() && (0, tokenizer_1.match)(types_1.TokenType.star))) {\n        if (token.contextualKeyword === keywords_1.ContextualKeyword._get) {\n            base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._get;\n        }\n        else {\n            base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._set;\n        }\n        // `get\\n*` is an uninitialized property named 'get' followed by a generator.\n        // a getter or setter\n        // The so-called parsed name would have been \"get/set\": get the real name.\n        parseClassPropertyName(classContextId);\n        parseClassMethod(memberStart, /* isConstructor */ false);\n    }\n    else if (token.contextualKeyword === keywords_1.ContextualKeyword._accessor && !(0, util_1.isLineTerminator)()) {\n        parseClassPropertyName(classContextId);\n        parseClassProperty();\n    }\n    else if ((0, util_1.isLineTerminator)()) {\n        // an uninitialized class property (due to ASI, since we don't otherwise recognize the next token)\n        parseClassProperty();\n    }\n    else {\n        (0, util_1.unexpected)();\n    }\n}\nfunction parseClassMethod(functionStart, isConstructor) {\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsTryParseTypeParameters)();\n    }\n    else if (base_1.isFlowEnabled) {\n        if ((0, tokenizer_1.match)(types_1.TokenType.lessThan)) {\n            (0, flow_1.flowParseTypeParameterDeclaration)();\n        }\n    }\n    (0, expression_1.parseMethod)(functionStart, isConstructor);\n}\n// Return the name of the class property, if it is a simple identifier.\nfunction parseClassPropertyName(classContextId) {\n    (0, expression_1.parsePropertyName)(classContextId);\n}\nfunction parsePostMemberNameModifiers() {\n    if (base_1.isTypeScriptEnabled) {\n        const oldIsType = (0, tokenizer_1.pushTypeContext)(0);\n        (0, tokenizer_1.eat)(types_1.TokenType.question);\n        (0, tokenizer_1.popTypeContext)(oldIsType);\n    }\n}\nfunction parseClassProperty() {\n    if (base_1.isTypeScriptEnabled) {\n        (0, tokenizer_1.eatTypeToken)(types_1.TokenType.bang);\n        (0, typescript_1.tsTryParseTypeAnnotation)();\n    }\n    else if (base_1.isFlowEnabled) {\n        if ((0, tokenizer_1.match)(types_1.TokenType.colon)) {\n            (0, flow_1.flowParseTypeAnnotation)();\n        }\n    }\n    if ((0, tokenizer_1.match)(types_1.TokenType.eq)) {\n        const equalsTokenIndex = base_1.state.tokens.length;\n        (0, tokenizer_1.next)();\n        (0, expression_1.parseMaybeAssign)();\n        base_1.state.tokens[equalsTokenIndex].rhsEndIndex = base_1.state.tokens.length;\n    }\n    (0, util_1.semicolon)();\n}\nfunction parseClassId(isStatement, optionalId = false) {\n    if (base_1.isTypeScriptEnabled &&\n        (!isStatement || optionalId) &&\n        (0, util_1.isContextual)(keywords_1.ContextualKeyword._implements)) {\n        return;\n    }\n    if ((0, tokenizer_1.match)(types_1.TokenType.name)) {\n        (0, lval_1.parseBindingIdentifier)(true);\n    }\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsTryParseTypeParameters)();\n    }\n    else if (base_1.isFlowEnabled) {\n        if ((0, tokenizer_1.match)(types_1.TokenType.lessThan)) {\n            (0, flow_1.flowParseTypeParameterDeclaration)();\n        }\n    }\n}\n// Returns true if there was a superclass.\nfunction parseClassSuper() {\n    let hasSuper = false;\n    if ((0, tokenizer_1.eat)(types_1.TokenType._extends)) {\n        (0, expression_1.parseExprSubscripts)();\n        hasSuper = true;\n    }\n    else {\n        hasSuper = false;\n    }\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsAfterParseClassSuper)(hasSuper);\n    }\n    else if (base_1.isFlowEnabled) {\n        (0, flow_1.flowAfterParseClassSuper)(hasSuper);\n    }\n}\n// Parses module export declaration.\nfunction parseExport() {\n    const exportIndex = base_1.state.tokens.length - 1;\n    if (base_1.isTypeScriptEnabled) {\n        if ((0, typescript_1.tsTryParseExport)()) {\n            return;\n        }\n    }\n    // export * from '...'\n    if (shouldParseExportStar()) {\n        parseExportStar();\n    }\n    else if (isExportDefaultSpecifier()) {\n        // export default from\n        (0, expression_1.parseIdentifier)();\n        if ((0, tokenizer_1.match)(types_1.TokenType.comma) && (0, tokenizer_1.lookaheadType)() === types_1.TokenType.star) {\n            (0, util_1.expect)(types_1.TokenType.comma);\n            (0, util_1.expect)(types_1.TokenType.star);\n            (0, util_1.expectContextual)(keywords_1.ContextualKeyword._as);\n            (0, expression_1.parseIdentifier)();\n        }\n        else {\n            parseExportSpecifiersMaybe();\n        }\n        parseExportFrom();\n    }\n    else if ((0, tokenizer_1.eat)(types_1.TokenType._default)) {\n        // export default ...\n        parseExportDefaultExpression();\n    }\n    else if (shouldParseExportDeclaration()) {\n        parseExportDeclaration();\n    }\n    else {\n        // export { x, y as z } [from '...']\n        parseExportSpecifiers();\n        parseExportFrom();\n    }\n    base_1.state.tokens[exportIndex].rhsEndIndex = base_1.state.tokens.length;\n}\nfunction parseExportDefaultExpression() {\n    if (base_1.isTypeScriptEnabled) {\n        if ((0, typescript_1.tsTryParseExportDefaultExpression)()) {\n            return;\n        }\n    }\n    if (base_1.isFlowEnabled) {\n        if ((0, flow_1.flowTryParseExportDefaultExpression)()) {\n            return;\n        }\n    }\n    const functionStart = base_1.state.start;\n    if ((0, tokenizer_1.eat)(types_1.TokenType._function)) {\n        parseFunction(functionStart, true, true);\n    }\n    else if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._async) && (0, tokenizer_1.lookaheadType)() === types_1.TokenType._function) {\n        // async function declaration\n        (0, util_1.eatContextual)(keywords_1.ContextualKeyword._async);\n        (0, tokenizer_1.eat)(types_1.TokenType._function);\n        parseFunction(functionStart, true, true);\n    }\n    else if ((0, tokenizer_1.match)(types_1.TokenType._class)) {\n        parseClass(true, true);\n    }\n    else if ((0, tokenizer_1.match)(types_1.TokenType.at)) {\n        parseDecorators();\n        parseClass(true, true);\n    }\n    else {\n        (0, expression_1.parseMaybeAssign)();\n        (0, util_1.semicolon)();\n    }\n}\nfunction parseExportDeclaration() {\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsParseExportDeclaration)();\n    }\n    else if (base_1.isFlowEnabled) {\n        (0, flow_1.flowParseExportDeclaration)();\n    }\n    else {\n        parseStatement(true);\n    }\n}\nfunction isExportDefaultSpecifier() {\n    if (base_1.isTypeScriptEnabled && (0, typescript_1.tsIsDeclarationStart)()) {\n        return false;\n    }\n    else if (base_1.isFlowEnabled && (0, flow_1.flowShouldDisallowExportDefaultSpecifier)()) {\n        return false;\n    }\n    if ((0, tokenizer_1.match)(types_1.TokenType.name)) {\n        return base_1.state.contextualKeyword !== keywords_1.ContextualKeyword._async;\n    }\n    if (!(0, tokenizer_1.match)(types_1.TokenType._default)) {\n        return false;\n    }\n    const _next = (0, tokenizer_1.nextTokenStart)();\n    const lookahead = (0, tokenizer_1.lookaheadTypeAndKeyword)();\n    const hasFrom = lookahead.type === types_1.TokenType.name && lookahead.contextualKeyword === keywords_1.ContextualKeyword._from;\n    if (lookahead.type === types_1.TokenType.comma) {\n        return true;\n    }\n    // lookahead again when `export default from` is seen\n    if (hasFrom) {\n        const nextAfterFrom = base_1.input.charCodeAt((0, tokenizer_1.nextTokenStartSince)(_next + 4));\n        return nextAfterFrom === charcodes_1.charCodes.quotationMark || nextAfterFrom === charcodes_1.charCodes.apostrophe;\n    }\n    return false;\n}\nfunction parseExportSpecifiersMaybe() {\n    if ((0, tokenizer_1.eat)(types_1.TokenType.comma)) {\n        parseExportSpecifiers();\n    }\n}\nfunction parseExportFrom() {\n    if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._from)) {\n        (0, expression_1.parseExprAtom)();\n        maybeParseImportAttributes();\n    }\n    (0, util_1.semicolon)();\n}\nfunction shouldParseExportStar() {\n    if (base_1.isFlowEnabled) {\n        return (0, flow_1.flowShouldParseExportStar)();\n    }\n    else {\n        return (0, tokenizer_1.match)(types_1.TokenType.star);\n    }\n}\nfunction parseExportStar() {\n    if (base_1.isFlowEnabled) {\n        (0, flow_1.flowParseExportStar)();\n    }\n    else {\n        baseParseExportStar();\n    }\n}\nfunction baseParseExportStar() {\n    (0, util_1.expect)(types_1.TokenType.star);\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._as)) {\n        parseExportNamespace();\n    }\n    else {\n        parseExportFrom();\n    }\n}\nfunction parseExportNamespace() {\n    (0, tokenizer_1.next)();\n    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._as;\n    (0, expression_1.parseIdentifier)();\n    parseExportSpecifiersMaybe();\n    parseExportFrom();\n}\nfunction shouldParseExportDeclaration() {\n    return ((base_1.isTypeScriptEnabled && (0, typescript_1.tsIsDeclarationStart)()) ||\n        (base_1.isFlowEnabled && (0, flow_1.flowShouldParseExportDeclaration)()) ||\n        base_1.state.type === types_1.TokenType._var ||\n        base_1.state.type === types_1.TokenType._const ||\n        base_1.state.type === types_1.TokenType._let ||\n        base_1.state.type === types_1.TokenType._function ||\n        base_1.state.type === types_1.TokenType._class ||\n        (0, util_1.isContextual)(keywords_1.ContextualKeyword._async) ||\n        (0, tokenizer_1.match)(types_1.TokenType.at));\n}\n// Parses a comma-separated list of module exports.\nfunction parseExportSpecifiers() {\n    let first = true;\n    // export { x, y as z } [from '...']\n    (0, util_1.expect)(types_1.TokenType.braceL);\n    while (!(0, tokenizer_1.eat)(types_1.TokenType.braceR) && !base_1.state.error) {\n        if (first) {\n            first = false;\n        }\n        else {\n            (0, util_1.expect)(types_1.TokenType.comma);\n            if ((0, tokenizer_1.eat)(types_1.TokenType.braceR)) {\n                break;\n            }\n        }\n        parseExportSpecifier();\n    }\n}\nfunction parseExportSpecifier() {\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsParseExportSpecifier)();\n        return;\n    }\n    (0, expression_1.parseIdentifier)();\n    base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = tokenizer_1.IdentifierRole.ExportAccess;\n    if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._as)) {\n        (0, expression_1.parseIdentifier)();\n    }\n}\n/**\n * Starting at the `module` token in an import, determine if it was truly an\n * import reflection token or just looks like one.\n *\n * Returns true for:\n * import module foo from \"foo\";\n * import module from from \"foo\";\n *\n * Returns false for:\n * import module from \"foo\";\n * import module, {bar} from \"foo\";\n */\nfunction isImportReflection() {\n    const snapshot = base_1.state.snapshot();\n    (0, util_1.expectContextual)(keywords_1.ContextualKeyword._module);\n    if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._from)) {\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._from)) {\n            base_1.state.restoreFromSnapshot(snapshot);\n            return true;\n        }\n        else {\n            base_1.state.restoreFromSnapshot(snapshot);\n            return false;\n        }\n    }\n    else if ((0, tokenizer_1.match)(types_1.TokenType.comma)) {\n        base_1.state.restoreFromSnapshot(snapshot);\n        return false;\n    }\n    else {\n        base_1.state.restoreFromSnapshot(snapshot);\n        return true;\n    }\n}\n/**\n * Eat the \"module\" token from the import reflection proposal.\n * https://github.com/tc39/proposal-import-reflection\n */\nfunction parseMaybeImportReflection() {\n    // isImportReflection does snapshot/restore, so only run it if we see the word\n    // \"module\".\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._module) && isImportReflection()) {\n        (0, tokenizer_1.next)();\n    }\n}\n// Parses import declaration.\nfunction parseImport() {\n    if (base_1.isTypeScriptEnabled && (0, tokenizer_1.match)(types_1.TokenType.name) && (0, tokenizer_1.lookaheadType)() === types_1.TokenType.eq) {\n        (0, typescript_1.tsParseImportEqualsDeclaration)();\n        return;\n    }\n    if (base_1.isTypeScriptEnabled && (0, util_1.isContextual)(keywords_1.ContextualKeyword._type)) {\n        const lookahead = (0, tokenizer_1.lookaheadTypeAndKeyword)();\n        if (lookahead.type === types_1.TokenType.name && lookahead.contextualKeyword !== keywords_1.ContextualKeyword._from) {\n            // One of these `import type` cases:\n            // import type T = require('T');\n            // import type A from 'A';\n            (0, util_1.expectContextual)(keywords_1.ContextualKeyword._type);\n            if ((0, tokenizer_1.lookaheadType)() === types_1.TokenType.eq) {\n                (0, typescript_1.tsParseImportEqualsDeclaration)();\n                return;\n            }\n            // If this is an `import type...from` statement, then we already ate the\n            // type token, so proceed to the regular import parser.\n        }\n        else if (lookahead.type === types_1.TokenType.star || lookahead.type === types_1.TokenType.braceL) {\n            // One of these `import type` cases, in which case we can eat the type token\n            // and proceed as normal:\n            // import type * as A from 'A';\n            // import type {a} from 'A';\n            (0, util_1.expectContextual)(keywords_1.ContextualKeyword._type);\n        }\n        // Otherwise, we are importing the name \"type\".\n    }\n    // import '...'\n    if ((0, tokenizer_1.match)(types_1.TokenType.string)) {\n        (0, expression_1.parseExprAtom)();\n    }\n    else {\n        parseMaybeImportReflection();\n        parseImportSpecifiers();\n        (0, util_1.expectContextual)(keywords_1.ContextualKeyword._from);\n        (0, expression_1.parseExprAtom)();\n    }\n    maybeParseImportAttributes();\n    (0, util_1.semicolon)();\n}\n// eslint-disable-next-line no-unused-vars\nfunction shouldParseDefaultImport() {\n    return (0, tokenizer_1.match)(types_1.TokenType.name);\n}\nfunction parseImportSpecifierLocal() {\n    (0, lval_1.parseImportedIdentifier)();\n}\n// Parses a comma-separated list of module imports.\nfunction parseImportSpecifiers() {\n    if (base_1.isFlowEnabled) {\n        (0, flow_1.flowStartParseImportSpecifiers)();\n    }\n    let first = true;\n    if (shouldParseDefaultImport()) {\n        // import defaultObj, { x, y as z } from '...'\n        parseImportSpecifierLocal();\n        if (!(0, tokenizer_1.eat)(types_1.TokenType.comma))\n            return;\n    }\n    if ((0, tokenizer_1.match)(types_1.TokenType.star)) {\n        (0, tokenizer_1.next)();\n        (0, util_1.expectContextual)(keywords_1.ContextualKeyword._as);\n        parseImportSpecifierLocal();\n        return;\n    }\n    (0, util_1.expect)(types_1.TokenType.braceL);\n    while (!(0, tokenizer_1.eat)(types_1.TokenType.braceR) && !base_1.state.error) {\n        if (first) {\n            first = false;\n        }\n        else {\n            // Detect an attempt to deep destructure\n            if ((0, tokenizer_1.eat)(types_1.TokenType.colon)) {\n                (0, util_1.unexpected)(\"ES2015 named imports do not destructure. Use another statement for destructuring after the import.\");\n            }\n            (0, util_1.expect)(types_1.TokenType.comma);\n            if ((0, tokenizer_1.eat)(types_1.TokenType.braceR)) {\n                break;\n            }\n        }\n        parseImportSpecifier();\n    }\n}\nfunction parseImportSpecifier() {\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsParseImportSpecifier)();\n        return;\n    }\n    if (base_1.isFlowEnabled) {\n        (0, flow_1.flowParseImportSpecifier)();\n        return;\n    }\n    (0, lval_1.parseImportedIdentifier)();\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._as)) {\n        base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = tokenizer_1.IdentifierRole.ImportAccess;\n        (0, tokenizer_1.next)();\n        (0, lval_1.parseImportedIdentifier)();\n    }\n}\n/**\n * Parse import attributes like `with {type: \"json\"}`, or the legacy form\n * `assert {type: \"json\"}`.\n *\n * Import attributes technically have their own syntax, but are always parseable\n * as a plain JS object, so just do that for simplicity.\n */\nfunction maybeParseImportAttributes() {\n    if ((0, tokenizer_1.match)(types_1.TokenType._with) || ((0, util_1.isContextual)(keywords_1.ContextualKeyword._assert) && !(0, util_1.hasPrecedingLineBreak)())) {\n        (0, tokenizer_1.next)();\n        (0, expression_1.parseObj)(false, false);\n    }\n}\n","type":"js","dependency_paths":[["../index","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/index.js"],["../plugins/flow","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/flow.js"],["../plugins/typescript","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/typescript.js"],["../tokenizer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["../tokenizer/keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"],["../tokenizer/state","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/state.js"],["../tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["../util/charcodes","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/charcodes.js"],["./base","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/base.js"],["./expression","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/expression.js"],["./lval","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/lval.js"],["./util","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/util.js"]],"dependency_map":[],"exported":[{"type":"named","name":"parseTopLevel"},{"type":"named","name":"parseStatement"},{"type":"named","name":"parseDecorators"},{"type":"named","name":"baseParseMaybeDecoratorArguments"},{"type":"named","name":"parseVarStatement"},{"type":"named","name":"parseBlock"},{"type":"named","name":"parseBlockBody"},{"type":"named","name":"parseFunction"},{"type":"named","name":"parseFunctionParams"},{"type":"named","name":"parseClass"},{"type":"named","name":"parseClassPropertyName"},{"type":"named","name":"parsePostMemberNameModifiers"},{"type":"named","name":"parseClassProperty"},{"type":"named","name":"parseExport"},{"type":"named","name":"parseExportFrom"},{"type":"named","name":"baseParseExportStar"},{"type":"named","name":"parseExportSpecifiers"},{"type":"named","name":"parseImport"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/traverser/statement.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.parseTopLevel = parseTopLevel;\n    exports.parseStatement = parseStatement;\n    exports.parseDecorators = parseDecorators;\n    exports.baseParseMaybeDecoratorArguments = baseParseMaybeDecoratorArguments;\n    exports.parseVarStatement = parseVarStatement;\n    exports.parseBlock = parseBlock;\n    exports.parseBlockBody = parseBlockBody;\n    exports.parseFunction = parseFunction;\n    exports.parseFunctionParams = parseFunctionParams;\n    exports.parseClass = parseClass;\n    exports.parseClassPropertyName = parseClassPropertyName;\n    exports.parsePostMemberNameModifiers = parsePostMemberNameModifiers;\n    exports.parseClassProperty = parseClassProperty;\n    exports.parseExport = parseExport;\n    exports.parseExportFrom = parseExportFrom;\n    exports.baseParseExportStar = baseParseExportStar;\n    exports.parseExportSpecifiers = parseExportSpecifiers;\n    exports.parseImport = parseImport;\n    const index_1 = require(\"7a45c9fdec\") /* ../index */;\n    const flow_1 = require(\"9b8d43cd0a\") /* ../plugins/flow */;\n    const typescript_1 = require(\"6a970c22b9\") /* ../plugins/typescript */;\n    const tokenizer_1 = require(\"bfb18d0576\") /* ../tokenizer */;\n    const keywords_1 = require(\"99ff836c64\") /* ../tokenizer/keywords */;\n    const state_1 = require(\"eda46439d5\") /* ../tokenizer/state */;\n    const types_1 = require(\"f0c35cbd76\") /* ../tokenizer/types */;\n    const charcodes_1 = require(\"22746c8ce8\") /* ../util/charcodes */;\n    const base_1 = require(\"540718e523\") /* ./base */;\n    const expression_1 = require(\"8178e7c3c8\") /* ./expression */;\n    const lval_1 = require(\"4cefc59e67\") /* ./lval */;\n    const util_1 = require(\"bc94bbadc1\") /* ./util */;\n    function parseTopLevel() {\n        parseBlockBody(types_1.TokenType.eof);\n        base_1.state.scopes.push(new state_1.Scope(0, base_1.state.tokens.length, true));\n        if (base_1.state.scopeDepth !== 0) {\n            throw new Error(`Invalid scope depth at end of file: ${base_1.state.scopeDepth}`);\n        }\n        return new index_1.File(base_1.state.tokens, base_1.state.scopes);\n    }\n    // Parse a single statement.\n    //\n    // If expecting a statement and finding a slash operator, parse a\n    // regular expression literal. This is to handle cases like\n    // `if (foo) /blah/.exec(foo)`, where looking at the previous token\n    // does not help.\n    function parseStatement(declaration) {\n        if (base_1.isFlowEnabled) {\n            if ((0, flow_1.flowTryParseStatement)()) {\n                return;\n            }\n        }\n        if ((0, tokenizer_1.match)(types_1.TokenType.at)) {\n            parseDecorators();\n        }\n        parseStatementContent(declaration);\n    }\n    function parseStatementContent(declaration) {\n        if (base_1.isTypeScriptEnabled) {\n            if ((0, typescript_1.tsTryParseStatementContent)()) {\n                return;\n            }\n        }\n        const starttype = base_1.state.type;\n        // Most types of statements are recognized by the keyword they\n        // start with. Many are trivial to parse, some require a bit of\n        // complexity.\n        switch (starttype) {\n            case types_1.TokenType._break:\n            case types_1.TokenType._continue:\n                parseBreakContinueStatement();\n                return;\n            case types_1.TokenType._debugger:\n                parseDebuggerStatement();\n                return;\n            case types_1.TokenType._do:\n                parseDoStatement();\n                return;\n            case types_1.TokenType._for:\n                parseForStatement();\n                return;\n            case types_1.TokenType._function:\n                if ((0, tokenizer_1.lookaheadType)() === types_1.TokenType.dot)\n                    break;\n                if (!declaration)\n                    (0, util_1.unexpected)();\n                parseFunctionStatement();\n                return;\n            case types_1.TokenType._class:\n                if (!declaration)\n                    (0, util_1.unexpected)();\n                parseClass(true);\n                return;\n            case types_1.TokenType._if:\n                parseIfStatement();\n                return;\n            case types_1.TokenType._return:\n                parseReturnStatement();\n                return;\n            case types_1.TokenType._switch:\n                parseSwitchStatement();\n                return;\n            case types_1.TokenType._throw:\n                parseThrowStatement();\n                return;\n            case types_1.TokenType._try:\n                parseTryStatement();\n                return;\n            case types_1.TokenType._let:\n            case types_1.TokenType._const:\n                if (!declaration)\n                    (0, util_1.unexpected)(); // NOTE: falls through to _var\n            case types_1.TokenType._var:\n                parseVarStatement(starttype !== types_1.TokenType._var);\n                return;\n            case types_1.TokenType._while:\n                parseWhileStatement();\n                return;\n            case types_1.TokenType.braceL:\n                parseBlock();\n                return;\n            case types_1.TokenType.semi:\n                parseEmptyStatement();\n                return;\n            case types_1.TokenType._export:\n            case types_1.TokenType._import: {\n                const nextType = (0, tokenizer_1.lookaheadType)();\n                if (nextType === types_1.TokenType.parenL || nextType === types_1.TokenType.dot) {\n                    break;\n                }\n                (0, tokenizer_1.next)();\n                if (starttype === types_1.TokenType._import) {\n                    parseImport();\n                }\n                else {\n                    parseExport();\n                }\n                return;\n            }\n            case types_1.TokenType.name:\n                if (base_1.state.contextualKeyword === keywords_1.ContextualKeyword._async) {\n                    const functionStart = base_1.state.start;\n                    // peek ahead and see if next token is a function\n                    const snapshot = base_1.state.snapshot();\n                    (0, tokenizer_1.next)();\n                    if ((0, tokenizer_1.match)(types_1.TokenType._function) && !(0, util_1.canInsertSemicolon)()) {\n                        (0, util_1.expect)(types_1.TokenType._function);\n                        parseFunction(functionStart, true);\n                        return;\n                    }\n                    else {\n                        base_1.state.restoreFromSnapshot(snapshot);\n                    }\n                }\n                else if (base_1.state.contextualKeyword === keywords_1.ContextualKeyword._using &&\n                    !(0, util_1.hasFollowingLineBreak)() &&\n                    // Statements like `using[0]` and `using in foo` aren't actual using\n                    // declarations.\n                    (0, tokenizer_1.lookaheadType)() === types_1.TokenType.name) {\n                    parseVarStatement(true);\n                    return;\n                }\n                else if (startsAwaitUsing()) {\n                    (0, util_1.expectContextual)(keywords_1.ContextualKeyword._await);\n                    parseVarStatement(true);\n                    return;\n                }\n            default:\n                // Do nothing.\n                break;\n        }\n        // If the statement does not start with a statement keyword or a\n        // brace, it's an ExpressionStatement or LabeledStatement. We\n        // simply start parsing an expression, and afterwards, if the\n        // next token is a colon and the expression was a simple\n        // Identifier node, we switch to interpreting it as a label.\n        const initialTokensLength = base_1.state.tokens.length;\n        (0, expression_1.parseExpression)();\n        let simpleName = null;\n        if (base_1.state.tokens.length === initialTokensLength + 1) {\n            const token = base_1.state.tokens[base_1.state.tokens.length - 1];\n            if (token.type === types_1.TokenType.name) {\n                simpleName = token.contextualKeyword;\n            }\n        }\n        if (simpleName == null) {\n            (0, util_1.semicolon)();\n            return;\n        }\n        if ((0, tokenizer_1.eat)(types_1.TokenType.colon)) {\n            parseLabeledStatement();\n        }\n        else {\n            // This was an identifier, so we might want to handle flow/typescript-specific cases.\n            parseIdentifierStatement(simpleName);\n        }\n    }\n    /**\n     * Determine if we're positioned at an `await using` declaration.\n     *\n     * Note that this can happen either in place of a regular variable declaration\n     * or in a loop body, and in both places, there are similar-looking cases where\n     * we need to return false.\n     *\n     * Examples returning true:\n     * await using foo = bar();\n     * for (await using a of b) {}\n     *\n     * Examples returning false:\n     * await using\n     * await using + 1\n     * await using instanceof T\n     * for (await using;;) {}\n     *\n     * For now, we early return if we don't see `await`, then do a simple\n     * backtracking-based lookahead for the `using` and identifier tokens. In the\n     * future, this could be optimized with a character-based approach.\n     */\n    function startsAwaitUsing() {\n        if (!(0, util_1.isContextual)(keywords_1.ContextualKeyword._await)) {\n            return false;\n        }\n        const snapshot = base_1.state.snapshot();\n        // await\n        (0, tokenizer_1.next)();\n        if (!(0, util_1.isContextual)(keywords_1.ContextualKeyword._using) || (0, util_1.hasPrecedingLineBreak)()) {\n            base_1.state.restoreFromSnapshot(snapshot);\n            return false;\n        }\n        // using\n        (0, tokenizer_1.next)();\n        if (!(0, tokenizer_1.match)(types_1.TokenType.name) || (0, util_1.hasPrecedingLineBreak)()) {\n            base_1.state.restoreFromSnapshot(snapshot);\n            return false;\n        }\n        base_1.state.restoreFromSnapshot(snapshot);\n        return true;\n    }\n    function parseDecorators() {\n        while ((0, tokenizer_1.match)(types_1.TokenType.at)) {\n            parseDecorator();\n        }\n    }\n    function parseDecorator() {\n        (0, tokenizer_1.next)();\n        if ((0, tokenizer_1.eat)(types_1.TokenType.parenL)) {\n            (0, expression_1.parseExpression)();\n            (0, util_1.expect)(types_1.TokenType.parenR);\n        }\n        else {\n            (0, expression_1.parseIdentifier)();\n            while ((0, tokenizer_1.eat)(types_1.TokenType.dot)) {\n                (0, expression_1.parseIdentifier)();\n            }\n            parseMaybeDecoratorArguments();\n        }\n    }\n    function parseMaybeDecoratorArguments() {\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsParseMaybeDecoratorArguments)();\n        }\n        else {\n            baseParseMaybeDecoratorArguments();\n        }\n    }\n    function baseParseMaybeDecoratorArguments() {\n        if ((0, tokenizer_1.eat)(types_1.TokenType.parenL)) {\n            (0, expression_1.parseCallExpressionArguments)();\n        }\n    }\n    function parseBreakContinueStatement() {\n        (0, tokenizer_1.next)();\n        if (!(0, util_1.isLineTerminator)()) {\n            (0, expression_1.parseIdentifier)();\n            (0, util_1.semicolon)();\n        }\n    }\n    function parseDebuggerStatement() {\n        (0, tokenizer_1.next)();\n        (0, util_1.semicolon)();\n    }\n    function parseDoStatement() {\n        (0, tokenizer_1.next)();\n        parseStatement(false);\n        (0, util_1.expect)(types_1.TokenType._while);\n        (0, expression_1.parseParenExpression)();\n        (0, tokenizer_1.eat)(types_1.TokenType.semi);\n    }\n    function parseForStatement() {\n        base_1.state.scopeDepth++;\n        const startTokenIndex = base_1.state.tokens.length;\n        parseAmbiguousForStatement();\n        const endTokenIndex = base_1.state.tokens.length;\n        base_1.state.scopes.push(new state_1.Scope(startTokenIndex, endTokenIndex, false));\n        base_1.state.scopeDepth--;\n    }\n    /**\n     * Determine if this token is a `using` declaration (explicit resource\n     * management) as part of a loop.\n     * https://github.com/tc39/proposal-explicit-resource-management\n     */\n    function isUsingInLoop() {\n        if (!(0, util_1.isContextual)(keywords_1.ContextualKeyword._using)) {\n            return false;\n        }\n        // This must be `for (using of`, where `using` is the name of the loop\n        // variable.\n        if ((0, util_1.isLookaheadContextual)(keywords_1.ContextualKeyword._of)) {\n            return false;\n        }\n        return true;\n    }\n    // Disambiguating between a `for` and a `for`/`in` or `for`/`of`\n    // loop is non-trivial. Basically, we have to parse the init `var`\n    // statement or expression, disallowing the `in` operator (see\n    // the second parameter to `parseExpression`), and then check\n    // whether the next token is `in` or `of`. When there is no init\n    // part (semicolon immediately after the opening parenthesis), it\n    // is a regular `for` loop.\n    function parseAmbiguousForStatement() {\n        (0, tokenizer_1.next)();\n        let forAwait = false;\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._await)) {\n            forAwait = true;\n            (0, tokenizer_1.next)();\n        }\n        (0, util_1.expect)(types_1.TokenType.parenL);\n        if ((0, tokenizer_1.match)(types_1.TokenType.semi)) {\n            if (forAwait) {\n                (0, util_1.unexpected)();\n            }\n            parseFor();\n            return;\n        }\n        const isAwaitUsing = startsAwaitUsing();\n        if (isAwaitUsing || (0, tokenizer_1.match)(types_1.TokenType._var) || (0, tokenizer_1.match)(types_1.TokenType._let) || (0, tokenizer_1.match)(types_1.TokenType._const) || isUsingInLoop()) {\n            if (isAwaitUsing) {\n                (0, util_1.expectContextual)(keywords_1.ContextualKeyword._await);\n            }\n            (0, tokenizer_1.next)();\n            parseVar(true, base_1.state.type !== types_1.TokenType._var);\n            if ((0, tokenizer_1.match)(types_1.TokenType._in) || (0, util_1.isContextual)(keywords_1.ContextualKeyword._of)) {\n                parseForIn(forAwait);\n                return;\n            }\n            parseFor();\n            return;\n        }\n        (0, expression_1.parseExpression)(true);\n        if ((0, tokenizer_1.match)(types_1.TokenType._in) || (0, util_1.isContextual)(keywords_1.ContextualKeyword._of)) {\n            parseForIn(forAwait);\n            return;\n        }\n        if (forAwait) {\n            (0, util_1.unexpected)();\n        }\n        parseFor();\n    }\n    function parseFunctionStatement() {\n        const functionStart = base_1.state.start;\n        (0, tokenizer_1.next)();\n        parseFunction(functionStart, true);\n    }\n    function parseIfStatement() {\n        (0, tokenizer_1.next)();\n        (0, expression_1.parseParenExpression)();\n        parseStatement(false);\n        if ((0, tokenizer_1.eat)(types_1.TokenType._else)) {\n            parseStatement(false);\n        }\n    }\n    function parseReturnStatement() {\n        (0, tokenizer_1.next)();\n        // In `return` (and `break`/`continue`), the keywords with\n        // optional arguments, we eagerly look for a semicolon or the\n        // possibility to insert one.\n        if (!(0, util_1.isLineTerminator)()) {\n            (0, expression_1.parseExpression)();\n            (0, util_1.semicolon)();\n        }\n    }\n    function parseSwitchStatement() {\n        (0, tokenizer_1.next)();\n        (0, expression_1.parseParenExpression)();\n        base_1.state.scopeDepth++;\n        const startTokenIndex = base_1.state.tokens.length;\n        (0, util_1.expect)(types_1.TokenType.braceL);\n        // Don't bother validation; just go through any sequence of cases, defaults, and statements.\n        while (!(0, tokenizer_1.match)(types_1.TokenType.braceR) && !base_1.state.error) {\n            if ((0, tokenizer_1.match)(types_1.TokenType._case) || (0, tokenizer_1.match)(types_1.TokenType._default)) {\n                const isCase = (0, tokenizer_1.match)(types_1.TokenType._case);\n                (0, tokenizer_1.next)();\n                if (isCase) {\n                    (0, expression_1.parseExpression)();\n                }\n                (0, util_1.expect)(types_1.TokenType.colon);\n            }\n            else {\n                parseStatement(true);\n            }\n        }\n        (0, tokenizer_1.next)(); // Closing brace\n        const endTokenIndex = base_1.state.tokens.length;\n        base_1.state.scopes.push(new state_1.Scope(startTokenIndex, endTokenIndex, false));\n        base_1.state.scopeDepth--;\n    }\n    function parseThrowStatement() {\n        (0, tokenizer_1.next)();\n        (0, expression_1.parseExpression)();\n        (0, util_1.semicolon)();\n    }\n    function parseCatchClauseParam() {\n        (0, lval_1.parseBindingAtom)(true /* isBlockScope */);\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsTryParseTypeAnnotation)();\n        }\n    }\n    function parseTryStatement() {\n        (0, tokenizer_1.next)();\n        parseBlock();\n        if ((0, tokenizer_1.match)(types_1.TokenType._catch)) {\n            (0, tokenizer_1.next)();\n            let catchBindingStartTokenIndex = null;\n            if ((0, tokenizer_1.match)(types_1.TokenType.parenL)) {\n                base_1.state.scopeDepth++;\n                catchBindingStartTokenIndex = base_1.state.tokens.length;\n                (0, util_1.expect)(types_1.TokenType.parenL);\n                parseCatchClauseParam();\n                (0, util_1.expect)(types_1.TokenType.parenR);\n            }\n            parseBlock();\n            if (catchBindingStartTokenIndex != null) {\n                // We need a special scope for the catch binding which includes the binding itself and the\n                // catch block.\n                const endTokenIndex = base_1.state.tokens.length;\n                base_1.state.scopes.push(new state_1.Scope(catchBindingStartTokenIndex, endTokenIndex, false));\n                base_1.state.scopeDepth--;\n            }\n        }\n        if ((0, tokenizer_1.eat)(types_1.TokenType._finally)) {\n            parseBlock();\n        }\n    }\n    function parseVarStatement(isBlockScope) {\n        (0, tokenizer_1.next)();\n        parseVar(false, isBlockScope);\n        (0, util_1.semicolon)();\n    }\n    function parseWhileStatement() {\n        (0, tokenizer_1.next)();\n        (0, expression_1.parseParenExpression)();\n        parseStatement(false);\n    }\n    function parseEmptyStatement() {\n        (0, tokenizer_1.next)();\n    }\n    function parseLabeledStatement() {\n        parseStatement(true);\n    }\n    /**\n     * Parse a statement starting with an identifier of the given name. Subclasses match on the name\n     * to handle statements like \"declare\".\n     */\n    function parseIdentifierStatement(contextualKeyword) {\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsParseIdentifierStatement)(contextualKeyword);\n        }\n        else if (base_1.isFlowEnabled) {\n            (0, flow_1.flowParseIdentifierStatement)(contextualKeyword);\n        }\n        else {\n            (0, util_1.semicolon)();\n        }\n    }\n    // Parse a semicolon-enclosed block of statements.\n    function parseBlock(isFunctionScope = false, contextId = 0) {\n        const startTokenIndex = base_1.state.tokens.length;\n        base_1.state.scopeDepth++;\n        (0, util_1.expect)(types_1.TokenType.braceL);\n        if (contextId) {\n            base_1.state.tokens[base_1.state.tokens.length - 1].contextId = contextId;\n        }\n        parseBlockBody(types_1.TokenType.braceR);\n        if (contextId) {\n            base_1.state.tokens[base_1.state.tokens.length - 1].contextId = contextId;\n        }\n        const endTokenIndex = base_1.state.tokens.length;\n        base_1.state.scopes.push(new state_1.Scope(startTokenIndex, endTokenIndex, isFunctionScope));\n        base_1.state.scopeDepth--;\n    }\n    function parseBlockBody(end) {\n        while (!(0, tokenizer_1.eat)(end) && !base_1.state.error) {\n            parseStatement(true);\n        }\n    }\n    // Parse a regular `for` loop. The disambiguation code in\n    // `parseStatement` will already have parsed the init statement or\n    // expression.\n    function parseFor() {\n        (0, util_1.expect)(types_1.TokenType.semi);\n        if (!(0, tokenizer_1.match)(types_1.TokenType.semi)) {\n            (0, expression_1.parseExpression)();\n        }\n        (0, util_1.expect)(types_1.TokenType.semi);\n        if (!(0, tokenizer_1.match)(types_1.TokenType.parenR)) {\n            (0, expression_1.parseExpression)();\n        }\n        (0, util_1.expect)(types_1.TokenType.parenR);\n        parseStatement(false);\n    }\n    // Parse a `for`/`in` and `for`/`of` loop, which are almost\n    // same from parser's perspective.\n    function parseForIn(forAwait) {\n        if (forAwait) {\n            (0, util_1.eatContextual)(keywords_1.ContextualKeyword._of);\n        }\n        else {\n            (0, tokenizer_1.next)();\n        }\n        (0, expression_1.parseExpression)();\n        (0, util_1.expect)(types_1.TokenType.parenR);\n        parseStatement(false);\n    }\n    // Parse a list of variable declarations.\n    function parseVar(isFor, isBlockScope) {\n        while (true) {\n            parseVarHead(isBlockScope);\n            if ((0, tokenizer_1.eat)(types_1.TokenType.eq)) {\n                const eqIndex = base_1.state.tokens.length - 1;\n                (0, expression_1.parseMaybeAssign)(isFor);\n                base_1.state.tokens[eqIndex].rhsEndIndex = base_1.state.tokens.length;\n            }\n            if (!(0, tokenizer_1.eat)(types_1.TokenType.comma)) {\n                break;\n            }\n        }\n    }\n    function parseVarHead(isBlockScope) {\n        (0, lval_1.parseBindingAtom)(isBlockScope);\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsAfterParseVarHead)();\n        }\n        else if (base_1.isFlowEnabled) {\n            (0, flow_1.flowAfterParseVarHead)();\n        }\n    }\n    // Parse a function declaration or literal (depending on the\n    // `isStatement` parameter).\n    function parseFunction(functionStart, isStatement, optionalId = false) {\n        if ((0, tokenizer_1.match)(types_1.TokenType.star)) {\n            (0, tokenizer_1.next)();\n        }\n        if (isStatement && !optionalId && !(0, tokenizer_1.match)(types_1.TokenType.name) && !(0, tokenizer_1.match)(types_1.TokenType._yield)) {\n            (0, util_1.unexpected)();\n        }\n        let nameScopeStartTokenIndex = null;\n        if ((0, tokenizer_1.match)(types_1.TokenType.name)) {\n            // Expression-style functions should limit their name's scope to the function body, so we make\n            // a new function scope to enforce that.\n            if (!isStatement) {\n                nameScopeStartTokenIndex = base_1.state.tokens.length;\n                base_1.state.scopeDepth++;\n            }\n            (0, lval_1.parseBindingIdentifier)(false);\n        }\n        const startTokenIndex = base_1.state.tokens.length;\n        base_1.state.scopeDepth++;\n        parseFunctionParams();\n        (0, expression_1.parseFunctionBodyAndFinish)(functionStart);\n        const endTokenIndex = base_1.state.tokens.length;\n        // In addition to the block scope of the function body, we need a separate function-style scope\n        // that includes the params.\n        base_1.state.scopes.push(new state_1.Scope(startTokenIndex, endTokenIndex, true));\n        base_1.state.scopeDepth--;\n        if (nameScopeStartTokenIndex !== null) {\n            base_1.state.scopes.push(new state_1.Scope(nameScopeStartTokenIndex, endTokenIndex, true));\n            base_1.state.scopeDepth--;\n        }\n    }\n    function parseFunctionParams(allowModifiers = false, funcContextId = 0) {\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsStartParseFunctionParams)();\n        }\n        else if (base_1.isFlowEnabled) {\n            (0, flow_1.flowStartParseFunctionParams)();\n        }\n        (0, util_1.expect)(types_1.TokenType.parenL);\n        if (funcContextId) {\n            base_1.state.tokens[base_1.state.tokens.length - 1].contextId = funcContextId;\n        }\n        (0, lval_1.parseBindingList)(types_1.TokenType.parenR, false /* isBlockScope */, false /* allowEmpty */, allowModifiers, funcContextId);\n        if (funcContextId) {\n            base_1.state.tokens[base_1.state.tokens.length - 1].contextId = funcContextId;\n        }\n    }\n    // Parse a class declaration or literal (depending on the\n    // `isStatement` parameter).\n    function parseClass(isStatement, optionalId = false) {\n        // Put a context ID on the class keyword, the open-brace, and the close-brace, so that later\n        // code can easily navigate to meaningful points on the class.\n        const contextId = (0, base_1.getNextContextId)();\n        (0, tokenizer_1.next)();\n        base_1.state.tokens[base_1.state.tokens.length - 1].contextId = contextId;\n        base_1.state.tokens[base_1.state.tokens.length - 1].isExpression = !isStatement;\n        // Like with functions, we declare a special \"name scope\" from the start of the name to the end\n        // of the class, but only with expression-style classes, to represent the fact that the name is\n        // available to the body of the class but not an outer declaration.\n        let nameScopeStartTokenIndex = null;\n        if (!isStatement) {\n            nameScopeStartTokenIndex = base_1.state.tokens.length;\n            base_1.state.scopeDepth++;\n        }\n        parseClassId(isStatement, optionalId);\n        parseClassSuper();\n        const openBraceIndex = base_1.state.tokens.length;\n        parseClassBody(contextId);\n        if (base_1.state.error) {\n            return;\n        }\n        base_1.state.tokens[openBraceIndex].contextId = contextId;\n        base_1.state.tokens[base_1.state.tokens.length - 1].contextId = contextId;\n        if (nameScopeStartTokenIndex !== null) {\n            const endTokenIndex = base_1.state.tokens.length;\n            base_1.state.scopes.push(new state_1.Scope(nameScopeStartTokenIndex, endTokenIndex, false));\n            base_1.state.scopeDepth--;\n        }\n    }\n    function isClassProperty() {\n        return (0, tokenizer_1.match)(types_1.TokenType.eq) || (0, tokenizer_1.match)(types_1.TokenType.semi) || (0, tokenizer_1.match)(types_1.TokenType.braceR) || (0, tokenizer_1.match)(types_1.TokenType.bang) || (0, tokenizer_1.match)(types_1.TokenType.colon);\n    }\n    function isClassMethod() {\n        return (0, tokenizer_1.match)(types_1.TokenType.parenL) || (0, tokenizer_1.match)(types_1.TokenType.lessThan);\n    }\n    function parseClassBody(classContextId) {\n        (0, util_1.expect)(types_1.TokenType.braceL);\n        while (!(0, tokenizer_1.eat)(types_1.TokenType.braceR) && !base_1.state.error) {\n            if ((0, tokenizer_1.eat)(types_1.TokenType.semi)) {\n                continue;\n            }\n            if ((0, tokenizer_1.match)(types_1.TokenType.at)) {\n                parseDecorator();\n                continue;\n            }\n            const memberStart = base_1.state.start;\n            parseClassMember(memberStart, classContextId);\n        }\n    }\n    function parseClassMember(memberStart, classContextId) {\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsParseModifiers)([\n                keywords_1.ContextualKeyword._declare,\n                keywords_1.ContextualKeyword._public,\n                keywords_1.ContextualKeyword._protected,\n                keywords_1.ContextualKeyword._private,\n                keywords_1.ContextualKeyword._override,\n            ]);\n        }\n        let isStatic = false;\n        if ((0, tokenizer_1.match)(types_1.TokenType.name) && base_1.state.contextualKeyword === keywords_1.ContextualKeyword._static) {\n            (0, expression_1.parseIdentifier)(); // eats 'static'\n            if (isClassMethod()) {\n                parseClassMethod(memberStart, /* isConstructor */ false);\n                return;\n            }\n            else if (isClassProperty()) {\n                parseClassProperty();\n                return;\n            }\n            // otherwise something static\n            base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._static;\n            isStatic = true;\n            if ((0, tokenizer_1.match)(types_1.TokenType.braceL)) {\n                // This is a static block. Mark the word \"static\" with the class context ID for class element\n                // detection and parse as a regular block.\n                base_1.state.tokens[base_1.state.tokens.length - 1].contextId = classContextId;\n                parseBlock();\n                return;\n            }\n        }\n        parseClassMemberWithIsStatic(memberStart, isStatic, classContextId);\n    }\n    function parseClassMemberWithIsStatic(memberStart, isStatic, classContextId) {\n        if (base_1.isTypeScriptEnabled) {\n            if ((0, typescript_1.tsTryParseClassMemberWithIsStatic)(isStatic)) {\n                return;\n            }\n        }\n        if ((0, tokenizer_1.eat)(types_1.TokenType.star)) {\n            // a generator\n            parseClassPropertyName(classContextId);\n            parseClassMethod(memberStart, /* isConstructor */ false);\n            return;\n        }\n        // Get the identifier name so we can tell if it's actually a keyword like \"async\", \"get\", or\n        // \"set\".\n        parseClassPropertyName(classContextId);\n        let isConstructor = false;\n        const token = base_1.state.tokens[base_1.state.tokens.length - 1];\n        // We allow \"constructor\" as either an identifier or a string.\n        if (token.contextualKeyword === keywords_1.ContextualKeyword._constructor) {\n            isConstructor = true;\n        }\n        parsePostMemberNameModifiers();\n        if (isClassMethod()) {\n            parseClassMethod(memberStart, isConstructor);\n        }\n        else if (isClassProperty()) {\n            parseClassProperty();\n        }\n        else if (token.contextualKeyword === keywords_1.ContextualKeyword._async && !(0, util_1.isLineTerminator)()) {\n            base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._async;\n            // an async method\n            const isGenerator = (0, tokenizer_1.match)(types_1.TokenType.star);\n            if (isGenerator) {\n                (0, tokenizer_1.next)();\n            }\n            // The so-called parsed name would have been \"async\": get the real name.\n            parseClassPropertyName(classContextId);\n            parsePostMemberNameModifiers();\n            parseClassMethod(memberStart, false /* isConstructor */);\n        }\n        else if ((token.contextualKeyword === keywords_1.ContextualKeyword._get ||\n            token.contextualKeyword === keywords_1.ContextualKeyword._set) &&\n            !((0, util_1.isLineTerminator)() && (0, tokenizer_1.match)(types_1.TokenType.star))) {\n            if (token.contextualKeyword === keywords_1.ContextualKeyword._get) {\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._get;\n            }\n            else {\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._set;\n            }\n            // `get\\n*` is an uninitialized property named 'get' followed by a generator.\n            // a getter or setter\n            // The so-called parsed name would have been \"get/set\": get the real name.\n            parseClassPropertyName(classContextId);\n            parseClassMethod(memberStart, /* isConstructor */ false);\n        }\n        else if (token.contextualKeyword === keywords_1.ContextualKeyword._accessor && !(0, util_1.isLineTerminator)()) {\n            parseClassPropertyName(classContextId);\n            parseClassProperty();\n        }\n        else if ((0, util_1.isLineTerminator)()) {\n            // an uninitialized class property (due to ASI, since we don't otherwise recognize the next token)\n            parseClassProperty();\n        }\n        else {\n            (0, util_1.unexpected)();\n        }\n    }\n    function parseClassMethod(functionStart, isConstructor) {\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsTryParseTypeParameters)();\n        }\n        else if (base_1.isFlowEnabled) {\n            if ((0, tokenizer_1.match)(types_1.TokenType.lessThan)) {\n                (0, flow_1.flowParseTypeParameterDeclaration)();\n            }\n        }\n        (0, expression_1.parseMethod)(functionStart, isConstructor);\n    }\n    // Return the name of the class property, if it is a simple identifier.\n    function parseClassPropertyName(classContextId) {\n        (0, expression_1.parsePropertyName)(classContextId);\n    }\n    function parsePostMemberNameModifiers() {\n        if (base_1.isTypeScriptEnabled) {\n            const oldIsType = (0, tokenizer_1.pushTypeContext)(0);\n            (0, tokenizer_1.eat)(types_1.TokenType.question);\n            (0, tokenizer_1.popTypeContext)(oldIsType);\n        }\n    }\n    function parseClassProperty() {\n        if (base_1.isTypeScriptEnabled) {\n            (0, tokenizer_1.eatTypeToken)(types_1.TokenType.bang);\n            (0, typescript_1.tsTryParseTypeAnnotation)();\n        }\n        else if (base_1.isFlowEnabled) {\n            if ((0, tokenizer_1.match)(types_1.TokenType.colon)) {\n                (0, flow_1.flowParseTypeAnnotation)();\n            }\n        }\n        if ((0, tokenizer_1.match)(types_1.TokenType.eq)) {\n            const equalsTokenIndex = base_1.state.tokens.length;\n            (0, tokenizer_1.next)();\n            (0, expression_1.parseMaybeAssign)();\n            base_1.state.tokens[equalsTokenIndex].rhsEndIndex = base_1.state.tokens.length;\n        }\n        (0, util_1.semicolon)();\n    }\n    function parseClassId(isStatement, optionalId = false) {\n        if (base_1.isTypeScriptEnabled &&\n            (!isStatement || optionalId) &&\n            (0, util_1.isContextual)(keywords_1.ContextualKeyword._implements)) {\n            return;\n        }\n        if ((0, tokenizer_1.match)(types_1.TokenType.name)) {\n            (0, lval_1.parseBindingIdentifier)(true);\n        }\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsTryParseTypeParameters)();\n        }\n        else if (base_1.isFlowEnabled) {\n            if ((0, tokenizer_1.match)(types_1.TokenType.lessThan)) {\n                (0, flow_1.flowParseTypeParameterDeclaration)();\n            }\n        }\n    }\n    // Returns true if there was a superclass.\n    function parseClassSuper() {\n        let hasSuper = false;\n        if ((0, tokenizer_1.eat)(types_1.TokenType._extends)) {\n            (0, expression_1.parseExprSubscripts)();\n            hasSuper = true;\n        }\n        else {\n            hasSuper = false;\n        }\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsAfterParseClassSuper)(hasSuper);\n        }\n        else if (base_1.isFlowEnabled) {\n            (0, flow_1.flowAfterParseClassSuper)(hasSuper);\n        }\n    }\n    // Parses module export declaration.\n    function parseExport() {\n        const exportIndex = base_1.state.tokens.length - 1;\n        if (base_1.isTypeScriptEnabled) {\n            if ((0, typescript_1.tsTryParseExport)()) {\n                return;\n            }\n        }\n        // export * from '...'\n        if (shouldParseExportStar()) {\n            parseExportStar();\n        }\n        else if (isExportDefaultSpecifier()) {\n            // export default from\n            (0, expression_1.parseIdentifier)();\n            if ((0, tokenizer_1.match)(types_1.TokenType.comma) && (0, tokenizer_1.lookaheadType)() === types_1.TokenType.star) {\n                (0, util_1.expect)(types_1.TokenType.comma);\n                (0, util_1.expect)(types_1.TokenType.star);\n                (0, util_1.expectContextual)(keywords_1.ContextualKeyword._as);\n                (0, expression_1.parseIdentifier)();\n            }\n            else {\n                parseExportSpecifiersMaybe();\n            }\n            parseExportFrom();\n        }\n        else if ((0, tokenizer_1.eat)(types_1.TokenType._default)) {\n            // export default ...\n            parseExportDefaultExpression();\n        }\n        else if (shouldParseExportDeclaration()) {\n            parseExportDeclaration();\n        }\n        else {\n            // export { x, y as z } [from '...']\n            parseExportSpecifiers();\n            parseExportFrom();\n        }\n        base_1.state.tokens[exportIndex].rhsEndIndex = base_1.state.tokens.length;\n    }\n    function parseExportDefaultExpression() {\n        if (base_1.isTypeScriptEnabled) {\n            if ((0, typescript_1.tsTryParseExportDefaultExpression)()) {\n                return;\n            }\n        }\n        if (base_1.isFlowEnabled) {\n            if ((0, flow_1.flowTryParseExportDefaultExpression)()) {\n                return;\n            }\n        }\n        const functionStart = base_1.state.start;\n        if ((0, tokenizer_1.eat)(types_1.TokenType._function)) {\n            parseFunction(functionStart, true, true);\n        }\n        else if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._async) && (0, tokenizer_1.lookaheadType)() === types_1.TokenType._function) {\n            // async function declaration\n            (0, util_1.eatContextual)(keywords_1.ContextualKeyword._async);\n            (0, tokenizer_1.eat)(types_1.TokenType._function);\n            parseFunction(functionStart, true, true);\n        }\n        else if ((0, tokenizer_1.match)(types_1.TokenType._class)) {\n            parseClass(true, true);\n        }\n        else if ((0, tokenizer_1.match)(types_1.TokenType.at)) {\n            parseDecorators();\n            parseClass(true, true);\n        }\n        else {\n            (0, expression_1.parseMaybeAssign)();\n            (0, util_1.semicolon)();\n        }\n    }\n    function parseExportDeclaration() {\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsParseExportDeclaration)();\n        }\n        else if (base_1.isFlowEnabled) {\n            (0, flow_1.flowParseExportDeclaration)();\n        }\n        else {\n            parseStatement(true);\n        }\n    }\n    function isExportDefaultSpecifier() {\n        if (base_1.isTypeScriptEnabled && (0, typescript_1.tsIsDeclarationStart)()) {\n            return false;\n        }\n        else if (base_1.isFlowEnabled && (0, flow_1.flowShouldDisallowExportDefaultSpecifier)()) {\n            return false;\n        }\n        if ((0, tokenizer_1.match)(types_1.TokenType.name)) {\n            return base_1.state.contextualKeyword !== keywords_1.ContextualKeyword._async;\n        }\n        if (!(0, tokenizer_1.match)(types_1.TokenType._default)) {\n            return false;\n        }\n        const _next = (0, tokenizer_1.nextTokenStart)();\n        const lookahead = (0, tokenizer_1.lookaheadTypeAndKeyword)();\n        const hasFrom = lookahead.type === types_1.TokenType.name && lookahead.contextualKeyword === keywords_1.ContextualKeyword._from;\n        if (lookahead.type === types_1.TokenType.comma) {\n            return true;\n        }\n        // lookahead again when `export default from` is seen\n        if (hasFrom) {\n            const nextAfterFrom = base_1.input.charCodeAt((0, tokenizer_1.nextTokenStartSince)(_next + 4));\n            return nextAfterFrom === charcodes_1.charCodes.quotationMark || nextAfterFrom === charcodes_1.charCodes.apostrophe;\n        }\n        return false;\n    }\n    function parseExportSpecifiersMaybe() {\n        if ((0, tokenizer_1.eat)(types_1.TokenType.comma)) {\n            parseExportSpecifiers();\n        }\n    }\n    function parseExportFrom() {\n        if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._from)) {\n            (0, expression_1.parseExprAtom)();\n            maybeParseImportAttributes();\n        }\n        (0, util_1.semicolon)();\n    }\n    function shouldParseExportStar() {\n        if (base_1.isFlowEnabled) {\n            return (0, flow_1.flowShouldParseExportStar)();\n        }\n        else {\n            return (0, tokenizer_1.match)(types_1.TokenType.star);\n        }\n    }\n    function parseExportStar() {\n        if (base_1.isFlowEnabled) {\n            (0, flow_1.flowParseExportStar)();\n        }\n        else {\n            baseParseExportStar();\n        }\n    }\n    function baseParseExportStar() {\n        (0, util_1.expect)(types_1.TokenType.star);\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._as)) {\n            parseExportNamespace();\n        }\n        else {\n            parseExportFrom();\n        }\n    }\n    function parseExportNamespace() {\n        (0, tokenizer_1.next)();\n        base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._as;\n        (0, expression_1.parseIdentifier)();\n        parseExportSpecifiersMaybe();\n        parseExportFrom();\n    }\n    function shouldParseExportDeclaration() {\n        return ((base_1.isTypeScriptEnabled && (0, typescript_1.tsIsDeclarationStart)()) ||\n            (base_1.isFlowEnabled && (0, flow_1.flowShouldParseExportDeclaration)()) ||\n            base_1.state.type === types_1.TokenType._var ||\n            base_1.state.type === types_1.TokenType._const ||\n            base_1.state.type === types_1.TokenType._let ||\n            base_1.state.type === types_1.TokenType._function ||\n            base_1.state.type === types_1.TokenType._class ||\n            (0, util_1.isContextual)(keywords_1.ContextualKeyword._async) ||\n            (0, tokenizer_1.match)(types_1.TokenType.at));\n    }\n    // Parses a comma-separated list of module exports.\n    function parseExportSpecifiers() {\n        let first = true;\n        // export { x, y as z } [from '...']\n        (0, util_1.expect)(types_1.TokenType.braceL);\n        while (!(0, tokenizer_1.eat)(types_1.TokenType.braceR) && !base_1.state.error) {\n            if (first) {\n                first = false;\n            }\n            else {\n                (0, util_1.expect)(types_1.TokenType.comma);\n                if ((0, tokenizer_1.eat)(types_1.TokenType.braceR)) {\n                    break;\n                }\n            }\n            parseExportSpecifier();\n        }\n    }\n    function parseExportSpecifier() {\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsParseExportSpecifier)();\n            return;\n        }\n        (0, expression_1.parseIdentifier)();\n        base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = tokenizer_1.IdentifierRole.ExportAccess;\n        if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._as)) {\n            (0, expression_1.parseIdentifier)();\n        }\n    }\n    /**\n     * Starting at the `module` token in an import, determine if it was truly an\n     * import reflection token or just looks like one.\n     *\n     * Returns true for:\n     * import module foo from \"foo\";\n     * import module from from \"foo\";\n     *\n     * Returns false for:\n     * import module from \"foo\";\n     * import module, {bar} from \"foo\";\n     */\n    function isImportReflection() {\n        const snapshot = base_1.state.snapshot();\n        (0, util_1.expectContextual)(keywords_1.ContextualKeyword._module);\n        if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._from)) {\n            if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._from)) {\n                base_1.state.restoreFromSnapshot(snapshot);\n                return true;\n            }\n            else {\n                base_1.state.restoreFromSnapshot(snapshot);\n                return false;\n            }\n        }\n        else if ((0, tokenizer_1.match)(types_1.TokenType.comma)) {\n            base_1.state.restoreFromSnapshot(snapshot);\n            return false;\n        }\n        else {\n            base_1.state.restoreFromSnapshot(snapshot);\n            return true;\n        }\n    }\n    /**\n     * Eat the \"module\" token from the import reflection proposal.\n     * https://github.com/tc39/proposal-import-reflection\n     */\n    function parseMaybeImportReflection() {\n        // isImportReflection does snapshot/restore, so only run it if we see the word\n        // \"module\".\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._module) && isImportReflection()) {\n            (0, tokenizer_1.next)();\n        }\n    }\n    // Parses import declaration.\n    function parseImport() {\n        if (base_1.isTypeScriptEnabled && (0, tokenizer_1.match)(types_1.TokenType.name) && (0, tokenizer_1.lookaheadType)() === types_1.TokenType.eq) {\n            (0, typescript_1.tsParseImportEqualsDeclaration)();\n            return;\n        }\n        if (base_1.isTypeScriptEnabled && (0, util_1.isContextual)(keywords_1.ContextualKeyword._type)) {\n            const lookahead = (0, tokenizer_1.lookaheadTypeAndKeyword)();\n            if (lookahead.type === types_1.TokenType.name && lookahead.contextualKeyword !== keywords_1.ContextualKeyword._from) {\n                // One of these `import type` cases:\n                // import type T = require('T');\n                // import type A from 'A';\n                (0, util_1.expectContextual)(keywords_1.ContextualKeyword._type);\n                if ((0, tokenizer_1.lookaheadType)() === types_1.TokenType.eq) {\n                    (0, typescript_1.tsParseImportEqualsDeclaration)();\n                    return;\n                }\n                // If this is an `import type...from` statement, then we already ate the\n                // type token, so proceed to the regular import parser.\n            }\n            else if (lookahead.type === types_1.TokenType.star || lookahead.type === types_1.TokenType.braceL) {\n                // One of these `import type` cases, in which case we can eat the type token\n                // and proceed as normal:\n                // import type * as A from 'A';\n                // import type {a} from 'A';\n                (0, util_1.expectContextual)(keywords_1.ContextualKeyword._type);\n            }\n            // Otherwise, we are importing the name \"type\".\n        }\n        // import '...'\n        if ((0, tokenizer_1.match)(types_1.TokenType.string)) {\n            (0, expression_1.parseExprAtom)();\n        }\n        else {\n            parseMaybeImportReflection();\n            parseImportSpecifiers();\n            (0, util_1.expectContextual)(keywords_1.ContextualKeyword._from);\n            (0, expression_1.parseExprAtom)();\n        }\n        maybeParseImportAttributes();\n        (0, util_1.semicolon)();\n    }\n    // eslint-disable-next-line no-unused-vars\n    function shouldParseDefaultImport() {\n        return (0, tokenizer_1.match)(types_1.TokenType.name);\n    }\n    function parseImportSpecifierLocal() {\n        (0, lval_1.parseImportedIdentifier)();\n    }\n    // Parses a comma-separated list of module imports.\n    function parseImportSpecifiers() {\n        if (base_1.isFlowEnabled) {\n            (0, flow_1.flowStartParseImportSpecifiers)();\n        }\n        let first = true;\n        if (shouldParseDefaultImport()) {\n            // import defaultObj, { x, y as z } from '...'\n            parseImportSpecifierLocal();\n            if (!(0, tokenizer_1.eat)(types_1.TokenType.comma))\n                return;\n        }\n        if ((0, tokenizer_1.match)(types_1.TokenType.star)) {\n            (0, tokenizer_1.next)();\n            (0, util_1.expectContextual)(keywords_1.ContextualKeyword._as);\n            parseImportSpecifierLocal();\n            return;\n        }\n        (0, util_1.expect)(types_1.TokenType.braceL);\n        while (!(0, tokenizer_1.eat)(types_1.TokenType.braceR) && !base_1.state.error) {\n            if (first) {\n                first = false;\n            }\n            else {\n                // Detect an attempt to deep destructure\n                if ((0, tokenizer_1.eat)(types_1.TokenType.colon)) {\n                    (0, util_1.unexpected)(\"ES2015 named imports do not destructure. Use another statement for destructuring after the import.\");\n                }\n                (0, util_1.expect)(types_1.TokenType.comma);\n                if ((0, tokenizer_1.eat)(types_1.TokenType.braceR)) {\n                    break;\n                }\n            }\n            parseImportSpecifier();\n        }\n    }\n    function parseImportSpecifier() {\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsParseImportSpecifier)();\n            return;\n        }\n        if (base_1.isFlowEnabled) {\n            (0, flow_1.flowParseImportSpecifier)();\n            return;\n        }\n        (0, lval_1.parseImportedIdentifier)();\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._as)) {\n            base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = tokenizer_1.IdentifierRole.ImportAccess;\n            (0, tokenizer_1.next)();\n            (0, lval_1.parseImportedIdentifier)();\n        }\n    }\n    /**\n     * Parse import attributes like `with {type: \"json\"}`, or the legacy form\n     * `assert {type: \"json\"}`.\n     *\n     * Import attributes technically have their own syntax, but are always parseable\n     * as a plain JS object, so just do that for simplicity.\n     */\n    function maybeParseImportAttributes() {\n        if ((0, tokenizer_1.match)(types_1.TokenType._with) || ((0, util_1.isContextual)(keywords_1.ContextualKeyword._assert) && !(0, util_1.hasPrecedingLineBreak)())) {\n            (0, tokenizer_1.next)();\n            (0, expression_1.parseObj)(false, false);\n        }\n    }\n}\n","min_source":"function _(e,t,n,o,a){o(),n.parseTopLevel=function(){if(E(l.TokenType.eof),u.state.scopes.push(new T.Scope(0,u.state.tokens.length,!0)),0!==u.state.scopeDepth)throw new Error(`Invalid scope depth at end of file: ${u.state.scopeDepth}`);return new s.File(u.state.tokens,u.state.scopes)},n.parseStatement=f,n.parseDecorators=m,n.baseParseMaybeDecoratorArguments=_,n.parseVarStatement=C,n.parseBlock=b,n.parseBlockBody=E,n.parseFunction=I,n.parseFunctionParams=v,n.parseClass=F,n.parseClassPropertyName=B,n.parsePostMemberNameModifiers=M,n.parseClassProperty=q,n.parseExport=N,n.parseExportFrom=H,n.baseParseExportStar=j,n.parseExportSpecifiers=O,n.parseImport=$;const s=e(\"7a45c9fdec\"),r=e(\"9b8d43cd0a\"),p=e(\"6a970c22b9\"),i=e(\"bfb18d0576\"),c=e(\"99ff836c64\"),T=e(\"eda46439d5\"),l=e(\"f0c35cbd76\"),y=e(\"22746c8ce8\"),u=e(\"540718e523\"),d=e(\"8178e7c3c8\"),k=e(\"4cefc59e67\"),x=e(\"bc94bbadc1\");function f(e){u.isFlowEnabled&&(0,r.flowTryParseStatement)()||((0,i.match)(l.TokenType.at)&&m(),function(e){if(u.isTypeScriptEnabled&&(0,p.tsTryParseStatementContent)())return;const t=u.state.type;switch(t){case l.TokenType._break:case l.TokenType._continue:return(0,i.next)(),void((0,x.isLineTerminator)()||((0,d.parseIdentifier)(),(0,x.semicolon)()));case l.TokenType._debugger:return(0,i.next)(),void(0,x.semicolon)();case l.TokenType._do:return(0,i.next)(),f(!1),(0,x.expect)(l.TokenType._while),(0,d.parseParenExpression)(),void(0,i.eat)(l.TokenType.semi);case l.TokenType._for:return void function(){u.state.scopeDepth++;const e=u.state.tokens.length;!function(){(0,i.next)();let e=!1;(0,x.isContextual)(c.ContextualKeyword._await)&&(e=!0,(0,i.next)());if((0,x.expect)(l.TokenType.parenL),(0,i.match)(l.TokenType.semi))return e&&(0,x.unexpected)(),void S();const t=h();if(t||(0,i.match)(l.TokenType._var)||(0,i.match)(l.TokenType._let)||(0,i.match)(l.TokenType._const)||function(){if(!(0,x.isContextual)(c.ContextualKeyword._using))return!1;if((0,x.isLookaheadContextual)(c.ContextualKeyword._of))return!1;return!0}())return t&&(0,x.expectContextual)(c.ContextualKeyword._await),(0,i.next)(),K(!0,u.state.type!==l.TokenType._var),(0,i.match)(l.TokenType._in)||(0,x.isContextual)(c.ContextualKeyword._of)?void g(e):void S();if((0,d.parseExpression)(!0),(0,i.match)(l.TokenType._in)||(0,x.isContextual)(c.ContextualKeyword._of))return void g(e);e&&(0,x.unexpected)();S()}();const t=u.state.tokens.length;u.state.scopes.push(new T.Scope(e,t,!1)),u.state.scopeDepth--}();case l.TokenType._function:if((0,i.lookaheadType)()===l.TokenType.dot)break;return e||(0,x.unexpected)(),void function(){const e=u.state.start;(0,i.next)(),I(e,!0)}();case l.TokenType._class:return e||(0,x.unexpected)(),void F(!0);case l.TokenType._if:return(0,i.next)(),(0,d.parseParenExpression)(),f(!1),void((0,i.eat)(l.TokenType._else)&&f(!1));case l.TokenType._return:return(0,i.next)(),void((0,x.isLineTerminator)()||((0,d.parseExpression)(),(0,x.semicolon)()));case l.TokenType._switch:return void function(){(0,i.next)(),(0,d.parseParenExpression)(),u.state.scopeDepth++;const e=u.state.tokens.length;(0,x.expect)(l.TokenType.braceL);for(;!(0,i.match)(l.TokenType.braceR)&&!u.state.error;)if((0,i.match)(l.TokenType._case)||(0,i.match)(l.TokenType._default)){const e=(0,i.match)(l.TokenType._case);(0,i.next)(),e&&(0,d.parseExpression)(),(0,x.expect)(l.TokenType.colon)}else f(!0);(0,i.next)();const t=u.state.tokens.length;u.state.scopes.push(new T.Scope(e,t,!1)),u.state.scopeDepth--}();case l.TokenType._throw:return(0,i.next)(),(0,d.parseExpression)(),void(0,x.semicolon)();case l.TokenType._try:return void function(){if((0,i.next)(),b(),(0,i.match)(l.TokenType._catch)){(0,i.next)();let e=null;if((0,i.match)(l.TokenType.parenL)&&(u.state.scopeDepth++,e=u.state.tokens.length,(0,x.expect)(l.TokenType.parenL),(0,k.parseBindingAtom)(!0),u.isTypeScriptEnabled&&(0,p.tsTryParseTypeAnnotation)(),(0,x.expect)(l.TokenType.parenR)),b(),null!=e){const t=u.state.tokens.length;u.state.scopes.push(new T.Scope(e,t,!1)),u.state.scopeDepth--}}(0,i.eat)(l.TokenType._finally)&&b()}();case l.TokenType._let:case l.TokenType._const:e||(0,x.unexpected)();case l.TokenType._var:return void C(t!==l.TokenType._var);case l.TokenType._while:return(0,i.next)(),(0,d.parseParenExpression)(),void f(!1);case l.TokenType.braceL:return void b();case l.TokenType.semi:return void(0,i.next)();case l.TokenType._export:case l.TokenType._import:{const e=(0,i.lookaheadType)();if(e===l.TokenType.parenL||e===l.TokenType.dot)break;return(0,i.next)(),void(t===l.TokenType._import?$():N())}case l.TokenType.name:if(u.state.contextualKeyword===c.ContextualKeyword._async){const e=u.state.start,t=u.state.snapshot();if((0,i.next)(),(0,i.match)(l.TokenType._function)&&!(0,x.canInsertSemicolon)())return(0,x.expect)(l.TokenType._function),void I(e,!0);u.state.restoreFromSnapshot(t)}else{if(u.state.contextualKeyword===c.ContextualKeyword._using&&!(0,x.hasFollowingLineBreak)()&&(0,i.lookaheadType)()===l.TokenType.name)return void C(!0);if(h())return(0,x.expectContextual)(c.ContextualKeyword._await),void C(!0)}}const n=u.state.tokens.length;(0,d.parseExpression)();let o=null;if(u.state.tokens.length===n+1){const e=u.state.tokens[u.state.tokens.length-1];e.type===l.TokenType.name&&(o=e.contextualKeyword)}if(null==o)return void(0,x.semicolon)();(0,i.eat)(l.TokenType.colon)?f(!0):(a=o,u.isTypeScriptEnabled?(0,p.tsParseIdentifierStatement)(a):u.isFlowEnabled?(0,r.flowParseIdentifierStatement)(a):(0,x.semicolon)());var a}(e))}function h(){if(!(0,x.isContextual)(c.ContextualKeyword._await))return!1;const e=u.state.snapshot();return(0,i.next)(),!(0,x.isContextual)(c.ContextualKeyword._using)||(0,x.hasPrecedingLineBreak)()?(u.state.restoreFromSnapshot(e),!1):((0,i.next)(),!(0,i.match)(l.TokenType.name)||(0,x.hasPrecedingLineBreak)()?(u.state.restoreFromSnapshot(e),!1):(u.state.restoreFromSnapshot(e),!0))}function m(){for(;(0,i.match)(l.TokenType.at);)w()}function w(){if((0,i.next)(),(0,i.eat)(l.TokenType.parenL))(0,d.parseExpression)(),(0,x.expect)(l.TokenType.parenR);else{for((0,d.parseIdentifier)();(0,i.eat)(l.TokenType.dot);)(0,d.parseIdentifier)();u.isTypeScriptEnabled?(0,p.tsParseMaybeDecoratorArguments)():_()}}function _(){(0,i.eat)(l.TokenType.parenL)&&(0,d.parseCallExpressionArguments)()}function C(e){(0,i.next)(),K(!1,e),(0,x.semicolon)()}function b(e=!1,t=0){const n=u.state.tokens.length;u.state.scopeDepth++,(0,x.expect)(l.TokenType.braceL),t&&(u.state.tokens[u.state.tokens.length-1].contextId=t),E(l.TokenType.braceR),t&&(u.state.tokens[u.state.tokens.length-1].contextId=t);const o=u.state.tokens.length;u.state.scopes.push(new T.Scope(n,o,e)),u.state.scopeDepth--}function E(e){for(;!(0,i.eat)(e)&&!u.state.error;)f(!0)}function S(){(0,x.expect)(l.TokenType.semi),(0,i.match)(l.TokenType.semi)||(0,d.parseExpression)(),(0,x.expect)(l.TokenType.semi),(0,i.match)(l.TokenType.parenR)||(0,d.parseExpression)(),(0,x.expect)(l.TokenType.parenR),f(!1)}function g(e){e?(0,x.eatContextual)(c.ContextualKeyword._of):(0,i.next)(),(0,d.parseExpression)(),(0,x.expect)(l.TokenType.parenR),f(!1)}function K(e,t){for(;;){if(P(t),(0,i.eat)(l.TokenType.eq)){const t=u.state.tokens.length-1;(0,d.parseMaybeAssign)(e),u.state.tokens[t].rhsEndIndex=u.state.tokens.length}if(!(0,i.eat)(l.TokenType.comma))break}}function P(e){(0,k.parseBindingAtom)(e),u.isTypeScriptEnabled?(0,p.tsAfterParseVarHead)():u.isFlowEnabled&&(0,r.flowAfterParseVarHead)()}function I(e,t,n=!1){(0,i.match)(l.TokenType.star)&&(0,i.next)(),!t||n||(0,i.match)(l.TokenType.name)||(0,i.match)(l.TokenType._yield)||(0,x.unexpected)();let o=null;(0,i.match)(l.TokenType.name)&&(t||(o=u.state.tokens.length,u.state.scopeDepth++),(0,k.parseBindingIdentifier)(!1));const a=u.state.tokens.length;u.state.scopeDepth++,v(),(0,d.parseFunctionBodyAndFinish)(e);const s=u.state.tokens.length;u.state.scopes.push(new T.Scope(a,s,!0)),u.state.scopeDepth--,null!==o&&(u.state.scopes.push(new T.Scope(o,s,!0)),u.state.scopeDepth--)}function v(e=!1,t=0){u.isTypeScriptEnabled?(0,p.tsStartParseFunctionParams)():u.isFlowEnabled&&(0,r.flowStartParseFunctionParams)(),(0,x.expect)(l.TokenType.parenL),t&&(u.state.tokens[u.state.tokens.length-1].contextId=t),(0,k.parseBindingList)(l.TokenType.parenR,!1,!1,e,t),t&&(u.state.tokens[u.state.tokens.length-1].contextId=t)}function F(e,t=!1){const n=(0,u.getNextContextId)();(0,i.next)(),u.state.tokens[u.state.tokens.length-1].contextId=n,u.state.tokens[u.state.tokens.length-1].isExpression=!e;let o=null;e||(o=u.state.tokens.length,u.state.scopeDepth++),function(e,t=!1){if(u.isTypeScriptEnabled&&(!e||t)&&(0,x.isContextual)(c.ContextualKeyword._implements))return;(0,i.match)(l.TokenType.name)&&(0,k.parseBindingIdentifier)(!0);u.isTypeScriptEnabled?(0,p.tsTryParseTypeParameters)():u.isFlowEnabled&&(0,i.match)(l.TokenType.lessThan)&&(0,r.flowParseTypeParameterDeclaration)()}(e,t),function(){let e=!1;(0,i.eat)(l.TokenType._extends)?((0,d.parseExprSubscripts)(),e=!0):e=!1;u.isTypeScriptEnabled?(0,p.tsAfterParseClassSuper)(e):u.isFlowEnabled&&(0,r.flowAfterParseClassSuper)(e)}();const a=u.state.tokens.length;if(function(e){(0,x.expect)(l.TokenType.braceL);for(;!(0,i.eat)(l.TokenType.braceR)&&!u.state.error;){if((0,i.eat)(l.TokenType.semi))continue;if((0,i.match)(l.TokenType.at)){w();continue}A(u.state.start,e)}}(n),!u.state.error&&(u.state.tokens[a].contextId=n,u.state.tokens[u.state.tokens.length-1].contextId=n,null!==o)){const e=u.state.tokens.length;u.state.scopes.push(new T.Scope(o,e,!1)),u.state.scopeDepth--}}function D(){return(0,i.match)(l.TokenType.eq)||(0,i.match)(l.TokenType.semi)||(0,i.match)(l.TokenType.braceR)||(0,i.match)(l.TokenType.bang)||(0,i.match)(l.TokenType.colon)}function L(){return(0,i.match)(l.TokenType.parenL)||(0,i.match)(l.TokenType.lessThan)}function A(e,t){u.isTypeScriptEnabled&&(0,p.tsParseModifiers)([c.ContextualKeyword._declare,c.ContextualKeyword._public,c.ContextualKeyword._protected,c.ContextualKeyword._private,c.ContextualKeyword._override]);let n=!1;if((0,i.match)(l.TokenType.name)&&u.state.contextualKeyword===c.ContextualKeyword._static){if((0,d.parseIdentifier)(),L())return void R(e,!1);if(D())return void q();if(u.state.tokens[u.state.tokens.length-1].type=l.TokenType._static,n=!0,(0,i.match)(l.TokenType.braceL))return u.state.tokens[u.state.tokens.length-1].contextId=t,void b()}!function(e,t,n){if(u.isTypeScriptEnabled&&(0,p.tsTryParseClassMemberWithIsStatic)(t))return;if((0,i.eat)(l.TokenType.star))return B(n),void R(e,!1);B(n);let o=!1;const a=u.state.tokens[u.state.tokens.length-1];a.contextualKeyword===c.ContextualKeyword._constructor&&(o=!0);if(M(),L())R(e,o);else if(D())q();else if(a.contextualKeyword!==c.ContextualKeyword._async||(0,x.isLineTerminator)())a.contextualKeyword!==c.ContextualKeyword._get&&a.contextualKeyword!==c.ContextualKeyword._set||(0,x.isLineTerminator)()&&(0,i.match)(l.TokenType.star)?a.contextualKeyword!==c.ContextualKeyword._accessor||(0,x.isLineTerminator)()?(0,x.isLineTerminator)()?q():(0,x.unexpected)():(B(n),q()):(a.contextualKeyword===c.ContextualKeyword._get?u.state.tokens[u.state.tokens.length-1].type=l.TokenType._get:u.state.tokens[u.state.tokens.length-1].type=l.TokenType._set,B(n),R(e,!1));else{u.state.tokens[u.state.tokens.length-1].type=l.TokenType._async;(0,i.match)(l.TokenType.star)&&(0,i.next)(),B(n),M(),R(e,!1)}}(e,n,t)}function R(e,t){u.isTypeScriptEnabled?(0,p.tsTryParseTypeParameters)():u.isFlowEnabled&&(0,i.match)(l.TokenType.lessThan)&&(0,r.flowParseTypeParameterDeclaration)(),(0,d.parseMethod)(e,t)}function B(e){(0,d.parsePropertyName)(e)}function M(){if(u.isTypeScriptEnabled){const e=(0,i.pushTypeContext)(0);(0,i.eat)(l.TokenType.question),(0,i.popTypeContext)(e)}}function q(){if(u.isTypeScriptEnabled?((0,i.eatTypeToken)(l.TokenType.bang),(0,p.tsTryParseTypeAnnotation)()):u.isFlowEnabled&&(0,i.match)(l.TokenType.colon)&&(0,r.flowParseTypeAnnotation)(),(0,i.match)(l.TokenType.eq)){const e=u.state.tokens.length;(0,i.next)(),(0,d.parseMaybeAssign)(),u.state.tokens[e].rhsEndIndex=u.state.tokens.length}(0,x.semicolon)()}function N(){const e=u.state.tokens.length-1;u.isTypeScriptEnabled&&(0,p.tsTryParseExport)()||((u.isFlowEnabled?(0,r.flowShouldParseExportStar)():(0,i.match)(l.TokenType.star))?u.isFlowEnabled?(0,r.flowParseExportStar)():j():function(){if(u.isTypeScriptEnabled&&(0,p.tsIsDeclarationStart)())return!1;if(u.isFlowEnabled&&(0,r.flowShouldDisallowExportDefaultSpecifier)())return!1;if((0,i.match)(l.TokenType.name))return u.state.contextualKeyword!==c.ContextualKeyword._async;if(!(0,i.match)(l.TokenType._default))return!1;const e=(0,i.nextTokenStart)(),t=(0,i.lookaheadTypeAndKeyword)(),n=t.type===l.TokenType.name&&t.contextualKeyword===c.ContextualKeyword._from;if(t.type===l.TokenType.comma)return!0;if(n){const t=u.input.charCodeAt((0,i.nextTokenStartSince)(e+4));return t===y.charCodes.quotationMark||t===y.charCodes.apostrophe}return!1}()?((0,d.parseIdentifier)(),(0,i.match)(l.TokenType.comma)&&(0,i.lookaheadType)()===l.TokenType.star?((0,x.expect)(l.TokenType.comma),(0,x.expect)(l.TokenType.star),(0,x.expectContextual)(c.ContextualKeyword._as),(0,d.parseIdentifier)()):V(),H()):(0,i.eat)(l.TokenType._default)?function(){if(u.isTypeScriptEnabled&&(0,p.tsTryParseExportDefaultExpression)())return;if(u.isFlowEnabled&&(0,r.flowTryParseExportDefaultExpression)())return;const e=u.state.start;(0,i.eat)(l.TokenType._function)?I(e,!0,!0):(0,x.isContextual)(c.ContextualKeyword._async)&&(0,i.lookaheadType)()===l.TokenType._function?((0,x.eatContextual)(c.ContextualKeyword._async),(0,i.eat)(l.TokenType._function),I(e,!0,!0)):(0,i.match)(l.TokenType._class)?F(!0,!0):(0,i.match)(l.TokenType.at)?(m(),F(!0,!0)):((0,d.parseMaybeAssign)(),(0,x.semicolon)())}():u.isTypeScriptEnabled&&(0,p.tsIsDeclarationStart)()||u.isFlowEnabled&&(0,r.flowShouldParseExportDeclaration)()||u.state.type===l.TokenType._var||u.state.type===l.TokenType._const||u.state.type===l.TokenType._let||u.state.type===l.TokenType._function||u.state.type===l.TokenType._class||(0,x.isContextual)(c.ContextualKeyword._async)||(0,i.match)(l.TokenType.at)?u.isTypeScriptEnabled?(0,p.tsParseExportDeclaration)():u.isFlowEnabled?(0,r.flowParseExportDeclaration)():f(!0):(O(),H()),u.state.tokens[e].rhsEndIndex=u.state.tokens.length)}function V(){(0,i.eat)(l.TokenType.comma)&&O()}function H(){(0,x.eatContextual)(c.ContextualKeyword._from)&&((0,d.parseExprAtom)(),J()),(0,x.semicolon)()}function j(){(0,x.expect)(l.TokenType.star),(0,x.isContextual)(c.ContextualKeyword._as)?((0,i.next)(),u.state.tokens[u.state.tokens.length-1].type=l.TokenType._as,(0,d.parseIdentifier)(),V(),H()):H()}function O(){let e=!0;for((0,x.expect)(l.TokenType.braceL);!(0,i.eat)(l.TokenType.braceR)&&!u.state.error;){if(e)e=!1;else if((0,x.expect)(l.TokenType.comma),(0,i.eat)(l.TokenType.braceR))break;U()}}function U(){u.isTypeScriptEnabled?(0,p.tsParseExportSpecifier)():((0,d.parseIdentifier)(),u.state.tokens[u.state.tokens.length-1].identifierRole=i.IdentifierRole.ExportAccess,(0,x.eatContextual)(c.ContextualKeyword._as)&&(0,d.parseIdentifier)())}function W(){(0,x.isContextual)(c.ContextualKeyword._module)&&function(){const e=u.state.snapshot();return(0,x.expectContextual)(c.ContextualKeyword._module),(0,x.eatContextual)(c.ContextualKeyword._from)?(0,x.isContextual)(c.ContextualKeyword._from)?(u.state.restoreFromSnapshot(e),!0):(u.state.restoreFromSnapshot(e),!1):(0,i.match)(l.TokenType.comma)?(u.state.restoreFromSnapshot(e),!1):(u.state.restoreFromSnapshot(e),!0)}()&&(0,i.next)()}function $(){if(u.isTypeScriptEnabled&&(0,i.match)(l.TokenType.name)&&(0,i.lookaheadType)()===l.TokenType.eq)(0,p.tsParseImportEqualsDeclaration)();else{if(u.isTypeScriptEnabled&&(0,x.isContextual)(c.ContextualKeyword._type)){const e=(0,i.lookaheadTypeAndKeyword)();if(e.type===l.TokenType.name&&e.contextualKeyword!==c.ContextualKeyword._from){if((0,x.expectContextual)(c.ContextualKeyword._type),(0,i.lookaheadType)()===l.TokenType.eq)return void(0,p.tsParseImportEqualsDeclaration)()}else e.type!==l.TokenType.star&&e.type!==l.TokenType.braceL||(0,x.expectContextual)(c.ContextualKeyword._type)}(0,i.match)(l.TokenType.string)||(W(),function(){u.isFlowEnabled&&(0,r.flowStartParseImportSpecifiers)();let e=!0;if((0,i.match)(l.TokenType.name)&&(z(),!(0,i.eat)(l.TokenType.comma)))return;if((0,i.match)(l.TokenType.star))return(0,i.next)(),(0,x.expectContextual)(c.ContextualKeyword._as),void z();(0,x.expect)(l.TokenType.braceL);for(;!(0,i.eat)(l.TokenType.braceR)&&!u.state.error;){if(e)e=!1;else if((0,i.eat)(l.TokenType.colon)&&(0,x.unexpected)(\"ES2015 named imports do not destructure. Use another statement for destructuring after the import.\"),(0,x.expect)(l.TokenType.comma),(0,i.eat)(l.TokenType.braceR))break;G()}}(),(0,x.expectContextual)(c.ContextualKeyword._from)),(0,d.parseExprAtom)(),J(),(0,x.semicolon)()}}function z(){(0,k.parseImportedIdentifier)()}function G(){u.isTypeScriptEnabled?(0,p.tsParseImportSpecifier)():u.isFlowEnabled?(0,r.flowParseImportSpecifier)():((0,k.parseImportedIdentifier)(),(0,x.isContextual)(c.ContextualKeyword._as)&&(u.state.tokens[u.state.tokens.length-1].identifierRole=i.IdentifierRole.ImportAccess,(0,i.next)(),(0,k.parseImportedIdentifier)()))}function J(){((0,i.match)(l.TokenType._with)||(0,x.isContextual)(c.ContextualKeyword._assert)&&!(0,x.hasPrecedingLineBreak)())&&((0,i.next)(),(0,d.parseObj)(!1,!1))}}\n//# sourceMappingURL=statement.min.js.map","min_map":"{\"version\":3,\"file\":\"statement.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"parseTopLevel\",\"parseBlockBody\",\"types_1\",\"TokenType\",\"eof\",\"base_1\",\"state\",\"scopes\",\"push\",\"state_1\",\"Scope\",\"tokens\",\"length\",\"scopeDepth\",\"Error\",\"index_1\",\"File\",\"parseStatement\",\"parseDecorators\",\"baseParseMaybeDecoratorArguments\",\"parseVarStatement\",\"parseBlock\",\"parseFunction\",\"parseFunctionParams\",\"parseClass\",\"parseClassPropertyName\",\"parsePostMemberNameModifiers\",\"parseClassProperty\",\"parseExport\",\"parseExportFrom\",\"baseParseExportStar\",\"parseExportSpecifiers\",\"parseImport\",\"flow_1\",\"typescript_1\",\"tokenizer_1\",\"keywords_1\",\"charcodes_1\",\"expression_1\",\"lval_1\",\"util_1\",\"declaration\",\"isFlowEnabled\",\"flowTryParseStatement\",\"match\",\"at\",\"isTypeScriptEnabled\",\"tsTryParseStatementContent\",\"starttype\",\"type\",\"_break\",\"_continue\",\"next\",\"isLineTerminator\",\"parseIdentifier\",\"semicolon\",\"_debugger\",\"_do\",\"expect\",\"_while\",\"parseParenExpression\",\"eat\",\"semi\",\"_for\",\"startTokenIndex\",\"forAwait\",\"isContextual\",\"ContextualKeyword\",\"_await\",\"parenL\",\"unexpected\",\"parseFor\",\"isAwaitUsing\",\"startsAwaitUsing\",\"_var\",\"_let\",\"_const\",\"_using\",\"isLookaheadContextual\",\"_of\",\"isUsingInLoop\",\"expectContextual\",\"parseVar\",\"_in\",\"parseForIn\",\"parseExpression\",\"parseAmbiguousForStatement\",\"endTokenIndex\",\"parseForStatement\",\"_function\",\"lookaheadType\",\"dot\",\"functionStart\",\"start\",\"parseFunctionStatement\",\"_class\",\"_if\",\"_else\",\"_return\",\"_switch\",\"braceL\",\"braceR\",\"error\",\"_case\",\"_default\",\"isCase\",\"colon\",\"parseSwitchStatement\",\"_throw\",\"_try\",\"_catch\",\"catchBindingStartTokenIndex\",\"parseBindingAtom\",\"tsTryParseTypeAnnotation\",\"parenR\",\"_finally\",\"parseTryStatement\",\"_export\",\"_import\",\"nextType\",\"name\",\"contextualKeyword\",\"_async\",\"snapshot\",\"canInsertSemicolon\",\"restoreFromSnapshot\",\"hasFollowingLineBreak\",\"initialTokensLength\",\"simpleName\",\"token\",\"tsParseIdentifierStatement\",\"flowParseIdentifierStatement\",\"parseStatementContent\",\"hasPrecedingLineBreak\",\"parseDecorator\",\"tsParseMaybeDecoratorArguments\",\"parseCallExpressionArguments\",\"isBlockScope\",\"isFunctionScope\",\"contextId\",\"end\",\"eatContextual\",\"isFor\",\"parseVarHead\",\"eq\",\"eqIndex\",\"parseMaybeAssign\",\"rhsEndIndex\",\"comma\",\"tsAfterParseVarHead\",\"flowAfterParseVarHead\",\"isStatement\",\"optionalId\",\"star\",\"_yield\",\"nameScopeStartTokenIndex\",\"parseBindingIdentifier\",\"parseFunctionBodyAndFinish\",\"allowModifiers\",\"funcContextId\",\"tsStartParseFunctionParams\",\"flowStartParseFunctionParams\",\"parseBindingList\",\"getNextContextId\",\"isExpression\",\"_implements\",\"tsTryParseTypeParameters\",\"lessThan\",\"flowParseTypeParameterDeclaration\",\"parseClassId\",\"hasSuper\",\"_extends\",\"parseExprSubscripts\",\"tsAfterParseClassSuper\",\"flowAfterParseClassSuper\",\"parseClassSuper\",\"openBraceIndex\",\"classContextId\",\"parseClassMember\",\"parseClassBody\",\"isClassProperty\",\"bang\",\"isClassMethod\",\"memberStart\",\"tsParseModifiers\",\"_declare\",\"_public\",\"_protected\",\"_private\",\"_override\",\"isStatic\",\"_static\",\"parseClassMethod\",\"tsTryParseClassMemberWithIsStatic\",\"isConstructor\",\"_constructor\",\"_get\",\"_set\",\"_accessor\",\"parseClassMemberWithIsStatic\",\"parseMethod\",\"parsePropertyName\",\"oldIsType\",\"pushTypeContext\",\"question\",\"popTypeContext\",\"eatTypeToken\",\"flowParseTypeAnnotation\",\"equalsTokenIndex\",\"exportIndex\",\"tsTryParseExport\",\"flowShouldParseExportStar\",\"flowParseExportStar\",\"tsIsDeclarationStart\",\"flowShouldDisallowExportDefaultSpecifier\",\"_next\",\"nextTokenStart\",\"lookahead\",\"lookaheadTypeAndKeyword\",\"hasFrom\",\"_from\",\"nextAfterFrom\",\"input\",\"charCodeAt\",\"nextTokenStartSince\",\"charCodes\",\"quotationMark\",\"apostrophe\",\"isExportDefaultSpecifier\",\"_as\",\"parseExportSpecifiersMaybe\",\"tsTryParseExportDefaultExpression\",\"flowTryParseExportDefaultExpression\",\"parseExportDefaultExpression\",\"flowShouldParseExportDeclaration\",\"tsParseExportDeclaration\",\"flowParseExportDeclaration\",\"parseExprAtom\",\"maybeParseImportAttributes\",\"first\",\"parseExportSpecifier\",\"tsParseExportSpecifier\",\"identifierRole\",\"IdentifierRole\",\"ExportAccess\",\"parseMaybeImportReflection\",\"_module\",\"isImportReflection\",\"tsParseImportEqualsDeclaration\",\"_type\",\"string\",\"flowStartParseImportSpecifiers\",\"parseImportSpecifierLocal\",\"parseImportSpecifier\",\"parseImportSpecifiers\",\"parseImportedIdentifier\",\"tsParseImportSpecifier\",\"flowParseImportSpecifier\",\"ImportAccess\",\"_with\",\"_assert\",\"parseObj\"],\"sources\":[\"0\"],\"mappings\":\"AAAqD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAClGD,IACAD,EAAQG,cA8BR,WAGI,GAFAC,EAAeC,EAAQC,UAAUC,KACjCC,EAAOC,MAAMC,OAAOC,KAAK,IAAIC,EAAQC,MAAM,EAAGL,EAAOC,MAAMK,OAAOC,QAAQ,IAC1C,IAA5BP,EAAOC,MAAMO,WACb,MAAM,IAAIC,MAAM,uCAAuCT,EAAOC,MAAMO,cAExE,OAAO,IAAIE,EAAQC,KAAKX,EAAOC,MAAMK,OAAQN,EAAOC,MAAMC,OAC9D,EApCAV,EAAQoB,eAAiBA,EACzBpB,EAAQqB,gBAAkBA,EAC1BrB,EAAQsB,iCAAmCA,EAC3CtB,EAAQuB,kBAAoBA,EAC5BvB,EAAQwB,WAAaA,EACrBxB,EAAQI,eAAiBA,EACzBJ,EAAQyB,cAAgBA,EACxBzB,EAAQ0B,oBAAsBA,EAC9B1B,EAAQ2B,WAAaA,EACrB3B,EAAQ4B,uBAAyBA,EACjC5B,EAAQ6B,6BAA+BA,EACvC7B,EAAQ8B,mBAAqBA,EAC7B9B,EAAQ+B,YAAcA,EACtB/B,EAAQgC,gBAAkBA,EAC1BhC,EAAQiC,oBAAsBA,EAC9BjC,EAAQkC,sBAAwBA,EAChClC,EAAQmC,YAAcA,EACtB,MAAMjB,EAAUpB,EAAQ,cAClBsC,EAAStC,EAAQ,cACjBuC,EAAevC,EAAQ,cACvBwC,EAAcxC,EAAQ,cACtByC,EAAazC,EAAQ,cACrBc,EAAUd,EAAQ,cAClBO,EAAUP,EAAQ,cAClB0C,EAAc1C,EAAQ,cACtBU,E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EAAIb,EAAOwN,4BAEnB,CAQA,SAASjB,MACD,EAAI3M,EAAYS,OAAO1C,EAAQC,UAAUgQ,SAAW,EAAI3N,EAAO0B,cAAc9B,EAAW+B,kBAAkBiM,YAAa,EAAI5N,EAAO6F,6BAClI,EAAIlG,EAAYiB,SAChB,EAAId,EAAa+N,WAAU,GAAO,GAE1C,CACJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/flow.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/plugins/flow.js","resolution":"ESM","id":"9b8d43cd0a","hash":"9b8d43cd0a89275fa6d8b117506d708f3a246a5a4146f5786e4e39eefe96a093","source":"\"use strict\";\n/* eslint max-len: 0 */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flowParseTypeParameterDeclaration = flowParseTypeParameterDeclaration;\nexports.flowParseTypeAnnotation = flowParseTypeAnnotation;\nexports.flowParseVariance = flowParseVariance;\nexports.flowParseFunctionBodyAndFinish = flowParseFunctionBodyAndFinish;\nexports.flowParseSubscript = flowParseSubscript;\nexports.flowStartParseNewArguments = flowStartParseNewArguments;\nexports.flowTryParseStatement = flowTryParseStatement;\nexports.flowTryParseExportDefaultExpression = flowTryParseExportDefaultExpression;\nexports.flowParseIdentifierStatement = flowParseIdentifierStatement;\nexports.flowShouldParseExportDeclaration = flowShouldParseExportDeclaration;\nexports.flowShouldDisallowExportDefaultSpecifier = flowShouldDisallowExportDefaultSpecifier;\nexports.flowParseExportDeclaration = flowParseExportDeclaration;\nexports.flowShouldParseExportStar = flowShouldParseExportStar;\nexports.flowParseExportStar = flowParseExportStar;\nexports.flowAfterParseClassSuper = flowAfterParseClassSuper;\nexports.flowStartParseObjPropValue = flowStartParseObjPropValue;\nexports.flowParseAssignableListItemTypes = flowParseAssignableListItemTypes;\nexports.flowStartParseImportSpecifiers = flowStartParseImportSpecifiers;\nexports.flowParseImportSpecifier = flowParseImportSpecifier;\nexports.flowStartParseFunctionParams = flowStartParseFunctionParams;\nexports.flowAfterParseVarHead = flowAfterParseVarHead;\nexports.flowStartParseAsyncArrowFromCallExpression = flowStartParseAsyncArrowFromCallExpression;\nexports.flowParseMaybeAssign = flowParseMaybeAssign;\nexports.flowParseArrow = flowParseArrow;\nexports.flowParseSubscripts = flowParseSubscripts;\nconst index_1 = require(\"../tokenizer/index\");\nconst keywords_1 = require(\"../tokenizer/keywords\");\nconst types_1 = require(\"../tokenizer/types\");\nconst base_1 = require(\"../traverser/base\");\nconst expression_1 = require(\"../traverser/expression\");\nconst statement_1 = require(\"../traverser/statement\");\nconst util_1 = require(\"../traverser/util\");\nfunction isMaybeDefaultImport(lookahead) {\n    return ((lookahead.type === types_1.TokenType.name || !!(lookahead.type & types_1.TokenType.IS_KEYWORD)) &&\n        lookahead.contextualKeyword !== keywords_1.ContextualKeyword._from);\n}\nfunction flowParseTypeInitialiser(tok) {\n    const oldIsType = (0, index_1.pushTypeContext)(0);\n    (0, util_1.expect)(tok || types_1.TokenType.colon);\n    flowParseType();\n    (0, index_1.popTypeContext)(oldIsType);\n}\nfunction flowParsePredicate() {\n    (0, util_1.expect)(types_1.TokenType.modulo);\n    (0, util_1.expectContextual)(keywords_1.ContextualKeyword._checks);\n    if ((0, index_1.eat)(types_1.TokenType.parenL)) {\n        (0, expression_1.parseExpression)();\n        (0, util_1.expect)(types_1.TokenType.parenR);\n    }\n}\nfunction flowParseTypeAndPredicateInitialiser() {\n    const oldIsType = (0, index_1.pushTypeContext)(0);\n    (0, util_1.expect)(types_1.TokenType.colon);\n    if ((0, index_1.match)(types_1.TokenType.modulo)) {\n        flowParsePredicate();\n    }\n    else {\n        flowParseType();\n        if ((0, index_1.match)(types_1.TokenType.modulo)) {\n            flowParsePredicate();\n        }\n    }\n    (0, index_1.popTypeContext)(oldIsType);\n}\nfunction flowParseDeclareClass() {\n    (0, index_1.next)();\n    flowParseInterfaceish(/* isClass */ true);\n}\nfunction flowParseDeclareFunction() {\n    (0, index_1.next)();\n    (0, expression_1.parseIdentifier)();\n    if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n        flowParseTypeParameterDeclaration();\n    }\n    (0, util_1.expect)(types_1.TokenType.parenL);\n    flowParseFunctionTypeParams();\n    (0, util_1.expect)(types_1.TokenType.parenR);\n    flowParseTypeAndPredicateInitialiser();\n    (0, util_1.semicolon)();\n}\nfunction flowParseDeclare() {\n    if ((0, index_1.match)(types_1.TokenType._class)) {\n        flowParseDeclareClass();\n    }\n    else if ((0, index_1.match)(types_1.TokenType._function)) {\n        flowParseDeclareFunction();\n    }\n    else if ((0, index_1.match)(types_1.TokenType._var)) {\n        flowParseDeclareVariable();\n    }\n    else if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._module)) {\n        if ((0, index_1.eat)(types_1.TokenType.dot)) {\n            flowParseDeclareModuleExports();\n        }\n        else {\n            flowParseDeclareModule();\n        }\n    }\n    else if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._type)) {\n        flowParseDeclareTypeAlias();\n    }\n    else if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._opaque)) {\n        flowParseDeclareOpaqueType();\n    }\n    else if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._interface)) {\n        flowParseDeclareInterface();\n    }\n    else if ((0, index_1.match)(types_1.TokenType._export)) {\n        flowParseDeclareExportDeclaration();\n    }\n    else {\n        (0, util_1.unexpected)();\n    }\n}\nfunction flowParseDeclareVariable() {\n    (0, index_1.next)();\n    flowParseTypeAnnotatableIdentifier();\n    (0, util_1.semicolon)();\n}\nfunction flowParseDeclareModule() {\n    if ((0, index_1.match)(types_1.TokenType.string)) {\n        (0, expression_1.parseExprAtom)();\n    }\n    else {\n        (0, expression_1.parseIdentifier)();\n    }\n    (0, util_1.expect)(types_1.TokenType.braceL);\n    while (!(0, index_1.match)(types_1.TokenType.braceR) && !base_1.state.error) {\n        if ((0, index_1.match)(types_1.TokenType._import)) {\n            (0, index_1.next)();\n            (0, statement_1.parseImport)();\n        }\n        else {\n            (0, util_1.unexpected)();\n        }\n    }\n    (0, util_1.expect)(types_1.TokenType.braceR);\n}\nfunction flowParseDeclareExportDeclaration() {\n    (0, util_1.expect)(types_1.TokenType._export);\n    if ((0, index_1.eat)(types_1.TokenType._default)) {\n        if ((0, index_1.match)(types_1.TokenType._function) || (0, index_1.match)(types_1.TokenType._class)) {\n            // declare export default class ...\n            // declare export default function ...\n            flowParseDeclare();\n        }\n        else {\n            // declare export default [type];\n            flowParseType();\n            (0, util_1.semicolon)();\n        }\n    }\n    else if ((0, index_1.match)(types_1.TokenType._var) || // declare export var ...\n        (0, index_1.match)(types_1.TokenType._function) || // declare export function ...\n        (0, index_1.match)(types_1.TokenType._class) || // declare export class ...\n        (0, util_1.isContextual)(keywords_1.ContextualKeyword._opaque) // declare export opaque ..\n    ) {\n        flowParseDeclare();\n    }\n    else if ((0, index_1.match)(types_1.TokenType.star) || // declare export * from ''\n        (0, index_1.match)(types_1.TokenType.braceL) || // declare export {} ...\n        (0, util_1.isContextual)(keywords_1.ContextualKeyword._interface) || // declare export interface ...\n        (0, util_1.isContextual)(keywords_1.ContextualKeyword._type) || // declare export type ...\n        (0, util_1.isContextual)(keywords_1.ContextualKeyword._opaque) // declare export opaque type ...\n    ) {\n        (0, statement_1.parseExport)();\n    }\n    else {\n        (0, util_1.unexpected)();\n    }\n}\nfunction flowParseDeclareModuleExports() {\n    (0, util_1.expectContextual)(keywords_1.ContextualKeyword._exports);\n    flowParseTypeAnnotation();\n    (0, util_1.semicolon)();\n}\nfunction flowParseDeclareTypeAlias() {\n    (0, index_1.next)();\n    flowParseTypeAlias();\n}\nfunction flowParseDeclareOpaqueType() {\n    (0, index_1.next)();\n    flowParseOpaqueType(true);\n}\nfunction flowParseDeclareInterface() {\n    (0, index_1.next)();\n    flowParseInterfaceish();\n}\n// Interfaces\nfunction flowParseInterfaceish(isClass = false) {\n    flowParseRestrictedIdentifier();\n    if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n        flowParseTypeParameterDeclaration();\n    }\n    if ((0, index_1.eat)(types_1.TokenType._extends)) {\n        do {\n            flowParseInterfaceExtends();\n        } while (!isClass && (0, index_1.eat)(types_1.TokenType.comma));\n    }\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._mixins)) {\n        (0, index_1.next)();\n        do {\n            flowParseInterfaceExtends();\n        } while ((0, index_1.eat)(types_1.TokenType.comma));\n    }\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._implements)) {\n        (0, index_1.next)();\n        do {\n            flowParseInterfaceExtends();\n        } while ((0, index_1.eat)(types_1.TokenType.comma));\n    }\n    flowParseObjectType(isClass, false, isClass);\n}\nfunction flowParseInterfaceExtends() {\n    flowParseQualifiedTypeIdentifier(false);\n    if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n        flowParseTypeParameterInstantiation();\n    }\n}\nfunction flowParseInterface() {\n    flowParseInterfaceish();\n}\nfunction flowParseRestrictedIdentifier() {\n    (0, expression_1.parseIdentifier)();\n}\nfunction flowParseTypeAlias() {\n    flowParseRestrictedIdentifier();\n    if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n        flowParseTypeParameterDeclaration();\n    }\n    flowParseTypeInitialiser(types_1.TokenType.eq);\n    (0, util_1.semicolon)();\n}\nfunction flowParseOpaqueType(declare) {\n    (0, util_1.expectContextual)(keywords_1.ContextualKeyword._type);\n    flowParseRestrictedIdentifier();\n    if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n        flowParseTypeParameterDeclaration();\n    }\n    // Parse the supertype\n    if ((0, index_1.match)(types_1.TokenType.colon)) {\n        flowParseTypeInitialiser(types_1.TokenType.colon);\n    }\n    if (!declare) {\n        flowParseTypeInitialiser(types_1.TokenType.eq);\n    }\n    (0, util_1.semicolon)();\n}\nfunction flowParseTypeParameter() {\n    flowParseVariance();\n    flowParseTypeAnnotatableIdentifier();\n    if ((0, index_1.eat)(types_1.TokenType.eq)) {\n        flowParseType();\n    }\n}\nfunction flowParseTypeParameterDeclaration() {\n    const oldIsType = (0, index_1.pushTypeContext)(0);\n    // istanbul ignore else: this condition is already checked at all call sites\n    if ((0, index_1.match)(types_1.TokenType.lessThan) || (0, index_1.match)(types_1.TokenType.typeParameterStart)) {\n        (0, index_1.next)();\n    }\n    else {\n        (0, util_1.unexpected)();\n    }\n    do {\n        flowParseTypeParameter();\n        if (!(0, index_1.match)(types_1.TokenType.greaterThan)) {\n            (0, util_1.expect)(types_1.TokenType.comma);\n        }\n    } while (!(0, index_1.match)(types_1.TokenType.greaterThan) && !base_1.state.error);\n    (0, util_1.expect)(types_1.TokenType.greaterThan);\n    (0, index_1.popTypeContext)(oldIsType);\n}\nfunction flowParseTypeParameterInstantiation() {\n    const oldIsType = (0, index_1.pushTypeContext)(0);\n    (0, util_1.expect)(types_1.TokenType.lessThan);\n    while (!(0, index_1.match)(types_1.TokenType.greaterThan) && !base_1.state.error) {\n        flowParseType();\n        if (!(0, index_1.match)(types_1.TokenType.greaterThan)) {\n            (0, util_1.expect)(types_1.TokenType.comma);\n        }\n    }\n    (0, util_1.expect)(types_1.TokenType.greaterThan);\n    (0, index_1.popTypeContext)(oldIsType);\n}\nfunction flowParseInterfaceType() {\n    (0, util_1.expectContextual)(keywords_1.ContextualKeyword._interface);\n    if ((0, index_1.eat)(types_1.TokenType._extends)) {\n        do {\n            flowParseInterfaceExtends();\n        } while ((0, index_1.eat)(types_1.TokenType.comma));\n    }\n    flowParseObjectType(false, false, false);\n}\nfunction flowParseObjectPropertyKey() {\n    if ((0, index_1.match)(types_1.TokenType.num) || (0, index_1.match)(types_1.TokenType.string)) {\n        (0, expression_1.parseExprAtom)();\n    }\n    else {\n        (0, expression_1.parseIdentifier)();\n    }\n}\nfunction flowParseObjectTypeIndexer() {\n    // Note: bracketL has already been consumed\n    if ((0, index_1.lookaheadType)() === types_1.TokenType.colon) {\n        flowParseObjectPropertyKey();\n        flowParseTypeInitialiser();\n    }\n    else {\n        flowParseType();\n    }\n    (0, util_1.expect)(types_1.TokenType.bracketR);\n    flowParseTypeInitialiser();\n}\nfunction flowParseObjectTypeInternalSlot() {\n    // Note: both bracketL have already been consumed\n    flowParseObjectPropertyKey();\n    (0, util_1.expect)(types_1.TokenType.bracketR);\n    (0, util_1.expect)(types_1.TokenType.bracketR);\n    if ((0, index_1.match)(types_1.TokenType.lessThan) || (0, index_1.match)(types_1.TokenType.parenL)) {\n        flowParseObjectTypeMethodish();\n    }\n    else {\n        (0, index_1.eat)(types_1.TokenType.question);\n        flowParseTypeInitialiser();\n    }\n}\nfunction flowParseObjectTypeMethodish() {\n    if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n        flowParseTypeParameterDeclaration();\n    }\n    (0, util_1.expect)(types_1.TokenType.parenL);\n    while (!(0, index_1.match)(types_1.TokenType.parenR) && !(0, index_1.match)(types_1.TokenType.ellipsis) && !base_1.state.error) {\n        flowParseFunctionTypeParam();\n        if (!(0, index_1.match)(types_1.TokenType.parenR)) {\n            (0, util_1.expect)(types_1.TokenType.comma);\n        }\n    }\n    if ((0, index_1.eat)(types_1.TokenType.ellipsis)) {\n        flowParseFunctionTypeParam();\n    }\n    (0, util_1.expect)(types_1.TokenType.parenR);\n    flowParseTypeInitialiser();\n}\nfunction flowParseObjectTypeCallProperty() {\n    flowParseObjectTypeMethodish();\n}\nfunction flowParseObjectType(allowStatic, allowExact, allowProto) {\n    let endDelim;\n    if (allowExact && (0, index_1.match)(types_1.TokenType.braceBarL)) {\n        (0, util_1.expect)(types_1.TokenType.braceBarL);\n        endDelim = types_1.TokenType.braceBarR;\n    }\n    else {\n        (0, util_1.expect)(types_1.TokenType.braceL);\n        endDelim = types_1.TokenType.braceR;\n    }\n    while (!(0, index_1.match)(endDelim) && !base_1.state.error) {\n        if (allowProto && (0, util_1.isContextual)(keywords_1.ContextualKeyword._proto)) {\n            const lookahead = (0, index_1.lookaheadType)();\n            if (lookahead !== types_1.TokenType.colon && lookahead !== types_1.TokenType.question) {\n                (0, index_1.next)();\n                allowStatic = false;\n            }\n        }\n        if (allowStatic && (0, util_1.isContextual)(keywords_1.ContextualKeyword._static)) {\n            const lookahead = (0, index_1.lookaheadType)();\n            if (lookahead !== types_1.TokenType.colon && lookahead !== types_1.TokenType.question) {\n                (0, index_1.next)();\n            }\n        }\n        flowParseVariance();\n        if ((0, index_1.eat)(types_1.TokenType.bracketL)) {\n            if ((0, index_1.eat)(types_1.TokenType.bracketL)) {\n                flowParseObjectTypeInternalSlot();\n            }\n            else {\n                flowParseObjectTypeIndexer();\n            }\n        }\n        else if ((0, index_1.match)(types_1.TokenType.parenL) || (0, index_1.match)(types_1.TokenType.lessThan)) {\n            flowParseObjectTypeCallProperty();\n        }\n        else {\n            if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._get) || (0, util_1.isContextual)(keywords_1.ContextualKeyword._set)) {\n                const lookahead = (0, index_1.lookaheadType)();\n                if (lookahead === types_1.TokenType.name || lookahead === types_1.TokenType.string || lookahead === types_1.TokenType.num) {\n                    (0, index_1.next)();\n                }\n            }\n            flowParseObjectTypeProperty();\n        }\n        flowObjectTypeSemicolon();\n    }\n    (0, util_1.expect)(endDelim);\n}\nfunction flowParseObjectTypeProperty() {\n    if ((0, index_1.match)(types_1.TokenType.ellipsis)) {\n        (0, util_1.expect)(types_1.TokenType.ellipsis);\n        if (!(0, index_1.eat)(types_1.TokenType.comma)) {\n            (0, index_1.eat)(types_1.TokenType.semi);\n        }\n        // Explicit inexact object syntax.\n        if ((0, index_1.match)(types_1.TokenType.braceR)) {\n            return;\n        }\n        flowParseType();\n    }\n    else {\n        flowParseObjectPropertyKey();\n        if ((0, index_1.match)(types_1.TokenType.lessThan) || (0, index_1.match)(types_1.TokenType.parenL)) {\n            // This is a method property\n            flowParseObjectTypeMethodish();\n        }\n        else {\n            (0, index_1.eat)(types_1.TokenType.question);\n            flowParseTypeInitialiser();\n        }\n    }\n}\nfunction flowObjectTypeSemicolon() {\n    if (!(0, index_1.eat)(types_1.TokenType.semi) && !(0, index_1.eat)(types_1.TokenType.comma) && !(0, index_1.match)(types_1.TokenType.braceR) && !(0, index_1.match)(types_1.TokenType.braceBarR)) {\n        (0, util_1.unexpected)();\n    }\n}\nfunction flowParseQualifiedTypeIdentifier(initialIdAlreadyParsed) {\n    if (!initialIdAlreadyParsed) {\n        (0, expression_1.parseIdentifier)();\n    }\n    while ((0, index_1.eat)(types_1.TokenType.dot)) {\n        (0, expression_1.parseIdentifier)();\n    }\n}\nfunction flowParseGenericType() {\n    flowParseQualifiedTypeIdentifier(true);\n    if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n        flowParseTypeParameterInstantiation();\n    }\n}\nfunction flowParseTypeofType() {\n    (0, util_1.expect)(types_1.TokenType._typeof);\n    flowParsePrimaryType();\n}\nfunction flowParseTupleType() {\n    (0, util_1.expect)(types_1.TokenType.bracketL);\n    // We allow trailing commas\n    while (base_1.state.pos < base_1.input.length && !(0, index_1.match)(types_1.TokenType.bracketR)) {\n        flowParseType();\n        if ((0, index_1.match)(types_1.TokenType.bracketR)) {\n            break;\n        }\n        (0, util_1.expect)(types_1.TokenType.comma);\n    }\n    (0, util_1.expect)(types_1.TokenType.bracketR);\n}\nfunction flowParseFunctionTypeParam() {\n    const lookahead = (0, index_1.lookaheadType)();\n    if (lookahead === types_1.TokenType.colon || lookahead === types_1.TokenType.question) {\n        (0, expression_1.parseIdentifier)();\n        (0, index_1.eat)(types_1.TokenType.question);\n        flowParseTypeInitialiser();\n    }\n    else {\n        flowParseType();\n    }\n}\nfunction flowParseFunctionTypeParams() {\n    while (!(0, index_1.match)(types_1.TokenType.parenR) && !(0, index_1.match)(types_1.TokenType.ellipsis) && !base_1.state.error) {\n        flowParseFunctionTypeParam();\n        if (!(0, index_1.match)(types_1.TokenType.parenR)) {\n            (0, util_1.expect)(types_1.TokenType.comma);\n        }\n    }\n    if ((0, index_1.eat)(types_1.TokenType.ellipsis)) {\n        flowParseFunctionTypeParam();\n    }\n}\n// The parsing of types roughly parallels the parsing of expressions, and\n// primary types are kind of like primary expressions...they're the\n// primitives with which other types are constructed.\nfunction flowParsePrimaryType() {\n    let isGroupedType = false;\n    const oldNoAnonFunctionType = base_1.state.noAnonFunctionType;\n    switch (base_1.state.type) {\n        case types_1.TokenType.name: {\n            if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._interface)) {\n                flowParseInterfaceType();\n                return;\n            }\n            (0, expression_1.parseIdentifier)();\n            flowParseGenericType();\n            return;\n        }\n        case types_1.TokenType.braceL:\n            flowParseObjectType(false, false, false);\n            return;\n        case types_1.TokenType.braceBarL:\n            flowParseObjectType(false, true, false);\n            return;\n        case types_1.TokenType.bracketL:\n            flowParseTupleType();\n            return;\n        case types_1.TokenType.lessThan:\n            flowParseTypeParameterDeclaration();\n            (0, util_1.expect)(types_1.TokenType.parenL);\n            flowParseFunctionTypeParams();\n            (0, util_1.expect)(types_1.TokenType.parenR);\n            (0, util_1.expect)(types_1.TokenType.arrow);\n            flowParseType();\n            return;\n        case types_1.TokenType.parenL:\n            (0, index_1.next)();\n            // Check to see if this is actually a grouped type\n            if (!(0, index_1.match)(types_1.TokenType.parenR) && !(0, index_1.match)(types_1.TokenType.ellipsis)) {\n                if ((0, index_1.match)(types_1.TokenType.name)) {\n                    const token = (0, index_1.lookaheadType)();\n                    isGroupedType = token !== types_1.TokenType.question && token !== types_1.TokenType.colon;\n                }\n                else {\n                    isGroupedType = true;\n                }\n            }\n            if (isGroupedType) {\n                base_1.state.noAnonFunctionType = false;\n                flowParseType();\n                base_1.state.noAnonFunctionType = oldNoAnonFunctionType;\n                // A `,` or a `) =>` means this is an anonymous function type\n                if (base_1.state.noAnonFunctionType ||\n                    !((0, index_1.match)(types_1.TokenType.comma) || ((0, index_1.match)(types_1.TokenType.parenR) && (0, index_1.lookaheadType)() === types_1.TokenType.arrow))) {\n                    (0, util_1.expect)(types_1.TokenType.parenR);\n                    return;\n                }\n                else {\n                    // Eat a comma if there is one\n                    (0, index_1.eat)(types_1.TokenType.comma);\n                }\n            }\n            flowParseFunctionTypeParams();\n            (0, util_1.expect)(types_1.TokenType.parenR);\n            (0, util_1.expect)(types_1.TokenType.arrow);\n            flowParseType();\n            return;\n        case types_1.TokenType.minus:\n            (0, index_1.next)();\n            (0, expression_1.parseLiteral)();\n            return;\n        case types_1.TokenType.string:\n        case types_1.TokenType.num:\n        case types_1.TokenType._true:\n        case types_1.TokenType._false:\n        case types_1.TokenType._null:\n        case types_1.TokenType._this:\n        case types_1.TokenType._void:\n        case types_1.TokenType.star:\n            (0, index_1.next)();\n            return;\n        default:\n            if (base_1.state.type === types_1.TokenType._typeof) {\n                flowParseTypeofType();\n                return;\n            }\n            else if (base_1.state.type & types_1.TokenType.IS_KEYWORD) {\n                (0, index_1.next)();\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType.name;\n                return;\n            }\n    }\n    (0, util_1.unexpected)();\n}\nfunction flowParsePostfixType() {\n    flowParsePrimaryType();\n    while (!(0, util_1.canInsertSemicolon)() && ((0, index_1.match)(types_1.TokenType.bracketL) || (0, index_1.match)(types_1.TokenType.questionDot))) {\n        (0, index_1.eat)(types_1.TokenType.questionDot);\n        (0, util_1.expect)(types_1.TokenType.bracketL);\n        if ((0, index_1.eat)(types_1.TokenType.bracketR)) {\n            // Array type\n        }\n        else {\n            // Indexed access type\n            flowParseType();\n            (0, util_1.expect)(types_1.TokenType.bracketR);\n        }\n    }\n}\nfunction flowParsePrefixType() {\n    if ((0, index_1.eat)(types_1.TokenType.question)) {\n        flowParsePrefixType();\n    }\n    else {\n        flowParsePostfixType();\n    }\n}\nfunction flowParseAnonFunctionWithoutParens() {\n    flowParsePrefixType();\n    if (!base_1.state.noAnonFunctionType && (0, index_1.eat)(types_1.TokenType.arrow)) {\n        flowParseType();\n    }\n}\nfunction flowParseIntersectionType() {\n    (0, index_1.eat)(types_1.TokenType.bitwiseAND);\n    flowParseAnonFunctionWithoutParens();\n    while ((0, index_1.eat)(types_1.TokenType.bitwiseAND)) {\n        flowParseAnonFunctionWithoutParens();\n    }\n}\nfunction flowParseUnionType() {\n    (0, index_1.eat)(types_1.TokenType.bitwiseOR);\n    flowParseIntersectionType();\n    while ((0, index_1.eat)(types_1.TokenType.bitwiseOR)) {\n        flowParseIntersectionType();\n    }\n}\nfunction flowParseType() {\n    flowParseUnionType();\n}\nfunction flowParseTypeAnnotation() {\n    flowParseTypeInitialiser();\n}\nfunction flowParseTypeAnnotatableIdentifier() {\n    (0, expression_1.parseIdentifier)();\n    if ((0, index_1.match)(types_1.TokenType.colon)) {\n        flowParseTypeAnnotation();\n    }\n}\nfunction flowParseVariance() {\n    if ((0, index_1.match)(types_1.TokenType.plus) || (0, index_1.match)(types_1.TokenType.minus)) {\n        (0, index_1.next)();\n        base_1.state.tokens[base_1.state.tokens.length - 1].isType = true;\n    }\n}\n// ==================================\n// Overrides\n// ==================================\nfunction flowParseFunctionBodyAndFinish(funcContextId) {\n    // For arrow functions, `parseArrow` handles the return type itself.\n    if ((0, index_1.match)(types_1.TokenType.colon)) {\n        flowParseTypeAndPredicateInitialiser();\n    }\n    (0, expression_1.parseFunctionBody)(false, funcContextId);\n}\nfunction flowParseSubscript(startTokenIndex, noCalls, stopState) {\n    if ((0, index_1.match)(types_1.TokenType.questionDot) && (0, index_1.lookaheadType)() === types_1.TokenType.lessThan) {\n        if (noCalls) {\n            stopState.stop = true;\n            return;\n        }\n        (0, index_1.next)();\n        flowParseTypeParameterInstantiation();\n        (0, util_1.expect)(types_1.TokenType.parenL);\n        (0, expression_1.parseCallExpressionArguments)();\n        return;\n    }\n    else if (!noCalls && (0, index_1.match)(types_1.TokenType.lessThan)) {\n        const snapshot = base_1.state.snapshot();\n        flowParseTypeParameterInstantiation();\n        (0, util_1.expect)(types_1.TokenType.parenL);\n        (0, expression_1.parseCallExpressionArguments)();\n        if (base_1.state.error) {\n            base_1.state.restoreFromSnapshot(snapshot);\n        }\n        else {\n            return;\n        }\n    }\n    (0, expression_1.baseParseSubscript)(startTokenIndex, noCalls, stopState);\n}\nfunction flowStartParseNewArguments() {\n    if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n        const snapshot = base_1.state.snapshot();\n        flowParseTypeParameterInstantiation();\n        if (base_1.state.error) {\n            base_1.state.restoreFromSnapshot(snapshot);\n        }\n    }\n}\n// interfaces\nfunction flowTryParseStatement() {\n    if ((0, index_1.match)(types_1.TokenType.name) && base_1.state.contextualKeyword === keywords_1.ContextualKeyword._interface) {\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        (0, index_1.next)();\n        flowParseInterface();\n        (0, index_1.popTypeContext)(oldIsType);\n        return true;\n    }\n    else if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._enum)) {\n        flowParseEnumDeclaration();\n        return true;\n    }\n    return false;\n}\nfunction flowTryParseExportDefaultExpression() {\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._enum)) {\n        flowParseEnumDeclaration();\n        return true;\n    }\n    return false;\n}\n// declares, interfaces and type aliases\nfunction flowParseIdentifierStatement(contextualKeyword) {\n    if (contextualKeyword === keywords_1.ContextualKeyword._declare) {\n        if ((0, index_1.match)(types_1.TokenType._class) ||\n            (0, index_1.match)(types_1.TokenType.name) ||\n            (0, index_1.match)(types_1.TokenType._function) ||\n            (0, index_1.match)(types_1.TokenType._var) ||\n            (0, index_1.match)(types_1.TokenType._export)) {\n            const oldIsType = (0, index_1.pushTypeContext)(1);\n            flowParseDeclare();\n            (0, index_1.popTypeContext)(oldIsType);\n        }\n    }\n    else if ((0, index_1.match)(types_1.TokenType.name)) {\n        if (contextualKeyword === keywords_1.ContextualKeyword._interface) {\n            const oldIsType = (0, index_1.pushTypeContext)(1);\n            flowParseInterface();\n            (0, index_1.popTypeContext)(oldIsType);\n        }\n        else if (contextualKeyword === keywords_1.ContextualKeyword._type) {\n            const oldIsType = (0, index_1.pushTypeContext)(1);\n            flowParseTypeAlias();\n            (0, index_1.popTypeContext)(oldIsType);\n        }\n        else if (contextualKeyword === keywords_1.ContextualKeyword._opaque) {\n            const oldIsType = (0, index_1.pushTypeContext)(1);\n            flowParseOpaqueType(false);\n            (0, index_1.popTypeContext)(oldIsType);\n        }\n    }\n    (0, util_1.semicolon)();\n}\n// export type\nfunction flowShouldParseExportDeclaration() {\n    return ((0, util_1.isContextual)(keywords_1.ContextualKeyword._type) ||\n        (0, util_1.isContextual)(keywords_1.ContextualKeyword._interface) ||\n        (0, util_1.isContextual)(keywords_1.ContextualKeyword._opaque) ||\n        (0, util_1.isContextual)(keywords_1.ContextualKeyword._enum));\n}\nfunction flowShouldDisallowExportDefaultSpecifier() {\n    return ((0, index_1.match)(types_1.TokenType.name) &&\n        (base_1.state.contextualKeyword === keywords_1.ContextualKeyword._type ||\n            base_1.state.contextualKeyword === keywords_1.ContextualKeyword._interface ||\n            base_1.state.contextualKeyword === keywords_1.ContextualKeyword._opaque ||\n            base_1.state.contextualKeyword === keywords_1.ContextualKeyword._enum));\n}\nfunction flowParseExportDeclaration() {\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._type)) {\n        const oldIsType = (0, index_1.pushTypeContext)(1);\n        (0, index_1.next)();\n        if ((0, index_1.match)(types_1.TokenType.braceL)) {\n            // export type { foo, bar };\n            (0, statement_1.parseExportSpecifiers)();\n            (0, statement_1.parseExportFrom)();\n        }\n        else {\n            // export type Foo = Bar;\n            flowParseTypeAlias();\n        }\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n    else if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._opaque)) {\n        const oldIsType = (0, index_1.pushTypeContext)(1);\n        (0, index_1.next)();\n        // export opaque type Foo = Bar;\n        flowParseOpaqueType(false);\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n    else if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._interface)) {\n        const oldIsType = (0, index_1.pushTypeContext)(1);\n        (0, index_1.next)();\n        flowParseInterface();\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n    else {\n        (0, statement_1.parseStatement)(true);\n    }\n}\nfunction flowShouldParseExportStar() {\n    return (0, index_1.match)(types_1.TokenType.star) || ((0, util_1.isContextual)(keywords_1.ContextualKeyword._type) && (0, index_1.lookaheadType)() === types_1.TokenType.star);\n}\nfunction flowParseExportStar() {\n    if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._type)) {\n        const oldIsType = (0, index_1.pushTypeContext)(2);\n        (0, statement_1.baseParseExportStar)();\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n    else {\n        (0, statement_1.baseParseExportStar)();\n    }\n}\n// parse a the super class type parameters and implements\nfunction flowAfterParseClassSuper(hasSuper) {\n    if (hasSuper && (0, index_1.match)(types_1.TokenType.lessThan)) {\n        flowParseTypeParameterInstantiation();\n    }\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._implements)) {\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        (0, index_1.next)();\n        base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._implements;\n        do {\n            flowParseRestrictedIdentifier();\n            if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n                flowParseTypeParameterInstantiation();\n            }\n        } while ((0, index_1.eat)(types_1.TokenType.comma));\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n}\n// parse type parameters for object method shorthand\nfunction flowStartParseObjPropValue() {\n    // method shorthand\n    if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n        flowParseTypeParameterDeclaration();\n        if (!(0, index_1.match)(types_1.TokenType.parenL))\n            (0, util_1.unexpected)();\n    }\n}\nfunction flowParseAssignableListItemTypes() {\n    const oldIsType = (0, index_1.pushTypeContext)(0);\n    (0, index_1.eat)(types_1.TokenType.question);\n    if ((0, index_1.match)(types_1.TokenType.colon)) {\n        flowParseTypeAnnotation();\n    }\n    (0, index_1.popTypeContext)(oldIsType);\n}\n// parse typeof and type imports\nfunction flowStartParseImportSpecifiers() {\n    if ((0, index_1.match)(types_1.TokenType._typeof) || (0, util_1.isContextual)(keywords_1.ContextualKeyword._type)) {\n        const lh = (0, index_1.lookaheadTypeAndKeyword)();\n        if (isMaybeDefaultImport(lh) || lh.type === types_1.TokenType.braceL || lh.type === types_1.TokenType.star) {\n            (0, index_1.next)();\n        }\n    }\n}\n// parse import-type/typeof shorthand\nfunction flowParseImportSpecifier() {\n    const isTypeKeyword = base_1.state.contextualKeyword === keywords_1.ContextualKeyword._type || base_1.state.type === types_1.TokenType._typeof;\n    if (isTypeKeyword) {\n        (0, index_1.next)();\n    }\n    else {\n        (0, expression_1.parseIdentifier)();\n    }\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._as) && !(0, util_1.isLookaheadContextual)(keywords_1.ContextualKeyword._as)) {\n        (0, expression_1.parseIdentifier)();\n        if (isTypeKeyword && !(0, index_1.match)(types_1.TokenType.name) && !(base_1.state.type & types_1.TokenType.IS_KEYWORD)) {\n            // `import {type as ,` or `import {type as }`\n        }\n        else {\n            // `import {type as foo`\n            (0, expression_1.parseIdentifier)();\n        }\n    }\n    else {\n        if (isTypeKeyword && ((0, index_1.match)(types_1.TokenType.name) || !!(base_1.state.type & types_1.TokenType.IS_KEYWORD))) {\n            // `import {type foo`\n            (0, expression_1.parseIdentifier)();\n        }\n        if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._as)) {\n            (0, expression_1.parseIdentifier)();\n        }\n    }\n}\n// parse function type parameters - function foo<T>() {}\nfunction flowStartParseFunctionParams() {\n    // Originally this checked if the method is a getter/setter, but if it was, we'd crash soon\n    // anyway, so don't try to propagate that information.\n    if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        flowParseTypeParameterDeclaration();\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n}\n// parse flow type annotations on variable declarator heads - let foo: string = bar\nfunction flowAfterParseVarHead() {\n    if ((0, index_1.match)(types_1.TokenType.colon)) {\n        flowParseTypeAnnotation();\n    }\n}\n// parse the return type of an async arrow function - let foo = (async (): number => {});\nfunction flowStartParseAsyncArrowFromCallExpression() {\n    if ((0, index_1.match)(types_1.TokenType.colon)) {\n        const oldNoAnonFunctionType = base_1.state.noAnonFunctionType;\n        base_1.state.noAnonFunctionType = true;\n        flowParseTypeAnnotation();\n        base_1.state.noAnonFunctionType = oldNoAnonFunctionType;\n    }\n}\n// We need to support type parameter declarations for arrow functions. This\n// is tricky. There are three situations we need to handle\n//\n// 1. This is either JSX or an arrow function. We'll try JSX first. If that\n//    fails, we'll try an arrow function. If that fails, we'll throw the JSX\n//    error.\n// 2. This is an arrow function. We'll parse the type parameter declaration,\n//    parse the rest, make sure the rest is an arrow function, and go from\n//    there\n// 3. This is neither. Just call the super method\nfunction flowParseMaybeAssign(noIn, isWithinParens) {\n    if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n        const snapshot = base_1.state.snapshot();\n        let wasArrow = (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n        if (base_1.state.error) {\n            base_1.state.restoreFromSnapshot(snapshot);\n            base_1.state.type = types_1.TokenType.typeParameterStart;\n        }\n        else {\n            return wasArrow;\n        }\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        flowParseTypeParameterDeclaration();\n        (0, index_1.popTypeContext)(oldIsType);\n        wasArrow = (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n        if (wasArrow) {\n            return true;\n        }\n        (0, util_1.unexpected)();\n    }\n    return (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n}\n// handle return types for arrow functions\nfunction flowParseArrow() {\n    if ((0, index_1.match)(types_1.TokenType.colon)) {\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        const snapshot = base_1.state.snapshot();\n        const oldNoAnonFunctionType = base_1.state.noAnonFunctionType;\n        base_1.state.noAnonFunctionType = true;\n        flowParseTypeAndPredicateInitialiser();\n        base_1.state.noAnonFunctionType = oldNoAnonFunctionType;\n        if ((0, util_1.canInsertSemicolon)())\n            (0, util_1.unexpected)();\n        if (!(0, index_1.match)(types_1.TokenType.arrow))\n            (0, util_1.unexpected)();\n        if (base_1.state.error) {\n            base_1.state.restoreFromSnapshot(snapshot);\n        }\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n    return (0, index_1.eat)(types_1.TokenType.arrow);\n}\nfunction flowParseSubscripts(startTokenIndex, noCalls = false) {\n    if (base_1.state.tokens[base_1.state.tokens.length - 1].contextualKeyword === keywords_1.ContextualKeyword._async &&\n        (0, index_1.match)(types_1.TokenType.lessThan)) {\n        const snapshot = base_1.state.snapshot();\n        const wasArrow = parseAsyncArrowWithTypeParameters();\n        if (wasArrow && !base_1.state.error) {\n            return;\n        }\n        base_1.state.restoreFromSnapshot(snapshot);\n    }\n    (0, expression_1.baseParseSubscripts)(startTokenIndex, noCalls);\n}\n// Returns true if there was an arrow function here.\nfunction parseAsyncArrowWithTypeParameters() {\n    base_1.state.scopeDepth++;\n    const startTokenIndex = base_1.state.tokens.length;\n    (0, statement_1.parseFunctionParams)();\n    if (!(0, expression_1.parseArrow)()) {\n        return false;\n    }\n    (0, expression_1.parseArrowExpression)(startTokenIndex);\n    return true;\n}\nfunction flowParseEnumDeclaration() {\n    (0, util_1.expectContextual)(keywords_1.ContextualKeyword._enum);\n    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._enum;\n    (0, expression_1.parseIdentifier)();\n    flowParseEnumBody();\n}\nfunction flowParseEnumBody() {\n    if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._of)) {\n        (0, index_1.next)();\n    }\n    (0, util_1.expect)(types_1.TokenType.braceL);\n    flowParseEnumMembers();\n    (0, util_1.expect)(types_1.TokenType.braceR);\n}\nfunction flowParseEnumMembers() {\n    while (!(0, index_1.match)(types_1.TokenType.braceR) && !base_1.state.error) {\n        if ((0, index_1.eat)(types_1.TokenType.ellipsis)) {\n            break;\n        }\n        flowParseEnumMember();\n        if (!(0, index_1.match)(types_1.TokenType.braceR)) {\n            (0, util_1.expect)(types_1.TokenType.comma);\n        }\n    }\n}\nfunction flowParseEnumMember() {\n    (0, expression_1.parseIdentifier)();\n    if ((0, index_1.eat)(types_1.TokenType.eq)) {\n        // Flow enum values are always just one token (a string, number, or boolean literal).\n        (0, index_1.next)();\n    }\n}\n","type":"js","dependency_paths":[["../tokenizer/index","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["../tokenizer/keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"],["../tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["../traverser/base","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/base.js"],["../traverser/expression","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/expression.js"],["../traverser/statement","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/statement.js"],["../traverser/util","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/util.js"]],"dependency_map":[],"exported":[{"type":"named","name":"flowParseTypeParameterDeclaration"},{"type":"named","name":"flowParseTypeAnnotation"},{"type":"named","name":"flowParseVariance"},{"type":"named","name":"flowParseFunctionBodyAndFinish"},{"type":"named","name":"flowParseSubscript"},{"type":"named","name":"flowStartParseNewArguments"},{"type":"named","name":"flowTryParseStatement"},{"type":"named","name":"flowTryParseExportDefaultExpression"},{"type":"named","name":"flowParseIdentifierStatement"},{"type":"named","name":"flowShouldParseExportDeclaration"},{"type":"named","name":"flowShouldDisallowExportDefaultSpecifier"},{"type":"named","name":"flowParseExportDeclaration"},{"type":"named","name":"flowShouldParseExportStar"},{"type":"named","name":"flowParseExportStar"},{"type":"named","name":"flowAfterParseClassSuper"},{"type":"named","name":"flowStartParseObjPropValue"},{"type":"named","name":"flowParseAssignableListItemTypes"},{"type":"named","name":"flowStartParseImportSpecifiers"},{"type":"named","name":"flowParseImportSpecifier"},{"type":"named","name":"flowStartParseFunctionParams"},{"type":"named","name":"flowAfterParseVarHead"},{"type":"named","name":"flowStartParseAsyncArrowFromCallExpression"},{"type":"named","name":"flowParseMaybeAssign"},{"type":"named","name":"flowParseArrow"},{"type":"named","name":"flowParseSubscripts"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/plugins/flow.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.flowParseTypeParameterDeclaration = flowParseTypeParameterDeclaration;\n    exports.flowParseTypeAnnotation = flowParseTypeAnnotation;\n    exports.flowParseVariance = flowParseVariance;\n    exports.flowParseFunctionBodyAndFinish = flowParseFunctionBodyAndFinish;\n    exports.flowParseSubscript = flowParseSubscript;\n    exports.flowStartParseNewArguments = flowStartParseNewArguments;\n    exports.flowTryParseStatement = flowTryParseStatement;\n    exports.flowTryParseExportDefaultExpression = flowTryParseExportDefaultExpression;\n    exports.flowParseIdentifierStatement = flowParseIdentifierStatement;\n    exports.flowShouldParseExportDeclaration = flowShouldParseExportDeclaration;\n    exports.flowShouldDisallowExportDefaultSpecifier = flowShouldDisallowExportDefaultSpecifier;\n    exports.flowParseExportDeclaration = flowParseExportDeclaration;\n    exports.flowShouldParseExportStar = flowShouldParseExportStar;\n    exports.flowParseExportStar = flowParseExportStar;\n    exports.flowAfterParseClassSuper = flowAfterParseClassSuper;\n    exports.flowStartParseObjPropValue = flowStartParseObjPropValue;\n    exports.flowParseAssignableListItemTypes = flowParseAssignableListItemTypes;\n    exports.flowStartParseImportSpecifiers = flowStartParseImportSpecifiers;\n    exports.flowParseImportSpecifier = flowParseImportSpecifier;\n    exports.flowStartParseFunctionParams = flowStartParseFunctionParams;\n    exports.flowAfterParseVarHead = flowAfterParseVarHead;\n    exports.flowStartParseAsyncArrowFromCallExpression = flowStartParseAsyncArrowFromCallExpression;\n    exports.flowParseMaybeAssign = flowParseMaybeAssign;\n    exports.flowParseArrow = flowParseArrow;\n    exports.flowParseSubscripts = flowParseSubscripts;\n    const index_1 = require(\"bfb18d0576\") /* ../tokenizer/index */;\n    const keywords_1 = require(\"99ff836c64\") /* ../tokenizer/keywords */;\n    const types_1 = require(\"f0c35cbd76\") /* ../tokenizer/types */;\n    const base_1 = require(\"540718e523\") /* ../traverser/base */;\n    const expression_1 = require(\"8178e7c3c8\") /* ../traverser/expression */;\n    const statement_1 = require(\"e3b9989da1\") /* ../traverser/statement */;\n    const util_1 = require(\"bc94bbadc1\") /* ../traverser/util */;\n    function isMaybeDefaultImport(lookahead) {\n        return ((lookahead.type === types_1.TokenType.name || !!(lookahead.type & types_1.TokenType.IS_KEYWORD)) &&\n            lookahead.contextualKeyword !== keywords_1.ContextualKeyword._from);\n    }\n    function flowParseTypeInitialiser(tok) {\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        (0, util_1.expect)(tok || types_1.TokenType.colon);\n        flowParseType();\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n    function flowParsePredicate() {\n        (0, util_1.expect)(types_1.TokenType.modulo);\n        (0, util_1.expectContextual)(keywords_1.ContextualKeyword._checks);\n        if ((0, index_1.eat)(types_1.TokenType.parenL)) {\n            (0, expression_1.parseExpression)();\n            (0, util_1.expect)(types_1.TokenType.parenR);\n        }\n    }\n    function flowParseTypeAndPredicateInitialiser() {\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        (0, util_1.expect)(types_1.TokenType.colon);\n        if ((0, index_1.match)(types_1.TokenType.modulo)) {\n            flowParsePredicate();\n        }\n        else {\n            flowParseType();\n            if ((0, index_1.match)(types_1.TokenType.modulo)) {\n                flowParsePredicate();\n            }\n        }\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n    function flowParseDeclareClass() {\n        (0, index_1.next)();\n        flowParseInterfaceish(/* isClass */ true);\n    }\n    function flowParseDeclareFunction() {\n        (0, index_1.next)();\n        (0, expression_1.parseIdentifier)();\n        if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n            flowParseTypeParameterDeclaration();\n        }\n        (0, util_1.expect)(types_1.TokenType.parenL);\n        flowParseFunctionTypeParams();\n        (0, util_1.expect)(types_1.TokenType.parenR);\n        flowParseTypeAndPredicateInitialiser();\n        (0, util_1.semicolon)();\n    }\n    function flowParseDeclare() {\n        if ((0, index_1.match)(types_1.TokenType._class)) {\n            flowParseDeclareClass();\n        }\n        else if ((0, index_1.match)(types_1.TokenType._function)) {\n            flowParseDeclareFunction();\n        }\n        else if ((0, index_1.match)(types_1.TokenType._var)) {\n            flowParseDeclareVariable();\n        }\n        else if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._module)) {\n            if ((0, index_1.eat)(types_1.TokenType.dot)) {\n                flowParseDeclareModuleExports();\n            }\n            else {\n                flowParseDeclareModule();\n            }\n        }\n        else if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._type)) {\n            flowParseDeclareTypeAlias();\n        }\n        else if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._opaque)) {\n            flowParseDeclareOpaqueType();\n        }\n        else if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._interface)) {\n            flowParseDeclareInterface();\n        }\n        else if ((0, index_1.match)(types_1.TokenType._export)) {\n            flowParseDeclareExportDeclaration();\n        }\n        else {\n            (0, util_1.unexpected)();\n        }\n    }\n    function flowParseDeclareVariable() {\n        (0, index_1.next)();\n        flowParseTypeAnnotatableIdentifier();\n        (0, util_1.semicolon)();\n    }\n    function flowParseDeclareModule() {\n        if ((0, index_1.match)(types_1.TokenType.string)) {\n            (0, expression_1.parseExprAtom)();\n        }\n        else {\n            (0, expression_1.parseIdentifier)();\n        }\n        (0, util_1.expect)(types_1.TokenType.braceL);\n        while (!(0, index_1.match)(types_1.TokenType.braceR) && !base_1.state.error) {\n            if ((0, index_1.match)(types_1.TokenType._import)) {\n                (0, index_1.next)();\n                (0, statement_1.parseImport)();\n            }\n            else {\n                (0, util_1.unexpected)();\n            }\n        }\n        (0, util_1.expect)(types_1.TokenType.braceR);\n    }\n    function flowParseDeclareExportDeclaration() {\n        (0, util_1.expect)(types_1.TokenType._export);\n        if ((0, index_1.eat)(types_1.TokenType._default)) {\n            if ((0, index_1.match)(types_1.TokenType._function) || (0, index_1.match)(types_1.TokenType._class)) {\n                // declare export default class ...\n                // declare export default function ...\n                flowParseDeclare();\n            }\n            else {\n                // declare export default [type];\n                flowParseType();\n                (0, util_1.semicolon)();\n            }\n        }\n        else if ((0, index_1.match)(types_1.TokenType._var) || // declare export var ...\n            (0, index_1.match)(types_1.TokenType._function) || // declare export function ...\n            (0, index_1.match)(types_1.TokenType._class) || // declare export class ...\n            (0, util_1.isContextual)(keywords_1.ContextualKeyword._opaque) // declare export opaque ..\n        ) {\n            flowParseDeclare();\n        }\n        else if ((0, index_1.match)(types_1.TokenType.star) || // declare export * from ''\n            (0, index_1.match)(types_1.TokenType.braceL) || // declare export {} ...\n            (0, util_1.isContextual)(keywords_1.ContextualKeyword._interface) || // declare export interface ...\n            (0, util_1.isContextual)(keywords_1.ContextualKeyword._type) || // declare export type ...\n            (0, util_1.isContextual)(keywords_1.ContextualKeyword._opaque) // declare export opaque type ...\n        ) {\n            (0, statement_1.parseExport)();\n        }\n        else {\n            (0, util_1.unexpected)();\n        }\n    }\n    function flowParseDeclareModuleExports() {\n        (0, util_1.expectContextual)(keywords_1.ContextualKeyword._exports);\n        flowParseTypeAnnotation();\n        (0, util_1.semicolon)();\n    }\n    function flowParseDeclareTypeAlias() {\n        (0, index_1.next)();\n        flowParseTypeAlias();\n    }\n    function flowParseDeclareOpaqueType() {\n        (0, index_1.next)();\n        flowParseOpaqueType(true);\n    }\n    function flowParseDeclareInterface() {\n        (0, index_1.next)();\n        flowParseInterfaceish();\n    }\n    // Interfaces\n    function flowParseInterfaceish(isClass = false) {\n        flowParseRestrictedIdentifier();\n        if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n            flowParseTypeParameterDeclaration();\n        }\n        if ((0, index_1.eat)(types_1.TokenType._extends)) {\n            do {\n                flowParseInterfaceExtends();\n            } while (!isClass && (0, index_1.eat)(types_1.TokenType.comma));\n        }\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._mixins)) {\n            (0, index_1.next)();\n            do {\n                flowParseInterfaceExtends();\n            } while ((0, index_1.eat)(types_1.TokenType.comma));\n        }\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._implements)) {\n            (0, index_1.next)();\n            do {\n                flowParseInterfaceExtends();\n            } while ((0, index_1.eat)(types_1.TokenType.comma));\n        }\n        flowParseObjectType(isClass, false, isClass);\n    }\n    function flowParseInterfaceExtends() {\n        flowParseQualifiedTypeIdentifier(false);\n        if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n            flowParseTypeParameterInstantiation();\n        }\n    }\n    function flowParseInterface() {\n        flowParseInterfaceish();\n    }\n    function flowParseRestrictedIdentifier() {\n        (0, expression_1.parseIdentifier)();\n    }\n    function flowParseTypeAlias() {\n        flowParseRestrictedIdentifier();\n        if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n            flowParseTypeParameterDeclaration();\n        }\n        flowParseTypeInitialiser(types_1.TokenType.eq);\n        (0, util_1.semicolon)();\n    }\n    function flowParseOpaqueType(declare) {\n        (0, util_1.expectContextual)(keywords_1.ContextualKeyword._type);\n        flowParseRestrictedIdentifier();\n        if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n            flowParseTypeParameterDeclaration();\n        }\n        // Parse the supertype\n        if ((0, index_1.match)(types_1.TokenType.colon)) {\n            flowParseTypeInitialiser(types_1.TokenType.colon);\n        }\n        if (!declare) {\n            flowParseTypeInitialiser(types_1.TokenType.eq);\n        }\n        (0, util_1.semicolon)();\n    }\n    function flowParseTypeParameter() {\n        flowParseVariance();\n        flowParseTypeAnnotatableIdentifier();\n        if ((0, index_1.eat)(types_1.TokenType.eq)) {\n            flowParseType();\n        }\n    }\n    function flowParseTypeParameterDeclaration() {\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        // istanbul ignore else: this condition is already checked at all call sites\n        if ((0, index_1.match)(types_1.TokenType.lessThan) || (0, index_1.match)(types_1.TokenType.typeParameterStart)) {\n            (0, index_1.next)();\n        }\n        else {\n            (0, util_1.unexpected)();\n        }\n        do {\n            flowParseTypeParameter();\n            if (!(0, index_1.match)(types_1.TokenType.greaterThan)) {\n                (0, util_1.expect)(types_1.TokenType.comma);\n            }\n        } while (!(0, index_1.match)(types_1.TokenType.greaterThan) && !base_1.state.error);\n        (0, util_1.expect)(types_1.TokenType.greaterThan);\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n    function flowParseTypeParameterInstantiation() {\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        (0, util_1.expect)(types_1.TokenType.lessThan);\n        while (!(0, index_1.match)(types_1.TokenType.greaterThan) && !base_1.state.error) {\n            flowParseType();\n            if (!(0, index_1.match)(types_1.TokenType.greaterThan)) {\n                (0, util_1.expect)(types_1.TokenType.comma);\n            }\n        }\n        (0, util_1.expect)(types_1.TokenType.greaterThan);\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n    function flowParseInterfaceType() {\n        (0, util_1.expectContextual)(keywords_1.ContextualKeyword._interface);\n        if ((0, index_1.eat)(types_1.TokenType._extends)) {\n            do {\n                flowParseInterfaceExtends();\n            } while ((0, index_1.eat)(types_1.TokenType.comma));\n        }\n        flowParseObjectType(false, false, false);\n    }\n    function flowParseObjectPropertyKey() {\n        if ((0, index_1.match)(types_1.TokenType.num) || (0, index_1.match)(types_1.TokenType.string)) {\n            (0, expression_1.parseExprAtom)();\n        }\n        else {\n            (0, expression_1.parseIdentifier)();\n        }\n    }\n    function flowParseObjectTypeIndexer() {\n        // Note: bracketL has already been consumed\n        if ((0, index_1.lookaheadType)() === types_1.TokenType.colon) {\n            flowParseObjectPropertyKey();\n            flowParseTypeInitialiser();\n        }\n        else {\n            flowParseType();\n        }\n        (0, util_1.expect)(types_1.TokenType.bracketR);\n        flowParseTypeInitialiser();\n    }\n    function flowParseObjectTypeInternalSlot() {\n        // Note: both bracketL have already been consumed\n        flowParseObjectPropertyKey();\n        (0, util_1.expect)(types_1.TokenType.bracketR);\n        (0, util_1.expect)(types_1.TokenType.bracketR);\n        if ((0, index_1.match)(types_1.TokenType.lessThan) || (0, index_1.match)(types_1.TokenType.parenL)) {\n            flowParseObjectTypeMethodish();\n        }\n        else {\n            (0, index_1.eat)(types_1.TokenType.question);\n            flowParseTypeInitialiser();\n        }\n    }\n    function flowParseObjectTypeMethodish() {\n        if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n            flowParseTypeParameterDeclaration();\n        }\n        (0, util_1.expect)(types_1.TokenType.parenL);\n        while (!(0, index_1.match)(types_1.TokenType.parenR) && !(0, index_1.match)(types_1.TokenType.ellipsis) && !base_1.state.error) {\n            flowParseFunctionTypeParam();\n            if (!(0, index_1.match)(types_1.TokenType.parenR)) {\n                (0, util_1.expect)(types_1.TokenType.comma);\n            }\n        }\n        if ((0, index_1.eat)(types_1.TokenType.ellipsis)) {\n            flowParseFunctionTypeParam();\n        }\n        (0, util_1.expect)(types_1.TokenType.parenR);\n        flowParseTypeInitialiser();\n    }\n    function flowParseObjectTypeCallProperty() {\n        flowParseObjectTypeMethodish();\n    }\n    function flowParseObjectType(allowStatic, allowExact, allowProto) {\n        let endDelim;\n        if (allowExact && (0, index_1.match)(types_1.TokenType.braceBarL)) {\n            (0, util_1.expect)(types_1.TokenType.braceBarL);\n            endDelim = types_1.TokenType.braceBarR;\n        }\n        else {\n            (0, util_1.expect)(types_1.TokenType.braceL);\n            endDelim = types_1.TokenType.braceR;\n        }\n        while (!(0, index_1.match)(endDelim) && !base_1.state.error) {\n            if (allowProto && (0, util_1.isContextual)(keywords_1.ContextualKeyword._proto)) {\n                const lookahead = (0, index_1.lookaheadType)();\n                if (lookahead !== types_1.TokenType.colon && lookahead !== types_1.TokenType.question) {\n                    (0, index_1.next)();\n                    allowStatic = false;\n                }\n            }\n            if (allowStatic && (0, util_1.isContextual)(keywords_1.ContextualKeyword._static)) {\n                const lookahead = (0, index_1.lookaheadType)();\n                if (lookahead !== types_1.TokenType.colon && lookahead !== types_1.TokenType.question) {\n                    (0, index_1.next)();\n                }\n            }\n            flowParseVariance();\n            if ((0, index_1.eat)(types_1.TokenType.bracketL)) {\n                if ((0, index_1.eat)(types_1.TokenType.bracketL)) {\n                    flowParseObjectTypeInternalSlot();\n                }\n                else {\n                    flowParseObjectTypeIndexer();\n                }\n            }\n            else if ((0, index_1.match)(types_1.TokenType.parenL) || (0, index_1.match)(types_1.TokenType.lessThan)) {\n                flowParseObjectTypeCallProperty();\n            }\n            else {\n                if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._get) || (0, util_1.isContextual)(keywords_1.ContextualKeyword._set)) {\n                    const lookahead = (0, index_1.lookaheadType)();\n                    if (lookahead === types_1.TokenType.name || lookahead === types_1.TokenType.string || lookahead === types_1.TokenType.num) {\n                        (0, index_1.next)();\n                    }\n                }\n                flowParseObjectTypeProperty();\n            }\n            flowObjectTypeSemicolon();\n        }\n        (0, util_1.expect)(endDelim);\n    }\n    function flowParseObjectTypeProperty() {\n        if ((0, index_1.match)(types_1.TokenType.ellipsis)) {\n            (0, util_1.expect)(types_1.TokenType.ellipsis);\n            if (!(0, index_1.eat)(types_1.TokenType.comma)) {\n                (0, index_1.eat)(types_1.TokenType.semi);\n            }\n            // Explicit inexact object syntax.\n            if ((0, index_1.match)(types_1.TokenType.braceR)) {\n                return;\n            }\n            flowParseType();\n        }\n        else {\n            flowParseObjectPropertyKey();\n            if ((0, index_1.match)(types_1.TokenType.lessThan) || (0, index_1.match)(types_1.TokenType.parenL)) {\n                // This is a method property\n                flowParseObjectTypeMethodish();\n            }\n            else {\n                (0, index_1.eat)(types_1.TokenType.question);\n                flowParseTypeInitialiser();\n            }\n        }\n    }\n    function flowObjectTypeSemicolon() {\n        if (!(0, index_1.eat)(types_1.TokenType.semi) && !(0, index_1.eat)(types_1.TokenType.comma) && !(0, index_1.match)(types_1.TokenType.braceR) && !(0, index_1.match)(types_1.TokenType.braceBarR)) {\n            (0, util_1.unexpected)();\n        }\n    }\n    function flowParseQualifiedTypeIdentifier(initialIdAlreadyParsed) {\n        if (!initialIdAlreadyParsed) {\n            (0, expression_1.parseIdentifier)();\n        }\n        while ((0, index_1.eat)(types_1.TokenType.dot)) {\n            (0, expression_1.parseIdentifier)();\n        }\n    }\n    function flowParseGenericType() {\n        flowParseQualifiedTypeIdentifier(true);\n        if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n            flowParseTypeParameterInstantiation();\n        }\n    }\n    function flowParseTypeofType() {\n        (0, util_1.expect)(types_1.TokenType._typeof);\n        flowParsePrimaryType();\n    }\n    function flowParseTupleType() {\n        (0, util_1.expect)(types_1.TokenType.bracketL);\n        // We allow trailing commas\n        while (base_1.state.pos < base_1.input.length && !(0, index_1.match)(types_1.TokenType.bracketR)) {\n            flowParseType();\n            if ((0, index_1.match)(types_1.TokenType.bracketR)) {\n                break;\n            }\n            (0, util_1.expect)(types_1.TokenType.comma);\n        }\n        (0, util_1.expect)(types_1.TokenType.bracketR);\n    }\n    function flowParseFunctionTypeParam() {\n        const lookahead = (0, index_1.lookaheadType)();\n        if (lookahead === types_1.TokenType.colon || lookahead === types_1.TokenType.question) {\n            (0, expression_1.parseIdentifier)();\n            (0, index_1.eat)(types_1.TokenType.question);\n            flowParseTypeInitialiser();\n        }\n        else {\n            flowParseType();\n        }\n    }\n    function flowParseFunctionTypeParams() {\n        while (!(0, index_1.match)(types_1.TokenType.parenR) && !(0, index_1.match)(types_1.TokenType.ellipsis) && !base_1.state.error) {\n            flowParseFunctionTypeParam();\n            if (!(0, index_1.match)(types_1.TokenType.parenR)) {\n                (0, util_1.expect)(types_1.TokenType.comma);\n            }\n        }\n        if ((0, index_1.eat)(types_1.TokenType.ellipsis)) {\n            flowParseFunctionTypeParam();\n        }\n    }\n    // The parsing of types roughly parallels the parsing of expressions, and\n    // primary types are kind of like primary expressions...they're the\n    // primitives with which other types are constructed.\n    function flowParsePrimaryType() {\n        let isGroupedType = false;\n        const oldNoAnonFunctionType = base_1.state.noAnonFunctionType;\n        switch (base_1.state.type) {\n            case types_1.TokenType.name: {\n                if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._interface)) {\n                    flowParseInterfaceType();\n                    return;\n                }\n                (0, expression_1.parseIdentifier)();\n                flowParseGenericType();\n                return;\n            }\n            case types_1.TokenType.braceL:\n                flowParseObjectType(false, false, false);\n                return;\n            case types_1.TokenType.braceBarL:\n                flowParseObjectType(false, true, false);\n                return;\n            case types_1.TokenType.bracketL:\n                flowParseTupleType();\n                return;\n            case types_1.TokenType.lessThan:\n                flowParseTypeParameterDeclaration();\n                (0, util_1.expect)(types_1.TokenType.parenL);\n                flowParseFunctionTypeParams();\n                (0, util_1.expect)(types_1.TokenType.parenR);\n                (0, util_1.expect)(types_1.TokenType.arrow);\n                flowParseType();\n                return;\n            case types_1.TokenType.parenL:\n                (0, index_1.next)();\n                // Check to see if this is actually a grouped type\n                if (!(0, index_1.match)(types_1.TokenType.parenR) && !(0, index_1.match)(types_1.TokenType.ellipsis)) {\n                    if ((0, index_1.match)(types_1.TokenType.name)) {\n                        const token = (0, index_1.lookaheadType)();\n                        isGroupedType = token !== types_1.TokenType.question && token !== types_1.TokenType.colon;\n                    }\n                    else {\n                        isGroupedType = true;\n                    }\n                }\n                if (isGroupedType) {\n                    base_1.state.noAnonFunctionType = false;\n                    flowParseType();\n                    base_1.state.noAnonFunctionType = oldNoAnonFunctionType;\n                    // A `,` or a `) =>` means this is an anonymous function type\n                    if (base_1.state.noAnonFunctionType ||\n                        !((0, index_1.match)(types_1.TokenType.comma) || ((0, index_1.match)(types_1.TokenType.parenR) && (0, index_1.lookaheadType)() === types_1.TokenType.arrow))) {\n                        (0, util_1.expect)(types_1.TokenType.parenR);\n                        return;\n                    }\n                    else {\n                        // Eat a comma if there is one\n                        (0, index_1.eat)(types_1.TokenType.comma);\n                    }\n                }\n                flowParseFunctionTypeParams();\n                (0, util_1.expect)(types_1.TokenType.parenR);\n                (0, util_1.expect)(types_1.TokenType.arrow);\n                flowParseType();\n                return;\n            case types_1.TokenType.minus:\n                (0, index_1.next)();\n                (0, expression_1.parseLiteral)();\n                return;\n            case types_1.TokenType.string:\n            case types_1.TokenType.num:\n            case types_1.TokenType._true:\n            case types_1.TokenType._false:\n            case types_1.TokenType._null:\n            case types_1.TokenType._this:\n            case types_1.TokenType._void:\n            case types_1.TokenType.star:\n                (0, index_1.next)();\n                return;\n            default:\n                if (base_1.state.type === types_1.TokenType._typeof) {\n                    flowParseTypeofType();\n                    return;\n                }\n                else if (base_1.state.type & types_1.TokenType.IS_KEYWORD) {\n                    (0, index_1.next)();\n                    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType.name;\n                    return;\n                }\n        }\n        (0, util_1.unexpected)();\n    }\n    function flowParsePostfixType() {\n        flowParsePrimaryType();\n        while (!(0, util_1.canInsertSemicolon)() && ((0, index_1.match)(types_1.TokenType.bracketL) || (0, index_1.match)(types_1.TokenType.questionDot))) {\n            (0, index_1.eat)(types_1.TokenType.questionDot);\n            (0, util_1.expect)(types_1.TokenType.bracketL);\n            if ((0, index_1.eat)(types_1.TokenType.bracketR)) {\n                // Array type\n            }\n            else {\n                // Indexed access type\n                flowParseType();\n                (0, util_1.expect)(types_1.TokenType.bracketR);\n            }\n        }\n    }\n    function flowParsePrefixType() {\n        if ((0, index_1.eat)(types_1.TokenType.question)) {\n            flowParsePrefixType();\n        }\n        else {\n            flowParsePostfixType();\n        }\n    }\n    function flowParseAnonFunctionWithoutParens() {\n        flowParsePrefixType();\n        if (!base_1.state.noAnonFunctionType && (0, index_1.eat)(types_1.TokenType.arrow)) {\n            flowParseType();\n        }\n    }\n    function flowParseIntersectionType() {\n        (0, index_1.eat)(types_1.TokenType.bitwiseAND);\n        flowParseAnonFunctionWithoutParens();\n        while ((0, index_1.eat)(types_1.TokenType.bitwiseAND)) {\n            flowParseAnonFunctionWithoutParens();\n        }\n    }\n    function flowParseUnionType() {\n        (0, index_1.eat)(types_1.TokenType.bitwiseOR);\n        flowParseIntersectionType();\n        while ((0, index_1.eat)(types_1.TokenType.bitwiseOR)) {\n            flowParseIntersectionType();\n        }\n    }\n    function flowParseType() {\n        flowParseUnionType();\n    }\n    function flowParseTypeAnnotation() {\n        flowParseTypeInitialiser();\n    }\n    function flowParseTypeAnnotatableIdentifier() {\n        (0, expression_1.parseIdentifier)();\n        if ((0, index_1.match)(types_1.TokenType.colon)) {\n            flowParseTypeAnnotation();\n        }\n    }\n    function flowParseVariance() {\n        if ((0, index_1.match)(types_1.TokenType.plus) || (0, index_1.match)(types_1.TokenType.minus)) {\n            (0, index_1.next)();\n            base_1.state.tokens[base_1.state.tokens.length - 1].isType = true;\n        }\n    }\n    // ==================================\n    // Overrides\n    // ==================================\n    function flowParseFunctionBodyAndFinish(funcContextId) {\n        // For arrow functions, `parseArrow` handles the return type itself.\n        if ((0, index_1.match)(types_1.TokenType.colon)) {\n            flowParseTypeAndPredicateInitialiser();\n        }\n        (0, expression_1.parseFunctionBody)(false, funcContextId);\n    }\n    function flowParseSubscript(startTokenIndex, noCalls, stopState) {\n        if ((0, index_1.match)(types_1.TokenType.questionDot) && (0, index_1.lookaheadType)() === types_1.TokenType.lessThan) {\n            if (noCalls) {\n                stopState.stop = true;\n                return;\n            }\n            (0, index_1.next)();\n            flowParseTypeParameterInstantiation();\n            (0, util_1.expect)(types_1.TokenType.parenL);\n            (0, expression_1.parseCallExpressionArguments)();\n            return;\n        }\n        else if (!noCalls && (0, index_1.match)(types_1.TokenType.lessThan)) {\n            const snapshot = base_1.state.snapshot();\n            flowParseTypeParameterInstantiation();\n            (0, util_1.expect)(types_1.TokenType.parenL);\n            (0, expression_1.parseCallExpressionArguments)();\n            if (base_1.state.error) {\n                base_1.state.restoreFromSnapshot(snapshot);\n            }\n            else {\n                return;\n            }\n        }\n        (0, expression_1.baseParseSubscript)(startTokenIndex, noCalls, stopState);\n    }\n    function flowStartParseNewArguments() {\n        if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n            const snapshot = base_1.state.snapshot();\n            flowParseTypeParameterInstantiation();\n            if (base_1.state.error) {\n                base_1.state.restoreFromSnapshot(snapshot);\n            }\n        }\n    }\n    // interfaces\n    function flowTryParseStatement() {\n        if ((0, index_1.match)(types_1.TokenType.name) && base_1.state.contextualKeyword === keywords_1.ContextualKeyword._interface) {\n            const oldIsType = (0, index_1.pushTypeContext)(0);\n            (0, index_1.next)();\n            flowParseInterface();\n            (0, index_1.popTypeContext)(oldIsType);\n            return true;\n        }\n        else if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._enum)) {\n            flowParseEnumDeclaration();\n            return true;\n        }\n        return false;\n    }\n    function flowTryParseExportDefaultExpression() {\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._enum)) {\n            flowParseEnumDeclaration();\n            return true;\n        }\n        return false;\n    }\n    // declares, interfaces and type aliases\n    function flowParseIdentifierStatement(contextualKeyword) {\n        if (contextualKeyword === keywords_1.ContextualKeyword._declare) {\n            if ((0, index_1.match)(types_1.TokenType._class) ||\n                (0, index_1.match)(types_1.TokenType.name) ||\n                (0, index_1.match)(types_1.TokenType._function) ||\n                (0, index_1.match)(types_1.TokenType._var) ||\n                (0, index_1.match)(types_1.TokenType._export)) {\n                const oldIsType = (0, index_1.pushTypeContext)(1);\n                flowParseDeclare();\n                (0, index_1.popTypeContext)(oldIsType);\n            }\n        }\n        else if ((0, index_1.match)(types_1.TokenType.name)) {\n            if (contextualKeyword === keywords_1.ContextualKeyword._interface) {\n                const oldIsType = (0, index_1.pushTypeContext)(1);\n                flowParseInterface();\n                (0, index_1.popTypeContext)(oldIsType);\n            }\n            else if (contextualKeyword === keywords_1.ContextualKeyword._type) {\n                const oldIsType = (0, index_1.pushTypeContext)(1);\n                flowParseTypeAlias();\n                (0, index_1.popTypeContext)(oldIsType);\n            }\n            else if (contextualKeyword === keywords_1.ContextualKeyword._opaque) {\n                const oldIsType = (0, index_1.pushTypeContext)(1);\n                flowParseOpaqueType(false);\n                (0, index_1.popTypeContext)(oldIsType);\n            }\n        }\n        (0, util_1.semicolon)();\n    }\n    // export type\n    function flowShouldParseExportDeclaration() {\n        return ((0, util_1.isContextual)(keywords_1.ContextualKeyword._type) ||\n            (0, util_1.isContextual)(keywords_1.ContextualKeyword._interface) ||\n            (0, util_1.isContextual)(keywords_1.ContextualKeyword._opaque) ||\n            (0, util_1.isContextual)(keywords_1.ContextualKeyword._enum));\n    }\n    function flowShouldDisallowExportDefaultSpecifier() {\n        return ((0, index_1.match)(types_1.TokenType.name) &&\n            (base_1.state.contextualKeyword === keywords_1.ContextualKeyword._type ||\n                base_1.state.contextualKeyword === keywords_1.ContextualKeyword._interface ||\n                base_1.state.contextualKeyword === keywords_1.ContextualKeyword._opaque ||\n                base_1.state.contextualKeyword === keywords_1.ContextualKeyword._enum));\n    }\n    function flowParseExportDeclaration() {\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._type)) {\n            const oldIsType = (0, index_1.pushTypeContext)(1);\n            (0, index_1.next)();\n            if ((0, index_1.match)(types_1.TokenType.braceL)) {\n                // export type { foo, bar };\n                (0, statement_1.parseExportSpecifiers)();\n                (0, statement_1.parseExportFrom)();\n            }\n            else {\n                // export type Foo = Bar;\n                flowParseTypeAlias();\n            }\n            (0, index_1.popTypeContext)(oldIsType);\n        }\n        else if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._opaque)) {\n            const oldIsType = (0, index_1.pushTypeContext)(1);\n            (0, index_1.next)();\n            // export opaque type Foo = Bar;\n            flowParseOpaqueType(false);\n            (0, index_1.popTypeContext)(oldIsType);\n        }\n        else if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._interface)) {\n            const oldIsType = (0, index_1.pushTypeContext)(1);\n            (0, index_1.next)();\n            flowParseInterface();\n            (0, index_1.popTypeContext)(oldIsType);\n        }\n        else {\n            (0, statement_1.parseStatement)(true);\n        }\n    }\n    function flowShouldParseExportStar() {\n        return (0, index_1.match)(types_1.TokenType.star) || ((0, util_1.isContextual)(keywords_1.ContextualKeyword._type) && (0, index_1.lookaheadType)() === types_1.TokenType.star);\n    }\n    function flowParseExportStar() {\n        if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._type)) {\n            const oldIsType = (0, index_1.pushTypeContext)(2);\n            (0, statement_1.baseParseExportStar)();\n            (0, index_1.popTypeContext)(oldIsType);\n        }\n        else {\n            (0, statement_1.baseParseExportStar)();\n        }\n    }\n    // parse a the super class type parameters and implements\n    function flowAfterParseClassSuper(hasSuper) {\n        if (hasSuper && (0, index_1.match)(types_1.TokenType.lessThan)) {\n            flowParseTypeParameterInstantiation();\n        }\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._implements)) {\n            const oldIsType = (0, index_1.pushTypeContext)(0);\n            (0, index_1.next)();\n            base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._implements;\n            do {\n                flowParseRestrictedIdentifier();\n                if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n                    flowParseTypeParameterInstantiation();\n                }\n            } while ((0, index_1.eat)(types_1.TokenType.comma));\n            (0, index_1.popTypeContext)(oldIsType);\n        }\n    }\n    // parse type parameters for object method shorthand\n    function flowStartParseObjPropValue() {\n        // method shorthand\n        if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n            flowParseTypeParameterDeclaration();\n            if (!(0, index_1.match)(types_1.TokenType.parenL))\n                (0, util_1.unexpected)();\n        }\n    }\n    function flowParseAssignableListItemTypes() {\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        (0, index_1.eat)(types_1.TokenType.question);\n        if ((0, index_1.match)(types_1.TokenType.colon)) {\n            flowParseTypeAnnotation();\n        }\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n    // parse typeof and type imports\n    function flowStartParseImportSpecifiers() {\n        if ((0, index_1.match)(types_1.TokenType._typeof) || (0, util_1.isContextual)(keywords_1.ContextualKeyword._type)) {\n            const lh = (0, index_1.lookaheadTypeAndKeyword)();\n            if (isMaybeDefaultImport(lh) || lh.type === types_1.TokenType.braceL || lh.type === types_1.TokenType.star) {\n                (0, index_1.next)();\n            }\n        }\n    }\n    // parse import-type/typeof shorthand\n    function flowParseImportSpecifier() {\n        const isTypeKeyword = base_1.state.contextualKeyword === keywords_1.ContextualKeyword._type || base_1.state.type === types_1.TokenType._typeof;\n        if (isTypeKeyword) {\n            (0, index_1.next)();\n        }\n        else {\n            (0, expression_1.parseIdentifier)();\n        }\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._as) && !(0, util_1.isLookaheadContextual)(keywords_1.ContextualKeyword._as)) {\n            (0, expression_1.parseIdentifier)();\n            if (isTypeKeyword && !(0, index_1.match)(types_1.TokenType.name) && !(base_1.state.type & types_1.TokenType.IS_KEYWORD)) {\n                // `import {type as ,` or `import {type as }`\n            }\n            else {\n                // `import {type as foo`\n                (0, expression_1.parseIdentifier)();\n            }\n        }\n        else {\n            if (isTypeKeyword && ((0, index_1.match)(types_1.TokenType.name) || !!(base_1.state.type & types_1.TokenType.IS_KEYWORD))) {\n                // `import {type foo`\n                (0, expression_1.parseIdentifier)();\n            }\n            if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._as)) {\n                (0, expression_1.parseIdentifier)();\n            }\n        }\n    }\n    // parse function type parameters - function foo<T>() {}\n    function flowStartParseFunctionParams() {\n        // Originally this checked if the method is a getter/setter, but if it was, we'd crash soon\n        // anyway, so don't try to propagate that information.\n        if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n            const oldIsType = (0, index_1.pushTypeContext)(0);\n            flowParseTypeParameterDeclaration();\n            (0, index_1.popTypeContext)(oldIsType);\n        }\n    }\n    // parse flow type annotations on variable declarator heads - let foo: string = bar\n    function flowAfterParseVarHead() {\n        if ((0, index_1.match)(types_1.TokenType.colon)) {\n            flowParseTypeAnnotation();\n        }\n    }\n    // parse the return type of an async arrow function - let foo = (async (): number => {});\n    function flowStartParseAsyncArrowFromCallExpression() {\n        if ((0, index_1.match)(types_1.TokenType.colon)) {\n            const oldNoAnonFunctionType = base_1.state.noAnonFunctionType;\n            base_1.state.noAnonFunctionType = true;\n            flowParseTypeAnnotation();\n            base_1.state.noAnonFunctionType = oldNoAnonFunctionType;\n        }\n    }\n    // We need to support type parameter declarations for arrow functions. This\n    // is tricky. There are three situations we need to handle\n    //\n    // 1. This is either JSX or an arrow function. We'll try JSX first. If that\n    //    fails, we'll try an arrow function. If that fails, we'll throw the JSX\n    //    error.\n    // 2. This is an arrow function. We'll parse the type parameter declaration,\n    //    parse the rest, make sure the rest is an arrow function, and go from\n    //    there\n    // 3. This is neither. Just call the super method\n    function flowParseMaybeAssign(noIn, isWithinParens) {\n        if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n            const snapshot = base_1.state.snapshot();\n            let wasArrow = (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n            if (base_1.state.error) {\n                base_1.state.restoreFromSnapshot(snapshot);\n                base_1.state.type = types_1.TokenType.typeParameterStart;\n            }\n            else {\n                return wasArrow;\n            }\n            const oldIsType = (0, index_1.pushTypeContext)(0);\n            flowParseTypeParameterDeclaration();\n            (0, index_1.popTypeContext)(oldIsType);\n            wasArrow = (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n            if (wasArrow) {\n                return true;\n            }\n            (0, util_1.unexpected)();\n        }\n        return (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n    }\n    // handle return types for arrow functions\n    function flowParseArrow() {\n        if ((0, index_1.match)(types_1.TokenType.colon)) {\n            const oldIsType = (0, index_1.pushTypeContext)(0);\n            const snapshot = base_1.state.snapshot();\n            const oldNoAnonFunctionType = base_1.state.noAnonFunctionType;\n            base_1.state.noAnonFunctionType = true;\n            flowParseTypeAndPredicateInitialiser();\n            base_1.state.noAnonFunctionType = oldNoAnonFunctionType;\n            if ((0, util_1.canInsertSemicolon)())\n                (0, util_1.unexpected)();\n            if (!(0, index_1.match)(types_1.TokenType.arrow))\n                (0, util_1.unexpected)();\n            if (base_1.state.error) {\n                base_1.state.restoreFromSnapshot(snapshot);\n            }\n            (0, index_1.popTypeContext)(oldIsType);\n        }\n        return (0, index_1.eat)(types_1.TokenType.arrow);\n    }\n    function flowParseSubscripts(startTokenIndex, noCalls = false) {\n        if (base_1.state.tokens[base_1.state.tokens.length - 1].contextualKeyword === keywords_1.ContextualKeyword._async &&\n            (0, index_1.match)(types_1.TokenType.lessThan)) {\n            const snapshot = base_1.state.snapshot();\n            const wasArrow = parseAsyncArrowWithTypeParameters();\n            if (wasArrow && !base_1.state.error) {\n                return;\n            }\n            base_1.state.restoreFromSnapshot(snapshot);\n        }\n        (0, expression_1.baseParseSubscripts)(startTokenIndex, noCalls);\n    }\n    // Returns true if there was an arrow function here.\n    function parseAsyncArrowWithTypeParameters() {\n        base_1.state.scopeDepth++;\n        const startTokenIndex = base_1.state.tokens.length;\n        (0, statement_1.parseFunctionParams)();\n        if (!(0, expression_1.parseArrow)()) {\n            return false;\n        }\n        (0, expression_1.parseArrowExpression)(startTokenIndex);\n        return true;\n    }\n    function flowParseEnumDeclaration() {\n        (0, util_1.expectContextual)(keywords_1.ContextualKeyword._enum);\n        base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._enum;\n        (0, expression_1.parseIdentifier)();\n        flowParseEnumBody();\n    }\n    function flowParseEnumBody() {\n        if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._of)) {\n            (0, index_1.next)();\n        }\n        (0, util_1.expect)(types_1.TokenType.braceL);\n        flowParseEnumMembers();\n        (0, util_1.expect)(types_1.TokenType.braceR);\n    }\n    function flowParseEnumMembers() {\n        while (!(0, index_1.match)(types_1.TokenType.braceR) && !base_1.state.error) {\n            if ((0, index_1.eat)(types_1.TokenType.ellipsis)) {\n                break;\n            }\n            flowParseEnumMember();\n            if (!(0, index_1.match)(types_1.TokenType.braceR)) {\n                (0, util_1.expect)(types_1.TokenType.comma);\n            }\n        }\n    }\n    function flowParseEnumMember() {\n        (0, expression_1.parseIdentifier)();\n        if ((0, index_1.eat)(types_1.TokenType.eq)) {\n            // Flow enum values are always just one token (a string, number, or boolean literal).\n            (0, index_1.next)();\n        }\n    }\n}\n","min_source":"function _(e,t,n,o,a){o(),n.flowParseTypeParameterDeclaration=_,n.flowParseTypeAnnotation=B,n.flowParseVariance=M,n.flowParseFunctionBodyAndFinish=function(e){(0,p.match)(r.TokenType.colon)&&k();(0,c.parseFunctionBody)(!1,e)},n.flowParseSubscript=function(e,t,n){if((0,p.match)(r.TokenType.questionDot)&&(0,p.lookaheadType)()===r.TokenType.lessThan)return t?void(n.stop=!0):((0,p.next)(),b(),(0,i.expect)(r.TokenType.parenL),void(0,c.parseCallExpressionArguments)());if(!t&&(0,p.match)(r.TokenType.lessThan)){const e=s.state.snapshot();if(b(),(0,i.expect)(r.TokenType.parenL),(0,c.parseCallExpressionArguments)(),!s.state.error)return;s.state.restoreFromSnapshot(e)}(0,c.baseParseSubscript)(e,t,n)},n.flowStartParseNewArguments=function(){if((0,p.match)(r.TokenType.lessThan)){const e=s.state.snapshot();b(),s.state.error&&s.state.restoreFromSnapshot(e)}},n.flowTryParseStatement=function(){if((0,p.match)(r.TokenType.name)&&s.state.contextualKeyword===T.ContextualKeyword._interface){const e=(0,p.pushTypeContext)(0);return(0,p.next)(),h(),(0,p.popTypeContext)(e),!0}if((0,i.isContextual)(T.ContextualKeyword._enum))return W(),!0;return!1},n.flowTryParseExportDefaultExpression=function(){if((0,i.isContextual)(T.ContextualKeyword._enum))return W(),!0;return!1},n.flowParseIdentifierStatement=function(e){if(e===T.ContextualKeyword._declare){if((0,p.match)(r.TokenType._class)||(0,p.match)(r.TokenType.name)||(0,p.match)(r.TokenType._function)||(0,p.match)(r.TokenType._var)||(0,p.match)(r.TokenType._export)){const e=(0,p.pushTypeContext)(1);x(),(0,p.popTypeContext)(e)}}else if((0,p.match)(r.TokenType.name))if(e===T.ContextualKeyword._interface){const e=(0,p.pushTypeContext)(1);h(),(0,p.popTypeContext)(e)}else if(e===T.ContextualKeyword._type){const e=(0,p.pushTypeContext)(1);C(),(0,p.popTypeContext)(e)}else if(e===T.ContextualKeyword._opaque){const e=(0,p.pushTypeContext)(1);w(!1),(0,p.popTypeContext)(e)}(0,i.semicolon)()},n.flowShouldParseExportDeclaration=function(){return(0,i.isContextual)(T.ContextualKeyword._type)||(0,i.isContextual)(T.ContextualKeyword._interface)||(0,i.isContextual)(T.ContextualKeyword._opaque)||(0,i.isContextual)(T.ContextualKeyword._enum)},n.flowShouldDisallowExportDefaultSpecifier=function(){return(0,p.match)(r.TokenType.name)&&(s.state.contextualKeyword===T.ContextualKeyword._type||s.state.contextualKeyword===T.ContextualKeyword._interface||s.state.contextualKeyword===T.ContextualKeyword._opaque||s.state.contextualKeyword===T.ContextualKeyword._enum)},n.flowParseExportDeclaration=function(){if((0,i.isContextual)(T.ContextualKeyword._type)){const e=(0,p.pushTypeContext)(1);(0,p.next)(),(0,p.match)(r.TokenType.braceL)?((0,y.parseExportSpecifiers)(),(0,y.parseExportFrom)()):C(),(0,p.popTypeContext)(e)}else if((0,i.isContextual)(T.ContextualKeyword._opaque)){const e=(0,p.pushTypeContext)(1);(0,p.next)(),w(!1),(0,p.popTypeContext)(e)}else if((0,i.isContextual)(T.ContextualKeyword._interface)){const e=(0,p.pushTypeContext)(1);(0,p.next)(),h(),(0,p.popTypeContext)(e)}else(0,y.parseStatement)(!0)},n.flowShouldParseExportStar=function(){return(0,p.match)(r.TokenType.star)||(0,i.isContextual)(T.ContextualKeyword._type)&&(0,p.lookaheadType)()===r.TokenType.star},n.flowParseExportStar=function(){if((0,i.eatContextual)(T.ContextualKeyword._type)){const e=(0,p.pushTypeContext)(2);(0,y.baseParseExportStar)(),(0,p.popTypeContext)(e)}else(0,y.baseParseExportStar)()},n.flowAfterParseClassSuper=function(e){e&&(0,p.match)(r.TokenType.lessThan)&&b();if((0,i.isContextual)(T.ContextualKeyword._implements)){const e=(0,p.pushTypeContext)(0);(0,p.next)(),s.state.tokens[s.state.tokens.length-1].type=r.TokenType._implements;do{d(),(0,p.match)(r.TokenType.lessThan)&&b()}while((0,p.eat)(r.TokenType.comma));(0,p.popTypeContext)(e)}},n.flowStartParseObjPropValue=function(){(0,p.match)(r.TokenType.lessThan)&&(_(),(0,p.match)(r.TokenType.parenL)||(0,i.unexpected)())},n.flowParseAssignableListItemTypes=function(){const e=(0,p.pushTypeContext)(0);(0,p.eat)(r.TokenType.question),(0,p.match)(r.TokenType.colon)&&B();(0,p.popTypeContext)(e)},n.flowStartParseImportSpecifiers=function(){if((0,p.match)(r.TokenType._typeof)||(0,i.isContextual)(T.ContextualKeyword._type)){const t=(0,p.lookaheadTypeAndKeyword)();(((e=t).type===r.TokenType.name||e.type&r.TokenType.IS_KEYWORD)&&e.contextualKeyword!==T.ContextualKeyword._from||t.type===r.TokenType.braceL||t.type===r.TokenType.star)&&(0,p.next)()}var e},n.flowParseImportSpecifier=function(){const e=s.state.contextualKeyword===T.ContextualKeyword._type||s.state.type===r.TokenType._typeof;e?(0,p.next)():(0,c.parseIdentifier)();(0,i.isContextual)(T.ContextualKeyword._as)&&!(0,i.isLookaheadContextual)(T.ContextualKeyword._as)?((0,c.parseIdentifier)(),(!e||(0,p.match)(r.TokenType.name)||s.state.type&r.TokenType.IS_KEYWORD)&&(0,c.parseIdentifier)()):(e&&((0,p.match)(r.TokenType.name)||s.state.type&r.TokenType.IS_KEYWORD)&&(0,c.parseIdentifier)(),(0,i.eatContextual)(T.ContextualKeyword._as)&&(0,c.parseIdentifier)())},n.flowStartParseFunctionParams=function(){if((0,p.match)(r.TokenType.lessThan)){const e=(0,p.pushTypeContext)(0);_(),(0,p.popTypeContext)(e)}},n.flowAfterParseVarHead=function(){(0,p.match)(r.TokenType.colon)&&B()},n.flowStartParseAsyncArrowFromCallExpression=function(){if((0,p.match)(r.TokenType.colon)){const e=s.state.noAnonFunctionType;s.state.noAnonFunctionType=!0,B(),s.state.noAnonFunctionType=e}},n.flowParseMaybeAssign=function(e,t){if((0,p.match)(r.TokenType.lessThan)){const n=s.state.snapshot();let o=(0,c.baseParseMaybeAssign)(e,t);if(!s.state.error)return o;s.state.restoreFromSnapshot(n),s.state.type=r.TokenType.typeParameterStart;const a=(0,p.pushTypeContext)(0);if(_(),(0,p.popTypeContext)(a),o=(0,c.baseParseMaybeAssign)(e,t),o)return!0;(0,i.unexpected)()}return(0,c.baseParseMaybeAssign)(e,t)},n.flowParseArrow=function(){if((0,p.match)(r.TokenType.colon)){const e=(0,p.pushTypeContext)(0),t=s.state.snapshot(),n=s.state.noAnonFunctionType;s.state.noAnonFunctionType=!0,k(),s.state.noAnonFunctionType=n,(0,i.canInsertSemicolon)()&&(0,i.unexpected)(),(0,p.match)(r.TokenType.arrow)||(0,i.unexpected)(),s.state.error&&s.state.restoreFromSnapshot(t),(0,p.popTypeContext)(e)}return(0,p.eat)(r.TokenType.arrow)},n.flowParseSubscripts=function(e,t=!1){if(s.state.tokens[s.state.tokens.length-1].contextualKeyword===T.ContextualKeyword._async&&(0,p.match)(r.TokenType.lessThan)){const e=s.state.snapshot(),t=function(){s.state.scopeDepth++;const e=s.state.tokens.length;if((0,y.parseFunctionParams)(),!(0,c.parseArrow)())return!1;return(0,c.parseArrowExpression)(e),!0}();if(t&&!s.state.error)return;s.state.restoreFromSnapshot(e)}(0,c.baseParseSubscripts)(e,t)};const p=e(\"bfb18d0576\"),T=e(\"99ff836c64\"),r=e(\"f0c35cbd76\"),s=e(\"540718e523\"),c=e(\"8178e7c3c8\"),y=e(\"e3b9989da1\"),i=e(\"bc94bbadc1\");function u(e){const t=(0,p.pushTypeContext)(0);(0,i.expect)(e||r.TokenType.colon),D(),(0,p.popTypeContext)(t)}function l(){(0,i.expect)(r.TokenType.modulo),(0,i.expectContextual)(T.ContextualKeyword._checks),(0,p.eat)(r.TokenType.parenL)&&((0,c.parseExpression)(),(0,i.expect)(r.TokenType.parenR))}function k(){const e=(0,p.pushTypeContext)(0);(0,i.expect)(r.TokenType.colon),(0,p.match)(r.TokenType.modulo)?l():(D(),(0,p.match)(r.TokenType.modulo)&&l()),(0,p.popTypeContext)(e)}function x(){(0,p.match)(r.TokenType._class)?((0,p.next)(),f(!0)):(0,p.match)(r.TokenType._function)?((0,p.next)(),(0,c.parseIdentifier)(),(0,p.match)(r.TokenType.lessThan)&&_(),(0,i.expect)(r.TokenType.parenL),g(),(0,i.expect)(r.TokenType.parenR),k(),(0,i.semicolon)()):(0,p.match)(r.TokenType._var)?((0,p.next)(),O(),(0,i.semicolon)()):(0,i.eatContextual)(T.ContextualKeyword._module)?(0,p.eat)(r.TokenType.dot)?((0,i.expectContextual)(T.ContextualKeyword._exports),B(),(0,i.semicolon)()):function(){(0,p.match)(r.TokenType.string)?(0,c.parseExprAtom)():(0,c.parseIdentifier)();(0,i.expect)(r.TokenType.braceL);for(;!(0,p.match)(r.TokenType.braceR)&&!s.state.error;)(0,p.match)(r.TokenType._import)?((0,p.next)(),(0,y.parseImport)()):(0,i.unexpected)();(0,i.expect)(r.TokenType.braceR)}():(0,i.isContextual)(T.ContextualKeyword._type)?((0,p.next)(),C()):(0,i.isContextual)(T.ContextualKeyword._opaque)?((0,p.next)(),w(!0)):(0,i.isContextual)(T.ContextualKeyword._interface)?((0,p.next)(),f()):(0,p.match)(r.TokenType._export)?((0,i.expect)(r.TokenType._export),(0,p.eat)(r.TokenType._default)?(0,p.match)(r.TokenType._function)||(0,p.match)(r.TokenType._class)?x():(D(),(0,i.semicolon)()):(0,p.match)(r.TokenType._var)||(0,p.match)(r.TokenType._function)||(0,p.match)(r.TokenType._class)||(0,i.isContextual)(T.ContextualKeyword._opaque)?x():(0,p.match)(r.TokenType.star)||(0,p.match)(r.TokenType.braceL)||(0,i.isContextual)(T.ContextualKeyword._interface)||(0,i.isContextual)(T.ContextualKeyword._type)||(0,i.isContextual)(T.ContextualKeyword._opaque)?(0,y.parseExport)():(0,i.unexpected)()):(0,i.unexpected)()}function f(e=!1){if(d(),(0,p.match)(r.TokenType.lessThan)&&_(),(0,p.eat)(r.TokenType._extends))do{m()}while(!e&&(0,p.eat)(r.TokenType.comma));if((0,i.isContextual)(T.ContextualKeyword._mixins)){(0,p.next)();do{m()}while((0,p.eat)(r.TokenType.comma))}if((0,i.isContextual)(T.ContextualKeyword._implements)){(0,p.next)();do{m()}while((0,p.eat)(r.TokenType.comma))}S(e,!1,e)}function m(){L(!1),(0,p.match)(r.TokenType.lessThan)&&b()}function h(){f()}function d(){(0,c.parseIdentifier)()}function C(){d(),(0,p.match)(r.TokenType.lessThan)&&_(),u(r.TokenType.eq),(0,i.semicolon)()}function w(e){(0,i.expectContextual)(T.ContextualKeyword._type),d(),(0,p.match)(r.TokenType.lessThan)&&_(),(0,p.match)(r.TokenType.colon)&&u(r.TokenType.colon),e||u(r.TokenType.eq),(0,i.semicolon)()}function _(){const e=(0,p.pushTypeContext)(0);(0,p.match)(r.TokenType.lessThan)||(0,p.match)(r.TokenType.typeParameterStart)?(0,p.next)():(0,i.unexpected)();do{M(),O(),(0,p.eat)(r.TokenType.eq)&&D(),(0,p.match)(r.TokenType.greaterThan)||(0,i.expect)(r.TokenType.comma)}while(!(0,p.match)(r.TokenType.greaterThan)&&!s.state.error);(0,i.expect)(r.TokenType.greaterThan),(0,p.popTypeContext)(e)}function b(){const e=(0,p.pushTypeContext)(0);for((0,i.expect)(r.TokenType.lessThan);!(0,p.match)(r.TokenType.greaterThan)&&!s.state.error;)D(),(0,p.match)(r.TokenType.greaterThan)||(0,i.expect)(r.TokenType.comma);(0,i.expect)(r.TokenType.greaterThan),(0,p.popTypeContext)(e)}function K(){(0,p.match)(r.TokenType.num)||(0,p.match)(r.TokenType.string)?(0,c.parseExprAtom)():(0,c.parseIdentifier)()}function P(){for((0,p.match)(r.TokenType.lessThan)&&_(),(0,i.expect)(r.TokenType.parenL);!(0,p.match)(r.TokenType.parenR)&&!(0,p.match)(r.TokenType.ellipsis)&&!s.state.error;)I(),(0,p.match)(r.TokenType.parenR)||(0,i.expect)(r.TokenType.comma);(0,p.eat)(r.TokenType.ellipsis)&&I(),(0,i.expect)(r.TokenType.parenR),u()}function S(e,t,n){let o;for(t&&(0,p.match)(r.TokenType.braceBarL)?((0,i.expect)(r.TokenType.braceBarL),o=r.TokenType.braceBarR):((0,i.expect)(r.TokenType.braceL),o=r.TokenType.braceR);!(0,p.match)(o)&&!s.state.error;){if(n&&(0,i.isContextual)(T.ContextualKeyword._proto)){const t=(0,p.lookaheadType)();t!==r.TokenType.colon&&t!==r.TokenType.question&&((0,p.next)(),e=!1)}if(e&&(0,i.isContextual)(T.ContextualKeyword._static)){const e=(0,p.lookaheadType)();e!==r.TokenType.colon&&e!==r.TokenType.question&&(0,p.next)()}if(M(),(0,p.eat)(r.TokenType.bracketL))(0,p.eat)(r.TokenType.bracketL)?(K(),(0,i.expect)(r.TokenType.bracketR),(0,i.expect)(r.TokenType.bracketR),(0,p.match)(r.TokenType.lessThan)||(0,p.match)(r.TokenType.parenL)?P():((0,p.eat)(r.TokenType.question),u())):((0,p.lookaheadType)()===r.TokenType.colon?(K(),u()):D(),(0,i.expect)(r.TokenType.bracketR),u());else if((0,p.match)(r.TokenType.parenL)||(0,p.match)(r.TokenType.lessThan))P();else{if((0,i.isContextual)(T.ContextualKeyword._get)||(0,i.isContextual)(T.ContextualKeyword._set)){const e=(0,p.lookaheadType)();e!==r.TokenType.name&&e!==r.TokenType.string&&e!==r.TokenType.num||(0,p.next)()}R()}A()}(0,i.expect)(o)}function R(){if((0,p.match)(r.TokenType.ellipsis)){if((0,i.expect)(r.TokenType.ellipsis),(0,p.eat)(r.TokenType.comma)||(0,p.eat)(r.TokenType.semi),(0,p.match)(r.TokenType.braceR))return;D()}else K(),(0,p.match)(r.TokenType.lessThan)||(0,p.match)(r.TokenType.parenL)?P():((0,p.eat)(r.TokenType.question),u())}function A(){(0,p.eat)(r.TokenType.semi)||(0,p.eat)(r.TokenType.comma)||(0,p.match)(r.TokenType.braceR)||(0,p.match)(r.TokenType.braceBarR)||(0,i.unexpected)()}function L(e){for(e||(0,c.parseIdentifier)();(0,p.eat)(r.TokenType.dot);)(0,c.parseIdentifier)()}function I(){const e=(0,p.lookaheadType)();e===r.TokenType.colon||e===r.TokenType.question?((0,c.parseIdentifier)(),(0,p.eat)(r.TokenType.question),u()):D()}function g(){for(;!(0,p.match)(r.TokenType.parenR)&&!(0,p.match)(r.TokenType.ellipsis)&&!s.state.error;)I(),(0,p.match)(r.TokenType.parenR)||(0,i.expect)(r.TokenType.comma);(0,p.eat)(r.TokenType.ellipsis)&&I()}function q(){let e=!1;const t=s.state.noAnonFunctionType;switch(s.state.type){case r.TokenType.name:return(0,i.isContextual)(T.ContextualKeyword._interface)?void function(){if((0,i.expectContextual)(T.ContextualKeyword._interface),(0,p.eat)(r.TokenType._extends))do{m()}while((0,p.eat)(r.TokenType.comma));S(!1,!1,!1)}():((0,c.parseIdentifier)(),L(!0),void((0,p.match)(r.TokenType.lessThan)&&b()));case r.TokenType.braceL:return void S(!1,!1,!1);case r.TokenType.braceBarL:return void S(!1,!0,!1);case r.TokenType.bracketL:return void function(){for((0,i.expect)(r.TokenType.bracketL);s.state.pos<s.input.length&&!(0,p.match)(r.TokenType.bracketR)&&(D(),!(0,p.match)(r.TokenType.bracketR));)(0,i.expect)(r.TokenType.comma);(0,i.expect)(r.TokenType.bracketR)}();case r.TokenType.lessThan:return _(),(0,i.expect)(r.TokenType.parenL),g(),(0,i.expect)(r.TokenType.parenR),(0,i.expect)(r.TokenType.arrow),void D();case r.TokenType.parenL:if((0,p.next)(),!(0,p.match)(r.TokenType.parenR)&&!(0,p.match)(r.TokenType.ellipsis))if((0,p.match)(r.TokenType.name)){const t=(0,p.lookaheadType)();e=t!==r.TokenType.question&&t!==r.TokenType.colon}else e=!0;if(e){if(s.state.noAnonFunctionType=!1,D(),s.state.noAnonFunctionType=t,s.state.noAnonFunctionType||!((0,p.match)(r.TokenType.comma)||(0,p.match)(r.TokenType.parenR)&&(0,p.lookaheadType)()===r.TokenType.arrow))return void(0,i.expect)(r.TokenType.parenR);(0,p.eat)(r.TokenType.comma)}return g(),(0,i.expect)(r.TokenType.parenR),(0,i.expect)(r.TokenType.arrow),void D();case r.TokenType.minus:return(0,p.next)(),void(0,c.parseLiteral)();case r.TokenType.string:case r.TokenType.num:case r.TokenType._true:case r.TokenType._false:case r.TokenType._null:case r.TokenType._this:case r.TokenType._void:case r.TokenType.star:return void(0,p.next)();default:if(s.state.type===r.TokenType._typeof)return(0,i.expect)(r.TokenType._typeof),void q();if(s.state.type&r.TokenType.IS_KEYWORD)return(0,p.next)(),void(s.state.tokens[s.state.tokens.length-1].type=r.TokenType.name)}(0,i.unexpected)()}function E(){(0,p.eat)(r.TokenType.question)?E():function(){for(q();!(0,i.canInsertSemicolon)()&&((0,p.match)(r.TokenType.bracketL)||(0,p.match)(r.TokenType.questionDot));)(0,p.eat)(r.TokenType.questionDot),(0,i.expect)(r.TokenType.bracketL),(0,p.eat)(r.TokenType.bracketR)||(D(),(0,i.expect)(r.TokenType.bracketR))}()}function F(){E(),!s.state.noAnonFunctionType&&(0,p.eat)(r.TokenType.arrow)&&D()}function v(){for((0,p.eat)(r.TokenType.bitwiseAND),F();(0,p.eat)(r.TokenType.bitwiseAND);)F()}function D(){!function(){for((0,p.eat)(r.TokenType.bitwiseOR),v();(0,p.eat)(r.TokenType.bitwiseOR);)v()}()}function B(){u()}function O(){(0,c.parseIdentifier)(),(0,p.match)(r.TokenType.colon)&&B()}function M(){((0,p.match)(r.TokenType.plus)||(0,p.match)(r.TokenType.minus))&&((0,p.next)(),s.state.tokens[s.state.tokens.length-1].isType=!0)}function W(){(0,i.expectContextual)(T.ContextualKeyword._enum),s.state.tokens[s.state.tokens.length-1].type=r.TokenType._enum,(0,c.parseIdentifier)(),function(){(0,i.eatContextual)(T.ContextualKeyword._of)&&(0,p.next)();(0,i.expect)(r.TokenType.braceL),function(){for(;!(0,p.match)(r.TokenType.braceR)&&!s.state.error&&!(0,p.eat)(r.TokenType.ellipsis);)Y(),(0,p.match)(r.TokenType.braceR)||(0,i.expect)(r.TokenType.comma)}(),(0,i.expect)(r.TokenType.braceR)}()}function Y(){(0,c.parseIdentifier)(),(0,p.eat)(r.TokenType.eq)&&(0,p.next)()}}\n//# sourceMappingURL=flow.min.js.map","min_map":"{\"version\":3,\"file\":\"flow.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"flowParseTypeParameterDeclaration\",\"flowParseTypeAnnotation\",\"flowParseVariance\",\"flowParseFunctionBodyAndFinish\",\"funcContextId\",\"index_1\",\"match\",\"types_1\",\"TokenType\",\"colon\",\"flowParseTypeAndPredicateInitialiser\",\"expression_1\",\"parseFunctionBody\",\"flowParseSubscript\",\"startTokenIndex\",\"noCalls\",\"stopState\",\"questionDot\",\"lookaheadType\",\"lessThan\",\"stop\",\"next\",\"flowParseTypeParameterInstantiation\",\"util_1\",\"expect\",\"parenL\",\"parseCallExpressionArguments\",\"snapshot\",\"base_1\",\"state\",\"error\",\"restoreFromSnapshot\",\"baseParseSubscript\",\"flowStartParseNewArguments\",\"flowTryParseStatement\",\"name\",\"contextualKeyword\",\"keywords_1\",\"ContextualKeyword\",\"_interface\",\"oldIsType\",\"pushTypeContext\",\"flowParseInterface\",\"popTypeContext\",\"isContextual\",\"_enum\",\"flowParseEnumDeclaration\",\"flowTryParseExportDefaultExpression\",\"flowParseIdentifierStatement\",\"_declare\",\"_class\",\"_function\",\"_var\",\"_export\",\"flowParseDeclare\",\"_type\",\"flowParseTypeAlias\",\"_opaque\",\"flowParseOpaqueType\",\"semicolon\",\"flowShouldParseExportDeclaration\",\"flowShouldDisallowExportDefaultSpecifier\",\"flowParseExportDeclaration\",\"braceL\",\"statement_1\",\"parseExportSpecifiers\",\"parseExportFrom\",\"parseStatement\",\"flowShouldParseExportStar\",\"star\",\"flowParseExportStar\",\"eatContextual\",\"baseParseExportStar\",\"flowAfterParseClassSuper\",\"hasSuper\",\"_implements\",\"tokens\",\"length\",\"type\",\"flowParseRestrictedIdentifier\",\"eat\",\"comma\",\"flowStartParseObjPropValue\",\"unexpected\",\"flowParseAssignableListItemTypes\",\"question\",\"flowStartParseImportSpecifiers\",\"_typeof\",\"lh\",\"lookaheadTypeAndKeyword\",\"lookahead\",\"IS_KEYWORD\",\"_from\",\"flowParseImportSpecifier\",\"isTypeKeyword\",\"parseIdentifier\",\"_as\",\"isLookaheadContextual\",\"flowStartParseFunctionParams\",\"flowAfterParseVarHead\",\"flowStartParseAsyncArrowFromCallExpression\",\"oldNoAnonFunctionType\",\"noAnonFunctionType\",\"flowParseMaybeAssign\",\"noIn\",\"isWithinParens\",\"wasArrow\",\"baseParseMaybeAssign\",\"typeParameterStart\",\"flowParseArrow\",\"canInsertSemicolon\",\"arrow\",\"flowParseSubscripts\",\"_async\",\"scopeDepth\",\"parseFunctionParams\",\"parseArrow\",\"parseArrowExpression\",\"parseAsyncArrowWithTypeParameters\",\"baseParseSubscripts\",\"flowParseTypeInitialiser\",\"tok\",\"flowParseType\",\"flowParsePredicate\",\"modulo\",\"expectContextual\",\"_checks\",\"parseExpression\",\"parenR\",\"flowParseInterfaceish\",\"flowParseFunctionTypeParams\",\"flowParseTypeAnnotatableIdentifier\",\"_module\",\"dot\",\"_exports\",\"string\",\"parseExprAtom\",\"braceR\",\"_import\",\"parseImport\",\"flowParseDeclareModule\",\"_default\",\"parseExport\",\"isClass\",\"_extends\",\"flowParseInterfaceExtends\",\"_mixins\",\"flowParseObjectType\",\"flowParseQualifiedTypeIdentifier\",\"eq\",\"declare\",\"greaterThan\",\"flowParseObjectPropertyKey\",\"num\",\"flowParseObjectTypeMethodish\",\"ellipsis\",\"flowParseFunctionTypeParam\",\"allowStatic\",\"allowExact\",\"allowProto\",\"endDelim\",\"braceBarL\",\"braceBarR\",\"_proto\",\"_static\",\"bracketL\",\"bracketR\",\"_get\",\"_set\",\"flowParseObjectTypeProperty\",\"flowObjectTypeSemicolon\",\"semi\",\"initialIdAlreadyParsed\",\"flowParsePrimaryType\",\"isGroupedType\",\"flowParseInterfaceType\",\"pos\",\"input\",\"flowParseTupleType\",\"token\",\"minus\",\"parseLiteral\",\"_true\",\"_false\",\"_null\",\"_this\",\"_void\",\"flowParsePrefixType\",\"flowParsePostfixType\",\"flowParseAnonFunctionWithoutParens\",\"flowParseIntersectionType\",\"bitwiseAND\",\"bitwiseOR\",\"flowParseUnionType\",\"plus\",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OC,QAAQjB,EAAQC,UAAUiI,OACzC,CATI8D,EACJ,CAoBA,SAASF,KACL,EAAI1L,EAAaoF,oBACb,EAAI1F,EAAQ2E,KAAKzE,EAAQC,UAAU6I,MAEnC,EAAIhJ,EAAQgB,OAEpB,CACJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/expression.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/traverser/expression.js","resolution":"ESM","id":"8178e7c3c8","hash":"8178e7c3c840e6925b5faf164ba76a9b6e094178a4516e8806a641aa9a63e270","source":"\"use strict\";\n/* eslint max-len: 0 */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.StopState = void 0;\nexports.parseExpression = parseExpression;\nexports.parseMaybeAssign = parseMaybeAssign;\nexports.baseParseMaybeAssign = baseParseMaybeAssign;\nexports.baseParseConditional = baseParseConditional;\nexports.parseMaybeUnary = parseMaybeUnary;\nexports.parseExprSubscripts = parseExprSubscripts;\nexports.baseParseSubscripts = baseParseSubscripts;\nexports.baseParseSubscript = baseParseSubscript;\nexports.atPossibleAsync = atPossibleAsync;\nexports.parseCallExpressionArguments = parseCallExpressionArguments;\nexports.parseExprAtom = parseExprAtom;\nexports.parseLiteral = parseLiteral;\nexports.parseParenExpression = parseParenExpression;\nexports.parseArrow = parseArrow;\nexports.parseTemplate = parseTemplate;\nexports.parseObj = parseObj;\nexports.parsePropertyName = parsePropertyName;\nexports.parseMethod = parseMethod;\nexports.parseArrowExpression = parseArrowExpression;\nexports.parseFunctionBodyAndFinish = parseFunctionBodyAndFinish;\nexports.parseFunctionBody = parseFunctionBody;\nexports.parseIdentifier = parseIdentifier;\n// A recursive descent parser operates by defining functions for all\n// syntactic elements, and recursively calling those, each function\n// advancing the input stream and returning an AST node. Precedence\n// of constructs (for example, the fact that `!x[1]` means `!(x[1])`\n// instead of `(!x)[1]` is handled by the fact that the parser\n// function that parses unary prefix operators is called first, and\n// in turn calls the function that parses `[]` subscripts — that\n// way, it'll receive the node for `x[1]` already parsed, and wraps\n// *that* in the unary operator node.\n//\n// Acorn uses an [operator precedence parser][opp] to handle binary\n// operator precedence, because it is much more compact than using\n// the technique outlined above, which uses different, nesting\n// functions to specify precedence, for all of the ten binary\n// precedence levels that JavaScript defines.\n//\n// [opp]: http://en.wikipedia.org/wiki/Operator-precedence_parser\nconst flow_1 = require(\"../plugins/flow\");\nconst index_1 = require(\"../plugins/jsx/index\");\nconst types_1 = require(\"../plugins/types\");\nconst typescript_1 = require(\"../plugins/typescript\");\nconst index_2 = require(\"../tokenizer/index\");\nconst keywords_1 = require(\"../tokenizer/keywords\");\nconst state_1 = require(\"../tokenizer/state\");\nconst types_2 = require(\"../tokenizer/types\");\nconst charcodes_1 = require(\"../util/charcodes\");\nconst identifier_1 = require(\"../util/identifier\");\nconst base_1 = require(\"./base\");\nconst lval_1 = require(\"./lval\");\nconst statement_1 = require(\"./statement\");\nconst util_1 = require(\"./util\");\nclass StopState {\n    constructor(stop) {\n        this.stop = stop;\n    }\n}\nexports.StopState = StopState;\n// ### Expression parsing\n// These nest, from the most general expression type at the top to\n// 'atomic', nondivisible expression types at the bottom. Most of\n// the functions will simply let the function (s) below them parse,\n// and, *if* the syntactic construct they handle is present, wrap\n// the AST node that the inner parser gave them in another node.\nfunction parseExpression(noIn = false) {\n    parseMaybeAssign(noIn);\n    if ((0, index_2.match)(types_2.TokenType.comma)) {\n        while ((0, index_2.eat)(types_2.TokenType.comma)) {\n            parseMaybeAssign(noIn);\n        }\n    }\n}\n/**\n * noIn is used when parsing a for loop so that we don't interpret a following \"in\" as the binary\n * operatior.\n * isWithinParens is used to indicate that we're parsing something that might be a comma expression\n * or might be an arrow function or might be a Flow type assertion (which requires explicit parens).\n * In these cases, we should allow : and ?: after the initial \"left\" part.\n */\nfunction parseMaybeAssign(noIn = false, isWithinParens = false) {\n    if (base_1.isTypeScriptEnabled) {\n        return (0, typescript_1.tsParseMaybeAssign)(noIn, isWithinParens);\n    }\n    else if (base_1.isFlowEnabled) {\n        return (0, flow_1.flowParseMaybeAssign)(noIn, isWithinParens);\n    }\n    else {\n        return baseParseMaybeAssign(noIn, isWithinParens);\n    }\n}\n// Parse an assignment expression. This includes applications of\n// operators like `+=`.\n// Returns true if the expression was an arrow function.\nfunction baseParseMaybeAssign(noIn, isWithinParens) {\n    if ((0, index_2.match)(types_2.TokenType._yield)) {\n        parseYield();\n        return false;\n    }\n    if ((0, index_2.match)(types_2.TokenType.parenL) || (0, index_2.match)(types_2.TokenType.name) || (0, index_2.match)(types_2.TokenType._yield)) {\n        base_1.state.potentialArrowAt = base_1.state.start;\n    }\n    const wasArrow = parseMaybeConditional(noIn);\n    if (isWithinParens) {\n        parseParenItem();\n    }\n    if (base_1.state.type & types_2.TokenType.IS_ASSIGN) {\n        (0, index_2.next)();\n        parseMaybeAssign(noIn);\n        return false;\n    }\n    return wasArrow;\n}\n// Parse a ternary conditional (`?:`) operator.\n// Returns true if the expression was an arrow function.\nfunction parseMaybeConditional(noIn) {\n    const wasArrow = parseExprOps(noIn);\n    if (wasArrow) {\n        return true;\n    }\n    parseConditional(noIn);\n    return false;\n}\nfunction parseConditional(noIn) {\n    if (base_1.isTypeScriptEnabled || base_1.isFlowEnabled) {\n        (0, types_1.typedParseConditional)(noIn);\n    }\n    else {\n        baseParseConditional(noIn);\n    }\n}\nfunction baseParseConditional(noIn) {\n    if ((0, index_2.eat)(types_2.TokenType.question)) {\n        parseMaybeAssign();\n        (0, util_1.expect)(types_2.TokenType.colon);\n        parseMaybeAssign(noIn);\n    }\n}\n// Start the precedence parser.\n// Returns true if this was an arrow function\nfunction parseExprOps(noIn) {\n    const startTokenIndex = base_1.state.tokens.length;\n    const wasArrow = parseMaybeUnary();\n    if (wasArrow) {\n        return true;\n    }\n    parseExprOp(startTokenIndex, -1, noIn);\n    return false;\n}\n// Parse binary operators with the operator precedence parsing\n// algorithm. `left` is the left-hand side of the operator.\n// `minPrec` provides context that allows the function to stop and\n// defer further parser to one of its callers when it encounters an\n// operator that has a lower precedence than the set it is parsing.\nfunction parseExprOp(startTokenIndex, minPrec, noIn) {\n    if (base_1.isTypeScriptEnabled &&\n        (types_2.TokenType._in & types_2.TokenType.PRECEDENCE_MASK) > minPrec &&\n        !(0, util_1.hasPrecedingLineBreak)() &&\n        ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._as) || (0, util_1.eatContextual)(keywords_1.ContextualKeyword._satisfies))) {\n        const oldIsType = (0, index_2.pushTypeContext)(1);\n        (0, typescript_1.tsParseType)();\n        (0, index_2.popTypeContext)(oldIsType);\n        (0, index_2.rescan_gt)();\n        parseExprOp(startTokenIndex, minPrec, noIn);\n        return;\n    }\n    const prec = base_1.state.type & types_2.TokenType.PRECEDENCE_MASK;\n    if (prec > 0 && (!noIn || !(0, index_2.match)(types_2.TokenType._in))) {\n        if (prec > minPrec) {\n            const op = base_1.state.type;\n            (0, index_2.next)();\n            if (op === types_2.TokenType.nullishCoalescing) {\n                base_1.state.tokens[base_1.state.tokens.length - 1].nullishStartIndex = startTokenIndex;\n            }\n            const rhsStartTokenIndex = base_1.state.tokens.length;\n            parseMaybeUnary();\n            // Extend the right operand of this operator if possible.\n            parseExprOp(rhsStartTokenIndex, op & types_2.TokenType.IS_RIGHT_ASSOCIATIVE ? prec - 1 : prec, noIn);\n            if (op === types_2.TokenType.nullishCoalescing) {\n                base_1.state.tokens[startTokenIndex].numNullishCoalesceStarts++;\n                base_1.state.tokens[base_1.state.tokens.length - 1].numNullishCoalesceEnds++;\n            }\n            // Continue with any future operator holding this expression as the left operand.\n            parseExprOp(startTokenIndex, minPrec, noIn);\n        }\n    }\n}\n// Parse unary operators, both prefix and postfix.\n// Returns true if this was an arrow function.\nfunction parseMaybeUnary() {\n    if (base_1.isTypeScriptEnabled && !base_1.isJSXEnabled && (0, index_2.eat)(types_2.TokenType.lessThan)) {\n        (0, typescript_1.tsParseTypeAssertion)();\n        return false;\n    }\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._module) &&\n        (0, index_2.lookaheadCharCode)() === charcodes_1.charCodes.leftCurlyBrace &&\n        !(0, util_1.hasFollowingLineBreak)()) {\n        parseModuleExpression();\n        return false;\n    }\n    if (base_1.state.type & types_2.TokenType.IS_PREFIX) {\n        (0, index_2.next)();\n        parseMaybeUnary();\n        return false;\n    }\n    const wasArrow = parseExprSubscripts();\n    if (wasArrow) {\n        return true;\n    }\n    while (base_1.state.type & types_2.TokenType.IS_POSTFIX && !(0, util_1.canInsertSemicolon)()) {\n        // The tokenizer calls everything a preincrement, so make it a postincrement when\n        // we see it in that context.\n        if (base_1.state.type === types_2.TokenType.preIncDec) {\n            base_1.state.type = types_2.TokenType.postIncDec;\n        }\n        (0, index_2.next)();\n    }\n    return false;\n}\n// Parse call, dot, and `[]`-subscript expressions.\n// Returns true if this was an arrow function.\nfunction parseExprSubscripts() {\n    const startTokenIndex = base_1.state.tokens.length;\n    const wasArrow = parseExprAtom();\n    if (wasArrow) {\n        return true;\n    }\n    parseSubscripts(startTokenIndex);\n    // If there was any optional chain operation, the start token would be marked\n    // as such, so also mark the end now.\n    if (base_1.state.tokens.length > startTokenIndex && base_1.state.tokens[startTokenIndex].isOptionalChainStart) {\n        base_1.state.tokens[base_1.state.tokens.length - 1].isOptionalChainEnd = true;\n    }\n    return false;\n}\nfunction parseSubscripts(startTokenIndex, noCalls = false) {\n    if (base_1.isFlowEnabled) {\n        (0, flow_1.flowParseSubscripts)(startTokenIndex, noCalls);\n    }\n    else {\n        baseParseSubscripts(startTokenIndex, noCalls);\n    }\n}\nfunction baseParseSubscripts(startTokenIndex, noCalls = false) {\n    const stopState = new StopState(false);\n    do {\n        parseSubscript(startTokenIndex, noCalls, stopState);\n    } while (!stopState.stop && !base_1.state.error);\n}\nfunction parseSubscript(startTokenIndex, noCalls, stopState) {\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsParseSubscript)(startTokenIndex, noCalls, stopState);\n    }\n    else if (base_1.isFlowEnabled) {\n        (0, flow_1.flowParseSubscript)(startTokenIndex, noCalls, stopState);\n    }\n    else {\n        baseParseSubscript(startTokenIndex, noCalls, stopState);\n    }\n}\n/** Set 'state.stop = true' to indicate that we should stop parsing subscripts. */\nfunction baseParseSubscript(startTokenIndex, noCalls, stopState) {\n    if (!noCalls && (0, index_2.eat)(types_2.TokenType.doubleColon)) {\n        parseNoCallExpr();\n        stopState.stop = true;\n        // Propagate startTokenIndex so that `a::b?.()` will keep `a` as the first token. We may want\n        // to revisit this in the future when fully supporting bind syntax.\n        parseSubscripts(startTokenIndex, noCalls);\n    }\n    else if ((0, index_2.match)(types_2.TokenType.questionDot)) {\n        base_1.state.tokens[startTokenIndex].isOptionalChainStart = true;\n        if (noCalls && (0, index_2.lookaheadType)() === types_2.TokenType.parenL) {\n            stopState.stop = true;\n            return;\n        }\n        (0, index_2.next)();\n        base_1.state.tokens[base_1.state.tokens.length - 1].subscriptStartIndex = startTokenIndex;\n        if ((0, index_2.eat)(types_2.TokenType.bracketL)) {\n            parseExpression();\n            (0, util_1.expect)(types_2.TokenType.bracketR);\n        }\n        else if ((0, index_2.eat)(types_2.TokenType.parenL)) {\n            parseCallExpressionArguments();\n        }\n        else {\n            parseMaybePrivateName();\n        }\n    }\n    else if ((0, index_2.eat)(types_2.TokenType.dot)) {\n        base_1.state.tokens[base_1.state.tokens.length - 1].subscriptStartIndex = startTokenIndex;\n        parseMaybePrivateName();\n    }\n    else if ((0, index_2.eat)(types_2.TokenType.bracketL)) {\n        base_1.state.tokens[base_1.state.tokens.length - 1].subscriptStartIndex = startTokenIndex;\n        parseExpression();\n        (0, util_1.expect)(types_2.TokenType.bracketR);\n    }\n    else if (!noCalls && (0, index_2.match)(types_2.TokenType.parenL)) {\n        if (atPossibleAsync()) {\n            // We see \"async\", but it's possible it's a usage of the name \"async\". Parse as if it's a\n            // function call, and if we see an arrow later, backtrack and re-parse as a parameter list.\n            const snapshot = base_1.state.snapshot();\n            const asyncStartTokenIndex = base_1.state.tokens.length;\n            (0, index_2.next)();\n            base_1.state.tokens[base_1.state.tokens.length - 1].subscriptStartIndex = startTokenIndex;\n            const callContextId = (0, base_1.getNextContextId)();\n            base_1.state.tokens[base_1.state.tokens.length - 1].contextId = callContextId;\n            parseCallExpressionArguments();\n            base_1.state.tokens[base_1.state.tokens.length - 1].contextId = callContextId;\n            if (shouldParseAsyncArrow()) {\n                // We hit an arrow, so backtrack and start again parsing function parameters.\n                base_1.state.restoreFromSnapshot(snapshot);\n                stopState.stop = true;\n                base_1.state.scopeDepth++;\n                (0, statement_1.parseFunctionParams)();\n                parseAsyncArrowFromCallExpression(asyncStartTokenIndex);\n            }\n        }\n        else {\n            (0, index_2.next)();\n            base_1.state.tokens[base_1.state.tokens.length - 1].subscriptStartIndex = startTokenIndex;\n            const callContextId = (0, base_1.getNextContextId)();\n            base_1.state.tokens[base_1.state.tokens.length - 1].contextId = callContextId;\n            parseCallExpressionArguments();\n            base_1.state.tokens[base_1.state.tokens.length - 1].contextId = callContextId;\n        }\n    }\n    else if ((0, index_2.match)(types_2.TokenType.backQuote)) {\n        // Tagged template expression.\n        parseTemplate();\n    }\n    else {\n        stopState.stop = true;\n    }\n}\nfunction atPossibleAsync() {\n    // This was made less strict than the original version to avoid passing around nodes, but it\n    // should be safe to have rare false positives here.\n    return (base_1.state.tokens[base_1.state.tokens.length - 1].contextualKeyword === keywords_1.ContextualKeyword._async &&\n        !(0, util_1.canInsertSemicolon)());\n}\nfunction parseCallExpressionArguments() {\n    let first = true;\n    while (!(0, index_2.eat)(types_2.TokenType.parenR) && !base_1.state.error) {\n        if (first) {\n            first = false;\n        }\n        else {\n            (0, util_1.expect)(types_2.TokenType.comma);\n            if ((0, index_2.eat)(types_2.TokenType.parenR)) {\n                break;\n            }\n        }\n        parseExprListItem(false);\n    }\n}\nfunction shouldParseAsyncArrow() {\n    return (0, index_2.match)(types_2.TokenType.colon) || (0, index_2.match)(types_2.TokenType.arrow);\n}\nfunction parseAsyncArrowFromCallExpression(startTokenIndex) {\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsStartParseAsyncArrowFromCallExpression)();\n    }\n    else if (base_1.isFlowEnabled) {\n        (0, flow_1.flowStartParseAsyncArrowFromCallExpression)();\n    }\n    (0, util_1.expect)(types_2.TokenType.arrow);\n    parseArrowExpression(startTokenIndex);\n}\n// Parse a no-call expression (like argument of `new` or `::` operators).\nfunction parseNoCallExpr() {\n    const startTokenIndex = base_1.state.tokens.length;\n    parseExprAtom();\n    parseSubscripts(startTokenIndex, true);\n}\n// Parse an atomic expression — either a single token that is an\n// expression, an expression started by a keyword like `function` or\n// `new`, or an expression wrapped in punctuation like `()`, `[]`,\n// or `{}`.\n// Returns true if the parsed expression was an arrow function.\nfunction parseExprAtom() {\n    if ((0, index_2.eat)(types_2.TokenType.modulo)) {\n        // V8 intrinsic expression. Just parse the identifier, and the function invocation is parsed\n        // naturally.\n        parseIdentifier();\n        return false;\n    }\n    if ((0, index_2.match)(types_2.TokenType.jsxText) || (0, index_2.match)(types_2.TokenType.jsxEmptyText)) {\n        parseLiteral();\n        return false;\n    }\n    else if ((0, index_2.match)(types_2.TokenType.lessThan) && base_1.isJSXEnabled) {\n        base_1.state.type = types_2.TokenType.jsxTagStart;\n        (0, index_1.jsxParseElement)();\n        (0, index_2.next)();\n        return false;\n    }\n    const canBeArrow = base_1.state.potentialArrowAt === base_1.state.start;\n    switch (base_1.state.type) {\n        case types_2.TokenType.slash:\n        case types_2.TokenType.assign:\n            (0, index_2.retokenizeSlashAsRegex)();\n        // Fall through.\n        case types_2.TokenType._super:\n        case types_2.TokenType._this:\n        case types_2.TokenType.regexp:\n        case types_2.TokenType.num:\n        case types_2.TokenType.bigint:\n        case types_2.TokenType.decimal:\n        case types_2.TokenType.string:\n        case types_2.TokenType._null:\n        case types_2.TokenType._true:\n        case types_2.TokenType._false:\n            (0, index_2.next)();\n            return false;\n        case types_2.TokenType._import:\n            (0, index_2.next)();\n            if ((0, index_2.match)(types_2.TokenType.dot)) {\n                // import.meta\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_2.TokenType.name;\n                (0, index_2.next)();\n                parseIdentifier();\n            }\n            return false;\n        case types_2.TokenType.name: {\n            const startTokenIndex = base_1.state.tokens.length;\n            const functionStart = base_1.state.start;\n            const contextualKeyword = base_1.state.contextualKeyword;\n            parseIdentifier();\n            if (contextualKeyword === keywords_1.ContextualKeyword._await) {\n                parseAwait();\n                return false;\n            }\n            else if (contextualKeyword === keywords_1.ContextualKeyword._async &&\n                (0, index_2.match)(types_2.TokenType._function) &&\n                !(0, util_1.canInsertSemicolon)()) {\n                (0, index_2.next)();\n                (0, statement_1.parseFunction)(functionStart, false);\n                return false;\n            }\n            else if (canBeArrow &&\n                contextualKeyword === keywords_1.ContextualKeyword._async &&\n                !(0, util_1.canInsertSemicolon)() &&\n                (0, index_2.match)(types_2.TokenType.name)) {\n                base_1.state.scopeDepth++;\n                (0, lval_1.parseBindingIdentifier)(false);\n                (0, util_1.expect)(types_2.TokenType.arrow);\n                // let foo = async bar => {};\n                parseArrowExpression(startTokenIndex);\n                return true;\n            }\n            else if ((0, index_2.match)(types_2.TokenType._do) && !(0, util_1.canInsertSemicolon)()) {\n                (0, index_2.next)();\n                (0, statement_1.parseBlock)();\n                return false;\n            }\n            if (canBeArrow && !(0, util_1.canInsertSemicolon)() && (0, index_2.match)(types_2.TokenType.arrow)) {\n                base_1.state.scopeDepth++;\n                (0, lval_1.markPriorBindingIdentifier)(false);\n                (0, util_1.expect)(types_2.TokenType.arrow);\n                parseArrowExpression(startTokenIndex);\n                return true;\n            }\n            base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_2.IdentifierRole.Access;\n            return false;\n        }\n        case types_2.TokenType._do: {\n            (0, index_2.next)();\n            (0, statement_1.parseBlock)();\n            return false;\n        }\n        case types_2.TokenType.parenL: {\n            const wasArrow = parseParenAndDistinguishExpression(canBeArrow);\n            return wasArrow;\n        }\n        case types_2.TokenType.bracketL:\n            (0, index_2.next)();\n            parseExprList(types_2.TokenType.bracketR, true);\n            return false;\n        case types_2.TokenType.braceL:\n            parseObj(false, false);\n            return false;\n        case types_2.TokenType._function:\n            parseFunctionExpression();\n            return false;\n        case types_2.TokenType.at:\n            (0, statement_1.parseDecorators)();\n        // Fall through.\n        case types_2.TokenType._class:\n            (0, statement_1.parseClass)(false);\n            return false;\n        case types_2.TokenType._new:\n            parseNew();\n            return false;\n        case types_2.TokenType.backQuote:\n            parseTemplate();\n            return false;\n        case types_2.TokenType.doubleColon: {\n            (0, index_2.next)();\n            parseNoCallExpr();\n            return false;\n        }\n        case types_2.TokenType.hash: {\n            const code = (0, index_2.lookaheadCharCode)();\n            if (identifier_1.IS_IDENTIFIER_START[code] || code === charcodes_1.charCodes.backslash) {\n                parseMaybePrivateName();\n            }\n            else {\n                (0, index_2.next)();\n            }\n            // Smart pipeline topic reference.\n            return false;\n        }\n        default:\n            (0, util_1.unexpected)();\n            return false;\n    }\n}\nfunction parseMaybePrivateName() {\n    (0, index_2.eat)(types_2.TokenType.hash);\n    parseIdentifier();\n}\nfunction parseFunctionExpression() {\n    const functionStart = base_1.state.start;\n    parseIdentifier();\n    if ((0, index_2.eat)(types_2.TokenType.dot)) {\n        // function.sent\n        parseIdentifier();\n    }\n    (0, statement_1.parseFunction)(functionStart, false);\n}\nfunction parseLiteral() {\n    (0, index_2.next)();\n}\nfunction parseParenExpression() {\n    (0, util_1.expect)(types_2.TokenType.parenL);\n    parseExpression();\n    (0, util_1.expect)(types_2.TokenType.parenR);\n}\n// Returns true if this was an arrow expression.\nfunction parseParenAndDistinguishExpression(canBeArrow) {\n    // Assume this is a normal parenthesized expression, but if we see an arrow, we'll bail and\n    // start over as a parameter list.\n    const snapshot = base_1.state.snapshot();\n    const startTokenIndex = base_1.state.tokens.length;\n    (0, util_1.expect)(types_2.TokenType.parenL);\n    let first = true;\n    while (!(0, index_2.match)(types_2.TokenType.parenR) && !base_1.state.error) {\n        if (first) {\n            first = false;\n        }\n        else {\n            (0, util_1.expect)(types_2.TokenType.comma);\n            if ((0, index_2.match)(types_2.TokenType.parenR)) {\n                break;\n            }\n        }\n        if ((0, index_2.match)(types_2.TokenType.ellipsis)) {\n            (0, lval_1.parseRest)(false /* isBlockScope */);\n            parseParenItem();\n            break;\n        }\n        else {\n            parseMaybeAssign(false, true);\n        }\n    }\n    (0, util_1.expect)(types_2.TokenType.parenR);\n    if (canBeArrow && shouldParseArrow()) {\n        const wasArrow = parseArrow();\n        if (wasArrow) {\n            // It was an arrow function this whole time, so start over and parse it as params so that we\n            // get proper token annotations.\n            base_1.state.restoreFromSnapshot(snapshot);\n            base_1.state.scopeDepth++;\n            // Don't specify a context ID because arrow functions don't need a context ID.\n            (0, statement_1.parseFunctionParams)();\n            parseArrow();\n            parseArrowExpression(startTokenIndex);\n            if (base_1.state.error) {\n                // Nevermind! This must have been something that looks very much like an\n                // arrow function but where its \"parameter list\" isn't actually a valid\n                // parameter list. Force non-arrow parsing.\n                // See https://github.com/alangpierce/sucrase/issues/666 for an example.\n                base_1.state.restoreFromSnapshot(snapshot);\n                parseParenAndDistinguishExpression(false);\n                return false;\n            }\n            return true;\n        }\n    }\n    return false;\n}\nfunction shouldParseArrow() {\n    return (0, index_2.match)(types_2.TokenType.colon) || !(0, util_1.canInsertSemicolon)();\n}\n// Returns whether there was an arrow token.\nfunction parseArrow() {\n    if (base_1.isTypeScriptEnabled) {\n        return (0, typescript_1.tsParseArrow)();\n    }\n    else if (base_1.isFlowEnabled) {\n        return (0, flow_1.flowParseArrow)();\n    }\n    else {\n        return (0, index_2.eat)(types_2.TokenType.arrow);\n    }\n}\nfunction parseParenItem() {\n    if (base_1.isTypeScriptEnabled || base_1.isFlowEnabled) {\n        (0, types_1.typedParseParenItem)();\n    }\n}\n// New's precedence is slightly tricky. It must allow its argument to\n// be a `[]` or dot subscript expression, but not a call — at least,\n// not without wrapping it in parentheses. Thus, it uses the noCalls\n// argument to parseSubscripts to prevent it from consuming the\n// argument list.\nfunction parseNew() {\n    (0, util_1.expect)(types_2.TokenType._new);\n    if ((0, index_2.eat)(types_2.TokenType.dot)) {\n        // new.target\n        parseIdentifier();\n        return;\n    }\n    parseNewCallee();\n    if (base_1.isFlowEnabled) {\n        (0, flow_1.flowStartParseNewArguments)();\n    }\n    if ((0, index_2.eat)(types_2.TokenType.parenL)) {\n        parseExprList(types_2.TokenType.parenR);\n    }\n}\nfunction parseNewCallee() {\n    parseNoCallExpr();\n    (0, index_2.eat)(types_2.TokenType.questionDot);\n}\nfunction parseTemplate() {\n    // Finish `, read quasi\n    (0, index_2.nextTemplateToken)();\n    // Finish quasi, read ${\n    (0, index_2.nextTemplateToken)();\n    while (!(0, index_2.match)(types_2.TokenType.backQuote) && !base_1.state.error) {\n        (0, util_1.expect)(types_2.TokenType.dollarBraceL);\n        parseExpression();\n        // Finish }, read quasi\n        (0, index_2.nextTemplateToken)();\n        // Finish quasi, read either ${ or `\n        (0, index_2.nextTemplateToken)();\n    }\n    (0, index_2.next)();\n}\n// Parse an object literal or binding pattern.\nfunction parseObj(isPattern, isBlockScope) {\n    // Attach a context ID to the object open and close brace and each object key.\n    const contextId = (0, base_1.getNextContextId)();\n    let first = true;\n    (0, index_2.next)();\n    base_1.state.tokens[base_1.state.tokens.length - 1].contextId = contextId;\n    while (!(0, index_2.eat)(types_2.TokenType.braceR) && !base_1.state.error) {\n        if (first) {\n            first = false;\n        }\n        else {\n            (0, util_1.expect)(types_2.TokenType.comma);\n            if ((0, index_2.eat)(types_2.TokenType.braceR)) {\n                break;\n            }\n        }\n        let isGenerator = false;\n        if ((0, index_2.match)(types_2.TokenType.ellipsis)) {\n            const previousIndex = base_1.state.tokens.length;\n            (0, lval_1.parseSpread)();\n            if (isPattern) {\n                // Mark role when the only thing being spread over is an identifier.\n                if (base_1.state.tokens.length === previousIndex + 2) {\n                    (0, lval_1.markPriorBindingIdentifier)(isBlockScope);\n                }\n                if ((0, index_2.eat)(types_2.TokenType.braceR)) {\n                    break;\n                }\n            }\n            continue;\n        }\n        if (!isPattern) {\n            isGenerator = (0, index_2.eat)(types_2.TokenType.star);\n        }\n        if (!isPattern && (0, util_1.isContextual)(keywords_1.ContextualKeyword._async)) {\n            if (isGenerator)\n                (0, util_1.unexpected)();\n            parseIdentifier();\n            if ((0, index_2.match)(types_2.TokenType.colon) ||\n                (0, index_2.match)(types_2.TokenType.parenL) ||\n                (0, index_2.match)(types_2.TokenType.braceR) ||\n                (0, index_2.match)(types_2.TokenType.eq) ||\n                (0, index_2.match)(types_2.TokenType.comma)) {\n                // This is a key called \"async\" rather than an async function.\n            }\n            else {\n                if ((0, index_2.match)(types_2.TokenType.star)) {\n                    (0, index_2.next)();\n                    isGenerator = true;\n                }\n                parsePropertyName(contextId);\n            }\n        }\n        else {\n            parsePropertyName(contextId);\n        }\n        parseObjPropValue(isPattern, isBlockScope, contextId);\n    }\n    base_1.state.tokens[base_1.state.tokens.length - 1].contextId = contextId;\n}\nfunction isGetterOrSetterMethod(isPattern) {\n    // We go off of the next and don't bother checking if the node key is actually \"get\" or \"set\".\n    // This lets us avoid generating a node, and should only make the validation worse.\n    return (!isPattern &&\n        ((0, index_2.match)(types_2.TokenType.string) || // get \"string\"() {}\n            (0, index_2.match)(types_2.TokenType.num) || // get 1() {}\n            (0, index_2.match)(types_2.TokenType.bracketL) || // get [\"string\"]() {}\n            (0, index_2.match)(types_2.TokenType.name) || // get foo() {}\n            !!(base_1.state.type & types_2.TokenType.IS_KEYWORD)) // get debugger() {}\n    );\n}\n// Returns true if this was a method.\nfunction parseObjectMethod(isPattern, objectContextId) {\n    // We don't need to worry about modifiers because object methods can't have optional bodies, so\n    // the start will never be used.\n    const functionStart = base_1.state.start;\n    if ((0, index_2.match)(types_2.TokenType.parenL)) {\n        if (isPattern)\n            (0, util_1.unexpected)();\n        parseMethod(functionStart, /* isConstructor */ false);\n        return true;\n    }\n    if (isGetterOrSetterMethod(isPattern)) {\n        parsePropertyName(objectContextId);\n        parseMethod(functionStart, /* isConstructor */ false);\n        return true;\n    }\n    return false;\n}\nfunction parseObjectProperty(isPattern, isBlockScope) {\n    if ((0, index_2.eat)(types_2.TokenType.colon)) {\n        if (isPattern) {\n            (0, lval_1.parseMaybeDefault)(isBlockScope);\n        }\n        else {\n            parseMaybeAssign(false);\n        }\n        return;\n    }\n    // Since there's no colon, we assume this is an object shorthand.\n    // If we're in a destructuring, we've now discovered that the key was actually an assignee, so\n    // we need to tag it as a declaration with the appropriate scope. Otherwise, we might need to\n    // transform it on access, so mark it as a normal object shorthand.\n    let identifierRole;\n    if (isPattern) {\n        if (base_1.state.scopeDepth === 0) {\n            identifierRole = index_2.IdentifierRole.ObjectShorthandTopLevelDeclaration;\n        }\n        else if (isBlockScope) {\n            identifierRole = index_2.IdentifierRole.ObjectShorthandBlockScopedDeclaration;\n        }\n        else {\n            identifierRole = index_2.IdentifierRole.ObjectShorthandFunctionScopedDeclaration;\n        }\n    }\n    else {\n        identifierRole = index_2.IdentifierRole.ObjectShorthand;\n    }\n    base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = identifierRole;\n    // Regardless of whether we know this to be a pattern or if we're in an ambiguous context, allow\n    // parsing as if there's a default value.\n    (0, lval_1.parseMaybeDefault)(isBlockScope, true);\n}\nfunction parseObjPropValue(isPattern, isBlockScope, objectContextId) {\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsStartParseObjPropValue)();\n    }\n    else if (base_1.isFlowEnabled) {\n        (0, flow_1.flowStartParseObjPropValue)();\n    }\n    const wasMethod = parseObjectMethod(isPattern, objectContextId);\n    if (!wasMethod) {\n        parseObjectProperty(isPattern, isBlockScope);\n    }\n}\nfunction parsePropertyName(objectContextId) {\n    if (base_1.isFlowEnabled) {\n        (0, flow_1.flowParseVariance)();\n    }\n    if ((0, index_2.eat)(types_2.TokenType.bracketL)) {\n        base_1.state.tokens[base_1.state.tokens.length - 1].contextId = objectContextId;\n        parseMaybeAssign();\n        (0, util_1.expect)(types_2.TokenType.bracketR);\n        base_1.state.tokens[base_1.state.tokens.length - 1].contextId = objectContextId;\n    }\n    else {\n        if ((0, index_2.match)(types_2.TokenType.num) || (0, index_2.match)(types_2.TokenType.string) || (0, index_2.match)(types_2.TokenType.bigint) || (0, index_2.match)(types_2.TokenType.decimal)) {\n            parseExprAtom();\n        }\n        else {\n            parseMaybePrivateName();\n        }\n        base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_2.IdentifierRole.ObjectKey;\n        base_1.state.tokens[base_1.state.tokens.length - 1].contextId = objectContextId;\n    }\n}\n// Parse object or class method.\nfunction parseMethod(functionStart, isConstructor) {\n    const funcContextId = (0, base_1.getNextContextId)();\n    base_1.state.scopeDepth++;\n    const startTokenIndex = base_1.state.tokens.length;\n    const allowModifiers = isConstructor; // For TypeScript parameter properties\n    (0, statement_1.parseFunctionParams)(allowModifiers, funcContextId);\n    parseFunctionBodyAndFinish(functionStart, funcContextId);\n    const endTokenIndex = base_1.state.tokens.length;\n    base_1.state.scopes.push(new state_1.Scope(startTokenIndex, endTokenIndex, true));\n    base_1.state.scopeDepth--;\n}\n// Parse arrow function expression.\n// If the parameters are provided, they will be converted to an\n// assignable list.\nfunction parseArrowExpression(startTokenIndex) {\n    parseFunctionBody(true);\n    const endTokenIndex = base_1.state.tokens.length;\n    base_1.state.scopes.push(new state_1.Scope(startTokenIndex, endTokenIndex, true));\n    base_1.state.scopeDepth--;\n}\nfunction parseFunctionBodyAndFinish(functionStart, funcContextId = 0) {\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsParseFunctionBodyAndFinish)(functionStart, funcContextId);\n    }\n    else if (base_1.isFlowEnabled) {\n        (0, flow_1.flowParseFunctionBodyAndFinish)(funcContextId);\n    }\n    else {\n        parseFunctionBody(false, funcContextId);\n    }\n}\nfunction parseFunctionBody(allowExpression, funcContextId = 0) {\n    const isExpression = allowExpression && !(0, index_2.match)(types_2.TokenType.braceL);\n    if (isExpression) {\n        parseMaybeAssign();\n    }\n    else {\n        (0, statement_1.parseBlock)(true /* isFunctionScope */, funcContextId);\n    }\n}\n// Parses a comma-separated list of expressions, and returns them as\n// an array. `close` is the token type that ends the list, and\n// `allowEmpty` can be turned on to allow subsequent commas with\n// nothing in between them to be parsed as `null` (which is needed\n// for array literals).\nfunction parseExprList(close, allowEmpty = false) {\n    let first = true;\n    while (!(0, index_2.eat)(close) && !base_1.state.error) {\n        if (first) {\n            first = false;\n        }\n        else {\n            (0, util_1.expect)(types_2.TokenType.comma);\n            if ((0, index_2.eat)(close))\n                break;\n        }\n        parseExprListItem(allowEmpty);\n    }\n}\nfunction parseExprListItem(allowEmpty) {\n    if (allowEmpty && (0, index_2.match)(types_2.TokenType.comma)) {\n        // Empty item; nothing more to parse for this item.\n    }\n    else if ((0, index_2.match)(types_2.TokenType.ellipsis)) {\n        (0, lval_1.parseSpread)();\n        parseParenItem();\n    }\n    else if ((0, index_2.match)(types_2.TokenType.question)) {\n        // Partial function application proposal.\n        (0, index_2.next)();\n    }\n    else {\n        parseMaybeAssign(false, true);\n    }\n}\n// Parse the next token as an identifier.\nfunction parseIdentifier() {\n    (0, index_2.next)();\n    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_2.TokenType.name;\n}\n// Parses await expression inside async function.\nfunction parseAwait() {\n    parseMaybeUnary();\n}\n// Parses yield expression inside generator.\nfunction parseYield() {\n    (0, index_2.next)();\n    if (!(0, index_2.match)(types_2.TokenType.semi) && !(0, util_1.canInsertSemicolon)()) {\n        (0, index_2.eat)(types_2.TokenType.star);\n        parseMaybeAssign();\n    }\n}\n// https://github.com/tc39/proposal-js-module-blocks\nfunction parseModuleExpression() {\n    (0, util_1.expectContextual)(keywords_1.ContextualKeyword._module);\n    (0, util_1.expect)(types_2.TokenType.braceL);\n    // For now, just call parseBlockBody to parse the block. In the future when we\n    // implement full support, we'll want to emit scopes and possibly other\n    // information.\n    (0, statement_1.parseBlockBody)(types_2.TokenType.braceR);\n}\n","type":"js","dependency_paths":[["../plugins/flow","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/flow.js"],["../plugins/jsx/index","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/jsx/index.js"],["../plugins/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/types.js"],["../plugins/typescript","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/typescript.js"],["../tokenizer/index","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["../tokenizer/keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"],["../tokenizer/state","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/state.js"],["../tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["../util/charcodes","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/charcodes.js"],["../util/identifier","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/identifier.js"],["./base","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/base.js"],["./lval","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/lval.js"],["./statement","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/statement.js"],["./util","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/util.js"]],"dependency_map":[],"exported":[{"type":"named","name":"StopState"},{"type":"named","name":"parseExpression"},{"type":"named","name":"parseMaybeAssign"},{"type":"named","name":"baseParseMaybeAssign"},{"type":"named","name":"baseParseConditional"},{"type":"named","name":"parseMaybeUnary"},{"type":"named","name":"parseExprSubscripts"},{"type":"named","name":"baseParseSubscripts"},{"type":"named","name":"baseParseSubscript"},{"type":"named","name":"atPossibleAsync"},{"type":"named","name":"parseCallExpressionArguments"},{"type":"named","name":"parseExprAtom"},{"type":"named","name":"parseLiteral"},{"type":"named","name":"parseParenExpression"},{"type":"named","name":"parseArrow"},{"type":"named","name":"parseTemplate"},{"type":"named","name":"parseObj"},{"type":"named","name":"parsePropertyName"},{"type":"named","name":"parseMethod"},{"type":"named","name":"parseArrowExpression"},{"type":"named","name":"parseFunctionBodyAndFinish"},{"type":"named","name":"parseFunctionBody"},{"type":"named","name":"parseIdentifier"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/traverser/expression.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.parseExpression = parseExpression;\n    exports.parseMaybeAssign = parseMaybeAssign;\n    exports.baseParseMaybeAssign = baseParseMaybeAssign;\n    exports.baseParseConditional = baseParseConditional;\n    exports.parseMaybeUnary = parseMaybeUnary;\n    exports.parseExprSubscripts = parseExprSubscripts;\n    exports.baseParseSubscripts = baseParseSubscripts;\n    exports.baseParseSubscript = baseParseSubscript;\n    exports.atPossibleAsync = atPossibleAsync;\n    exports.parseCallExpressionArguments = parseCallExpressionArguments;\n    exports.parseExprAtom = parseExprAtom;\n    exports.parseLiteral = parseLiteral;\n    exports.parseParenExpression = parseParenExpression;\n    exports.parseArrow = parseArrow;\n    exports.parseTemplate = parseTemplate;\n    exports.parseObj = parseObj;\n    exports.parsePropertyName = parsePropertyName;\n    exports.parseMethod = parseMethod;\n    exports.parseArrowExpression = parseArrowExpression;\n    exports.parseFunctionBodyAndFinish = parseFunctionBodyAndFinish;\n    exports.parseFunctionBody = parseFunctionBody;\n    exports.parseIdentifier = parseIdentifier;\n    // A recursive descent parser operates by defining functions for all\n    // syntactic elements, and recursively calling those, each function\n    // advancing the input stream and returning an AST node. Precedence\n    // of constructs (for example, the fact that `!x[1]` means `!(x[1])`\n    // instead of `(!x)[1]` is handled by the fact that the parser\n    // function that parses unary prefix operators is called first, and\n    // in turn calls the function that parses `[]` subscripts — that\n    // way, it'll receive the node for `x[1]` already parsed, and wraps\n    // *that* in the unary operator node.\n    //\n    // Acorn uses an [operator precedence parser][opp] to handle binary\n    // operator precedence, because it is much more compact than using\n    // the technique outlined above, which uses different, nesting\n    // functions to specify precedence, for all of the ten binary\n    // precedence levels that JavaScript defines.\n    //\n    // [opp]: http://en.wikipedia.org/wiki/Operator-precedence_parser\n    const flow_1 = require(\"9b8d43cd0a\") /* ../plugins/flow */;\n    const index_1 = require(\"d7708a7d24\") /* ../plugins/jsx/index */;\n    const types_1 = require(\"85c51351f6\") /* ../plugins/types */;\n    const typescript_1 = require(\"6a970c22b9\") /* ../plugins/typescript */;\n    const index_2 = require(\"bfb18d0576\") /* ../tokenizer/index */;\n    const keywords_1 = require(\"99ff836c64\") /* ../tokenizer/keywords */;\n    const state_1 = require(\"eda46439d5\") /* ../tokenizer/state */;\n    const types_2 = require(\"f0c35cbd76\") /* ../tokenizer/types */;\n    const charcodes_1 = require(\"22746c8ce8\") /* ../util/charcodes */;\n    const identifier_1 = require(\"364148c9f0\") /* ../util/identifier */;\n    const base_1 = require(\"540718e523\") /* ./base */;\n    const lval_1 = require(\"4cefc59e67\") /* ./lval */;\n    const statement_1 = require(\"e3b9989da1\") /* ./statement */;\n    const util_1 = require(\"bc94bbadc1\") /* ./util */;\n    class StopState {\n        constructor(stop) {\n            this.stop = stop;\n        }\n    }\n    exports.StopState = StopState;\n    // ### Expression parsing\n    // These nest, from the most general expression type at the top to\n    // 'atomic', nondivisible expression types at the bottom. Most of\n    // the functions will simply let the function (s) below them parse,\n    // and, *if* the syntactic construct they handle is present, wrap\n    // the AST node that the inner parser gave them in another node.\n    function parseExpression(noIn = false) {\n        parseMaybeAssign(noIn);\n        if ((0, index_2.match)(types_2.TokenType.comma)) {\n            while ((0, index_2.eat)(types_2.TokenType.comma)) {\n                parseMaybeAssign(noIn);\n            }\n        }\n    }\n    /**\n     * noIn is used when parsing a for loop so that we don't interpret a following \"in\" as the binary\n     * operatior.\n     * isWithinParens is used to indicate that we're parsing something that might be a comma expression\n     * or might be an arrow function or might be a Flow type assertion (which requires explicit parens).\n     * In these cases, we should allow : and ?: after the initial \"left\" part.\n     */\n    function parseMaybeAssign(noIn = false, isWithinParens = false) {\n        if (base_1.isTypeScriptEnabled) {\n            return (0, typescript_1.tsParseMaybeAssign)(noIn, isWithinParens);\n        }\n        else if (base_1.isFlowEnabled) {\n            return (0, flow_1.flowParseMaybeAssign)(noIn, isWithinParens);\n        }\n        else {\n            return baseParseMaybeAssign(noIn, isWithinParens);\n        }\n    }\n    // Parse an assignment expression. This includes applications of\n    // operators like `+=`.\n    // Returns true if the expression was an arrow function.\n    function baseParseMaybeAssign(noIn, isWithinParens) {\n        if ((0, index_2.match)(types_2.TokenType._yield)) {\n            parseYield();\n            return false;\n        }\n        if ((0, index_2.match)(types_2.TokenType.parenL) || (0, index_2.match)(types_2.TokenType.name) || (0, index_2.match)(types_2.TokenType._yield)) {\n            base_1.state.potentialArrowAt = base_1.state.start;\n        }\n        const wasArrow = parseMaybeConditional(noIn);\n        if (isWithinParens) {\n            parseParenItem();\n        }\n        if (base_1.state.type & types_2.TokenType.IS_ASSIGN) {\n            (0, index_2.next)();\n            parseMaybeAssign(noIn);\n            return false;\n        }\n        return wasArrow;\n    }\n    // Parse a ternary conditional (`?:`) operator.\n    // Returns true if the expression was an arrow function.\n    function parseMaybeConditional(noIn) {\n        const wasArrow = parseExprOps(noIn);\n        if (wasArrow) {\n            return true;\n        }\n        parseConditional(noIn);\n        return false;\n    }\n    function parseConditional(noIn) {\n        if (base_1.isTypeScriptEnabled || base_1.isFlowEnabled) {\n            (0, types_1.typedParseConditional)(noIn);\n        }\n        else {\n            baseParseConditional(noIn);\n        }\n    }\n    function baseParseConditional(noIn) {\n        if ((0, index_2.eat)(types_2.TokenType.question)) {\n            parseMaybeAssign();\n            (0, util_1.expect)(types_2.TokenType.colon);\n            parseMaybeAssign(noIn);\n        }\n    }\n    // Start the precedence parser.\n    // Returns true if this was an arrow function\n    function parseExprOps(noIn) {\n        const startTokenIndex = base_1.state.tokens.length;\n        const wasArrow = parseMaybeUnary();\n        if (wasArrow) {\n            return true;\n        }\n        parseExprOp(startTokenIndex, -1, noIn);\n        return false;\n    }\n    // Parse binary operators with the operator precedence parsing\n    // algorithm. `left` is the left-hand side of the operator.\n    // `minPrec` provides context that allows the function to stop and\n    // defer further parser to one of its callers when it encounters an\n    // operator that has a lower precedence than the set it is parsing.\n    function parseExprOp(startTokenIndex, minPrec, noIn) {\n        if (base_1.isTypeScriptEnabled &&\n            (types_2.TokenType._in & types_2.TokenType.PRECEDENCE_MASK) > minPrec &&\n            !(0, util_1.hasPrecedingLineBreak)() &&\n            ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._as) || (0, util_1.eatContextual)(keywords_1.ContextualKeyword._satisfies))) {\n            const oldIsType = (0, index_2.pushTypeContext)(1);\n            (0, typescript_1.tsParseType)();\n            (0, index_2.popTypeContext)(oldIsType);\n            (0, index_2.rescan_gt)();\n            parseExprOp(startTokenIndex, minPrec, noIn);\n            return;\n        }\n        const prec = base_1.state.type & types_2.TokenType.PRECEDENCE_MASK;\n        if (prec > 0 && (!noIn || !(0, index_2.match)(types_2.TokenType._in))) {\n            if (prec > minPrec) {\n                const op = base_1.state.type;\n                (0, index_2.next)();\n                if (op === types_2.TokenType.nullishCoalescing) {\n                    base_1.state.tokens[base_1.state.tokens.length - 1].nullishStartIndex = startTokenIndex;\n                }\n                const rhsStartTokenIndex = base_1.state.tokens.length;\n                parseMaybeUnary();\n                // Extend the right operand of this operator if possible.\n                parseExprOp(rhsStartTokenIndex, op & types_2.TokenType.IS_RIGHT_ASSOCIATIVE ? prec - 1 : prec, noIn);\n                if (op === types_2.TokenType.nullishCoalescing) {\n                    base_1.state.tokens[startTokenIndex].numNullishCoalesceStarts++;\n                    base_1.state.tokens[base_1.state.tokens.length - 1].numNullishCoalesceEnds++;\n                }\n                // Continue with any future operator holding this expression as the left operand.\n                parseExprOp(startTokenIndex, minPrec, noIn);\n            }\n        }\n    }\n    // Parse unary operators, both prefix and postfix.\n    // Returns true if this was an arrow function.\n    function parseMaybeUnary() {\n        if (base_1.isTypeScriptEnabled && !base_1.isJSXEnabled && (0, index_2.eat)(types_2.TokenType.lessThan)) {\n            (0, typescript_1.tsParseTypeAssertion)();\n            return false;\n        }\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._module) &&\n            (0, index_2.lookaheadCharCode)() === charcodes_1.charCodes.leftCurlyBrace &&\n            !(0, util_1.hasFollowingLineBreak)()) {\n            parseModuleExpression();\n            return false;\n        }\n        if (base_1.state.type & types_2.TokenType.IS_PREFIX) {\n            (0, index_2.next)();\n            parseMaybeUnary();\n            return false;\n        }\n        const wasArrow = parseExprSubscripts();\n        if (wasArrow) {\n            return true;\n        }\n        while (base_1.state.type & types_2.TokenType.IS_POSTFIX && !(0, util_1.canInsertSemicolon)()) {\n            // The tokenizer calls everything a preincrement, so make it a postincrement when\n            // we see it in that context.\n            if (base_1.state.type === types_2.TokenType.preIncDec) {\n                base_1.state.type = types_2.TokenType.postIncDec;\n            }\n            (0, index_2.next)();\n        }\n        return false;\n    }\n    // Parse call, dot, and `[]`-subscript expressions.\n    // Returns true if this was an arrow function.\n    function parseExprSubscripts() {\n        const startTokenIndex = base_1.state.tokens.length;\n        const wasArrow = parseExprAtom();\n        if (wasArrow) {\n            return true;\n        }\n        parseSubscripts(startTokenIndex);\n        // If there was any optional chain operation, the start token would be marked\n        // as such, so also mark the end now.\n        if (base_1.state.tokens.length > startTokenIndex && base_1.state.tokens[startTokenIndex].isOptionalChainStart) {\n            base_1.state.tokens[base_1.state.tokens.length - 1].isOptionalChainEnd = true;\n        }\n        return false;\n    }\n    function parseSubscripts(startTokenIndex, noCalls = false) {\n        if (base_1.isFlowEnabled) {\n            (0, flow_1.flowParseSubscripts)(startTokenIndex, noCalls);\n        }\n        else {\n            baseParseSubscripts(startTokenIndex, noCalls);\n        }\n    }\n    function baseParseSubscripts(startTokenIndex, noCalls = false) {\n        const stopState = new StopState(false);\n        do {\n            parseSubscript(startTokenIndex, noCalls, stopState);\n        } while (!stopState.stop && !base_1.state.error);\n    }\n    function parseSubscript(startTokenIndex, noCalls, stopState) {\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsParseSubscript)(startTokenIndex, noCalls, stopState);\n        }\n        else if (base_1.isFlowEnabled) {\n            (0, flow_1.flowParseSubscript)(startTokenIndex, noCalls, stopState);\n        }\n        else {\n            baseParseSubscript(startTokenIndex, noCalls, stopState);\n        }\n    }\n    /** Set 'state.stop = true' to indicate that we should stop parsing subscripts. */\n    function baseParseSubscript(startTokenIndex, noCalls, stopState) {\n        if (!noCalls && (0, index_2.eat)(types_2.TokenType.doubleColon)) {\n            parseNoCallExpr();\n            stopState.stop = true;\n            // Propagate startTokenIndex so that `a::b?.()` will keep `a` as the first token. We may want\n            // to revisit this in the future when fully supporting bind syntax.\n            parseSubscripts(startTokenIndex, noCalls);\n        }\n        else if ((0, index_2.match)(types_2.TokenType.questionDot)) {\n            base_1.state.tokens[startTokenIndex].isOptionalChainStart = true;\n            if (noCalls && (0, index_2.lookaheadType)() === types_2.TokenType.parenL) {\n                stopState.stop = true;\n                return;\n            }\n            (0, index_2.next)();\n            base_1.state.tokens[base_1.state.tokens.length - 1].subscriptStartIndex = startTokenIndex;\n            if ((0, index_2.eat)(types_2.TokenType.bracketL)) {\n                parseExpression();\n                (0, util_1.expect)(types_2.TokenType.bracketR);\n            }\n            else if ((0, index_2.eat)(types_2.TokenType.parenL)) {\n                parseCallExpressionArguments();\n            }\n            else {\n                parseMaybePrivateName();\n            }\n        }\n        else if ((0, index_2.eat)(types_2.TokenType.dot)) {\n            base_1.state.tokens[base_1.state.tokens.length - 1].subscriptStartIndex = startTokenIndex;\n            parseMaybePrivateName();\n        }\n        else if ((0, index_2.eat)(types_2.TokenType.bracketL)) {\n            base_1.state.tokens[base_1.state.tokens.length - 1].subscriptStartIndex = startTokenIndex;\n            parseExpression();\n            (0, util_1.expect)(types_2.TokenType.bracketR);\n        }\n        else if (!noCalls && (0, index_2.match)(types_2.TokenType.parenL)) {\n            if (atPossibleAsync()) {\n                // We see \"async\", but it's possible it's a usage of the name \"async\". Parse as if it's a\n                // function call, and if we see an arrow later, backtrack and re-parse as a parameter list.\n                const snapshot = base_1.state.snapshot();\n                const asyncStartTokenIndex = base_1.state.tokens.length;\n                (0, index_2.next)();\n                base_1.state.tokens[base_1.state.tokens.length - 1].subscriptStartIndex = startTokenIndex;\n                const callContextId = (0, base_1.getNextContextId)();\n                base_1.state.tokens[base_1.state.tokens.length - 1].contextId = callContextId;\n                parseCallExpressionArguments();\n                base_1.state.tokens[base_1.state.tokens.length - 1].contextId = callContextId;\n                if (shouldParseAsyncArrow()) {\n                    // We hit an arrow, so backtrack and start again parsing function parameters.\n                    base_1.state.restoreFromSnapshot(snapshot);\n                    stopState.stop = true;\n                    base_1.state.scopeDepth++;\n                    (0, statement_1.parseFunctionParams)();\n                    parseAsyncArrowFromCallExpression(asyncStartTokenIndex);\n                }\n            }\n            else {\n                (0, index_2.next)();\n                base_1.state.tokens[base_1.state.tokens.length - 1].subscriptStartIndex = startTokenIndex;\n                const callContextId = (0, base_1.getNextContextId)();\n                base_1.state.tokens[base_1.state.tokens.length - 1].contextId = callContextId;\n                parseCallExpressionArguments();\n                base_1.state.tokens[base_1.state.tokens.length - 1].contextId = callContextId;\n            }\n        }\n        else if ((0, index_2.match)(types_2.TokenType.backQuote)) {\n            // Tagged template expression.\n            parseTemplate();\n        }\n        else {\n            stopState.stop = true;\n        }\n    }\n    function atPossibleAsync() {\n        // This was made less strict than the original version to avoid passing around nodes, but it\n        // should be safe to have rare false positives here.\n        return (base_1.state.tokens[base_1.state.tokens.length - 1].contextualKeyword === keywords_1.ContextualKeyword._async &&\n            !(0, util_1.canInsertSemicolon)());\n    }\n    function parseCallExpressionArguments() {\n        let first = true;\n        while (!(0, index_2.eat)(types_2.TokenType.parenR) && !base_1.state.error) {\n            if (first) {\n                first = false;\n            }\n            else {\n                (0, util_1.expect)(types_2.TokenType.comma);\n                if ((0, index_2.eat)(types_2.TokenType.parenR)) {\n                    break;\n                }\n            }\n            parseExprListItem(false);\n        }\n    }\n    function shouldParseAsyncArrow() {\n        return (0, index_2.match)(types_2.TokenType.colon) || (0, index_2.match)(types_2.TokenType.arrow);\n    }\n    function parseAsyncArrowFromCallExpression(startTokenIndex) {\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsStartParseAsyncArrowFromCallExpression)();\n        }\n        else if (base_1.isFlowEnabled) {\n            (0, flow_1.flowStartParseAsyncArrowFromCallExpression)();\n        }\n        (0, util_1.expect)(types_2.TokenType.arrow);\n        parseArrowExpression(startTokenIndex);\n    }\n    // Parse a no-call expression (like argument of `new` or `::` operators).\n    function parseNoCallExpr() {\n        const startTokenIndex = base_1.state.tokens.length;\n        parseExprAtom();\n        parseSubscripts(startTokenIndex, true);\n    }\n    // Parse an atomic expression — either a single token that is an\n    // expression, an expression started by a keyword like `function` or\n    // `new`, or an expression wrapped in punctuation like `()`, `[]`,\n    // or `{}`.\n    // Returns true if the parsed expression was an arrow function.\n    function parseExprAtom() {\n        if ((0, index_2.eat)(types_2.TokenType.modulo)) {\n            // V8 intrinsic expression. Just parse the identifier, and the function invocation is parsed\n            // naturally.\n            parseIdentifier();\n            return false;\n        }\n        if ((0, index_2.match)(types_2.TokenType.jsxText) || (0, index_2.match)(types_2.TokenType.jsxEmptyText)) {\n            parseLiteral();\n            return false;\n        }\n        else if ((0, index_2.match)(types_2.TokenType.lessThan) && base_1.isJSXEnabled) {\n            base_1.state.type = types_2.TokenType.jsxTagStart;\n            (0, index_1.jsxParseElement)();\n            (0, index_2.next)();\n            return false;\n        }\n        const canBeArrow = base_1.state.potentialArrowAt === base_1.state.start;\n        switch (base_1.state.type) {\n            case types_2.TokenType.slash:\n            case types_2.TokenType.assign:\n                (0, index_2.retokenizeSlashAsRegex)();\n            // Fall through.\n            case types_2.TokenType._super:\n            case types_2.TokenType._this:\n            case types_2.TokenType.regexp:\n            case types_2.TokenType.num:\n            case types_2.TokenType.bigint:\n            case types_2.TokenType.decimal:\n            case types_2.TokenType.string:\n            case types_2.TokenType._null:\n            case types_2.TokenType._true:\n            case types_2.TokenType._false:\n                (0, index_2.next)();\n                return false;\n            case types_2.TokenType._import:\n                (0, index_2.next)();\n                if ((0, index_2.match)(types_2.TokenType.dot)) {\n                    // import.meta\n                    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_2.TokenType.name;\n                    (0, index_2.next)();\n                    parseIdentifier();\n                }\n                return false;\n            case types_2.TokenType.name: {\n                const startTokenIndex = base_1.state.tokens.length;\n                const functionStart = base_1.state.start;\n                const contextualKeyword = base_1.state.contextualKeyword;\n                parseIdentifier();\n                if (contextualKeyword === keywords_1.ContextualKeyword._await) {\n                    parseAwait();\n                    return false;\n                }\n                else if (contextualKeyword === keywords_1.ContextualKeyword._async &&\n                    (0, index_2.match)(types_2.TokenType._function) &&\n                    !(0, util_1.canInsertSemicolon)()) {\n                    (0, index_2.next)();\n                    (0, statement_1.parseFunction)(functionStart, false);\n                    return false;\n                }\n                else if (canBeArrow &&\n                    contextualKeyword === keywords_1.ContextualKeyword._async &&\n                    !(0, util_1.canInsertSemicolon)() &&\n                    (0, index_2.match)(types_2.TokenType.name)) {\n                    base_1.state.scopeDepth++;\n                    (0, lval_1.parseBindingIdentifier)(false);\n                    (0, util_1.expect)(types_2.TokenType.arrow);\n                    // let foo = async bar => {};\n                    parseArrowExpression(startTokenIndex);\n                    return true;\n                }\n                else if ((0, index_2.match)(types_2.TokenType._do) && !(0, util_1.canInsertSemicolon)()) {\n                    (0, index_2.next)();\n                    (0, statement_1.parseBlock)();\n                    return false;\n                }\n                if (canBeArrow && !(0, util_1.canInsertSemicolon)() && (0, index_2.match)(types_2.TokenType.arrow)) {\n                    base_1.state.scopeDepth++;\n                    (0, lval_1.markPriorBindingIdentifier)(false);\n                    (0, util_1.expect)(types_2.TokenType.arrow);\n                    parseArrowExpression(startTokenIndex);\n                    return true;\n                }\n                base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_2.IdentifierRole.Access;\n                return false;\n            }\n            case types_2.TokenType._do: {\n                (0, index_2.next)();\n                (0, statement_1.parseBlock)();\n                return false;\n            }\n            case types_2.TokenType.parenL: {\n                const wasArrow = parseParenAndDistinguishExpression(canBeArrow);\n                return wasArrow;\n            }\n            case types_2.TokenType.bracketL:\n                (0, index_2.next)();\n                parseExprList(types_2.TokenType.bracketR, true);\n                return false;\n            case types_2.TokenType.braceL:\n                parseObj(false, false);\n                return false;\n            case types_2.TokenType._function:\n                parseFunctionExpression();\n                return false;\n            case types_2.TokenType.at:\n                (0, statement_1.parseDecorators)();\n            // Fall through.\n            case types_2.TokenType._class:\n                (0, statement_1.parseClass)(false);\n                return false;\n            case types_2.TokenType._new:\n                parseNew();\n                return false;\n            case types_2.TokenType.backQuote:\n                parseTemplate();\n                return false;\n            case types_2.TokenType.doubleColon: {\n                (0, index_2.next)();\n                parseNoCallExpr();\n                return false;\n            }\n            case types_2.TokenType.hash: {\n                const code = (0, index_2.lookaheadCharCode)();\n                if (identifier_1.IS_IDENTIFIER_START[code] || code === charcodes_1.charCodes.backslash) {\n                    parseMaybePrivateName();\n                }\n                else {\n                    (0, index_2.next)();\n                }\n                // Smart pipeline topic reference.\n                return false;\n            }\n            default:\n                (0, util_1.unexpected)();\n                return false;\n        }\n    }\n    function parseMaybePrivateName() {\n        (0, index_2.eat)(types_2.TokenType.hash);\n        parseIdentifier();\n    }\n    function parseFunctionExpression() {\n        const functionStart = base_1.state.start;\n        parseIdentifier();\n        if ((0, index_2.eat)(types_2.TokenType.dot)) {\n            // function.sent\n            parseIdentifier();\n        }\n        (0, statement_1.parseFunction)(functionStart, false);\n    }\n    function parseLiteral() {\n        (0, index_2.next)();\n    }\n    function parseParenExpression() {\n        (0, util_1.expect)(types_2.TokenType.parenL);\n        parseExpression();\n        (0, util_1.expect)(types_2.TokenType.parenR);\n    }\n    // Returns true if this was an arrow expression.\n    function parseParenAndDistinguishExpression(canBeArrow) {\n        // Assume this is a normal parenthesized expression, but if we see an arrow, we'll bail and\n        // start over as a parameter list.\n        const snapshot = base_1.state.snapshot();\n        const startTokenIndex = base_1.state.tokens.length;\n        (0, util_1.expect)(types_2.TokenType.parenL);\n        let first = true;\n        while (!(0, index_2.match)(types_2.TokenType.parenR) && !base_1.state.error) {\n            if (first) {\n                first = false;\n            }\n            else {\n                (0, util_1.expect)(types_2.TokenType.comma);\n                if ((0, index_2.match)(types_2.TokenType.parenR)) {\n                    break;\n                }\n            }\n            if ((0, index_2.match)(types_2.TokenType.ellipsis)) {\n                (0, lval_1.parseRest)(false /* isBlockScope */);\n                parseParenItem();\n                break;\n            }\n            else {\n                parseMaybeAssign(false, true);\n            }\n        }\n        (0, util_1.expect)(types_2.TokenType.parenR);\n        if (canBeArrow && shouldParseArrow()) {\n            const wasArrow = parseArrow();\n            if (wasArrow) {\n                // It was an arrow function this whole time, so start over and parse it as params so that we\n                // get proper token annotations.\n                base_1.state.restoreFromSnapshot(snapshot);\n                base_1.state.scopeDepth++;\n                // Don't specify a context ID because arrow functions don't need a context ID.\n                (0, statement_1.parseFunctionParams)();\n                parseArrow();\n                parseArrowExpression(startTokenIndex);\n                if (base_1.state.error) {\n                    // Nevermind! This must have been something that looks very much like an\n                    // arrow function but where its \"parameter list\" isn't actually a valid\n                    // parameter list. Force non-arrow parsing.\n                    // See https://github.com/alangpierce/sucrase/issues/666 for an example.\n                    base_1.state.restoreFromSnapshot(snapshot);\n                    parseParenAndDistinguishExpression(false);\n                    return false;\n                }\n                return true;\n            }\n        }\n        return false;\n    }\n    function shouldParseArrow() {\n        return (0, index_2.match)(types_2.TokenType.colon) || !(0, util_1.canInsertSemicolon)();\n    }\n    // Returns whether there was an arrow token.\n    function parseArrow() {\n        if (base_1.isTypeScriptEnabled) {\n            return (0, typescript_1.tsParseArrow)();\n        }\n        else if (base_1.isFlowEnabled) {\n            return (0, flow_1.flowParseArrow)();\n        }\n        else {\n            return (0, index_2.eat)(types_2.TokenType.arrow);\n        }\n    }\n    function parseParenItem() {\n        if (base_1.isTypeScriptEnabled || base_1.isFlowEnabled) {\n            (0, types_1.typedParseParenItem)();\n        }\n    }\n    // New's precedence is slightly tricky. It must allow its argument to\n    // be a `[]` or dot subscript expression, but not a call — at least,\n    // not without wrapping it in parentheses. Thus, it uses the noCalls\n    // argument to parseSubscripts to prevent it from consuming the\n    // argument list.\n    function parseNew() {\n        (0, util_1.expect)(types_2.TokenType._new);\n        if ((0, index_2.eat)(types_2.TokenType.dot)) {\n            // new.target\n            parseIdentifier();\n            return;\n        }\n        parseNewCallee();\n        if (base_1.isFlowEnabled) {\n            (0, flow_1.flowStartParseNewArguments)();\n        }\n        if ((0, index_2.eat)(types_2.TokenType.parenL)) {\n            parseExprList(types_2.TokenType.parenR);\n        }\n    }\n    function parseNewCallee() {\n        parseNoCallExpr();\n        (0, index_2.eat)(types_2.TokenType.questionDot);\n    }\n    function parseTemplate() {\n        // Finish `, read quasi\n        (0, index_2.nextTemplateToken)();\n        // Finish quasi, read ${\n        (0, index_2.nextTemplateToken)();\n        while (!(0, index_2.match)(types_2.TokenType.backQuote) && !base_1.state.error) {\n            (0, util_1.expect)(types_2.TokenType.dollarBraceL);\n            parseExpression();\n            // Finish }, read quasi\n            (0, index_2.nextTemplateToken)();\n            // Finish quasi, read either ${ or `\n            (0, index_2.nextTemplateToken)();\n        }\n        (0, index_2.next)();\n    }\n    // Parse an object literal or binding pattern.\n    function parseObj(isPattern, isBlockScope) {\n        // Attach a context ID to the object open and close brace and each object key.\n        const contextId = (0, base_1.getNextContextId)();\n        let first = true;\n        (0, index_2.next)();\n        base_1.state.tokens[base_1.state.tokens.length - 1].contextId = contextId;\n        while (!(0, index_2.eat)(types_2.TokenType.braceR) && !base_1.state.error) {\n            if (first) {\n                first = false;\n            }\n            else {\n                (0, util_1.expect)(types_2.TokenType.comma);\n                if ((0, index_2.eat)(types_2.TokenType.braceR)) {\n                    break;\n                }\n            }\n            let isGenerator = false;\n            if ((0, index_2.match)(types_2.TokenType.ellipsis)) {\n                const previousIndex = base_1.state.tokens.length;\n                (0, lval_1.parseSpread)();\n                if (isPattern) {\n                    // Mark role when the only thing being spread over is an identifier.\n                    if (base_1.state.tokens.length === previousIndex + 2) {\n                        (0, lval_1.markPriorBindingIdentifier)(isBlockScope);\n                    }\n                    if ((0, index_2.eat)(types_2.TokenType.braceR)) {\n                        break;\n                    }\n                }\n                continue;\n            }\n            if (!isPattern) {\n                isGenerator = (0, index_2.eat)(types_2.TokenType.star);\n            }\n            if (!isPattern && (0, util_1.isContextual)(keywords_1.ContextualKeyword._async)) {\n                if (isGenerator)\n                    (0, util_1.unexpected)();\n                parseIdentifier();\n                if ((0, index_2.match)(types_2.TokenType.colon) ||\n                    (0, index_2.match)(types_2.TokenType.parenL) ||\n                    (0, index_2.match)(types_2.TokenType.braceR) ||\n                    (0, index_2.match)(types_2.TokenType.eq) ||\n                    (0, index_2.match)(types_2.TokenType.comma)) {\n                    // This is a key called \"async\" rather than an async function.\n                }\n                else {\n                    if ((0, index_2.match)(types_2.TokenType.star)) {\n                        (0, index_2.next)();\n                        isGenerator = true;\n                    }\n                    parsePropertyName(contextId);\n                }\n            }\n            else {\n                parsePropertyName(contextId);\n            }\n            parseObjPropValue(isPattern, isBlockScope, contextId);\n        }\n        base_1.state.tokens[base_1.state.tokens.length - 1].contextId = contextId;\n    }\n    function isGetterOrSetterMethod(isPattern) {\n        // We go off of the next and don't bother checking if the node key is actually \"get\" or \"set\".\n        // This lets us avoid generating a node, and should only make the validation worse.\n        return (!isPattern &&\n            ((0, index_2.match)(types_2.TokenType.string) || // get \"string\"() {}\n                (0, index_2.match)(types_2.TokenType.num) || // get 1() {}\n                (0, index_2.match)(types_2.TokenType.bracketL) || // get [\"string\"]() {}\n                (0, index_2.match)(types_2.TokenType.name) || // get foo() {}\n                !!(base_1.state.type & types_2.TokenType.IS_KEYWORD)) // get debugger() {}\n        );\n    }\n    // Returns true if this was a method.\n    function parseObjectMethod(isPattern, objectContextId) {\n        // We don't need to worry about modifiers because object methods can't have optional bodies, so\n        // the start will never be used.\n        const functionStart = base_1.state.start;\n        if ((0, index_2.match)(types_2.TokenType.parenL)) {\n            if (isPattern)\n                (0, util_1.unexpected)();\n            parseMethod(functionStart, /* isConstructor */ false);\n            return true;\n        }\n        if (isGetterOrSetterMethod(isPattern)) {\n            parsePropertyName(objectContextId);\n            parseMethod(functionStart, /* isConstructor */ false);\n            return true;\n        }\n        return false;\n    }\n    function parseObjectProperty(isPattern, isBlockScope) {\n        if ((0, index_2.eat)(types_2.TokenType.colon)) {\n            if (isPattern) {\n                (0, lval_1.parseMaybeDefault)(isBlockScope);\n            }\n            else {\n                parseMaybeAssign(false);\n            }\n            return;\n        }\n        // Since there's no colon, we assume this is an object shorthand.\n        // If we're in a destructuring, we've now discovered that the key was actually an assignee, so\n        // we need to tag it as a declaration with the appropriate scope. Otherwise, we might need to\n        // transform it on access, so mark it as a normal object shorthand.\n        let identifierRole;\n        if (isPattern) {\n            if (base_1.state.scopeDepth === 0) {\n                identifierRole = index_2.IdentifierRole.ObjectShorthandTopLevelDeclaration;\n            }\n            else if (isBlockScope) {\n                identifierRole = index_2.IdentifierRole.ObjectShorthandBlockScopedDeclaration;\n            }\n            else {\n                identifierRole = index_2.IdentifierRole.ObjectShorthandFunctionScopedDeclaration;\n            }\n        }\n        else {\n            identifierRole = index_2.IdentifierRole.ObjectShorthand;\n        }\n        base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = identifierRole;\n        // Regardless of whether we know this to be a pattern or if we're in an ambiguous context, allow\n        // parsing as if there's a default value.\n        (0, lval_1.parseMaybeDefault)(isBlockScope, true);\n    }\n    function parseObjPropValue(isPattern, isBlockScope, objectContextId) {\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsStartParseObjPropValue)();\n        }\n        else if (base_1.isFlowEnabled) {\n            (0, flow_1.flowStartParseObjPropValue)();\n        }\n        const wasMethod = parseObjectMethod(isPattern, objectContextId);\n        if (!wasMethod) {\n            parseObjectProperty(isPattern, isBlockScope);\n        }\n    }\n    function parsePropertyName(objectContextId) {\n        if (base_1.isFlowEnabled) {\n            (0, flow_1.flowParseVariance)();\n        }\n        if ((0, index_2.eat)(types_2.TokenType.bracketL)) {\n            base_1.state.tokens[base_1.state.tokens.length - 1].contextId = objectContextId;\n            parseMaybeAssign();\n            (0, util_1.expect)(types_2.TokenType.bracketR);\n            base_1.state.tokens[base_1.state.tokens.length - 1].contextId = objectContextId;\n        }\n        else {\n            if ((0, index_2.match)(types_2.TokenType.num) || (0, index_2.match)(types_2.TokenType.string) || (0, index_2.match)(types_2.TokenType.bigint) || (0, index_2.match)(types_2.TokenType.decimal)) {\n                parseExprAtom();\n            }\n            else {\n                parseMaybePrivateName();\n            }\n            base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_2.IdentifierRole.ObjectKey;\n            base_1.state.tokens[base_1.state.tokens.length - 1].contextId = objectContextId;\n        }\n    }\n    // Parse object or class method.\n    function parseMethod(functionStart, isConstructor) {\n        const funcContextId = (0, base_1.getNextContextId)();\n        base_1.state.scopeDepth++;\n        const startTokenIndex = base_1.state.tokens.length;\n        const allowModifiers = isConstructor; // For TypeScript parameter properties\n        (0, statement_1.parseFunctionParams)(allowModifiers, funcContextId);\n        parseFunctionBodyAndFinish(functionStart, funcContextId);\n        const endTokenIndex = base_1.state.tokens.length;\n        base_1.state.scopes.push(new state_1.Scope(startTokenIndex, endTokenIndex, true));\n        base_1.state.scopeDepth--;\n    }\n    // Parse arrow function expression.\n    // If the parameters are provided, they will be converted to an\n    // assignable list.\n    function parseArrowExpression(startTokenIndex) {\n        parseFunctionBody(true);\n        const endTokenIndex = base_1.state.tokens.length;\n        base_1.state.scopes.push(new state_1.Scope(startTokenIndex, endTokenIndex, true));\n        base_1.state.scopeDepth--;\n    }\n    function parseFunctionBodyAndFinish(functionStart, funcContextId = 0) {\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsParseFunctionBodyAndFinish)(functionStart, funcContextId);\n        }\n        else if (base_1.isFlowEnabled) {\n            (0, flow_1.flowParseFunctionBodyAndFinish)(funcContextId);\n        }\n        else {\n            parseFunctionBody(false, funcContextId);\n        }\n    }\n    function parseFunctionBody(allowExpression, funcContextId = 0) {\n        const isExpression = allowExpression && !(0, index_2.match)(types_2.TokenType.braceL);\n        if (isExpression) {\n            parseMaybeAssign();\n        }\n        else {\n            (0, statement_1.parseBlock)(true /* isFunctionScope */, funcContextId);\n        }\n    }\n    // Parses a comma-separated list of expressions, and returns them as\n    // an array. `close` is the token type that ends the list, and\n    // `allowEmpty` can be turned on to allow subsequent commas with\n    // nothing in between them to be parsed as `null` (which is needed\n    // for array literals).\n    function parseExprList(close, allowEmpty = false) {\n        let first = true;\n        while (!(0, index_2.eat)(close) && !base_1.state.error) {\n            if (first) {\n                first = false;\n            }\n            else {\n                (0, util_1.expect)(types_2.TokenType.comma);\n                if ((0, index_2.eat)(close))\n                    break;\n            }\n            parseExprListItem(allowEmpty);\n        }\n    }\n    function parseExprListItem(allowEmpty) {\n        if (allowEmpty && (0, index_2.match)(types_2.TokenType.comma)) {\n            // Empty item; nothing more to parse for this item.\n        }\n        else if ((0, index_2.match)(types_2.TokenType.ellipsis)) {\n            (0, lval_1.parseSpread)();\n            parseParenItem();\n        }\n        else if ((0, index_2.match)(types_2.TokenType.question)) {\n            // Partial function application proposal.\n            (0, index_2.next)();\n        }\n        else {\n            parseMaybeAssign(false, true);\n        }\n    }\n    // Parse the next token as an identifier.\n    function parseIdentifier() {\n        (0, index_2.next)();\n        base_1.state.tokens[base_1.state.tokens.length - 1].type = types_2.TokenType.name;\n    }\n    // Parses await expression inside async function.\n    function parseAwait() {\n        parseMaybeUnary();\n    }\n    // Parses yield expression inside generator.\n    function parseYield() {\n        (0, index_2.next)();\n        if (!(0, index_2.match)(types_2.TokenType.semi) && !(0, util_1.canInsertSemicolon)()) {\n            (0, index_2.eat)(types_2.TokenType.star);\n            parseMaybeAssign();\n        }\n    }\n    // https://github.com/tc39/proposal-js-module-blocks\n    function parseModuleExpression() {\n        (0, util_1.expectContextual)(keywords_1.ContextualKeyword._module);\n        (0, util_1.expect)(types_2.TokenType.braceL);\n        // For now, just call parseBlockBody to parse the block. In the future when we\n        // implement full support, we'll want to emit scopes and possibly other\n        // information.\n        (0, statement_1.parseBlockBody)(types_2.TokenType.braceR);\n    }\n}\n","min_source":"function _(e,t,n,o,a){o(),n.parseExpression=b,n.parseMaybeAssign=S,n.baseParseMaybeAssign=g,n.baseParseConditional=w,n.parseMaybeUnary=E,n.parseExprSubscripts=C,n.baseParseSubscripts=_,n.baseParseSubscript=F,n.atPossibleAsync=A,n.parseCallExpressionArguments=L,n.parseExprAtom=B,n.parseLiteral=O,n.parseParenExpression=function(){(0,m.expect)(l.TokenType.parenL),b(),(0,m.expect)(l.TokenType.parenR)},n.parseArrow=N,n.parseTemplate=v,n.parseObj=q,n.parsePropertyName=Q,n.parseMethod=G,n.parseArrowExpression=J,n.parseFunctionBodyAndFinish=z,n.parseFunctionBody=H,n.parseIdentifier=Y;const s=e(\"9b8d43cd0a\"),r=e(\"d7708a7d24\"),c=e(\"85c51351f6\"),p=e(\"6a970c22b9\"),T=e(\"bfb18d0576\"),i=e(\"99ff836c64\"),k=e(\"eda46439d5\"),l=e(\"f0c35cbd76\"),y=e(\"22746c8ce8\"),u=e(\"364148c9f0\"),h=e(\"540718e523\"),d=e(\"4cefc59e67\"),f=e(\"e3b9989da1\"),m=e(\"bc94bbadc1\");class x{constructor(e){this.stop=e}}function b(e=!1){if(S(e),(0,T.match)(l.TokenType.comma))for(;(0,T.eat)(l.TokenType.comma);)S(e)}function S(e=!1,t=!1){return h.isTypeScriptEnabled?(0,p.tsParseMaybeAssign)(e,t):h.isFlowEnabled?(0,s.flowParseMaybeAssign)(e,t):g(e,t)}function g(e,t){if((0,T.match)(l.TokenType._yield))return(0,T.next)(),(0,T.match)(l.TokenType.semi)||(0,m.canInsertSemicolon)()||((0,T.eat)(l.TokenType.star),S()),!1;((0,T.match)(l.TokenType.parenL)||(0,T.match)(l.TokenType.name)||(0,T.match)(l.TokenType._yield))&&(h.state.potentialArrowAt=h.state.start);const n=function(e){const t=function(e){const t=h.state.tokens.length,n=E();if(n)return!0;return I(t,-1,e),!1}(e);if(t)return!0;return function(e){h.isTypeScriptEnabled||h.isFlowEnabled?(0,c.typedParseConditional)(e):w(e)}(e),!1}(e);return t&&M(),h.state.type&l.TokenType.IS_ASSIGN?((0,T.next)(),S(e),!1):n}function w(e){(0,T.eat)(l.TokenType.question)&&(S(),(0,m.expect)(l.TokenType.colon),S(e))}function I(e,t,n){if(h.isTypeScriptEnabled&&(l.TokenType._in&l.TokenType.PRECEDENCE_MASK)>t&&!(0,m.hasPrecedingLineBreak)()&&((0,m.eatContextual)(i.ContextualKeyword._as)||(0,m.eatContextual)(i.ContextualKeyword._satisfies))){const o=(0,T.pushTypeContext)(1);return(0,p.tsParseType)(),(0,T.popTypeContext)(o),(0,T.rescan_gt)(),void I(e,t,n)}const o=h.state.type&l.TokenType.PRECEDENCE_MASK;if(o>0&&(!n||!(0,T.match)(l.TokenType._in))&&o>t){const a=h.state.type;(0,T.next)(),a===l.TokenType.nullishCoalescing&&(h.state.tokens[h.state.tokens.length-1].nullishStartIndex=e);const s=h.state.tokens.length;E(),I(s,a&l.TokenType.IS_RIGHT_ASSOCIATIVE?o-1:o,n),a===l.TokenType.nullishCoalescing&&(h.state.tokens[e].numNullishCoalesceStarts++,h.state.tokens[h.state.tokens.length-1].numNullishCoalesceEnds++),I(e,t,n)}}function E(){if(h.isTypeScriptEnabled&&!h.isJSXEnabled&&(0,T.eat)(l.TokenType.lessThan))return(0,p.tsParseTypeAssertion)(),!1;if((0,m.isContextual)(i.ContextualKeyword._module)&&(0,T.lookaheadCharCode)()===y.charCodes.leftCurlyBrace&&!(0,m.hasFollowingLineBreak)())return(0,m.expectContextual)(i.ContextualKeyword._module),(0,m.expect)(l.TokenType.braceL),(0,f.parseBlockBody)(l.TokenType.braceR),!1;if(h.state.type&l.TokenType.IS_PREFIX)return(0,T.next)(),E(),!1;if(C())return!0;for(;h.state.type&l.TokenType.IS_POSTFIX&&!(0,m.canInsertSemicolon)();)h.state.type===l.TokenType.preIncDec&&(h.state.type=l.TokenType.postIncDec),(0,T.next)();return!1}function C(){const e=h.state.tokens.length;return!!B()||(P(e),h.state.tokens.length>e&&h.state.tokens[e].isOptionalChainStart&&(h.state.tokens[h.state.tokens.length-1].isOptionalChainEnd=!0),!1)}function P(e,t=!1){h.isFlowEnabled?(0,s.flowParseSubscripts)(e,t):_(e,t)}function _(e,t=!1){const n=new x(!1);do{R(e,t,n)}while(!n.stop&&!h.state.error)}function R(e,t,n){h.isTypeScriptEnabled?(0,p.tsParseSubscript)(e,t,n):h.isFlowEnabled?(0,s.flowParseSubscript)(e,t,n):F(e,t,n)}function F(e,t,n){if(!t&&(0,T.eat)(l.TokenType.doubleColon))D(),n.stop=!0,P(e,t);else if((0,T.match)(l.TokenType.questionDot)){if(h.state.tokens[e].isOptionalChainStart=!0,t&&(0,T.lookaheadType)()===l.TokenType.parenL)return void(n.stop=!0);(0,T.next)(),h.state.tokens[h.state.tokens.length-1].subscriptStartIndex=e,(0,T.eat)(l.TokenType.bracketL)?(b(),(0,m.expect)(l.TokenType.bracketR)):(0,T.eat)(l.TokenType.parenL)?L():K()}else if((0,T.eat)(l.TokenType.dot))h.state.tokens[h.state.tokens.length-1].subscriptStartIndex=e,K();else if((0,T.eat)(l.TokenType.bracketL))h.state.tokens[h.state.tokens.length-1].subscriptStartIndex=e,b(),(0,m.expect)(l.TokenType.bracketR);else if(!t&&(0,T.match)(l.TokenType.parenL))if(A()){const t=h.state.snapshot(),o=h.state.tokens.length;(0,T.next)(),h.state.tokens[h.state.tokens.length-1].subscriptStartIndex=e;const a=(0,h.getNextContextId)();h.state.tokens[h.state.tokens.length-1].contextId=a,L(),h.state.tokens[h.state.tokens.length-1].contextId=a,((0,T.match)(l.TokenType.colon)||(0,T.match)(l.TokenType.arrow))&&(h.state.restoreFromSnapshot(t),n.stop=!0,h.state.scopeDepth++,(0,f.parseFunctionParams)(),function(e){h.isTypeScriptEnabled?(0,p.tsStartParseAsyncArrowFromCallExpression)():h.isFlowEnabled&&(0,s.flowStartParseAsyncArrowFromCallExpression)();(0,m.expect)(l.TokenType.arrow),J(e)}(o))}else{(0,T.next)(),h.state.tokens[h.state.tokens.length-1].subscriptStartIndex=e;const t=(0,h.getNextContextId)();h.state.tokens[h.state.tokens.length-1].contextId=t,L(),h.state.tokens[h.state.tokens.length-1].contextId=t}else(0,T.match)(l.TokenType.backQuote)?v():n.stop=!0}function A(){return h.state.tokens[h.state.tokens.length-1].contextualKeyword===i.ContextualKeyword._async&&!(0,m.canInsertSemicolon)()}function L(){let e=!0;for(;!(0,T.eat)(l.TokenType.parenR)&&!h.state.error;){if(e)e=!1;else if((0,m.expect)(l.TokenType.comma),(0,T.eat)(l.TokenType.parenR))break;W(!1)}}function D(){const e=h.state.tokens.length;B(),P(e,!0)}function B(){if((0,T.eat)(l.TokenType.modulo))return Y(),!1;if((0,T.match)(l.TokenType.jsxText)||(0,T.match)(l.TokenType.jsxEmptyText))return O(),!1;if((0,T.match)(l.TokenType.lessThan)&&h.isJSXEnabled)return h.state.type=l.TokenType.jsxTagStart,(0,r.jsxParseElement)(),(0,T.next)(),!1;const e=h.state.potentialArrowAt===h.state.start;switch(h.state.type){case l.TokenType.slash:case l.TokenType.assign:(0,T.retokenizeSlashAsRegex)();case l.TokenType._super:case l.TokenType._this:case l.TokenType.regexp:case l.TokenType.num:case l.TokenType.bigint:case l.TokenType.decimal:case l.TokenType.string:case l.TokenType._null:case l.TokenType._true:case l.TokenType._false:return(0,T.next)(),!1;case l.TokenType._import:return(0,T.next)(),(0,T.match)(l.TokenType.dot)&&(h.state.tokens[h.state.tokens.length-1].type=l.TokenType.name,(0,T.next)(),Y()),!1;case l.TokenType.name:{const t=h.state.tokens.length,n=h.state.start,o=h.state.contextualKeyword;return Y(),o===i.ContextualKeyword._await?(E(),!1):o===i.ContextualKeyword._async&&(0,T.match)(l.TokenType._function)&&!(0,m.canInsertSemicolon)()?((0,T.next)(),(0,f.parseFunction)(n,!1),!1):e&&o===i.ContextualKeyword._async&&!(0,m.canInsertSemicolon)()&&(0,T.match)(l.TokenType.name)?(h.state.scopeDepth++,(0,d.parseBindingIdentifier)(!1),(0,m.expect)(l.TokenType.arrow),J(t),!0):(0,T.match)(l.TokenType._do)&&!(0,m.canInsertSemicolon)()?((0,T.next)(),(0,f.parseBlock)(),!1):e&&!(0,m.canInsertSemicolon)()&&(0,T.match)(l.TokenType.arrow)?(h.state.scopeDepth++,(0,d.markPriorBindingIdentifier)(!1),(0,m.expect)(l.TokenType.arrow),J(t),!0):(h.state.tokens[h.state.tokens.length-1].identifierRole=T.IdentifierRole.Access,!1)}case l.TokenType._do:return(0,T.next)(),(0,f.parseBlock)(),!1;case l.TokenType.parenL:return j(e);case l.TokenType.bracketL:return(0,T.next)(),U(l.TokenType.bracketR,!0),!1;case l.TokenType.braceL:return q(!1,!1),!1;case l.TokenType._function:return function(){const e=h.state.start;Y(),(0,T.eat)(l.TokenType.dot)&&Y();(0,f.parseFunction)(e,!1)}(),!1;case l.TokenType.at:(0,f.parseDecorators)();case l.TokenType._class:return(0,f.parseClass)(!1),!1;case l.TokenType._new:return function(){if((0,m.expect)(l.TokenType._new),(0,T.eat)(l.TokenType.dot))return void Y();D(),void(0,T.eat)(l.TokenType.questionDot),h.isFlowEnabled&&(0,s.flowStartParseNewArguments)();(0,T.eat)(l.TokenType.parenL)&&U(l.TokenType.parenR)}(),!1;case l.TokenType.backQuote:return v(),!1;case l.TokenType.doubleColon:return(0,T.next)(),D(),!1;case l.TokenType.hash:{const e=(0,T.lookaheadCharCode)();return u.IS_IDENTIFIER_START[e]||e===y.charCodes.backslash?K():(0,T.next)(),!1}default:return(0,m.unexpected)(),!1}}function K(){(0,T.eat)(l.TokenType.hash),Y()}function O(){(0,T.next)()}function j(e){const t=h.state.snapshot(),n=h.state.tokens.length;(0,m.expect)(l.TokenType.parenL);let o=!0;for(;!(0,T.match)(l.TokenType.parenR)&&!h.state.error;){if(o)o=!1;else if((0,m.expect)(l.TokenType.comma),(0,T.match)(l.TokenType.parenR))break;if((0,T.match)(l.TokenType.ellipsis)){(0,d.parseRest)(!1),M();break}S(!1,!0)}if((0,m.expect)(l.TokenType.parenR),e&&((0,T.match)(l.TokenType.colon)||!(0,m.canInsertSemicolon)())){if(N())return h.state.restoreFromSnapshot(t),h.state.scopeDepth++,(0,f.parseFunctionParams)(),N(),J(n),!h.state.error||(h.state.restoreFromSnapshot(t),j(!1),!1)}return!1}function N(){return h.isTypeScriptEnabled?(0,p.tsParseArrow)():h.isFlowEnabled?(0,s.flowParseArrow)():(0,T.eat)(l.TokenType.arrow)}function M(){(h.isTypeScriptEnabled||h.isFlowEnabled)&&(0,c.typedParseParenItem)()}function v(){for((0,T.nextTemplateToken)(),(0,T.nextTemplateToken)();!(0,T.match)(l.TokenType.backQuote)&&!h.state.error;)(0,m.expect)(l.TokenType.dollarBraceL),b(),(0,T.nextTemplateToken)(),(0,T.nextTemplateToken)();(0,T.next)()}function q(e,t){const n=(0,h.getNextContextId)();let o=!0;for((0,T.next)(),h.state.tokens[h.state.tokens.length-1].contextId=n;!(0,T.eat)(l.TokenType.braceR)&&!h.state.error;){if(o)o=!1;else if((0,m.expect)(l.TokenType.comma),(0,T.eat)(l.TokenType.braceR))break;let a=!1;if((0,T.match)(l.TokenType.ellipsis)){const n=h.state.tokens.length;if((0,d.parseSpread)(),e&&(h.state.tokens.length===n+2&&(0,d.markPriorBindingIdentifier)(t),(0,T.eat)(l.TokenType.braceR)))break}else e||(a=(0,T.eat)(l.TokenType.star)),!e&&(0,m.isContextual)(i.ContextualKeyword._async)?(a&&(0,m.unexpected)(),Y(),(0,T.match)(l.TokenType.colon)||(0,T.match)(l.TokenType.parenL)||(0,T.match)(l.TokenType.braceR)||(0,T.match)(l.TokenType.eq)||(0,T.match)(l.TokenType.comma)||((0,T.match)(l.TokenType.star)&&((0,T.next)(),a=!0),Q(n))):Q(n),X(e,t,n)}h.state.tokens[h.state.tokens.length-1].contextId=n}function V(e,t){const n=h.state.start;return(0,T.match)(l.TokenType.parenL)?(e&&(0,m.unexpected)(),G(n,!1),!0):!!function(e){return!e&&((0,T.match)(l.TokenType.string)||(0,T.match)(l.TokenType.num)||(0,T.match)(l.TokenType.bracketL)||(0,T.match)(l.TokenType.name)||!!(h.state.type&l.TokenType.IS_KEYWORD))}(e)&&(Q(t),G(n,!1),!0)}function X(e,t,n){h.isTypeScriptEnabled?(0,p.tsStartParseObjPropValue)():h.isFlowEnabled&&(0,s.flowStartParseObjPropValue)();V(e,n)||function(e,t){if((0,T.eat)(l.TokenType.colon))return void(e?(0,d.parseMaybeDefault)(t):S(!1));let n;n=e?0===h.state.scopeDepth?T.IdentifierRole.ObjectShorthandTopLevelDeclaration:t?T.IdentifierRole.ObjectShorthandBlockScopedDeclaration:T.IdentifierRole.ObjectShorthandFunctionScopedDeclaration:T.IdentifierRole.ObjectShorthand,h.state.tokens[h.state.tokens.length-1].identifierRole=n,(0,d.parseMaybeDefault)(t,!0)}(e,t)}function Q(e){h.isFlowEnabled&&(0,s.flowParseVariance)(),(0,T.eat)(l.TokenType.bracketL)?(h.state.tokens[h.state.tokens.length-1].contextId=e,S(),(0,m.expect)(l.TokenType.bracketR),h.state.tokens[h.state.tokens.length-1].contextId=e):((0,T.match)(l.TokenType.num)||(0,T.match)(l.TokenType.string)||(0,T.match)(l.TokenType.bigint)||(0,T.match)(l.TokenType.decimal)?B():K(),h.state.tokens[h.state.tokens.length-1].identifierRole=T.IdentifierRole.ObjectKey,h.state.tokens[h.state.tokens.length-1].contextId=e)}function G(e,t){const n=(0,h.getNextContextId)();h.state.scopeDepth++;const o=h.state.tokens.length,a=t;(0,f.parseFunctionParams)(a,n),z(e,n);const s=h.state.tokens.length;h.state.scopes.push(new k.Scope(o,s,!0)),h.state.scopeDepth--}function J(e){H(!0);const t=h.state.tokens.length;h.state.scopes.push(new k.Scope(e,t,!0)),h.state.scopeDepth--}function z(e,t=0){h.isTypeScriptEnabled?(0,p.tsParseFunctionBodyAndFinish)(e,t):h.isFlowEnabled?(0,s.flowParseFunctionBodyAndFinish)(t):H(!1,t)}function H(e,t=0){e&&!(0,T.match)(l.TokenType.braceL)?S():(0,f.parseBlock)(!0,t)}function U(e,t=!1){let n=!0;for(;!(0,T.eat)(e)&&!h.state.error;){if(n)n=!1;else if((0,m.expect)(l.TokenType.comma),(0,T.eat)(e))break;W(t)}}function W(e){e&&(0,T.match)(l.TokenType.comma)||((0,T.match)(l.TokenType.ellipsis)?((0,d.parseSpread)(),M()):(0,T.match)(l.TokenType.question)?(0,T.next)():S(!1,!0))}function Y(){(0,T.next)(),h.state.tokens[h.state.tokens.length-1].type=l.TokenType.name}n.StopState=x}\n//# sourceMappingURL=expression.min.js.map","min_map":"{\"version\":3,\"file\":\"expression.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"parseExpression\",\"parseMaybeAssign\",\"baseParseMaybeAssign\",\"baseParseConditional\",\"parseMaybeUnary\",\"parseExprSubscripts\",\"baseParseSubscripts\",\"baseParseSubscript\",\"atPossibleAsync\",\"parseCallExpressionArguments\",\"parseExprAtom\",\"parseLiteral\",\"parseParenExpression\",\"util_1\",\"expect\",\"types_2\",\"TokenType\",\"parenL\",\"parenR\",\"parseArrow\",\"parseTemplate\",\"parseObj\",\"parsePropertyName\",\"parseMethod\",\"parseArrowExpression\",\"parseFunctionBodyAndFinish\",\"parseFunctionBody\",\"parseIdentifier\",\"flow_1\",\"index_1\",\"types_1\",\"typescript_1\",\"index_2\",\"keywords_1\",\"state_1\",\"charcodes_1\",\"identifier_1\",\"base_1\",\"lval_1\",\"statement_1\",\"StopState\",\"constructor\",\"stop\",\"this\",\"noIn\",\"match\",\"comma\",\"eat\",\"isWithinParens\",\"isTypeScriptEnabled\",\"tsParseMaybeAssign\",\"isFlowEnabled\",\"flowParseMaybeAssign\",\"_yield\",\"next\",\"semi\",\"canInsertSemicolon\",\"star\",\"name\",\"state\",\"potentialArrowAt\",\"start\",\"wasArrow\",\"startTokenIndex\",\"tokens\",\"length\",\"parseExprOp\",\"parseExprOps\",\"typedParseConditional\",\"parseConditional\",\"parseMaybeConditional\",\"parseParenItem\",\"type\",\"IS_ASSIGN\",\"question\",\"colon\",\"minPrec\",\"_in\",\"PRECEDENCE_MASK\",\"hasPrecedingLineBreak\",\"eatContextual\",\"ContextualKeyword\",\"_as\",\"_satisfies\",\"oldIsType\",\"pushTypeContext\",\"tsParseType\",\"popTypeContext\",\"rescan_gt\",\"prec\",\"op\",\"nullishCoalescing\",\"nullishStartIndex\",\"rhsStartTokenIndex\",\"IS_RIGHT_ASSOCIATIVE\",\"numNullishCoalesceStarts\",\"numNullishCoalesceEnds\",\"isJSXEnabled\",\"lessThan\",\"tsParseTypeAssertion\",\"isContextual\",\"_module\",\"lookaheadCharCode\",\"charCodes\",\"leftCurlyBrace\",\"hasFollowingLineBreak\",\"expectContextual\",\"braceL\",\"parseBlockBody\",\"braceR\",\"IS_PREFIX\",\"IS_POSTFIX\",\"preIncDec\",\"postIncDec\",\"parseSubscripts\",\"isOptionalChainStart\",\"isOptionalChainEnd\",\"noCalls\",\"flowParseSubscripts\",\"stopState\",\"parseSubscript\",\"error\",\"tsParseSubscript\",\"flowParseSubscript\",\"doubleColon\",\"parseNoCallExpr\",\"questionDot\",\"lookaheadType\",\"subscriptStartIndex\",\"bracketL\",\"bracketR\",\"parseMaybePrivateName\",\"dot\",\"snapshot\",\"asyncStartTokenIndex\",\"callContextId\",\"getNextContextId\",\"contextId\",\"arrow\",\"restoreFromSnapshot\",\"scopeDepth\",\"parseFunctionParams\",\"tsStartParseAsyncArrowFromCallExpression\",\"flowStartParseAsyncArrowFromCallExpression\",\"parseAsyncArrowFromCallExpression\",\"backQuote\",\"contextualKeyword\",\"_async\",\"first\",\"parseExprListItem\",\"modulo\",\"jsxText\",\"jsxEmptyText\",\"jsxTagStart\",\"jsxParseElement\",\"canBeArrow\",\"slash\",\"assign\",\"retokenizeSlashAsRegex\",\"_super\",\"_this\",\"regexp\",\"num\",\"bigint\",\"decimal\",\"string\",\"_null\",\"_true\",\"_false\",\"_import\",\"functionStart\",\"_await\",\"_function\",\"parseFunction\",\"parseBindingIdentifier\",\"_do\",\"parseBlock\",\"markPriorBindingIdentifier\",\"identifierRole\",\"IdentifierRole\",\"Access\",\"parseParenAndDistinguishExpression\",\"parseExprList\",\"parseFunctionExpression\",\"at\",\"parseDecorators\",\"_class\",\"parseClass\",\"_new\",\"flowStartParseNewArguments\",\"parseNew\",\"hash\",\"code\",\"IS_IDENTIFIER_START\",\"backslash\",\"unexpected\",\"ellipsis\",\"parseRest\",\"tsParseArrow\",\"flowParseArrow\",\"typedParseParenItem\",\"nextTemplateToken\",\"dollarBraceL\",\"isPattern\",\"isBlockScope\",\"isGenerator\",\"previousIndex\",\"parseSpread\",\"eq\",\"parseObjPropValue\",\"parseObjectMethod\",\"objectContextId\",\"IS_KEYWORD\",\"isGetterOrSetterMethod\",\"tsStartParseObjPropValue\",\"flowStartParseObjPropValue\",\"parseMaybeDefault\",\"ObjectShorthandTopLevelDeclaration\",\"ObjectShorthandBlockScopedDeclaration\",\"ObjectShorthandFunctionScopedDeclaration\",\"ObjectShorthand\",\"parseObjectProperty\",\"flowParseVariance\",\"ObjectKey\",\"isConstructor\",\"funcContextId\",\"allowModifiers\",\"endTokenIndex\",\"scopes\",\"push\",\"Scope\",\"tsParseFunctionBodyAndFinish\",\"flowParseFunctionBodyAndFinish\",\"allowExpression\",\"close\",\"allowEmpty\"],\"sources\":[\"0\"],\"mappings\":\"AAAsD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACnGD,IACAD,EAAQG,gBAAkBA,EAC1BH,EAAQI,iBAAmBA,EAC3BJ,EAAQK,qBAAuBA,EAC/BL,EAAQM,qBAAuBA,EAC/BN,EAAQO,gBAAkBA,EAC1BP,EAAQQ,oBAAsBA,EAC9BR,EAAQS,oBAAsBA,EAC9BT,EAAQU,mBAAqBA,EAC7BV,EAAQW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OsB,MAAMK,OAAO3B,EAAOsB,MAAMK,OAAOC,OAAS,GAAGO,KAAOzD,EAAQC,UAAU0C,IACjF,CA9zBA7D,EAAQ2C,UAAYA,CAo1BxB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/jsx/index.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/plugins/jsx/index.js","resolution":"ESM","id":"d7708a7d24","hash":"d7708a7d247f481847e410f9fba020cfc929a0989e321f913596f24f7557f541","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.jsxParseElement = jsxParseElement;\nexports.nextJSXTagToken = nextJSXTagToken;\nconst index_1 = require(\"../../tokenizer/index\");\nconst types_1 = require(\"../../tokenizer/types\");\nconst base_1 = require(\"../../traverser/base\");\nconst expression_1 = require(\"../../traverser/expression\");\nconst util_1 = require(\"../../traverser/util\");\nconst charcodes_1 = require(\"../../util/charcodes\");\nconst identifier_1 = require(\"../../util/identifier\");\nconst typescript_1 = require(\"../typescript\");\n/**\n * Read token with JSX contents.\n *\n * In addition to detecting jsxTagStart and also regular tokens that might be\n * part of an expression, this code detects the start and end of text ranges\n * within JSX children. In order to properly count the number of children, we\n * distinguish jsxText from jsxEmptyText, which is a text range that simplifies\n * to the empty string after JSX whitespace trimming.\n *\n * It turns out that a JSX text range will simplify to the empty string if and\n * only if both of these conditions hold:\n * - The range consists entirely of whitespace characters (only counting space,\n *   tab, \\r, and \\n).\n * - The range has at least one newline.\n * This can be proven by analyzing any implementation of whitespace trimming,\n * e.g. formatJSXTextLiteral in Sucrase or cleanJSXElementLiteralChild in Babel.\n */\nfunction jsxReadToken() {\n    let sawNewline = false;\n    let sawNonWhitespace = false;\n    while (true) {\n        if (base_1.state.pos >= base_1.input.length) {\n            (0, util_1.unexpected)(\"Unterminated JSX contents\");\n            return;\n        }\n        const ch = base_1.input.charCodeAt(base_1.state.pos);\n        if (ch === charcodes_1.charCodes.lessThan || ch === charcodes_1.charCodes.leftCurlyBrace) {\n            if (base_1.state.pos === base_1.state.start) {\n                if (ch === charcodes_1.charCodes.lessThan) {\n                    base_1.state.pos++;\n                    (0, index_1.finishToken)(types_1.TokenType.jsxTagStart);\n                    return;\n                }\n                (0, index_1.getTokenFromCode)(ch);\n                return;\n            }\n            if (sawNewline && !sawNonWhitespace) {\n                (0, index_1.finishToken)(types_1.TokenType.jsxEmptyText);\n            }\n            else {\n                (0, index_1.finishToken)(types_1.TokenType.jsxText);\n            }\n            return;\n        }\n        // This is part of JSX text.\n        if (ch === charcodes_1.charCodes.lineFeed) {\n            sawNewline = true;\n        }\n        else if (ch !== charcodes_1.charCodes.space && ch !== charcodes_1.charCodes.carriageReturn && ch !== charcodes_1.charCodes.tab) {\n            sawNonWhitespace = true;\n        }\n        base_1.state.pos++;\n    }\n}\nfunction jsxReadString(quote) {\n    base_1.state.pos++;\n    for (;;) {\n        if (base_1.state.pos >= base_1.input.length) {\n            (0, util_1.unexpected)(\"Unterminated string constant\");\n            return;\n        }\n        const ch = base_1.input.charCodeAt(base_1.state.pos);\n        if (ch === quote) {\n            base_1.state.pos++;\n            break;\n        }\n        base_1.state.pos++;\n    }\n    (0, index_1.finishToken)(types_1.TokenType.string);\n}\n// Read a JSX identifier (valid tag or attribute name).\n//\n// Optimized version since JSX identifiers can't contain\n// escape characters and so can be read as single slice.\n// Also assumes that first character was already checked\n// by isIdentifierStart in readToken.\nfunction jsxReadWord() {\n    let ch;\n    do {\n        if (base_1.state.pos > base_1.input.length) {\n            (0, util_1.unexpected)(\"Unexpectedly reached the end of input.\");\n            return;\n        }\n        ch = base_1.input.charCodeAt(++base_1.state.pos);\n    } while (identifier_1.IS_IDENTIFIER_CHAR[ch] || ch === charcodes_1.charCodes.dash);\n    (0, index_1.finishToken)(types_1.TokenType.jsxName);\n}\n// Parse next token as JSX identifier\nfunction jsxParseIdentifier() {\n    nextJSXTagToken();\n}\n// Parse namespaced identifier.\nfunction jsxParseNamespacedName(identifierRole) {\n    jsxParseIdentifier();\n    if (!(0, index_1.eat)(types_1.TokenType.colon)) {\n        // Plain identifier, so this is an access.\n        base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = identifierRole;\n        return;\n    }\n    // Process the second half of the namespaced name.\n    jsxParseIdentifier();\n}\n// Parses element name in any form - namespaced, member\n// or single identifier.\nfunction jsxParseElementName() {\n    const firstTokenIndex = base_1.state.tokens.length;\n    jsxParseNamespacedName(index_1.IdentifierRole.Access);\n    let hadDot = false;\n    while ((0, index_1.match)(types_1.TokenType.dot)) {\n        hadDot = true;\n        nextJSXTagToken();\n        jsxParseIdentifier();\n    }\n    // For tags like <div> with a lowercase letter and no dots, the name is\n    // actually *not* an identifier access, since it's referring to a built-in\n    // tag name. Remove the identifier role in this case so that it's not\n    // accidentally transformed by the imports transform when preserving JSX.\n    if (!hadDot) {\n        const firstToken = base_1.state.tokens[firstTokenIndex];\n        const firstChar = base_1.input.charCodeAt(firstToken.start);\n        if (firstChar >= charcodes_1.charCodes.lowercaseA && firstChar <= charcodes_1.charCodes.lowercaseZ) {\n            firstToken.identifierRole = null;\n        }\n    }\n}\n// Parses any type of JSX attribute value.\nfunction jsxParseAttributeValue() {\n    switch (base_1.state.type) {\n        case types_1.TokenType.braceL:\n            (0, index_1.next)();\n            (0, expression_1.parseExpression)();\n            nextJSXTagToken();\n            return;\n        case types_1.TokenType.jsxTagStart:\n            jsxParseElement();\n            nextJSXTagToken();\n            return;\n        case types_1.TokenType.string:\n            nextJSXTagToken();\n            return;\n        default:\n            (0, util_1.unexpected)(\"JSX value should be either an expression or a quoted JSX text\");\n    }\n}\n// Parse JSX spread child, after already processing the {\n// Does not parse the closing }\nfunction jsxParseSpreadChild() {\n    (0, util_1.expect)(types_1.TokenType.ellipsis);\n    (0, expression_1.parseExpression)();\n}\n// Parses JSX opening tag starting after \"<\".\n// Returns true if the tag was self-closing.\n// Does not parse the last token.\nfunction jsxParseOpeningElement(initialTokenIndex) {\n    if ((0, index_1.match)(types_1.TokenType.jsxTagEnd)) {\n        // This is an open-fragment.\n        return false;\n    }\n    jsxParseElementName();\n    if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsTryParseJSXTypeArgument)();\n    }\n    let hasSeenPropSpread = false;\n    while (!(0, index_1.match)(types_1.TokenType.slash) && !(0, index_1.match)(types_1.TokenType.jsxTagEnd) && !base_1.state.error) {\n        if ((0, index_1.eat)(types_1.TokenType.braceL)) {\n            hasSeenPropSpread = true;\n            (0, util_1.expect)(types_1.TokenType.ellipsis);\n            (0, expression_1.parseMaybeAssign)();\n            // }\n            nextJSXTagToken();\n            continue;\n        }\n        if (hasSeenPropSpread &&\n            base_1.state.end - base_1.state.start === 3 &&\n            base_1.input.charCodeAt(base_1.state.start) === charcodes_1.charCodes.lowercaseK &&\n            base_1.input.charCodeAt(base_1.state.start + 1) === charcodes_1.charCodes.lowercaseE &&\n            base_1.input.charCodeAt(base_1.state.start + 2) === charcodes_1.charCodes.lowercaseY) {\n            base_1.state.tokens[initialTokenIndex].jsxRole = index_1.JSXRole.KeyAfterPropSpread;\n        }\n        jsxParseNamespacedName(index_1.IdentifierRole.ObjectKey);\n        if ((0, index_1.match)(types_1.TokenType.eq)) {\n            nextJSXTagToken();\n            jsxParseAttributeValue();\n        }\n    }\n    const isSelfClosing = (0, index_1.match)(types_1.TokenType.slash);\n    if (isSelfClosing) {\n        // /\n        nextJSXTagToken();\n    }\n    return isSelfClosing;\n}\n// Parses JSX closing tag starting after \"</\".\n// Does not parse the last token.\nfunction jsxParseClosingElement() {\n    if ((0, index_1.match)(types_1.TokenType.jsxTagEnd)) {\n        // Fragment syntax, so we immediately have a tag end.\n        return;\n    }\n    jsxParseElementName();\n}\n// Parses entire JSX element, including its opening tag\n// (starting after \"<\"), attributes, contents and closing tag.\n// Does not parse the last token.\nfunction jsxParseElementAt() {\n    const initialTokenIndex = base_1.state.tokens.length - 1;\n    base_1.state.tokens[initialTokenIndex].jsxRole = index_1.JSXRole.NoChildren;\n    let numExplicitChildren = 0;\n    const isSelfClosing = jsxParseOpeningElement(initialTokenIndex);\n    if (!isSelfClosing) {\n        nextJSXExprToken();\n        while (true) {\n            switch (base_1.state.type) {\n                case types_1.TokenType.jsxTagStart:\n                    nextJSXTagToken();\n                    if ((0, index_1.match)(types_1.TokenType.slash)) {\n                        nextJSXTagToken();\n                        jsxParseClosingElement();\n                        // Key after prop spread takes precedence over number of children,\n                        // since it means we switch to createElement, which doesn't care\n                        // about number of children.\n                        if (base_1.state.tokens[initialTokenIndex].jsxRole !== index_1.JSXRole.KeyAfterPropSpread) {\n                            if (numExplicitChildren === 1) {\n                                base_1.state.tokens[initialTokenIndex].jsxRole = index_1.JSXRole.OneChild;\n                            }\n                            else if (numExplicitChildren > 1) {\n                                base_1.state.tokens[initialTokenIndex].jsxRole = index_1.JSXRole.StaticChildren;\n                            }\n                        }\n                        return;\n                    }\n                    numExplicitChildren++;\n                    jsxParseElementAt();\n                    nextJSXExprToken();\n                    break;\n                case types_1.TokenType.jsxText:\n                    numExplicitChildren++;\n                    nextJSXExprToken();\n                    break;\n                case types_1.TokenType.jsxEmptyText:\n                    nextJSXExprToken();\n                    break;\n                case types_1.TokenType.braceL:\n                    (0, index_1.next)();\n                    if ((0, index_1.match)(types_1.TokenType.ellipsis)) {\n                        jsxParseSpreadChild();\n                        nextJSXExprToken();\n                        // Spread children are a mechanism to explicitly mark children as\n                        // static, so count it as 2 children to satisfy the \"more than one\n                        // child\" condition.\n                        numExplicitChildren += 2;\n                    }\n                    else {\n                        // If we see {}, this is an empty pseudo-expression that doesn't\n                        // count as a child.\n                        if (!(0, index_1.match)(types_1.TokenType.braceR)) {\n                            numExplicitChildren++;\n                            (0, expression_1.parseExpression)();\n                        }\n                        nextJSXExprToken();\n                    }\n                    break;\n                // istanbul ignore next - should never happen\n                default:\n                    (0, util_1.unexpected)();\n                    return;\n            }\n        }\n    }\n}\n// Parses entire JSX element from current position.\n// Does not parse the last token.\nfunction jsxParseElement() {\n    nextJSXTagToken();\n    jsxParseElementAt();\n}\n// ==================================\n// Overrides\n// ==================================\nfunction nextJSXTagToken() {\n    base_1.state.tokens.push(new index_1.Token());\n    (0, index_1.skipSpace)();\n    base_1.state.start = base_1.state.pos;\n    const code = base_1.input.charCodeAt(base_1.state.pos);\n    if (identifier_1.IS_IDENTIFIER_START[code]) {\n        jsxReadWord();\n    }\n    else if (code === charcodes_1.charCodes.quotationMark || code === charcodes_1.charCodes.apostrophe) {\n        jsxReadString(code);\n    }\n    else {\n        // The following tokens are just one character each.\n        ++base_1.state.pos;\n        switch (code) {\n            case charcodes_1.charCodes.greaterThan:\n                (0, index_1.finishToken)(types_1.TokenType.jsxTagEnd);\n                break;\n            case charcodes_1.charCodes.lessThan:\n                (0, index_1.finishToken)(types_1.TokenType.jsxTagStart);\n                break;\n            case charcodes_1.charCodes.slash:\n                (0, index_1.finishToken)(types_1.TokenType.slash);\n                break;\n            case charcodes_1.charCodes.equalsTo:\n                (0, index_1.finishToken)(types_1.TokenType.eq);\n                break;\n            case charcodes_1.charCodes.leftCurlyBrace:\n                (0, index_1.finishToken)(types_1.TokenType.braceL);\n                break;\n            case charcodes_1.charCodes.dot:\n                (0, index_1.finishToken)(types_1.TokenType.dot);\n                break;\n            case charcodes_1.charCodes.colon:\n                (0, index_1.finishToken)(types_1.TokenType.colon);\n                break;\n            default:\n                (0, util_1.unexpected)();\n        }\n    }\n}\nfunction nextJSXExprToken() {\n    base_1.state.tokens.push(new index_1.Token());\n    base_1.state.start = base_1.state.pos;\n    jsxReadToken();\n}\n","type":"js","dependency_paths":[["../../tokenizer/index","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["../../tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["../../traverser/base","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/base.js"],["../../traverser/expression","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/expression.js"],["../../traverser/util","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/util.js"],["../../util/charcodes","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/charcodes.js"],["../../util/identifier","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/identifier.js"],["../typescript","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/typescript.js"]],"dependency_map":[],"exported":[{"type":"named","name":"jsxParseElement"},{"type":"named","name":"nextJSXTagToken"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/plugins/jsx/index.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.jsxParseElement = jsxParseElement;\n    exports.nextJSXTagToken = nextJSXTagToken;\n    const index_1 = require(\"bfb18d0576\") /* ../../tokenizer/index */;\n    const types_1 = require(\"f0c35cbd76\") /* ../../tokenizer/types */;\n    const base_1 = require(\"540718e523\") /* ../../traverser/base */;\n    const expression_1 = require(\"8178e7c3c8\") /* ../../traverser/expression */;\n    const util_1 = require(\"bc94bbadc1\") /* ../../traverser/util */;\n    const charcodes_1 = require(\"22746c8ce8\") /* ../../util/charcodes */;\n    const identifier_1 = require(\"364148c9f0\") /* ../../util/identifier */;\n    const typescript_1 = require(\"6a970c22b9\") /* ../typescript */;\n    /**\n     * Read token with JSX contents.\n     *\n     * In addition to detecting jsxTagStart and also regular tokens that might be\n     * part of an expression, this code detects the start and end of text ranges\n     * within JSX children. In order to properly count the number of children, we\n     * distinguish jsxText from jsxEmptyText, which is a text range that simplifies\n     * to the empty string after JSX whitespace trimming.\n     *\n     * It turns out that a JSX text range will simplify to the empty string if and\n     * only if both of these conditions hold:\n     * - The range consists entirely of whitespace characters (only counting space,\n     *   tab, \\r, and \\n).\n     * - The range has at least one newline.\n     * This can be proven by analyzing any implementation of whitespace trimming,\n     * e.g. formatJSXTextLiteral in Sucrase or cleanJSXElementLiteralChild in Babel.\n     */\n    function jsxReadToken() {\n        let sawNewline = false;\n        let sawNonWhitespace = false;\n        while (true) {\n            if (base_1.state.pos >= base_1.input.length) {\n                (0, util_1.unexpected)(\"Unterminated JSX contents\");\n                return;\n            }\n            const ch = base_1.input.charCodeAt(base_1.state.pos);\n            if (ch === charcodes_1.charCodes.lessThan || ch === charcodes_1.charCodes.leftCurlyBrace) {\n                if (base_1.state.pos === base_1.state.start) {\n                    if (ch === charcodes_1.charCodes.lessThan) {\n                        base_1.state.pos++;\n                        (0, index_1.finishToken)(types_1.TokenType.jsxTagStart);\n                        return;\n                    }\n                    (0, index_1.getTokenFromCode)(ch);\n                    return;\n                }\n                if (sawNewline && !sawNonWhitespace) {\n                    (0, index_1.finishToken)(types_1.TokenType.jsxEmptyText);\n                }\n                else {\n                    (0, index_1.finishToken)(types_1.TokenType.jsxText);\n                }\n                return;\n            }\n            // This is part of JSX text.\n            if (ch === charcodes_1.charCodes.lineFeed) {\n                sawNewline = true;\n            }\n            else if (ch !== charcodes_1.charCodes.space && ch !== charcodes_1.charCodes.carriageReturn && ch !== charcodes_1.charCodes.tab) {\n                sawNonWhitespace = true;\n            }\n            base_1.state.pos++;\n        }\n    }\n    function jsxReadString(quote) {\n        base_1.state.pos++;\n        for (;;) {\n            if (base_1.state.pos >= base_1.input.length) {\n                (0, util_1.unexpected)(\"Unterminated string constant\");\n                return;\n            }\n            const ch = base_1.input.charCodeAt(base_1.state.pos);\n            if (ch === quote) {\n                base_1.state.pos++;\n                break;\n            }\n            base_1.state.pos++;\n        }\n        (0, index_1.finishToken)(types_1.TokenType.string);\n    }\n    // Read a JSX identifier (valid tag or attribute name).\n    //\n    // Optimized version since JSX identifiers can't contain\n    // escape characters and so can be read as single slice.\n    // Also assumes that first character was already checked\n    // by isIdentifierStart in readToken.\n    function jsxReadWord() {\n        let ch;\n        do {\n            if (base_1.state.pos > base_1.input.length) {\n                (0, util_1.unexpected)(\"Unexpectedly reached the end of input.\");\n                return;\n            }\n            ch = base_1.input.charCodeAt(++base_1.state.pos);\n        } while (identifier_1.IS_IDENTIFIER_CHAR[ch] || ch === charcodes_1.charCodes.dash);\n        (0, index_1.finishToken)(types_1.TokenType.jsxName);\n    }\n    // Parse next token as JSX identifier\n    function jsxParseIdentifier() {\n        nextJSXTagToken();\n    }\n    // Parse namespaced identifier.\n    function jsxParseNamespacedName(identifierRole) {\n        jsxParseIdentifier();\n        if (!(0, index_1.eat)(types_1.TokenType.colon)) {\n            // Plain identifier, so this is an access.\n            base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = identifierRole;\n            return;\n        }\n        // Process the second half of the namespaced name.\n        jsxParseIdentifier();\n    }\n    // Parses element name in any form - namespaced, member\n    // or single identifier.\n    function jsxParseElementName() {\n        const firstTokenIndex = base_1.state.tokens.length;\n        jsxParseNamespacedName(index_1.IdentifierRole.Access);\n        let hadDot = false;\n        while ((0, index_1.match)(types_1.TokenType.dot)) {\n            hadDot = true;\n            nextJSXTagToken();\n            jsxParseIdentifier();\n        }\n        // For tags like <div> with a lowercase letter and no dots, the name is\n        // actually *not* an identifier access, since it's referring to a built-in\n        // tag name. Remove the identifier role in this case so that it's not\n        // accidentally transformed by the imports transform when preserving JSX.\n        if (!hadDot) {\n            const firstToken = base_1.state.tokens[firstTokenIndex];\n            const firstChar = base_1.input.charCodeAt(firstToken.start);\n            if (firstChar >= charcodes_1.charCodes.lowercaseA && firstChar <= charcodes_1.charCodes.lowercaseZ) {\n                firstToken.identifierRole = null;\n            }\n        }\n    }\n    // Parses any type of JSX attribute value.\n    function jsxParseAttributeValue() {\n        switch (base_1.state.type) {\n            case types_1.TokenType.braceL:\n                (0, index_1.next)();\n                (0, expression_1.parseExpression)();\n                nextJSXTagToken();\n                return;\n            case types_1.TokenType.jsxTagStart:\n                jsxParseElement();\n                nextJSXTagToken();\n                return;\n            case types_1.TokenType.string:\n                nextJSXTagToken();\n                return;\n            default:\n                (0, util_1.unexpected)(\"JSX value should be either an expression or a quoted JSX text\");\n        }\n    }\n    // Parse JSX spread child, after already processing the {\n    // Does not parse the closing }\n    function jsxParseSpreadChild() {\n        (0, util_1.expect)(types_1.TokenType.ellipsis);\n        (0, expression_1.parseExpression)();\n    }\n    // Parses JSX opening tag starting after \"<\".\n    // Returns true if the tag was self-closing.\n    // Does not parse the last token.\n    function jsxParseOpeningElement(initialTokenIndex) {\n        if ((0, index_1.match)(types_1.TokenType.jsxTagEnd)) {\n            // This is an open-fragment.\n            return false;\n        }\n        jsxParseElementName();\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsTryParseJSXTypeArgument)();\n        }\n        let hasSeenPropSpread = false;\n        while (!(0, index_1.match)(types_1.TokenType.slash) && !(0, index_1.match)(types_1.TokenType.jsxTagEnd) && !base_1.state.error) {\n            if ((0, index_1.eat)(types_1.TokenType.braceL)) {\n                hasSeenPropSpread = true;\n                (0, util_1.expect)(types_1.TokenType.ellipsis);\n                (0, expression_1.parseMaybeAssign)();\n                // }\n                nextJSXTagToken();\n                continue;\n            }\n            if (hasSeenPropSpread &&\n                base_1.state.end - base_1.state.start === 3 &&\n                base_1.input.charCodeAt(base_1.state.start) === charcodes_1.charCodes.lowercaseK &&\n                base_1.input.charCodeAt(base_1.state.start + 1) === charcodes_1.charCodes.lowercaseE &&\n                base_1.input.charCodeAt(base_1.state.start + 2) === charcodes_1.charCodes.lowercaseY) {\n                base_1.state.tokens[initialTokenIndex].jsxRole = index_1.JSXRole.KeyAfterPropSpread;\n            }\n            jsxParseNamespacedName(index_1.IdentifierRole.ObjectKey);\n            if ((0, index_1.match)(types_1.TokenType.eq)) {\n                nextJSXTagToken();\n                jsxParseAttributeValue();\n            }\n        }\n        const isSelfClosing = (0, index_1.match)(types_1.TokenType.slash);\n        if (isSelfClosing) {\n            // /\n            nextJSXTagToken();\n        }\n        return isSelfClosing;\n    }\n    // Parses JSX closing tag starting after \"</\".\n    // Does not parse the last token.\n    function jsxParseClosingElement() {\n        if ((0, index_1.match)(types_1.TokenType.jsxTagEnd)) {\n            // Fragment syntax, so we immediately have a tag end.\n            return;\n        }\n        jsxParseElementName();\n    }\n    // Parses entire JSX element, including its opening tag\n    // (starting after \"<\"), attributes, contents and closing tag.\n    // Does not parse the last token.\n    function jsxParseElementAt() {\n        const initialTokenIndex = base_1.state.tokens.length - 1;\n        base_1.state.tokens[initialTokenIndex].jsxRole = index_1.JSXRole.NoChildren;\n        let numExplicitChildren = 0;\n        const isSelfClosing = jsxParseOpeningElement(initialTokenIndex);\n        if (!isSelfClosing) {\n            nextJSXExprToken();\n            while (true) {\n                switch (base_1.state.type) {\n                    case types_1.TokenType.jsxTagStart:\n                        nextJSXTagToken();\n                        if ((0, index_1.match)(types_1.TokenType.slash)) {\n                            nextJSXTagToken();\n                            jsxParseClosingElement();\n                            // Key after prop spread takes precedence over number of children,\n                            // since it means we switch to createElement, which doesn't care\n                            // about number of children.\n                            if (base_1.state.tokens[initialTokenIndex].jsxRole !== index_1.JSXRole.KeyAfterPropSpread) {\n                                if (numExplicitChildren === 1) {\n                                    base_1.state.tokens[initialTokenIndex].jsxRole = index_1.JSXRole.OneChild;\n                                }\n                                else if (numExplicitChildren > 1) {\n                                    base_1.state.tokens[initialTokenIndex].jsxRole = index_1.JSXRole.StaticChildren;\n                                }\n                            }\n                            return;\n                        }\n                        numExplicitChildren++;\n                        jsxParseElementAt();\n                        nextJSXExprToken();\n                        break;\n                    case types_1.TokenType.jsxText:\n                        numExplicitChildren++;\n                        nextJSXExprToken();\n                        break;\n                    case types_1.TokenType.jsxEmptyText:\n                        nextJSXExprToken();\n                        break;\n                    case types_1.TokenType.braceL:\n                        (0, index_1.next)();\n                        if ((0, index_1.match)(types_1.TokenType.ellipsis)) {\n                            jsxParseSpreadChild();\n                            nextJSXExprToken();\n                            // Spread children are a mechanism to explicitly mark children as\n                            // static, so count it as 2 children to satisfy the \"more than one\n                            // child\" condition.\n                            numExplicitChildren += 2;\n                        }\n                        else {\n                            // If we see {}, this is an empty pseudo-expression that doesn't\n                            // count as a child.\n                            if (!(0, index_1.match)(types_1.TokenType.braceR)) {\n                                numExplicitChildren++;\n                                (0, expression_1.parseExpression)();\n                            }\n                            nextJSXExprToken();\n                        }\n                        break;\n                    // istanbul ignore next - should never happen\n                    default:\n                        (0, util_1.unexpected)();\n                        return;\n                }\n            }\n        }\n    }\n    // Parses entire JSX element from current position.\n    // Does not parse the last token.\n    function jsxParseElement() {\n        nextJSXTagToken();\n        jsxParseElementAt();\n    }\n    // ==================================\n    // Overrides\n    // ==================================\n    function nextJSXTagToken() {\n        base_1.state.tokens.push(new index_1.Token());\n        (0, index_1.skipSpace)();\n        base_1.state.start = base_1.state.pos;\n        const code = base_1.input.charCodeAt(base_1.state.pos);\n        if (identifier_1.IS_IDENTIFIER_START[code]) {\n            jsxReadWord();\n        }\n        else if (code === charcodes_1.charCodes.quotationMark || code === charcodes_1.charCodes.apostrophe) {\n            jsxReadString(code);\n        }\n        else {\n            // The following tokens are just one character each.\n            ++base_1.state.pos;\n            switch (code) {\n                case charcodes_1.charCodes.greaterThan:\n                    (0, index_1.finishToken)(types_1.TokenType.jsxTagEnd);\n                    break;\n                case charcodes_1.charCodes.lessThan:\n                    (0, index_1.finishToken)(types_1.TokenType.jsxTagStart);\n                    break;\n                case charcodes_1.charCodes.slash:\n                    (0, index_1.finishToken)(types_1.TokenType.slash);\n                    break;\n                case charcodes_1.charCodes.equalsTo:\n                    (0, index_1.finishToken)(types_1.TokenType.eq);\n                    break;\n                case charcodes_1.charCodes.leftCurlyBrace:\n                    (0, index_1.finishToken)(types_1.TokenType.braceL);\n                    break;\n                case charcodes_1.charCodes.dot:\n                    (0, index_1.finishToken)(types_1.TokenType.dot);\n                    break;\n                case charcodes_1.charCodes.colon:\n                    (0, index_1.finishToken)(types_1.TokenType.colon);\n                    break;\n                default:\n                    (0, util_1.unexpected)();\n            }\n        }\n    }\n    function nextJSXExprToken() {\n        base_1.state.tokens.push(new index_1.Token());\n        base_1.state.start = base_1.state.pos;\n        jsxReadToken();\n    }\n}\n","min_source":"function _(e,t,s,o,n){o(),s.jsxParseElement=x,s.nextJSXTagToken=C;const a=e(\"bfb18d0576\"),r=e(\"f0c35cbd76\"),c=e(\"540718e523\"),i=e(\"8178e7c3c8\"),T=e(\"bc94bbadc1\"),p=e(\"22746c8ce8\"),d=e(\"364148c9f0\"),h=e(\"6a970c22b9\");function k(){C()}function l(e){k(),(0,a.eat)(r.TokenType.colon)?k():c.state.tokens[c.state.tokens.length-1].identifierRole=e}function u(){const e=c.state.tokens.length;l(a.IdentifierRole.Access);let t=!1;for(;(0,a.match)(r.TokenType.dot);)t=!0,C(),k();if(!t){const t=c.state.tokens[e],s=c.input.charCodeAt(t.start);s>=p.charCodes.lowercaseA&&s<=p.charCodes.lowercaseZ&&(t.identifierRole=null)}}function f(){switch(c.state.type){case r.TokenType.braceL:return(0,a.next)(),(0,i.parseExpression)(),void C();case r.TokenType.jsxTagStart:return x(),void C();case r.TokenType.string:return void C();default:(0,T.unexpected)(\"JSX value should be either an expression or a quoted JSX text\")}}function y(){const e=c.state.tokens.length-1;c.state.tokens[e].jsxRole=a.JSXRole.NoChildren;let t=0;const s=function(e){if((0,a.match)(r.TokenType.jsxTagEnd))return!1;u(),c.isTypeScriptEnabled&&(0,h.tsTryParseJSXTypeArgument)();let t=!1;for(;!(0,a.match)(r.TokenType.slash)&&!(0,a.match)(r.TokenType.jsxTagEnd)&&!c.state.error;)(0,a.eat)(r.TokenType.braceL)?(t=!0,(0,T.expect)(r.TokenType.ellipsis),(0,i.parseMaybeAssign)(),C()):(t&&c.state.end-c.state.start==3&&c.input.charCodeAt(c.state.start)===p.charCodes.lowercaseK&&c.input.charCodeAt(c.state.start+1)===p.charCodes.lowercaseE&&c.input.charCodeAt(c.state.start+2)===p.charCodes.lowercaseY&&(c.state.tokens[e].jsxRole=a.JSXRole.KeyAfterPropSpread),l(a.IdentifierRole.ObjectKey),(0,a.match)(r.TokenType.eq)&&(C(),f()));const s=(0,a.match)(r.TokenType.slash);return s&&C(),s}(e);if(!s)for(b();;)switch(c.state.type){case r.TokenType.jsxTagStart:if(C(),(0,a.match)(r.TokenType.slash))return C(),(0,a.match)(r.TokenType.jsxTagEnd)||u(),void(c.state.tokens[e].jsxRole!==a.JSXRole.KeyAfterPropSpread&&(1===t?c.state.tokens[e].jsxRole=a.JSXRole.OneChild:t>1&&(c.state.tokens[e].jsxRole=a.JSXRole.StaticChildren)));t++,y(),b();break;case r.TokenType.jsxText:t++,b();break;case r.TokenType.jsxEmptyText:b();break;case r.TokenType.braceL:(0,a.next)(),(0,a.match)(r.TokenType.ellipsis)?((0,T.expect)(r.TokenType.ellipsis),(0,i.parseExpression)(),b(),t+=2):((0,a.match)(r.TokenType.braceR)||(t++,(0,i.parseExpression)()),b());break;default:return void(0,T.unexpected)()}}function x(){C(),y()}function C(){c.state.tokens.push(new a.Token),(0,a.skipSpace)(),c.state.start=c.state.pos;const e=c.input.charCodeAt(c.state.pos);if(d.IS_IDENTIFIER_START[e])!function(){let e;do{if(c.state.pos>c.input.length)return void(0,T.unexpected)(\"Unexpectedly reached the end of input.\");e=c.input.charCodeAt(++c.state.pos)}while(d.IS_IDENTIFIER_CHAR[e]||e===p.charCodes.dash);(0,a.finishToken)(r.TokenType.jsxName)}();else if(e===p.charCodes.quotationMark||e===p.charCodes.apostrophe)!function(e){for(c.state.pos++;;){if(c.state.pos>=c.input.length)return void(0,T.unexpected)(\"Unterminated string constant\");if(c.input.charCodeAt(c.state.pos)===e){c.state.pos++;break}c.state.pos++}(0,a.finishToken)(r.TokenType.string)}(e);else switch(++c.state.pos,e){case p.charCodes.greaterThan:(0,a.finishToken)(r.TokenType.jsxTagEnd);break;case p.charCodes.lessThan:(0,a.finishToken)(r.TokenType.jsxTagStart);break;case p.charCodes.slash:(0,a.finishToken)(r.TokenType.slash);break;case p.charCodes.equalsTo:(0,a.finishToken)(r.TokenType.eq);break;case p.charCodes.leftCurlyBrace:(0,a.finishToken)(r.TokenType.braceL);break;case p.charCodes.dot:(0,a.finishToken)(r.TokenType.dot);break;case p.charCodes.colon:(0,a.finishToken)(r.TokenType.colon);break;default:(0,T.unexpected)()}}function b(){c.state.tokens.push(new a.Token),c.state.start=c.state.pos,function(){let e=!1,t=!1;for(;;){if(c.state.pos>=c.input.length)return void(0,T.unexpected)(\"Unterminated JSX contents\");const s=c.input.charCodeAt(c.state.pos);if(s===p.charCodes.lessThan||s===p.charCodes.leftCurlyBrace)return c.state.pos===c.state.start?s===p.charCodes.lessThan?(c.state.pos++,void(0,a.finishToken)(r.TokenType.jsxTagStart)):void(0,a.getTokenFromCode)(s):void(e&&!t?(0,a.finishToken)(r.TokenType.jsxEmptyText):(0,a.finishToken)(r.TokenType.jsxText));s===p.charCodes.lineFeed?e=!0:s!==p.charCodes.space&&s!==p.charCodes.carriageReturn&&s!==p.charCodes.tab&&(t=!0),c.state.pos++}}()}}\n//# sourceMappingURL=index.min.js.map","min_map":"{\"version\":3,\"file\":\"index.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"jsxParseElement\",\"nextJSXTagToken\",\"index_1\",\"types_1\",\"base_1\",\"expression_1\",\"util_1\",\"charcodes_1\",\"identifier_1\",\"typescript_1\",\"jsxParseIdentifier\",\"jsxParseNamespacedName\",\"identifierRole\",\"eat\",\"TokenType\",\"colon\",\"state\",\"tokens\",\"length\",\"jsxParseElementName\",\"firstTokenIndex\",\"IdentifierRole\",\"Access\",\"hadDot\",\"match\",\"dot\",\"firstToken\",\"firstChar\",\"input\",\"charCodeAt\",\"start\",\"charCodes\",\"lowercaseA\",\"lowercaseZ\",\"jsxParseAttributeValue\",\"type\",\"braceL\",\"next\",\"parseExpression\",\"jsxTagStart\",\"string\",\"unexpected\",\"jsxParseElementAt\",\"initialTokenIndex\",\"jsxRole\",\"JSXRole\",\"NoChildren\",\"numExplicitChildren\",\"isSelfClosing\",\"jsxTagEnd\",\"isTypeScriptEnabled\",\"tsTryParseJSXTypeArgument\",\"hasSeenPropSpread\",\"slash\",\"error\",\"expect\",\"ellipsis\",\"parseMaybeAssign\",\"end\",\"lowercaseK\",\"lowercaseE\",\"lowercaseY\",\"KeyAfterPropSpread\",\"ObjectKey\",\"eq\",\"jsxParseOpeningElement\",\"nextJSXExprToken\",\"OneChild\",\"StaticChildren\",\"jsxText\",\"jsxEmptyText\",\"braceR\",\"push\",\"Token\",\"skipSpace\",\"pos\",\"code\",\"IS_IDENTIFIER_START\",\"ch\",\"IS_IDENTIFIER_CHAR\",\"dash\",\"finishToken\",\"jsxName\",\"jsxReadWord\",\"quotationMark\",\"apostrophe\",\"quote\",\"jsxReadString\",\"greaterThan\",\"lessThan\",\"equalsTo\",\"leftCurlyBrace\",\"sawNewline\",\"sawNonWhitespace\",\"getTokenFromCode\",\"lineFeed\",\"space\",\"carriageReturn\",\"tab\",\"jsxReadToken\"],\"sources\":[\"0\"],\"mappings\":\"AAAmD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAChGD,IACAD,EAAQG,gBAAkBA,EAC1BH,EAAQI,gBAAkBA,EAC1B,MAAMC,EAAUP,EAAQ,cAClBQ,EAAUR,EAAQ,cAClBS,EAAST,EAAQ,cACjBU,EAAeV,EAAQ,cACvBW,EAASX,EAAQ,cACjBY,EAAcZ,EAAQ,cACtBa,EAAeb,EAAQ,cACvBc,EAAed,EAAQ,cAyF7B,SAASe,IACLT,GACJ,CAEA,SAASU,EAAuBC,GAC5BF,KACK,EAAIR,EAAQW,KAAKV,EAAQW,UAAUC,OAMxCL,IAJIN,EAAOY,MAAMC,OAAOb,EAAOY,MAAMC,OAAOC,OAAS,GAAGN,eAAiBA,CAK7E,CAGA,SAASO,IACL,MAAMC,EAAkBhB,EAAOY,MAAMC,OAAOC,OAC5CP,EAAuBT,EAAQmB,eAAeC,QAC9C,IAAIC,GAAS,EACb,MAAO,EAAIrB,EAAQsB,OAAOrB,EAAQW,UAAUW,MACxCF,GAAS,EACTtB,IACAS,IAMJ,IAAKa,EAAQ,CACT,MAAMG,EAAatB,EAAOY,MAAMC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AAUkE,gBAAkBnB,IAAOvE,EAAYwB,UAAUmE,MACvHL,GAAmB,GAEvBzF,EAAOY,MAAM2D,KACjB,CACJ,CA8QIwB,EACJ,CACJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/typescript.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/plugins/typescript.js","resolution":"ESM","id":"6a970c22b9","hash":"6a970c22b986c51f38e8e744c821ae828d8910408c258f914f7503ef2d746d75","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.tsParseModifiers = tsParseModifiers;\nexports.tsParseModifier = tsParseModifier;\nexports.tsTryParseTypeParameters = tsTryParseTypeParameters;\nexports.tsTryParseTypeAnnotation = tsTryParseTypeAnnotation;\nexports.tsParseTypeAnnotation = tsParseTypeAnnotation;\nexports.tsParseType = tsParseType;\nexports.tsParseNonConditionalType = tsParseNonConditionalType;\nexports.tsParseTypeAssertion = tsParseTypeAssertion;\nexports.tsTryParseJSXTypeArgument = tsTryParseJSXTypeArgument;\nexports.tsParseImportEqualsDeclaration = tsParseImportEqualsDeclaration;\nexports.tsIsDeclarationStart = tsIsDeclarationStart;\nexports.tsParseFunctionBodyAndFinish = tsParseFunctionBodyAndFinish;\nexports.tsParseSubscript = tsParseSubscript;\nexports.tsTryParseExport = tsTryParseExport;\nexports.tsParseImportSpecifier = tsParseImportSpecifier;\nexports.tsParseExportSpecifier = tsParseExportSpecifier;\nexports.tsTryParseExportDefaultExpression = tsTryParseExportDefaultExpression;\nexports.tsTryParseStatementContent = tsTryParseStatementContent;\nexports.tsTryParseClassMemberWithIsStatic = tsTryParseClassMemberWithIsStatic;\nexports.tsParseIdentifierStatement = tsParseIdentifierStatement;\nexports.tsParseExportDeclaration = tsParseExportDeclaration;\nexports.tsAfterParseClassSuper = tsAfterParseClassSuper;\nexports.tsStartParseObjPropValue = tsStartParseObjPropValue;\nexports.tsStartParseFunctionParams = tsStartParseFunctionParams;\nexports.tsAfterParseVarHead = tsAfterParseVarHead;\nexports.tsStartParseAsyncArrowFromCallExpression = tsStartParseAsyncArrowFromCallExpression;\nexports.tsParseMaybeAssign = tsParseMaybeAssign;\nexports.tsParseMaybeAssignWithJSX = tsParseMaybeAssignWithJSX;\nexports.tsParseMaybeAssignWithoutJSX = tsParseMaybeAssignWithoutJSX;\nexports.tsParseArrow = tsParseArrow;\nexports.tsParseAssignableListItemTypes = tsParseAssignableListItemTypes;\nexports.tsParseMaybeDecoratorArguments = tsParseMaybeDecoratorArguments;\nconst index_1 = require(\"../tokenizer/index\");\nconst keywords_1 = require(\"../tokenizer/keywords\");\nconst types_1 = require(\"../tokenizer/types\");\nconst base_1 = require(\"../traverser/base\");\nconst expression_1 = require(\"../traverser/expression\");\nconst lval_1 = require(\"../traverser/lval\");\nconst statement_1 = require(\"../traverser/statement\");\nconst util_1 = require(\"../traverser/util\");\nconst jsx_1 = require(\"./jsx\");\nfunction tsIsIdentifier() {\n    // TODO: actually a bit more complex in TypeScript, but shouldn't matter.\n    // See https://github.com/Microsoft/TypeScript/issues/15008\n    return (0, index_1.match)(types_1.TokenType.name);\n}\nfunction isLiteralPropertyName() {\n    return ((0, index_1.match)(types_1.TokenType.name) ||\n        Boolean(base_1.state.type & types_1.TokenType.IS_KEYWORD) ||\n        (0, index_1.match)(types_1.TokenType.string) ||\n        (0, index_1.match)(types_1.TokenType.num) ||\n        (0, index_1.match)(types_1.TokenType.bigint) ||\n        (0, index_1.match)(types_1.TokenType.decimal));\n}\nfunction tsNextTokenCanFollowModifier() {\n    // Note: TypeScript's implementation is much more complicated because\n    // more things are considered modifiers there.\n    // This implementation only handles modifiers not handled by babylon itself. And \"static\".\n    // TODO: Would be nice to avoid lookahead. Want a hasLineBreakUpNext() method...\n    const snapshot = base_1.state.snapshot();\n    (0, index_1.next)();\n    const canFollowModifier = ((0, index_1.match)(types_1.TokenType.bracketL) ||\n        (0, index_1.match)(types_1.TokenType.braceL) ||\n        (0, index_1.match)(types_1.TokenType.star) ||\n        (0, index_1.match)(types_1.TokenType.ellipsis) ||\n        (0, index_1.match)(types_1.TokenType.hash) ||\n        isLiteralPropertyName()) &&\n        !(0, util_1.hasPrecedingLineBreak)();\n    if (canFollowModifier) {\n        return true;\n    }\n    else {\n        base_1.state.restoreFromSnapshot(snapshot);\n        return false;\n    }\n}\nfunction tsParseModifiers(allowedModifiers) {\n    while (true) {\n        const modifier = tsParseModifier(allowedModifiers);\n        if (modifier === null) {\n            break;\n        }\n    }\n}\n/** Parses a modifier matching one the given modifier names. */\nfunction tsParseModifier(allowedModifiers) {\n    if (!(0, index_1.match)(types_1.TokenType.name)) {\n        return null;\n    }\n    const modifier = base_1.state.contextualKeyword;\n    if (allowedModifiers.indexOf(modifier) !== -1 && tsNextTokenCanFollowModifier()) {\n        switch (modifier) {\n            case keywords_1.ContextualKeyword._readonly:\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._readonly;\n                break;\n            case keywords_1.ContextualKeyword._abstract:\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._abstract;\n                break;\n            case keywords_1.ContextualKeyword._static:\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._static;\n                break;\n            case keywords_1.ContextualKeyword._public:\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._public;\n                break;\n            case keywords_1.ContextualKeyword._private:\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._private;\n                break;\n            case keywords_1.ContextualKeyword._protected:\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._protected;\n                break;\n            case keywords_1.ContextualKeyword._override:\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._override;\n                break;\n            case keywords_1.ContextualKeyword._declare:\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._declare;\n                break;\n            default:\n                break;\n        }\n        return modifier;\n    }\n    return null;\n}\nfunction tsParseEntityName() {\n    (0, expression_1.parseIdentifier)();\n    while ((0, index_1.eat)(types_1.TokenType.dot)) {\n        (0, expression_1.parseIdentifier)();\n    }\n}\nfunction tsParseTypeReference() {\n    tsParseEntityName();\n    if (!(0, util_1.hasPrecedingLineBreak)() && (0, index_1.match)(types_1.TokenType.lessThan)) {\n        tsParseTypeArguments();\n    }\n}\nfunction tsParseThisTypePredicate() {\n    (0, index_1.next)();\n    tsParseTypeAnnotation();\n}\nfunction tsParseThisTypeNode() {\n    (0, index_1.next)();\n}\nfunction tsParseTypeQuery() {\n    (0, util_1.expect)(types_1.TokenType._typeof);\n    if ((0, index_1.match)(types_1.TokenType._import)) {\n        tsParseImportType();\n    }\n    else {\n        tsParseEntityName();\n    }\n    if (!(0, util_1.hasPrecedingLineBreak)() && (0, index_1.match)(types_1.TokenType.lessThan)) {\n        tsParseTypeArguments();\n    }\n}\nfunction tsParseImportType() {\n    (0, util_1.expect)(types_1.TokenType._import);\n    (0, util_1.expect)(types_1.TokenType.parenL);\n    (0, util_1.expect)(types_1.TokenType.string);\n    (0, util_1.expect)(types_1.TokenType.parenR);\n    if ((0, index_1.eat)(types_1.TokenType.dot)) {\n        tsParseEntityName();\n    }\n    if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n        tsParseTypeArguments();\n    }\n}\nfunction tsParseTypeParameter() {\n    (0, index_1.eat)(types_1.TokenType._const);\n    const hadIn = (0, index_1.eat)(types_1.TokenType._in);\n    const hadOut = (0, util_1.eatContextual)(keywords_1.ContextualKeyword._out);\n    (0, index_1.eat)(types_1.TokenType._const);\n    if ((hadIn || hadOut) && !(0, index_1.match)(types_1.TokenType.name)) {\n        // The \"in\" or \"out\" keyword must have actually been the type parameter\n        // name, so set it as the name.\n        base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType.name;\n    }\n    else {\n        (0, expression_1.parseIdentifier)();\n    }\n    if ((0, index_1.eat)(types_1.TokenType._extends)) {\n        tsParseType();\n    }\n    if ((0, index_1.eat)(types_1.TokenType.eq)) {\n        tsParseType();\n    }\n}\nfunction tsTryParseTypeParameters() {\n    if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n        tsParseTypeParameters();\n    }\n}\nfunction tsParseTypeParameters() {\n    const oldIsType = (0, index_1.pushTypeContext)(0);\n    if ((0, index_1.match)(types_1.TokenType.lessThan) || (0, index_1.match)(types_1.TokenType.typeParameterStart)) {\n        (0, index_1.next)();\n    }\n    else {\n        (0, util_1.unexpected)();\n    }\n    while (!(0, index_1.eat)(types_1.TokenType.greaterThan) && !base_1.state.error) {\n        tsParseTypeParameter();\n        (0, index_1.eat)(types_1.TokenType.comma);\n    }\n    (0, index_1.popTypeContext)(oldIsType);\n}\n// Note: In TypeScript implementation we must provide `yieldContext` and `awaitContext`,\n// but here it's always false, because this is only used for types.\nfunction tsFillSignature(returnToken) {\n    // Arrow fns *must* have return token (`=>`). Normal functions can omit it.\n    const returnTokenRequired = returnToken === types_1.TokenType.arrow;\n    tsTryParseTypeParameters();\n    (0, util_1.expect)(types_1.TokenType.parenL);\n    // Create a scope even though we're doing type parsing so we don't accidentally\n    // treat params as top-level bindings.\n    base_1.state.scopeDepth++;\n    tsParseBindingListForSignature(false /* isBlockScope */);\n    base_1.state.scopeDepth--;\n    if (returnTokenRequired) {\n        tsParseTypeOrTypePredicateAnnotation(returnToken);\n    }\n    else if ((0, index_1.match)(returnToken)) {\n        tsParseTypeOrTypePredicateAnnotation(returnToken);\n    }\n}\nfunction tsParseBindingListForSignature(isBlockScope) {\n    (0, lval_1.parseBindingList)(types_1.TokenType.parenR, isBlockScope);\n}\nfunction tsParseTypeMemberSemicolon() {\n    if (!(0, index_1.eat)(types_1.TokenType.comma)) {\n        (0, util_1.semicolon)();\n    }\n}\nfunction tsParseSignatureMember() {\n    tsFillSignature(types_1.TokenType.colon);\n    tsParseTypeMemberSemicolon();\n}\nfunction tsIsUnambiguouslyIndexSignature() {\n    const snapshot = base_1.state.snapshot();\n    (0, index_1.next)(); // Skip '{'\n    const isIndexSignature = (0, index_1.eat)(types_1.TokenType.name) && (0, index_1.match)(types_1.TokenType.colon);\n    base_1.state.restoreFromSnapshot(snapshot);\n    return isIndexSignature;\n}\nfunction tsTryParseIndexSignature() {\n    if (!((0, index_1.match)(types_1.TokenType.bracketL) && tsIsUnambiguouslyIndexSignature())) {\n        return false;\n    }\n    const oldIsType = (0, index_1.pushTypeContext)(0);\n    (0, util_1.expect)(types_1.TokenType.bracketL);\n    (0, expression_1.parseIdentifier)();\n    tsParseTypeAnnotation();\n    (0, util_1.expect)(types_1.TokenType.bracketR);\n    tsTryParseTypeAnnotation();\n    tsParseTypeMemberSemicolon();\n    (0, index_1.popTypeContext)(oldIsType);\n    return true;\n}\nfunction tsParsePropertyOrMethodSignature(isReadonly) {\n    (0, index_1.eat)(types_1.TokenType.question);\n    if (!isReadonly && ((0, index_1.match)(types_1.TokenType.parenL) || (0, index_1.match)(types_1.TokenType.lessThan))) {\n        tsFillSignature(types_1.TokenType.colon);\n        tsParseTypeMemberSemicolon();\n    }\n    else {\n        tsTryParseTypeAnnotation();\n        tsParseTypeMemberSemicolon();\n    }\n}\nfunction tsParseTypeMember() {\n    if ((0, index_1.match)(types_1.TokenType.parenL) || (0, index_1.match)(types_1.TokenType.lessThan)) {\n        // call signature\n        tsParseSignatureMember();\n        return;\n    }\n    if ((0, index_1.match)(types_1.TokenType._new)) {\n        (0, index_1.next)();\n        if ((0, index_1.match)(types_1.TokenType.parenL) || (0, index_1.match)(types_1.TokenType.lessThan)) {\n            // constructor signature\n            tsParseSignatureMember();\n        }\n        else {\n            tsParsePropertyOrMethodSignature(false);\n        }\n        return;\n    }\n    const readonly = !!tsParseModifier([keywords_1.ContextualKeyword._readonly]);\n    const found = tsTryParseIndexSignature();\n    if (found) {\n        return;\n    }\n    if (((0, util_1.isContextual)(keywords_1.ContextualKeyword._get) || (0, util_1.isContextual)(keywords_1.ContextualKeyword._set)) &&\n        tsNextTokenCanFollowModifier()) {\n        // This is a getter/setter on a type. The tsNextTokenCanFollowModifier\n        // function already called next() for us, so continue parsing the name.\n    }\n    (0, expression_1.parsePropertyName)(-1 /* Types don't need context IDs. */);\n    tsParsePropertyOrMethodSignature(readonly);\n}\nfunction tsParseTypeLiteral() {\n    tsParseObjectTypeMembers();\n}\nfunction tsParseObjectTypeMembers() {\n    (0, util_1.expect)(types_1.TokenType.braceL);\n    while (!(0, index_1.eat)(types_1.TokenType.braceR) && !base_1.state.error) {\n        tsParseTypeMember();\n    }\n}\nfunction tsLookaheadIsStartOfMappedType() {\n    const snapshot = base_1.state.snapshot();\n    const isStartOfMappedType = tsIsStartOfMappedType();\n    base_1.state.restoreFromSnapshot(snapshot);\n    return isStartOfMappedType;\n}\nfunction tsIsStartOfMappedType() {\n    (0, index_1.next)();\n    if ((0, index_1.eat)(types_1.TokenType.plus) || (0, index_1.eat)(types_1.TokenType.minus)) {\n        return (0, util_1.isContextual)(keywords_1.ContextualKeyword._readonly);\n    }\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._readonly)) {\n        (0, index_1.next)();\n    }\n    if (!(0, index_1.match)(types_1.TokenType.bracketL)) {\n        return false;\n    }\n    (0, index_1.next)();\n    if (!tsIsIdentifier()) {\n        return false;\n    }\n    (0, index_1.next)();\n    return (0, index_1.match)(types_1.TokenType._in);\n}\nfunction tsParseMappedTypeParameter() {\n    (0, expression_1.parseIdentifier)();\n    (0, util_1.expect)(types_1.TokenType._in);\n    tsParseType();\n}\nfunction tsParseMappedType() {\n    (0, util_1.expect)(types_1.TokenType.braceL);\n    if ((0, index_1.match)(types_1.TokenType.plus) || (0, index_1.match)(types_1.TokenType.minus)) {\n        (0, index_1.next)();\n        (0, util_1.expectContextual)(keywords_1.ContextualKeyword._readonly);\n    }\n    else {\n        (0, util_1.eatContextual)(keywords_1.ContextualKeyword._readonly);\n    }\n    (0, util_1.expect)(types_1.TokenType.bracketL);\n    tsParseMappedTypeParameter();\n    if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._as)) {\n        tsParseType();\n    }\n    (0, util_1.expect)(types_1.TokenType.bracketR);\n    if ((0, index_1.match)(types_1.TokenType.plus) || (0, index_1.match)(types_1.TokenType.minus)) {\n        (0, index_1.next)();\n        (0, util_1.expect)(types_1.TokenType.question);\n    }\n    else {\n        (0, index_1.eat)(types_1.TokenType.question);\n    }\n    tsTryParseType();\n    (0, util_1.semicolon)();\n    (0, util_1.expect)(types_1.TokenType.braceR);\n}\nfunction tsParseTupleType() {\n    (0, util_1.expect)(types_1.TokenType.bracketL);\n    while (!(0, index_1.eat)(types_1.TokenType.bracketR) && !base_1.state.error) {\n        // Do not validate presence of either none or only labeled elements\n        tsParseTupleElementType();\n        (0, index_1.eat)(types_1.TokenType.comma);\n    }\n}\nfunction tsParseTupleElementType() {\n    // parses `...TsType[]`\n    if ((0, index_1.eat)(types_1.TokenType.ellipsis)) {\n        tsParseType();\n    }\n    else {\n        // parses `TsType?`\n        tsParseType();\n        (0, index_1.eat)(types_1.TokenType.question);\n    }\n    // The type we parsed above was actually a label\n    if ((0, index_1.eat)(types_1.TokenType.colon)) {\n        // Labeled tuple types must affix the label with `...` or `?`, so no need to handle those here\n        tsParseType();\n    }\n}\nfunction tsParseParenthesizedType() {\n    (0, util_1.expect)(types_1.TokenType.parenL);\n    tsParseType();\n    (0, util_1.expect)(types_1.TokenType.parenR);\n}\nfunction tsParseTemplateLiteralType() {\n    // Finish `, read quasi\n    (0, index_1.nextTemplateToken)();\n    // Finish quasi, read ${\n    (0, index_1.nextTemplateToken)();\n    while (!(0, index_1.match)(types_1.TokenType.backQuote) && !base_1.state.error) {\n        (0, util_1.expect)(types_1.TokenType.dollarBraceL);\n        tsParseType();\n        // Finish }, read quasi\n        (0, index_1.nextTemplateToken)();\n        // Finish quasi, read either ${ or `\n        (0, index_1.nextTemplateToken)();\n    }\n    (0, index_1.next)();\n}\nvar FunctionType;\n(function (FunctionType) {\n    const TSFunctionType = 0;\n    FunctionType[FunctionType[\"TSFunctionType\"] = TSFunctionType] = \"TSFunctionType\";\n    const TSConstructorType = TSFunctionType + 1;\n    FunctionType[FunctionType[\"TSConstructorType\"] = TSConstructorType] = \"TSConstructorType\";\n    const TSAbstractConstructorType = TSConstructorType + 1;\n    FunctionType[FunctionType[\"TSAbstractConstructorType\"] = TSAbstractConstructorType] = \"TSAbstractConstructorType\";\n})(FunctionType || (FunctionType = {}));\nfunction tsParseFunctionOrConstructorType(type) {\n    if (type === FunctionType.TSAbstractConstructorType) {\n        (0, util_1.expectContextual)(keywords_1.ContextualKeyword._abstract);\n    }\n    if (type === FunctionType.TSConstructorType || type === FunctionType.TSAbstractConstructorType) {\n        (0, util_1.expect)(types_1.TokenType._new);\n    }\n    const oldInDisallowConditionalTypesContext = base_1.state.inDisallowConditionalTypesContext;\n    base_1.state.inDisallowConditionalTypesContext = false;\n    tsFillSignature(types_1.TokenType.arrow);\n    base_1.state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext;\n}\nfunction tsParseNonArrayType() {\n    switch (base_1.state.type) {\n        case types_1.TokenType.name:\n            tsParseTypeReference();\n            return;\n        case types_1.TokenType._void:\n        case types_1.TokenType._null:\n            (0, index_1.next)();\n            return;\n        case types_1.TokenType.string:\n        case types_1.TokenType.num:\n        case types_1.TokenType.bigint:\n        case types_1.TokenType.decimal:\n        case types_1.TokenType._true:\n        case types_1.TokenType._false:\n            (0, expression_1.parseLiteral)();\n            return;\n        case types_1.TokenType.minus:\n            (0, index_1.next)();\n            (0, expression_1.parseLiteral)();\n            return;\n        case types_1.TokenType._this: {\n            tsParseThisTypeNode();\n            if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._is) && !(0, util_1.hasPrecedingLineBreak)()) {\n                tsParseThisTypePredicate();\n            }\n            return;\n        }\n        case types_1.TokenType._typeof:\n            tsParseTypeQuery();\n            return;\n        case types_1.TokenType._import:\n            tsParseImportType();\n            return;\n        case types_1.TokenType.braceL:\n            if (tsLookaheadIsStartOfMappedType()) {\n                tsParseMappedType();\n            }\n            else {\n                tsParseTypeLiteral();\n            }\n            return;\n        case types_1.TokenType.bracketL:\n            tsParseTupleType();\n            return;\n        case types_1.TokenType.parenL:\n            tsParseParenthesizedType();\n            return;\n        case types_1.TokenType.backQuote:\n            tsParseTemplateLiteralType();\n            return;\n        default:\n            if (base_1.state.type & types_1.TokenType.IS_KEYWORD) {\n                (0, index_1.next)();\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType.name;\n                return;\n            }\n            break;\n    }\n    (0, util_1.unexpected)();\n}\nfunction tsParseArrayTypeOrHigher() {\n    tsParseNonArrayType();\n    while (!(0, util_1.hasPrecedingLineBreak)() && (0, index_1.eat)(types_1.TokenType.bracketL)) {\n        if (!(0, index_1.eat)(types_1.TokenType.bracketR)) {\n            // If we hit ] immediately, this is an array type, otherwise it's an indexed access type.\n            tsParseType();\n            (0, util_1.expect)(types_1.TokenType.bracketR);\n        }\n    }\n}\nfunction tsParseInferType() {\n    (0, util_1.expectContextual)(keywords_1.ContextualKeyword._infer);\n    (0, expression_1.parseIdentifier)();\n    if ((0, index_1.match)(types_1.TokenType._extends)) {\n        // Infer type constraints introduce an ambiguity about whether the \"extends\"\n        // is a constraint for this infer type or is another conditional type.\n        const snapshot = base_1.state.snapshot();\n        (0, util_1.expect)(types_1.TokenType._extends);\n        const oldInDisallowConditionalTypesContext = base_1.state.inDisallowConditionalTypesContext;\n        base_1.state.inDisallowConditionalTypesContext = true;\n        tsParseType();\n        base_1.state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext;\n        if (base_1.state.error || (!base_1.state.inDisallowConditionalTypesContext && (0, index_1.match)(types_1.TokenType.question))) {\n            base_1.state.restoreFromSnapshot(snapshot);\n        }\n    }\n}\nfunction tsParseTypeOperatorOrHigher() {\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._keyof) ||\n        (0, util_1.isContextual)(keywords_1.ContextualKeyword._unique) ||\n        (0, util_1.isContextual)(keywords_1.ContextualKeyword._readonly)) {\n        (0, index_1.next)();\n        tsParseTypeOperatorOrHigher();\n    }\n    else if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._infer)) {\n        tsParseInferType();\n    }\n    else {\n        const oldInDisallowConditionalTypesContext = base_1.state.inDisallowConditionalTypesContext;\n        base_1.state.inDisallowConditionalTypesContext = false;\n        tsParseArrayTypeOrHigher();\n        base_1.state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext;\n    }\n}\nfunction tsParseIntersectionTypeOrHigher() {\n    (0, index_1.eat)(types_1.TokenType.bitwiseAND);\n    tsParseTypeOperatorOrHigher();\n    if ((0, index_1.match)(types_1.TokenType.bitwiseAND)) {\n        while ((0, index_1.eat)(types_1.TokenType.bitwiseAND)) {\n            tsParseTypeOperatorOrHigher();\n        }\n    }\n}\nfunction tsParseUnionTypeOrHigher() {\n    (0, index_1.eat)(types_1.TokenType.bitwiseOR);\n    tsParseIntersectionTypeOrHigher();\n    if ((0, index_1.match)(types_1.TokenType.bitwiseOR)) {\n        while ((0, index_1.eat)(types_1.TokenType.bitwiseOR)) {\n            tsParseIntersectionTypeOrHigher();\n        }\n    }\n}\nfunction tsIsStartOfFunctionType() {\n    if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n        return true;\n    }\n    return (0, index_1.match)(types_1.TokenType.parenL) && tsLookaheadIsUnambiguouslyStartOfFunctionType();\n}\nfunction tsSkipParameterStart() {\n    if ((0, index_1.match)(types_1.TokenType.name) || (0, index_1.match)(types_1.TokenType._this)) {\n        (0, index_1.next)();\n        return true;\n    }\n    // If this is a possible array/object destructure, walk to the matching bracket/brace.\n    // The next token after will tell us definitively whether this is a function param.\n    if ((0, index_1.match)(types_1.TokenType.braceL) || (0, index_1.match)(types_1.TokenType.bracketL)) {\n        let depth = 1;\n        (0, index_1.next)();\n        while (depth > 0 && !base_1.state.error) {\n            if ((0, index_1.match)(types_1.TokenType.braceL) || (0, index_1.match)(types_1.TokenType.bracketL)) {\n                depth++;\n            }\n            else if ((0, index_1.match)(types_1.TokenType.braceR) || (0, index_1.match)(types_1.TokenType.bracketR)) {\n                depth--;\n            }\n            (0, index_1.next)();\n        }\n        return true;\n    }\n    return false;\n}\nfunction tsLookaheadIsUnambiguouslyStartOfFunctionType() {\n    const snapshot = base_1.state.snapshot();\n    const isUnambiguouslyStartOfFunctionType = tsIsUnambiguouslyStartOfFunctionType();\n    base_1.state.restoreFromSnapshot(snapshot);\n    return isUnambiguouslyStartOfFunctionType;\n}\nfunction tsIsUnambiguouslyStartOfFunctionType() {\n    (0, index_1.next)();\n    if ((0, index_1.match)(types_1.TokenType.parenR) || (0, index_1.match)(types_1.TokenType.ellipsis)) {\n        // ( )\n        // ( ...\n        return true;\n    }\n    if (tsSkipParameterStart()) {\n        if ((0, index_1.match)(types_1.TokenType.colon) || (0, index_1.match)(types_1.TokenType.comma) || (0, index_1.match)(types_1.TokenType.question) || (0, index_1.match)(types_1.TokenType.eq)) {\n            // ( xxx :\n            // ( xxx ,\n            // ( xxx ?\n            // ( xxx =\n            return true;\n        }\n        if ((0, index_1.match)(types_1.TokenType.parenR)) {\n            (0, index_1.next)();\n            if ((0, index_1.match)(types_1.TokenType.arrow)) {\n                // ( xxx ) =>\n                return true;\n            }\n        }\n    }\n    return false;\n}\nfunction tsParseTypeOrTypePredicateAnnotation(returnToken) {\n    const oldIsType = (0, index_1.pushTypeContext)(0);\n    (0, util_1.expect)(returnToken);\n    const finishedReturn = tsParseTypePredicateOrAssertsPrefix();\n    if (!finishedReturn) {\n        tsParseType();\n    }\n    (0, index_1.popTypeContext)(oldIsType);\n}\nfunction tsTryParseTypeOrTypePredicateAnnotation() {\n    if ((0, index_1.match)(types_1.TokenType.colon)) {\n        tsParseTypeOrTypePredicateAnnotation(types_1.TokenType.colon);\n    }\n}\nfunction tsTryParseTypeAnnotation() {\n    if ((0, index_1.match)(types_1.TokenType.colon)) {\n        tsParseTypeAnnotation();\n    }\n}\nfunction tsTryParseType() {\n    if ((0, index_1.eat)(types_1.TokenType.colon)) {\n        tsParseType();\n    }\n}\n/**\n * Detect a few special return syntax cases: `x is T`, `asserts x`, `asserts x is T`,\n * `asserts this is T`.\n *\n * Returns true if we parsed the return type, false if there's still a type to be parsed.\n */\nfunction tsParseTypePredicateOrAssertsPrefix() {\n    const snapshot = base_1.state.snapshot();\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._asserts)) {\n        // Normally this is `asserts x is T`, but at this point, it might be `asserts is T` (a user-\n        // defined type guard on the `asserts` variable) or just a type called `asserts`.\n        (0, index_1.next)();\n        if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._is)) {\n            // If we see `asserts is`, then this must be of the form `asserts is T`, since\n            // `asserts is is T` isn't valid.\n            tsParseType();\n            return true;\n        }\n        else if (tsIsIdentifier() || (0, index_1.match)(types_1.TokenType._this)) {\n            (0, index_1.next)();\n            if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._is)) {\n                // If we see `is`, then this is `asserts x is T`. Otherwise, it's `asserts x`.\n                tsParseType();\n            }\n            return true;\n        }\n        else {\n            // Regular type, so bail out and start type parsing from scratch.\n            base_1.state.restoreFromSnapshot(snapshot);\n            return false;\n        }\n    }\n    else if (tsIsIdentifier() || (0, index_1.match)(types_1.TokenType._this)) {\n        // This is a regular identifier, which may or may not have \"is\" after it.\n        (0, index_1.next)();\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._is) && !(0, util_1.hasPrecedingLineBreak)()) {\n            (0, index_1.next)();\n            tsParseType();\n            return true;\n        }\n        else {\n            // Regular type, so bail out and start type parsing from scratch.\n            base_1.state.restoreFromSnapshot(snapshot);\n            return false;\n        }\n    }\n    return false;\n}\nfunction tsParseTypeAnnotation() {\n    const oldIsType = (0, index_1.pushTypeContext)(0);\n    (0, util_1.expect)(types_1.TokenType.colon);\n    tsParseType();\n    (0, index_1.popTypeContext)(oldIsType);\n}\nfunction tsParseType() {\n    tsParseNonConditionalType();\n    if (base_1.state.inDisallowConditionalTypesContext || (0, util_1.hasPrecedingLineBreak)() || !(0, index_1.eat)(types_1.TokenType._extends)) {\n        return;\n    }\n    // extends type\n    const oldInDisallowConditionalTypesContext = base_1.state.inDisallowConditionalTypesContext;\n    base_1.state.inDisallowConditionalTypesContext = true;\n    tsParseNonConditionalType();\n    base_1.state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext;\n    (0, util_1.expect)(types_1.TokenType.question);\n    // true type\n    tsParseType();\n    (0, util_1.expect)(types_1.TokenType.colon);\n    // false type\n    tsParseType();\n}\nfunction isAbstractConstructorSignature() {\n    return (0, util_1.isContextual)(keywords_1.ContextualKeyword._abstract) && (0, index_1.lookaheadType)() === types_1.TokenType._new;\n}\nfunction tsParseNonConditionalType() {\n    if (tsIsStartOfFunctionType()) {\n        tsParseFunctionOrConstructorType(FunctionType.TSFunctionType);\n        return;\n    }\n    if ((0, index_1.match)(types_1.TokenType._new)) {\n        // As in `new () => Date`\n        tsParseFunctionOrConstructorType(FunctionType.TSConstructorType);\n        return;\n    }\n    else if (isAbstractConstructorSignature()) {\n        // As in `abstract new () => Date`\n        tsParseFunctionOrConstructorType(FunctionType.TSAbstractConstructorType);\n        return;\n    }\n    tsParseUnionTypeOrHigher();\n}\nfunction tsParseTypeAssertion() {\n    const oldIsType = (0, index_1.pushTypeContext)(1);\n    tsParseType();\n    (0, util_1.expect)(types_1.TokenType.greaterThan);\n    (0, index_1.popTypeContext)(oldIsType);\n    (0, expression_1.parseMaybeUnary)();\n}\nfunction tsTryParseJSXTypeArgument() {\n    if ((0, index_1.eat)(types_1.TokenType.jsxTagStart)) {\n        base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType.typeParameterStart;\n        const oldIsType = (0, index_1.pushTypeContext)(1);\n        while (!(0, index_1.match)(types_1.TokenType.greaterThan) && !base_1.state.error) {\n            tsParseType();\n            (0, index_1.eat)(types_1.TokenType.comma);\n        }\n        // Process >, but the one after needs to be parsed JSX-style.\n        (0, jsx_1.nextJSXTagToken)();\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n}\nfunction tsParseHeritageClause() {\n    while (!(0, index_1.match)(types_1.TokenType.braceL) && !base_1.state.error) {\n        tsParseExpressionWithTypeArguments();\n        (0, index_1.eat)(types_1.TokenType.comma);\n    }\n}\nfunction tsParseExpressionWithTypeArguments() {\n    // Note: TS uses parseLeftHandSideExpressionOrHigher,\n    // then has grammar errors later if it's not an EntityName.\n    tsParseEntityName();\n    if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n        tsParseTypeArguments();\n    }\n}\nfunction tsParseInterfaceDeclaration() {\n    (0, lval_1.parseBindingIdentifier)(false);\n    tsTryParseTypeParameters();\n    if ((0, index_1.eat)(types_1.TokenType._extends)) {\n        tsParseHeritageClause();\n    }\n    tsParseObjectTypeMembers();\n}\nfunction tsParseTypeAliasDeclaration() {\n    (0, lval_1.parseBindingIdentifier)(false);\n    tsTryParseTypeParameters();\n    (0, util_1.expect)(types_1.TokenType.eq);\n    tsParseType();\n    (0, util_1.semicolon)();\n}\nfunction tsParseEnumMember() {\n    // Computed property names are grammar errors in an enum, so accept just string literal or identifier.\n    if ((0, index_1.match)(types_1.TokenType.string)) {\n        (0, expression_1.parseLiteral)();\n    }\n    else {\n        (0, expression_1.parseIdentifier)();\n    }\n    if ((0, index_1.eat)(types_1.TokenType.eq)) {\n        const eqIndex = base_1.state.tokens.length - 1;\n        (0, expression_1.parseMaybeAssign)();\n        base_1.state.tokens[eqIndex].rhsEndIndex = base_1.state.tokens.length;\n    }\n}\nfunction tsParseEnumDeclaration() {\n    (0, lval_1.parseBindingIdentifier)(false);\n    (0, util_1.expect)(types_1.TokenType.braceL);\n    while (!(0, index_1.eat)(types_1.TokenType.braceR) && !base_1.state.error) {\n        tsParseEnumMember();\n        (0, index_1.eat)(types_1.TokenType.comma);\n    }\n}\nfunction tsParseModuleBlock() {\n    (0, util_1.expect)(types_1.TokenType.braceL);\n    (0, statement_1.parseBlockBody)(/* end */ types_1.TokenType.braceR);\n}\nfunction tsParseModuleOrNamespaceDeclaration() {\n    (0, lval_1.parseBindingIdentifier)(false);\n    if ((0, index_1.eat)(types_1.TokenType.dot)) {\n        tsParseModuleOrNamespaceDeclaration();\n    }\n    else {\n        tsParseModuleBlock();\n    }\n}\nfunction tsParseAmbientExternalModuleDeclaration() {\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._global)) {\n        (0, expression_1.parseIdentifier)();\n    }\n    else if ((0, index_1.match)(types_1.TokenType.string)) {\n        (0, expression_1.parseExprAtom)();\n    }\n    else {\n        (0, util_1.unexpected)();\n    }\n    if ((0, index_1.match)(types_1.TokenType.braceL)) {\n        tsParseModuleBlock();\n    }\n    else {\n        (0, util_1.semicolon)();\n    }\n}\nfunction tsParseImportEqualsDeclaration() {\n    (0, lval_1.parseImportedIdentifier)();\n    (0, util_1.expect)(types_1.TokenType.eq);\n    tsParseModuleReference();\n    (0, util_1.semicolon)();\n}\nfunction tsIsExternalModuleReference() {\n    return (0, util_1.isContextual)(keywords_1.ContextualKeyword._require) && (0, index_1.lookaheadType)() === types_1.TokenType.parenL;\n}\nfunction tsParseModuleReference() {\n    if (tsIsExternalModuleReference()) {\n        tsParseExternalModuleReference();\n    }\n    else {\n        tsParseEntityName();\n    }\n}\nfunction tsParseExternalModuleReference() {\n    (0, util_1.expectContextual)(keywords_1.ContextualKeyword._require);\n    (0, util_1.expect)(types_1.TokenType.parenL);\n    if (!(0, index_1.match)(types_1.TokenType.string)) {\n        (0, util_1.unexpected)();\n    }\n    (0, expression_1.parseLiteral)();\n    (0, util_1.expect)(types_1.TokenType.parenR);\n}\n// Utilities\n// Returns true if a statement matched.\nfunction tsTryParseDeclare() {\n    if ((0, util_1.isLineTerminator)()) {\n        return false;\n    }\n    switch (base_1.state.type) {\n        case types_1.TokenType._function: {\n            const oldIsType = (0, index_1.pushTypeContext)(1);\n            (0, index_1.next)();\n            // We don't need to precisely get the function start here, since it's only used to mark\n            // the function as a type if it's bodiless, and it's already a type here.\n            const functionStart = base_1.state.start;\n            (0, statement_1.parseFunction)(functionStart, /* isStatement */ true);\n            (0, index_1.popTypeContext)(oldIsType);\n            return true;\n        }\n        case types_1.TokenType._class: {\n            const oldIsType = (0, index_1.pushTypeContext)(1);\n            (0, statement_1.parseClass)(/* isStatement */ true, /* optionalId */ false);\n            (0, index_1.popTypeContext)(oldIsType);\n            return true;\n        }\n        case types_1.TokenType._const: {\n            if ((0, index_1.match)(types_1.TokenType._const) && (0, util_1.isLookaheadContextual)(keywords_1.ContextualKeyword._enum)) {\n                const oldIsType = (0, index_1.pushTypeContext)(1);\n                // `const enum = 0;` not allowed because \"enum\" is a strict mode reserved word.\n                (0, util_1.expect)(types_1.TokenType._const);\n                (0, util_1.expectContextual)(keywords_1.ContextualKeyword._enum);\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._enum;\n                tsParseEnumDeclaration();\n                (0, index_1.popTypeContext)(oldIsType);\n                return true;\n            }\n        }\n        // falls through\n        case types_1.TokenType._var:\n        case types_1.TokenType._let: {\n            const oldIsType = (0, index_1.pushTypeContext)(1);\n            (0, statement_1.parseVarStatement)(base_1.state.type !== types_1.TokenType._var);\n            (0, index_1.popTypeContext)(oldIsType);\n            return true;\n        }\n        case types_1.TokenType.name: {\n            const oldIsType = (0, index_1.pushTypeContext)(1);\n            const contextualKeyword = base_1.state.contextualKeyword;\n            let matched = false;\n            if (contextualKeyword === keywords_1.ContextualKeyword._global) {\n                tsParseAmbientExternalModuleDeclaration();\n                matched = true;\n            }\n            else {\n                matched = tsParseDeclaration(contextualKeyword, /* isBeforeToken */ true);\n            }\n            (0, index_1.popTypeContext)(oldIsType);\n            return matched;\n        }\n        default:\n            return false;\n    }\n}\n// Note: this won't be called unless the keyword is allowed in `shouldParseExportDeclaration`.\n// Returns true if it matched a declaration.\nfunction tsTryParseExportDeclaration() {\n    return tsParseDeclaration(base_1.state.contextualKeyword, /* isBeforeToken */ true);\n}\n// Returns true if it matched a statement.\nfunction tsParseExpressionStatement(contextualKeyword) {\n    switch (contextualKeyword) {\n        case keywords_1.ContextualKeyword._declare: {\n            const declareTokenIndex = base_1.state.tokens.length - 1;\n            const matched = tsTryParseDeclare();\n            if (matched) {\n                base_1.state.tokens[declareTokenIndex].type = types_1.TokenType._declare;\n                return true;\n            }\n            break;\n        }\n        case keywords_1.ContextualKeyword._global:\n            // `global { }` (with no `declare`) may appear inside an ambient module declaration.\n            // Would like to use tsParseAmbientExternalModuleDeclaration here, but already ran past \"global\".\n            if ((0, index_1.match)(types_1.TokenType.braceL)) {\n                tsParseModuleBlock();\n                return true;\n            }\n            break;\n        default:\n            return tsParseDeclaration(contextualKeyword, /* isBeforeToken */ false);\n    }\n    return false;\n}\n/**\n * Common code for parsing a declaration.\n *\n * isBeforeToken indicates that the current parser state is at the contextual\n * keyword (and that it is not yet emitted) rather than reading the token after\n * it. When isBeforeToken is true, we may be preceded by an `export` token and\n * should include that token in a type context we create, e.g. to handle\n * `export interface` or `export type`. (This is a bit of a hack and should be\n * cleaned up at some point.)\n *\n * Returns true if it matched a declaration.\n */\nfunction tsParseDeclaration(contextualKeyword, isBeforeToken) {\n    switch (contextualKeyword) {\n        case keywords_1.ContextualKeyword._abstract:\n            if (tsCheckLineTerminator(isBeforeToken) && (0, index_1.match)(types_1.TokenType._class)) {\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._abstract;\n                (0, statement_1.parseClass)(/* isStatement */ true, /* optionalId */ false);\n                return true;\n            }\n            break;\n        case keywords_1.ContextualKeyword._enum:\n            if (tsCheckLineTerminator(isBeforeToken) && (0, index_1.match)(types_1.TokenType.name)) {\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._enum;\n                tsParseEnumDeclaration();\n                return true;\n            }\n            break;\n        case keywords_1.ContextualKeyword._interface:\n            if (tsCheckLineTerminator(isBeforeToken) && (0, index_1.match)(types_1.TokenType.name)) {\n                // `next` is true in \"export\" and \"declare\" contexts, so we want to remove that token\n                // as well.\n                const oldIsType = (0, index_1.pushTypeContext)(isBeforeToken ? 2 : 1);\n                tsParseInterfaceDeclaration();\n                (0, index_1.popTypeContext)(oldIsType);\n                return true;\n            }\n            break;\n        case keywords_1.ContextualKeyword._module:\n            if (tsCheckLineTerminator(isBeforeToken)) {\n                if ((0, index_1.match)(types_1.TokenType.string)) {\n                    const oldIsType = (0, index_1.pushTypeContext)(isBeforeToken ? 2 : 1);\n                    tsParseAmbientExternalModuleDeclaration();\n                    (0, index_1.popTypeContext)(oldIsType);\n                    return true;\n                }\n                else if ((0, index_1.match)(types_1.TokenType.name)) {\n                    const oldIsType = (0, index_1.pushTypeContext)(isBeforeToken ? 2 : 1);\n                    tsParseModuleOrNamespaceDeclaration();\n                    (0, index_1.popTypeContext)(oldIsType);\n                    return true;\n                }\n            }\n            break;\n        case keywords_1.ContextualKeyword._namespace:\n            if (tsCheckLineTerminator(isBeforeToken) && (0, index_1.match)(types_1.TokenType.name)) {\n                const oldIsType = (0, index_1.pushTypeContext)(isBeforeToken ? 2 : 1);\n                tsParseModuleOrNamespaceDeclaration();\n                (0, index_1.popTypeContext)(oldIsType);\n                return true;\n            }\n            break;\n        case keywords_1.ContextualKeyword._type:\n            if (tsCheckLineTerminator(isBeforeToken) && (0, index_1.match)(types_1.TokenType.name)) {\n                const oldIsType = (0, index_1.pushTypeContext)(isBeforeToken ? 2 : 1);\n                tsParseTypeAliasDeclaration();\n                (0, index_1.popTypeContext)(oldIsType);\n                return true;\n            }\n            break;\n        default:\n            break;\n    }\n    return false;\n}\nfunction tsCheckLineTerminator(isBeforeToken) {\n    if (isBeforeToken) {\n        // Babel checks hasFollowingLineBreak here and returns false, but this\n        // doesn't actually come up, e.g. `export interface` can never be on its own\n        // line in valid code.\n        (0, index_1.next)();\n        return true;\n    }\n    else {\n        return !(0, util_1.isLineTerminator)();\n    }\n}\n// Returns true if there was a generic async arrow function.\nfunction tsTryParseGenericAsyncArrowFunction() {\n    const snapshot = base_1.state.snapshot();\n    tsParseTypeParameters();\n    (0, statement_1.parseFunctionParams)();\n    tsTryParseTypeOrTypePredicateAnnotation();\n    (0, util_1.expect)(types_1.TokenType.arrow);\n    if (base_1.state.error) {\n        base_1.state.restoreFromSnapshot(snapshot);\n        return false;\n    }\n    (0, expression_1.parseFunctionBody)(true);\n    return true;\n}\n/**\n * If necessary, hack the tokenizer state so that this bitshift was actually a\n * less-than token, then keep parsing. This should only be used in situations\n * where we restore from snapshot on error (which reverts this change) or\n * where bitshift would be illegal anyway (e.g. in a class \"extends\" clause).\n *\n * This hack is useful to handle situations like foo<<T>() => void>() where\n * there can legitimately be two open-angle-brackets in a row in TS.\n */\nfunction tsParseTypeArgumentsWithPossibleBitshift() {\n    if (base_1.state.type === types_1.TokenType.bitShiftL) {\n        base_1.state.pos -= 1;\n        (0, index_1.finishToken)(types_1.TokenType.lessThan);\n    }\n    tsParseTypeArguments();\n}\nfunction tsParseTypeArguments() {\n    const oldIsType = (0, index_1.pushTypeContext)(0);\n    (0, util_1.expect)(types_1.TokenType.lessThan);\n    while (!(0, index_1.match)(types_1.TokenType.greaterThan) && !base_1.state.error) {\n        tsParseType();\n        (0, index_1.eat)(types_1.TokenType.comma);\n    }\n    if (!oldIsType) {\n        // If the type arguments are present in an expression context, e.g.\n        // f<number>(), then the > sign should be tokenized as a non-type token.\n        // In particular, f(a < b, c >= d) should parse the >= as a single token,\n        // resulting in a syntax error and fallback to the non-type-args\n        // interpretation. In the success case, even though the > is tokenized as a\n        // non-type token, it still must be marked as a type token so that it is\n        // erased.\n        (0, index_1.popTypeContext)(oldIsType);\n        (0, index_1.rescan_gt)();\n        (0, util_1.expect)(types_1.TokenType.greaterThan);\n        base_1.state.tokens[base_1.state.tokens.length - 1].isType = true;\n    }\n    else {\n        (0, util_1.expect)(types_1.TokenType.greaterThan);\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n}\nfunction tsIsDeclarationStart() {\n    if ((0, index_1.match)(types_1.TokenType.name)) {\n        switch (base_1.state.contextualKeyword) {\n            case keywords_1.ContextualKeyword._abstract:\n            case keywords_1.ContextualKeyword._declare:\n            case keywords_1.ContextualKeyword._enum:\n            case keywords_1.ContextualKeyword._interface:\n            case keywords_1.ContextualKeyword._module:\n            case keywords_1.ContextualKeyword._namespace:\n            case keywords_1.ContextualKeyword._type:\n                return true;\n            default:\n                break;\n        }\n    }\n    return false;\n}\n// ======================================================\n// OVERRIDES\n// ======================================================\nfunction tsParseFunctionBodyAndFinish(functionStart, funcContextId) {\n    // For arrow functions, `parseArrow` handles the return type itself.\n    if ((0, index_1.match)(types_1.TokenType.colon)) {\n        tsParseTypeOrTypePredicateAnnotation(types_1.TokenType.colon);\n    }\n    // The original code checked the node type to make sure this function type allows a missing\n    // body, but we skip that to avoid sending around the node type. We instead just use the\n    // allowExpressionBody boolean to make sure it's not an arrow function.\n    if (!(0, index_1.match)(types_1.TokenType.braceL) && (0, util_1.isLineTerminator)()) {\n        // Retroactively mark the function declaration as a type.\n        let i = base_1.state.tokens.length - 1;\n        while (i >= 0 &&\n            (base_1.state.tokens[i].start >= functionStart ||\n                base_1.state.tokens[i].type === types_1.TokenType._default ||\n                base_1.state.tokens[i].type === types_1.TokenType._export)) {\n            base_1.state.tokens[i].isType = true;\n            i--;\n        }\n        return;\n    }\n    (0, expression_1.parseFunctionBody)(false, funcContextId);\n}\nfunction tsParseSubscript(startTokenIndex, noCalls, stopState) {\n    if (!(0, util_1.hasPrecedingLineBreak)() && (0, index_1.eat)(types_1.TokenType.bang)) {\n        base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType.nonNullAssertion;\n        return;\n    }\n    if ((0, index_1.match)(types_1.TokenType.lessThan) || (0, index_1.match)(types_1.TokenType.bitShiftL)) {\n        // There are number of things we are going to \"maybe\" parse, like type arguments on\n        // tagged template expressions. If any of them fail, walk it back and continue.\n        const snapshot = base_1.state.snapshot();\n        if (!noCalls && (0, expression_1.atPossibleAsync)()) {\n            // Almost certainly this is a generic async function `async <T>() => ...\n            // But it might be a call with a type argument `async<T>();`\n            const asyncArrowFn = tsTryParseGenericAsyncArrowFunction();\n            if (asyncArrowFn) {\n                return;\n            }\n        }\n        tsParseTypeArgumentsWithPossibleBitshift();\n        if (!noCalls && (0, index_1.eat)(types_1.TokenType.parenL)) {\n            // With f<T>(), the subscriptStartIndex marker is on the ( token.\n            base_1.state.tokens[base_1.state.tokens.length - 1].subscriptStartIndex = startTokenIndex;\n            (0, expression_1.parseCallExpressionArguments)();\n        }\n        else if ((0, index_1.match)(types_1.TokenType.backQuote)) {\n            // Tagged template with a type argument.\n            (0, expression_1.parseTemplate)();\n        }\n        else if (\n        // The remaining possible case is an instantiation expression, e.g.\n        // Array<number> . Check for a few cases that would disqualify it and\n        // cause us to bail out.\n        // a<b>>c is not (a<b>)>c, but a<(b>>c)\n        base_1.state.type === types_1.TokenType.greaterThan ||\n            // a<b>c is (a<b)>c\n            (base_1.state.type !== types_1.TokenType.parenL &&\n                Boolean(base_1.state.type & types_1.TokenType.IS_EXPRESSION_START) &&\n                !(0, util_1.hasPrecedingLineBreak)())) {\n            // Bail out. We have something like a<b>c, which is not an expression with\n            // type arguments but an (a < b) > c comparison.\n            (0, util_1.unexpected)();\n        }\n        if (base_1.state.error) {\n            base_1.state.restoreFromSnapshot(snapshot);\n        }\n        else {\n            return;\n        }\n    }\n    else if (!noCalls && (0, index_1.match)(types_1.TokenType.questionDot) && (0, index_1.lookaheadType)() === types_1.TokenType.lessThan) {\n        // If we see f?.<, then this must be an optional call with a type argument.\n        (0, index_1.next)();\n        base_1.state.tokens[startTokenIndex].isOptionalChainStart = true;\n        // With f?.<T>(), the subscriptStartIndex marker is on the ?. token.\n        base_1.state.tokens[base_1.state.tokens.length - 1].subscriptStartIndex = startTokenIndex;\n        tsParseTypeArguments();\n        (0, util_1.expect)(types_1.TokenType.parenL);\n        (0, expression_1.parseCallExpressionArguments)();\n    }\n    (0, expression_1.baseParseSubscript)(startTokenIndex, noCalls, stopState);\n}\nfunction tsTryParseExport() {\n    if ((0, index_1.eat)(types_1.TokenType._import)) {\n        // One of these cases:\n        // export import A = B;\n        // export import type A = require(\"A\");\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._type) && (0, index_1.lookaheadType)() !== types_1.TokenType.eq) {\n            // Eat a `type` token, unless it's actually an identifier name.\n            (0, util_1.expectContextual)(keywords_1.ContextualKeyword._type);\n        }\n        tsParseImportEqualsDeclaration();\n        return true;\n    }\n    else if ((0, index_1.eat)(types_1.TokenType.eq)) {\n        // `export = x;`\n        (0, expression_1.parseExpression)();\n        (0, util_1.semicolon)();\n        return true;\n    }\n    else if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._as)) {\n        // `export as namespace A;`\n        // See `parseNamespaceExportDeclaration` in TypeScript's own parser\n        (0, util_1.expectContextual)(keywords_1.ContextualKeyword._namespace);\n        (0, expression_1.parseIdentifier)();\n        (0, util_1.semicolon)();\n        return true;\n    }\n    else {\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._type)) {\n            const nextType = (0, index_1.lookaheadType)();\n            // export type {foo} from 'a';\n            // export type * from 'a';'\n            // export type * as ns from 'a';'\n            if (nextType === types_1.TokenType.braceL || nextType === types_1.TokenType.star) {\n                (0, index_1.next)();\n            }\n        }\n        return false;\n    }\n}\n/**\n * Parse a TS import specifier, which may be prefixed with \"type\" and may be of\n * the form `foo as bar`.\n *\n * The number of identifier-like tokens we see happens to be enough to uniquely\n * identify the form, so simply count the number of identifiers rather than\n * matching the words `type` or `as`. This is particularly important because\n * `type` and `as` could each actually be plain identifiers rather than\n * keywords.\n */\nfunction tsParseImportSpecifier() {\n    (0, expression_1.parseIdentifier)();\n    if ((0, index_1.match)(types_1.TokenType.comma) || (0, index_1.match)(types_1.TokenType.braceR)) {\n        // import {foo}\n        base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_1.IdentifierRole.ImportDeclaration;\n        return;\n    }\n    (0, expression_1.parseIdentifier)();\n    if ((0, index_1.match)(types_1.TokenType.comma) || (0, index_1.match)(types_1.TokenType.braceR)) {\n        // import {type foo}\n        base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_1.IdentifierRole.ImportDeclaration;\n        base_1.state.tokens[base_1.state.tokens.length - 2].isType = true;\n        base_1.state.tokens[base_1.state.tokens.length - 1].isType = true;\n        return;\n    }\n    (0, expression_1.parseIdentifier)();\n    if ((0, index_1.match)(types_1.TokenType.comma) || (0, index_1.match)(types_1.TokenType.braceR)) {\n        // import {foo as bar}\n        base_1.state.tokens[base_1.state.tokens.length - 3].identifierRole = index_1.IdentifierRole.ImportAccess;\n        base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_1.IdentifierRole.ImportDeclaration;\n        return;\n    }\n    (0, expression_1.parseIdentifier)();\n    // import {type foo as bar}\n    base_1.state.tokens[base_1.state.tokens.length - 3].identifierRole = index_1.IdentifierRole.ImportAccess;\n    base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_1.IdentifierRole.ImportDeclaration;\n    base_1.state.tokens[base_1.state.tokens.length - 4].isType = true;\n    base_1.state.tokens[base_1.state.tokens.length - 3].isType = true;\n    base_1.state.tokens[base_1.state.tokens.length - 2].isType = true;\n    base_1.state.tokens[base_1.state.tokens.length - 1].isType = true;\n}\n/**\n * Just like named import specifiers, export specifiers can have from 1 to 4\n * tokens, inclusive, and the number of tokens determines the role of each token.\n */\nfunction tsParseExportSpecifier() {\n    (0, expression_1.parseIdentifier)();\n    if ((0, index_1.match)(types_1.TokenType.comma) || (0, index_1.match)(types_1.TokenType.braceR)) {\n        // export {foo}\n        base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_1.IdentifierRole.ExportAccess;\n        return;\n    }\n    (0, expression_1.parseIdentifier)();\n    if ((0, index_1.match)(types_1.TokenType.comma) || (0, index_1.match)(types_1.TokenType.braceR)) {\n        // export {type foo}\n        base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_1.IdentifierRole.ExportAccess;\n        base_1.state.tokens[base_1.state.tokens.length - 2].isType = true;\n        base_1.state.tokens[base_1.state.tokens.length - 1].isType = true;\n        return;\n    }\n    (0, expression_1.parseIdentifier)();\n    if ((0, index_1.match)(types_1.TokenType.comma) || (0, index_1.match)(types_1.TokenType.braceR)) {\n        // export {foo as bar}\n        base_1.state.tokens[base_1.state.tokens.length - 3].identifierRole = index_1.IdentifierRole.ExportAccess;\n        return;\n    }\n    (0, expression_1.parseIdentifier)();\n    // export {type foo as bar}\n    base_1.state.tokens[base_1.state.tokens.length - 3].identifierRole = index_1.IdentifierRole.ExportAccess;\n    base_1.state.tokens[base_1.state.tokens.length - 4].isType = true;\n    base_1.state.tokens[base_1.state.tokens.length - 3].isType = true;\n    base_1.state.tokens[base_1.state.tokens.length - 2].isType = true;\n    base_1.state.tokens[base_1.state.tokens.length - 1].isType = true;\n}\nfunction tsTryParseExportDefaultExpression() {\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._abstract) && (0, index_1.lookaheadType)() === types_1.TokenType._class) {\n        base_1.state.type = types_1.TokenType._abstract;\n        (0, index_1.next)(); // Skip \"abstract\"\n        (0, statement_1.parseClass)(true, true);\n        return true;\n    }\n    if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._interface)) {\n        // Make sure \"export default\" are considered type tokens so the whole thing is removed.\n        const oldIsType = (0, index_1.pushTypeContext)(2);\n        tsParseDeclaration(keywords_1.ContextualKeyword._interface, true);\n        (0, index_1.popTypeContext)(oldIsType);\n        return true;\n    }\n    return false;\n}\nfunction tsTryParseStatementContent() {\n    if (base_1.state.type === types_1.TokenType._const) {\n        const ahead = (0, index_1.lookaheadTypeAndKeyword)();\n        if (ahead.type === types_1.TokenType.name && ahead.contextualKeyword === keywords_1.ContextualKeyword._enum) {\n            (0, util_1.expect)(types_1.TokenType._const);\n            (0, util_1.expectContextual)(keywords_1.ContextualKeyword._enum);\n            base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._enum;\n            tsParseEnumDeclaration();\n            return true;\n        }\n    }\n    return false;\n}\nfunction tsTryParseClassMemberWithIsStatic(isStatic) {\n    const memberStartIndexAfterStatic = base_1.state.tokens.length;\n    tsParseModifiers([\n        keywords_1.ContextualKeyword._abstract,\n        keywords_1.ContextualKeyword._readonly,\n        keywords_1.ContextualKeyword._declare,\n        keywords_1.ContextualKeyword._static,\n        keywords_1.ContextualKeyword._override,\n    ]);\n    const modifiersEndIndex = base_1.state.tokens.length;\n    const found = tsTryParseIndexSignature();\n    if (found) {\n        // Index signatures are type declarations, so set the modifier tokens as\n        // type tokens. Most tokens could be assumed to be type tokens, but `static`\n        // is ambiguous unless we set it explicitly here.\n        const memberStartIndex = isStatic\n            ? memberStartIndexAfterStatic - 1\n            : memberStartIndexAfterStatic;\n        for (let i = memberStartIndex; i < modifiersEndIndex; i++) {\n            base_1.state.tokens[i].isType = true;\n        }\n        return true;\n    }\n    return false;\n}\n// Note: The reason we do this in `parseIdentifierStatement` and not `parseStatement`\n// is that e.g. `type()` is valid JS, so we must try parsing that first.\n// If it's really a type, we will parse `type` as the statement, and can correct it here\n// by parsing the rest.\nfunction tsParseIdentifierStatement(contextualKeyword) {\n    const matched = tsParseExpressionStatement(contextualKeyword);\n    if (!matched) {\n        (0, util_1.semicolon)();\n    }\n}\nfunction tsParseExportDeclaration() {\n    // \"export declare\" is equivalent to just \"export\".\n    const isDeclare = (0, util_1.eatContextual)(keywords_1.ContextualKeyword._declare);\n    if (isDeclare) {\n        base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._declare;\n    }\n    let matchedDeclaration = false;\n    if ((0, index_1.match)(types_1.TokenType.name)) {\n        if (isDeclare) {\n            const oldIsType = (0, index_1.pushTypeContext)(2);\n            matchedDeclaration = tsTryParseExportDeclaration();\n            (0, index_1.popTypeContext)(oldIsType);\n        }\n        else {\n            matchedDeclaration = tsTryParseExportDeclaration();\n        }\n    }\n    if (!matchedDeclaration) {\n        if (isDeclare) {\n            const oldIsType = (0, index_1.pushTypeContext)(2);\n            (0, statement_1.parseStatement)(true);\n            (0, index_1.popTypeContext)(oldIsType);\n        }\n        else {\n            (0, statement_1.parseStatement)(true);\n        }\n    }\n}\nfunction tsAfterParseClassSuper(hasSuper) {\n    if (hasSuper && ((0, index_1.match)(types_1.TokenType.lessThan) || (0, index_1.match)(types_1.TokenType.bitShiftL))) {\n        tsParseTypeArgumentsWithPossibleBitshift();\n    }\n    if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._implements)) {\n        base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._implements;\n        const oldIsType = (0, index_1.pushTypeContext)(1);\n        tsParseHeritageClause();\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n}\nfunction tsStartParseObjPropValue() {\n    tsTryParseTypeParameters();\n}\nfunction tsStartParseFunctionParams() {\n    tsTryParseTypeParameters();\n}\n// `let x: number;`\nfunction tsAfterParseVarHead() {\n    const oldIsType = (0, index_1.pushTypeContext)(0);\n    if (!(0, util_1.hasPrecedingLineBreak)()) {\n        (0, index_1.eat)(types_1.TokenType.bang);\n    }\n    tsTryParseTypeAnnotation();\n    (0, index_1.popTypeContext)(oldIsType);\n}\n// parse the return type of an async arrow function - let foo = (async (): number => {});\nfunction tsStartParseAsyncArrowFromCallExpression() {\n    if ((0, index_1.match)(types_1.TokenType.colon)) {\n        tsParseTypeAnnotation();\n    }\n}\n// Returns true if the expression was an arrow function.\nfunction tsParseMaybeAssign(noIn, isWithinParens) {\n    // Note: When the JSX plugin is on, type assertions (`<T> x`) aren't valid syntax.\n    if (base_1.isJSXEnabled) {\n        return tsParseMaybeAssignWithJSX(noIn, isWithinParens);\n    }\n    else {\n        return tsParseMaybeAssignWithoutJSX(noIn, isWithinParens);\n    }\n}\nfunction tsParseMaybeAssignWithJSX(noIn, isWithinParens) {\n    if (!(0, index_1.match)(types_1.TokenType.lessThan)) {\n        return (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n    }\n    // Prefer to parse JSX if possible. But may be an arrow fn.\n    const snapshot = base_1.state.snapshot();\n    let wasArrow = (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n    if (base_1.state.error) {\n        base_1.state.restoreFromSnapshot(snapshot);\n    }\n    else {\n        return wasArrow;\n    }\n    // Otherwise, try as type-parameterized arrow function.\n    base_1.state.type = types_1.TokenType.typeParameterStart;\n    // This is similar to TypeScript's `tryParseParenthesizedArrowFunctionExpression`.\n    tsParseTypeParameters();\n    wasArrow = (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n    if (!wasArrow) {\n        (0, util_1.unexpected)();\n    }\n    return wasArrow;\n}\nfunction tsParseMaybeAssignWithoutJSX(noIn, isWithinParens) {\n    if (!(0, index_1.match)(types_1.TokenType.lessThan)) {\n        return (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n    }\n    const snapshot = base_1.state.snapshot();\n    // This is similar to TypeScript's `tryParseParenthesizedArrowFunctionExpression`.\n    tsParseTypeParameters();\n    const wasArrow = (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n    if (!wasArrow) {\n        (0, util_1.unexpected)();\n    }\n    if (base_1.state.error) {\n        base_1.state.restoreFromSnapshot(snapshot);\n    }\n    else {\n        return wasArrow;\n    }\n    // Try parsing a type cast instead of an arrow function.\n    // This will start with a type assertion (via parseMaybeUnary).\n    // But don't directly call `tsParseTypeAssertion` because we want to handle any binary after it.\n    return (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n}\nfunction tsParseArrow() {\n    if ((0, index_1.match)(types_1.TokenType.colon)) {\n        // This is different from how the TS parser does it.\n        // TS uses lookahead. Babylon parses it as a parenthesized expression and converts.\n        const snapshot = base_1.state.snapshot();\n        tsParseTypeOrTypePredicateAnnotation(types_1.TokenType.colon);\n        if ((0, util_1.canInsertSemicolon)())\n            (0, util_1.unexpected)();\n        if (!(0, index_1.match)(types_1.TokenType.arrow))\n            (0, util_1.unexpected)();\n        if (base_1.state.error) {\n            base_1.state.restoreFromSnapshot(snapshot);\n        }\n    }\n    return (0, index_1.eat)(types_1.TokenType.arrow);\n}\n// Allow type annotations inside of a parameter list.\nfunction tsParseAssignableListItemTypes() {\n    const oldIsType = (0, index_1.pushTypeContext)(0);\n    (0, index_1.eat)(types_1.TokenType.question);\n    tsTryParseTypeAnnotation();\n    (0, index_1.popTypeContext)(oldIsType);\n}\nfunction tsParseMaybeDecoratorArguments() {\n    if ((0, index_1.match)(types_1.TokenType.lessThan) || (0, index_1.match)(types_1.TokenType.bitShiftL)) {\n        tsParseTypeArgumentsWithPossibleBitshift();\n    }\n    (0, statement_1.baseParseMaybeDecoratorArguments)();\n}\n","type":"js","dependency_paths":[["../tokenizer/index","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["../tokenizer/keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"],["../tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["../traverser/base","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/base.js"],["../traverser/expression","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/expression.js"],["../traverser/lval","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/lval.js"],["../traverser/statement","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/statement.js"],["../traverser/util","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/util.js"],["./jsx","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/jsx/index.js"]],"dependency_map":[],"exported":[{"type":"named","name":"tsParseModifiers"},{"type":"named","name":"tsParseModifier"},{"type":"named","name":"tsTryParseTypeParameters"},{"type":"named","name":"tsTryParseTypeAnnotation"},{"type":"named","name":"tsParseTypeAnnotation"},{"type":"named","name":"tsParseType"},{"type":"named","name":"tsParseNonConditionalType"},{"type":"named","name":"tsParseTypeAssertion"},{"type":"named","name":"tsTryParseJSXTypeArgument"},{"type":"named","name":"tsParseImportEqualsDeclaration"},{"type":"named","name":"tsIsDeclarationStart"},{"type":"named","name":"tsParseFunctionBodyAndFinish"},{"type":"named","name":"tsParseSubscript"},{"type":"named","name":"tsTryParseExport"},{"type":"named","name":"tsParseImportSpecifier"},{"type":"named","name":"tsParseExportSpecifier"},{"type":"named","name":"tsTryParseExportDefaultExpression"},{"type":"named","name":"tsTryParseStatementContent"},{"type":"named","name":"tsTryParseClassMemberWithIsStatic"},{"type":"named","name":"tsParseIdentifierStatement"},{"type":"named","name":"tsParseExportDeclaration"},{"type":"named","name":"tsAfterParseClassSuper"},{"type":"named","name":"tsStartParseObjPropValue"},{"type":"named","name":"tsStartParseFunctionParams"},{"type":"named","name":"tsAfterParseVarHead"},{"type":"named","name":"tsStartParseAsyncArrowFromCallExpression"},{"type":"named","name":"tsParseMaybeAssign"},{"type":"named","name":"tsParseMaybeAssignWithJSX"},{"type":"named","name":"tsParseMaybeAssignWithoutJSX"},{"type":"named","name":"tsParseArrow"},{"type":"named","name":"tsParseAssignableListItemTypes"},{"type":"named","name":"tsParseMaybeDecoratorArguments"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/plugins/typescript.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.tsParseModifiers = tsParseModifiers;\n    exports.tsParseModifier = tsParseModifier;\n    exports.tsTryParseTypeParameters = tsTryParseTypeParameters;\n    exports.tsTryParseTypeAnnotation = tsTryParseTypeAnnotation;\n    exports.tsParseTypeAnnotation = tsParseTypeAnnotation;\n    exports.tsParseType = tsParseType;\n    exports.tsParseNonConditionalType = tsParseNonConditionalType;\n    exports.tsParseTypeAssertion = tsParseTypeAssertion;\n    exports.tsTryParseJSXTypeArgument = tsTryParseJSXTypeArgument;\n    exports.tsParseImportEqualsDeclaration = tsParseImportEqualsDeclaration;\n    exports.tsIsDeclarationStart = tsIsDeclarationStart;\n    exports.tsParseFunctionBodyAndFinish = tsParseFunctionBodyAndFinish;\n    exports.tsParseSubscript = tsParseSubscript;\n    exports.tsTryParseExport = tsTryParseExport;\n    exports.tsParseImportSpecifier = tsParseImportSpecifier;\n    exports.tsParseExportSpecifier = tsParseExportSpecifier;\n    exports.tsTryParseExportDefaultExpression = tsTryParseExportDefaultExpression;\n    exports.tsTryParseStatementContent = tsTryParseStatementContent;\n    exports.tsTryParseClassMemberWithIsStatic = tsTryParseClassMemberWithIsStatic;\n    exports.tsParseIdentifierStatement = tsParseIdentifierStatement;\n    exports.tsParseExportDeclaration = tsParseExportDeclaration;\n    exports.tsAfterParseClassSuper = tsAfterParseClassSuper;\n    exports.tsStartParseObjPropValue = tsStartParseObjPropValue;\n    exports.tsStartParseFunctionParams = tsStartParseFunctionParams;\n    exports.tsAfterParseVarHead = tsAfterParseVarHead;\n    exports.tsStartParseAsyncArrowFromCallExpression = tsStartParseAsyncArrowFromCallExpression;\n    exports.tsParseMaybeAssign = tsParseMaybeAssign;\n    exports.tsParseMaybeAssignWithJSX = tsParseMaybeAssignWithJSX;\n    exports.tsParseMaybeAssignWithoutJSX = tsParseMaybeAssignWithoutJSX;\n    exports.tsParseArrow = tsParseArrow;\n    exports.tsParseAssignableListItemTypes = tsParseAssignableListItemTypes;\n    exports.tsParseMaybeDecoratorArguments = tsParseMaybeDecoratorArguments;\n    const index_1 = require(\"bfb18d0576\") /* ../tokenizer/index */;\n    const keywords_1 = require(\"99ff836c64\") /* ../tokenizer/keywords */;\n    const types_1 = require(\"f0c35cbd76\") /* ../tokenizer/types */;\n    const base_1 = require(\"540718e523\") /* ../traverser/base */;\n    const expression_1 = require(\"8178e7c3c8\") /* ../traverser/expression */;\n    const lval_1 = require(\"4cefc59e67\") /* ../traverser/lval */;\n    const statement_1 = require(\"e3b9989da1\") /* ../traverser/statement */;\n    const util_1 = require(\"bc94bbadc1\") /* ../traverser/util */;\n    const jsx_1 = require(\"d7708a7d24\") /* ./jsx */;\n    function tsIsIdentifier() {\n        // TODO: actually a bit more complex in TypeScript, but shouldn't matter.\n        // See https://github.com/Microsoft/TypeScript/issues/15008\n        return (0, index_1.match)(types_1.TokenType.name);\n    }\n    function isLiteralPropertyName() {\n        return ((0, index_1.match)(types_1.TokenType.name) ||\n            Boolean(base_1.state.type & types_1.TokenType.IS_KEYWORD) ||\n            (0, index_1.match)(types_1.TokenType.string) ||\n            (0, index_1.match)(types_1.TokenType.num) ||\n            (0, index_1.match)(types_1.TokenType.bigint) ||\n            (0, index_1.match)(types_1.TokenType.decimal));\n    }\n    function tsNextTokenCanFollowModifier() {\n        // Note: TypeScript's implementation is much more complicated because\n        // more things are considered modifiers there.\n        // This implementation only handles modifiers not handled by babylon itself. And \"static\".\n        // TODO: Would be nice to avoid lookahead. Want a hasLineBreakUpNext() method...\n        const snapshot = base_1.state.snapshot();\n        (0, index_1.next)();\n        const canFollowModifier = ((0, index_1.match)(types_1.TokenType.bracketL) ||\n            (0, index_1.match)(types_1.TokenType.braceL) ||\n            (0, index_1.match)(types_1.TokenType.star) ||\n            (0, index_1.match)(types_1.TokenType.ellipsis) ||\n            (0, index_1.match)(types_1.TokenType.hash) ||\n            isLiteralPropertyName()) &&\n            !(0, util_1.hasPrecedingLineBreak)();\n        if (canFollowModifier) {\n            return true;\n        }\n        else {\n            base_1.state.restoreFromSnapshot(snapshot);\n            return false;\n        }\n    }\n    function tsParseModifiers(allowedModifiers) {\n        while (true) {\n            const modifier = tsParseModifier(allowedModifiers);\n            if (modifier === null) {\n                break;\n            }\n        }\n    }\n    /** Parses a modifier matching one the given modifier names. */\n    function tsParseModifier(allowedModifiers) {\n        if (!(0, index_1.match)(types_1.TokenType.name)) {\n            return null;\n        }\n        const modifier = base_1.state.contextualKeyword;\n        if (allowedModifiers.indexOf(modifier) !== -1 && tsNextTokenCanFollowModifier()) {\n            switch (modifier) {\n                case keywords_1.ContextualKeyword._readonly:\n                    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._readonly;\n                    break;\n                case keywords_1.ContextualKeyword._abstract:\n                    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._abstract;\n                    break;\n                case keywords_1.ContextualKeyword._static:\n                    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._static;\n                    break;\n                case keywords_1.ContextualKeyword._public:\n                    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._public;\n                    break;\n                case keywords_1.ContextualKeyword._private:\n                    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._private;\n                    break;\n                case keywords_1.ContextualKeyword._protected:\n                    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._protected;\n                    break;\n                case keywords_1.ContextualKeyword._override:\n                    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._override;\n                    break;\n                case keywords_1.ContextualKeyword._declare:\n                    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._declare;\n                    break;\n                default:\n                    break;\n            }\n            return modifier;\n        }\n        return null;\n    }\n    function tsParseEntityName() {\n        (0, expression_1.parseIdentifier)();\n        while ((0, index_1.eat)(types_1.TokenType.dot)) {\n            (0, expression_1.parseIdentifier)();\n        }\n    }\n    function tsParseTypeReference() {\n        tsParseEntityName();\n        if (!(0, util_1.hasPrecedingLineBreak)() && (0, index_1.match)(types_1.TokenType.lessThan)) {\n            tsParseTypeArguments();\n        }\n    }\n    function tsParseThisTypePredicate() {\n        (0, index_1.next)();\n        tsParseTypeAnnotation();\n    }\n    function tsParseThisTypeNode() {\n        (0, index_1.next)();\n    }\n    function tsParseTypeQuery() {\n        (0, util_1.expect)(types_1.TokenType._typeof);\n        if ((0, index_1.match)(types_1.TokenType._import)) {\n            tsParseImportType();\n        }\n        else {\n            tsParseEntityName();\n        }\n        if (!(0, util_1.hasPrecedingLineBreak)() && (0, index_1.match)(types_1.TokenType.lessThan)) {\n            tsParseTypeArguments();\n        }\n    }\n    function tsParseImportType() {\n        (0, util_1.expect)(types_1.TokenType._import);\n        (0, util_1.expect)(types_1.TokenType.parenL);\n        (0, util_1.expect)(types_1.TokenType.string);\n        (0, util_1.expect)(types_1.TokenType.parenR);\n        if ((0, index_1.eat)(types_1.TokenType.dot)) {\n            tsParseEntityName();\n        }\n        if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n            tsParseTypeArguments();\n        }\n    }\n    function tsParseTypeParameter() {\n        (0, index_1.eat)(types_1.TokenType._const);\n        const hadIn = (0, index_1.eat)(types_1.TokenType._in);\n        const hadOut = (0, util_1.eatContextual)(keywords_1.ContextualKeyword._out);\n        (0, index_1.eat)(types_1.TokenType._const);\n        if ((hadIn || hadOut) && !(0, index_1.match)(types_1.TokenType.name)) {\n            // The \"in\" or \"out\" keyword must have actually been the type parameter\n            // name, so set it as the name.\n            base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType.name;\n        }\n        else {\n            (0, expression_1.parseIdentifier)();\n        }\n        if ((0, index_1.eat)(types_1.TokenType._extends)) {\n            tsParseType();\n        }\n        if ((0, index_1.eat)(types_1.TokenType.eq)) {\n            tsParseType();\n        }\n    }\n    function tsTryParseTypeParameters() {\n        if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n            tsParseTypeParameters();\n        }\n    }\n    function tsParseTypeParameters() {\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        if ((0, index_1.match)(types_1.TokenType.lessThan) || (0, index_1.match)(types_1.TokenType.typeParameterStart)) {\n            (0, index_1.next)();\n        }\n        else {\n            (0, util_1.unexpected)();\n        }\n        while (!(0, index_1.eat)(types_1.TokenType.greaterThan) && !base_1.state.error) {\n            tsParseTypeParameter();\n            (0, index_1.eat)(types_1.TokenType.comma);\n        }\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n    // Note: In TypeScript implementation we must provide `yieldContext` and `awaitContext`,\n    // but here it's always false, because this is only used for types.\n    function tsFillSignature(returnToken) {\n        // Arrow fns *must* have return token (`=>`). Normal functions can omit it.\n        const returnTokenRequired = returnToken === types_1.TokenType.arrow;\n        tsTryParseTypeParameters();\n        (0, util_1.expect)(types_1.TokenType.parenL);\n        // Create a scope even though we're doing type parsing so we don't accidentally\n        // treat params as top-level bindings.\n        base_1.state.scopeDepth++;\n        tsParseBindingListForSignature(false /* isBlockScope */);\n        base_1.state.scopeDepth--;\n        if (returnTokenRequired) {\n            tsParseTypeOrTypePredicateAnnotation(returnToken);\n        }\n        else if ((0, index_1.match)(returnToken)) {\n            tsParseTypeOrTypePredicateAnnotation(returnToken);\n        }\n    }\n    function tsParseBindingListForSignature(isBlockScope) {\n        (0, lval_1.parseBindingList)(types_1.TokenType.parenR, isBlockScope);\n    }\n    function tsParseTypeMemberSemicolon() {\n        if (!(0, index_1.eat)(types_1.TokenType.comma)) {\n            (0, util_1.semicolon)();\n        }\n    }\n    function tsParseSignatureMember() {\n        tsFillSignature(types_1.TokenType.colon);\n        tsParseTypeMemberSemicolon();\n    }\n    function tsIsUnambiguouslyIndexSignature() {\n        const snapshot = base_1.state.snapshot();\n        (0, index_1.next)(); // Skip '{'\n        const isIndexSignature = (0, index_1.eat)(types_1.TokenType.name) && (0, index_1.match)(types_1.TokenType.colon);\n        base_1.state.restoreFromSnapshot(snapshot);\n        return isIndexSignature;\n    }\n    function tsTryParseIndexSignature() {\n        if (!((0, index_1.match)(types_1.TokenType.bracketL) && tsIsUnambiguouslyIndexSignature())) {\n            return false;\n        }\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        (0, util_1.expect)(types_1.TokenType.bracketL);\n        (0, expression_1.parseIdentifier)();\n        tsParseTypeAnnotation();\n        (0, util_1.expect)(types_1.TokenType.bracketR);\n        tsTryParseTypeAnnotation();\n        tsParseTypeMemberSemicolon();\n        (0, index_1.popTypeContext)(oldIsType);\n        return true;\n    }\n    function tsParsePropertyOrMethodSignature(isReadonly) {\n        (0, index_1.eat)(types_1.TokenType.question);\n        if (!isReadonly && ((0, index_1.match)(types_1.TokenType.parenL) || (0, index_1.match)(types_1.TokenType.lessThan))) {\n            tsFillSignature(types_1.TokenType.colon);\n            tsParseTypeMemberSemicolon();\n        }\n        else {\n            tsTryParseTypeAnnotation();\n            tsParseTypeMemberSemicolon();\n        }\n    }\n    function tsParseTypeMember() {\n        if ((0, index_1.match)(types_1.TokenType.parenL) || (0, index_1.match)(types_1.TokenType.lessThan)) {\n            // call signature\n            tsParseSignatureMember();\n            return;\n        }\n        if ((0, index_1.match)(types_1.TokenType._new)) {\n            (0, index_1.next)();\n            if ((0, index_1.match)(types_1.TokenType.parenL) || (0, index_1.match)(types_1.TokenType.lessThan)) {\n                // constructor signature\n                tsParseSignatureMember();\n            }\n            else {\n                tsParsePropertyOrMethodSignature(false);\n            }\n            return;\n        }\n        const readonly = !!tsParseModifier([keywords_1.ContextualKeyword._readonly]);\n        const found = tsTryParseIndexSignature();\n        if (found) {\n            return;\n        }\n        if (((0, util_1.isContextual)(keywords_1.ContextualKeyword._get) || (0, util_1.isContextual)(keywords_1.ContextualKeyword._set)) &&\n            tsNextTokenCanFollowModifier()) {\n            // This is a getter/setter on a type. The tsNextTokenCanFollowModifier\n            // function already called next() for us, so continue parsing the name.\n        }\n        (0, expression_1.parsePropertyName)(-1 /* Types don't need context IDs. */);\n        tsParsePropertyOrMethodSignature(readonly);\n    }\n    function tsParseTypeLiteral() {\n        tsParseObjectTypeMembers();\n    }\n    function tsParseObjectTypeMembers() {\n        (0, util_1.expect)(types_1.TokenType.braceL);\n        while (!(0, index_1.eat)(types_1.TokenType.braceR) && !base_1.state.error) {\n            tsParseTypeMember();\n        }\n    }\n    function tsLookaheadIsStartOfMappedType() {\n        const snapshot = base_1.state.snapshot();\n        const isStartOfMappedType = tsIsStartOfMappedType();\n        base_1.state.restoreFromSnapshot(snapshot);\n        return isStartOfMappedType;\n    }\n    function tsIsStartOfMappedType() {\n        (0, index_1.next)();\n        if ((0, index_1.eat)(types_1.TokenType.plus) || (0, index_1.eat)(types_1.TokenType.minus)) {\n            return (0, util_1.isContextual)(keywords_1.ContextualKeyword._readonly);\n        }\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._readonly)) {\n            (0, index_1.next)();\n        }\n        if (!(0, index_1.match)(types_1.TokenType.bracketL)) {\n            return false;\n        }\n        (0, index_1.next)();\n        if (!tsIsIdentifier()) {\n            return false;\n        }\n        (0, index_1.next)();\n        return (0, index_1.match)(types_1.TokenType._in);\n    }\n    function tsParseMappedTypeParameter() {\n        (0, expression_1.parseIdentifier)();\n        (0, util_1.expect)(types_1.TokenType._in);\n        tsParseType();\n    }\n    function tsParseMappedType() {\n        (0, util_1.expect)(types_1.TokenType.braceL);\n        if ((0, index_1.match)(types_1.TokenType.plus) || (0, index_1.match)(types_1.TokenType.minus)) {\n            (0, index_1.next)();\n            (0, util_1.expectContextual)(keywords_1.ContextualKeyword._readonly);\n        }\n        else {\n            (0, util_1.eatContextual)(keywords_1.ContextualKeyword._readonly);\n        }\n        (0, util_1.expect)(types_1.TokenType.bracketL);\n        tsParseMappedTypeParameter();\n        if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._as)) {\n            tsParseType();\n        }\n        (0, util_1.expect)(types_1.TokenType.bracketR);\n        if ((0, index_1.match)(types_1.TokenType.plus) || (0, index_1.match)(types_1.TokenType.minus)) {\n            (0, index_1.next)();\n            (0, util_1.expect)(types_1.TokenType.question);\n        }\n        else {\n            (0, index_1.eat)(types_1.TokenType.question);\n        }\n        tsTryParseType();\n        (0, util_1.semicolon)();\n        (0, util_1.expect)(types_1.TokenType.braceR);\n    }\n    function tsParseTupleType() {\n        (0, util_1.expect)(types_1.TokenType.bracketL);\n        while (!(0, index_1.eat)(types_1.TokenType.bracketR) && !base_1.state.error) {\n            // Do not validate presence of either none or only labeled elements\n            tsParseTupleElementType();\n            (0, index_1.eat)(types_1.TokenType.comma);\n        }\n    }\n    function tsParseTupleElementType() {\n        // parses `...TsType[]`\n        if ((0, index_1.eat)(types_1.TokenType.ellipsis)) {\n            tsParseType();\n        }\n        else {\n            // parses `TsType?`\n            tsParseType();\n            (0, index_1.eat)(types_1.TokenType.question);\n        }\n        // The type we parsed above was actually a label\n        if ((0, index_1.eat)(types_1.TokenType.colon)) {\n            // Labeled tuple types must affix the label with `...` or `?`, so no need to handle those here\n            tsParseType();\n        }\n    }\n    function tsParseParenthesizedType() {\n        (0, util_1.expect)(types_1.TokenType.parenL);\n        tsParseType();\n        (0, util_1.expect)(types_1.TokenType.parenR);\n    }\n    function tsParseTemplateLiteralType() {\n        // Finish `, read quasi\n        (0, index_1.nextTemplateToken)();\n        // Finish quasi, read ${\n        (0, index_1.nextTemplateToken)();\n        while (!(0, index_1.match)(types_1.TokenType.backQuote) && !base_1.state.error) {\n            (0, util_1.expect)(types_1.TokenType.dollarBraceL);\n            tsParseType();\n            // Finish }, read quasi\n            (0, index_1.nextTemplateToken)();\n            // Finish quasi, read either ${ or `\n            (0, index_1.nextTemplateToken)();\n        }\n        (0, index_1.next)();\n    }\n    var FunctionType;\n    (function (FunctionType) {\n        const TSFunctionType = 0;\n        FunctionType[FunctionType[\"TSFunctionType\"] = TSFunctionType] = \"TSFunctionType\";\n        const TSConstructorType = TSFunctionType + 1;\n        FunctionType[FunctionType[\"TSConstructorType\"] = TSConstructorType] = \"TSConstructorType\";\n        const TSAbstractConstructorType = TSConstructorType + 1;\n        FunctionType[FunctionType[\"TSAbstractConstructorType\"] = TSAbstractConstructorType] = \"TSAbstractConstructorType\";\n    })(FunctionType || (FunctionType = {}));\n    function tsParseFunctionOrConstructorType(type) {\n        if (type === FunctionType.TSAbstractConstructorType) {\n            (0, util_1.expectContextual)(keywords_1.ContextualKeyword._abstract);\n        }\n        if (type === FunctionType.TSConstructorType || type === FunctionType.TSAbstractConstructorType) {\n            (0, util_1.expect)(types_1.TokenType._new);\n        }\n        const oldInDisallowConditionalTypesContext = base_1.state.inDisallowConditionalTypesContext;\n        base_1.state.inDisallowConditionalTypesContext = false;\n        tsFillSignature(types_1.TokenType.arrow);\n        base_1.state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext;\n    }\n    function tsParseNonArrayType() {\n        switch (base_1.state.type) {\n            case types_1.TokenType.name:\n                tsParseTypeReference();\n                return;\n            case types_1.TokenType._void:\n            case types_1.TokenType._null:\n                (0, index_1.next)();\n                return;\n            case types_1.TokenType.string:\n            case types_1.TokenType.num:\n            case types_1.TokenType.bigint:\n            case types_1.TokenType.decimal:\n            case types_1.TokenType._true:\n            case types_1.TokenType._false:\n                (0, expression_1.parseLiteral)();\n                return;\n            case types_1.TokenType.minus:\n                (0, index_1.next)();\n                (0, expression_1.parseLiteral)();\n                return;\n            case types_1.TokenType._this: {\n                tsParseThisTypeNode();\n                if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._is) && !(0, util_1.hasPrecedingLineBreak)()) {\n                    tsParseThisTypePredicate();\n                }\n                return;\n            }\n            case types_1.TokenType._typeof:\n                tsParseTypeQuery();\n                return;\n            case types_1.TokenType._import:\n                tsParseImportType();\n                return;\n            case types_1.TokenType.braceL:\n                if (tsLookaheadIsStartOfMappedType()) {\n                    tsParseMappedType();\n                }\n                else {\n                    tsParseTypeLiteral();\n                }\n                return;\n            case types_1.TokenType.bracketL:\n                tsParseTupleType();\n                return;\n            case types_1.TokenType.parenL:\n                tsParseParenthesizedType();\n                return;\n            case types_1.TokenType.backQuote:\n                tsParseTemplateLiteralType();\n                return;\n            default:\n                if (base_1.state.type & types_1.TokenType.IS_KEYWORD) {\n                    (0, index_1.next)();\n                    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType.name;\n                    return;\n                }\n                break;\n        }\n        (0, util_1.unexpected)();\n    }\n    function tsParseArrayTypeOrHigher() {\n        tsParseNonArrayType();\n        while (!(0, util_1.hasPrecedingLineBreak)() && (0, index_1.eat)(types_1.TokenType.bracketL)) {\n            if (!(0, index_1.eat)(types_1.TokenType.bracketR)) {\n                // If we hit ] immediately, this is an array type, otherwise it's an indexed access type.\n                tsParseType();\n                (0, util_1.expect)(types_1.TokenType.bracketR);\n            }\n        }\n    }\n    function tsParseInferType() {\n        (0, util_1.expectContextual)(keywords_1.ContextualKeyword._infer);\n        (0, expression_1.parseIdentifier)();\n        if ((0, index_1.match)(types_1.TokenType._extends)) {\n            // Infer type constraints introduce an ambiguity about whether the \"extends\"\n            // is a constraint for this infer type or is another conditional type.\n            const snapshot = base_1.state.snapshot();\n            (0, util_1.expect)(types_1.TokenType._extends);\n            const oldInDisallowConditionalTypesContext = base_1.state.inDisallowConditionalTypesContext;\n            base_1.state.inDisallowConditionalTypesContext = true;\n            tsParseType();\n            base_1.state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext;\n            if (base_1.state.error || (!base_1.state.inDisallowConditionalTypesContext && (0, index_1.match)(types_1.TokenType.question))) {\n                base_1.state.restoreFromSnapshot(snapshot);\n            }\n        }\n    }\n    function tsParseTypeOperatorOrHigher() {\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._keyof) ||\n            (0, util_1.isContextual)(keywords_1.ContextualKeyword._unique) ||\n            (0, util_1.isContextual)(keywords_1.ContextualKeyword._readonly)) {\n            (0, index_1.next)();\n            tsParseTypeOperatorOrHigher();\n        }\n        else if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._infer)) {\n            tsParseInferType();\n        }\n        else {\n            const oldInDisallowConditionalTypesContext = base_1.state.inDisallowConditionalTypesContext;\n            base_1.state.inDisallowConditionalTypesContext = false;\n            tsParseArrayTypeOrHigher();\n            base_1.state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext;\n        }\n    }\n    function tsParseIntersectionTypeOrHigher() {\n        (0, index_1.eat)(types_1.TokenType.bitwiseAND);\n        tsParseTypeOperatorOrHigher();\n        if ((0, index_1.match)(types_1.TokenType.bitwiseAND)) {\n            while ((0, index_1.eat)(types_1.TokenType.bitwiseAND)) {\n                tsParseTypeOperatorOrHigher();\n            }\n        }\n    }\n    function tsParseUnionTypeOrHigher() {\n        (0, index_1.eat)(types_1.TokenType.bitwiseOR);\n        tsParseIntersectionTypeOrHigher();\n        if ((0, index_1.match)(types_1.TokenType.bitwiseOR)) {\n            while ((0, index_1.eat)(types_1.TokenType.bitwiseOR)) {\n                tsParseIntersectionTypeOrHigher();\n            }\n        }\n    }\n    function tsIsStartOfFunctionType() {\n        if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n            return true;\n        }\n        return (0, index_1.match)(types_1.TokenType.parenL) && tsLookaheadIsUnambiguouslyStartOfFunctionType();\n    }\n    function tsSkipParameterStart() {\n        if ((0, index_1.match)(types_1.TokenType.name) || (0, index_1.match)(types_1.TokenType._this)) {\n            (0, index_1.next)();\n            return true;\n        }\n        // If this is a possible array/object destructure, walk to the matching bracket/brace.\n        // The next token after will tell us definitively whether this is a function param.\n        if ((0, index_1.match)(types_1.TokenType.braceL) || (0, index_1.match)(types_1.TokenType.bracketL)) {\n            let depth = 1;\n            (0, index_1.next)();\n            while (depth > 0 && !base_1.state.error) {\n                if ((0, index_1.match)(types_1.TokenType.braceL) || (0, index_1.match)(types_1.TokenType.bracketL)) {\n                    depth++;\n                }\n                else if ((0, index_1.match)(types_1.TokenType.braceR) || (0, index_1.match)(types_1.TokenType.bracketR)) {\n                    depth--;\n                }\n                (0, index_1.next)();\n            }\n            return true;\n        }\n        return false;\n    }\n    function tsLookaheadIsUnambiguouslyStartOfFunctionType() {\n        const snapshot = base_1.state.snapshot();\n        const isUnambiguouslyStartOfFunctionType = tsIsUnambiguouslyStartOfFunctionType();\n        base_1.state.restoreFromSnapshot(snapshot);\n        return isUnambiguouslyStartOfFunctionType;\n    }\n    function tsIsUnambiguouslyStartOfFunctionType() {\n        (0, index_1.next)();\n        if ((0, index_1.match)(types_1.TokenType.parenR) || (0, index_1.match)(types_1.TokenType.ellipsis)) {\n            // ( )\n            // ( ...\n            return true;\n        }\n        if (tsSkipParameterStart()) {\n            if ((0, index_1.match)(types_1.TokenType.colon) || (0, index_1.match)(types_1.TokenType.comma) || (0, index_1.match)(types_1.TokenType.question) || (0, index_1.match)(types_1.TokenType.eq)) {\n                // ( xxx :\n                // ( xxx ,\n                // ( xxx ?\n                // ( xxx =\n                return true;\n            }\n            if ((0, index_1.match)(types_1.TokenType.parenR)) {\n                (0, index_1.next)();\n                if ((0, index_1.match)(types_1.TokenType.arrow)) {\n                    // ( xxx ) =>\n                    return true;\n                }\n            }\n        }\n        return false;\n    }\n    function tsParseTypeOrTypePredicateAnnotation(returnToken) {\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        (0, util_1.expect)(returnToken);\n        const finishedReturn = tsParseTypePredicateOrAssertsPrefix();\n        if (!finishedReturn) {\n            tsParseType();\n        }\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n    function tsTryParseTypeOrTypePredicateAnnotation() {\n        if ((0, index_1.match)(types_1.TokenType.colon)) {\n            tsParseTypeOrTypePredicateAnnotation(types_1.TokenType.colon);\n        }\n    }\n    function tsTryParseTypeAnnotation() {\n        if ((0, index_1.match)(types_1.TokenType.colon)) {\n            tsParseTypeAnnotation();\n        }\n    }\n    function tsTryParseType() {\n        if ((0, index_1.eat)(types_1.TokenType.colon)) {\n            tsParseType();\n        }\n    }\n    /**\n     * Detect a few special return syntax cases: `x is T`, `asserts x`, `asserts x is T`,\n     * `asserts this is T`.\n     *\n     * Returns true if we parsed the return type, false if there's still a type to be parsed.\n     */\n    function tsParseTypePredicateOrAssertsPrefix() {\n        const snapshot = base_1.state.snapshot();\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._asserts)) {\n            // Normally this is `asserts x is T`, but at this point, it might be `asserts is T` (a user-\n            // defined type guard on the `asserts` variable) or just a type called `asserts`.\n            (0, index_1.next)();\n            if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._is)) {\n                // If we see `asserts is`, then this must be of the form `asserts is T`, since\n                // `asserts is is T` isn't valid.\n                tsParseType();\n                return true;\n            }\n            else if (tsIsIdentifier() || (0, index_1.match)(types_1.TokenType._this)) {\n                (0, index_1.next)();\n                if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._is)) {\n                    // If we see `is`, then this is `asserts x is T`. Otherwise, it's `asserts x`.\n                    tsParseType();\n                }\n                return true;\n            }\n            else {\n                // Regular type, so bail out and start type parsing from scratch.\n                base_1.state.restoreFromSnapshot(snapshot);\n                return false;\n            }\n        }\n        else if (tsIsIdentifier() || (0, index_1.match)(types_1.TokenType._this)) {\n            // This is a regular identifier, which may or may not have \"is\" after it.\n            (0, index_1.next)();\n            if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._is) && !(0, util_1.hasPrecedingLineBreak)()) {\n                (0, index_1.next)();\n                tsParseType();\n                return true;\n            }\n            else {\n                // Regular type, so bail out and start type parsing from scratch.\n                base_1.state.restoreFromSnapshot(snapshot);\n                return false;\n            }\n        }\n        return false;\n    }\n    function tsParseTypeAnnotation() {\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        (0, util_1.expect)(types_1.TokenType.colon);\n        tsParseType();\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n    function tsParseType() {\n        tsParseNonConditionalType();\n        if (base_1.state.inDisallowConditionalTypesContext || (0, util_1.hasPrecedingLineBreak)() || !(0, index_1.eat)(types_1.TokenType._extends)) {\n            return;\n        }\n        // extends type\n        const oldInDisallowConditionalTypesContext = base_1.state.inDisallowConditionalTypesContext;\n        base_1.state.inDisallowConditionalTypesContext = true;\n        tsParseNonConditionalType();\n        base_1.state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext;\n        (0, util_1.expect)(types_1.TokenType.question);\n        // true type\n        tsParseType();\n        (0, util_1.expect)(types_1.TokenType.colon);\n        // false type\n        tsParseType();\n    }\n    function isAbstractConstructorSignature() {\n        return (0, util_1.isContextual)(keywords_1.ContextualKeyword._abstract) && (0, index_1.lookaheadType)() === types_1.TokenType._new;\n    }\n    function tsParseNonConditionalType() {\n        if (tsIsStartOfFunctionType()) {\n            tsParseFunctionOrConstructorType(FunctionType.TSFunctionType);\n            return;\n        }\n        if ((0, index_1.match)(types_1.TokenType._new)) {\n            // As in `new () => Date`\n            tsParseFunctionOrConstructorType(FunctionType.TSConstructorType);\n            return;\n        }\n        else if (isAbstractConstructorSignature()) {\n            // As in `abstract new () => Date`\n            tsParseFunctionOrConstructorType(FunctionType.TSAbstractConstructorType);\n            return;\n        }\n        tsParseUnionTypeOrHigher();\n    }\n    function tsParseTypeAssertion() {\n        const oldIsType = (0, index_1.pushTypeContext)(1);\n        tsParseType();\n        (0, util_1.expect)(types_1.TokenType.greaterThan);\n        (0, index_1.popTypeContext)(oldIsType);\n        (0, expression_1.parseMaybeUnary)();\n    }\n    function tsTryParseJSXTypeArgument() {\n        if ((0, index_1.eat)(types_1.TokenType.jsxTagStart)) {\n            base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType.typeParameterStart;\n            const oldIsType = (0, index_1.pushTypeContext)(1);\n            while (!(0, index_1.match)(types_1.TokenType.greaterThan) && !base_1.state.error) {\n                tsParseType();\n                (0, index_1.eat)(types_1.TokenType.comma);\n            }\n            // Process >, but the one after needs to be parsed JSX-style.\n            (0, jsx_1.nextJSXTagToken)();\n            (0, index_1.popTypeContext)(oldIsType);\n        }\n    }\n    function tsParseHeritageClause() {\n        while (!(0, index_1.match)(types_1.TokenType.braceL) && !base_1.state.error) {\n            tsParseExpressionWithTypeArguments();\n            (0, index_1.eat)(types_1.TokenType.comma);\n        }\n    }\n    function tsParseExpressionWithTypeArguments() {\n        // Note: TS uses parseLeftHandSideExpressionOrHigher,\n        // then has grammar errors later if it's not an EntityName.\n        tsParseEntityName();\n        if ((0, index_1.match)(types_1.TokenType.lessThan)) {\n            tsParseTypeArguments();\n        }\n    }\n    function tsParseInterfaceDeclaration() {\n        (0, lval_1.parseBindingIdentifier)(false);\n        tsTryParseTypeParameters();\n        if ((0, index_1.eat)(types_1.TokenType._extends)) {\n            tsParseHeritageClause();\n        }\n        tsParseObjectTypeMembers();\n    }\n    function tsParseTypeAliasDeclaration() {\n        (0, lval_1.parseBindingIdentifier)(false);\n        tsTryParseTypeParameters();\n        (0, util_1.expect)(types_1.TokenType.eq);\n        tsParseType();\n        (0, util_1.semicolon)();\n    }\n    function tsParseEnumMember() {\n        // Computed property names are grammar errors in an enum, so accept just string literal or identifier.\n        if ((0, index_1.match)(types_1.TokenType.string)) {\n            (0, expression_1.parseLiteral)();\n        }\n        else {\n            (0, expression_1.parseIdentifier)();\n        }\n        if ((0, index_1.eat)(types_1.TokenType.eq)) {\n            const eqIndex = base_1.state.tokens.length - 1;\n            (0, expression_1.parseMaybeAssign)();\n            base_1.state.tokens[eqIndex].rhsEndIndex = base_1.state.tokens.length;\n        }\n    }\n    function tsParseEnumDeclaration() {\n        (0, lval_1.parseBindingIdentifier)(false);\n        (0, util_1.expect)(types_1.TokenType.braceL);\n        while (!(0, index_1.eat)(types_1.TokenType.braceR) && !base_1.state.error) {\n            tsParseEnumMember();\n            (0, index_1.eat)(types_1.TokenType.comma);\n        }\n    }\n    function tsParseModuleBlock() {\n        (0, util_1.expect)(types_1.TokenType.braceL);\n        (0, statement_1.parseBlockBody)(/* end */ types_1.TokenType.braceR);\n    }\n    function tsParseModuleOrNamespaceDeclaration() {\n        (0, lval_1.parseBindingIdentifier)(false);\n        if ((0, index_1.eat)(types_1.TokenType.dot)) {\n            tsParseModuleOrNamespaceDeclaration();\n        }\n        else {\n            tsParseModuleBlock();\n        }\n    }\n    function tsParseAmbientExternalModuleDeclaration() {\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._global)) {\n            (0, expression_1.parseIdentifier)();\n        }\n        else if ((0, index_1.match)(types_1.TokenType.string)) {\n            (0, expression_1.parseExprAtom)();\n        }\n        else {\n            (0, util_1.unexpected)();\n        }\n        if ((0, index_1.match)(types_1.TokenType.braceL)) {\n            tsParseModuleBlock();\n        }\n        else {\n            (0, util_1.semicolon)();\n        }\n    }\n    function tsParseImportEqualsDeclaration() {\n        (0, lval_1.parseImportedIdentifier)();\n        (0, util_1.expect)(types_1.TokenType.eq);\n        tsParseModuleReference();\n        (0, util_1.semicolon)();\n    }\n    function tsIsExternalModuleReference() {\n        return (0, util_1.isContextual)(keywords_1.ContextualKeyword._require) && (0, index_1.lookaheadType)() === types_1.TokenType.parenL;\n    }\n    function tsParseModuleReference() {\n        if (tsIsExternalModuleReference()) {\n            tsParseExternalModuleReference();\n        }\n        else {\n            tsParseEntityName();\n        }\n    }\n    function tsParseExternalModuleReference() {\n        (0, util_1.expectContextual)(keywords_1.ContextualKeyword._require);\n        (0, util_1.expect)(types_1.TokenType.parenL);\n        if (!(0, index_1.match)(types_1.TokenType.string)) {\n            (0, util_1.unexpected)();\n        }\n        (0, expression_1.parseLiteral)();\n        (0, util_1.expect)(types_1.TokenType.parenR);\n    }\n    // Utilities\n    // Returns true if a statement matched.\n    function tsTryParseDeclare() {\n        if ((0, util_1.isLineTerminator)()) {\n            return false;\n        }\n        switch (base_1.state.type) {\n            case types_1.TokenType._function: {\n                const oldIsType = (0, index_1.pushTypeContext)(1);\n                (0, index_1.next)();\n                // We don't need to precisely get the function start here, since it's only used to mark\n                // the function as a type if it's bodiless, and it's already a type here.\n                const functionStart = base_1.state.start;\n                (0, statement_1.parseFunction)(functionStart, /* isStatement */ true);\n                (0, index_1.popTypeContext)(oldIsType);\n                return true;\n            }\n            case types_1.TokenType._class: {\n                const oldIsType = (0, index_1.pushTypeContext)(1);\n                (0, statement_1.parseClass)(/* isStatement */ true, /* optionalId */ false);\n                (0, index_1.popTypeContext)(oldIsType);\n                return true;\n            }\n            case types_1.TokenType._const: {\n                if ((0, index_1.match)(types_1.TokenType._const) && (0, util_1.isLookaheadContextual)(keywords_1.ContextualKeyword._enum)) {\n                    const oldIsType = (0, index_1.pushTypeContext)(1);\n                    // `const enum = 0;` not allowed because \"enum\" is a strict mode reserved word.\n                    (0, util_1.expect)(types_1.TokenType._const);\n                    (0, util_1.expectContextual)(keywords_1.ContextualKeyword._enum);\n                    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._enum;\n                    tsParseEnumDeclaration();\n                    (0, index_1.popTypeContext)(oldIsType);\n                    return true;\n                }\n            }\n            // falls through\n            case types_1.TokenType._var:\n            case types_1.TokenType._let: {\n                const oldIsType = (0, index_1.pushTypeContext)(1);\n                (0, statement_1.parseVarStatement)(base_1.state.type !== types_1.TokenType._var);\n                (0, index_1.popTypeContext)(oldIsType);\n                return true;\n            }\n            case types_1.TokenType.name: {\n                const oldIsType = (0, index_1.pushTypeContext)(1);\n                const contextualKeyword = base_1.state.contextualKeyword;\n                let matched = false;\n                if (contextualKeyword === keywords_1.ContextualKeyword._global) {\n                    tsParseAmbientExternalModuleDeclaration();\n                    matched = true;\n                }\n                else {\n                    matched = tsParseDeclaration(contextualKeyword, /* isBeforeToken */ true);\n                }\n                (0, index_1.popTypeContext)(oldIsType);\n                return matched;\n            }\n            default:\n                return false;\n        }\n    }\n    // Note: this won't be called unless the keyword is allowed in `shouldParseExportDeclaration`.\n    // Returns true if it matched a declaration.\n    function tsTryParseExportDeclaration() {\n        return tsParseDeclaration(base_1.state.contextualKeyword, /* isBeforeToken */ true);\n    }\n    // Returns true if it matched a statement.\n    function tsParseExpressionStatement(contextualKeyword) {\n        switch (contextualKeyword) {\n            case keywords_1.ContextualKeyword._declare: {\n                const declareTokenIndex = base_1.state.tokens.length - 1;\n                const matched = tsTryParseDeclare();\n                if (matched) {\n                    base_1.state.tokens[declareTokenIndex].type = types_1.TokenType._declare;\n                    return true;\n                }\n                break;\n            }\n            case keywords_1.ContextualKeyword._global:\n                // `global { }` (with no `declare`) may appear inside an ambient module declaration.\n                // Would like to use tsParseAmbientExternalModuleDeclaration here, but already ran past \"global\".\n                if ((0, index_1.match)(types_1.TokenType.braceL)) {\n                    tsParseModuleBlock();\n                    return true;\n                }\n                break;\n            default:\n                return tsParseDeclaration(contextualKeyword, /* isBeforeToken */ false);\n        }\n        return false;\n    }\n    /**\n     * Common code for parsing a declaration.\n     *\n     * isBeforeToken indicates that the current parser state is at the contextual\n     * keyword (and that it is not yet emitted) rather than reading the token after\n     * it. When isBeforeToken is true, we may be preceded by an `export` token and\n     * should include that token in a type context we create, e.g. to handle\n     * `export interface` or `export type`. (This is a bit of a hack and should be\n     * cleaned up at some point.)\n     *\n     * Returns true if it matched a declaration.\n     */\n    function tsParseDeclaration(contextualKeyword, isBeforeToken) {\n        switch (contextualKeyword) {\n            case keywords_1.ContextualKeyword._abstract:\n                if (tsCheckLineTerminator(isBeforeToken) && (0, index_1.match)(types_1.TokenType._class)) {\n                    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._abstract;\n                    (0, statement_1.parseClass)(/* isStatement */ true, /* optionalId */ false);\n                    return true;\n                }\n                break;\n            case keywords_1.ContextualKeyword._enum:\n                if (tsCheckLineTerminator(isBeforeToken) && (0, index_1.match)(types_1.TokenType.name)) {\n                    base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._enum;\n                    tsParseEnumDeclaration();\n                    return true;\n                }\n                break;\n            case keywords_1.ContextualKeyword._interface:\n                if (tsCheckLineTerminator(isBeforeToken) && (0, index_1.match)(types_1.TokenType.name)) {\n                    // `next` is true in \"export\" and \"declare\" contexts, so we want to remove that token\n                    // as well.\n                    const oldIsType = (0, index_1.pushTypeContext)(isBeforeToken ? 2 : 1);\n                    tsParseInterfaceDeclaration();\n                    (0, index_1.popTypeContext)(oldIsType);\n                    return true;\n                }\n                break;\n            case keywords_1.ContextualKeyword._module:\n                if (tsCheckLineTerminator(isBeforeToken)) {\n                    if ((0, index_1.match)(types_1.TokenType.string)) {\n                        const oldIsType = (0, index_1.pushTypeContext)(isBeforeToken ? 2 : 1);\n                        tsParseAmbientExternalModuleDeclaration();\n                        (0, index_1.popTypeContext)(oldIsType);\n                        return true;\n                    }\n                    else if ((0, index_1.match)(types_1.TokenType.name)) {\n                        const oldIsType = (0, index_1.pushTypeContext)(isBeforeToken ? 2 : 1);\n                        tsParseModuleOrNamespaceDeclaration();\n                        (0, index_1.popTypeContext)(oldIsType);\n                        return true;\n                    }\n                }\n                break;\n            case keywords_1.ContextualKeyword._namespace:\n                if (tsCheckLineTerminator(isBeforeToken) && (0, index_1.match)(types_1.TokenType.name)) {\n                    const oldIsType = (0, index_1.pushTypeContext)(isBeforeToken ? 2 : 1);\n                    tsParseModuleOrNamespaceDeclaration();\n                    (0, index_1.popTypeContext)(oldIsType);\n                    return true;\n                }\n                break;\n            case keywords_1.ContextualKeyword._type:\n                if (tsCheckLineTerminator(isBeforeToken) && (0, index_1.match)(types_1.TokenType.name)) {\n                    const oldIsType = (0, index_1.pushTypeContext)(isBeforeToken ? 2 : 1);\n                    tsParseTypeAliasDeclaration();\n                    (0, index_1.popTypeContext)(oldIsType);\n                    return true;\n                }\n                break;\n            default:\n                break;\n        }\n        return false;\n    }\n    function tsCheckLineTerminator(isBeforeToken) {\n        if (isBeforeToken) {\n            // Babel checks hasFollowingLineBreak here and returns false, but this\n            // doesn't actually come up, e.g. `export interface` can never be on its own\n            // line in valid code.\n            (0, index_1.next)();\n            return true;\n        }\n        else {\n            return !(0, util_1.isLineTerminator)();\n        }\n    }\n    // Returns true if there was a generic async arrow function.\n    function tsTryParseGenericAsyncArrowFunction() {\n        const snapshot = base_1.state.snapshot();\n        tsParseTypeParameters();\n        (0, statement_1.parseFunctionParams)();\n        tsTryParseTypeOrTypePredicateAnnotation();\n        (0, util_1.expect)(types_1.TokenType.arrow);\n        if (base_1.state.error) {\n            base_1.state.restoreFromSnapshot(snapshot);\n            return false;\n        }\n        (0, expression_1.parseFunctionBody)(true);\n        return true;\n    }\n    /**\n     * If necessary, hack the tokenizer state so that this bitshift was actually a\n     * less-than token, then keep parsing. This should only be used in situations\n     * where we restore from snapshot on error (which reverts this change) or\n     * where bitshift would be illegal anyway (e.g. in a class \"extends\" clause).\n     *\n     * This hack is useful to handle situations like foo<<T>() => void>() where\n     * there can legitimately be two open-angle-brackets in a row in TS.\n     */\n    function tsParseTypeArgumentsWithPossibleBitshift() {\n        if (base_1.state.type === types_1.TokenType.bitShiftL) {\n            base_1.state.pos -= 1;\n            (0, index_1.finishToken)(types_1.TokenType.lessThan);\n        }\n        tsParseTypeArguments();\n    }\n    function tsParseTypeArguments() {\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        (0, util_1.expect)(types_1.TokenType.lessThan);\n        while (!(0, index_1.match)(types_1.TokenType.greaterThan) && !base_1.state.error) {\n            tsParseType();\n            (0, index_1.eat)(types_1.TokenType.comma);\n        }\n        if (!oldIsType) {\n            // If the type arguments are present in an expression context, e.g.\n            // f<number>(), then the > sign should be tokenized as a non-type token.\n            // In particular, f(a < b, c >= d) should parse the >= as a single token,\n            // resulting in a syntax error and fallback to the non-type-args\n            // interpretation. In the success case, even though the > is tokenized as a\n            // non-type token, it still must be marked as a type token so that it is\n            // erased.\n            (0, index_1.popTypeContext)(oldIsType);\n            (0, index_1.rescan_gt)();\n            (0, util_1.expect)(types_1.TokenType.greaterThan);\n            base_1.state.tokens[base_1.state.tokens.length - 1].isType = true;\n        }\n        else {\n            (0, util_1.expect)(types_1.TokenType.greaterThan);\n            (0, index_1.popTypeContext)(oldIsType);\n        }\n    }\n    function tsIsDeclarationStart() {\n        if ((0, index_1.match)(types_1.TokenType.name)) {\n            switch (base_1.state.contextualKeyword) {\n                case keywords_1.ContextualKeyword._abstract:\n                case keywords_1.ContextualKeyword._declare:\n                case keywords_1.ContextualKeyword._enum:\n                case keywords_1.ContextualKeyword._interface:\n                case keywords_1.ContextualKeyword._module:\n                case keywords_1.ContextualKeyword._namespace:\n                case keywords_1.ContextualKeyword._type:\n                    return true;\n                default:\n                    break;\n            }\n        }\n        return false;\n    }\n    // ======================================================\n    // OVERRIDES\n    // ======================================================\n    function tsParseFunctionBodyAndFinish(functionStart, funcContextId) {\n        // For arrow functions, `parseArrow` handles the return type itself.\n        if ((0, index_1.match)(types_1.TokenType.colon)) {\n            tsParseTypeOrTypePredicateAnnotation(types_1.TokenType.colon);\n        }\n        // The original code checked the node type to make sure this function type allows a missing\n        // body, but we skip that to avoid sending around the node type. We instead just use the\n        // allowExpressionBody boolean to make sure it's not an arrow function.\n        if (!(0, index_1.match)(types_1.TokenType.braceL) && (0, util_1.isLineTerminator)()) {\n            // Retroactively mark the function declaration as a type.\n            let i = base_1.state.tokens.length - 1;\n            while (i >= 0 &&\n                (base_1.state.tokens[i].start >= functionStart ||\n                    base_1.state.tokens[i].type === types_1.TokenType._default ||\n                    base_1.state.tokens[i].type === types_1.TokenType._export)) {\n                base_1.state.tokens[i].isType = true;\n                i--;\n            }\n            return;\n        }\n        (0, expression_1.parseFunctionBody)(false, funcContextId);\n    }\n    function tsParseSubscript(startTokenIndex, noCalls, stopState) {\n        if (!(0, util_1.hasPrecedingLineBreak)() && (0, index_1.eat)(types_1.TokenType.bang)) {\n            base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType.nonNullAssertion;\n            return;\n        }\n        if ((0, index_1.match)(types_1.TokenType.lessThan) || (0, index_1.match)(types_1.TokenType.bitShiftL)) {\n            // There are number of things we are going to \"maybe\" parse, like type arguments on\n            // tagged template expressions. If any of them fail, walk it back and continue.\n            const snapshot = base_1.state.snapshot();\n            if (!noCalls && (0, expression_1.atPossibleAsync)()) {\n                // Almost certainly this is a generic async function `async <T>() => ...\n                // But it might be a call with a type argument `async<T>();`\n                const asyncArrowFn = tsTryParseGenericAsyncArrowFunction();\n                if (asyncArrowFn) {\n                    return;\n                }\n            }\n            tsParseTypeArgumentsWithPossibleBitshift();\n            if (!noCalls && (0, index_1.eat)(types_1.TokenType.parenL)) {\n                // With f<T>(), the subscriptStartIndex marker is on the ( token.\n                base_1.state.tokens[base_1.state.tokens.length - 1].subscriptStartIndex = startTokenIndex;\n                (0, expression_1.parseCallExpressionArguments)();\n            }\n            else if ((0, index_1.match)(types_1.TokenType.backQuote)) {\n                // Tagged template with a type argument.\n                (0, expression_1.parseTemplate)();\n            }\n            else if (\n            // The remaining possible case is an instantiation expression, e.g.\n            // Array<number> . Check for a few cases that would disqualify it and\n            // cause us to bail out.\n            // a<b>>c is not (a<b>)>c, but a<(b>>c)\n            base_1.state.type === types_1.TokenType.greaterThan ||\n                // a<b>c is (a<b)>c\n                (base_1.state.type !== types_1.TokenType.parenL &&\n                    Boolean(base_1.state.type & types_1.TokenType.IS_EXPRESSION_START) &&\n                    !(0, util_1.hasPrecedingLineBreak)())) {\n                // Bail out. We have something like a<b>c, which is not an expression with\n                // type arguments but an (a < b) > c comparison.\n                (0, util_1.unexpected)();\n            }\n            if (base_1.state.error) {\n                base_1.state.restoreFromSnapshot(snapshot);\n            }\n            else {\n                return;\n            }\n        }\n        else if (!noCalls && (0, index_1.match)(types_1.TokenType.questionDot) && (0, index_1.lookaheadType)() === types_1.TokenType.lessThan) {\n            // If we see f?.<, then this must be an optional call with a type argument.\n            (0, index_1.next)();\n            base_1.state.tokens[startTokenIndex].isOptionalChainStart = true;\n            // With f?.<T>(), the subscriptStartIndex marker is on the ?. token.\n            base_1.state.tokens[base_1.state.tokens.length - 1].subscriptStartIndex = startTokenIndex;\n            tsParseTypeArguments();\n            (0, util_1.expect)(types_1.TokenType.parenL);\n            (0, expression_1.parseCallExpressionArguments)();\n        }\n        (0, expression_1.baseParseSubscript)(startTokenIndex, noCalls, stopState);\n    }\n    function tsTryParseExport() {\n        if ((0, index_1.eat)(types_1.TokenType._import)) {\n            // One of these cases:\n            // export import A = B;\n            // export import type A = require(\"A\");\n            if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._type) && (0, index_1.lookaheadType)() !== types_1.TokenType.eq) {\n                // Eat a `type` token, unless it's actually an identifier name.\n                (0, util_1.expectContextual)(keywords_1.ContextualKeyword._type);\n            }\n            tsParseImportEqualsDeclaration();\n            return true;\n        }\n        else if ((0, index_1.eat)(types_1.TokenType.eq)) {\n            // `export = x;`\n            (0, expression_1.parseExpression)();\n            (0, util_1.semicolon)();\n            return true;\n        }\n        else if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._as)) {\n            // `export as namespace A;`\n            // See `parseNamespaceExportDeclaration` in TypeScript's own parser\n            (0, util_1.expectContextual)(keywords_1.ContextualKeyword._namespace);\n            (0, expression_1.parseIdentifier)();\n            (0, util_1.semicolon)();\n            return true;\n        }\n        else {\n            if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._type)) {\n                const nextType = (0, index_1.lookaheadType)();\n                // export type {foo} from 'a';\n                // export type * from 'a';'\n                // export type * as ns from 'a';'\n                if (nextType === types_1.TokenType.braceL || nextType === types_1.TokenType.star) {\n                    (0, index_1.next)();\n                }\n            }\n            return false;\n        }\n    }\n    /**\n     * Parse a TS import specifier, which may be prefixed with \"type\" and may be of\n     * the form `foo as bar`.\n     *\n     * The number of identifier-like tokens we see happens to be enough to uniquely\n     * identify the form, so simply count the number of identifiers rather than\n     * matching the words `type` or `as`. This is particularly important because\n     * `type` and `as` could each actually be plain identifiers rather than\n     * keywords.\n     */\n    function tsParseImportSpecifier() {\n        (0, expression_1.parseIdentifier)();\n        if ((0, index_1.match)(types_1.TokenType.comma) || (0, index_1.match)(types_1.TokenType.braceR)) {\n            // import {foo}\n            base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_1.IdentifierRole.ImportDeclaration;\n            return;\n        }\n        (0, expression_1.parseIdentifier)();\n        if ((0, index_1.match)(types_1.TokenType.comma) || (0, index_1.match)(types_1.TokenType.braceR)) {\n            // import {type foo}\n            base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_1.IdentifierRole.ImportDeclaration;\n            base_1.state.tokens[base_1.state.tokens.length - 2].isType = true;\n            base_1.state.tokens[base_1.state.tokens.length - 1].isType = true;\n            return;\n        }\n        (0, expression_1.parseIdentifier)();\n        if ((0, index_1.match)(types_1.TokenType.comma) || (0, index_1.match)(types_1.TokenType.braceR)) {\n            // import {foo as bar}\n            base_1.state.tokens[base_1.state.tokens.length - 3].identifierRole = index_1.IdentifierRole.ImportAccess;\n            base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_1.IdentifierRole.ImportDeclaration;\n            return;\n        }\n        (0, expression_1.parseIdentifier)();\n        // import {type foo as bar}\n        base_1.state.tokens[base_1.state.tokens.length - 3].identifierRole = index_1.IdentifierRole.ImportAccess;\n        base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_1.IdentifierRole.ImportDeclaration;\n        base_1.state.tokens[base_1.state.tokens.length - 4].isType = true;\n        base_1.state.tokens[base_1.state.tokens.length - 3].isType = true;\n        base_1.state.tokens[base_1.state.tokens.length - 2].isType = true;\n        base_1.state.tokens[base_1.state.tokens.length - 1].isType = true;\n    }\n    /**\n     * Just like named import specifiers, export specifiers can have from 1 to 4\n     * tokens, inclusive, and the number of tokens determines the role of each token.\n     */\n    function tsParseExportSpecifier() {\n        (0, expression_1.parseIdentifier)();\n        if ((0, index_1.match)(types_1.TokenType.comma) || (0, index_1.match)(types_1.TokenType.braceR)) {\n            // export {foo}\n            base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_1.IdentifierRole.ExportAccess;\n            return;\n        }\n        (0, expression_1.parseIdentifier)();\n        if ((0, index_1.match)(types_1.TokenType.comma) || (0, index_1.match)(types_1.TokenType.braceR)) {\n            // export {type foo}\n            base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_1.IdentifierRole.ExportAccess;\n            base_1.state.tokens[base_1.state.tokens.length - 2].isType = true;\n            base_1.state.tokens[base_1.state.tokens.length - 1].isType = true;\n            return;\n        }\n        (0, expression_1.parseIdentifier)();\n        if ((0, index_1.match)(types_1.TokenType.comma) || (0, index_1.match)(types_1.TokenType.braceR)) {\n            // export {foo as bar}\n            base_1.state.tokens[base_1.state.tokens.length - 3].identifierRole = index_1.IdentifierRole.ExportAccess;\n            return;\n        }\n        (0, expression_1.parseIdentifier)();\n        // export {type foo as bar}\n        base_1.state.tokens[base_1.state.tokens.length - 3].identifierRole = index_1.IdentifierRole.ExportAccess;\n        base_1.state.tokens[base_1.state.tokens.length - 4].isType = true;\n        base_1.state.tokens[base_1.state.tokens.length - 3].isType = true;\n        base_1.state.tokens[base_1.state.tokens.length - 2].isType = true;\n        base_1.state.tokens[base_1.state.tokens.length - 1].isType = true;\n    }\n    function tsTryParseExportDefaultExpression() {\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._abstract) && (0, index_1.lookaheadType)() === types_1.TokenType._class) {\n            base_1.state.type = types_1.TokenType._abstract;\n            (0, index_1.next)(); // Skip \"abstract\"\n            (0, statement_1.parseClass)(true, true);\n            return true;\n        }\n        if ((0, util_1.isContextual)(keywords_1.ContextualKeyword._interface)) {\n            // Make sure \"export default\" are considered type tokens so the whole thing is removed.\n            const oldIsType = (0, index_1.pushTypeContext)(2);\n            tsParseDeclaration(keywords_1.ContextualKeyword._interface, true);\n            (0, index_1.popTypeContext)(oldIsType);\n            return true;\n        }\n        return false;\n    }\n    function tsTryParseStatementContent() {\n        if (base_1.state.type === types_1.TokenType._const) {\n            const ahead = (0, index_1.lookaheadTypeAndKeyword)();\n            if (ahead.type === types_1.TokenType.name && ahead.contextualKeyword === keywords_1.ContextualKeyword._enum) {\n                (0, util_1.expect)(types_1.TokenType._const);\n                (0, util_1.expectContextual)(keywords_1.ContextualKeyword._enum);\n                base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._enum;\n                tsParseEnumDeclaration();\n                return true;\n            }\n        }\n        return false;\n    }\n    function tsTryParseClassMemberWithIsStatic(isStatic) {\n        const memberStartIndexAfterStatic = base_1.state.tokens.length;\n        tsParseModifiers([\n            keywords_1.ContextualKeyword._abstract,\n            keywords_1.ContextualKeyword._readonly,\n            keywords_1.ContextualKeyword._declare,\n            keywords_1.ContextualKeyword._static,\n            keywords_1.ContextualKeyword._override,\n        ]);\n        const modifiersEndIndex = base_1.state.tokens.length;\n        const found = tsTryParseIndexSignature();\n        if (found) {\n            // Index signatures are type declarations, so set the modifier tokens as\n            // type tokens. Most tokens could be assumed to be type tokens, but `static`\n            // is ambiguous unless we set it explicitly here.\n            const memberStartIndex = isStatic\n                ? memberStartIndexAfterStatic - 1\n                : memberStartIndexAfterStatic;\n            for (let i = memberStartIndex; i < modifiersEndIndex; i++) {\n                base_1.state.tokens[i].isType = true;\n            }\n            return true;\n        }\n        return false;\n    }\n    // Note: The reason we do this in `parseIdentifierStatement` and not `parseStatement`\n    // is that e.g. `type()` is valid JS, so we must try parsing that first.\n    // If it's really a type, we will parse `type` as the statement, and can correct it here\n    // by parsing the rest.\n    function tsParseIdentifierStatement(contextualKeyword) {\n        const matched = tsParseExpressionStatement(contextualKeyword);\n        if (!matched) {\n            (0, util_1.semicolon)();\n        }\n    }\n    function tsParseExportDeclaration() {\n        // \"export declare\" is equivalent to just \"export\".\n        const isDeclare = (0, util_1.eatContextual)(keywords_1.ContextualKeyword._declare);\n        if (isDeclare) {\n            base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._declare;\n        }\n        let matchedDeclaration = false;\n        if ((0, index_1.match)(types_1.TokenType.name)) {\n            if (isDeclare) {\n                const oldIsType = (0, index_1.pushTypeContext)(2);\n                matchedDeclaration = tsTryParseExportDeclaration();\n                (0, index_1.popTypeContext)(oldIsType);\n            }\n            else {\n                matchedDeclaration = tsTryParseExportDeclaration();\n            }\n        }\n        if (!matchedDeclaration) {\n            if (isDeclare) {\n                const oldIsType = (0, index_1.pushTypeContext)(2);\n                (0, statement_1.parseStatement)(true);\n                (0, index_1.popTypeContext)(oldIsType);\n            }\n            else {\n                (0, statement_1.parseStatement)(true);\n            }\n        }\n    }\n    function tsAfterParseClassSuper(hasSuper) {\n        if (hasSuper && ((0, index_1.match)(types_1.TokenType.lessThan) || (0, index_1.match)(types_1.TokenType.bitShiftL))) {\n            tsParseTypeArgumentsWithPossibleBitshift();\n        }\n        if ((0, util_1.eatContextual)(keywords_1.ContextualKeyword._implements)) {\n            base_1.state.tokens[base_1.state.tokens.length - 1].type = types_1.TokenType._implements;\n            const oldIsType = (0, index_1.pushTypeContext)(1);\n            tsParseHeritageClause();\n            (0, index_1.popTypeContext)(oldIsType);\n        }\n    }\n    function tsStartParseObjPropValue() {\n        tsTryParseTypeParameters();\n    }\n    function tsStartParseFunctionParams() {\n        tsTryParseTypeParameters();\n    }\n    // `let x: number;`\n    function tsAfterParseVarHead() {\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        if (!(0, util_1.hasPrecedingLineBreak)()) {\n            (0, index_1.eat)(types_1.TokenType.bang);\n        }\n        tsTryParseTypeAnnotation();\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n    // parse the return type of an async arrow function - let foo = (async (): number => {});\n    function tsStartParseAsyncArrowFromCallExpression() {\n        if ((0, index_1.match)(types_1.TokenType.colon)) {\n            tsParseTypeAnnotation();\n        }\n    }\n    // Returns true if the expression was an arrow function.\n    function tsParseMaybeAssign(noIn, isWithinParens) {\n        // Note: When the JSX plugin is on, type assertions (`<T> x`) aren't valid syntax.\n        if (base_1.isJSXEnabled) {\n            return tsParseMaybeAssignWithJSX(noIn, isWithinParens);\n        }\n        else {\n            return tsParseMaybeAssignWithoutJSX(noIn, isWithinParens);\n        }\n    }\n    function tsParseMaybeAssignWithJSX(noIn, isWithinParens) {\n        if (!(0, index_1.match)(types_1.TokenType.lessThan)) {\n            return (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n        }\n        // Prefer to parse JSX if possible. But may be an arrow fn.\n        const snapshot = base_1.state.snapshot();\n        let wasArrow = (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n        if (base_1.state.error) {\n            base_1.state.restoreFromSnapshot(snapshot);\n        }\n        else {\n            return wasArrow;\n        }\n        // Otherwise, try as type-parameterized arrow function.\n        base_1.state.type = types_1.TokenType.typeParameterStart;\n        // This is similar to TypeScript's `tryParseParenthesizedArrowFunctionExpression`.\n        tsParseTypeParameters();\n        wasArrow = (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n        if (!wasArrow) {\n            (0, util_1.unexpected)();\n        }\n        return wasArrow;\n    }\n    function tsParseMaybeAssignWithoutJSX(noIn, isWithinParens) {\n        if (!(0, index_1.match)(types_1.TokenType.lessThan)) {\n            return (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n        }\n        const snapshot = base_1.state.snapshot();\n        // This is similar to TypeScript's `tryParseParenthesizedArrowFunctionExpression`.\n        tsParseTypeParameters();\n        const wasArrow = (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n        if (!wasArrow) {\n            (0, util_1.unexpected)();\n        }\n        if (base_1.state.error) {\n            base_1.state.restoreFromSnapshot(snapshot);\n        }\n        else {\n            return wasArrow;\n        }\n        // Try parsing a type cast instead of an arrow function.\n        // This will start with a type assertion (via parseMaybeUnary).\n        // But don't directly call `tsParseTypeAssertion` because we want to handle any binary after it.\n        return (0, expression_1.baseParseMaybeAssign)(noIn, isWithinParens);\n    }\n    function tsParseArrow() {\n        if ((0, index_1.match)(types_1.TokenType.colon)) {\n            // This is different from how the TS parser does it.\n            // TS uses lookahead. Babylon parses it as a parenthesized expression and converts.\n            const snapshot = base_1.state.snapshot();\n            tsParseTypeOrTypePredicateAnnotation(types_1.TokenType.colon);\n            if ((0, util_1.canInsertSemicolon)())\n                (0, util_1.unexpected)();\n            if (!(0, index_1.match)(types_1.TokenType.arrow))\n                (0, util_1.unexpected)();\n            if (base_1.state.error) {\n                base_1.state.restoreFromSnapshot(snapshot);\n            }\n        }\n        return (0, index_1.eat)(types_1.TokenType.arrow);\n    }\n    // Allow type annotations inside of a parameter list.\n    function tsParseAssignableListItemTypes() {\n        const oldIsType = (0, index_1.pushTypeContext)(0);\n        (0, index_1.eat)(types_1.TokenType.question);\n        tsTryParseTypeAnnotation();\n        (0, index_1.popTypeContext)(oldIsType);\n    }\n    function tsParseMaybeDecoratorArguments() {\n        if ((0, index_1.match)(types_1.TokenType.lessThan) || (0, index_1.match)(types_1.TokenType.bitShiftL)) {\n            tsParseTypeArgumentsWithPossibleBitshift();\n        }\n        (0, statement_1.baseParseMaybeDecoratorArguments)();\n    }\n}\n","min_source":"function _(e,t,n,o,a){o(),n.tsParseModifiers=h,n.tsParseModifier=d,n.tsTryParseTypeParameters=_,n.tsTryParseTypeAnnotation=N,n.tsParseTypeAnnotation=X,n.tsParseType=J,n.tsParseNonConditionalType=W,n.tsParseTypeAssertion=function(){const e=(0,s.pushTypeContext)(1);J(),(0,k.expect)(T.TokenType.greaterThan),(0,s.popTypeContext)(e),(0,i.parseMaybeUnary)()},n.tsTryParseJSXTypeArgument=function(){if((0,s.eat)(T.TokenType.jsxTagStart)){p.state.tokens[p.state.tokens.length-1].type=T.TokenType.typeParameterStart;const e=(0,s.pushTypeContext)(1);for(;!(0,s.match)(T.TokenType.greaterThan)&&!p.state.error;)J(),(0,s.eat)(T.TokenType.comma);(0,u.nextJSXTagToken)(),(0,s.popTypeContext)(e)}},n.tsParseImportEqualsDeclaration=G,n.tsIsDeclarationStart=function(){if((0,s.match)(T.TokenType.name))switch(p.state.contextualKeyword){case r.ContextualKeyword._abstract:case r.ContextualKeyword._declare:case r.ContextualKeyword._enum:case r.ContextualKeyword._interface:case r.ContextualKeyword._module:case r.ContextualKeyword._namespace:case r.ContextualKeyword._type:return!0}return!1},n.tsParseFunctionBodyAndFinish=function(e,t){(0,s.match)(T.TokenType.colon)&&O(T.TokenType.colon);if(!(0,s.match)(T.TokenType.braceL)&&(0,k.isLineTerminator)()){let t=p.state.tokens.length-1;for(;t>=0&&(p.state.tokens[t].start>=e||p.state.tokens[t].type===T.TokenType._default||p.state.tokens[t].type===T.TokenType._export);)p.state.tokens[t].isType=!0,t--;return}(0,i.parseFunctionBody)(!1,t)},n.tsParseSubscript=function(e,t,n){if(!(0,k.hasPrecedingLineBreak)()&&(0,s.eat)(T.TokenType.bang))return void(p.state.tokens[p.state.tokens.length-1].type=T.TokenType.nonNullAssertion);if((0,s.match)(T.TokenType.lessThan)||(0,s.match)(T.TokenType.bitShiftL)){const n=p.state.snapshot();if(!t&&(0,i.atPossibleAsync)()){const e=function(){const e=p.state.snapshot();if(b(),(0,y.parseFunctionParams)(),function(){(0,s.match)(T.TokenType.colon)&&O(T.TokenType.colon)}(),(0,k.expect)(T.TokenType.arrow),p.state.error)return p.state.restoreFromSnapshot(e),!1;return(0,i.parseFunctionBody)(!0),!0}();if(e)return}if(te(),!t&&(0,s.eat)(T.TokenType.parenL)?(p.state.tokens[p.state.tokens.length-1].subscriptStartIndex=e,(0,i.parseCallExpressionArguments)()):(0,s.match)(T.TokenType.backQuote)?(0,i.parseTemplate)():(p.state.type===T.TokenType.greaterThan||p.state.type!==T.TokenType.parenL&&Boolean(p.state.type&T.TokenType.IS_EXPRESSION_START)&&!(0,k.hasPrecedingLineBreak)())&&(0,k.unexpected)(),!p.state.error)return;p.state.restoreFromSnapshot(n)}else!t&&(0,s.match)(T.TokenType.questionDot)&&(0,s.lookaheadType)()===T.TokenType.lessThan&&((0,s.next)(),p.state.tokens[e].isOptionalChainStart=!0,p.state.tokens[p.state.tokens.length-1].subscriptStartIndex=e,ne(),(0,k.expect)(T.TokenType.parenL),(0,i.parseCallExpressionArguments)());(0,i.baseParseSubscript)(e,t,n)},n.tsTryParseExport=function(){if((0,s.eat)(T.TokenType._import))return(0,k.isContextual)(r.ContextualKeyword._type)&&(0,s.lookaheadType)()!==T.TokenType.eq&&(0,k.expectContextual)(r.ContextualKeyword._type),G(),!0;if((0,s.eat)(T.TokenType.eq))return(0,i.parseExpression)(),(0,k.semicolon)(),!0;if((0,k.eatContextual)(r.ContextualKeyword._as))return(0,k.expectContextual)(r.ContextualKeyword._namespace),(0,i.parseIdentifier)(),(0,k.semicolon)(),!0;if((0,k.isContextual)(r.ContextualKeyword._type)){const e=(0,s.lookaheadType)();e!==T.TokenType.braceL&&e!==T.TokenType.star||(0,s.next)()}return!1},n.tsParseImportSpecifier=function(){if((0,i.parseIdentifier)(),(0,s.match)(T.TokenType.comma)||(0,s.match)(T.TokenType.braceR))return void(p.state.tokens[p.state.tokens.length-1].identifierRole=s.IdentifierRole.ImportDeclaration);if((0,i.parseIdentifier)(),(0,s.match)(T.TokenType.comma)||(0,s.match)(T.TokenType.braceR))return p.state.tokens[p.state.tokens.length-1].identifierRole=s.IdentifierRole.ImportDeclaration,p.state.tokens[p.state.tokens.length-2].isType=!0,void(p.state.tokens[p.state.tokens.length-1].isType=!0);if((0,i.parseIdentifier)(),(0,s.match)(T.TokenType.comma)||(0,s.match)(T.TokenType.braceR))return p.state.tokens[p.state.tokens.length-3].identifierRole=s.IdentifierRole.ImportAccess,void(p.state.tokens[p.state.tokens.length-1].identifierRole=s.IdentifierRole.ImportDeclaration);(0,i.parseIdentifier)(),p.state.tokens[p.state.tokens.length-3].identifierRole=s.IdentifierRole.ImportAccess,p.state.tokens[p.state.tokens.length-1].identifierRole=s.IdentifierRole.ImportDeclaration,p.state.tokens[p.state.tokens.length-4].isType=!0,p.state.tokens[p.state.tokens.length-3].isType=!0,p.state.tokens[p.state.tokens.length-2].isType=!0,p.state.tokens[p.state.tokens.length-1].isType=!0},n.tsParseExportSpecifier=function(){if((0,i.parseIdentifier)(),(0,s.match)(T.TokenType.comma)||(0,s.match)(T.TokenType.braceR))return void(p.state.tokens[p.state.tokens.length-1].identifierRole=s.IdentifierRole.ExportAccess);if((0,i.parseIdentifier)(),(0,s.match)(T.TokenType.comma)||(0,s.match)(T.TokenType.braceR))return p.state.tokens[p.state.tokens.length-1].identifierRole=s.IdentifierRole.ExportAccess,p.state.tokens[p.state.tokens.length-2].isType=!0,void(p.state.tokens[p.state.tokens.length-1].isType=!0);if((0,i.parseIdentifier)(),(0,s.match)(T.TokenType.comma)||(0,s.match)(T.TokenType.braceR))return void(p.state.tokens[p.state.tokens.length-3].identifierRole=s.IdentifierRole.ExportAccess);(0,i.parseIdentifier)(),p.state.tokens[p.state.tokens.length-3].identifierRole=s.IdentifierRole.ExportAccess,p.state.tokens[p.state.tokens.length-4].isType=!0,p.state.tokens[p.state.tokens.length-3].isType=!0,p.state.tokens[p.state.tokens.length-2].isType=!0,p.state.tokens[p.state.tokens.length-1].isType=!0},n.tsTryParseExportDefaultExpression=function(){if((0,k.isContextual)(r.ContextualKeyword._abstract)&&(0,s.lookaheadType)()===T.TokenType._class)return p.state.type=T.TokenType._abstract,(0,s.next)(),(0,y.parseClass)(!0,!0),!0;if((0,k.isContextual)(r.ContextualKeyword._interface)){const e=(0,s.pushTypeContext)(2);return $(r.ContextualKeyword._interface,!0),(0,s.popTypeContext)(e),!0}return!1},n.tsTryParseStatementContent=function(){if(p.state.type===T.TokenType._const){const e=(0,s.lookaheadTypeAndKeyword)();if(e.type===T.TokenType.name&&e.contextualKeyword===r.ContextualKeyword._enum)return(0,k.expect)(T.TokenType._const),(0,k.expectContextual)(r.ContextualKeyword._enum),p.state.tokens[p.state.tokens.length-1].type=T.TokenType._enum,Y(),!0}return!1},n.tsTryParseClassMemberWithIsStatic=function(e){const t=p.state.tokens.length;h([r.ContextualKeyword._abstract,r.ContextualKeyword._readonly,r.ContextualKeyword._declare,r.ContextualKeyword._static,r.ContextualKeyword._override]);const n=p.state.tokens.length;if(S()){for(let o=e?t-1:t;o<n;o++)p.state.tokens[o].isType=!0;return!0}return!1},n.tsParseIdentifierStatement=function(e){(function(e){switch(e){case r.ContextualKeyword._declare:{const e=p.state.tokens.length-1,t=function(){if((0,k.isLineTerminator)())return!1;switch(p.state.type){case T.TokenType._function:{const e=(0,s.pushTypeContext)(1);(0,s.next)();const t=p.state.start;return(0,y.parseFunction)(t,!0),(0,s.popTypeContext)(e),!0}case T.TokenType._class:{const e=(0,s.pushTypeContext)(1);return(0,y.parseClass)(!0,!1),(0,s.popTypeContext)(e),!0}case T.TokenType._const:if((0,s.match)(T.TokenType._const)&&(0,k.isLookaheadContextual)(r.ContextualKeyword._enum)){const e=(0,s.pushTypeContext)(1);return(0,k.expect)(T.TokenType._const),(0,k.expectContextual)(r.ContextualKeyword._enum),p.state.tokens[p.state.tokens.length-1].type=T.TokenType._enum,Y(),(0,s.popTypeContext)(e),!0}case T.TokenType._var:case T.TokenType._let:{const e=(0,s.pushTypeContext)(1);return(0,y.parseVarStatement)(p.state.type!==T.TokenType._var),(0,s.popTypeContext)(e),!0}case T.TokenType.name:{const e=(0,s.pushTypeContext)(1),t=p.state.contextualKeyword;let n=!1;return t===r.ContextualKeyword._global?(z(),n=!0):n=$(t,!0),(0,s.popTypeContext)(e),n}default:return!1}}();if(t)return p.state.tokens[e].type=T.TokenType._declare,!0;break}case r.ContextualKeyword._global:if((0,s.match)(T.TokenType.braceL))return H(),!0;break;default:return $(e,!1)}return!1})(e)||(0,k.semicolon)()},n.tsParseExportDeclaration=function(){const e=(0,k.eatContextual)(r.ContextualKeyword._declare);e&&(p.state.tokens[p.state.tokens.length-1].type=T.TokenType._declare);let t=!1;if((0,s.match)(T.TokenType.name))if(e){const e=(0,s.pushTypeContext)(2);t=Z(),(0,s.popTypeContext)(e)}else t=Z();if(!t)if(e){const e=(0,s.pushTypeContext)(2);(0,y.parseStatement)(!0),(0,s.popTypeContext)(e)}else(0,y.parseStatement)(!0)},n.tsAfterParseClassSuper=function(e){e&&((0,s.match)(T.TokenType.lessThan)||(0,s.match)(T.TokenType.bitShiftL))&&te();if((0,k.eatContextual)(r.ContextualKeyword._implements)){p.state.tokens[p.state.tokens.length-1].type=T.TokenType._implements;const e=(0,s.pushTypeContext)(1);Q(),(0,s.popTypeContext)(e)}},n.tsStartParseObjPropValue=function(){_()},n.tsStartParseFunctionParams=function(){_()},n.tsAfterParseVarHead=function(){const e=(0,s.pushTypeContext)(0);(0,k.hasPrecedingLineBreak)()||(0,s.eat)(T.TokenType.bang);N(),(0,s.popTypeContext)(e)},n.tsStartParseAsyncArrowFromCallExpression=function(){(0,s.match)(T.TokenType.colon)&&X()},n.tsParseMaybeAssign=function(e,t){return p.isJSXEnabled?oe(e,t):ae(e,t)},n.tsParseMaybeAssignWithJSX=oe,n.tsParseMaybeAssignWithoutJSX=ae,n.tsParseArrow=function(){if((0,s.match)(T.TokenType.colon)){const e=p.state.snapshot();O(T.TokenType.colon),(0,k.canInsertSemicolon)()&&(0,k.unexpected)(),(0,s.match)(T.TokenType.arrow)||(0,k.unexpected)(),p.state.error&&p.state.restoreFromSnapshot(e)}return(0,s.eat)(T.TokenType.arrow)},n.tsParseAssignableListItemTypes=function(){const e=(0,s.pushTypeContext)(0);(0,s.eat)(T.TokenType.question),N(),(0,s.popTypeContext)(e)},n.tsParseMaybeDecoratorArguments=function(){((0,s.match)(T.TokenType.lessThan)||(0,s.match)(T.TokenType.bitShiftL))&&te();(0,y.baseParseMaybeDecoratorArguments)()};const s=e(\"bfb18d0576\"),r=e(\"99ff836c64\"),T=e(\"f0c35cbd76\"),p=e(\"540718e523\"),i=e(\"8178e7c3c8\"),c=e(\"4cefc59e67\"),y=e(\"e3b9989da1\"),k=e(\"bc94bbadc1\"),u=e(\"d7708a7d24\");function l(){return(0,s.match)(T.TokenType.name)}function x(){const e=p.state.snapshot();(0,s.next)();return!!(((0,s.match)(T.TokenType.bracketL)||(0,s.match)(T.TokenType.braceL)||(0,s.match)(T.TokenType.star)||(0,s.match)(T.TokenType.ellipsis)||(0,s.match)(T.TokenType.hash)||(0,s.match)(T.TokenType.name)||Boolean(p.state.type&T.TokenType.IS_KEYWORD)||(0,s.match)(T.TokenType.string)||(0,s.match)(T.TokenType.num)||(0,s.match)(T.TokenType.bigint)||(0,s.match)(T.TokenType.decimal))&&!(0,k.hasPrecedingLineBreak)())||(p.state.restoreFromSnapshot(e),!1)}function h(e){for(;;){if(null===d(e))break}}function d(e){if(!(0,s.match)(T.TokenType.name))return null;const t=p.state.contextualKeyword;if(-1!==e.indexOf(t)&&x()){switch(t){case r.ContextualKeyword._readonly:p.state.tokens[p.state.tokens.length-1].type=T.TokenType._readonly;break;case r.ContextualKeyword._abstract:p.state.tokens[p.state.tokens.length-1].type=T.TokenType._abstract;break;case r.ContextualKeyword._static:p.state.tokens[p.state.tokens.length-1].type=T.TokenType._static;break;case r.ContextualKeyword._public:p.state.tokens[p.state.tokens.length-1].type=T.TokenType._public;break;case r.ContextualKeyword._private:p.state.tokens[p.state.tokens.length-1].type=T.TokenType._private;break;case r.ContextualKeyword._protected:p.state.tokens[p.state.tokens.length-1].type=T.TokenType._protected;break;case r.ContextualKeyword._override:p.state.tokens[p.state.tokens.length-1].type=T.TokenType._override;break;case r.ContextualKeyword._declare:p.state.tokens[p.state.tokens.length-1].type=T.TokenType._declare}return t}return null}function m(){for((0,i.parseIdentifier)();(0,s.eat)(T.TokenType.dot);)(0,i.parseIdentifier)()}function f(){(0,k.expect)(T.TokenType._import),(0,k.expect)(T.TokenType.parenL),(0,k.expect)(T.TokenType.string),(0,k.expect)(T.TokenType.parenR),(0,s.eat)(T.TokenType.dot)&&m(),(0,s.match)(T.TokenType.lessThan)&&ne()}function C(){(0,s.eat)(T.TokenType._const);const e=(0,s.eat)(T.TokenType._in),t=(0,k.eatContextual)(r.ContextualKeyword._out);(0,s.eat)(T.TokenType._const),!e&&!t||(0,s.match)(T.TokenType.name)?(0,i.parseIdentifier)():p.state.tokens[p.state.tokens.length-1].type=T.TokenType.name,(0,s.eat)(T.TokenType._extends)&&J(),(0,s.eat)(T.TokenType.eq)&&J()}function _(){(0,s.match)(T.TokenType.lessThan)&&b()}function b(){const e=(0,s.pushTypeContext)(0);for((0,s.match)(T.TokenType.lessThan)||(0,s.match)(T.TokenType.typeParameterStart)?(0,s.next)():(0,k.unexpected)();!(0,s.eat)(T.TokenType.greaterThan)&&!p.state.error;)C(),(0,s.eat)(T.TokenType.comma);(0,s.popTypeContext)(e)}function w(e){const t=e===T.TokenType.arrow;var n;_(),(0,k.expect)(T.TokenType.parenL),p.state.scopeDepth++,n=!1,(0,c.parseBindingList)(T.TokenType.parenR,n),p.state.scopeDepth--,(t||(0,s.match)(e))&&O(e)}function g(){(0,s.eat)(T.TokenType.comma)||(0,k.semicolon)()}function K(){w(T.TokenType.colon),g()}function S(){if(!(0,s.match)(T.TokenType.bracketL)||!function(){const e=p.state.snapshot();(0,s.next)();const t=(0,s.eat)(T.TokenType.name)&&(0,s.match)(T.TokenType.colon);return p.state.restoreFromSnapshot(e),t}())return!1;const e=(0,s.pushTypeContext)(0);return(0,k.expect)(T.TokenType.bracketL),(0,i.parseIdentifier)(),X(),(0,k.expect)(T.TokenType.bracketR),N(),g(),(0,s.popTypeContext)(e),!0}function L(e){(0,s.eat)(T.TokenType.question),e||!(0,s.match)(T.TokenType.parenL)&&!(0,s.match)(T.TokenType.lessThan)?(N(),g()):(w(T.TokenType.colon),g())}function P(){if((0,s.match)(T.TokenType.parenL)||(0,s.match)(T.TokenType.lessThan))return void K();if((0,s.match)(T.TokenType._new))return(0,s.next)(),void((0,s.match)(T.TokenType.parenL)||(0,s.match)(T.TokenType.lessThan)?K():L(!1));const e=!!d([r.ContextualKeyword._readonly]);S()||(((0,k.isContextual)(r.ContextualKeyword._get)||(0,k.isContextual)(r.ContextualKeyword._set))&&x(),(0,i.parsePropertyName)(-1),L(e))}function I(){for((0,k.expect)(T.TokenType.braceL);!(0,s.eat)(T.TokenType.braceR)&&!p.state.error;)P()}function R(){const e=p.state.snapshot(),t=function(){if((0,s.next)(),(0,s.eat)(T.TokenType.plus)||(0,s.eat)(T.TokenType.minus))return(0,k.isContextual)(r.ContextualKeyword._readonly);(0,k.isContextual)(r.ContextualKeyword._readonly)&&(0,s.next)();if(!(0,s.match)(T.TokenType.bracketL))return!1;if((0,s.next)(),!l())return!1;return(0,s.next)(),(0,s.match)(T.TokenType._in)}();return p.state.restoreFromSnapshot(e),t}function A(){(0,k.expect)(T.TokenType.braceL),(0,s.match)(T.TokenType.plus)||(0,s.match)(T.TokenType.minus)?((0,s.next)(),(0,k.expectContextual)(r.ContextualKeyword._readonly)):(0,k.eatContextual)(r.ContextualKeyword._readonly),(0,k.expect)(T.TokenType.bracketL),(0,i.parseIdentifier)(),(0,k.expect)(T.TokenType._in),J(),(0,k.eatContextual)(r.ContextualKeyword._as)&&J(),(0,k.expect)(T.TokenType.bracketR),(0,s.match)(T.TokenType.plus)||(0,s.match)(T.TokenType.minus)?((0,s.next)(),(0,k.expect)(T.TokenType.question)):(0,s.eat)(T.TokenType.question),(0,s.eat)(T.TokenType.colon)&&J(),(0,k.semicolon)(),(0,k.expect)(T.TokenType.braceR)}function D(){(0,s.eat)(T.TokenType.ellipsis)?J():(J(),(0,s.eat)(T.TokenType.question)),(0,s.eat)(T.TokenType.colon)&&J()}var v;function B(e){e===v.TSAbstractConstructorType&&(0,k.expectContextual)(r.ContextualKeyword._abstract),e!==v.TSConstructorType&&e!==v.TSAbstractConstructorType||(0,k.expect)(T.TokenType._new);const t=p.state.inDisallowConditionalTypesContext;p.state.inDisallowConditionalTypesContext=!1,w(T.TokenType.arrow),p.state.inDisallowConditionalTypesContext=t}function F(){switch(p.state.type){case T.TokenType.name:return m(),void(!(0,k.hasPrecedingLineBreak)()&&(0,s.match)(T.TokenType.lessThan)&&ne());case T.TokenType._void:case T.TokenType._null:return void(0,s.next)();case T.TokenType.string:case T.TokenType.num:case T.TokenType.bigint:case T.TokenType.decimal:case T.TokenType._true:case T.TokenType._false:return void(0,i.parseLiteral)();case T.TokenType.minus:return(0,s.next)(),void(0,i.parseLiteral)();case T.TokenType._this:return(0,s.next)(),void((0,k.isContextual)(r.ContextualKeyword._is)&&!(0,k.hasPrecedingLineBreak)()&&((0,s.next)(),X()));case T.TokenType._typeof:return(0,k.expect)(T.TokenType._typeof),(0,s.match)(T.TokenType._import)?f():m(),void(!(0,k.hasPrecedingLineBreak)()&&(0,s.match)(T.TokenType.lessThan)&&ne());case T.TokenType._import:return void f();case T.TokenType.braceL:return void(R()?A():I());case T.TokenType.bracketL:return void function(){for((0,k.expect)(T.TokenType.bracketL);!(0,s.eat)(T.TokenType.bracketR)&&!p.state.error;)D(),(0,s.eat)(T.TokenType.comma)}();case T.TokenType.parenL:return(0,k.expect)(T.TokenType.parenL),J(),void(0,k.expect)(T.TokenType.parenR);case T.TokenType.backQuote:return void function(){for((0,s.nextTemplateToken)(),(0,s.nextTemplateToken)();!(0,s.match)(T.TokenType.backQuote)&&!p.state.error;)(0,k.expect)(T.TokenType.dollarBraceL),J(),(0,s.nextTemplateToken)(),(0,s.nextTemplateToken)();(0,s.next)()}();default:if(p.state.type&T.TokenType.IS_KEYWORD)return(0,s.next)(),void(p.state.tokens[p.state.tokens.length-1].type=T.TokenType.name)}(0,k.unexpected)()}function E(){if((0,k.isContextual)(r.ContextualKeyword._keyof)||(0,k.isContextual)(r.ContextualKeyword._unique)||(0,k.isContextual)(r.ContextualKeyword._readonly))(0,s.next)(),E();else if((0,k.isContextual)(r.ContextualKeyword._infer))!function(){if((0,k.expectContextual)(r.ContextualKeyword._infer),(0,i.parseIdentifier)(),(0,s.match)(T.TokenType._extends)){const e=p.state.snapshot();(0,k.expect)(T.TokenType._extends);const t=p.state.inDisallowConditionalTypesContext;p.state.inDisallowConditionalTypesContext=!0,J(),p.state.inDisallowConditionalTypesContext=t,(p.state.error||!p.state.inDisallowConditionalTypesContext&&(0,s.match)(T.TokenType.question))&&p.state.restoreFromSnapshot(e)}}();else{const e=p.state.inDisallowConditionalTypesContext;p.state.inDisallowConditionalTypesContext=!1,function(){for(F();!(0,k.hasPrecedingLineBreak)()&&(0,s.eat)(T.TokenType.bracketL);)(0,s.eat)(T.TokenType.bracketR)||(J(),(0,k.expect)(T.TokenType.bracketR))}(),p.state.inDisallowConditionalTypesContext=e}}function q(){if((0,s.eat)(T.TokenType.bitwiseAND),E(),(0,s.match)(T.TokenType.bitwiseAND))for(;(0,s.eat)(T.TokenType.bitwiseAND);)E()}function M(){return!!(0,s.match)(T.TokenType.lessThan)||(0,s.match)(T.TokenType.parenL)&&function(){const e=p.state.snapshot(),t=function(){if((0,s.next)(),(0,s.match)(T.TokenType.parenR)||(0,s.match)(T.TokenType.ellipsis))return!0;if(function(){if((0,s.match)(T.TokenType.name)||(0,s.match)(T.TokenType._this))return(0,s.next)(),!0;if((0,s.match)(T.TokenType.braceL)||(0,s.match)(T.TokenType.bracketL)){let e=1;for((0,s.next)();e>0&&!p.state.error;)(0,s.match)(T.TokenType.braceL)||(0,s.match)(T.TokenType.bracketL)?e++:((0,s.match)(T.TokenType.braceR)||(0,s.match)(T.TokenType.bracketR))&&e--,(0,s.next)();return!0}return!1}()){if((0,s.match)(T.TokenType.colon)||(0,s.match)(T.TokenType.comma)||(0,s.match)(T.TokenType.question)||(0,s.match)(T.TokenType.eq))return!0;if((0,s.match)(T.TokenType.parenR)&&((0,s.next)(),(0,s.match)(T.TokenType.arrow)))return!0}return!1}();return p.state.restoreFromSnapshot(e),t}()}function O(e){const t=(0,s.pushTypeContext)(0);(0,k.expect)(e);(function(){const e=p.state.snapshot();if((0,k.isContextual)(r.ContextualKeyword._asserts))return(0,s.next)(),(0,k.eatContextual)(r.ContextualKeyword._is)?(J(),!0):l()||(0,s.match)(T.TokenType._this)?((0,s.next)(),(0,k.eatContextual)(r.ContextualKeyword._is)&&J(),!0):(p.state.restoreFromSnapshot(e),!1);if(l()||(0,s.match)(T.TokenType._this))return(0,s.next)(),(0,k.isContextual)(r.ContextualKeyword._is)&&!(0,k.hasPrecedingLineBreak)()?((0,s.next)(),J(),!0):(p.state.restoreFromSnapshot(e),!1);return!1})()||J(),(0,s.popTypeContext)(t)}function N(){(0,s.match)(T.TokenType.colon)&&X()}function X(){const e=(0,s.pushTypeContext)(0);(0,k.expect)(T.TokenType.colon),J(),(0,s.popTypeContext)(e)}function J(){if(W(),p.state.inDisallowConditionalTypesContext||(0,k.hasPrecedingLineBreak)()||!(0,s.eat)(T.TokenType._extends))return;const e=p.state.inDisallowConditionalTypesContext;p.state.inDisallowConditionalTypesContext=!0,W(),p.state.inDisallowConditionalTypesContext=e,(0,k.expect)(T.TokenType.question),J(),(0,k.expect)(T.TokenType.colon),J()}function W(){M()?B(v.TSFunctionType):(0,s.match)(T.TokenType._new)?B(v.TSConstructorType):(0,k.isContextual)(r.ContextualKeyword._abstract)&&(0,s.lookaheadType)()===T.TokenType._new?B(v.TSAbstractConstructorType):function(){if((0,s.eat)(T.TokenType.bitwiseOR),q(),(0,s.match)(T.TokenType.bitwiseOR))for(;(0,s.eat)(T.TokenType.bitwiseOR);)q()}()}function Q(){for(;!(0,s.match)(T.TokenType.braceL)&&!p.state.error;)V(),(0,s.eat)(T.TokenType.comma)}function V(){m(),(0,s.match)(T.TokenType.lessThan)&&ne()}function j(){if((0,s.match)(T.TokenType.string)?(0,i.parseLiteral)():(0,i.parseIdentifier)(),(0,s.eat)(T.TokenType.eq)){const e=p.state.tokens.length-1;(0,i.parseMaybeAssign)(),p.state.tokens[e].rhsEndIndex=p.state.tokens.length}}function Y(){for((0,c.parseBindingIdentifier)(!1),(0,k.expect)(T.TokenType.braceL);!(0,s.eat)(T.TokenType.braceR)&&!p.state.error;)j(),(0,s.eat)(T.TokenType.comma)}function H(){(0,k.expect)(T.TokenType.braceL),(0,y.parseBlockBody)(T.TokenType.braceR)}function U(){(0,c.parseBindingIdentifier)(!1),(0,s.eat)(T.TokenType.dot)?U():H()}function z(){(0,k.isContextual)(r.ContextualKeyword._global)?(0,i.parseIdentifier)():(0,s.match)(T.TokenType.string)?(0,i.parseExprAtom)():(0,k.unexpected)(),(0,s.match)(T.TokenType.braceL)?H():(0,k.semicolon)()}function G(){(0,c.parseImportedIdentifier)(),(0,k.expect)(T.TokenType.eq),(0,k.isContextual)(r.ContextualKeyword._require)&&(0,s.lookaheadType)()===T.TokenType.parenL?((0,k.expectContextual)(r.ContextualKeyword._require),(0,k.expect)(T.TokenType.parenL),(0,s.match)(T.TokenType.string)||(0,k.unexpected)(),(0,i.parseLiteral)(),(0,k.expect)(T.TokenType.parenR)):m(),(0,k.semicolon)()}function Z(){return $(p.state.contextualKeyword,!0)}function $(e,t){switch(e){case r.ContextualKeyword._abstract:if(ee(t)&&(0,s.match)(T.TokenType._class))return p.state.tokens[p.state.tokens.length-1].type=T.TokenType._abstract,(0,y.parseClass)(!0,!1),!0;break;case r.ContextualKeyword._enum:if(ee(t)&&(0,s.match)(T.TokenType.name))return p.state.tokens[p.state.tokens.length-1].type=T.TokenType._enum,Y(),!0;break;case r.ContextualKeyword._interface:if(ee(t)&&(0,s.match)(T.TokenType.name)){const e=(0,s.pushTypeContext)(t?2:1);return(0,c.parseBindingIdentifier)(!1),_(),(0,s.eat)(T.TokenType._extends)&&Q(),I(),(0,s.popTypeContext)(e),!0}break;case r.ContextualKeyword._module:if(ee(t)){if((0,s.match)(T.TokenType.string)){const e=(0,s.pushTypeContext)(t?2:1);return z(),(0,s.popTypeContext)(e),!0}if((0,s.match)(T.TokenType.name)){const e=(0,s.pushTypeContext)(t?2:1);return U(),(0,s.popTypeContext)(e),!0}}break;case r.ContextualKeyword._namespace:if(ee(t)&&(0,s.match)(T.TokenType.name)){const e=(0,s.pushTypeContext)(t?2:1);return U(),(0,s.popTypeContext)(e),!0}break;case r.ContextualKeyword._type:if(ee(t)&&(0,s.match)(T.TokenType.name)){const e=(0,s.pushTypeContext)(t?2:1);return(0,c.parseBindingIdentifier)(!1),_(),(0,k.expect)(T.TokenType.eq),J(),(0,k.semicolon)(),(0,s.popTypeContext)(e),!0}}return!1}function ee(e){return e?((0,s.next)(),!0):!(0,k.isLineTerminator)()}function te(){p.state.type===T.TokenType.bitShiftL&&(p.state.pos-=1,(0,s.finishToken)(T.TokenType.lessThan)),ne()}function ne(){const e=(0,s.pushTypeContext)(0);for((0,k.expect)(T.TokenType.lessThan);!(0,s.match)(T.TokenType.greaterThan)&&!p.state.error;)J(),(0,s.eat)(T.TokenType.comma);e?((0,k.expect)(T.TokenType.greaterThan),(0,s.popTypeContext)(e)):((0,s.popTypeContext)(e),(0,s.rescan_gt)(),(0,k.expect)(T.TokenType.greaterThan),p.state.tokens[p.state.tokens.length-1].isType=!0)}function oe(e,t){if(!(0,s.match)(T.TokenType.lessThan))return(0,i.baseParseMaybeAssign)(e,t);const n=p.state.snapshot();let o=(0,i.baseParseMaybeAssign)(e,t);return p.state.error?(p.state.restoreFromSnapshot(n),p.state.type=T.TokenType.typeParameterStart,b(),o=(0,i.baseParseMaybeAssign)(e,t),o||(0,k.unexpected)(),o):o}function ae(e,t){if(!(0,s.match)(T.TokenType.lessThan))return(0,i.baseParseMaybeAssign)(e,t);const n=p.state.snapshot();b();const o=(0,i.baseParseMaybeAssign)(e,t);return o||(0,k.unexpected)(),p.state.error?(p.state.restoreFromSnapshot(n),(0,i.baseParseMaybeAssign)(e,t)):o}!function(e){e[e.TSFunctionType=0]=\"TSFunctionType\";e[e.TSConstructorType=1]=\"TSConstructorType\";e[e.TSAbstractConstructorType=2]=\"TSAbstractConstructorType\"}(v||(v={}))}\n//# sourceMappingURL=typescript.min.js.map","min_map":"{\"version\":3,\"file\":\"typescript.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tsParseModifiers\",\"tsParseModifier\",\"tsTryParseTypeParameters\",\"tsTryParseTypeAnnotation\",\"tsParseTypeAnnotation\",\"tsParseType\",\"tsParseNonConditionalType\",\"tsParseTypeAssertion\",\"oldIsType\",\"index_1\",\"pushTypeContext\",\"util_1\",\"expect\",\"types_1\",\"TokenType\",\"greaterThan\",\"popTypeContext\",\"expression_1\",\"parseMaybeUnary\",\"tsTryParseJSXTypeArgument\",\"eat\",\"jsxTagStart\",\"base_1\",\"state\",\"tokens\",\"length\",\"type\",\"typeParameterStart\",\"match\",\"error\",\"comma\",\"jsx_1\",\"nextJSXTagToken\",\"tsParseImportEqualsDeclaration\",\"tsIsDeclarationStart\",\"name\",\"contextualKeyword\",\"keywords_1\",\"ContextualKeyword\",\"_abstract\",\"_declare\",\"_enum\",\"_interface\",\"_module\",\"_namespace\",\"_type\",\"tsParseFunctionBodyAndFinish\",\"functionStart\",\"funcContextId\",\"colon\",\"tsParseTypeOrTypePredicateAnnotation\",\"braceL\",\"isLineTerminator\",\"i\",\"start\",\"_default\",\"_export\",\"isType\",\"parseFunctionBody\",\"tsParseSubscript\",\"startTokenIndex\",\"noCalls\",\"stopState\",\"hasPrecedingLineBreak\",\"bang\",\"nonNullAssertion\",\"lessThan\",\"bitShiftL\",\"snapshot\",\"atPossibleAsync\",\"asyncArrowFn\",\"tsParseTypeParameters\",\"statement_1\",\"parseFunctionParams\",\"tsTryParseTypeOrTypePredicateAnnotation\",\"arrow\",\"restoreFromSnapshot\",\"tsTryParseGenericAsyncArrowFunction\",\"tsParseTypeArgumentsWithPossibleBitshift\",\"parenL\",\"subscriptStartIndex\",\"parseCallExpressionArguments\",\"backQuote\",\"parseTemplate\",\"Boolean\",\"IS_EXPRESSION_START\",\"unexpected\",\"questionDot\",\"lookaheadType\",\"next\",\"isOptionalChainStart\",\"tsParseTypeArguments\",\"baseParseSubscript\",\"tsTryParseExport\",\"_import\",\"isContextual\",\"eq\",\"expectContextual\",\"parseExpression\",\"semicolon\",\"eatContextual\",\"_as\",\"parseIdentifier\",\"nextType\",\"star\",\"tsParseImportSpecifier\",\"braceR\",\"identifierRole\",\"IdentifierRole\",\"ImportDeclaration\",\"ImportAccess\",\"tsParseExportSpecifier\",\"ExportAccess\",\"tsTryParseExportDefaultExpression\",\"_class\",\"parseClass\",\"tsParseDeclaration\",\"tsTryParseStatementContent\",\"_const\",\"ahead\",\"lookaheadTypeAndKeyword\",\"tsParseEnumDeclaration\",\"tsTryParseClassMemberWithIsStatic\",\"isStatic\",\"memberStartIndexAfterStatic\",\"_readonly\",\"_static\",\"_override\",\"modifiersEndIndex\",\"tsTryParseIndexSignature\",\"tsParseIdentifierStatement\",\"declareTokenIndex\",\"matched\",\"_function\",\"parseFunction\",\"isLookaheadContextual\",\"_var\",\"_let\",\"parseVarStatement\",\"_global\",\"tsParseAmbientExternalModuleDeclaration\",\"tsTryParseDeclare\",\"tsParseModuleBlock\",\"tsParseExpressionStatement\",\"tsParseExportDeclaration\",\"isDeclare\",\"matchedDeclaration\",\"tsTryParseExportDeclaration\",\"parseStatement\",\"tsAfterParseClassSuper\",\"hasSuper\",\"_implements\",\"tsParseHeritageClause\",\"tsStartParseObjPropValue\",\"tsStartParseFunctionParams\",\"tsAfterParseVarHead\",\"tsStartParseAsyncArrowFromCallExpression\",\"tsParseMaybeAssign\",\"noIn\",\"isWithinParens\",\"isJSXEnabled\",\"tsParseMaybeAssignWithJSX\",\"tsParseMaybeAssignWithoutJSX\",\"tsParseArrow\",\"canInsertSemicolon\",\"tsParseAssignableListItemTypes\",\"question\",\"tsParseMaybeDecoratorArguments\",\"baseParseMaybeDecoratorArguments\",\"lval_1\",\"tsIsIdentifier\",\"tsNextTokenCanFollowModifier\",\"bracketL\",\"ellipsis\",\"hash\",\"IS_KEYWORD\",\"string\",\"num\",\"bigint\",\"decimal\",\"allowedModifiers\",\"modifier\",\"indexOf\",\"_public\",\"_private\",\"_protected\",\"tsParseEntityName\",\"dot\",\"tsParseImportType\",\"parenR\",\"tsParseTypeParameter\",\"hadIn\",\"_in\",\"hadOut\",\"_out\",\"_extends\",\"tsFillSignature\",\"returnToken\",\"returnTokenRequired\",\"isBlockScope\",\"scopeDepth\",\"parseBindingList\",\"tsParseTypeMemberSemicolon\",\"tsParseSignatureMember\",\"isIndexSignature\",\"tsIsUnambiguouslyIndexSignature\",\"bracketR\",\"tsParsePropertyOrMethodSignature\",\"isReadonly\",\"tsParseTypeMember\",\"_new\",\"readonly\",\"_get\",\"_set\",\"parsePropertyName\",\"tsParseObjectTypeMembers\",\"tsLookaheadIsStartOfMappedType\",\"isStartOfMappedType\",\"plus\",\"minus\",\"tsIsStartOfMappedType\",\"tsParseMappedType\",\"tsParseTupleElementType\",\"FunctionType\",\"tsParseFunctionOrConstructorType\",\"TSAbstractConstructorType\",\"TSConstructorType\",\"oldInDisallowConditionalTypesContext\",\"inDisallowConditionalTypesContext\",\"tsParseNonArrayType\",\"_void\",\"_null\",\"_true\",\"_false\",\"parseLiteral\",\"_this\",\"_is\",\"_typeof\",\"tsParseTupleType\",\"nextTemplateToken\",\"dollarBraceL\",\"tsParseTemplateLiteralType\",\"tsParseTypeOperatorOrHigher\",\"_keyof\",\"_unique\",\"_infer\",\"tsParseInferType\",\"tsParseArrayTypeOrHigher\",\"tsParseIntersectionTypeOrHigher\",\"bitwiseAND\",\"tsIsStartOfFunctionType\",\"isUnambiguouslyStartOfFunctionType\",\"depth\",\"tsSkipParameterStart\",\"tsIsUnambiguouslyStartOfFunctionType\",\"tsLookaheadIsUnambiguouslyStartOfFunctionType\",\"_asserts\",\"tsParseTypePredicateOrAssertsPrefix\",\"TSFunctionType\",\"bitwiseOR\",\"tsParseUnionTypeOrHigher\",\"tsParseExpressionWithTypeArguments\",\"tsParseEnumMember\",\"eqIndex\",\"parseMaybeAssign\",\"rhsEndIndex\",\"parseBindingIdentifier\",\"parseBlockBody\",\"tsParseModuleOrNamespaceDeclaration\",\"parseExprAtom\",\"parseImportedIdentifier\",\"_require\",\"isBeforeToken\",\"tsCheckLineTerminator\",\"pos\",\"finishToken\",\"rescan_gt\",\"baseParseMaybeAssign\",\"wasArrow\"],\"sources\":[\"0\"],\"mappings\":\"AAAoD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACjGD,IACAD,EAAQG,iBAAmBA,EAC3BH,EAAQI,gBAAkBA,EAC1BJ,EAAQK,yBAA2BA,EACnCL,EAAQM,yBAA2BA,EACnCN,EAAQO,sBAAwBA,EAChCP,EAAQQ,YAAcA,EACtBR,EAAQS,0BAA4BA,EACpCT,EAAQU,qBA8sBR,WACI,MAAMC,GAAY,EAAIC,EAAQC,iBAAiB,GAC/CL,KACA,EAAIM,EAAOC,QAAQC,EAAQC,UAAUC,cACrC,EAAIN,EAAQO,gBAAgBR,IAC5B,EAAIS,EAAaC,kBACrB,EAntBArB,EAAQsB,0BAotBR,WACI,IAAI,EAAIV,EAAQW,KAAKP,EAAQC,UAAUO,aAAc,CACjDC,EAAOC,MAAMC,OAAOF,EAAOC,MAAMC,OAAOC,OAAS,GAAGC,KAAOb,EAAQC,UAAUa,mBAC7E,MAAMnB,GAAY,EAAIC,EAAQC,iBAAiB,GAC/C,OAAQ,EAAID,EAAQmB,OAAOf,EAAQC,UAAUC,eAAiBO,EAAOC,MAAMM,OACvExB,KACA,EAAII,EAAQW,KAAKP,EAAQC,UAAUgB,QAGvC,EAAIC,EAAMC,oBACV,EAAIvB,EAAQO,gBAAgBR,EAChC,CACJ,EA/tBAX,EAAQoC,+BAAiCA,EACzCpC,EAAQqC,qBAmjCR,WACI,IAAI,EAAIzB,EAAQmB,OAAOf,EAAQC,UAAUqB,MACrC,OAAQb,EAAOC,MAAMa,mBACjB,KAAKC,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AMC,GAGxD,MAAM3F,EAAW9C,EAAOC,MAAM6C,WAC9B,IAAIkN,GAAW,EAAIrQ,EAAaoQ,sBAAsBvH,EAAMC,GAC5D,OAAIzI,EAAOC,MAAMM,OACbP,EAAOC,MAAMqD,oBAAoBR,GAMrC9C,EAAOC,MAAMG,KAAOb,EAAQC,UAAUa,mBAEtC4C,IACA+M,GAAW,EAAIrQ,EAAaoQ,sBAAsBvH,EAAMC,GACnDuH,IACD,EAAI3Q,EAAO2E,cAERgM,GAVIA,CAWf,CACA,SAASpH,GAA6BJ,EAAMC,GACxC,KAAK,EAAItJ,EAAQmB,OAAOf,EAAQC,UAAUoD,UACtC,OAAO,EAAIjD,EAAaoQ,sBAAsBvH,EAAMC,GAExD,MAAM3F,EAAW9C,EAAOC,MAAM6C,WAE9BG,IACA,MAAM+M,GAAW,EAAIrQ,EAAaoQ,sBAAsBvH,EAAMC,GAI9D,OAHKuH,IACD,EAAI3Q,EAAO2E,cAEXhE,EAAOC,MAAMM,OACbP,EAAOC,MAAMqD,oBAAoBR,IAQ9B,EAAInD,EAAaoQ,sBAAsBvH,EAAMC,IALzCuH,CAMf,EA/iCA,SAAWvD,GAEPA,EAAaA,EAA6B,eADnB,GACyC,iBAEhEA,EAAaA,EAAgC,kBADnBmC,GAC4C,oBAEtEnC,EAAaA,EAAwC,0BADnBG,GACoD,2BACzF,CAPD,CAOGH,IAAiBA,EAAe,CAAC,GAskCxC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/lval.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/traverser/lval.js","resolution":"ESM","id":"4cefc59e67","hash":"4cefc59e670c07a6f3ea413ba3e1f529d4ae4b057dba0647a84ab7eafa55469d","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parseSpread = parseSpread;\nexports.parseRest = parseRest;\nexports.parseBindingIdentifier = parseBindingIdentifier;\nexports.parseImportedIdentifier = parseImportedIdentifier;\nexports.markPriorBindingIdentifier = markPriorBindingIdentifier;\nexports.parseBindingAtom = parseBindingAtom;\nexports.parseBindingList = parseBindingList;\nexports.parseMaybeDefault = parseMaybeDefault;\nconst flow_1 = require(\"../plugins/flow\");\nconst typescript_1 = require(\"../plugins/typescript\");\nconst index_1 = require(\"../tokenizer/index\");\nconst keywords_1 = require(\"../tokenizer/keywords\");\nconst types_1 = require(\"../tokenizer/types\");\nconst base_1 = require(\"./base\");\nconst expression_1 = require(\"./expression\");\nconst util_1 = require(\"./util\");\nfunction parseSpread() {\n    (0, index_1.next)();\n    (0, expression_1.parseMaybeAssign)(false);\n}\nfunction parseRest(isBlockScope) {\n    (0, index_1.next)();\n    parseBindingAtom(isBlockScope);\n}\nfunction parseBindingIdentifier(isBlockScope) {\n    (0, expression_1.parseIdentifier)();\n    markPriorBindingIdentifier(isBlockScope);\n}\nfunction parseImportedIdentifier() {\n    (0, expression_1.parseIdentifier)();\n    base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_1.IdentifierRole.ImportDeclaration;\n}\nfunction markPriorBindingIdentifier(isBlockScope) {\n    let identifierRole;\n    if (base_1.state.scopeDepth === 0) {\n        identifierRole = index_1.IdentifierRole.TopLevelDeclaration;\n    }\n    else if (isBlockScope) {\n        identifierRole = index_1.IdentifierRole.BlockScopedDeclaration;\n    }\n    else {\n        identifierRole = index_1.IdentifierRole.FunctionScopedDeclaration;\n    }\n    base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = identifierRole;\n}\n// Parses lvalue (assignable) atom.\nfunction parseBindingAtom(isBlockScope) {\n    switch (base_1.state.type) {\n        case types_1.TokenType._this: {\n            // In TypeScript, \"this\" may be the name of a parameter, so allow it.\n            const oldIsType = (0, index_1.pushTypeContext)(0);\n            (0, index_1.next)();\n            (0, index_1.popTypeContext)(oldIsType);\n            return;\n        }\n        case types_1.TokenType._yield:\n        case types_1.TokenType.name: {\n            base_1.state.type = types_1.TokenType.name;\n            parseBindingIdentifier(isBlockScope);\n            return;\n        }\n        case types_1.TokenType.bracketL: {\n            (0, index_1.next)();\n            parseBindingList(types_1.TokenType.bracketR, isBlockScope, true /* allowEmpty */);\n            return;\n        }\n        case types_1.TokenType.braceL:\n            (0, expression_1.parseObj)(true, isBlockScope);\n            return;\n        default:\n            (0, util_1.unexpected)();\n    }\n}\nfunction parseBindingList(close, isBlockScope, allowEmpty = false, allowModifiers = false, contextId = 0) {\n    let first = true;\n    let hasRemovedComma = false;\n    const firstItemTokenIndex = base_1.state.tokens.length;\n    while (!(0, index_1.eat)(close) && !base_1.state.error) {\n        if (first) {\n            first = false;\n        }\n        else {\n            (0, util_1.expect)(types_1.TokenType.comma);\n            base_1.state.tokens[base_1.state.tokens.length - 1].contextId = contextId;\n            // After a \"this\" type in TypeScript, we need to set the following comma (if any) to also be\n            // a type token so that it will be removed.\n            if (!hasRemovedComma && base_1.state.tokens[firstItemTokenIndex].isType) {\n                base_1.state.tokens[base_1.state.tokens.length - 1].isType = true;\n                hasRemovedComma = true;\n            }\n        }\n        if (allowEmpty && (0, index_1.match)(types_1.TokenType.comma)) {\n            // Empty item; nothing further to parse for this item.\n        }\n        else if ((0, index_1.eat)(close)) {\n            break;\n        }\n        else if ((0, index_1.match)(types_1.TokenType.ellipsis)) {\n            parseRest(isBlockScope);\n            parseAssignableListItemTypes();\n            // Support rest element trailing commas allowed by TypeScript <2.9.\n            (0, index_1.eat)(types_1.TokenType.comma);\n            (0, util_1.expect)(close);\n            break;\n        }\n        else {\n            parseAssignableListItem(allowModifiers, isBlockScope);\n        }\n    }\n}\nfunction parseAssignableListItem(allowModifiers, isBlockScope) {\n    if (allowModifiers) {\n        (0, typescript_1.tsParseModifiers)([\n            keywords_1.ContextualKeyword._public,\n            keywords_1.ContextualKeyword._protected,\n            keywords_1.ContextualKeyword._private,\n            keywords_1.ContextualKeyword._readonly,\n            keywords_1.ContextualKeyword._override,\n        ]);\n    }\n    parseMaybeDefault(isBlockScope);\n    parseAssignableListItemTypes();\n    parseMaybeDefault(isBlockScope, true /* leftAlreadyParsed */);\n}\nfunction parseAssignableListItemTypes() {\n    if (base_1.isFlowEnabled) {\n        (0, flow_1.flowParseAssignableListItemTypes)();\n    }\n    else if (base_1.isTypeScriptEnabled) {\n        (0, typescript_1.tsParseAssignableListItemTypes)();\n    }\n}\n// Parses assignment pattern around given atom if possible.\nfunction parseMaybeDefault(isBlockScope, leftAlreadyParsed = false) {\n    if (!leftAlreadyParsed) {\n        parseBindingAtom(isBlockScope);\n    }\n    if (!(0, index_1.eat)(types_1.TokenType.eq)) {\n        return;\n    }\n    const eqIndex = base_1.state.tokens.length - 1;\n    (0, expression_1.parseMaybeAssign)();\n    base_1.state.tokens[eqIndex].rhsEndIndex = base_1.state.tokens.length;\n}\n","type":"js","dependency_paths":[["../plugins/flow","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/flow.js"],["../plugins/typescript","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/typescript.js"],["../tokenizer/index","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["../tokenizer/keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"],["../tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["./base","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/base.js"],["./expression","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/expression.js"],["./util","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/util.js"]],"dependency_map":[],"exported":[{"type":"named","name":"parseSpread"},{"type":"named","name":"parseRest"},{"type":"named","name":"parseBindingIdentifier"},{"type":"named","name":"parseImportedIdentifier"},{"type":"named","name":"markPriorBindingIdentifier"},{"type":"named","name":"parseBindingAtom"},{"type":"named","name":"parseBindingList"},{"type":"named","name":"parseMaybeDefault"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/traverser/lval.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.parseSpread = parseSpread;\n    exports.parseRest = parseRest;\n    exports.parseBindingIdentifier = parseBindingIdentifier;\n    exports.parseImportedIdentifier = parseImportedIdentifier;\n    exports.markPriorBindingIdentifier = markPriorBindingIdentifier;\n    exports.parseBindingAtom = parseBindingAtom;\n    exports.parseBindingList = parseBindingList;\n    exports.parseMaybeDefault = parseMaybeDefault;\n    const flow_1 = require(\"9b8d43cd0a\") /* ../plugins/flow */;\n    const typescript_1 = require(\"6a970c22b9\") /* ../plugins/typescript */;\n    const index_1 = require(\"bfb18d0576\") /* ../tokenizer/index */;\n    const keywords_1 = require(\"99ff836c64\") /* ../tokenizer/keywords */;\n    const types_1 = require(\"f0c35cbd76\") /* ../tokenizer/types */;\n    const base_1 = require(\"540718e523\") /* ./base */;\n    const expression_1 = require(\"8178e7c3c8\") /* ./expression */;\n    const util_1 = require(\"bc94bbadc1\") /* ./util */;\n    function parseSpread() {\n        (0, index_1.next)();\n        (0, expression_1.parseMaybeAssign)(false);\n    }\n    function parseRest(isBlockScope) {\n        (0, index_1.next)();\n        parseBindingAtom(isBlockScope);\n    }\n    function parseBindingIdentifier(isBlockScope) {\n        (0, expression_1.parseIdentifier)();\n        markPriorBindingIdentifier(isBlockScope);\n    }\n    function parseImportedIdentifier() {\n        (0, expression_1.parseIdentifier)();\n        base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = index_1.IdentifierRole.ImportDeclaration;\n    }\n    function markPriorBindingIdentifier(isBlockScope) {\n        let identifierRole;\n        if (base_1.state.scopeDepth === 0) {\n            identifierRole = index_1.IdentifierRole.TopLevelDeclaration;\n        }\n        else if (isBlockScope) {\n            identifierRole = index_1.IdentifierRole.BlockScopedDeclaration;\n        }\n        else {\n            identifierRole = index_1.IdentifierRole.FunctionScopedDeclaration;\n        }\n        base_1.state.tokens[base_1.state.tokens.length - 1].identifierRole = identifierRole;\n    }\n    // Parses lvalue (assignable) atom.\n    function parseBindingAtom(isBlockScope) {\n        switch (base_1.state.type) {\n            case types_1.TokenType._this: {\n                // In TypeScript, \"this\" may be the name of a parameter, so allow it.\n                const oldIsType = (0, index_1.pushTypeContext)(0);\n                (0, index_1.next)();\n                (0, index_1.popTypeContext)(oldIsType);\n                return;\n            }\n            case types_1.TokenType._yield:\n            case types_1.TokenType.name: {\n                base_1.state.type = types_1.TokenType.name;\n                parseBindingIdentifier(isBlockScope);\n                return;\n            }\n            case types_1.TokenType.bracketL: {\n                (0, index_1.next)();\n                parseBindingList(types_1.TokenType.bracketR, isBlockScope, true /* allowEmpty */);\n                return;\n            }\n            case types_1.TokenType.braceL:\n                (0, expression_1.parseObj)(true, isBlockScope);\n                return;\n            default:\n                (0, util_1.unexpected)();\n        }\n    }\n    function parseBindingList(close, isBlockScope, allowEmpty = false, allowModifiers = false, contextId = 0) {\n        let first = true;\n        let hasRemovedComma = false;\n        const firstItemTokenIndex = base_1.state.tokens.length;\n        while (!(0, index_1.eat)(close) && !base_1.state.error) {\n            if (first) {\n                first = false;\n            }\n            else {\n                (0, util_1.expect)(types_1.TokenType.comma);\n                base_1.state.tokens[base_1.state.tokens.length - 1].contextId = contextId;\n                // After a \"this\" type in TypeScript, we need to set the following comma (if any) to also be\n                // a type token so that it will be removed.\n                if (!hasRemovedComma && base_1.state.tokens[firstItemTokenIndex].isType) {\n                    base_1.state.tokens[base_1.state.tokens.length - 1].isType = true;\n                    hasRemovedComma = true;\n                }\n            }\n            if (allowEmpty && (0, index_1.match)(types_1.TokenType.comma)) {\n                // Empty item; nothing further to parse for this item.\n            }\n            else if ((0, index_1.eat)(close)) {\n                break;\n            }\n            else if ((0, index_1.match)(types_1.TokenType.ellipsis)) {\n                parseRest(isBlockScope);\n                parseAssignableListItemTypes();\n                // Support rest element trailing commas allowed by TypeScript <2.9.\n                (0, index_1.eat)(types_1.TokenType.comma);\n                (0, util_1.expect)(close);\n                break;\n            }\n            else {\n                parseAssignableListItem(allowModifiers, isBlockScope);\n            }\n        }\n    }\n    function parseAssignableListItem(allowModifiers, isBlockScope) {\n        if (allowModifiers) {\n            (0, typescript_1.tsParseModifiers)([\n                keywords_1.ContextualKeyword._public,\n                keywords_1.ContextualKeyword._protected,\n                keywords_1.ContextualKeyword._private,\n                keywords_1.ContextualKeyword._readonly,\n                keywords_1.ContextualKeyword._override,\n            ]);\n        }\n        parseMaybeDefault(isBlockScope);\n        parseAssignableListItemTypes();\n        parseMaybeDefault(isBlockScope, true /* leftAlreadyParsed */);\n    }\n    function parseAssignableListItemTypes() {\n        if (base_1.isFlowEnabled) {\n            (0, flow_1.flowParseAssignableListItemTypes)();\n        }\n        else if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsParseAssignableListItemTypes)();\n        }\n    }\n    // Parses assignment pattern around given atom if possible.\n    function parseMaybeDefault(isBlockScope, leftAlreadyParsed = false) {\n        if (!leftAlreadyParsed) {\n            parseBindingAtom(isBlockScope);\n        }\n        if (!(0, index_1.eat)(types_1.TokenType.eq)) {\n            return;\n        }\n        const eqIndex = base_1.state.tokens.length - 1;\n        (0, expression_1.parseMaybeAssign)();\n        base_1.state.tokens[eqIndex].rhsEndIndex = base_1.state.tokens.length;\n    }\n}\n","min_source":"function _(e,t,n,o,s){o(),n.parseSpread=function(){(0,r.next)(),(0,l.parseMaybeAssign)(!1)},n.parseRest=T,n.parseBindingIdentifier=k,n.parseImportedIdentifier=function(){(0,l.parseIdentifier)(),d.state.tokens[d.state.tokens.length-1].identifierRole=r.IdentifierRole.ImportDeclaration},n.markPriorBindingIdentifier=y,n.parseBindingAtom=u,n.parseBindingList=b,n.parseMaybeDefault=g;const a=e(\"9b8d43cd0a\"),i=e(\"6a970c22b9\"),r=e(\"bfb18d0576\"),c=e(\"99ff836c64\"),p=e(\"f0c35cbd76\"),d=e(\"540718e523\"),l=e(\"8178e7c3c8\"),f=e(\"bc94bbadc1\");function T(e){(0,r.next)(),u(e)}function k(e){(0,l.parseIdentifier)(),y(e)}function y(e){let t;t=0===d.state.scopeDepth?r.IdentifierRole.TopLevelDeclaration:e?r.IdentifierRole.BlockScopedDeclaration:r.IdentifierRole.FunctionScopedDeclaration,d.state.tokens[d.state.tokens.length-1].identifierRole=t}function u(e){switch(d.state.type){case p.TokenType._this:{const e=(0,r.pushTypeContext)(0);return(0,r.next)(),void(0,r.popTypeContext)(e)}case p.TokenType._yield:case p.TokenType.name:return d.state.type=p.TokenType.name,void k(e);case p.TokenType.bracketL:return(0,r.next)(),void b(p.TokenType.bracketR,e,!0);case p.TokenType.braceL:return void(0,l.parseObj)(!0,e);default:(0,f.unexpected)()}}function b(e,t,n=!1,o=!1,s=0){let a=!0,i=!1;const c=d.state.tokens.length;for(;!(0,r.eat)(e)&&!d.state.error;)if(a?a=!1:((0,f.expect)(p.TokenType.comma),d.state.tokens[d.state.tokens.length-1].contextId=s,!i&&d.state.tokens[c].isType&&(d.state.tokens[d.state.tokens.length-1].isType=!0,i=!0)),n&&(0,r.match)(p.TokenType.comma));else{if((0,r.eat)(e))break;if((0,r.match)(p.TokenType.ellipsis)){T(t),x(),(0,r.eat)(p.TokenType.comma),(0,f.expect)(e);break}m(o,t)}}function m(e,t){e&&(0,i.tsParseModifiers)([c.ContextualKeyword._public,c.ContextualKeyword._protected,c.ContextualKeyword._private,c.ContextualKeyword._readonly,c.ContextualKeyword._override]),g(t),x(),g(t,!0)}function x(){d.isFlowEnabled?(0,a.flowParseAssignableListItemTypes)():d.isTypeScriptEnabled&&(0,i.tsParseAssignableListItemTypes)()}function g(e,t=!1){if(t||u(e),!(0,r.eat)(p.TokenType.eq))return;const n=d.state.tokens.length-1;(0,l.parseMaybeAssign)(),d.state.tokens[n].rhsEndIndex=d.state.tokens.length}}\n//# sourceMappingURL=lval.min.js.map","min_map":"{\"version\":3,\"file\":\"lval.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"parseSpread\",\"index_1\",\"next\",\"expression_1\",\"parseMaybeAssign\",\"parseRest\",\"parseBindingIdentifier\",\"parseImportedIdentifier\",\"parseIdentifier\",\"base_1\",\"state\",\"tokens\",\"length\",\"identifierRole\",\"IdentifierRole\",\"ImportDeclaration\",\"markPriorBindingIdentifier\",\"parseBindingAtom\",\"parseBindingList\",\"parseMaybeDefault\",\"flow_1\",\"typescript_1\",\"keywords_1\",\"types_1\",\"util_1\",\"isBlockScope\",\"scopeDepth\",\"TopLevelDeclaration\",\"BlockScopedDeclaration\",\"FunctionScopedDeclaration\",\"type\",\"TokenType\",\"_this\",\"oldIsType\",\"pushTypeContext\",\"popTypeContext\",\"_yield\",\"name\",\"bracketL\",\"bracketR\",\"braceL\",\"parseObj\",\"unexpected\",\"close\",\"allowEmpty\",\"allowModifiers\",\"contextId\",\"first\",\"hasRemovedComma\",\"firstItemTokenIndex\",\"eat\",\"error\",\"expect\",\"comma\",\"isType\",\"match\",\"ellipsis\",\"parseAssignableListItemTypes\",\"parseAssignableListItem\",\"tsParseModifiers\",\"ContextualKeyword\",\"_public\",\"_protected\",\"_private\",\"_readonly\",\"_override\",\"isFlowEnabled\",\"flowParseAssignableListItemTypes\",\"isTypeScriptEnabled\",\"tsParseAssignableListItemTypes\",\"leftAlreadyParsed\",\"eq\",\"eqIndex\",\"rhsEndIndex\"],\"sources\":[\"0\"],\"mappings\":\"AAAgD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC7FD,IACAD,EAAQG,YAgBR,YACI,EAAIC,EAAQC,SACZ,EAAIC,EAAaC,mBAAkB,EACvC,EAlBAP,EAAQQ,UAAYA,EACpBR,EAAQS,uBAAyBA,EACjCT,EAAQU,wBAyBR,YACI,EAAIJ,EAAaK,mBACjBC,EAAOC,MAAMC,OAAOF,EAAOC,MAAMC,OAAOC,OAAS,GAAGC,eAAiBZ,EAAQa,eAAeC,iBAChG,EA3BAlB,EAAQmB,2BAA6BA,EACrCnB,EAAQoB,iBAAmBA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EAAOC,MAAMC,OAAOC,OAAS,GAC7C,EAAIT,EAAaC,oBACjBK,EAAOC,MAAMC,OAAO6D,GAASC,YAAchE,EAAOC,MAAMC,OAAOC,MACnE,CACJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/types.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/parser/plugins/types.js","resolution":"ESM","id":"85c51351f6","hash":"85c51351f603fcf296b2eb8655b6af4456b90bf71669d392ec3229109bac023e","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.typedParseConditional = typedParseConditional;\nexports.typedParseParenItem = typedParseParenItem;\nconst index_1 = require(\"../tokenizer/index\");\nconst types_1 = require(\"../tokenizer/types\");\nconst base_1 = require(\"../traverser/base\");\nconst expression_1 = require(\"../traverser/expression\");\nconst flow_1 = require(\"./flow\");\nconst typescript_1 = require(\"./typescript\");\n/**\n * Common parser code for TypeScript and Flow.\n */\n// An apparent conditional expression could actually be an optional parameter in an arrow function.\nfunction typedParseConditional(noIn) {\n    // If we see ?:, this can't possibly be a valid conditional. typedParseParenItem will be called\n    // later to finish off the arrow parameter. We also need to handle bare ? tokens for optional\n    // parameters without type annotations, i.e. ?, and ?) .\n    if ((0, index_1.match)(types_1.TokenType.question)) {\n        const nextType = (0, index_1.lookaheadType)();\n        if (nextType === types_1.TokenType.colon || nextType === types_1.TokenType.comma || nextType === types_1.TokenType.parenR) {\n            return;\n        }\n    }\n    (0, expression_1.baseParseConditional)(noIn);\n}\n// Note: These \"type casts\" are *not* valid TS expressions.\n// But we parse them here and change them when completing the arrow function.\nfunction typedParseParenItem() {\n    (0, index_1.eatTypeToken)(types_1.TokenType.question);\n    if ((0, index_1.match)(types_1.TokenType.colon)) {\n        if (base_1.isTypeScriptEnabled) {\n            (0, typescript_1.tsParseTypeAnnotation)();\n        }\n        else if (base_1.isFlowEnabled) {\n            (0, flow_1.flowParseTypeAnnotation)();\n        }\n    }\n}\n","type":"js","dependency_paths":[["../tokenizer/index","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["../tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["../traverser/base","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/base.js"],["../traverser/expression","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/traverser/expression.js"],["./flow","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/flow.js"],["./typescript","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/plugins/typescript.js"]],"dependency_map":[],"exported":[{"type":"named","name":"typedParseConditional"},{"type":"named","name":"typedParseParenItem"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/parser/plugins/types.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.typedParseConditional = typedParseConditional;\n    exports.typedParseParenItem = typedParseParenItem;\n    const index_1 = require(\"bfb18d0576\") /* ../tokenizer/index */;\n    const types_1 = require(\"f0c35cbd76\") /* ../tokenizer/types */;\n    const base_1 = require(\"540718e523\") /* ../traverser/base */;\n    const expression_1 = require(\"8178e7c3c8\") /* ../traverser/expression */;\n    const flow_1 = require(\"9b8d43cd0a\") /* ./flow */;\n    const typescript_1 = require(\"6a970c22b9\") /* ./typescript */;\n    /**\n     * Common parser code for TypeScript and Flow.\n     */\n    // An apparent conditional expression could actually be an optional parameter in an arrow function.\n    function typedParseConditional(noIn) {\n        // If we see ?:, this can't possibly be a valid conditional. typedParseParenItem will be called\n        // later to finish off the arrow parameter. We also need to handle bare ? tokens for optional\n        // parameters without type annotations, i.e. ?, and ?) .\n        if ((0, index_1.match)(types_1.TokenType.question)) {\n            const nextType = (0, index_1.lookaheadType)();\n            if (nextType === types_1.TokenType.colon || nextType === types_1.TokenType.comma || nextType === types_1.TokenType.parenR) {\n                return;\n            }\n        }\n        (0, expression_1.baseParseConditional)(noIn);\n    }\n    // Note: These \"type casts\" are *not* valid TS expressions.\n    // But we parse them here and change them when completing the arrow function.\n    function typedParseParenItem() {\n        (0, index_1.eatTypeToken)(types_1.TokenType.question);\n        if ((0, index_1.match)(types_1.TokenType.colon)) {\n            if (base_1.isTypeScriptEnabled) {\n                (0, typescript_1.tsParseTypeAnnotation)();\n            }\n            else if (base_1.isFlowEnabled) {\n                (0, flow_1.flowParseTypeAnnotation)();\n            }\n        }\n    }\n}\n","min_source":"function _(e,n,o,a,t){a(),o.typedParseConditional=function(e){if((0,T.match)(c.TokenType.question)){const e=(0,T.lookaheadType)();if(e===c.TokenType.colon||e===c.TokenType.comma||e===c.TokenType.parenR)return}(0,p.baseParseConditional)(e)},o.typedParseParenItem=function(){(0,T.eatTypeToken)(c.TokenType.question),(0,T.match)(c.TokenType.colon)&&(i.isTypeScriptEnabled?(0,y.tsParseTypeAnnotation)():i.isFlowEnabled&&(0,s.flowParseTypeAnnotation)())};const T=e(\"bfb18d0576\"),c=e(\"f0c35cbd76\"),i=e(\"540718e523\"),p=e(\"8178e7c3c8\"),s=e(\"9b8d43cd0a\"),y=e(\"6a970c22b9\")}\n//# sourceMappingURL=types.min.js.map","min_map":"{\"version\":3,\"file\":\"types.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"typedParseConditional\",\"noIn\",\"index_1\",\"match\",\"types_1\",\"TokenType\",\"question\",\"nextType\",\"lookaheadType\",\"colon\",\"comma\",\"parenR\",\"expression_1\",\"baseParseConditional\",\"typedParseParenItem\",\"eatTypeToken\",\"base_1\",\"isTypeScriptEnabled\",\"typescript_1\",\"tsParseTypeAnnotation\",\"isFlowEnabled\",\"flow_1\",\"flowParseTypeAnnotation\"],\"sources\":[\"0\"],\"mappings\":\"AAA+C,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC5FD,IACAD,EAAQG,sBAYR,SAA+BC,GAI3B,IAAI,EAAIC,EAAQC,OAAOC,EAAQC,UAAUC,UAAW,CAChD,MAAMC,GAAW,EAAIL,EAAQM,iBAC7B,GAAID,IAAaH,EAAQC,UAAUI,OAASF,IAAaH,EAAQC,UAAUK,OAASH,IAAaH,EAAQC,UAAUM,OAC/G,MAER,EACA,EAAIC,EAAaC,sBAAsBZ,EAC3C,EAtBAJ,EAAQiB,oBAyBR,YACI,EAAIZ,EAAQa,cAAcX,EAAQC,UAAUC,WACxC,EAAIJ,EAAQC,OAAOC,EAAQC,UAAUI,SACjCO,EAAOC,qBACP,EAAIC,EAAaC,yBAEZH,EAAOI,gBACZ,EAAIC,EAAOC,2BAGvB,EAlCA,MAAMpB,EAAUP,EAAQ,cAClBS,EAAUT,EAAQ,cAClBqB,EAASrB,EAAQ,cACjBiB,EAAejB,EAAQ,cACvB0B,EAAS1B,EAAQ,cACjBuB,EAAevB,EAAQ,aA8BjC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/TokenProcessor.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/TokenProcessor.js","resolution":"ESM","id":"1c7cc5e988","hash":"1c7cc5e9889cc05ca017a7d810a0f7e2092e0e6fabb243b2514c45af37018f27","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\nconst types_1 = require(\"./parser/tokenizer/types\");\nconst isAsyncOperation_1 = tslib_1.__importDefault(require(\"./util/isAsyncOperation\"));\nclass TokenProcessor {\n    __init() { this.resultCode = \"\"; }\n    // Array mapping input token index to optional string index position in the\n    // output code.\n    __init2() { this.resultMappings = new Array(this.tokens.length); }\n    __init3() { this.tokenIndex = 0; }\n    constructor(code, tokens, isFlowEnabled, disableESTransforms, helperManager) { ; this.code = code; this.tokens = tokens; this.isFlowEnabled = isFlowEnabled; this.disableESTransforms = disableESTransforms; this.helperManager = helperManager; TokenProcessor.prototype.__init.call(this); TokenProcessor.prototype.__init2.call(this); TokenProcessor.prototype.__init3.call(this); }\n    /**\n     * Snapshot the token state in a way that can be restored later, useful for\n     * things like lookahead.\n     *\n     * resultMappings do not need to be copied since in all use cases, they will\n     * be overwritten anyway after restore.\n     */\n    snapshot() {\n        return {\n            resultCode: this.resultCode,\n            tokenIndex: this.tokenIndex,\n        };\n    }\n    restoreToSnapshot(snapshot) {\n        this.resultCode = snapshot.resultCode;\n        this.tokenIndex = snapshot.tokenIndex;\n    }\n    /**\n     * Remove and return the code generated since the snapshot, leaving the\n     * current token position in-place. Unlike most TokenProcessor operations,\n     * this operation can result in input/output line number mismatches because\n     * the removed code may contain newlines, so this operation should be used\n     * sparingly.\n     */\n    dangerouslyGetAndRemoveCodeSinceSnapshot(snapshot) {\n        const result = this.resultCode.slice(snapshot.resultCode.length);\n        this.resultCode = snapshot.resultCode;\n        return result;\n    }\n    reset() {\n        this.resultCode = \"\";\n        this.resultMappings = new Array(this.tokens.length);\n        this.tokenIndex = 0;\n    }\n    matchesContextualAtIndex(index, contextualKeyword) {\n        return (this.matches1AtIndex(index, types_1.TokenType.name) &&\n            this.tokens[index].contextualKeyword === contextualKeyword);\n    }\n    identifierNameAtIndex(index) {\n        // TODO: We need to process escapes since technically you can have unicode escapes in variable\n        // names.\n        return this.identifierNameForToken(this.tokens[index]);\n    }\n    identifierNameAtRelativeIndex(relativeIndex) {\n        return this.identifierNameForToken(this.tokenAtRelativeIndex(relativeIndex));\n    }\n    identifierName() {\n        return this.identifierNameForToken(this.currentToken());\n    }\n    identifierNameForToken(token) {\n        return this.code.slice(token.start, token.end);\n    }\n    rawCodeForToken(token) {\n        return this.code.slice(token.start, token.end);\n    }\n    stringValueAtIndex(index) {\n        return this.stringValueForToken(this.tokens[index]);\n    }\n    stringValue() {\n        return this.stringValueForToken(this.currentToken());\n    }\n    stringValueForToken(token) {\n        // This is used to identify when two imports are the same and to resolve TypeScript enum keys.\n        // Ideally we'd process escapes within the strings, but for now we pretty much take the raw\n        // code.\n        return this.code.slice(token.start + 1, token.end - 1);\n    }\n    matches1AtIndex(index, t1) {\n        return this.tokens[index].type === t1;\n    }\n    matches2AtIndex(index, t1, t2) {\n        return this.tokens[index].type === t1 && this.tokens[index + 1].type === t2;\n    }\n    matches3AtIndex(index, t1, t2, t3) {\n        return (this.tokens[index].type === t1 &&\n            this.tokens[index + 1].type === t2 &&\n            this.tokens[index + 2].type === t3);\n    }\n    matches1(t1) {\n        return this.tokens[this.tokenIndex].type === t1;\n    }\n    matches2(t1, t2) {\n        return this.tokens[this.tokenIndex].type === t1 && this.tokens[this.tokenIndex + 1].type === t2;\n    }\n    matches3(t1, t2, t3) {\n        return (this.tokens[this.tokenIndex].type === t1 &&\n            this.tokens[this.tokenIndex + 1].type === t2 &&\n            this.tokens[this.tokenIndex + 2].type === t3);\n    }\n    matches4(t1, t2, t3, t4) {\n        return (this.tokens[this.tokenIndex].type === t1 &&\n            this.tokens[this.tokenIndex + 1].type === t2 &&\n            this.tokens[this.tokenIndex + 2].type === t3 &&\n            this.tokens[this.tokenIndex + 3].type === t4);\n    }\n    matches5(t1, t2, t3, t4, t5) {\n        return (this.tokens[this.tokenIndex].type === t1 &&\n            this.tokens[this.tokenIndex + 1].type === t2 &&\n            this.tokens[this.tokenIndex + 2].type === t3 &&\n            this.tokens[this.tokenIndex + 3].type === t4 &&\n            this.tokens[this.tokenIndex + 4].type === t5);\n    }\n    matchesContextual(contextualKeyword) {\n        return this.matchesContextualAtIndex(this.tokenIndex, contextualKeyword);\n    }\n    matchesContextIdAndLabel(type, contextId) {\n        return this.matches1(type) && this.currentToken().contextId === contextId;\n    }\n    previousWhitespaceAndComments() {\n        let whitespaceAndComments = this.code.slice(this.tokenIndex > 0 ? this.tokens[this.tokenIndex - 1].end : 0, this.tokenIndex < this.tokens.length ? this.tokens[this.tokenIndex].start : this.code.length);\n        if (this.isFlowEnabled) {\n            whitespaceAndComments = whitespaceAndComments.replace(/@flow/g, \"\");\n        }\n        return whitespaceAndComments;\n    }\n    replaceToken(newCode) {\n        this.resultCode += this.previousWhitespaceAndComments();\n        this.appendTokenPrefix();\n        this.resultMappings[this.tokenIndex] = this.resultCode.length;\n        this.resultCode += newCode;\n        this.appendTokenSuffix();\n        this.tokenIndex++;\n    }\n    replaceTokenTrimmingLeftWhitespace(newCode) {\n        this.resultCode += this.previousWhitespaceAndComments().replace(/[^\\r\\n]/g, \"\");\n        this.appendTokenPrefix();\n        this.resultMappings[this.tokenIndex] = this.resultCode.length;\n        this.resultCode += newCode;\n        this.appendTokenSuffix();\n        this.tokenIndex++;\n    }\n    removeInitialToken() {\n        this.replaceToken(\"\");\n    }\n    removeToken() {\n        this.replaceTokenTrimmingLeftWhitespace(\"\");\n    }\n    /**\n     * Remove all code until the next }, accounting for balanced braces.\n     */\n    removeBalancedCode() {\n        let braceDepth = 0;\n        while (!this.isAtEnd()) {\n            if (this.matches1(types_1.TokenType.braceL)) {\n                braceDepth++;\n            }\n            else if (this.matches1(types_1.TokenType.braceR)) {\n                if (braceDepth === 0) {\n                    return;\n                }\n                braceDepth--;\n            }\n            this.removeToken();\n        }\n    }\n    copyExpectedToken(tokenType) {\n        if (this.tokens[this.tokenIndex].type !== tokenType) {\n            throw new Error(`Expected token ${tokenType}`);\n        }\n        this.copyToken();\n    }\n    copyToken() {\n        this.resultCode += this.previousWhitespaceAndComments();\n        this.appendTokenPrefix();\n        this.resultMappings[this.tokenIndex] = this.resultCode.length;\n        this.resultCode += this.code.slice(this.tokens[this.tokenIndex].start, this.tokens[this.tokenIndex].end);\n        this.appendTokenSuffix();\n        this.tokenIndex++;\n    }\n    copyTokenWithPrefix(prefix) {\n        this.resultCode += this.previousWhitespaceAndComments();\n        this.appendTokenPrefix();\n        this.resultCode += prefix;\n        this.resultMappings[this.tokenIndex] = this.resultCode.length;\n        this.resultCode += this.code.slice(this.tokens[this.tokenIndex].start, this.tokens[this.tokenIndex].end);\n        this.appendTokenSuffix();\n        this.tokenIndex++;\n    }\n    appendTokenPrefix() {\n        const token = this.currentToken();\n        if (token.numNullishCoalesceStarts || token.isOptionalChainStart) {\n            token.isAsyncOperation = (0, isAsyncOperation_1.default)(this);\n        }\n        if (this.disableESTransforms) {\n            return;\n        }\n        if (token.numNullishCoalesceStarts) {\n            for (let i = 0; i < token.numNullishCoalesceStarts; i++) {\n                if (token.isAsyncOperation) {\n                    this.resultCode += \"await \";\n                    this.resultCode += this.helperManager.getHelperName(\"asyncNullishCoalesce\");\n                }\n                else {\n                    this.resultCode += this.helperManager.getHelperName(\"nullishCoalesce\");\n                }\n                this.resultCode += \"(\";\n            }\n        }\n        if (token.isOptionalChainStart) {\n            if (token.isAsyncOperation) {\n                this.resultCode += \"await \";\n            }\n            if (this.tokenIndex > 0 && this.tokenAtRelativeIndex(-1).type === types_1.TokenType._delete) {\n                if (token.isAsyncOperation) {\n                    this.resultCode += this.helperManager.getHelperName(\"asyncOptionalChainDelete\");\n                }\n                else {\n                    this.resultCode += this.helperManager.getHelperName(\"optionalChainDelete\");\n                }\n            }\n            else if (token.isAsyncOperation) {\n                this.resultCode += this.helperManager.getHelperName(\"asyncOptionalChain\");\n            }\n            else {\n                this.resultCode += this.helperManager.getHelperName(\"optionalChain\");\n            }\n            this.resultCode += \"([\";\n        }\n    }\n    appendTokenSuffix() {\n        const token = this.currentToken();\n        if (token.isOptionalChainEnd && !this.disableESTransforms) {\n            this.resultCode += \"])\";\n        }\n        if (token.numNullishCoalesceEnds && !this.disableESTransforms) {\n            for (let i = 0; i < token.numNullishCoalesceEnds; i++) {\n                this.resultCode += \"))\";\n            }\n        }\n    }\n    appendCode(code) {\n        this.resultCode += code;\n    }\n    currentToken() {\n        return this.tokens[this.tokenIndex];\n    }\n    currentTokenCode() {\n        const token = this.currentToken();\n        return this.code.slice(token.start, token.end);\n    }\n    tokenAtRelativeIndex(relativeIndex) {\n        return this.tokens[this.tokenIndex + relativeIndex];\n    }\n    currentIndex() {\n        return this.tokenIndex;\n    }\n    /**\n     * Move to the next token. Only suitable in preprocessing steps. When\n     * generating new code, you should use copyToken or removeToken.\n     */\n    nextToken() {\n        if (this.tokenIndex === this.tokens.length) {\n            throw new Error(\"Unexpectedly reached end of input.\");\n        }\n        this.tokenIndex++;\n    }\n    previousToken() {\n        this.tokenIndex--;\n    }\n    finish() {\n        if (this.tokenIndex !== this.tokens.length) {\n            throw new Error(\"Tried to finish processing tokens before reaching the end.\");\n        }\n        this.resultCode += this.previousWhitespaceAndComments();\n        return { code: this.resultCode, mappings: this.resultMappings };\n    }\n    isAtEnd() {\n        return this.tokenIndex === this.tokens.length;\n    }\n}\nexports.default = TokenProcessor;\n","type":"js","dependency_paths":[["./parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["./util/isAsyncOperation","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/isAsyncOperation.js"]],"dependency_map":[],"exported":[{"type":"named","name":"TokenProcessor"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/TokenProcessor.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const types_1 = require(\"f0c35cbd76\") /* ./parser/tokenizer/types */;\n    const isAsyncOperation_1 = tslib_1.__importDefault(require(\"3e31f9f9c3\") /* ./util/isAsyncOperation */);\n    class TokenProcessor {\n        __init() { this.resultCode = \"\"; }\n        // Array mapping input token index to optional string index position in the\n        // output code.\n        __init2() { this.resultMappings = new Array(this.tokens.length); }\n        __init3() { this.tokenIndex = 0; }\n        constructor(code, tokens, isFlowEnabled, disableESTransforms, helperManager) { ; this.code = code; this.tokens = tokens; this.isFlowEnabled = isFlowEnabled; this.disableESTransforms = disableESTransforms; this.helperManager = helperManager; TokenProcessor.prototype.__init.call(this); TokenProcessor.prototype.__init2.call(this); TokenProcessor.prototype.__init3.call(this); }\n        /**\n         * Snapshot the token state in a way that can be restored later, useful for\n         * things like lookahead.\n         *\n         * resultMappings do not need to be copied since in all use cases, they will\n         * be overwritten anyway after restore.\n         */\n        snapshot() {\n            return {\n                resultCode: this.resultCode,\n                tokenIndex: this.tokenIndex,\n            };\n        }\n        restoreToSnapshot(snapshot) {\n            this.resultCode = snapshot.resultCode;\n            this.tokenIndex = snapshot.tokenIndex;\n        }\n        /**\n         * Remove and return the code generated since the snapshot, leaving the\n         * current token position in-place. Unlike most TokenProcessor operations,\n         * this operation can result in input/output line number mismatches because\n         * the removed code may contain newlines, so this operation should be used\n         * sparingly.\n         */\n        dangerouslyGetAndRemoveCodeSinceSnapshot(snapshot) {\n            const result = this.resultCode.slice(snapshot.resultCode.length);\n            this.resultCode = snapshot.resultCode;\n            return result;\n        }\n        reset() {\n            this.resultCode = \"\";\n            this.resultMappings = new Array(this.tokens.length);\n            this.tokenIndex = 0;\n        }\n        matchesContextualAtIndex(index, contextualKeyword) {\n            return (this.matches1AtIndex(index, types_1.TokenType.name) &&\n                this.tokens[index].contextualKeyword === contextualKeyword);\n        }\n        identifierNameAtIndex(index) {\n            // TODO: We need to process escapes since technically you can have unicode escapes in variable\n            // names.\n            return this.identifierNameForToken(this.tokens[index]);\n        }\n        identifierNameAtRelativeIndex(relativeIndex) {\n            return this.identifierNameForToken(this.tokenAtRelativeIndex(relativeIndex));\n        }\n        identifierName() {\n            return this.identifierNameForToken(this.currentToken());\n        }\n        identifierNameForToken(token) {\n            return this.code.slice(token.start, token.end);\n        }\n        rawCodeForToken(token) {\n            return this.code.slice(token.start, token.end);\n        }\n        stringValueAtIndex(index) {\n            return this.stringValueForToken(this.tokens[index]);\n        }\n        stringValue() {\n            return this.stringValueForToken(this.currentToken());\n        }\n        stringValueForToken(token) {\n            // This is used to identify when two imports are the same and to resolve TypeScript enum keys.\n            // Ideally we'd process escapes within the strings, but for now we pretty much take the raw\n            // code.\n            return this.code.slice(token.start + 1, token.end - 1);\n        }\n        matches1AtIndex(index, t1) {\n            return this.tokens[index].type === t1;\n        }\n        matches2AtIndex(index, t1, t2) {\n            return this.tokens[index].type === t1 && this.tokens[index + 1].type === t2;\n        }\n        matches3AtIndex(index, t1, t2, t3) {\n            return (this.tokens[index].type === t1 &&\n                this.tokens[index + 1].type === t2 &&\n                this.tokens[index + 2].type === t3);\n        }\n        matches1(t1) {\n            return this.tokens[this.tokenIndex].type === t1;\n        }\n        matches2(t1, t2) {\n            return this.tokens[this.tokenIndex].type === t1 && this.tokens[this.tokenIndex + 1].type === t2;\n        }\n        matches3(t1, t2, t3) {\n            return (this.tokens[this.tokenIndex].type === t1 &&\n                this.tokens[this.tokenIndex + 1].type === t2 &&\n                this.tokens[this.tokenIndex + 2].type === t3);\n        }\n        matches4(t1, t2, t3, t4) {\n            return (this.tokens[this.tokenIndex].type === t1 &&\n                this.tokens[this.tokenIndex + 1].type === t2 &&\n                this.tokens[this.tokenIndex + 2].type === t3 &&\n                this.tokens[this.tokenIndex + 3].type === t4);\n        }\n        matches5(t1, t2, t3, t4, t5) {\n            return (this.tokens[this.tokenIndex].type === t1 &&\n                this.tokens[this.tokenIndex + 1].type === t2 &&\n                this.tokens[this.tokenIndex + 2].type === t3 &&\n                this.tokens[this.tokenIndex + 3].type === t4 &&\n                this.tokens[this.tokenIndex + 4].type === t5);\n        }\n        matchesContextual(contextualKeyword) {\n            return this.matchesContextualAtIndex(this.tokenIndex, contextualKeyword);\n        }\n        matchesContextIdAndLabel(type, contextId) {\n            return this.matches1(type) && this.currentToken().contextId === contextId;\n        }\n        previousWhitespaceAndComments() {\n            let whitespaceAndComments = this.code.slice(this.tokenIndex > 0 ? this.tokens[this.tokenIndex - 1].end : 0, this.tokenIndex < this.tokens.length ? this.tokens[this.tokenIndex].start : this.code.length);\n            if (this.isFlowEnabled) {\n                whitespaceAndComments = whitespaceAndComments.replace(/@flow/g, \"\");\n            }\n            return whitespaceAndComments;\n        }\n        replaceToken(newCode) {\n            this.resultCode += this.previousWhitespaceAndComments();\n            this.appendTokenPrefix();\n            this.resultMappings[this.tokenIndex] = this.resultCode.length;\n            this.resultCode += newCode;\n            this.appendTokenSuffix();\n            this.tokenIndex++;\n        }\n        replaceTokenTrimmingLeftWhitespace(newCode) {\n            this.resultCode += this.previousWhitespaceAndComments().replace(/[^\\r\\n]/g, \"\");\n            this.appendTokenPrefix();\n            this.resultMappings[this.tokenIndex] = this.resultCode.length;\n            this.resultCode += newCode;\n            this.appendTokenSuffix();\n            this.tokenIndex++;\n        }\n        removeInitialToken() {\n            this.replaceToken(\"\");\n        }\n        removeToken() {\n            this.replaceTokenTrimmingLeftWhitespace(\"\");\n        }\n        /**\n         * Remove all code until the next }, accounting for balanced braces.\n         */\n        removeBalancedCode() {\n            let braceDepth = 0;\n            while (!this.isAtEnd()) {\n                if (this.matches1(types_1.TokenType.braceL)) {\n                    braceDepth++;\n                }\n                else if (this.matches1(types_1.TokenType.braceR)) {\n                    if (braceDepth === 0) {\n                        return;\n                    }\n                    braceDepth--;\n                }\n                this.removeToken();\n            }\n        }\n        copyExpectedToken(tokenType) {\n            if (this.tokens[this.tokenIndex].type !== tokenType) {\n                throw new Error(`Expected token ${tokenType}`);\n            }\n            this.copyToken();\n        }\n        copyToken() {\n            this.resultCode += this.previousWhitespaceAndComments();\n            this.appendTokenPrefix();\n            this.resultMappings[this.tokenIndex] = this.resultCode.length;\n            this.resultCode += this.code.slice(this.tokens[this.tokenIndex].start, this.tokens[this.tokenIndex].end);\n            this.appendTokenSuffix();\n            this.tokenIndex++;\n        }\n        copyTokenWithPrefix(prefix) {\n            this.resultCode += this.previousWhitespaceAndComments();\n            this.appendTokenPrefix();\n            this.resultCode += prefix;\n            this.resultMappings[this.tokenIndex] = this.resultCode.length;\n            this.resultCode += this.code.slice(this.tokens[this.tokenIndex].start, this.tokens[this.tokenIndex].end);\n            this.appendTokenSuffix();\n            this.tokenIndex++;\n        }\n        appendTokenPrefix() {\n            const token = this.currentToken();\n            if (token.numNullishCoalesceStarts || token.isOptionalChainStart) {\n                token.isAsyncOperation = (0, isAsyncOperation_1.default)(this);\n            }\n            if (this.disableESTransforms) {\n                return;\n            }\n            if (token.numNullishCoalesceStarts) {\n                for (let i = 0; i < token.numNullishCoalesceStarts; i++) {\n                    if (token.isAsyncOperation) {\n                        this.resultCode += \"await \";\n                        this.resultCode += this.helperManager.getHelperName(\"asyncNullishCoalesce\");\n                    }\n                    else {\n                        this.resultCode += this.helperManager.getHelperName(\"nullishCoalesce\");\n                    }\n                    this.resultCode += \"(\";\n                }\n            }\n            if (token.isOptionalChainStart) {\n                if (token.isAsyncOperation) {\n                    this.resultCode += \"await \";\n                }\n                if (this.tokenIndex > 0 && this.tokenAtRelativeIndex(-1).type === types_1.TokenType._delete) {\n                    if (token.isAsyncOperation) {\n                        this.resultCode += this.helperManager.getHelperName(\"asyncOptionalChainDelete\");\n                    }\n                    else {\n                        this.resultCode += this.helperManager.getHelperName(\"optionalChainDelete\");\n                    }\n                }\n                else if (token.isAsyncOperation) {\n                    this.resultCode += this.helperManager.getHelperName(\"asyncOptionalChain\");\n                }\n                else {\n                    this.resultCode += this.helperManager.getHelperName(\"optionalChain\");\n                }\n                this.resultCode += \"([\";\n            }\n        }\n        appendTokenSuffix() {\n            const token = this.currentToken();\n            if (token.isOptionalChainEnd && !this.disableESTransforms) {\n                this.resultCode += \"])\";\n            }\n            if (token.numNullishCoalesceEnds && !this.disableESTransforms) {\n                for (let i = 0; i < token.numNullishCoalesceEnds; i++) {\n                    this.resultCode += \"))\";\n                }\n            }\n        }\n        appendCode(code) {\n            this.resultCode += code;\n        }\n        currentToken() {\n            return this.tokens[this.tokenIndex];\n        }\n        currentTokenCode() {\n            const token = this.currentToken();\n            return this.code.slice(token.start, token.end);\n        }\n        tokenAtRelativeIndex(relativeIndex) {\n            return this.tokens[this.tokenIndex + relativeIndex];\n        }\n        currentIndex() {\n            return this.tokenIndex;\n        }\n        /**\n         * Move to the next token. Only suitable in preprocessing steps. When\n         * generating new code, you should use copyToken or removeToken.\n         */\n        nextToken() {\n            if (this.tokenIndex === this.tokens.length) {\n                throw new Error(\"Unexpectedly reached end of input.\");\n            }\n            this.tokenIndex++;\n        }\n        previousToken() {\n            this.tokenIndex--;\n        }\n        finish() {\n            if (this.tokenIndex !== this.tokens.length) {\n                throw new Error(\"Tried to finish processing tokens before reaching the end.\");\n            }\n            this.resultCode += this.previousWhitespaceAndComments();\n            return { code: this.resultCode, mappings: this.resultMappings };\n        }\n        isAtEnd() {\n            return this.tokenIndex === this.tokens.length;\n        }\n    }\n    exports.default = TokenProcessor;\n}\n","min_source":"function _(e,t,s,n,i){n();const o=e(\"tslib\"),h=e(\"f0c35cbd76\"),r=o.__importDefault(e(\"3e31f9f9c3\"));class d{__init(){this.resultCode=\"\"}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(e,t,s,n,i){this.code=e,this.tokens=t,this.isFlowEnabled=s,this.disableESTransforms=n,this.helperManager=i,d.prototype.__init.call(this),d.prototype.__init2.call(this),d.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(e){this.resultCode=e.resultCode,this.tokenIndex=e.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(e){const t=this.resultCode.slice(e.resultCode.length);return this.resultCode=e.resultCode,t}reset(){this.resultCode=\"\",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(e,t){return this.matches1AtIndex(e,h.TokenType.name)&&this.tokens[e].contextualKeyword===t}identifierNameAtIndex(e){return this.identifierNameForToken(this.tokens[e])}identifierNameAtRelativeIndex(e){return this.identifierNameForToken(this.tokenAtRelativeIndex(e))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(e){return this.code.slice(e.start,e.end)}rawCodeForToken(e){return this.code.slice(e.start,e.end)}stringValueAtIndex(e){return this.stringValueForToken(this.tokens[e])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(e){return this.code.slice(e.start+1,e.end-1)}matches1AtIndex(e,t){return this.tokens[e].type===t}matches2AtIndex(e,t,s){return this.tokens[e].type===t&&this.tokens[e+1].type===s}matches3AtIndex(e,t,s,n){return this.tokens[e].type===t&&this.tokens[e+1].type===s&&this.tokens[e+2].type===n}matches1(e){return this.tokens[this.tokenIndex].type===e}matches2(e,t){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t}matches3(e,t,s){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===s}matches4(e,t,s,n){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===n}matches5(e,t,s,n,i){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===n&&this.tokens[this.tokenIndex+4].type===i}matchesContextual(e){return this.matchesContextualAtIndex(this.tokenIndex,e)}matchesContextIdAndLabel(e,t){return this.matches1(e)&&this.currentToken().contextId===t}previousWhitespaceAndComments(){let e=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(e=e.replace(/@flow/g,\"\")),e}replaceToken(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(e){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\\r\\n]/g,\"\"),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken(\"\")}removeToken(){this.replaceTokenTrimmingLeftWhitespace(\"\")}removeBalancedCode(){let e=0;for(;!this.isAtEnd();){if(this.matches1(h.TokenType.braceL))e++;else if(this.matches1(h.TokenType.braceR)){if(0===e)return;e--}this.removeToken()}}copyExpectedToken(e){if(this.tokens[this.tokenIndex].type!==e)throw new Error(`Expected token ${e}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=e,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const e=this.currentToken();if((e.numNullishCoalesceStarts||e.isOptionalChainStart)&&(e.isAsyncOperation=(0,r.default)(this)),!this.disableESTransforms){if(e.numNullishCoalesceStarts)for(let t=0;t<e.numNullishCoalesceStarts;t++)e.isAsyncOperation?(this.resultCode+=\"await \",this.resultCode+=this.helperManager.getHelperName(\"asyncNullishCoalesce\")):this.resultCode+=this.helperManager.getHelperName(\"nullishCoalesce\"),this.resultCode+=\"(\";e.isOptionalChainStart&&(e.isAsyncOperation&&(this.resultCode+=\"await \"),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===h.TokenType._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName(\"asyncOptionalChainDelete\"):this.resultCode+=this.helperManager.getHelperName(\"optionalChainDelete\"):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName(\"asyncOptionalChain\"):this.resultCode+=this.helperManager.getHelperName(\"optionalChain\"),this.resultCode+=\"([\")}}appendTokenSuffix(){const e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+=\"])\"),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(let t=0;t<e.numNullishCoalesceEnds;t++)this.resultCode+=\"))\"}appendCode(e){this.resultCode+=e}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const e=this.currentToken();return this.code.slice(e.start,e.end)}tokenAtRelativeIndex(e){return this.tokens[this.tokenIndex+e]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error(\"Unexpectedly reached end of input.\");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error(\"Tried to finish processing tokens before reaching the end.\");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}s.default=d}\n//# sourceMappingURL=TokenProcessor.min.js.map","min_map":"{\"version\":3,\"file\":\"TokenProcessor.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tslib_1\",\"types_1\",\"isAsyncOperation_1\",\"__importDefault\",\"TokenProcessor\",\"__init\",\"this\",\"resultCode\",\"__init2\",\"resultMappings\",\"Array\",\"tokens\",\"length\",\"__init3\",\"tokenIndex\",\"constructor\",\"code\",\"isFlowEnabled\",\"disableESTransforms\",\"helperManager\",\"prototype\",\"call\",\"snapshot\",\"restoreToSnapshot\",\"dangerouslyGetAndRemoveCodeSinceSnapshot\",\"result\",\"slice\",\"reset\",\"matchesContextualAtIndex\",\"index\",\"contextualKeyword\",\"matches1AtIndex\",\"TokenType\",\"name\",\"identifierNameAtIndex\",\"identifierNameForToken\",\"identifierNameAtRelativeIndex\",\"relativeIndex\",\"tokenAtRelativeIndex\",\"identifierName\",\"currentToken\",\"token\",\"start\",\"end\",\"rawCodeForToken\",\"stringValueAtIndex\",\"stringValueForToken\",\"stringValue\",\"t1\",\"type\",\"matches2AtIndex\",\"t2\",\"matches3AtIndex\",\"t3\",\"matches1\",\"matches2\",\"matches3\",\"matches4\",\"t4\",\"matches5\",\"t5\",\"matchesContextual\",\"matchesContextIdAndLabel\",\"contextId\",\"previousWhitespaceAndComments\",\"whitespaceAndComments\",\"replace\",\"replaceToken\",\"newCode\",\"appendTokenPrefix\",\"appendTokenSuffix\",\"replaceTokenTrimmingLeftWhitespace\",\"removeInitialToken\",\"removeToken\",\"removeBalancedCode\",\"braceDepth\",\"isAtEnd\",\"braceL\",\"braceR\",\"copyExpectedToken\",\"tokenType\",\"Error\",\"copyToken\",\"copyTokenWithPrefix\",\"prefix\",\"numNullishCoalesceStarts\",\"isOptionalChainStart\",\"isAsyncOperation\",\"default\",\"i\",\"getHelperName\",\"_delete\",\"isOptionalChainEnd\",\"numNullishCoalesceEnds\",\"appendCode\",\"currentTokenCode\",\"currentIndex\",\"nextToken\",\"previousToken\",\"finish\",\"mappings\"],\"sources\":[\"0\"],\"mappings\":\"AAAyC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACtFD,IACA,MAAME,EAAUL,EAAQ,SAClBM,EAAUN,EAAQ,cAClBO,EAAqBF,EAAQG,gBAAgBR,EAAQ,eAC3D,MAAMS,EACF,MAAAC,GAAWC,KAAKC,WAAa,EAAI,CAGjC,OAAAC,GAAYF,KAAKG,eAAiB,IAAIC,MAAMJ,KAAKK,OAAOC,OAAS,CACjE,OAAAC,GAAYP,KAAKQ,WAAa,CAAG,CACjC,WAAAC,CAAYC,EAAML,EAAQM,EAAeC,EAAqBC,GAAmBb,KAAKU,KAAOA,EAAMV,KAAKK,OAASA,EAAQL,KAAKW,cAAgBA,EAAeX,KAAKY,oBAAsBA,EAAqBZ,KAAKa,cAAgBA,EAAef,EAAegB,UAAUf,OAAOgB,KAAKf,MAAOF,EAAegB,UAAUZ,QAAQa,KAAKf,MAAOF,EAAegB,UAAUP,QAAQQ,KAAKf,KAAO,CAQvX,QAAAgB,GACI,MAAO,CACHf,WAAYD,KAAKC,WACjBO,WAAYR,KAAKQ,WAEzB,CACA,iBAAAS,CAAkBD,GACdhB,KAAKC,WAAae,EAASf,WAC3BD,KAAKQ,WAAaQ,EAASR,UAC/B,CAQA,wCAAAU,CAAyCF,GACrC,MAAMG,EAASnB,KAAKC,WAAWmB,MAAMJ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D,KAAKa,cAAcuE,cAAc,iBAExDpF,KAAKC,YAAc,KA/BvB,CAiCJ,CACA,iBAAA+D,GACI,MAAM7B,EAAQnC,KAAKkC,eAInB,GAHIC,EAAMmD,qBAAuBtF,KAAKY,sBAClCZ,KAAKC,YAAc,MAEnBkC,EAAMoD,yBAA2BvF,KAAKY,oBACtC,IAAK,IAAIuE,EAAI,EAAGA,EAAIhD,EAAMoD,uBAAwBJ,IAC9CnF,KAAKC,YAAc,IAG/B,CACA,UAAAuF,CAAW9E,GACPV,KAAKC,YAAcS,CACvB,CACA,YAAAwB,GACI,OAAOlC,KAAKK,OAAOL,KAAKQ,WAC5B,CACA,gBAAAiF,GACI,MAAMtD,EAAQnC,KAAKkC,eACnB,OAAOlC,KAAKU,KAAKU,MAAMe,EAAMC,MAAOD,EAAME,IAC9C,CACA,oBAAAL,CAAqBD,GACjB,OAAO/B,KAAKK,OAAOL,KAAKQ,WAAauB,EACzC,CACA,YAAA2D,GACI,OAAO1F,KAAKQ,UAChB,CAKA,SAAAmF,GACI,GAAI3F,KAAKQ,aAAeR,KAAKK,OAAOC,OAChC,MAAM,IAAIqE,MAAM,sCAEpB3E,KAAKQ,YACT,CACA,aAAAoF,GACI5F,KAAKQ,YACT,CACA,MAAAqF,GACI,GAAI7F,KAAKQ,aAAeR,KAAKK,OAAOC,OAChC,MAAM,IAAIqE,MAAM,8DAGpB,OADA3E,KAAKC,YAAcD,KAAK0D,gCACjB,CAAEhD,KAAMV,KAAKC,WAAY6F,SAAU9F,KAAKG,eACnD,CACA,OAAAmE,GACI,OAAOtE,KAAKQ,aAAeR,KAAKK,OAAOC,MAC3C,EAEJf,EAAQ2F,QAAUpF,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/isAsyncOperation.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/util/isAsyncOperation.js","resolution":"ESM","id":"3e31f9f9c3","hash":"3e31f9f9c3df70dc025709c96a38fef6ff3c19b3baced43ea54b120cd744879e","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = isAsyncOperation;\nconst keywords_1 = require(\"../parser/tokenizer/keywords\");\n/**\n * Determine whether this optional chain or nullish coalescing operation has any await statements in\n * it. If so, we'll need to transpile to an async operation.\n *\n * We compute this by walking the length of the operation and returning true if we see an await\n * keyword used as a real await (rather than an object key or property access). Nested optional\n * chain/nullish operations need to be tracked but don't silence await, but a nested async function\n * (or any other nested scope) will make the await not count.\n */\nfunction isAsyncOperation(tokens) {\n    let index = tokens.currentIndex();\n    let depth = 0;\n    const startToken = tokens.currentToken();\n    do {\n        const token = tokens.tokens[index];\n        if (token.isOptionalChainStart) {\n            depth++;\n        }\n        if (token.isOptionalChainEnd) {\n            depth--;\n        }\n        depth += token.numNullishCoalesceStarts;\n        depth -= token.numNullishCoalesceEnds;\n        if (token.contextualKeyword === keywords_1.ContextualKeyword._await &&\n            token.identifierRole == null &&\n            token.scopeDepth === startToken.scopeDepth) {\n            return true;\n        }\n        index += 1;\n    } while (depth > 0 && index < tokens.tokens.length);\n    return false;\n}\n","type":"js","dependency_paths":[["../parser/tokenizer/keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"]],"dependency_map":[],"exported":[{"type":"named","name":"isAsyncOperation"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/util/isAsyncOperation.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = isAsyncOperation;\n    const keywords_1 = require(\"99ff836c64\") /* ../parser/tokenizer/keywords */;\n    /**\n     * Determine whether this optional chain or nullish coalescing operation has any await statements in\n     * it. If so, we'll need to transpile to an async operation.\n     *\n     * We compute this by walking the length of the operation and returning true if we see an await\n     * keyword used as a real await (rather than an object key or property access). Nested optional\n     * chain/nullish operations need to be tracked but don't silence await, but a nested async function\n     * (or any other nested scope) will make the await not count.\n     */\n    function isAsyncOperation(tokens) {\n        let index = tokens.currentIndex();\n        let depth = 0;\n        const startToken = tokens.currentToken();\n        do {\n            const token = tokens.tokens[index];\n            if (token.isOptionalChainStart) {\n                depth++;\n            }\n            if (token.isOptionalChainEnd) {\n                depth--;\n            }\n            depth += token.numNullishCoalesceStarts;\n            depth -= token.numNullishCoalesceEnds;\n            if (token.contextualKeyword === keywords_1.ContextualKeyword._await &&\n                token.identifierRole == null &&\n                token.scopeDepth === startToken.scopeDepth) {\n                return true;\n            }\n            index += 1;\n        } while (depth > 0 && index < tokens.tokens.length);\n        return false;\n    }\n}\n","min_source":"function _(n,t,e,o,l){o(),e.default=function(n){let t=n.currentIndex(),e=0;const o=n.currentToken();do{const l=n.tokens[t];if(l.isOptionalChainStart&&e++,l.isOptionalChainEnd&&e--,e+=l.numNullishCoalesceStarts,e-=l.numNullishCoalesceEnds,l.contextualKeyword===i.ContextualKeyword._await&&null==l.identifierRole&&l.scopeDepth===o.scopeDepth)return!0;t+=1}while(e>0&&t<n.tokens.length);return!1};const i=n(\"99ff836c64\")}\n//# sourceMappingURL=isAsyncOperation.min.js.map","min_map":"{\"version\":3,\"file\":\"isAsyncOperation.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"tokens\",\"index\",\"currentIndex\",\"depth\",\"startToken\",\"currentToken\",\"token\",\"isOptionalChainStart\",\"isOptionalChainEnd\",\"numNullishCoalesceStarts\",\"numNullishCoalesceEnds\",\"contextualKeyword\",\"keywords_1\",\"ContextualKeyword\",\"_await\",\"identifierRole\",\"scopeDepth\",\"length\"],\"sources\":[\"0\"],\"mappings\":\"AAAgD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC7FD,IACAD,EAAQG,QAWR,SAA0BC,GACtB,IAAIC,EAAQD,EAAOE,eACfC,EAAQ,EACZ,MAAMC,EAAaJ,EAAOK,eAC1B,EAAG,CACC,MAAMC,EAAQN,EAAOA,OAAOC,GAS5B,GARIK,EAAMC,sBACNJ,IAEAG,EAAME,oBACNL,IAEJA,GAASG,EAAMG,yBACfN,GAASG,EAAMI,uBACXJ,EAAMK,oBAAsBC,EAAWC,kBAAkBC,QACjC,MAAxBR,EAAMS,gBACNT,EAAMU,aAAeZ,EAAWY,WAChC,OAAO,EAEXf,GAAS,CACb,OAASE,EAAQ,GAAKF,EAAQD,EAAOA,OAAOiB,QAC5C,OAAO,CACX,EAhCA,MAAML,EAAalB,EAAQ,aAiC/B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/RootTransformer.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/transformers/RootTransformer.js","resolution":"ESM","id":"131f5202c7","hash":"131f5202c795d325e52a9b0775ecee56a88fd9ffaab97b2a8aaa4b10ea9d201e","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\nconst keywords_1 = require(\"../parser/tokenizer/keywords\");\nconst types_1 = require(\"../parser/tokenizer/types\");\nconst getClassInfo_1 = tslib_1.__importDefault(require(\"../util/getClassInfo\"));\nconst CJSImportTransformer_1 = tslib_1.__importDefault(require(\"./CJSImportTransformer\"));\nconst ESMImportTransformer_1 = tslib_1.__importDefault(require(\"./ESMImportTransformer\"));\nconst FlowTransformer_1 = tslib_1.__importDefault(require(\"./FlowTransformer\"));\nconst JestHoistTransformer_1 = tslib_1.__importDefault(require(\"./JestHoistTransformer\"));\nconst JSXTransformer_1 = tslib_1.__importDefault(require(\"./JSXTransformer\"));\nconst NumericSeparatorTransformer_1 = tslib_1.__importDefault(require(\"./NumericSeparatorTransformer\"));\nconst OptionalCatchBindingTransformer_1 = tslib_1.__importDefault(require(\"./OptionalCatchBindingTransformer\"));\nconst OptionalChainingNullishTransformer_1 = tslib_1.__importDefault(require(\"./OptionalChainingNullishTransformer\"));\nconst ReactDisplayNameTransformer_1 = tslib_1.__importDefault(require(\"./ReactDisplayNameTransformer\"));\nconst ReactHotLoaderTransformer_1 = tslib_1.__importDefault(require(\"./ReactHotLoaderTransformer\"));\nconst TypeScriptTransformer_1 = tslib_1.__importDefault(require(\"./TypeScriptTransformer\"));\nclass RootTransformer {\n    __init() { this.transformers = []; }\n    __init2() { this.generatedVariables = []; }\n    constructor(sucraseContext, transforms, enableLegacyBabel5ModuleInterop, options) {\n        ;\n        RootTransformer.prototype.__init.call(this);\n        RootTransformer.prototype.__init2.call(this);\n        this.nameManager = sucraseContext.nameManager;\n        this.helperManager = sucraseContext.helperManager;\n        const { tokenProcessor, importProcessor } = sucraseContext;\n        this.tokens = tokenProcessor;\n        this.isImportsTransformEnabled = transforms.includes(\"imports\");\n        this.isReactHotLoaderTransformEnabled = transforms.includes(\"react-hot-loader\");\n        this.disableESTransforms = Boolean(options.disableESTransforms);\n        if (!options.disableESTransforms) {\n            this.transformers.push(new OptionalChainingNullishTransformer_1.default(tokenProcessor, this.nameManager));\n            this.transformers.push(new NumericSeparatorTransformer_1.default(tokenProcessor));\n            this.transformers.push(new OptionalCatchBindingTransformer_1.default(tokenProcessor, this.nameManager));\n        }\n        if (transforms.includes(\"jsx\")) {\n            if (options.jsxRuntime !== \"preserve\") {\n                this.transformers.push(new JSXTransformer_1.default(this, tokenProcessor, importProcessor, this.nameManager, options));\n            }\n            this.transformers.push(new ReactDisplayNameTransformer_1.default(this, tokenProcessor, importProcessor, options));\n        }\n        let reactHotLoaderTransformer = null;\n        if (transforms.includes(\"react-hot-loader\")) {\n            if (!options.filePath) {\n                throw new Error(\"filePath is required when using the react-hot-loader transform.\");\n            }\n            reactHotLoaderTransformer = new ReactHotLoaderTransformer_1.default(tokenProcessor, options.filePath);\n            this.transformers.push(reactHotLoaderTransformer);\n        }\n        // Note that we always want to enable the imports transformer, even when the import transform\n        // itself isn't enabled, since we need to do type-only import pruning for both Flow and\n        // TypeScript.\n        if (transforms.includes(\"imports\")) {\n            if (importProcessor === null) {\n                throw new Error(\"Expected non-null importProcessor with imports transform enabled.\");\n            }\n            this.transformers.push(new CJSImportTransformer_1.default(this, tokenProcessor, importProcessor, this.nameManager, this.helperManager, reactHotLoaderTransformer, enableLegacyBabel5ModuleInterop, Boolean(options.enableLegacyTypeScriptModuleInterop), transforms.includes(\"typescript\"), transforms.includes(\"flow\"), Boolean(options.preserveDynamicImport), Boolean(options.keepUnusedImports)));\n        }\n        else {\n            this.transformers.push(new ESMImportTransformer_1.default(tokenProcessor, this.nameManager, this.helperManager, reactHotLoaderTransformer, transforms.includes(\"typescript\"), transforms.includes(\"flow\"), Boolean(options.keepUnusedImports), options));\n        }\n        if (transforms.includes(\"flow\")) {\n            this.transformers.push(new FlowTransformer_1.default(this, tokenProcessor, transforms.includes(\"imports\")));\n        }\n        if (transforms.includes(\"typescript\")) {\n            this.transformers.push(new TypeScriptTransformer_1.default(this, tokenProcessor, transforms.includes(\"imports\")));\n        }\n        if (transforms.includes(\"jest\")) {\n            this.transformers.push(new JestHoistTransformer_1.default(this, tokenProcessor, this.nameManager, importProcessor));\n        }\n    }\n    transform() {\n        this.tokens.reset();\n        this.processBalancedCode();\n        const shouldAddUseStrict = this.isImportsTransformEnabled;\n        // \"use strict\" always needs to be first, so override the normal transformer order.\n        let prefix = shouldAddUseStrict ? '\"use strict\";' : \"\";\n        for (const transformer of this.transformers) {\n            prefix += transformer.getPrefixCode();\n        }\n        prefix += this.helperManager.emitHelpers();\n        prefix += this.generatedVariables.map((v) => ` var ${v};`).join(\"\");\n        for (const transformer of this.transformers) {\n            prefix += transformer.getHoistedCode();\n        }\n        let suffix = \"\";\n        for (const transformer of this.transformers) {\n            suffix += transformer.getSuffixCode();\n        }\n        const result = this.tokens.finish();\n        let { code } = result;\n        if (code.startsWith(\"#!\")) {\n            let newlineIndex = code.indexOf(\"\\n\");\n            if (newlineIndex === -1) {\n                newlineIndex = code.length;\n                code += \"\\n\";\n            }\n            return {\n                code: code.slice(0, newlineIndex + 1) + prefix + code.slice(newlineIndex + 1) + suffix,\n                // The hashbang line has no tokens, so shifting the tokens to account\n                // for prefix can happen normally.\n                mappings: this.shiftMappings(result.mappings, prefix.length),\n            };\n        }\n        else {\n            return {\n                code: prefix + code + suffix,\n                mappings: this.shiftMappings(result.mappings, prefix.length),\n            };\n        }\n    }\n    processBalancedCode() {\n        let braceDepth = 0;\n        let parenDepth = 0;\n        while (!this.tokens.isAtEnd()) {\n            if (this.tokens.matches1(types_1.TokenType.braceL) || this.tokens.matches1(types_1.TokenType.dollarBraceL)) {\n                braceDepth++;\n            }\n            else if (this.tokens.matches1(types_1.TokenType.braceR)) {\n                if (braceDepth === 0) {\n                    return;\n                }\n                braceDepth--;\n            }\n            if (this.tokens.matches1(types_1.TokenType.parenL)) {\n                parenDepth++;\n            }\n            else if (this.tokens.matches1(types_1.TokenType.parenR)) {\n                if (parenDepth === 0) {\n                    return;\n                }\n                parenDepth--;\n            }\n            this.processToken();\n        }\n    }\n    processToken() {\n        if (this.tokens.matches1(types_1.TokenType._class)) {\n            this.processClass();\n            return;\n        }\n        for (const transformer of this.transformers) {\n            const wasProcessed = transformer.process();\n            if (wasProcessed) {\n                return;\n            }\n        }\n        this.tokens.copyToken();\n    }\n    /**\n     * Skip past a class with a name and return that name.\n     */\n    processNamedClass() {\n        if (!this.tokens.matches2(types_1.TokenType._class, types_1.TokenType.name)) {\n            throw new Error(\"Expected identifier for exported class name.\");\n        }\n        const name = this.tokens.identifierNameAtIndex(this.tokens.currentIndex() + 1);\n        this.processClass();\n        return name;\n    }\n    processClass() {\n        const classInfo = (0, getClassInfo_1.default)(this, this.tokens, this.nameManager, this.disableESTransforms);\n        // Both static and instance initializers need a class name to use to invoke the initializer, so\n        // assign to one if necessary.\n        const needsCommaExpression = (classInfo.headerInfo.isExpression || !classInfo.headerInfo.className) &&\n            classInfo.staticInitializerNames.length + classInfo.instanceInitializerNames.length > 0;\n        let className = classInfo.headerInfo.className;\n        if (needsCommaExpression) {\n            className = this.nameManager.claimFreeName(\"_class\");\n            this.generatedVariables.push(className);\n            this.tokens.appendCode(` (${className} =`);\n        }\n        const classToken = this.tokens.currentToken();\n        const contextId = classToken.contextId;\n        if (contextId == null) {\n            throw new Error(\"Expected class to have a context ID.\");\n        }\n        this.tokens.copyExpectedToken(types_1.TokenType._class);\n        while (!this.tokens.matchesContextIdAndLabel(types_1.TokenType.braceL, contextId)) {\n            this.processToken();\n        }\n        this.processClassBody(classInfo, className);\n        const staticInitializerStatements = classInfo.staticInitializerNames.map((name) => `${className}.${name}()`);\n        if (needsCommaExpression) {\n            this.tokens.appendCode(`, ${staticInitializerStatements.map((s) => `${s}, `).join(\"\")}${className})`);\n        }\n        else if (classInfo.staticInitializerNames.length > 0) {\n            this.tokens.appendCode(` ${staticInitializerStatements.map((s) => `${s};`).join(\" \")}`);\n        }\n    }\n    /**\n     * We want to just handle class fields in all contexts, since TypeScript supports them. Later,\n     * when some JS implementations support class fields, this should be made optional.\n     */\n    processClassBody(classInfo, className) {\n        const { headerInfo, constructorInsertPos, constructorInitializerStatements, fields, instanceInitializerNames, rangesToRemove, } = classInfo;\n        let fieldIndex = 0;\n        let rangeToRemoveIndex = 0;\n        const classContextId = this.tokens.currentToken().contextId;\n        if (classContextId == null) {\n            throw new Error(\"Expected non-null context ID on class.\");\n        }\n        this.tokens.copyExpectedToken(types_1.TokenType.braceL);\n        if (this.isReactHotLoaderTransformEnabled) {\n            this.tokens.appendCode(\"__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}\");\n        }\n        const needsConstructorInit = constructorInitializerStatements.length + instanceInitializerNames.length > 0;\n        if (constructorInsertPos === null && needsConstructorInit) {\n            const constructorInitializersCode = this.makeConstructorInitCode(constructorInitializerStatements, instanceInitializerNames, className);\n            if (headerInfo.hasSuperclass) {\n                const argsName = this.nameManager.claimFreeName(\"args\");\n                this.tokens.appendCode(`constructor(...${argsName}) { super(...${argsName}); ${constructorInitializersCode}; }`);\n            }\n            else {\n                this.tokens.appendCode(`constructor() { ${constructorInitializersCode}; }`);\n            }\n        }\n        while (!this.tokens.matchesContextIdAndLabel(types_1.TokenType.braceR, classContextId)) {\n            if (fieldIndex < fields.length && this.tokens.currentIndex() === fields[fieldIndex].start) {\n                let needsCloseBrace = false;\n                if (this.tokens.matches1(types_1.TokenType.bracketL)) {\n                    this.tokens.copyTokenWithPrefix(`${fields[fieldIndex].initializerName}() {this`);\n                }\n                else if (this.tokens.matches1(types_1.TokenType.string) || this.tokens.matches1(types_1.TokenType.num)) {\n                    this.tokens.copyTokenWithPrefix(`${fields[fieldIndex].initializerName}() {this[`);\n                    needsCloseBrace = true;\n                }\n                else {\n                    this.tokens.copyTokenWithPrefix(`${fields[fieldIndex].initializerName}() {this.`);\n                }\n                while (this.tokens.currentIndex() < fields[fieldIndex].end) {\n                    if (needsCloseBrace && this.tokens.currentIndex() === fields[fieldIndex].equalsIndex) {\n                        this.tokens.appendCode(\"]\");\n                    }\n                    this.processToken();\n                }\n                this.tokens.appendCode(\"}\");\n                fieldIndex++;\n            }\n            else if (rangeToRemoveIndex < rangesToRemove.length &&\n                this.tokens.currentIndex() >= rangesToRemove[rangeToRemoveIndex].start) {\n                if (this.tokens.currentIndex() < rangesToRemove[rangeToRemoveIndex].end) {\n                    this.tokens.removeInitialToken();\n                }\n                while (this.tokens.currentIndex() < rangesToRemove[rangeToRemoveIndex].end) {\n                    this.tokens.removeToken();\n                }\n                rangeToRemoveIndex++;\n            }\n            else if (this.tokens.currentIndex() === constructorInsertPos) {\n                this.tokens.copyToken();\n                if (needsConstructorInit) {\n                    this.tokens.appendCode(`;${this.makeConstructorInitCode(constructorInitializerStatements, instanceInitializerNames, className)};`);\n                }\n                this.processToken();\n            }\n            else {\n                this.processToken();\n            }\n        }\n        this.tokens.copyExpectedToken(types_1.TokenType.braceR);\n    }\n    makeConstructorInitCode(constructorInitializerStatements, instanceInitializerNames, className) {\n        return [\n            ...constructorInitializerStatements,\n            ...instanceInitializerNames.map((name) => `${className}.prototype.${name}.call(this)`),\n        ].join(\";\");\n    }\n    /**\n     * Normally it's ok to simply remove type tokens, but we need to be more careful when dealing with\n     * arrow function return types since they can confuse the parser. In that case, we want to move\n     * the close-paren to the same line as the arrow.\n     *\n     * See https://github.com/alangpierce/sucrase/issues/391 for more details.\n     */\n    processPossibleArrowParamEnd() {\n        if (this.tokens.matches2(types_1.TokenType.parenR, types_1.TokenType.colon) && this.tokens.tokenAtRelativeIndex(1).isType) {\n            let nextNonTypeIndex = this.tokens.currentIndex() + 1;\n            // Look ahead to see if this is an arrow function or something else.\n            while (this.tokens.tokens[nextNonTypeIndex].isType) {\n                nextNonTypeIndex++;\n            }\n            if (this.tokens.matches1AtIndex(nextNonTypeIndex, types_1.TokenType.arrow)) {\n                this.tokens.removeInitialToken();\n                while (this.tokens.currentIndex() < nextNonTypeIndex) {\n                    this.tokens.removeToken();\n                }\n                this.tokens.replaceTokenTrimmingLeftWhitespace(\") =>\");\n                return true;\n            }\n        }\n        return false;\n    }\n    /**\n     * An async arrow function might be of the form:\n     *\n     * async <\n     *   T\n     * >() => {}\n     *\n     * in which case, removing the type parameters will cause a syntax error. Detect this case and\n     * move the open-paren earlier.\n     */\n    processPossibleAsyncArrowWithTypeParams() {\n        if (!this.tokens.matchesContextual(keywords_1.ContextualKeyword._async) &&\n            !this.tokens.matches1(types_1.TokenType._async)) {\n            return false;\n        }\n        const nextToken = this.tokens.tokenAtRelativeIndex(1);\n        if (nextToken.type !== types_1.TokenType.lessThan || !nextToken.isType) {\n            return false;\n        }\n        let nextNonTypeIndex = this.tokens.currentIndex() + 1;\n        // Look ahead to see if this is an arrow function or something else.\n        while (this.tokens.tokens[nextNonTypeIndex].isType) {\n            nextNonTypeIndex++;\n        }\n        if (this.tokens.matches1AtIndex(nextNonTypeIndex, types_1.TokenType.parenL)) {\n            this.tokens.replaceToken(\"async (\");\n            this.tokens.removeInitialToken();\n            while (this.tokens.currentIndex() < nextNonTypeIndex) {\n                this.tokens.removeToken();\n            }\n            this.tokens.removeToken();\n            // We ate a ( token, so we need to process the tokens in between and then the ) token so that\n            // we remain balanced.\n            this.processBalancedCode();\n            this.processToken();\n            return true;\n        }\n        return false;\n    }\n    processPossibleTypeRange() {\n        if (this.tokens.currentToken().isType) {\n            this.tokens.removeInitialToken();\n            while (this.tokens.currentToken().isType) {\n                this.tokens.removeToken();\n            }\n            return true;\n        }\n        return false;\n    }\n    shiftMappings(mappings, prefixLength) {\n        for (let i = 0; i < mappings.length; i++) {\n            const mapping = mappings[i];\n            if (mapping !== undefined) {\n                mappings[i] = mapping + prefixLength;\n            }\n        }\n        return mappings;\n    }\n}\nexports.default = RootTransformer;\n","type":"js","dependency_paths":[["../parser/tokenizer/keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"],["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["../util/getClassInfo","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getClassInfo.js"],["./CJSImportTransformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/CJSImportTransformer.js"],["./ESMImportTransformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/ESMImportTransformer.js"],["./FlowTransformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/FlowTransformer.js"],["./JestHoistTransformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/JestHoistTransformer.js"],["./JSXTransformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/JSXTransformer.js"],["./NumericSeparatorTransformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/NumericSeparatorTransformer.js"],["./OptionalCatchBindingTransformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/OptionalCatchBindingTransformer.js"],["./OptionalChainingNullishTransformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/OptionalChainingNullishTransformer.js"],["./ReactDisplayNameTransformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/ReactDisplayNameTransformer.js"],["./ReactHotLoaderTransformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/ReactHotLoaderTransformer.js"],["./TypeScriptTransformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/TypeScriptTransformer.js"]],"dependency_map":[],"exported":[{"type":"named","name":"RootTransformer"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/transformers/RootTransformer.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const keywords_1 = require(\"99ff836c64\") /* ../parser/tokenizer/keywords */;\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    const getClassInfo_1 = tslib_1.__importDefault(require(\"6aa22e0eb8\") /* ../util/getClassInfo */);\n    const CJSImportTransformer_1 = tslib_1.__importDefault(require(\"268dc8808b\") /* ./CJSImportTransformer */);\n    const ESMImportTransformer_1 = tslib_1.__importDefault(require(\"8db2e4c5d7\") /* ./ESMImportTransformer */);\n    const FlowTransformer_1 = tslib_1.__importDefault(require(\"3913cc12b3\") /* ./FlowTransformer */);\n    const JestHoistTransformer_1 = tslib_1.__importDefault(require(\"3eb46b07e3\") /* ./JestHoistTransformer */);\n    const JSXTransformer_1 = tslib_1.__importDefault(require(\"a0e577c292\") /* ./JSXTransformer */);\n    const NumericSeparatorTransformer_1 = tslib_1.__importDefault(require(\"09e20c28d7\") /* ./NumericSeparatorTransformer */);\n    const OptionalCatchBindingTransformer_1 = tslib_1.__importDefault(require(\"1dc037e3ca\") /* ./OptionalCatchBindingTransformer */);\n    const OptionalChainingNullishTransformer_1 = tslib_1.__importDefault(require(\"6995ead426\") /* ./OptionalChainingNullishTransformer */);\n    const ReactDisplayNameTransformer_1 = tslib_1.__importDefault(require(\"9aad52e886\") /* ./ReactDisplayNameTransformer */);\n    const ReactHotLoaderTransformer_1 = tslib_1.__importDefault(require(\"c3f855a290\") /* ./ReactHotLoaderTransformer */);\n    const TypeScriptTransformer_1 = tslib_1.__importDefault(require(\"581b1c506a\") /* ./TypeScriptTransformer */);\n    class RootTransformer {\n        __init() { this.transformers = []; }\n        __init2() { this.generatedVariables = []; }\n        constructor(sucraseContext, transforms, enableLegacyBabel5ModuleInterop, options) {\n            ;\n            RootTransformer.prototype.__init.call(this);\n            RootTransformer.prototype.__init2.call(this);\n            this.nameManager = sucraseContext.nameManager;\n            this.helperManager = sucraseContext.helperManager;\n            const { tokenProcessor, importProcessor } = sucraseContext;\n            this.tokens = tokenProcessor;\n            this.isImportsTransformEnabled = transforms.includes(\"imports\");\n            this.isReactHotLoaderTransformEnabled = transforms.includes(\"react-hot-loader\");\n            this.disableESTransforms = Boolean(options.disableESTransforms);\n            if (!options.disableESTransforms) {\n                this.transformers.push(new OptionalChainingNullishTransformer_1.default(tokenProcessor, this.nameManager));\n                this.transformers.push(new NumericSeparatorTransformer_1.default(tokenProcessor));\n                this.transformers.push(new OptionalCatchBindingTransformer_1.default(tokenProcessor, this.nameManager));\n            }\n            if (transforms.includes(\"jsx\")) {\n                if (options.jsxRuntime !== \"preserve\") {\n                    this.transformers.push(new JSXTransformer_1.default(this, tokenProcessor, importProcessor, this.nameManager, options));\n                }\n                this.transformers.push(new ReactDisplayNameTransformer_1.default(this, tokenProcessor, importProcessor, options));\n            }\n            let reactHotLoaderTransformer = null;\n            if (transforms.includes(\"react-hot-loader\")) {\n                if (!options.filePath) {\n                    throw new Error(\"filePath is required when using the react-hot-loader transform.\");\n                }\n                reactHotLoaderTransformer = new ReactHotLoaderTransformer_1.default(tokenProcessor, options.filePath);\n                this.transformers.push(reactHotLoaderTransformer);\n            }\n            // Note that we always want to enable the imports transformer, even when the import transform\n            // itself isn't enabled, since we need to do type-only import pruning for both Flow and\n            // TypeScript.\n            if (transforms.includes(\"imports\")) {\n                if (importProcessor === null) {\n                    throw new Error(\"Expected non-null importProcessor with imports transform enabled.\");\n                }\n                this.transformers.push(new CJSImportTransformer_1.default(this, tokenProcessor, importProcessor, this.nameManager, this.helperManager, reactHotLoaderTransformer, enableLegacyBabel5ModuleInterop, Boolean(options.enableLegacyTypeScriptModuleInterop), transforms.includes(\"typescript\"), transforms.includes(\"flow\"), Boolean(options.preserveDynamicImport), Boolean(options.keepUnusedImports)));\n            }\n            else {\n                this.transformers.push(new ESMImportTransformer_1.default(tokenProcessor, this.nameManager, this.helperManager, reactHotLoaderTransformer, transforms.includes(\"typescript\"), transforms.includes(\"flow\"), Boolean(options.keepUnusedImports), options));\n            }\n            if (transforms.includes(\"flow\")) {\n                this.transformers.push(new FlowTransformer_1.default(this, tokenProcessor, transforms.includes(\"imports\")));\n            }\n            if (transforms.includes(\"typescript\")) {\n                this.transformers.push(new TypeScriptTransformer_1.default(this, tokenProcessor, transforms.includes(\"imports\")));\n            }\n            if (transforms.includes(\"jest\")) {\n                this.transformers.push(new JestHoistTransformer_1.default(this, tokenProcessor, this.nameManager, importProcessor));\n            }\n        }\n        transform() {\n            this.tokens.reset();\n            this.processBalancedCode();\n            const shouldAddUseStrict = this.isImportsTransformEnabled;\n            // \"use strict\" always needs to be first, so override the normal transformer order.\n            let prefix = shouldAddUseStrict ? '\"use strict\";' : \"\";\n            for (const transformer of this.transformers) {\n                prefix += transformer.getPrefixCode();\n            }\n            prefix += this.helperManager.emitHelpers();\n            prefix += this.generatedVariables.map((v) => ` var ${v};`).join(\"\");\n            for (const transformer of this.transformers) {\n                prefix += transformer.getHoistedCode();\n            }\n            let suffix = \"\";\n            for (const transformer of this.transformers) {\n                suffix += transformer.getSuffixCode();\n            }\n            const result = this.tokens.finish();\n            let { code } = result;\n            if (code.startsWith(\"#!\")) {\n                let newlineIndex = code.indexOf(\"\\n\");\n                if (newlineIndex === -1) {\n                    newlineIndex = code.length;\n                    code += \"\\n\";\n                }\n                return {\n                    code: code.slice(0, newlineIndex + 1) + prefix + code.slice(newlineIndex + 1) + suffix,\n                    // The hashbang line has no tokens, so shifting the tokens to account\n                    // for prefix can happen normally.\n                    mappings: this.shiftMappings(result.mappings, prefix.length),\n                };\n            }\n            else {\n                return {\n                    code: prefix + code + suffix,\n                    mappings: this.shiftMappings(result.mappings, prefix.length),\n                };\n            }\n        }\n        processBalancedCode() {\n            let braceDepth = 0;\n            let parenDepth = 0;\n            while (!this.tokens.isAtEnd()) {\n                if (this.tokens.matches1(types_1.TokenType.braceL) || this.tokens.matches1(types_1.TokenType.dollarBraceL)) {\n                    braceDepth++;\n                }\n                else if (this.tokens.matches1(types_1.TokenType.braceR)) {\n                    if (braceDepth === 0) {\n                        return;\n                    }\n                    braceDepth--;\n                }\n                if (this.tokens.matches1(types_1.TokenType.parenL)) {\n                    parenDepth++;\n                }\n                else if (this.tokens.matches1(types_1.TokenType.parenR)) {\n                    if (parenDepth === 0) {\n                        return;\n                    }\n                    parenDepth--;\n                }\n                this.processToken();\n            }\n        }\n        processToken() {\n            if (this.tokens.matches1(types_1.TokenType._class)) {\n                this.processClass();\n                return;\n            }\n            for (const transformer of this.transformers) {\n                const wasProcessed = transformer.process();\n                if (wasProcessed) {\n                    return;\n                }\n            }\n            this.tokens.copyToken();\n        }\n        /**\n         * Skip past a class with a name and return that name.\n         */\n        processNamedClass() {\n            if (!this.tokens.matches2(types_1.TokenType._class, types_1.TokenType.name)) {\n                throw new Error(\"Expected identifier for exported class name.\");\n            }\n            const name = this.tokens.identifierNameAtIndex(this.tokens.currentIndex() + 1);\n            this.processClass();\n            return name;\n        }\n        processClass() {\n            const classInfo = (0, getClassInfo_1.default)(this, this.tokens, this.nameManager, this.disableESTransforms);\n            // Both static and instance initializers need a class name to use to invoke the initializer, so\n            // assign to one if necessary.\n            const needsCommaExpression = (classInfo.headerInfo.isExpression || !classInfo.headerInfo.className) &&\n                classInfo.staticInitializerNames.length + classInfo.instanceInitializerNames.length > 0;\n            let className = classInfo.headerInfo.className;\n            if (needsCommaExpression) {\n                className = this.nameManager.claimFreeName(\"_class\");\n                this.generatedVariables.push(className);\n                this.tokens.appendCode(` (${className} =`);\n            }\n            const classToken = this.tokens.currentToken();\n            const contextId = classToken.contextId;\n            if (contextId == null) {\n                throw new Error(\"Expected class to have a context ID.\");\n            }\n            this.tokens.copyExpectedToken(types_1.TokenType._class);\n            while (!this.tokens.matchesContextIdAndLabel(types_1.TokenType.braceL, contextId)) {\n                this.processToken();\n            }\n            this.processClassBody(classInfo, className);\n            const staticInitializerStatements = classInfo.staticInitializerNames.map((name) => `${className}.${name}()`);\n            if (needsCommaExpression) {\n                this.tokens.appendCode(`, ${staticInitializerStatements.map((s) => `${s}, `).join(\"\")}${className})`);\n            }\n            else if (classInfo.staticInitializerNames.length > 0) {\n                this.tokens.appendCode(` ${staticInitializerStatements.map((s) => `${s};`).join(\" \")}`);\n            }\n        }\n        /**\n         * We want to just handle class fields in all contexts, since TypeScript supports them. Later,\n         * when some JS implementations support class fields, this should be made optional.\n         */\n        processClassBody(classInfo, className) {\n            const { headerInfo, constructorInsertPos, constructorInitializerStatements, fields, instanceInitializerNames, rangesToRemove, } = classInfo;\n            let fieldIndex = 0;\n            let rangeToRemoveIndex = 0;\n            const classContextId = this.tokens.currentToken().contextId;\n            if (classContextId == null) {\n                throw new Error(\"Expected non-null context ID on class.\");\n            }\n            this.tokens.copyExpectedToken(types_1.TokenType.braceL);\n            if (this.isReactHotLoaderTransformEnabled) {\n                this.tokens.appendCode(\"__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}\");\n            }\n            const needsConstructorInit = constructorInitializerStatements.length + instanceInitializerNames.length > 0;\n            if (constructorInsertPos === null && needsConstructorInit) {\n                const constructorInitializersCode = this.makeConstructorInitCode(constructorInitializerStatements, instanceInitializerNames, className);\n                if (headerInfo.hasSuperclass) {\n                    const argsName = this.nameManager.claimFreeName(\"args\");\n                    this.tokens.appendCode(`constructor(...${argsName}) { super(...${argsName}); ${constructorInitializersCode}; }`);\n                }\n                else {\n                    this.tokens.appendCode(`constructor() { ${constructorInitializersCode}; }`);\n                }\n            }\n            while (!this.tokens.matchesContextIdAndLabel(types_1.TokenType.braceR, classContextId)) {\n                if (fieldIndex < fields.length && this.tokens.currentIndex() === fields[fieldIndex].start) {\n                    let needsCloseBrace = false;\n                    if (this.tokens.matches1(types_1.TokenType.bracketL)) {\n                        this.tokens.copyTokenWithPrefix(`${fields[fieldIndex].initializerName}() {this`);\n                    }\n                    else if (this.tokens.matches1(types_1.TokenType.string) || this.tokens.matches1(types_1.TokenType.num)) {\n                        this.tokens.copyTokenWithPrefix(`${fields[fieldIndex].initializerName}() {this[`);\n                        needsCloseBrace = true;\n                    }\n                    else {\n                        this.tokens.copyTokenWithPrefix(`${fields[fieldIndex].initializerName}() {this.`);\n                    }\n                    while (this.tokens.currentIndex() < fields[fieldIndex].end) {\n                        if (needsCloseBrace && this.tokens.currentIndex() === fields[fieldIndex].equalsIndex) {\n                            this.tokens.appendCode(\"]\");\n                        }\n                        this.processToken();\n                    }\n                    this.tokens.appendCode(\"}\");\n                    fieldIndex++;\n                }\n                else if (rangeToRemoveIndex < rangesToRemove.length &&\n                    this.tokens.currentIndex() >= rangesToRemove[rangeToRemoveIndex].start) {\n                    if (this.tokens.currentIndex() < rangesToRemove[rangeToRemoveIndex].end) {\n                        this.tokens.removeInitialToken();\n                    }\n                    while (this.tokens.currentIndex() < rangesToRemove[rangeToRemoveIndex].end) {\n                        this.tokens.removeToken();\n                    }\n                    rangeToRemoveIndex++;\n                }\n                else if (this.tokens.currentIndex() === constructorInsertPos) {\n                    this.tokens.copyToken();\n                    if (needsConstructorInit) {\n                        this.tokens.appendCode(`;${this.makeConstructorInitCode(constructorInitializerStatements, instanceInitializerNames, className)};`);\n                    }\n                    this.processToken();\n                }\n                else {\n                    this.processToken();\n                }\n            }\n            this.tokens.copyExpectedToken(types_1.TokenType.braceR);\n        }\n        makeConstructorInitCode(constructorInitializerStatements, instanceInitializerNames, className) {\n            return [\n                ...constructorInitializerStatements,\n                ...instanceInitializerNames.map((name) => `${className}.prototype.${name}.call(this)`),\n            ].join(\";\");\n        }\n        /**\n         * Normally it's ok to simply remove type tokens, but we need to be more careful when dealing with\n         * arrow function return types since they can confuse the parser. In that case, we want to move\n         * the close-paren to the same line as the arrow.\n         *\n         * See https://github.com/alangpierce/sucrase/issues/391 for more details.\n         */\n        processPossibleArrowParamEnd() {\n            if (this.tokens.matches2(types_1.TokenType.parenR, types_1.TokenType.colon) && this.tokens.tokenAtRelativeIndex(1).isType) {\n                let nextNonTypeIndex = this.tokens.currentIndex() + 1;\n                // Look ahead to see if this is an arrow function or something else.\n                while (this.tokens.tokens[nextNonTypeIndex].isType) {\n                    nextNonTypeIndex++;\n                }\n                if (this.tokens.matches1AtIndex(nextNonTypeIndex, types_1.TokenType.arrow)) {\n                    this.tokens.removeInitialToken();\n                    while (this.tokens.currentIndex() < nextNonTypeIndex) {\n                        this.tokens.removeToken();\n                    }\n                    this.tokens.replaceTokenTrimmingLeftWhitespace(\") =>\");\n                    return true;\n                }\n            }\n            return false;\n        }\n        /**\n         * An async arrow function might be of the form:\n         *\n         * async <\n         *   T\n         * >() => {}\n         *\n         * in which case, removing the type parameters will cause a syntax error. Detect this case and\n         * move the open-paren earlier.\n         */\n        processPossibleAsyncArrowWithTypeParams() {\n            if (!this.tokens.matchesContextual(keywords_1.ContextualKeyword._async) &&\n                !this.tokens.matches1(types_1.TokenType._async)) {\n                return false;\n            }\n            const nextToken = this.tokens.tokenAtRelativeIndex(1);\n            if (nextToken.type !== types_1.TokenType.lessThan || !nextToken.isType) {\n                return false;\n            }\n            let nextNonTypeIndex = this.tokens.currentIndex() + 1;\n            // Look ahead to see if this is an arrow function or something else.\n            while (this.tokens.tokens[nextNonTypeIndex].isType) {\n                nextNonTypeIndex++;\n            }\n            if (this.tokens.matches1AtIndex(nextNonTypeIndex, types_1.TokenType.parenL)) {\n                this.tokens.replaceToken(\"async (\");\n                this.tokens.removeInitialToken();\n                while (this.tokens.currentIndex() < nextNonTypeIndex) {\n                    this.tokens.removeToken();\n                }\n                this.tokens.removeToken();\n                // We ate a ( token, so we need to process the tokens in between and then the ) token so that\n                // we remain balanced.\n                this.processBalancedCode();\n                this.processToken();\n                return true;\n            }\n            return false;\n        }\n        processPossibleTypeRange() {\n            if (this.tokens.currentToken().isType) {\n                this.tokens.removeInitialToken();\n                while (this.tokens.currentToken().isType) {\n                    this.tokens.removeToken();\n                }\n                return true;\n            }\n            return false;\n        }\n        shiftMappings(mappings, prefixLength) {\n            for (let i = 0; i < mappings.length; i++) {\n                const mapping = mappings[i];\n                if (mapping !== undefined) {\n                    mappings[i] = mapping + prefixLength;\n                }\n            }\n            return mappings;\n        }\n    }\n    exports.default = RootTransformer;\n}\n","min_source":"function _(e,t,s,n,o){n();const r=e(\"tslib\"),i=e(\"99ff836c64\"),a=e(\"f0c35cbd76\"),h=r.__importDefault(e(\"6aa22e0eb8\")),c=r.__importDefault(e(\"268dc8808b\")),l=r.__importDefault(e(\"8db2e4c5d7\")),p=r.__importDefault(e(\"3913cc12b3\")),d=r.__importDefault(e(\"3eb46b07e3\")),k=r.__importDefault(e(\"a0e577c292\")),f=r.__importDefault(e(\"09e20c28d7\")),m=r.__importDefault(e(\"1dc037e3ca\")),u=r.__importDefault(e(\"6995ead426\")),T=r.__importDefault(e(\"9aad52e886\")),y=r.__importDefault(e(\"c3f855a290\")),g=r.__importDefault(e(\"581b1c506a\"));class I{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(e,t,s,n){I.prototype.__init.call(this),I.prototype.__init2.call(this),this.nameManager=e.nameManager,this.helperManager=e.helperManager;const{tokenProcessor:o,importProcessor:r}=e;this.tokens=o,this.isImportsTransformEnabled=t.includes(\"imports\"),this.isReactHotLoaderTransformEnabled=t.includes(\"react-hot-loader\"),this.disableESTransforms=Boolean(n.disableESTransforms),n.disableESTransforms||(this.transformers.push(new u.default(o,this.nameManager)),this.transformers.push(new f.default(o)),this.transformers.push(new m.default(o,this.nameManager))),t.includes(\"jsx\")&&(\"preserve\"!==n.jsxRuntime&&this.transformers.push(new k.default(this,o,r,this.nameManager,n)),this.transformers.push(new T.default(this,o,r,n)));let i=null;if(t.includes(\"react-hot-loader\")){if(!n.filePath)throw new Error(\"filePath is required when using the react-hot-loader transform.\");i=new y.default(o,n.filePath),this.transformers.push(i)}if(t.includes(\"imports\")){if(null===r)throw new Error(\"Expected non-null importProcessor with imports transform enabled.\");this.transformers.push(new c.default(this,o,r,this.nameManager,this.helperManager,i,s,Boolean(n.enableLegacyTypeScriptModuleInterop),t.includes(\"typescript\"),t.includes(\"flow\"),Boolean(n.preserveDynamicImport),Boolean(n.keepUnusedImports)))}else this.transformers.push(new l.default(o,this.nameManager,this.helperManager,i,t.includes(\"typescript\"),t.includes(\"flow\"),Boolean(n.keepUnusedImports),n));t.includes(\"flow\")&&this.transformers.push(new p.default(this,o,t.includes(\"imports\"))),t.includes(\"typescript\")&&this.transformers.push(new g.default(this,o,t.includes(\"imports\"))),t.includes(\"jest\")&&this.transformers.push(new d.default(this,o,this.nameManager,r))}transform(){this.tokens.reset(),this.processBalancedCode();let e=this.isImportsTransformEnabled?'\"use strict\";':\"\";for(const t of this.transformers)e+=t.getPrefixCode();e+=this.helperManager.emitHelpers(),e+=this.generatedVariables.map((e=>` var ${e};`)).join(\"\");for(const t of this.transformers)e+=t.getHoistedCode();let t=\"\";for(const e of this.transformers)t+=e.getSuffixCode();const s=this.tokens.finish();let{code:n}=s;if(n.startsWith(\"#!\")){let o=n.indexOf(\"\\n\");return-1===o&&(o=n.length,n+=\"\\n\"),{code:n.slice(0,o+1)+e+n.slice(o+1)+t,mappings:this.shiftMappings(s.mappings,e.length)}}return{code:e+n+t,mappings:this.shiftMappings(s.mappings,e.length)}}processBalancedCode(){let e=0,t=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(a.TokenType.braceL)||this.tokens.matches1(a.TokenType.dollarBraceL))e++;else if(this.tokens.matches1(a.TokenType.braceR)){if(0===e)return;e--}if(this.tokens.matches1(a.TokenType.parenL))t++;else if(this.tokens.matches1(a.TokenType.parenR)){if(0===t)return;t--}this.processToken()}}processToken(){if(this.tokens.matches1(a.TokenType._class))this.processClass();else{for(const e of this.transformers){if(e.process())return}this.tokens.copyToken()}}processNamedClass(){if(!this.tokens.matches2(a.TokenType._class,a.TokenType.name))throw new Error(\"Expected identifier for exported class name.\");const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){const e=(0,h.default)(this,this.tokens,this.nameManager,this.disableESTransforms),t=(e.headerInfo.isExpression||!e.headerInfo.className)&&e.staticInitializerNames.length+e.instanceInitializerNames.length>0;let s=e.headerInfo.className;t&&(s=this.nameManager.claimFreeName(\"_class\"),this.generatedVariables.push(s),this.tokens.appendCode(` (${s} =`));const n=this.tokens.currentToken().contextId;if(null==n)throw new Error(\"Expected class to have a context ID.\");for(this.tokens.copyExpectedToken(a.TokenType._class);!this.tokens.matchesContextIdAndLabel(a.TokenType.braceL,n);)this.processToken();this.processClassBody(e,s);const o=e.staticInitializerNames.map((e=>`${s}.${e}()`));t?this.tokens.appendCode(`, ${o.map((e=>`${e}, `)).join(\"\")}${s})`):e.staticInitializerNames.length>0&&this.tokens.appendCode(` ${o.map((e=>`${e};`)).join(\" \")}`)}processClassBody(e,t){const{headerInfo:s,constructorInsertPos:n,constructorInitializerStatements:o,fields:r,instanceInitializerNames:i,rangesToRemove:h}=e;let c=0,l=0;const p=this.tokens.currentToken().contextId;if(null==p)throw new Error(\"Expected non-null context ID on class.\");this.tokens.copyExpectedToken(a.TokenType.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode(\"__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}\");const d=o.length+i.length>0;if(null===n&&d){const e=this.makeConstructorInitCode(o,i,t);if(s.hasSuperclass){const t=this.nameManager.claimFreeName(\"args\");this.tokens.appendCode(`constructor(...${t}) { super(...${t}); ${e}; }`)}else this.tokens.appendCode(`constructor() { ${e}; }`)}for(;!this.tokens.matchesContextIdAndLabel(a.TokenType.braceR,p);)if(c<r.length&&this.tokens.currentIndex()===r[c].start){let e=!1;for(this.tokens.matches1(a.TokenType.bracketL)?this.tokens.copyTokenWithPrefix(`${r[c].initializerName}() {this`):this.tokens.matches1(a.TokenType.string)||this.tokens.matches1(a.TokenType.num)?(this.tokens.copyTokenWithPrefix(`${r[c].initializerName}() {this[`),e=!0):this.tokens.copyTokenWithPrefix(`${r[c].initializerName}() {this.`);this.tokens.currentIndex()<r[c].end;)e&&this.tokens.currentIndex()===r[c].equalsIndex&&this.tokens.appendCode(\"]\"),this.processToken();this.tokens.appendCode(\"}\"),c++}else if(l<h.length&&this.tokens.currentIndex()>=h[l].start){for(this.tokens.currentIndex()<h[l].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<h[l].end;)this.tokens.removeToken();l++}else this.tokens.currentIndex()===n?(this.tokens.copyToken(),d&&this.tokens.appendCode(`;${this.makeConstructorInitCode(o,i,t)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(a.TokenType.braceR)}makeConstructorInitCode(e,t,s){return[...e,...t.map((e=>`${s}.prototype.${e}.call(this)`))].join(\";\")}processPossibleArrowParamEnd(){if(this.tokens.matches2(a.TokenType.parenR,a.TokenType.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,a.TokenType.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<e;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(\") =>\"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(i.ContextualKeyword._async)&&!this.tokens.matches1(a.TokenType._async))return!1;const e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==a.TokenType.lessThan||!e.isType)return!1;let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,a.TokenType.parenL)){for(this.tokens.replaceToken(\"async (\"),this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(e,t){for(let s=0;s<e.length;s++){const n=e[s];void 0!==n&&(e[s]=n+t)}return e}}s.default=I}\n//# sourceMappingURL=RootTransformer.min.js.map","min_map":"{\"version\":3,\"file\":\"RootTransformer.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tslib_1\",\"keywords_1\",\"types_1\",\"getClassInfo_1\",\"__importDefault\",\"CJSImportTransformer_1\",\"ESMImportTransformer_1\",\"FlowTransformer_1\",\"JestHoistTransformer_1\",\"JSXTransformer_1\",\"NumericSeparatorTransformer_1\",\"OptionalCatchBindingTransformer_1\",\"OptionalChainingNullishTransformer_1\",\"ReactDisplayNameTransformer_1\",\"ReactHotLoaderTransformer_1\",\"TypeScriptTransformer_1\",\"RootTransformer\",\"__init\",\"this\",\"transformers\",\"__init2\",\"generatedVariables\",\"constructor\",\"sucraseContext\",\"transforms\",\"enableLegacyBabel5ModuleInterop\",\"options\",\"prototype\",\"call\",\"nameManager\",\"helperManager\",\"tokenProcessor\",\"importProcessor\",\"tokens\",\"isImportsTransformEnabled\",\"includes\",\"isReactHotLoaderTransformEnabled\",\"disableESTransforms\",\"Boolean\",\"push\",\"default\",\"jsxRuntime\",\"reactHotLoaderTransformer\",\"filePath\",\"Error\",\"enableLegacyTypeScriptModuleInterop\",\"preserveDynamicImport\",\"keepUnusedImports\",\"transform\",\"reset\",\"processBalancedCode\",\"prefix\",\"transformer\",\"getPrefixCode\",\"emitHelpers\",\"map\",\"v\",\"join\",\"getHoistedCode\",\"suffix\",\"getSuffixCode\",\"result\",\"finish\",\"code\",\"startsWith\",\"newlineIndex\",\"indexOf\",\"length\",\"slice\",\"mappings\",\"shiftMappings\",\"braceDepth\",\"parenDepth\",\"isAtEnd\",\"matches1\",\"TokenType\",\"braceL\",\"dollarBraceL\",\"braceR\",\"parenL\",\"parenR\",\"processToken\",\"_class\",\"processClass\",\"process\",\"copyToken\",\"processNamedClass\",\"matches2\",\"name\",\"identifierNameAtIndex\",\"currentIndex\",\"classInfo\",\"needsCommaExpression\",\"headerInfo\",\"isExpression\",\"className\",\"staticInitializerNames\",\"instanceInitializerNames\",\"claimFreeName\",\"appendCode\",\"contextId\",\"currentToken\",\"copyExpectedToken\",\"matchesContextIdAndLabel\",\"processClassBody\",\"staticInitializerStatements\",\"s\",\"constructorInsertPos\",\"constructorInitializerStatements\",\"fields\",\"rangesToRemove\",\"fieldIndex\",\"rangeToRemoveIndex\",\"classContextId\",\"needsConstructorInit\",\"constructorInitializersCode\",\"makeConstructorInitCode\",\"hasSuperclass\",\"argsName\",\"start\",\"needsCloseBrace\",\"bracketL\",\"copyTokenWithPrefix\",\"initializerName\",\"string\",\"num\",\"end\",\"equalsIndex\",\"removeInitialToken\",\"removeToken\",\"processPossibleArrowParamEnd\",\"colon\",\"tokenAtRelativeIndex\",\"isType\",\"nextNonTypeIndex\",\"matches1AtIndex\",\"arrow\",\"replaceTokenTrimmingLeftWhitespace\",\"processPossibleAsyncArrowWithTypeParams\",\"matchesContextual\",\"ContextualKeyword\",\"_async\",\"nextToken\",\"type\",\"lessThan\",\"replaceToken\",\"processPossibleTypeRange\",\"prefixLength\",\"i\",\"mapping\",\"undefined\"],\"sources\":[\"0\"],\"mappings\":\"AAAuD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACpGD,IACA,MAAME,EAAUL,EAAQ,SAClBM,EAAaN,EAAQ,cACrBO,EAAUP,EAAQ,cAClBQ,EAAiBH,EAAQI,gBAAgBT,EAAQ,eACjDU,EAAyBL,EAAQI,gBAAgBT,EAAQ,eACzDW,EAAyBN,EAAQI,gBAAgBT,EAAQ,eACzDY,EAAoBP,EAAQI,gBAAgBT,EAAQ,eACpDa,EAAyBR,EAAQI,gBAAgBT,E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AAKe,OAAO0G,kBAAkB1I,EAAW2I,kBAAkBC,UAC3D3H,KAAKe,OAAOyC,SAASxE,EAAQyE,UAAUkE,QACxC,OAAO,EAEX,MAAMC,EAAY5H,KAAKe,OAAOmG,qBAAqB,GACnD,GAAIU,EAAUC,OAAS7I,EAAQyE,UAAUqE,WAAaF,EAAUT,OAC5D,OAAO,EAEX,IAAIC,EAAmBpH,KAAKe,OAAOyD,eAAiB,EAEpD,KAAOxE,KAAKe,OAAOA,OAAOqG,GAAkBD,QACxCC,IAEJ,GAAIpH,KAAKe,OAAOsG,gBAAgBD,EAAkBpI,EAAQyE,UAAUI,QAAS,CAGzE,IAFA7D,KAAKe,OAAOgH,aAAa,WACzB/H,KAAKe,OAAO+F,qBACL9G,KAAKe,OAAOyD,eAAiB4C,GAChCpH,KAAKe,OAAOgG,cAOhB,OALA/G,KAAKe,OAAOgG,cAGZ/G,KAAKgC,sBACLhC,KAAK+D,gBACE,CACX,CACA,OAAO,CACX,CACA,wBAAAiE,GACI,GAAIhI,KAAKe,OAAOoE,eAAegC,OAAQ,CAEnC,IADAnH,KAAKe,OAAO+F,qBACL9G,KAAKe,OAAOoE,eAAegC,QAC9BnH,KAAKe,OAAOgG,cAEhB,OAAO,CACX,CACA,OAAO,CACX,CACA,aAAA3D,CAAcD,EAAU8E,GACpB,IAAK,IAAIC,EAAI,EAAGA,EAAI/E,EAASF,OAAQiF,IAAK,CACtC,MAAMC,EAAUhF,EAAS+E,QACTE,IAAZD,IACAhF,EAAS+E,GAAKC,EAAUF,EAEhC,CACA,OAAO9E,CACX,EAEJxE,EAAQ2C,QAAUxB,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getClassInfo.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/util/getClassInfo.js","resolution":"ESM","id":"6aa22e0eb8","hash":"6aa22e0eb8c213182c2f6eb63596bc14f93c10539e2bf8a517666069ea4fe43d","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = getClassInfo;\nconst keywords_1 = require(\"../parser/tokenizer/keywords\");\nconst types_1 = require(\"../parser/tokenizer/types\");\n/**\n * Get information about the class fields for this class, given a token processor pointing to the\n * open-brace at the start of the class.\n */\nfunction getClassInfo(rootTransformer, tokens, nameManager, disableESTransforms) {\n    const snapshot = tokens.snapshot();\n    const headerInfo = processClassHeader(tokens);\n    let constructorInitializerStatements = [];\n    const instanceInitializerNames = [];\n    const staticInitializerNames = [];\n    let constructorInsertPos = null;\n    const fields = [];\n    const rangesToRemove = [];\n    const classContextId = tokens.currentToken().contextId;\n    if (classContextId == null) {\n        throw new Error(\"Expected non-null class context ID on class open-brace.\");\n    }\n    tokens.nextToken();\n    while (!tokens.matchesContextIdAndLabel(types_1.TokenType.braceR, classContextId)) {\n        if (tokens.matchesContextual(keywords_1.ContextualKeyword._constructor) && !tokens.currentToken().isType) {\n            ({ constructorInitializerStatements, constructorInsertPos } = processConstructor(tokens));\n        }\n        else if (tokens.matches1(types_1.TokenType.semi)) {\n            if (!disableESTransforms) {\n                rangesToRemove.push({ start: tokens.currentIndex(), end: tokens.currentIndex() + 1 });\n            }\n            tokens.nextToken();\n        }\n        else if (tokens.currentToken().isType) {\n            tokens.nextToken();\n        }\n        else {\n            // Either a method or a field. Skip to the identifier part.\n            const statementStartIndex = tokens.currentIndex();\n            let isStatic = false;\n            let isESPrivate = false;\n            let isDeclareOrAbstract = false;\n            while (isAccessModifier(tokens.currentToken())) {\n                if (tokens.matches1(types_1.TokenType._static)) {\n                    isStatic = true;\n                }\n                if (tokens.matches1(types_1.TokenType.hash)) {\n                    isESPrivate = true;\n                }\n                if (tokens.matches1(types_1.TokenType._declare) || tokens.matches1(types_1.TokenType._abstract)) {\n                    isDeclareOrAbstract = true;\n                }\n                tokens.nextToken();\n            }\n            if (isStatic && tokens.matches1(types_1.TokenType.braceL)) {\n                // This is a static block, so don't process it in any special way.\n                skipToNextClassElement(tokens, classContextId);\n                continue;\n            }\n            if (isESPrivate) {\n                // Sucrase doesn't attempt to transpile private fields; just leave them as-is.\n                skipToNextClassElement(tokens, classContextId);\n                continue;\n            }\n            if (tokens.matchesContextual(keywords_1.ContextualKeyword._constructor) &&\n                !tokens.currentToken().isType) {\n                ({ constructorInitializerStatements, constructorInsertPos } = processConstructor(tokens));\n                continue;\n            }\n            const nameStartIndex = tokens.currentIndex();\n            skipFieldName(tokens);\n            if (tokens.matches1(types_1.TokenType.lessThan) || tokens.matches1(types_1.TokenType.parenL)) {\n                // This is a method, so nothing to process.\n                skipToNextClassElement(tokens, classContextId);\n                continue;\n            }\n            // There might be a type annotation that we need to skip.\n            while (tokens.currentToken().isType) {\n                tokens.nextToken();\n            }\n            if (tokens.matches1(types_1.TokenType.eq)) {\n                const equalsIndex = tokens.currentIndex();\n                // This is an initializer, so we need to wrap in an initializer method.\n                const valueEnd = tokens.currentToken().rhsEndIndex;\n                if (valueEnd == null) {\n                    throw new Error(\"Expected rhsEndIndex on class field assignment.\");\n                }\n                tokens.nextToken();\n                while (tokens.currentIndex() < valueEnd) {\n                    rootTransformer.processToken();\n                }\n                let initializerName;\n                if (isStatic) {\n                    initializerName = nameManager.claimFreeName(\"__initStatic\");\n                    staticInitializerNames.push(initializerName);\n                }\n                else {\n                    initializerName = nameManager.claimFreeName(\"__init\");\n                    instanceInitializerNames.push(initializerName);\n                }\n                // Fields start at the name, so `static x = 1;` has a field range of `x = 1;`.\n                fields.push({\n                    initializerName,\n                    equalsIndex,\n                    start: nameStartIndex,\n                    end: tokens.currentIndex(),\n                });\n            }\n            else if (!disableESTransforms || isDeclareOrAbstract) {\n                // This is a regular field declaration, like `x;`. With the class transform enabled, we just\n                // remove the line so that no output is produced. With the class transform disabled, we\n                // usually want to preserve the declaration (but still strip types), but if the `declare`\n                // or `abstract` keyword is specified, we should remove the line to avoid initializing the\n                // value to undefined.\n                rangesToRemove.push({ start: statementStartIndex, end: tokens.currentIndex() });\n            }\n        }\n    }\n    tokens.restoreToSnapshot(snapshot);\n    if (disableESTransforms) {\n        // With ES transforms disabled, we don't want to transform regular class\n        // field declarations, and we don't need to do any additional tricks to\n        // reference the constructor for static init, but we still need to transform\n        // TypeScript field initializers defined as constructor parameters and we\n        // still need to remove `declare` fields. For now, we run the same code\n        // path but omit any field information, as if the class had no field\n        // declarations. In the future, when we fully drop the class fields\n        // transform, we can simplify this code significantly.\n        return {\n            headerInfo,\n            constructorInitializerStatements,\n            instanceInitializerNames: [],\n            staticInitializerNames: [],\n            constructorInsertPos,\n            fields: [],\n            rangesToRemove,\n        };\n    }\n    else {\n        return {\n            headerInfo,\n            constructorInitializerStatements,\n            instanceInitializerNames,\n            staticInitializerNames,\n            constructorInsertPos,\n            fields,\n            rangesToRemove,\n        };\n    }\n}\n/**\n * Move the token processor to the next method/field in the class.\n *\n * To do that, we seek forward to the next start of a class name (either an open\n * bracket or an identifier, or the closing curly brace), then seek backward to\n * include any access modifiers.\n */\nfunction skipToNextClassElement(tokens, classContextId) {\n    tokens.nextToken();\n    while (tokens.currentToken().contextId !== classContextId) {\n        tokens.nextToken();\n    }\n    while (isAccessModifier(tokens.tokenAtRelativeIndex(-1))) {\n        tokens.previousToken();\n    }\n}\nfunction processClassHeader(tokens) {\n    const classToken = tokens.currentToken();\n    const contextId = classToken.contextId;\n    if (contextId == null) {\n        throw new Error(\"Expected context ID on class token.\");\n    }\n    const isExpression = classToken.isExpression;\n    if (isExpression == null) {\n        throw new Error(\"Expected isExpression on class token.\");\n    }\n    let className = null;\n    let hasSuperclass = false;\n    tokens.nextToken();\n    if (tokens.matches1(types_1.TokenType.name)) {\n        className = tokens.identifierName();\n    }\n    while (!tokens.matchesContextIdAndLabel(types_1.TokenType.braceL, contextId)) {\n        // If this has a superclass, there will always be an `extends` token. If it doesn't have a\n        // superclass, only type parameters and `implements` clauses can show up here, all of which\n        // consist only of type tokens. A declaration like `class A<B extends C> {` should *not* count\n        // as having a superclass.\n        if (tokens.matches1(types_1.TokenType._extends) && !tokens.currentToken().isType) {\n            hasSuperclass = true;\n        }\n        tokens.nextToken();\n    }\n    return { isExpression, className, hasSuperclass };\n}\n/**\n * Extract useful information out of a constructor, starting at the \"constructor\" name.\n */\nfunction processConstructor(tokens) {\n    const constructorInitializerStatements = [];\n    tokens.nextToken();\n    const constructorContextId = tokens.currentToken().contextId;\n    if (constructorContextId == null) {\n        throw new Error(\"Expected context ID on open-paren starting constructor params.\");\n    }\n    // Advance through parameters looking for access modifiers.\n    while (!tokens.matchesContextIdAndLabel(types_1.TokenType.parenR, constructorContextId)) {\n        if (tokens.currentToken().contextId === constructorContextId) {\n            // Current token is an open paren or comma just before a param, so check\n            // that param for access modifiers.\n            tokens.nextToken();\n            if (isAccessModifier(tokens.currentToken())) {\n                tokens.nextToken();\n                while (isAccessModifier(tokens.currentToken())) {\n                    tokens.nextToken();\n                }\n                const token = tokens.currentToken();\n                if (token.type !== types_1.TokenType.name) {\n                    throw new Error(\"Expected identifier after access modifiers in constructor arg.\");\n                }\n                const name = tokens.identifierNameForToken(token);\n                constructorInitializerStatements.push(`this.${name} = ${name}`);\n            }\n        }\n        else {\n            tokens.nextToken();\n        }\n    }\n    // )\n    tokens.nextToken();\n    // Constructor type annotations are invalid, but skip them anyway since\n    // they're easy to skip.\n    while (tokens.currentToken().isType) {\n        tokens.nextToken();\n    }\n    let constructorInsertPos = tokens.currentIndex();\n    // Advance through body looking for a super call.\n    let foundSuperCall = false;\n    while (!tokens.matchesContextIdAndLabel(types_1.TokenType.braceR, constructorContextId)) {\n        if (!foundSuperCall && tokens.matches2(types_1.TokenType._super, types_1.TokenType.parenL)) {\n            tokens.nextToken();\n            const superCallContextId = tokens.currentToken().contextId;\n            if (superCallContextId == null) {\n                throw new Error(\"Expected a context ID on the super call\");\n            }\n            while (!tokens.matchesContextIdAndLabel(types_1.TokenType.parenR, superCallContextId)) {\n                tokens.nextToken();\n            }\n            constructorInsertPos = tokens.currentIndex();\n            foundSuperCall = true;\n        }\n        tokens.nextToken();\n    }\n    // }\n    tokens.nextToken();\n    return { constructorInitializerStatements, constructorInsertPos };\n}\n/**\n * Determine if this is any token that can go before the name in a method/field.\n */\nfunction isAccessModifier(token) {\n    return [\n        types_1.TokenType._async,\n        types_1.TokenType._get,\n        types_1.TokenType._set,\n        types_1.TokenType.plus,\n        types_1.TokenType.minus,\n        types_1.TokenType._readonly,\n        types_1.TokenType._static,\n        types_1.TokenType._public,\n        types_1.TokenType._private,\n        types_1.TokenType._protected,\n        types_1.TokenType._override,\n        types_1.TokenType._abstract,\n        types_1.TokenType.star,\n        types_1.TokenType._declare,\n        types_1.TokenType.hash,\n    ].includes(token.type);\n}\n/**\n * The next token or set of tokens is either an identifier or an expression in square brackets, for\n * a method or field name.\n */\nfunction skipFieldName(tokens) {\n    if (tokens.matches1(types_1.TokenType.bracketL)) {\n        const startToken = tokens.currentToken();\n        const classContextId = startToken.contextId;\n        if (classContextId == null) {\n            throw new Error(\"Expected class context ID on computed name open bracket.\");\n        }\n        while (!tokens.matchesContextIdAndLabel(types_1.TokenType.bracketR, classContextId)) {\n            tokens.nextToken();\n        }\n        tokens.nextToken();\n    }\n    else {\n        tokens.nextToken();\n    }\n}\n","type":"js","dependency_paths":[["../parser/tokenizer/keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"],["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"]],"dependency_map":[],"exported":[{"type":"named","name":"getClassInfo"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/util/getClassInfo.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = getClassInfo;\n    const keywords_1 = require(\"99ff836c64\") /* ../parser/tokenizer/keywords */;\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    /**\n     * Get information about the class fields for this class, given a token processor pointing to the\n     * open-brace at the start of the class.\n     */\n    function getClassInfo(rootTransformer, tokens, nameManager, disableESTransforms) {\n        const snapshot = tokens.snapshot();\n        const headerInfo = processClassHeader(tokens);\n        let constructorInitializerStatements = [];\n        const instanceInitializerNames = [];\n        const staticInitializerNames = [];\n        let constructorInsertPos = null;\n        const fields = [];\n        const rangesToRemove = [];\n        const classContextId = tokens.currentToken().contextId;\n        if (classContextId == null) {\n            throw new Error(\"Expected non-null class context ID on class open-brace.\");\n        }\n        tokens.nextToken();\n        while (!tokens.matchesContextIdAndLabel(types_1.TokenType.braceR, classContextId)) {\n            if (tokens.matchesContextual(keywords_1.ContextualKeyword._constructor) && !tokens.currentToken().isType) {\n                ({ constructorInitializerStatements, constructorInsertPos } = processConstructor(tokens));\n            }\n            else if (tokens.matches1(types_1.TokenType.semi)) {\n                if (!disableESTransforms) {\n                    rangesToRemove.push({ start: tokens.currentIndex(), end: tokens.currentIndex() + 1 });\n                }\n                tokens.nextToken();\n            }\n            else if (tokens.currentToken().isType) {\n                tokens.nextToken();\n            }\n            else {\n                // Either a method or a field. Skip to the identifier part.\n                const statementStartIndex = tokens.currentIndex();\n                let isStatic = false;\n                let isESPrivate = false;\n                let isDeclareOrAbstract = false;\n                while (isAccessModifier(tokens.currentToken())) {\n                    if (tokens.matches1(types_1.TokenType._static)) {\n                        isStatic = true;\n                    }\n                    if (tokens.matches1(types_1.TokenType.hash)) {\n                        isESPrivate = true;\n                    }\n                    if (tokens.matches1(types_1.TokenType._declare) || tokens.matches1(types_1.TokenType._abstract)) {\n                        isDeclareOrAbstract = true;\n                    }\n                    tokens.nextToken();\n                }\n                if (isStatic && tokens.matches1(types_1.TokenType.braceL)) {\n                    // This is a static block, so don't process it in any special way.\n                    skipToNextClassElement(tokens, classContextId);\n                    continue;\n                }\n                if (isESPrivate) {\n                    // Sucrase doesn't attempt to transpile private fields; just leave them as-is.\n                    skipToNextClassElement(tokens, classContextId);\n                    continue;\n                }\n                if (tokens.matchesContextual(keywords_1.ContextualKeyword._constructor) &&\n                    !tokens.currentToken().isType) {\n                    ({ constructorInitializerStatements, constructorInsertPos } = processConstructor(tokens));\n                    continue;\n                }\n                const nameStartIndex = tokens.currentIndex();\n                skipFieldName(tokens);\n                if (tokens.matches1(types_1.TokenType.lessThan) || tokens.matches1(types_1.TokenType.parenL)) {\n                    // This is a method, so nothing to process.\n                    skipToNextClassElement(tokens, classContextId);\n                    continue;\n                }\n                // There might be a type annotation that we need to skip.\n                while (tokens.currentToken().isType) {\n                    tokens.nextToken();\n                }\n                if (tokens.matches1(types_1.TokenType.eq)) {\n                    const equalsIndex = tokens.currentIndex();\n                    // This is an initializer, so we need to wrap in an initializer method.\n                    const valueEnd = tokens.currentToken().rhsEndIndex;\n                    if (valueEnd == null) {\n                        throw new Error(\"Expected rhsEndIndex on class field assignment.\");\n                    }\n                    tokens.nextToken();\n                    while (tokens.currentIndex() < valueEnd) {\n                        rootTransformer.processToken();\n                    }\n                    let initializerName;\n                    if (isStatic) {\n                        initializerName = nameManager.claimFreeName(\"__initStatic\");\n                        staticInitializerNames.push(initializerName);\n                    }\n                    else {\n                        initializerName = nameManager.claimFreeName(\"__init\");\n                        instanceInitializerNames.push(initializerName);\n                    }\n                    // Fields start at the name, so `static x = 1;` has a field range of `x = 1;`.\n                    fields.push({\n                        initializerName,\n                        equalsIndex,\n                        start: nameStartIndex,\n                        end: tokens.currentIndex(),\n                    });\n                }\n                else if (!disableESTransforms || isDeclareOrAbstract) {\n                    // This is a regular field declaration, like `x;`. With the class transform enabled, we just\n                    // remove the line so that no output is produced. With the class transform disabled, we\n                    // usually want to preserve the declaration (but still strip types), but if the `declare`\n                    // or `abstract` keyword is specified, we should remove the line to avoid initializing the\n                    // value to undefined.\n                    rangesToRemove.push({ start: statementStartIndex, end: tokens.currentIndex() });\n                }\n            }\n        }\n        tokens.restoreToSnapshot(snapshot);\n        if (disableESTransforms) {\n            // With ES transforms disabled, we don't want to transform regular class\n            // field declarations, and we don't need to do any additional tricks to\n            // reference the constructor for static init, but we still need to transform\n            // TypeScript field initializers defined as constructor parameters and we\n            // still need to remove `declare` fields. For now, we run the same code\n            // path but omit any field information, as if the class had no field\n            // declarations. In the future, when we fully drop the class fields\n            // transform, we can simplify this code significantly.\n            return {\n                headerInfo,\n                constructorInitializerStatements,\n                instanceInitializerNames: [],\n                staticInitializerNames: [],\n                constructorInsertPos,\n                fields: [],\n                rangesToRemove,\n            };\n        }\n        else {\n            return {\n                headerInfo,\n                constructorInitializerStatements,\n                instanceInitializerNames,\n                staticInitializerNames,\n                constructorInsertPos,\n                fields,\n                rangesToRemove,\n            };\n        }\n    }\n    /**\n     * Move the token processor to the next method/field in the class.\n     *\n     * To do that, we seek forward to the next start of a class name (either an open\n     * bracket or an identifier, or the closing curly brace), then seek backward to\n     * include any access modifiers.\n     */\n    function skipToNextClassElement(tokens, classContextId) {\n        tokens.nextToken();\n        while (tokens.currentToken().contextId !== classContextId) {\n            tokens.nextToken();\n        }\n        while (isAccessModifier(tokens.tokenAtRelativeIndex(-1))) {\n            tokens.previousToken();\n        }\n    }\n    function processClassHeader(tokens) {\n        const classToken = tokens.currentToken();\n        const contextId = classToken.contextId;\n        if (contextId == null) {\n            throw new Error(\"Expected context ID on class token.\");\n        }\n        const isExpression = classToken.isExpression;\n        if (isExpression == null) {\n            throw new Error(\"Expected isExpression on class token.\");\n        }\n        let className = null;\n        let hasSuperclass = false;\n        tokens.nextToken();\n        if (tokens.matches1(types_1.TokenType.name)) {\n            className = tokens.identifierName();\n        }\n        while (!tokens.matchesContextIdAndLabel(types_1.TokenType.braceL, contextId)) {\n            // If this has a superclass, there will always be an `extends` token. If it doesn't have a\n            // superclass, only type parameters and `implements` clauses can show up here, all of which\n            // consist only of type tokens. A declaration like `class A<B extends C> {` should *not* count\n            // as having a superclass.\n            if (tokens.matches1(types_1.TokenType._extends) && !tokens.currentToken().isType) {\n                hasSuperclass = true;\n            }\n            tokens.nextToken();\n        }\n        return { isExpression, className, hasSuperclass };\n    }\n    /**\n     * Extract useful information out of a constructor, starting at the \"constructor\" name.\n     */\n    function processConstructor(tokens) {\n        const constructorInitializerStatements = [];\n        tokens.nextToken();\n        const constructorContextId = tokens.currentToken().contextId;\n        if (constructorContextId == null) {\n            throw new Error(\"Expected context ID on open-paren starting constructor params.\");\n        }\n        // Advance through parameters looking for access modifiers.\n        while (!tokens.matchesContextIdAndLabel(types_1.TokenType.parenR, constructorContextId)) {\n            if (tokens.currentToken().contextId === constructorContextId) {\n                // Current token is an open paren or comma just before a param, so check\n                // that param for access modifiers.\n                tokens.nextToken();\n                if (isAccessModifier(tokens.currentToken())) {\n                    tokens.nextToken();\n                    while (isAccessModifier(tokens.currentToken())) {\n                        tokens.nextToken();\n                    }\n                    const token = tokens.currentToken();\n                    if (token.type !== types_1.TokenType.name) {\n                        throw new Error(\"Expected identifier after access modifiers in constructor arg.\");\n                    }\n                    const name = tokens.identifierNameForToken(token);\n                    constructorInitializerStatements.push(`this.${name} = ${name}`);\n                }\n            }\n            else {\n                tokens.nextToken();\n            }\n        }\n        // )\n        tokens.nextToken();\n        // Constructor type annotations are invalid, but skip them anyway since\n        // they're easy to skip.\n        while (tokens.currentToken().isType) {\n            tokens.nextToken();\n        }\n        let constructorInsertPos = tokens.currentIndex();\n        // Advance through body looking for a super call.\n        let foundSuperCall = false;\n        while (!tokens.matchesContextIdAndLabel(types_1.TokenType.braceR, constructorContextId)) {\n            if (!foundSuperCall && tokens.matches2(types_1.TokenType._super, types_1.TokenType.parenL)) {\n                tokens.nextToken();\n                const superCallContextId = tokens.currentToken().contextId;\n                if (superCallContextId == null) {\n                    throw new Error(\"Expected a context ID on the super call\");\n                }\n                while (!tokens.matchesContextIdAndLabel(types_1.TokenType.parenR, superCallContextId)) {\n                    tokens.nextToken();\n                }\n                constructorInsertPos = tokens.currentIndex();\n                foundSuperCall = true;\n            }\n            tokens.nextToken();\n        }\n        // }\n        tokens.nextToken();\n        return { constructorInitializerStatements, constructorInsertPos };\n    }\n    /**\n     * Determine if this is any token that can go before the name in a method/field.\n     */\n    function isAccessModifier(token) {\n        return [\n            types_1.TokenType._async,\n            types_1.TokenType._get,\n            types_1.TokenType._set,\n            types_1.TokenType.plus,\n            types_1.TokenType.minus,\n            types_1.TokenType._readonly,\n            types_1.TokenType._static,\n            types_1.TokenType._public,\n            types_1.TokenType._private,\n            types_1.TokenType._protected,\n            types_1.TokenType._override,\n            types_1.TokenType._abstract,\n            types_1.TokenType.star,\n            types_1.TokenType._declare,\n            types_1.TokenType.hash,\n        ].includes(token.type);\n    }\n    /**\n     * The next token or set of tokens is either an identifier or an expression in square brackets, for\n     * a method or field name.\n     */\n    function skipFieldName(tokens) {\n        if (tokens.matches1(types_1.TokenType.bracketL)) {\n            const startToken = tokens.currentToken();\n            const classContextId = startToken.contextId;\n            if (classContextId == null) {\n                throw new Error(\"Expected class context ID on computed name open bracket.\");\n            }\n            while (!tokens.matchesContextIdAndLabel(types_1.TokenType.bracketR, classContextId)) {\n                tokens.nextToken();\n            }\n            tokens.nextToken();\n        }\n        else {\n            tokens.nextToken();\n        }\n    }\n}\n","min_source":"function _(e,n,t,o,r){o(),t.default=function(e,n,t,o){const r=n.snapshot(),k=function(e){const n=e.currentToken(),t=n.contextId;if(null==t)throw new Error(\"Expected context ID on class token.\");const o=n.isExpression;if(null==o)throw new Error(\"Expected isExpression on class token.\");let r=null,c=!1;e.nextToken(),e.matches1(s.TokenType.name)&&(r=e.identifierName());for(;!e.matchesContextIdAndLabel(s.TokenType.braceL,t);)e.matches1(s.TokenType._extends)&&!e.currentToken().isType&&(c=!0),e.nextToken();return{isExpression:o,className:r,hasSuperclass:c}}(n);let p=[];const l=[],x=[];let d=null;const f=[],h=[],m=n.currentToken().contextId;if(null==m)throw new Error(\"Expected non-null class context ID on class open-brace.\");n.nextToken();for(;!n.matchesContextIdAndLabel(s.TokenType.braceR,m);)if(n.matchesContextual(c.ContextualKeyword._constructor)&&!n.currentToken().isType)({constructorInitializerStatements:p,constructorInsertPos:d}=a(n));else if(n.matches1(s.TokenType.semi))o||h.push({start:n.currentIndex(),end:n.currentIndex()+1}),n.nextToken();else if(n.currentToken().isType)n.nextToken();else{const r=n.currentIndex();let k=!1,y=!1,I=!1;for(;i(n.currentToken());)n.matches1(s.TokenType._static)&&(k=!0),n.matches1(s.TokenType.hash)&&(y=!0),(n.matches1(s.TokenType._declare)||n.matches1(s.TokenType._abstract))&&(I=!0),n.nextToken();if(k&&n.matches1(s.TokenType.braceL)){T(n,m);continue}if(y){T(n,m);continue}if(n.matchesContextual(c.ContextualKeyword._constructor)&&!n.currentToken().isType){({constructorInitializerStatements:p,constructorInsertPos:d}=a(n));continue}const _=n.currentIndex();if(u(n),n.matches1(s.TokenType.lessThan)||n.matches1(s.TokenType.parenL)){T(n,m);continue}for(;n.currentToken().isType;)n.nextToken();if(n.matches1(s.TokenType.eq)){const o=n.currentIndex(),r=n.currentToken().rhsEndIndex;if(null==r)throw new Error(\"Expected rhsEndIndex on class field assignment.\");for(n.nextToken();n.currentIndex()<r;)e.processToken();let c;k?(c=t.claimFreeName(\"__initStatic\"),x.push(c)):(c=t.claimFreeName(\"__init\"),l.push(c)),f.push({initializerName:c,equalsIndex:o,start:_,end:n.currentIndex()})}else o&&!I||h.push({start:r,end:n.currentIndex()})}return n.restoreToSnapshot(r),o?{headerInfo:k,constructorInitializerStatements:p,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:d,fields:[],rangesToRemove:h}:{headerInfo:k,constructorInitializerStatements:p,instanceInitializerNames:l,staticInitializerNames:x,constructorInsertPos:d,fields:f,rangesToRemove:h}};const c=e(\"99ff836c64\"),s=e(\"f0c35cbd76\");function T(e,n){for(e.nextToken();e.currentToken().contextId!==n;)e.nextToken();for(;i(e.tokenAtRelativeIndex(-1));)e.previousToken()}function a(e){const n=[];e.nextToken();const t=e.currentToken().contextId;if(null==t)throw new Error(\"Expected context ID on open-paren starting constructor params.\");for(;!e.matchesContextIdAndLabel(s.TokenType.parenR,t);)if(e.currentToken().contextId===t){if(e.nextToken(),i(e.currentToken())){for(e.nextToken();i(e.currentToken());)e.nextToken();const t=e.currentToken();if(t.type!==s.TokenType.name)throw new Error(\"Expected identifier after access modifiers in constructor arg.\");const o=e.identifierNameForToken(t);n.push(`this.${o} = ${o}`)}}else e.nextToken();for(e.nextToken();e.currentToken().isType;)e.nextToken();let o=e.currentIndex(),r=!1;for(;!e.matchesContextIdAndLabel(s.TokenType.braceR,t);){if(!r&&e.matches2(s.TokenType._super,s.TokenType.parenL)){e.nextToken();const n=e.currentToken().contextId;if(null==n)throw new Error(\"Expected a context ID on the super call\");for(;!e.matchesContextIdAndLabel(s.TokenType.parenR,n);)e.nextToken();o=e.currentIndex(),r=!0}e.nextToken()}return e.nextToken(),{constructorInitializerStatements:n,constructorInsertPos:o}}function i(e){return[s.TokenType._async,s.TokenType._get,s.TokenType._set,s.TokenType.plus,s.TokenType.minus,s.TokenType._readonly,s.TokenType._static,s.TokenType._public,s.TokenType._private,s.TokenType._protected,s.TokenType._override,s.TokenType._abstract,s.TokenType.star,s.TokenType._declare,s.TokenType.hash].includes(e.type)}function u(e){if(e.matches1(s.TokenType.bracketL)){const n=e.currentToken().contextId;if(null==n)throw new Error(\"Expected class context ID on computed name open bracket.\");for(;!e.matchesContextIdAndLabel(s.TokenType.bracketR,n);)e.nextToken();e.nextToken()}else e.nextToken()}}\n//# sourceMappingURL=getClassInfo.min.js.map","min_map":"{\"version\":3,\"file\":\"getClassInfo.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"rootTransformer\",\"tokens\",\"nameManager\",\"disableESTransforms\",\"snapshot\",\"headerInfo\",\"classToken\",\"currentToken\",\"contextId\",\"Error\",\"isExpression\",\"className\",\"hasSuperclass\",\"nextToken\",\"matches1\",\"types_1\",\"TokenType\",\"name\",\"identifierName\",\"matchesContextIdAndLabel\",\"braceL\",\"_extends\",\"isType\",\"processClassHeader\",\"constructorInitializerStatements\",\"instanceInitializerNames\",\"staticInitializerNames\",\"constructorInsertPos\",\"fields\",\"rangesToRemove\",\"classContextId\",\"braceR\",\"matchesContextual\",\"keywords_1\",\"ContextualKeyword\",\"_constructor\",\"processConstructor\",\"semi\",\"push\",\"start\",\"currentIndex\",\"end\",\"statementStartIndex\",\"isStatic\",\"isESPrivate\",\"isDeclareOrAbstract\",\"isAccessModifier\",\"_static\",\"hash\",\"_declare\",\"_abstract\",\"skipToNextClassElement\",\"nameStartIndex\",\"skipFieldName\",\"lessThan\",\"parenL\",\"eq\",\"equalsIndex\",\"valueEnd\",\"rhsEndIndex\",\"processToken\",\"initializerName\",\"claimFreeName\",\"restoreToSnapshot\",\"tokenAtRelativeIndex\",\"previousToken\",\"constructorContextId\",\"parenR\",\"token\",\"type\",\"identifierNameForToken\",\"foundSuperCall\",\"matches2\",\"_super\",\"superCallContextId\",\"_async\",\"_get\",\"_set\",\"plus\",\"minus\",\"_readonly\",\"_public\",\"_private\",\"_protected\",\"_override\",\"star\",\"includes\",\"bracketL\",\"bracketR\"],\"sources\":[\"0\"],\"mappings\":\"AAA4C,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzFD,IACAD,EAAQG,QAOR,SAAsBC,EAAiBC,EAAQC,EAAaC,GACxD,MAAMC,EAAWH,EAAOG,WAClBC,EA2JV,SAA4BJ,GACxB,MAAMK,EAAaL,EAAOM,eACpBC,EAAYF,EAAWE,UAC7B,GAAiB,MAAbA,EACA,MAAM,IAAIC,MAAM,uCAEpB,MAAMC,EAAeJ,EAAWI,aAChC,GAAoB,MAAhBA,EACA,MAAM,IAAID,MAAM,yCAEpB,IAAIE,EAAY,KACZC,GAAgB,EACpBX,EAAOY,YACHZ,EAAOa,SAASC,EAAQC,UAAUC,QAClCN,EAAYV,EAAOiB,kBAEvB,MAAQjB,EAAOkB,yBAAyBJ,EAAQC,UAAUI,OAAQZ,IAK1DP,EAAOa,SAASC,EAAQC,UAAUK,YAAcpB,EAAOM,eAAee,SACtEV,GAAgB,GAEpBX,EAAOY,YAEX,MAAO,CAAEH,eAAcC,YAAWC,gBACtC,CAtLu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AAUkE,SAClBnE,EAAQC,UAAUmE,WAClBpE,EAAQC,UAAUoE,UAClBrE,EAAQC,UAAUkC,UAClBnC,EAAQC,UAAUqE,KAClBtE,EAAQC,UAAUiC,SAClBlC,EAAQC,UAAUgC,MACpBsC,SAASlB,EAAMC,KACrB,CAKA,SAAShB,EAAcpD,GACnB,GAAIA,EAAOa,SAASC,EAAQC,UAAUuE,UAAW,CAC7C,MACMzD,EADa7B,EAAOM,eACQC,UAClC,GAAsB,MAAlBsB,EACA,MAAM,IAAIrB,MAAM,4DAEpB,MAAQR,EAAOkB,yBAAyBJ,EAAQC,UAAUwE,SAAU1D,IAChE7B,EAAOY,YAEXZ,EAAOY,WACX,MAEIZ,EAAOY,WAEf,CACJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/CJSImportTransformer.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/transformers/CJSImportTransformer.js","resolution":"ESM","id":"268dc8808b","hash":"268dc8808b44df3998607af493df325e1b7773b70158a6b8c9f4f9fb8f9c953c","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\nconst tokenizer_1 = require(\"../parser/tokenizer\");\nconst keywords_1 = require(\"../parser/tokenizer/keywords\");\nconst types_1 = require(\"../parser/tokenizer/types\");\nconst elideImportEquals_1 = tslib_1.__importDefault(require(\"../util/elideImportEquals\"));\nconst getDeclarationInfo_1 = tslib_1.__importStar(require(\"../util/getDeclarationInfo\"));\nconst getImportExportSpecifierInfo_1 = tslib_1.__importDefault(require(\"../util/getImportExportSpecifierInfo\"));\nconst isExportFrom_1 = tslib_1.__importDefault(require(\"../util/isExportFrom\"));\nconst removeMaybeImportAttributes_1 = require(\"../util/removeMaybeImportAttributes\");\nconst shouldElideDefaultExport_1 = tslib_1.__importDefault(require(\"../util/shouldElideDefaultExport\"));\nconst Transformer_1 = tslib_1.__importDefault(require(\"./Transformer\"));\n/**\n * Class for editing import statements when we are transforming to commonjs.\n */\nclass CJSImportTransformer extends Transformer_1.default {\n    __init() { this.hadExport = false; }\n    __init2() { this.hadNamedExport = false; }\n    __init3() { this.hadDefaultExport = false; }\n    constructor(rootTransformer, tokens, importProcessor, nameManager, helperManager, reactHotLoaderTransformer, enableLegacyBabel5ModuleInterop, enableLegacyTypeScriptModuleInterop, isTypeScriptTransformEnabled, isFlowTransformEnabled, preserveDynamicImport, keepUnusedImports) {\n        super();\n        this.rootTransformer = rootTransformer;\n        this.tokens = tokens;\n        this.importProcessor = importProcessor;\n        this.nameManager = nameManager;\n        this.helperManager = helperManager;\n        this.reactHotLoaderTransformer = reactHotLoaderTransformer;\n        this.enableLegacyBabel5ModuleInterop = enableLegacyBabel5ModuleInterop;\n        this.enableLegacyTypeScriptModuleInterop = enableLegacyTypeScriptModuleInterop;\n        this.isTypeScriptTransformEnabled = isTypeScriptTransformEnabled;\n        this.isFlowTransformEnabled = isFlowTransformEnabled;\n        this.preserveDynamicImport = preserveDynamicImport;\n        this.keepUnusedImports = keepUnusedImports;\n        CJSImportTransformer.prototype.__init.call(this);\n        CJSImportTransformer.prototype.__init2.call(this);\n        CJSImportTransformer.prototype.__init3.call(this);\n        ;\n        this.declarationInfo = isTypeScriptTransformEnabled\n            ? (0, getDeclarationInfo_1.default)(tokens)\n            : getDeclarationInfo_1.EMPTY_DECLARATION_INFO;\n    }\n    getPrefixCode() {\n        let prefix = \"\";\n        if (this.hadExport) {\n            prefix += 'Object.defineProperty(exports, \"__esModule\", {value: true});';\n        }\n        return prefix;\n    }\n    getSuffixCode() {\n        if (this.enableLegacyBabel5ModuleInterop && this.hadDefaultExport && !this.hadNamedExport) {\n            return \"\\nmodule.exports = exports.default;\\n\";\n        }\n        return \"\";\n    }\n    process() {\n        // TypeScript `import foo = require('foo');` should always just be translated to plain require.\n        if (this.tokens.matches3(types_1.TokenType._import, types_1.TokenType.name, types_1.TokenType.eq)) {\n            return this.processImportEquals();\n        }\n        if (this.tokens.matches1(types_1.TokenType._import)) {\n            this.processImport();\n            return true;\n        }\n        if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType.eq)) {\n            this.tokens.replaceToken(\"module.exports\");\n            return true;\n        }\n        if (this.tokens.matches1(types_1.TokenType._export) && !this.tokens.currentToken().isType) {\n            this.hadExport = true;\n            return this.processExport();\n        }\n        if (this.tokens.matches2(types_1.TokenType.name, types_1.TokenType.postIncDec)) {\n            // Fall through to normal identifier matching if this doesn't apply.\n            if (this.processPostIncDec()) {\n                return true;\n            }\n        }\n        if (this.tokens.matches1(types_1.TokenType.name) || this.tokens.matches1(types_1.TokenType.jsxName)) {\n            return this.processIdentifier();\n        }\n        if (this.tokens.matches1(types_1.TokenType.eq)) {\n            return this.processAssignment();\n        }\n        if (this.tokens.matches1(types_1.TokenType.assign)) {\n            return this.processComplexAssignment();\n        }\n        if (this.tokens.matches1(types_1.TokenType.preIncDec)) {\n            return this.processPreIncDec();\n        }\n        return false;\n    }\n    processImportEquals() {\n        const importName = this.tokens.identifierNameAtIndex(this.tokens.currentIndex() + 1);\n        if (this.importProcessor.shouldAutomaticallyElideImportedName(importName)) {\n            // If this name is only used as a type, elide the whole import.\n            (0, elideImportEquals_1.default)(this.tokens);\n        }\n        else {\n            // Otherwise, switch `import` to `const`.\n            this.tokens.replaceToken(\"const\");\n        }\n        return true;\n    }\n    /**\n     * Transform this:\n     * import foo, {bar} from 'baz';\n     * into\n     * var _baz = require('baz'); var _baz2 = _interopRequireDefault(_baz);\n     *\n     * The import code was already generated in the import preprocessing step, so\n     * we just need to look it up.\n     */\n    processImport() {\n        if (this.tokens.matches2(types_1.TokenType._import, types_1.TokenType.parenL)) {\n            if (this.preserveDynamicImport) {\n                // Bail out, only making progress for this one token.\n                this.tokens.copyToken();\n                return;\n            }\n            const requireWrapper = this.enableLegacyTypeScriptModuleInterop\n                ? \"\"\n                : `${this.helperManager.getHelperName(\"interopRequireWildcard\")}(`;\n            this.tokens.replaceToken(`Promise.resolve().then(() => ${requireWrapper}require`);\n            const contextId = this.tokens.currentToken().contextId;\n            if (contextId == null) {\n                throw new Error(\"Expected context ID on dynamic import invocation.\");\n            }\n            this.tokens.copyToken();\n            while (!this.tokens.matchesContextIdAndLabel(types_1.TokenType.parenR, contextId)) {\n                this.rootTransformer.processToken();\n            }\n            this.tokens.replaceToken(requireWrapper ? \")))\" : \"))\");\n            return;\n        }\n        const shouldElideImport = this.removeImportAndDetectIfShouldElide();\n        if (shouldElideImport) {\n            this.tokens.removeToken();\n        }\n        else {\n            const path = this.tokens.stringValue();\n            this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(path));\n            this.tokens.appendCode(this.importProcessor.claimImportCode(path));\n        }\n        (0, removeMaybeImportAttributes_1.removeMaybeImportAttributes)(this.tokens);\n        if (this.tokens.matches1(types_1.TokenType.semi)) {\n            this.tokens.removeToken();\n        }\n    }\n    /**\n     * Erase this import (since any CJS output would be completely different), and\n     * return true if this import is should be elided due to being a type-only\n     * import. Such imports will not be emitted at all to avoid side effects.\n     *\n     * Import elision only happens with the TypeScript or Flow transforms enabled.\n     *\n     * TODO: This function has some awkward overlap with\n     *  CJSImportProcessor.pruneTypeOnlyImports , and the two should be unified.\n     *  That function handles TypeScript implicit import name elision, and removes\n     *  an import if all typical imported names (without `type`) are removed due\n     *  to being type-only imports. This function handles Flow import removal and\n     *  properly distinguishes `import 'foo'` from `import {} from 'foo'` for TS\n     *  purposes.\n     *\n     * The position should end at the import string.\n     */\n    removeImportAndDetectIfShouldElide() {\n        this.tokens.removeInitialToken();\n        if (this.tokens.matchesContextual(keywords_1.ContextualKeyword._type) &&\n            !this.tokens.matches1AtIndex(this.tokens.currentIndex() + 1, types_1.TokenType.comma) &&\n            !this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 1, keywords_1.ContextualKeyword._from)) {\n            // This is an \"import type\" statement, so exit early.\n            this.removeRemainingImport();\n            return true;\n        }\n        if (this.tokens.matches1(types_1.TokenType.name) || this.tokens.matches1(types_1.TokenType.star)) {\n            // We have a default import or namespace import, so there must be some\n            // non-type import.\n            this.removeRemainingImport();\n            return false;\n        }\n        if (this.tokens.matches1(types_1.TokenType.string)) {\n            // This is a bare import, so we should proceed with the import.\n            return false;\n        }\n        let foundNonTypeImport = false;\n        let foundAnyNamedImport = false;\n        while (!this.tokens.matches1(types_1.TokenType.string)) {\n            // Check if any named imports are of the form \"foo\" or \"foo as bar\", with\n            // no leading \"type\".\n            if ((!foundNonTypeImport && this.tokens.matches1(types_1.TokenType.braceL)) ||\n                this.tokens.matches1(types_1.TokenType.comma)) {\n                this.tokens.removeToken();\n                if (!this.tokens.matches1(types_1.TokenType.braceR)) {\n                    foundAnyNamedImport = true;\n                }\n                if (this.tokens.matches2(types_1.TokenType.name, types_1.TokenType.comma) ||\n                    this.tokens.matches2(types_1.TokenType.name, types_1.TokenType.braceR) ||\n                    this.tokens.matches4(types_1.TokenType.name, types_1.TokenType.name, types_1.TokenType.name, types_1.TokenType.comma) ||\n                    this.tokens.matches4(types_1.TokenType.name, types_1.TokenType.name, types_1.TokenType.name, types_1.TokenType.braceR)) {\n                    foundNonTypeImport = true;\n                }\n            }\n            this.tokens.removeToken();\n        }\n        if (this.keepUnusedImports) {\n            return false;\n        }\n        if (this.isTypeScriptTransformEnabled) {\n            return !foundNonTypeImport;\n        }\n        else if (this.isFlowTransformEnabled) {\n            // In Flow, unlike TS, `import {} from 'foo';` preserves the import.\n            return foundAnyNamedImport && !foundNonTypeImport;\n        }\n        else {\n            return false;\n        }\n    }\n    removeRemainingImport() {\n        while (!this.tokens.matches1(types_1.TokenType.string)) {\n            this.tokens.removeToken();\n        }\n    }\n    processIdentifier() {\n        const token = this.tokens.currentToken();\n        if (token.shadowsGlobal) {\n            return false;\n        }\n        if (token.identifierRole === tokenizer_1.IdentifierRole.ObjectShorthand) {\n            return this.processObjectShorthand();\n        }\n        if (token.identifierRole !== tokenizer_1.IdentifierRole.Access) {\n            return false;\n        }\n        const replacement = this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(token));\n        if (!replacement) {\n            return false;\n        }\n        // Tolerate any number of closing parens while looking for an opening paren\n        // that indicates a function call.\n        let possibleOpenParenIndex = this.tokens.currentIndex() + 1;\n        while (possibleOpenParenIndex < this.tokens.tokens.length &&\n            this.tokens.tokens[possibleOpenParenIndex].type === types_1.TokenType.parenR) {\n            possibleOpenParenIndex++;\n        }\n        // Avoid treating imported functions as methods of their `exports` object\n        // by using `(0, f)` when the identifier is in a paren expression. Else\n        // use `Function.prototype.call` when the identifier is a guaranteed\n        // function call. When using `call`, pass undefined as the context.\n        if (this.tokens.tokens[possibleOpenParenIndex].type === types_1.TokenType.parenL) {\n            if (this.tokens.tokenAtRelativeIndex(1).type === types_1.TokenType.parenL &&\n                this.tokens.tokenAtRelativeIndex(-1).type !== types_1.TokenType._new) {\n                this.tokens.replaceToken(`${replacement}.call(void 0, `);\n                // Remove the old paren.\n                this.tokens.removeToken();\n                // Balance out the new paren.\n                this.rootTransformer.processBalancedCode();\n                this.tokens.copyExpectedToken(types_1.TokenType.parenR);\n            }\n            else {\n                // See here: http://2ality.com/2015/12/references.html\n                this.tokens.replaceToken(`(0, ${replacement})`);\n            }\n        }\n        else {\n            this.tokens.replaceToken(replacement);\n        }\n        return true;\n    }\n    processObjectShorthand() {\n        const identifier = this.tokens.identifierName();\n        const replacement = this.importProcessor.getIdentifierReplacement(identifier);\n        if (!replacement) {\n            return false;\n        }\n        this.tokens.replaceToken(`${identifier}: ${replacement}`);\n        return true;\n    }\n    processExport() {\n        if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._enum) ||\n            this.tokens.matches3(types_1.TokenType._export, types_1.TokenType._const, types_1.TokenType._enum)) {\n            this.hadNamedExport = true;\n            // Let the TypeScript transform handle it.\n            return false;\n        }\n        if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._default)) {\n            if (this.tokens.matches3(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType._enum)) {\n                this.hadDefaultExport = true;\n                // Flow export default enums need some special handling, so handle them\n                // in that tranform rather than this one.\n                return false;\n            }\n            this.processExportDefault();\n            return true;\n        }\n        else if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType.braceL)) {\n            this.processExportBindings();\n            return true;\n        }\n        else if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType.name) &&\n            this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 1, keywords_1.ContextualKeyword._type)) {\n            // export type {a};\n            // export type {a as b};\n            // export type {a} from './b';\n            // export type * from './b';\n            // export type * as ns from './b';\n            this.tokens.removeInitialToken();\n            this.tokens.removeToken();\n            if (this.tokens.matches1(types_1.TokenType.braceL)) {\n                while (!this.tokens.matches1(types_1.TokenType.braceR)) {\n                    this.tokens.removeToken();\n                }\n                this.tokens.removeToken();\n            }\n            else {\n                // *\n                this.tokens.removeToken();\n                if (this.tokens.matches1(types_1.TokenType._as)) {\n                    // as\n                    this.tokens.removeToken();\n                    // ns\n                    this.tokens.removeToken();\n                }\n            }\n            // Remove type re-export `... } from './T'`\n            if (this.tokens.matchesContextual(keywords_1.ContextualKeyword._from) &&\n                this.tokens.matches1AtIndex(this.tokens.currentIndex() + 1, types_1.TokenType.string)) {\n                this.tokens.removeToken();\n                this.tokens.removeToken();\n                (0, removeMaybeImportAttributes_1.removeMaybeImportAttributes)(this.tokens);\n            }\n            return true;\n        }\n        this.hadNamedExport = true;\n        if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._var) ||\n            this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._let) ||\n            this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._const)) {\n            this.processExportVar();\n            return true;\n        }\n        else if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._function) ||\n            // export async function\n            this.tokens.matches3(types_1.TokenType._export, types_1.TokenType.name, types_1.TokenType._function)) {\n            this.processExportFunction();\n            return true;\n        }\n        else if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._class) ||\n            this.tokens.matches3(types_1.TokenType._export, types_1.TokenType._abstract, types_1.TokenType._class) ||\n            this.tokens.matches2(types_1.TokenType._export, types_1.TokenType.at)) {\n            this.processExportClass();\n            return true;\n        }\n        else if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType.star)) {\n            this.processExportStar();\n            return true;\n        }\n        else {\n            throw new Error(\"Unrecognized export syntax.\");\n        }\n    }\n    processAssignment() {\n        const index = this.tokens.currentIndex();\n        const identifierToken = this.tokens.tokens[index - 1];\n        // If the LHS is a type identifier, this must be a declaration like `let a: b = c;`,\n        // with `b` as the identifier, so nothing needs to be done in that case.\n        if (identifierToken.isType || identifierToken.type !== types_1.TokenType.name) {\n            return false;\n        }\n        if (identifierToken.shadowsGlobal) {\n            return false;\n        }\n        if (index >= 2 && this.tokens.matches1AtIndex(index - 2, types_1.TokenType.dot)) {\n            return false;\n        }\n        if (index >= 2 && [types_1.TokenType._var, types_1.TokenType._let, types_1.TokenType._const].includes(this.tokens.tokens[index - 2].type)) {\n            // Declarations don't need an extra assignment. This doesn't avoid the\n            // assignment for comma-separated declarations, but it's still correct\n            // since the assignment is just redundant.\n            return false;\n        }\n        const assignmentSnippet = this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(identifierToken));\n        if (!assignmentSnippet) {\n            return false;\n        }\n        this.tokens.copyToken();\n        this.tokens.appendCode(` ${assignmentSnippet} =`);\n        return true;\n    }\n    /**\n     * Process something like `a += 3`, where `a` might be an exported value.\n     */\n    processComplexAssignment() {\n        const index = this.tokens.currentIndex();\n        const identifierToken = this.tokens.tokens[index - 1];\n        if (identifierToken.type !== types_1.TokenType.name) {\n            return false;\n        }\n        if (identifierToken.shadowsGlobal) {\n            return false;\n        }\n        if (index >= 2 && this.tokens.matches1AtIndex(index - 2, types_1.TokenType.dot)) {\n            return false;\n        }\n        const assignmentSnippet = this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(identifierToken));\n        if (!assignmentSnippet) {\n            return false;\n        }\n        this.tokens.appendCode(` = ${assignmentSnippet}`);\n        this.tokens.copyToken();\n        return true;\n    }\n    /**\n     * Process something like `++a`, where `a` might be an exported value.\n     */\n    processPreIncDec() {\n        const index = this.tokens.currentIndex();\n        const identifierToken = this.tokens.tokens[index + 1];\n        if (identifierToken.type !== types_1.TokenType.name) {\n            return false;\n        }\n        if (identifierToken.shadowsGlobal) {\n            return false;\n        }\n        // Ignore things like ++a.b and ++a[b] and ++a().b.\n        if (index + 2 < this.tokens.tokens.length &&\n            (this.tokens.matches1AtIndex(index + 2, types_1.TokenType.dot) ||\n                this.tokens.matches1AtIndex(index + 2, types_1.TokenType.bracketL) ||\n                this.tokens.matches1AtIndex(index + 2, types_1.TokenType.parenL))) {\n            return false;\n        }\n        const identifierName = this.tokens.identifierNameForToken(identifierToken);\n        const assignmentSnippet = this.importProcessor.resolveExportBinding(identifierName);\n        if (!assignmentSnippet) {\n            return false;\n        }\n        this.tokens.appendCode(`${assignmentSnippet} = `);\n        this.tokens.copyToken();\n        return true;\n    }\n    /**\n     * Process something like `a++`, where `a` might be an exported value.\n     * This starts at the `a`, not at the `++`.\n     */\n    processPostIncDec() {\n        const index = this.tokens.currentIndex();\n        const identifierToken = this.tokens.tokens[index];\n        const operatorToken = this.tokens.tokens[index + 1];\n        if (identifierToken.type !== types_1.TokenType.name) {\n            return false;\n        }\n        if (identifierToken.shadowsGlobal) {\n            return false;\n        }\n        if (index >= 1 && this.tokens.matches1AtIndex(index - 1, types_1.TokenType.dot)) {\n            return false;\n        }\n        const identifierName = this.tokens.identifierNameForToken(identifierToken);\n        const assignmentSnippet = this.importProcessor.resolveExportBinding(identifierName);\n        if (!assignmentSnippet) {\n            return false;\n        }\n        const operatorCode = this.tokens.rawCodeForToken(operatorToken);\n        // We might also replace the identifier with something like exports.x, so\n        // do that replacement here as well.\n        const base = this.importProcessor.getIdentifierReplacement(identifierName) || identifierName;\n        if (operatorCode === \"++\") {\n            this.tokens.replaceToken(`(${base} = ${assignmentSnippet} = ${base} + 1, ${base} - 1)`);\n        }\n        else if (operatorCode === \"--\") {\n            this.tokens.replaceToken(`(${base} = ${assignmentSnippet} = ${base} - 1, ${base} + 1)`);\n        }\n        else {\n            throw new Error(`Unexpected operator: ${operatorCode}`);\n        }\n        this.tokens.removeToken();\n        return true;\n    }\n    processExportDefault() {\n        let exportedRuntimeValue = true;\n        if (this.tokens.matches4(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType._function, types_1.TokenType.name) ||\n            // export default async function\n            (this.tokens.matches5(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType.name, types_1.TokenType._function, types_1.TokenType.name) &&\n                this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 2, keywords_1.ContextualKeyword._async))) {\n            this.tokens.removeInitialToken();\n            this.tokens.removeToken();\n            // Named function export case: change it to a top-level function\n            // declaration followed by exports statement.\n            const name = this.processNamedFunction();\n            this.tokens.appendCode(` exports.default = ${name};`);\n        }\n        else if (this.tokens.matches4(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType._class, types_1.TokenType.name) ||\n            this.tokens.matches5(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType._abstract, types_1.TokenType._class, types_1.TokenType.name) ||\n            this.tokens.matches3(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType.at)) {\n            this.tokens.removeInitialToken();\n            this.tokens.removeToken();\n            this.copyDecorators();\n            if (this.tokens.matches1(types_1.TokenType._abstract)) {\n                this.tokens.removeToken();\n            }\n            const name = this.rootTransformer.processNamedClass();\n            this.tokens.appendCode(` exports.default = ${name};`);\n            // After this point, this is a plain \"export default E\" statement.\n        }\n        else if ((0, shouldElideDefaultExport_1.default)(this.isTypeScriptTransformEnabled, this.keepUnusedImports, this.tokens, this.declarationInfo)) {\n            // If the exported value is just an identifier and should be elided by TypeScript\n            // rules, then remove it entirely. It will always have the form `export default e`,\n            // where `e` is an identifier.\n            exportedRuntimeValue = false;\n            this.tokens.removeInitialToken();\n            this.tokens.removeToken();\n            this.tokens.removeToken();\n        }\n        else if (this.reactHotLoaderTransformer) {\n            // We need to assign E to a variable. Change \"export default E\" to\n            // \"let _default; exports.default = _default = E\"\n            const defaultVarName = this.nameManager.claimFreeName(\"_default\");\n            this.tokens.replaceToken(`let ${defaultVarName}; exports.`);\n            this.tokens.copyToken();\n            this.tokens.appendCode(` = ${defaultVarName} =`);\n            this.reactHotLoaderTransformer.setExtractedDefaultExportName(defaultVarName);\n        }\n        else {\n            // Change \"export default E\" to \"exports.default = E\"\n            this.tokens.replaceToken(\"exports.\");\n            this.tokens.copyToken();\n            this.tokens.appendCode(\" =\");\n        }\n        if (exportedRuntimeValue) {\n            this.hadDefaultExport = true;\n        }\n    }\n    copyDecorators() {\n        while (this.tokens.matches1(types_1.TokenType.at)) {\n            this.tokens.copyToken();\n            if (this.tokens.matches1(types_1.TokenType.parenL)) {\n                this.tokens.copyExpectedToken(types_1.TokenType.parenL);\n                this.rootTransformer.processBalancedCode();\n                this.tokens.copyExpectedToken(types_1.TokenType.parenR);\n            }\n            else {\n                this.tokens.copyExpectedToken(types_1.TokenType.name);\n                while (this.tokens.matches1(types_1.TokenType.dot)) {\n                    this.tokens.copyExpectedToken(types_1.TokenType.dot);\n                    this.tokens.copyExpectedToken(types_1.TokenType.name);\n                }\n                if (this.tokens.matches1(types_1.TokenType.parenL)) {\n                    this.tokens.copyExpectedToken(types_1.TokenType.parenL);\n                    this.rootTransformer.processBalancedCode();\n                    this.tokens.copyExpectedToken(types_1.TokenType.parenR);\n                }\n            }\n        }\n    }\n    /**\n     * Transform a declaration like `export var`, `export let`, or `export const`.\n     */\n    processExportVar() {\n        if (this.isSimpleExportVar()) {\n            this.processSimpleExportVar();\n        }\n        else {\n            this.processComplexExportVar();\n        }\n    }\n    /**\n     * Determine if the export is of the form:\n     * export var/let/const [varName] = [expr];\n     * In other words, determine if function name inference might apply.\n     */\n    isSimpleExportVar() {\n        let tokenIndex = this.tokens.currentIndex();\n        // export\n        tokenIndex++;\n        // var/let/const\n        tokenIndex++;\n        if (!this.tokens.matches1AtIndex(tokenIndex, types_1.TokenType.name)) {\n            return false;\n        }\n        tokenIndex++;\n        while (tokenIndex < this.tokens.tokens.length && this.tokens.tokens[tokenIndex].isType) {\n            tokenIndex++;\n        }\n        if (!this.tokens.matches1AtIndex(tokenIndex, types_1.TokenType.eq)) {\n            return false;\n        }\n        return true;\n    }\n    /**\n     * Transform an `export var` declaration initializing a single variable.\n     *\n     * For example, this:\n     * export const f = () => {};\n     * becomes this:\n     * const f = () => {}; exports.f = f;\n     *\n     * The variable is unused (e.g. exports.f has the true value of the export).\n     * We need to produce an assignment of this form so that the function will\n     * have an inferred name of \"f\", which wouldn't happen in the more general\n     * case below.\n     */\n    processSimpleExportVar() {\n        // export\n        this.tokens.removeInitialToken();\n        // var/let/const\n        this.tokens.copyToken();\n        const varName = this.tokens.identifierName();\n        // x: number  ->  x\n        while (!this.tokens.matches1(types_1.TokenType.eq)) {\n            this.rootTransformer.processToken();\n        }\n        const endIndex = this.tokens.currentToken().rhsEndIndex;\n        if (endIndex == null) {\n            throw new Error(\"Expected = token with an end index.\");\n        }\n        while (this.tokens.currentIndex() < endIndex) {\n            this.rootTransformer.processToken();\n        }\n        this.tokens.appendCode(`; exports.${varName} = ${varName}`);\n    }\n    /**\n     * Transform normal declaration exports, including handling destructuring.\n     * For example, this:\n     * export const {x: [a = 2, b], c} = d;\n     * becomes this:\n     * ({x: [exports.a = 2, exports.b], c: exports.c} = d;)\n     */\n    processComplexExportVar() {\n        this.tokens.removeInitialToken();\n        this.tokens.removeToken();\n        const needsParens = this.tokens.matches1(types_1.TokenType.braceL);\n        if (needsParens) {\n            this.tokens.appendCode(\"(\");\n        }\n        let depth = 0;\n        while (true) {\n            if (this.tokens.matches1(types_1.TokenType.braceL) ||\n                this.tokens.matches1(types_1.TokenType.dollarBraceL) ||\n                this.tokens.matches1(types_1.TokenType.bracketL)) {\n                depth++;\n                this.tokens.copyToken();\n            }\n            else if (this.tokens.matches1(types_1.TokenType.braceR) || this.tokens.matches1(types_1.TokenType.bracketR)) {\n                depth--;\n                this.tokens.copyToken();\n            }\n            else if (depth === 0 &&\n                !this.tokens.matches1(types_1.TokenType.name) &&\n                !this.tokens.currentToken().isType) {\n                break;\n            }\n            else if (this.tokens.matches1(types_1.TokenType.eq)) {\n                // Default values might have assignments in the RHS that we want to ignore, so skip past\n                // them.\n                const endIndex = this.tokens.currentToken().rhsEndIndex;\n                if (endIndex == null) {\n                    throw new Error(\"Expected = token with an end index.\");\n                }\n                while (this.tokens.currentIndex() < endIndex) {\n                    this.rootTransformer.processToken();\n                }\n            }\n            else {\n                const token = this.tokens.currentToken();\n                if ((0, tokenizer_1.isDeclaration)(token)) {\n                    const name = this.tokens.identifierName();\n                    let replacement = this.importProcessor.getIdentifierReplacement(name);\n                    if (replacement === null) {\n                        throw new Error(`Expected a replacement for ${name} in \\`export var\\` syntax.`);\n                    }\n                    if ((0, tokenizer_1.isObjectShorthandDeclaration)(token)) {\n                        replacement = `${name}: ${replacement}`;\n                    }\n                    this.tokens.replaceToken(replacement);\n                }\n                else {\n                    this.rootTransformer.processToken();\n                }\n            }\n        }\n        if (needsParens) {\n            // Seek to the end of the RHS.\n            const endIndex = this.tokens.currentToken().rhsEndIndex;\n            if (endIndex == null) {\n                throw new Error(\"Expected = token with an end index.\");\n            }\n            while (this.tokens.currentIndex() < endIndex) {\n                this.rootTransformer.processToken();\n            }\n            this.tokens.appendCode(\")\");\n        }\n    }\n    /**\n     * Transform this:\n     * export function foo() {}\n     * into this:\n     * function foo() {} exports.foo = foo;\n     */\n    processExportFunction() {\n        this.tokens.replaceToken(\"\");\n        const name = this.processNamedFunction();\n        this.tokens.appendCode(` exports.${name} = ${name};`);\n    }\n    /**\n     * Skip past a function with a name and return that name.\n     */\n    processNamedFunction() {\n        if (this.tokens.matches1(types_1.TokenType._function)) {\n            this.tokens.copyToken();\n        }\n        else if (this.tokens.matches2(types_1.TokenType.name, types_1.TokenType._function)) {\n            if (!this.tokens.matchesContextual(keywords_1.ContextualKeyword._async)) {\n                throw new Error(\"Expected async keyword in function export.\");\n            }\n            this.tokens.copyToken();\n            this.tokens.copyToken();\n        }\n        if (this.tokens.matches1(types_1.TokenType.star)) {\n            this.tokens.copyToken();\n        }\n        if (!this.tokens.matches1(types_1.TokenType.name)) {\n            throw new Error(\"Expected identifier for exported function name.\");\n        }\n        const name = this.tokens.identifierName();\n        this.tokens.copyToken();\n        if (this.tokens.currentToken().isType) {\n            this.tokens.removeInitialToken();\n            while (this.tokens.currentToken().isType) {\n                this.tokens.removeToken();\n            }\n        }\n        this.tokens.copyExpectedToken(types_1.TokenType.parenL);\n        this.rootTransformer.processBalancedCode();\n        this.tokens.copyExpectedToken(types_1.TokenType.parenR);\n        this.rootTransformer.processPossibleTypeRange();\n        this.tokens.copyExpectedToken(types_1.TokenType.braceL);\n        this.rootTransformer.processBalancedCode();\n        this.tokens.copyExpectedToken(types_1.TokenType.braceR);\n        return name;\n    }\n    /**\n     * Transform this:\n     * export class A {}\n     * into this:\n     * class A {} exports.A = A;\n     */\n    processExportClass() {\n        this.tokens.removeInitialToken();\n        this.copyDecorators();\n        if (this.tokens.matches1(types_1.TokenType._abstract)) {\n            this.tokens.removeToken();\n        }\n        const name = this.rootTransformer.processNamedClass();\n        this.tokens.appendCode(` exports.${name} = ${name};`);\n    }\n    /**\n     * Transform this:\n     * export {a, b as c};\n     * into this:\n     * exports.a = a; exports.c = b;\n     *\n     * OR\n     *\n     * Transform this:\n     * export {a, b as c} from './foo';\n     * into the pre-generated Object.defineProperty code from the ImportProcessor.\n     *\n     * For the first case, if the TypeScript transform is enabled, we need to skip\n     * exports that are only defined as types.\n     */\n    processExportBindings() {\n        this.tokens.removeInitialToken();\n        this.tokens.removeToken();\n        const isReExport = (0, isExportFrom_1.default)(this.tokens);\n        const exportStatements = [];\n        while (true) {\n            if (this.tokens.matches1(types_1.TokenType.braceR)) {\n                this.tokens.removeToken();\n                break;\n            }\n            const specifierInfo = (0, getImportExportSpecifierInfo_1.default)(this.tokens);\n            while (this.tokens.currentIndex() < specifierInfo.endIndex) {\n                this.tokens.removeToken();\n            }\n            const shouldRemoveExport = specifierInfo.isType ||\n                (!isReExport && this.shouldElideExportedIdentifier(specifierInfo.leftName));\n            if (!shouldRemoveExport) {\n                const exportedName = specifierInfo.rightName;\n                if (exportedName === \"default\") {\n                    this.hadDefaultExport = true;\n                }\n                else {\n                    this.hadNamedExport = true;\n                }\n                const localName = specifierInfo.leftName;\n                const newLocalName = this.importProcessor.getIdentifierReplacement(localName);\n                exportStatements.push(`exports.${exportedName} = ${newLocalName || localName};`);\n            }\n            if (this.tokens.matches1(types_1.TokenType.braceR)) {\n                this.tokens.removeToken();\n                break;\n            }\n            if (this.tokens.matches2(types_1.TokenType.comma, types_1.TokenType.braceR)) {\n                this.tokens.removeToken();\n                this.tokens.removeToken();\n                break;\n            }\n            else if (this.tokens.matches1(types_1.TokenType.comma)) {\n                this.tokens.removeToken();\n            }\n            else {\n                throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`);\n            }\n        }\n        if (this.tokens.matchesContextual(keywords_1.ContextualKeyword._from)) {\n            // This is an export...from, so throw away the normal named export code\n            // and use the Object.defineProperty code from ImportProcessor.\n            this.tokens.removeToken();\n            const path = this.tokens.stringValue();\n            this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(path));\n            (0, removeMaybeImportAttributes_1.removeMaybeImportAttributes)(this.tokens);\n        }\n        else {\n            // This is a normal named export, so use that.\n            this.tokens.appendCode(exportStatements.join(\" \"));\n        }\n        if (this.tokens.matches1(types_1.TokenType.semi)) {\n            this.tokens.removeToken();\n        }\n    }\n    processExportStar() {\n        this.tokens.removeInitialToken();\n        while (!this.tokens.matches1(types_1.TokenType.string)) {\n            this.tokens.removeToken();\n        }\n        const path = this.tokens.stringValue();\n        this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(path));\n        (0, removeMaybeImportAttributes_1.removeMaybeImportAttributes)(this.tokens);\n        if (this.tokens.matches1(types_1.TokenType.semi)) {\n            this.tokens.removeToken();\n        }\n    }\n    shouldElideExportedIdentifier(name) {\n        return (this.isTypeScriptTransformEnabled &&\n            !this.keepUnusedImports &&\n            !this.declarationInfo.valueDeclarations.has(name));\n    }\n}\nexports.default = CJSImportTransformer;\n","type":"js","dependency_paths":[["../parser/tokenizer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["../parser/tokenizer/keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"],["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["../util/elideImportEquals","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/elideImportEquals.js"],["../util/getDeclarationInfo","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getDeclarationInfo.js"],["../util/getImportExportSpecifierInfo","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getImportExportSpecifierInfo.js"],["../util/isExportFrom","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/isExportFrom.js"],["../util/removeMaybeImportAttributes","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/removeMaybeImportAttributes.js"],["../util/shouldElideDefaultExport","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/shouldElideDefaultExport.js"],["./Transformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/Transformer.js"]],"dependency_map":[],"exported":[{"type":"named","name":"CJSImportTransformer"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/transformers/CJSImportTransformer.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const tokenizer_1 = require(\"bfb18d0576\") /* ../parser/tokenizer */;\n    const keywords_1 = require(\"99ff836c64\") /* ../parser/tokenizer/keywords */;\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    const elideImportEquals_1 = tslib_1.__importDefault(require(\"a5f4e01d7b\") /* ../util/elideImportEquals */);\n    const getDeclarationInfo_1 = tslib_1.__importStar(require(\"f1b0dcccab\") /* ../util/getDeclarationInfo */);\n    const getImportExportSpecifierInfo_1 = tslib_1.__importDefault(require(\"14d4ae78a4\") /* ../util/getImportExportSpecifierInfo */);\n    const isExportFrom_1 = tslib_1.__importDefault(require(\"c3c484c8b2\") /* ../util/isExportFrom */);\n    const removeMaybeImportAttributes_1 = require(\"f659e3ed39\") /* ../util/removeMaybeImportAttributes */;\n    const shouldElideDefaultExport_1 = tslib_1.__importDefault(require(\"11afb90ac4\") /* ../util/shouldElideDefaultExport */);\n    const Transformer_1 = tslib_1.__importDefault(require(\"a46f119f74\") /* ./Transformer */);\n    /**\n     * Class for editing import statements when we are transforming to commonjs.\n     */\n    class CJSImportTransformer extends Transformer_1.default {\n        __init() { this.hadExport = false; }\n        __init2() { this.hadNamedExport = false; }\n        __init3() { this.hadDefaultExport = false; }\n        constructor(rootTransformer, tokens, importProcessor, nameManager, helperManager, reactHotLoaderTransformer, enableLegacyBabel5ModuleInterop, enableLegacyTypeScriptModuleInterop, isTypeScriptTransformEnabled, isFlowTransformEnabled, preserveDynamicImport, keepUnusedImports) {\n            super();\n            this.rootTransformer = rootTransformer;\n            this.tokens = tokens;\n            this.importProcessor = importProcessor;\n            this.nameManager = nameManager;\n            this.helperManager = helperManager;\n            this.reactHotLoaderTransformer = reactHotLoaderTransformer;\n            this.enableLegacyBabel5ModuleInterop = enableLegacyBabel5ModuleInterop;\n            this.enableLegacyTypeScriptModuleInterop = enableLegacyTypeScriptModuleInterop;\n            this.isTypeScriptTransformEnabled = isTypeScriptTransformEnabled;\n            this.isFlowTransformEnabled = isFlowTransformEnabled;\n            this.preserveDynamicImport = preserveDynamicImport;\n            this.keepUnusedImports = keepUnusedImports;\n            CJSImportTransformer.prototype.__init.call(this);\n            CJSImportTransformer.prototype.__init2.call(this);\n            CJSImportTransformer.prototype.__init3.call(this);\n            ;\n            this.declarationInfo = isTypeScriptTransformEnabled\n                ? (0, getDeclarationInfo_1.default)(tokens)\n                : getDeclarationInfo_1.EMPTY_DECLARATION_INFO;\n        }\n        getPrefixCode() {\n            let prefix = \"\";\n            if (this.hadExport) {\n                prefix += 'Object.defineProperty(exports, \"__esModule\", {value: true});';\n            }\n            return prefix;\n        }\n        getSuffixCode() {\n            if (this.enableLegacyBabel5ModuleInterop && this.hadDefaultExport && !this.hadNamedExport) {\n                return \"\\nmodule.exports = exports.default;\\n\";\n            }\n            return \"\";\n        }\n        process() {\n            // TypeScript `import foo = require('foo');` should always just be translated to plain require.\n            if (this.tokens.matches3(types_1.TokenType._import, types_1.TokenType.name, types_1.TokenType.eq)) {\n                return this.processImportEquals();\n            }\n            if (this.tokens.matches1(types_1.TokenType._import)) {\n                this.processImport();\n                return true;\n            }\n            if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType.eq)) {\n                this.tokens.replaceToken(\"module.exports\");\n                return true;\n            }\n            if (this.tokens.matches1(types_1.TokenType._export) && !this.tokens.currentToken().isType) {\n                this.hadExport = true;\n                return this.processExport();\n            }\n            if (this.tokens.matches2(types_1.TokenType.name, types_1.TokenType.postIncDec)) {\n                // Fall through to normal identifier matching if this doesn't apply.\n                if (this.processPostIncDec()) {\n                    return true;\n                }\n            }\n            if (this.tokens.matches1(types_1.TokenType.name) || this.tokens.matches1(types_1.TokenType.jsxName)) {\n                return this.processIdentifier();\n            }\n            if (this.tokens.matches1(types_1.TokenType.eq)) {\n                return this.processAssignment();\n            }\n            if (this.tokens.matches1(types_1.TokenType.assign)) {\n                return this.processComplexAssignment();\n            }\n            if (this.tokens.matches1(types_1.TokenType.preIncDec)) {\n                return this.processPreIncDec();\n            }\n            return false;\n        }\n        processImportEquals() {\n            const importName = this.tokens.identifierNameAtIndex(this.tokens.currentIndex() + 1);\n            if (this.importProcessor.shouldAutomaticallyElideImportedName(importName)) {\n                // If this name is only used as a type, elide the whole import.\n                (0, elideImportEquals_1.default)(this.tokens);\n            }\n            else {\n                // Otherwise, switch `import` to `const`.\n                this.tokens.replaceToken(\"const\");\n            }\n            return true;\n        }\n        /**\n         * Transform this:\n         * import foo, {bar} from 'baz';\n         * into\n         * var _baz = require('baz'); var _baz2 = _interopRequireDefault(_baz);\n         *\n         * The import code was already generated in the import preprocessing step, so\n         * we just need to look it up.\n         */\n        processImport() {\n            if (this.tokens.matches2(types_1.TokenType._import, types_1.TokenType.parenL)) {\n                if (this.preserveDynamicImport) {\n                    // Bail out, only making progress for this one token.\n                    this.tokens.copyToken();\n                    return;\n                }\n                const requireWrapper = this.enableLegacyTypeScriptModuleInterop\n                    ? \"\"\n                    : `${this.helperManager.getHelperName(\"interopRequireWildcard\")}(`;\n                this.tokens.replaceToken(`Promise.resolve().then(() => ${requireWrapper}require`);\n                const contextId = this.tokens.currentToken().contextId;\n                if (contextId == null) {\n                    throw new Error(\"Expected context ID on dynamic import invocation.\");\n                }\n                this.tokens.copyToken();\n                while (!this.tokens.matchesContextIdAndLabel(types_1.TokenType.parenR, contextId)) {\n                    this.rootTransformer.processToken();\n                }\n                this.tokens.replaceToken(requireWrapper ? \")))\" : \"))\");\n                return;\n            }\n            const shouldElideImport = this.removeImportAndDetectIfShouldElide();\n            if (shouldElideImport) {\n                this.tokens.removeToken();\n            }\n            else {\n                const path = this.tokens.stringValue();\n                this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(path));\n                this.tokens.appendCode(this.importProcessor.claimImportCode(path));\n            }\n            (0, removeMaybeImportAttributes_1.removeMaybeImportAttributes)(this.tokens);\n            if (this.tokens.matches1(types_1.TokenType.semi)) {\n                this.tokens.removeToken();\n            }\n        }\n        /**\n         * Erase this import (since any CJS output would be completely different), and\n         * return true if this import is should be elided due to being a type-only\n         * import. Such imports will not be emitted at all to avoid side effects.\n         *\n         * Import elision only happens with the TypeScript or Flow transforms enabled.\n         *\n         * TODO: This function has some awkward overlap with\n         *  CJSImportProcessor.pruneTypeOnlyImports , and the two should be unified.\n         *  That function handles TypeScript implicit import name elision, and removes\n         *  an import if all typical imported names (without `type`) are removed due\n         *  to being type-only imports. This function handles Flow import removal and\n         *  properly distinguishes `import 'foo'` from `import {} from 'foo'` for TS\n         *  purposes.\n         *\n         * The position should end at the import string.\n         */\n        removeImportAndDetectIfShouldElide() {\n            this.tokens.removeInitialToken();\n            if (this.tokens.matchesContextual(keywords_1.ContextualKeyword._type) &&\n                !this.tokens.matches1AtIndex(this.tokens.currentIndex() + 1, types_1.TokenType.comma) &&\n                !this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 1, keywords_1.ContextualKeyword._from)) {\n                // This is an \"import type\" statement, so exit early.\n                this.removeRemainingImport();\n                return true;\n            }\n            if (this.tokens.matches1(types_1.TokenType.name) || this.tokens.matches1(types_1.TokenType.star)) {\n                // We have a default import or namespace import, so there must be some\n                // non-type import.\n                this.removeRemainingImport();\n                return false;\n            }\n            if (this.tokens.matches1(types_1.TokenType.string)) {\n                // This is a bare import, so we should proceed with the import.\n                return false;\n            }\n            let foundNonTypeImport = false;\n            let foundAnyNamedImport = false;\n            while (!this.tokens.matches1(types_1.TokenType.string)) {\n                // Check if any named imports are of the form \"foo\" or \"foo as bar\", with\n                // no leading \"type\".\n                if ((!foundNonTypeImport && this.tokens.matches1(types_1.TokenType.braceL)) ||\n                    this.tokens.matches1(types_1.TokenType.comma)) {\n                    this.tokens.removeToken();\n                    if (!this.tokens.matches1(types_1.TokenType.braceR)) {\n                        foundAnyNamedImport = true;\n                    }\n                    if (this.tokens.matches2(types_1.TokenType.name, types_1.TokenType.comma) ||\n                        this.tokens.matches2(types_1.TokenType.name, types_1.TokenType.braceR) ||\n                        this.tokens.matches4(types_1.TokenType.name, types_1.TokenType.name, types_1.TokenType.name, types_1.TokenType.comma) ||\n                        this.tokens.matches4(types_1.TokenType.name, types_1.TokenType.name, types_1.TokenType.name, types_1.TokenType.braceR)) {\n                        foundNonTypeImport = true;\n                    }\n                }\n                this.tokens.removeToken();\n            }\n            if (this.keepUnusedImports) {\n                return false;\n            }\n            if (this.isTypeScriptTransformEnabled) {\n                return !foundNonTypeImport;\n            }\n            else if (this.isFlowTransformEnabled) {\n                // In Flow, unlike TS, `import {} from 'foo';` preserves the import.\n                return foundAnyNamedImport && !foundNonTypeImport;\n            }\n            else {\n                return false;\n            }\n        }\n        removeRemainingImport() {\n            while (!this.tokens.matches1(types_1.TokenType.string)) {\n                this.tokens.removeToken();\n            }\n        }\n        processIdentifier() {\n            const token = this.tokens.currentToken();\n            if (token.shadowsGlobal) {\n                return false;\n            }\n            if (token.identifierRole === tokenizer_1.IdentifierRole.ObjectShorthand) {\n                return this.processObjectShorthand();\n            }\n            if (token.identifierRole !== tokenizer_1.IdentifierRole.Access) {\n                return false;\n            }\n            const replacement = this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(token));\n            if (!replacement) {\n                return false;\n            }\n            // Tolerate any number of closing parens while looking for an opening paren\n            // that indicates a function call.\n            let possibleOpenParenIndex = this.tokens.currentIndex() + 1;\n            while (possibleOpenParenIndex < this.tokens.tokens.length &&\n                this.tokens.tokens[possibleOpenParenIndex].type === types_1.TokenType.parenR) {\n                possibleOpenParenIndex++;\n            }\n            // Avoid treating imported functions as methods of their `exports` object\n            // by using `(0, f)` when the identifier is in a paren expression. Else\n            // use `Function.prototype.call` when the identifier is a guaranteed\n            // function call. When using `call`, pass undefined as the context.\n            if (this.tokens.tokens[possibleOpenParenIndex].type === types_1.TokenType.parenL) {\n                if (this.tokens.tokenAtRelativeIndex(1).type === types_1.TokenType.parenL &&\n                    this.tokens.tokenAtRelativeIndex(-1).type !== types_1.TokenType._new) {\n                    this.tokens.replaceToken(`${replacement}.call(void 0, `);\n                    // Remove the old paren.\n                    this.tokens.removeToken();\n                    // Balance out the new paren.\n                    this.rootTransformer.processBalancedCode();\n                    this.tokens.copyExpectedToken(types_1.TokenType.parenR);\n                }\n                else {\n                    // See here: http://2ality.com/2015/12/references.html\n                    this.tokens.replaceToken(`(0, ${replacement})`);\n                }\n            }\n            else {\n                this.tokens.replaceToken(replacement);\n            }\n            return true;\n        }\n        processObjectShorthand() {\n            const identifier = this.tokens.identifierName();\n            const replacement = this.importProcessor.getIdentifierReplacement(identifier);\n            if (!replacement) {\n                return false;\n            }\n            this.tokens.replaceToken(`${identifier}: ${replacement}`);\n            return true;\n        }\n        processExport() {\n            if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._enum) ||\n                this.tokens.matches3(types_1.TokenType._export, types_1.TokenType._const, types_1.TokenType._enum)) {\n                this.hadNamedExport = true;\n                // Let the TypeScript transform handle it.\n                return false;\n            }\n            if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._default)) {\n                if (this.tokens.matches3(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType._enum)) {\n                    this.hadDefaultExport = true;\n                    // Flow export default enums need some special handling, so handle them\n                    // in that tranform rather than this one.\n                    return false;\n                }\n                this.processExportDefault();\n                return true;\n            }\n            else if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType.braceL)) {\n                this.processExportBindings();\n                return true;\n            }\n            else if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType.name) &&\n                this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 1, keywords_1.ContextualKeyword._type)) {\n                // export type {a};\n                // export type {a as b};\n                // export type {a} from './b';\n                // export type * from './b';\n                // export type * as ns from './b';\n                this.tokens.removeInitialToken();\n                this.tokens.removeToken();\n                if (this.tokens.matches1(types_1.TokenType.braceL)) {\n                    while (!this.tokens.matches1(types_1.TokenType.braceR)) {\n                        this.tokens.removeToken();\n                    }\n                    this.tokens.removeToken();\n                }\n                else {\n                    // *\n                    this.tokens.removeToken();\n                    if (this.tokens.matches1(types_1.TokenType._as)) {\n                        // as\n                        this.tokens.removeToken();\n                        // ns\n                        this.tokens.removeToken();\n                    }\n                }\n                // Remove type re-export `... } from './T'`\n                if (this.tokens.matchesContextual(keywords_1.ContextualKeyword._from) &&\n                    this.tokens.matches1AtIndex(this.tokens.currentIndex() + 1, types_1.TokenType.string)) {\n                    this.tokens.removeToken();\n                    this.tokens.removeToken();\n                    (0, removeMaybeImportAttributes_1.removeMaybeImportAttributes)(this.tokens);\n                }\n                return true;\n            }\n            this.hadNamedExport = true;\n            if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._var) ||\n                this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._let) ||\n                this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._const)) {\n                this.processExportVar();\n                return true;\n            }\n            else if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._function) ||\n                // export async function\n                this.tokens.matches3(types_1.TokenType._export, types_1.TokenType.name, types_1.TokenType._function)) {\n                this.processExportFunction();\n                return true;\n            }\n            else if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._class) ||\n                this.tokens.matches3(types_1.TokenType._export, types_1.TokenType._abstract, types_1.TokenType._class) ||\n                this.tokens.matches2(types_1.TokenType._export, types_1.TokenType.at)) {\n                this.processExportClass();\n                return true;\n            }\n            else if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType.star)) {\n                this.processExportStar();\n                return true;\n            }\n            else {\n                throw new Error(\"Unrecognized export syntax.\");\n            }\n        }\n        processAssignment() {\n            const index = this.tokens.currentIndex();\n            const identifierToken = this.tokens.tokens[index - 1];\n            // If the LHS is a type identifier, this must be a declaration like `let a: b = c;`,\n            // with `b` as the identifier, so nothing needs to be done in that case.\n            if (identifierToken.isType || identifierToken.type !== types_1.TokenType.name) {\n                return false;\n            }\n            if (identifierToken.shadowsGlobal) {\n                return false;\n            }\n            if (index >= 2 && this.tokens.matches1AtIndex(index - 2, types_1.TokenType.dot)) {\n                return false;\n            }\n            if (index >= 2 && [types_1.TokenType._var, types_1.TokenType._let, types_1.TokenType._const].includes(this.tokens.tokens[index - 2].type)) {\n                // Declarations don't need an extra assignment. This doesn't avoid the\n                // assignment for comma-separated declarations, but it's still correct\n                // since the assignment is just redundant.\n                return false;\n            }\n            const assignmentSnippet = this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(identifierToken));\n            if (!assignmentSnippet) {\n                return false;\n            }\n            this.tokens.copyToken();\n            this.tokens.appendCode(` ${assignmentSnippet} =`);\n            return true;\n        }\n        /**\n         * Process something like `a += 3`, where `a` might be an exported value.\n         */\n        processComplexAssignment() {\n            const index = this.tokens.currentIndex();\n            const identifierToken = this.tokens.tokens[index - 1];\n            if (identifierToken.type !== types_1.TokenType.name) {\n                return false;\n            }\n            if (identifierToken.shadowsGlobal) {\n                return false;\n            }\n            if (index >= 2 && this.tokens.matches1AtIndex(index - 2, types_1.TokenType.dot)) {\n                return false;\n            }\n            const assignmentSnippet = this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(identifierToken));\n            if (!assignmentSnippet) {\n                return false;\n            }\n            this.tokens.appendCode(` = ${assignmentSnippet}`);\n            this.tokens.copyToken();\n            return true;\n        }\n        /**\n         * Process something like `++a`, where `a` might be an exported value.\n         */\n        processPreIncDec() {\n            const index = this.tokens.currentIndex();\n            const identifierToken = this.tokens.tokens[index + 1];\n            if (identifierToken.type !== types_1.TokenType.name) {\n                return false;\n            }\n            if (identifierToken.shadowsGlobal) {\n                return false;\n            }\n            // Ignore things like ++a.b and ++a[b] and ++a().b.\n            if (index + 2 < this.tokens.tokens.length &&\n                (this.tokens.matches1AtIndex(index + 2, types_1.TokenType.dot) ||\n                    this.tokens.matches1AtIndex(index + 2, types_1.TokenType.bracketL) ||\n                    this.tokens.matches1AtIndex(index + 2, types_1.TokenType.parenL))) {\n                return false;\n            }\n            const identifierName = this.tokens.identifierNameForToken(identifierToken);\n            const assignmentSnippet = this.importProcessor.resolveExportBinding(identifierName);\n            if (!assignmentSnippet) {\n                return false;\n            }\n            this.tokens.appendCode(`${assignmentSnippet} = `);\n            this.tokens.copyToken();\n            return true;\n        }\n        /**\n         * Process something like `a++`, where `a` might be an exported value.\n         * This starts at the `a`, not at the `++`.\n         */\n        processPostIncDec() {\n            const index = this.tokens.currentIndex();\n            const identifierToken = this.tokens.tokens[index];\n            const operatorToken = this.tokens.tokens[index + 1];\n            if (identifierToken.type !== types_1.TokenType.name) {\n                return false;\n            }\n            if (identifierToken.shadowsGlobal) {\n                return false;\n            }\n            if (index >= 1 && this.tokens.matches1AtIndex(index - 1, types_1.TokenType.dot)) {\n                return false;\n            }\n            const identifierName = this.tokens.identifierNameForToken(identifierToken);\n            const assignmentSnippet = this.importProcessor.resolveExportBinding(identifierName);\n            if (!assignmentSnippet) {\n                return false;\n            }\n            const operatorCode = this.tokens.rawCodeForToken(operatorToken);\n            // We might also replace the identifier with something like exports.x, so\n            // do that replacement here as well.\n            const base = this.importProcessor.getIdentifierReplacement(identifierName) || identifierName;\n            if (operatorCode === \"++\") {\n                this.tokens.replaceToken(`(${base} = ${assignmentSnippet} = ${base} + 1, ${base} - 1)`);\n            }\n            else if (operatorCode === \"--\") {\n                this.tokens.replaceToken(`(${base} = ${assignmentSnippet} = ${base} - 1, ${base} + 1)`);\n            }\n            else {\n                throw new Error(`Unexpected operator: ${operatorCode}`);\n            }\n            this.tokens.removeToken();\n            return true;\n        }\n        processExportDefault() {\n            let exportedRuntimeValue = true;\n            if (this.tokens.matches4(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType._function, types_1.TokenType.name) ||\n                // export default async function\n                (this.tokens.matches5(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType.name, types_1.TokenType._function, types_1.TokenType.name) &&\n                    this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 2, keywords_1.ContextualKeyword._async))) {\n                this.tokens.removeInitialToken();\n                this.tokens.removeToken();\n                // Named function export case: change it to a top-level function\n                // declaration followed by exports statement.\n                const name = this.processNamedFunction();\n                this.tokens.appendCode(` exports.default = ${name};`);\n            }\n            else if (this.tokens.matches4(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType._class, types_1.TokenType.name) ||\n                this.tokens.matches5(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType._abstract, types_1.TokenType._class, types_1.TokenType.name) ||\n                this.tokens.matches3(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType.at)) {\n                this.tokens.removeInitialToken();\n                this.tokens.removeToken();\n                this.copyDecorators();\n                if (this.tokens.matches1(types_1.TokenType._abstract)) {\n                    this.tokens.removeToken();\n                }\n                const name = this.rootTransformer.processNamedClass();\n                this.tokens.appendCode(` exports.default = ${name};`);\n                // After this point, this is a plain \"export default E\" statement.\n            }\n            else if ((0, shouldElideDefaultExport_1.default)(this.isTypeScriptTransformEnabled, this.keepUnusedImports, this.tokens, this.declarationInfo)) {\n                // If the exported value is just an identifier and should be elided by TypeScript\n                // rules, then remove it entirely. It will always have the form `export default e`,\n                // where `e` is an identifier.\n                exportedRuntimeValue = false;\n                this.tokens.removeInitialToken();\n                this.tokens.removeToken();\n                this.tokens.removeToken();\n            }\n            else if (this.reactHotLoaderTransformer) {\n                // We need to assign E to a variable. Change \"export default E\" to\n                // \"let _default; exports.default = _default = E\"\n                const defaultVarName = this.nameManager.claimFreeName(\"_default\");\n                this.tokens.replaceToken(`let ${defaultVarName}; exports.`);\n                this.tokens.copyToken();\n                this.tokens.appendCode(` = ${defaultVarName} =`);\n                this.reactHotLoaderTransformer.setExtractedDefaultExportName(defaultVarName);\n            }\n            else {\n                // Change \"export default E\" to \"exports.default = E\"\n                this.tokens.replaceToken(\"exports.\");\n                this.tokens.copyToken();\n                this.tokens.appendCode(\" =\");\n            }\n            if (exportedRuntimeValue) {\n                this.hadDefaultExport = true;\n            }\n        }\n        copyDecorators() {\n            while (this.tokens.matches1(types_1.TokenType.at)) {\n                this.tokens.copyToken();\n                if (this.tokens.matches1(types_1.TokenType.parenL)) {\n                    this.tokens.copyExpectedToken(types_1.TokenType.parenL);\n                    this.rootTransformer.processBalancedCode();\n                    this.tokens.copyExpectedToken(types_1.TokenType.parenR);\n                }\n                else {\n                    this.tokens.copyExpectedToken(types_1.TokenType.name);\n                    while (this.tokens.matches1(types_1.TokenType.dot)) {\n                        this.tokens.copyExpectedToken(types_1.TokenType.dot);\n                        this.tokens.copyExpectedToken(types_1.TokenType.name);\n                    }\n                    if (this.tokens.matches1(types_1.TokenType.parenL)) {\n                        this.tokens.copyExpectedToken(types_1.TokenType.parenL);\n                        this.rootTransformer.processBalancedCode();\n                        this.tokens.copyExpectedToken(types_1.TokenType.parenR);\n                    }\n                }\n            }\n        }\n        /**\n         * Transform a declaration like `export var`, `export let`, or `export const`.\n         */\n        processExportVar() {\n            if (this.isSimpleExportVar()) {\n                this.processSimpleExportVar();\n            }\n            else {\n                this.processComplexExportVar();\n            }\n        }\n        /**\n         * Determine if the export is of the form:\n         * export var/let/const [varName] = [expr];\n         * In other words, determine if function name inference might apply.\n         */\n        isSimpleExportVar() {\n            let tokenIndex = this.tokens.currentIndex();\n            // export\n            tokenIndex++;\n            // var/let/const\n            tokenIndex++;\n            if (!this.tokens.matches1AtIndex(tokenIndex, types_1.TokenType.name)) {\n                return false;\n            }\n            tokenIndex++;\n            while (tokenIndex < this.tokens.tokens.length && this.tokens.tokens[tokenIndex].isType) {\n                tokenIndex++;\n            }\n            if (!this.tokens.matches1AtIndex(tokenIndex, types_1.TokenType.eq)) {\n                return false;\n            }\n            return true;\n        }\n        /**\n         * Transform an `export var` declaration initializing a single variable.\n         *\n         * For example, this:\n         * export const f = () => {};\n         * becomes this:\n         * const f = () => {}; exports.f = f;\n         *\n         * The variable is unused (e.g. exports.f has the true value of the export).\n         * We need to produce an assignment of this form so that the function will\n         * have an inferred name of \"f\", which wouldn't happen in the more general\n         * case below.\n         */\n        processSimpleExportVar() {\n            // export\n            this.tokens.removeInitialToken();\n            // var/let/const\n            this.tokens.copyToken();\n            const varName = this.tokens.identifierName();\n            // x: number  ->  x\n            while (!this.tokens.matches1(types_1.TokenType.eq)) {\n                this.rootTransformer.processToken();\n            }\n            const endIndex = this.tokens.currentToken().rhsEndIndex;\n            if (endIndex == null) {\n                throw new Error(\"Expected = token with an end index.\");\n            }\n            while (this.tokens.currentIndex() < endIndex) {\n                this.rootTransformer.processToken();\n            }\n            this.tokens.appendCode(`; exports.${varName} = ${varName}`);\n        }\n        /**\n         * Transform normal declaration exports, including handling destructuring.\n         * For example, this:\n         * export const {x: [a = 2, b], c} = d;\n         * becomes this:\n         * ({x: [exports.a = 2, exports.b], c: exports.c} = d;)\n         */\n        processComplexExportVar() {\n            this.tokens.removeInitialToken();\n            this.tokens.removeToken();\n            const needsParens = this.tokens.matches1(types_1.TokenType.braceL);\n            if (needsParens) {\n                this.tokens.appendCode(\"(\");\n            }\n            let depth = 0;\n            while (true) {\n                if (this.tokens.matches1(types_1.TokenType.braceL) ||\n                    this.tokens.matches1(types_1.TokenType.dollarBraceL) ||\n                    this.tokens.matches1(types_1.TokenType.bracketL)) {\n                    depth++;\n                    this.tokens.copyToken();\n                }\n                else if (this.tokens.matches1(types_1.TokenType.braceR) || this.tokens.matches1(types_1.TokenType.bracketR)) {\n                    depth--;\n                    this.tokens.copyToken();\n                }\n                else if (depth === 0 &&\n                    !this.tokens.matches1(types_1.TokenType.name) &&\n                    !this.tokens.currentToken().isType) {\n                    break;\n                }\n                else if (this.tokens.matches1(types_1.TokenType.eq)) {\n                    // Default values might have assignments in the RHS that we want to ignore, so skip past\n                    // them.\n                    const endIndex = this.tokens.currentToken().rhsEndIndex;\n                    if (endIndex == null) {\n                        throw new Error(\"Expected = token with an end index.\");\n                    }\n                    while (this.tokens.currentIndex() < endIndex) {\n                        this.rootTransformer.processToken();\n                    }\n                }\n                else {\n                    const token = this.tokens.currentToken();\n                    if ((0, tokenizer_1.isDeclaration)(token)) {\n                        const name = this.tokens.identifierName();\n                        let replacement = this.importProcessor.getIdentifierReplacement(name);\n                        if (replacement === null) {\n                            throw new Error(`Expected a replacement for ${name} in \\`export var\\` syntax.`);\n                        }\n                        if ((0, tokenizer_1.isObjectShorthandDeclaration)(token)) {\n                            replacement = `${name}: ${replacement}`;\n                        }\n                        this.tokens.replaceToken(replacement);\n                    }\n                    else {\n                        this.rootTransformer.processToken();\n                    }\n                }\n            }\n            if (needsParens) {\n                // Seek to the end of the RHS.\n                const endIndex = this.tokens.currentToken().rhsEndIndex;\n                if (endIndex == null) {\n                    throw new Error(\"Expected = token with an end index.\");\n                }\n                while (this.tokens.currentIndex() < endIndex) {\n                    this.rootTransformer.processToken();\n                }\n                this.tokens.appendCode(\")\");\n            }\n        }\n        /**\n         * Transform this:\n         * export function foo() {}\n         * into this:\n         * function foo() {} exports.foo = foo;\n         */\n        processExportFunction() {\n            this.tokens.replaceToken(\"\");\n            const name = this.processNamedFunction();\n            this.tokens.appendCode(` exports.${name} = ${name};`);\n        }\n        /**\n         * Skip past a function with a name and return that name.\n         */\n        processNamedFunction() {\n            if (this.tokens.matches1(types_1.TokenType._function)) {\n                this.tokens.copyToken();\n            }\n            else if (this.tokens.matches2(types_1.TokenType.name, types_1.TokenType._function)) {\n                if (!this.tokens.matchesContextual(keywords_1.ContextualKeyword._async)) {\n                    throw new Error(\"Expected async keyword in function export.\");\n                }\n                this.tokens.copyToken();\n                this.tokens.copyToken();\n            }\n            if (this.tokens.matches1(types_1.TokenType.star)) {\n                this.tokens.copyToken();\n            }\n            if (!this.tokens.matches1(types_1.TokenType.name)) {\n                throw new Error(\"Expected identifier for exported function name.\");\n            }\n            const name = this.tokens.identifierName();\n            this.tokens.copyToken();\n            if (this.tokens.currentToken().isType) {\n                this.tokens.removeInitialToken();\n                while (this.tokens.currentToken().isType) {\n                    this.tokens.removeToken();\n                }\n            }\n            this.tokens.copyExpectedToken(types_1.TokenType.parenL);\n            this.rootTransformer.processBalancedCode();\n            this.tokens.copyExpectedToken(types_1.TokenType.parenR);\n            this.rootTransformer.processPossibleTypeRange();\n            this.tokens.copyExpectedToken(types_1.TokenType.braceL);\n            this.rootTransformer.processBalancedCode();\n            this.tokens.copyExpectedToken(types_1.TokenType.braceR);\n            return name;\n        }\n        /**\n         * Transform this:\n         * export class A {}\n         * into this:\n         * class A {} exports.A = A;\n         */\n        processExportClass() {\n            this.tokens.removeInitialToken();\n            this.copyDecorators();\n            if (this.tokens.matches1(types_1.TokenType._abstract)) {\n                this.tokens.removeToken();\n            }\n            const name = this.rootTransformer.processNamedClass();\n            this.tokens.appendCode(` exports.${name} = ${name};`);\n        }\n        /**\n         * Transform this:\n         * export {a, b as c};\n         * into this:\n         * exports.a = a; exports.c = b;\n         *\n         * OR\n         *\n         * Transform this:\n         * export {a, b as c} from './foo';\n         * into the pre-generated Object.defineProperty code from the ImportProcessor.\n         *\n         * For the first case, if the TypeScript transform is enabled, we need to skip\n         * exports that are only defined as types.\n         */\n        processExportBindings() {\n            this.tokens.removeInitialToken();\n            this.tokens.removeToken();\n            const isReExport = (0, isExportFrom_1.default)(this.tokens);\n            const exportStatements = [];\n            while (true) {\n                if (this.tokens.matches1(types_1.TokenType.braceR)) {\n                    this.tokens.removeToken();\n                    break;\n                }\n                const specifierInfo = (0, getImportExportSpecifierInfo_1.default)(this.tokens);\n                while (this.tokens.currentIndex() < specifierInfo.endIndex) {\n                    this.tokens.removeToken();\n                }\n                const shouldRemoveExport = specifierInfo.isType ||\n                    (!isReExport && this.shouldElideExportedIdentifier(specifierInfo.leftName));\n                if (!shouldRemoveExport) {\n                    const exportedName = specifierInfo.rightName;\n                    if (exportedName === \"default\") {\n                        this.hadDefaultExport = true;\n                    }\n                    else {\n                        this.hadNamedExport = true;\n                    }\n                    const localName = specifierInfo.leftName;\n                    const newLocalName = this.importProcessor.getIdentifierReplacement(localName);\n                    exportStatements.push(`exports.${exportedName} = ${newLocalName || localName};`);\n                }\n                if (this.tokens.matches1(types_1.TokenType.braceR)) {\n                    this.tokens.removeToken();\n                    break;\n                }\n                if (this.tokens.matches2(types_1.TokenType.comma, types_1.TokenType.braceR)) {\n                    this.tokens.removeToken();\n                    this.tokens.removeToken();\n                    break;\n                }\n                else if (this.tokens.matches1(types_1.TokenType.comma)) {\n                    this.tokens.removeToken();\n                }\n                else {\n                    throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`);\n                }\n            }\n            if (this.tokens.matchesContextual(keywords_1.ContextualKeyword._from)) {\n                // This is an export...from, so throw away the normal named export code\n                // and use the Object.defineProperty code from ImportProcessor.\n                this.tokens.removeToken();\n                const path = this.tokens.stringValue();\n                this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(path));\n                (0, removeMaybeImportAttributes_1.removeMaybeImportAttributes)(this.tokens);\n            }\n            else {\n                // This is a normal named export, so use that.\n                this.tokens.appendCode(exportStatements.join(\" \"));\n            }\n            if (this.tokens.matches1(types_1.TokenType.semi)) {\n                this.tokens.removeToken();\n            }\n        }\n        processExportStar() {\n            this.tokens.removeInitialToken();\n            while (!this.tokens.matches1(types_1.TokenType.string)) {\n                this.tokens.removeToken();\n            }\n            const path = this.tokens.stringValue();\n            this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(path));\n            (0, removeMaybeImportAttributes_1.removeMaybeImportAttributes)(this.tokens);\n            if (this.tokens.matches1(types_1.TokenType.semi)) {\n                this.tokens.removeToken();\n            }\n        }\n        shouldElideExportedIdentifier(name) {\n            return (this.isTypeScriptTransformEnabled &&\n                !this.keepUnusedImports &&\n                !this.declarationInfo.valueDeclarations.has(name));\n        }\n    }\n    exports.default = CJSImportTransformer;\n}\n","min_source":"function _(e,t,o,s,n){s();const r=e(\"tslib\"),i=e(\"bfb18d0576\"),k=e(\"99ff836c64\"),p=e(\"f0c35cbd76\"),h=r.__importDefault(e(\"a5f4e01d7b\")),a=r.__importStar(e(\"f1b0dcccab\")),T=r.__importDefault(e(\"14d4ae78a4\")),c=r.__importDefault(e(\"c3c484c8b2\")),m=e(\"f659e3ed39\"),d=r.__importDefault(e(\"11afb90ac4\")),y=r.__importDefault(e(\"a46f119f74\"));class l extends y.default{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(e,t,o,s,n,r,i,k,p,h,T,c){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=o,this.nameManager=s,this.helperManager=n,this.reactHotLoaderTransformer=r,this.enableLegacyBabel5ModuleInterop=i,this.enableLegacyTypeScriptModuleInterop=k,this.isTypeScriptTransformEnabled=p,this.isFlowTransformEnabled=h,this.preserveDynamicImport=T,this.keepUnusedImports=c,l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),this.declarationInfo=p?(0,a.default)(t):a.EMPTY_DECLARATION_INFO}getPrefixCode(){let e=\"\";return this.hadExport&&(e+='Object.defineProperty(exports, \"__esModule\", {value: true});'),e}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?\"\\nmodule.exports = exports.default;\\n\":\"\"}process(){return this.tokens.matches3(p.TokenType._import,p.TokenType.name,p.TokenType.eq)?this.processImportEquals():this.tokens.matches1(p.TokenType._import)?(this.processImport(),!0):this.tokens.matches2(p.TokenType._export,p.TokenType.eq)?(this.tokens.replaceToken(\"module.exports\"),!0):this.tokens.matches1(p.TokenType._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):!(!this.tokens.matches2(p.TokenType.name,p.TokenType.postIncDec)||!this.processPostIncDec())||(this.tokens.matches1(p.TokenType.name)||this.tokens.matches1(p.TokenType.jsxName)?this.processIdentifier():this.tokens.matches1(p.TokenType.eq)?this.processAssignment():this.tokens.matches1(p.TokenType.assign)?this.processComplexAssignment():!!this.tokens.matches1(p.TokenType.preIncDec)&&this.processPreIncDec())}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(e)?(0,h.default)(this.tokens):this.tokens.replaceToken(\"const\"),!0}processImport(){if(this.tokens.matches2(p.TokenType._import,p.TokenType.parenL)){if(this.preserveDynamicImport)return void this.tokens.copyToken();const e=this.enableLegacyTypeScriptModuleInterop?\"\":`${this.helperManager.getHelperName(\"interopRequireWildcard\")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${e}require`);const t=this.tokens.currentToken().contextId;if(null==t)throw new Error(\"Expected context ID on dynamic import invocation.\");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(p.TokenType.parenR,t);)this.rootTransformer.processToken();return void this.tokens.replaceToken(e?\")))\":\"))\")}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),this.tokens.appendCode(this.importProcessor.claimImportCode(e))}(0,m.removeMaybeImportAttributes)(this.tokens),this.tokens.matches1(p.TokenType.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(k.ContextualKeyword._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,p.TokenType.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,k.ContextualKeyword._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(p.TokenType.name)||this.tokens.matches1(p.TokenType.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(p.TokenType.string))return!1;let e=!1,t=!1;for(;!this.tokens.matches1(p.TokenType.string);)(!e&&this.tokens.matches1(p.TokenType.braceL)||this.tokens.matches1(p.TokenType.comma))&&(this.tokens.removeToken(),this.tokens.matches1(p.TokenType.braceR)||(t=!0),(this.tokens.matches2(p.TokenType.name,p.TokenType.comma)||this.tokens.matches2(p.TokenType.name,p.TokenType.braceR)||this.tokens.matches4(p.TokenType.name,p.TokenType.name,p.TokenType.name,p.TokenType.comma)||this.tokens.matches4(p.TokenType.name,p.TokenType.name,p.TokenType.name,p.TokenType.braceR))&&(e=!0)),this.tokens.removeToken();return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!e:!!this.isFlowTransformEnabled&&(t&&!e))}removeRemainingImport(){for(;!this.tokens.matches1(p.TokenType.string);)this.tokens.removeToken()}processIdentifier(){const e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===i.IdentifierRole.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==i.IdentifierRole.Access)return!1;const t=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!t)return!1;let o=this.tokens.currentIndex()+1;for(;o<this.tokens.tokens.length&&this.tokens.tokens[o].type===p.TokenType.parenR;)o++;return this.tokens.tokens[o].type===p.TokenType.parenL?this.tokens.tokenAtRelativeIndex(1).type===p.TokenType.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==p.TokenType._new?(this.tokens.replaceToken(`${t}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.TokenType.parenR)):this.tokens.replaceToken(`(0, ${t})`):this.tokens.replaceToken(t),!0}processObjectShorthand(){const e=this.tokens.identifierName(),t=this.importProcessor.getIdentifierReplacement(e);return!!t&&(this.tokens.replaceToken(`${e}: ${t}`),!0)}processExport(){if(this.tokens.matches2(p.TokenType._export,p.TokenType._enum)||this.tokens.matches3(p.TokenType._export,p.TokenType._const,p.TokenType._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(p.TokenType._export,p.TokenType._default))return this.tokens.matches3(p.TokenType._export,p.TokenType._default,p.TokenType._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(p.TokenType._export,p.TokenType.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(p.TokenType._export,p.TokenType.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,k.ContextualKeyword._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(p.TokenType.braceL)){for(;!this.tokens.matches1(p.TokenType.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(p.TokenType._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(k.ContextualKeyword._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,p.TokenType.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),(0,m.removeMaybeImportAttributes)(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(p.TokenType._export,p.TokenType._var)||this.tokens.matches2(p.TokenType._export,p.TokenType._let)||this.tokens.matches2(p.TokenType._export,p.TokenType._const))return this.processExportVar(),!0;if(this.tokens.matches2(p.TokenType._export,p.TokenType._function)||this.tokens.matches3(p.TokenType._export,p.TokenType.name,p.TokenType._function))return this.processExportFunction(),!0;if(this.tokens.matches2(p.TokenType._export,p.TokenType._class)||this.tokens.matches3(p.TokenType._export,p.TokenType._abstract,p.TokenType._class)||this.tokens.matches2(p.TokenType._export,p.TokenType.at))return this.processExportClass(),!0;if(this.tokens.matches2(p.TokenType._export,p.TokenType.star))return this.processExportStar(),!0;throw new Error(\"Unrecognized export syntax.\")}processAssignment(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.isType||t.type!==p.TokenType.name)return!1;if(t.shadowsGlobal)return!1;if(e>=2&&this.tokens.matches1AtIndex(e-2,p.TokenType.dot))return!1;if(e>=2&&[p.TokenType._var,p.TokenType._let,p.TokenType._const].includes(this.tokens.tokens[e-2].type))return!1;const o=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!o&&(this.tokens.copyToken(),this.tokens.appendCode(` ${o} =`),!0)}processComplexAssignment(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.type!==p.TokenType.name)return!1;if(t.shadowsGlobal)return!1;if(e>=2&&this.tokens.matches1AtIndex(e-2,p.TokenType.dot))return!1;const o=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!o&&(this.tokens.appendCode(` = ${o}`),this.tokens.copyToken(),!0)}processPreIncDec(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e+1];if(t.type!==p.TokenType.name)return!1;if(t.shadowsGlobal)return!1;if(e+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(e+2,p.TokenType.dot)||this.tokens.matches1AtIndex(e+2,p.TokenType.bracketL)||this.tokens.matches1AtIndex(e+2,p.TokenType.parenL)))return!1;const o=this.tokens.identifierNameForToken(t),s=this.importProcessor.resolveExportBinding(o);return!!s&&(this.tokens.appendCode(`${s} = `),this.tokens.copyToken(),!0)}processPostIncDec(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e],o=this.tokens.tokens[e+1];if(t.type!==p.TokenType.name)return!1;if(t.shadowsGlobal)return!1;if(e>=1&&this.tokens.matches1AtIndex(e-1,p.TokenType.dot))return!1;const s=this.tokens.identifierNameForToken(t),n=this.importProcessor.resolveExportBinding(s);if(!n)return!1;const r=this.tokens.rawCodeForToken(o),i=this.importProcessor.getIdentifierReplacement(s)||s;if(\"++\"===r)this.tokens.replaceToken(`(${i} = ${n} = ${i} + 1, ${i} - 1)`);else{if(\"--\"!==r)throw new Error(`Unexpected operator: ${r}`);this.tokens.replaceToken(`(${i} = ${n} = ${i} - 1, ${i} + 1)`)}return this.tokens.removeToken(),!0}processExportDefault(){let e=!0;if(this.tokens.matches4(p.TokenType._export,p.TokenType._default,p.TokenType._function,p.TokenType.name)||this.tokens.matches5(p.TokenType._export,p.TokenType._default,p.TokenType.name,p.TokenType._function,p.TokenType.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,k.ContextualKeyword._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${e};`)}else if(this.tokens.matches4(p.TokenType._export,p.TokenType._default,p.TokenType._class,p.TokenType.name)||this.tokens.matches5(p.TokenType._export,p.TokenType._default,p.TokenType._abstract,p.TokenType._class,p.TokenType.name)||this.tokens.matches3(p.TokenType._export,p.TokenType._default,p.TokenType.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(p.TokenType._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${e};`)}else if((0,d.default)(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))e=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const e=this.nameManager.claimFreeName(\"_default\");this.tokens.replaceToken(`let ${e}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e)}else this.tokens.replaceToken(\"exports.\"),this.tokens.copyToken(),this.tokens.appendCode(\" =\");e&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(p.TokenType.at);)if(this.tokens.copyToken(),this.tokens.matches1(p.TokenType.parenL))this.tokens.copyExpectedToken(p.TokenType.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.TokenType.parenR);else{for(this.tokens.copyExpectedToken(p.TokenType.name);this.tokens.matches1(p.TokenType.dot);)this.tokens.copyExpectedToken(p.TokenType.dot),this.tokens.copyExpectedToken(p.TokenType.name);this.tokens.matches1(p.TokenType.parenL)&&(this.tokens.copyExpectedToken(p.TokenType.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.TokenType.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,p.TokenType.name))return!1;for(e++;e<this.tokens.tokens.length&&this.tokens.tokens[e].isType;)e++;return!!this.tokens.matches1AtIndex(e,p.TokenType.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const e=this.tokens.identifierName();for(;!this.tokens.matches1(p.TokenType.eq);)this.rootTransformer.processToken();const t=this.tokens.currentToken().rhsEndIndex;if(null==t)throw new Error(\"Expected = token with an end index.\");for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${e} = ${e}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.matches1(p.TokenType.braceL);e&&this.tokens.appendCode(\"(\");let t=0;for(;;)if(this.tokens.matches1(p.TokenType.braceL)||this.tokens.matches1(p.TokenType.dollarBraceL)||this.tokens.matches1(p.TokenType.bracketL))t++,this.tokens.copyToken();else if(this.tokens.matches1(p.TokenType.braceR)||this.tokens.matches1(p.TokenType.bracketR))t--,this.tokens.copyToken();else{if(0===t&&!this.tokens.matches1(p.TokenType.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(p.TokenType.eq)){const e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw new Error(\"Expected = token with an end index.\");for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}else{const e=this.tokens.currentToken();if((0,i.isDeclaration)(e)){const t=this.tokens.identifierName();let o=this.importProcessor.getIdentifierReplacement(t);if(null===o)throw new Error(`Expected a replacement for ${t} in \\`export var\\` syntax.`);(0,i.isObjectShorthandDeclaration)(e)&&(o=`${t}: ${o}`),this.tokens.replaceToken(o)}else this.rootTransformer.processToken()}}if(e){const e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw new Error(\"Expected = token with an end index.\");for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken();this.tokens.appendCode(\")\")}}processExportFunction(){this.tokens.replaceToken(\"\");const e=this.processNamedFunction();this.tokens.appendCode(` exports.${e} = ${e};`)}processNamedFunction(){if(this.tokens.matches1(p.TokenType._function))this.tokens.copyToken();else if(this.tokens.matches2(p.TokenType.name,p.TokenType._function)){if(!this.tokens.matchesContextual(k.ContextualKeyword._async))throw new Error(\"Expected async keyword in function export.\");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(p.TokenType.star)&&this.tokens.copyToken(),!this.tokens.matches1(p.TokenType.name))throw new Error(\"Expected identifier for exported function name.\");const e=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(p.TokenType.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.TokenType.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(p.TokenType.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.TokenType.braceR),e}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(p.TokenType._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${e} = ${e};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=(0,c.default)(this.tokens),t=[];for(;;){if(this.tokens.matches1(p.TokenType.braceR)){this.tokens.removeToken();break}const o=(0,T.default)(this.tokens);for(;this.tokens.currentIndex()<o.endIndex;)this.tokens.removeToken();if(!(o.isType||!e&&this.shouldElideExportedIdentifier(o.leftName))){const e=o.rightName;\"default\"===e?this.hadDefaultExport=!0:this.hadNamedExport=!0;const s=o.leftName,n=this.importProcessor.getIdentifierReplacement(s);t.push(`exports.${e} = ${n||s};`)}if(this.tokens.matches1(p.TokenType.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(p.TokenType.comma,p.TokenType.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}if(!this.tokens.matches1(p.TokenType.comma))throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`);this.tokens.removeToken()}if(this.tokens.matchesContextual(k.ContextualKeyword._from)){this.tokens.removeToken();const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),(0,m.removeMaybeImportAttributes)(this.tokens)}else this.tokens.appendCode(t.join(\" \"));this.tokens.matches1(p.TokenType.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(p.TokenType.string);)this.tokens.removeToken();const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),(0,m.removeMaybeImportAttributes)(this.tokens),this.tokens.matches1(p.TokenType.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(e)}}o.default=l}\n//# sourceMappingURL=CJSImportTransformer.min.js.map","min_map":"{\"version\":3,\"file\":\"CJSImportTransformer.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tslib_1\",\"tokenizer_1\",\"keywords_1\",\"types_1\",\"elideImportEquals_1\",\"__importDefault\",\"getDeclarationInfo_1\",\"__importStar\",\"getImportExportSpecifierInfo_1\",\"isExportFrom_1\",\"removeMaybeImportAttributes_1\",\"shouldElideDefaultExport_1\",\"Transformer_1\",\"CJSImportTransformer\",\"default\",\"__init\",\"this\",\"hadExport\",\"__init2\",\"hadNamedExport\",\"__init3\",\"hadDefaultExport\",\"constructor\",\"rootTransformer\",\"tokens\",\"importProcessor\",\"nameManager\",\"helperManager\",\"reactHotLoaderTransformer\",\"enableLegacyBabel5ModuleInterop\",\"enableLegacyTypeScriptModuleInterop\",\"isTypeScriptTransformEnabled\",\"isFlowTransformEnabled\",\"preserveDynamicImport\",\"keepUnusedImports\",\"super\",\"prototype\",\"call\",\"declarationInfo\",\"EMPTY_DECLARATION_INFO\",\"getPrefixCode\",\"prefix\",\"getSuffixCode\",\"process\",\"matches3\",\"TokenType\",\"_import\",\"name\",\"eq\",\"processImportEquals\",\"matches1\",\"processImport\",\"matches2\",\"_export\",\"replaceToken\",\"currentToken\",\"isType\",\"processExport\",\"postIncDec\",\"processPostIncDec\",\"jsxName\",\"processIdentifier\",\"processAssignment\",\"assign\",\"processComplexAssignment\",\"preIncDec\",\"processPreIncDec\",\"importName\",\"identifierNameAtIndex\",\"currentIndex\",\"shouldAutomaticallyElideImportedName\",\"parenL\",\"copyToken\",\"requireWrapper\",\"getHelperName\",\"contextId\",\"Error\",\"matchesContextIdAndLabel\",\"parenR\",\"processToken\",\"removeImportAndDetectIfShouldElide\",\"removeToken\",\"path\",\"stringValue\",\"replaceTokenTrimmingLeftWhitespace\",\"claimImportCode\",\"appendCode\",\"removeMaybeImportAttributes\",\"semi\",\"removeInitialToken\",\"matchesContextual\",\"ContextualKeyword\",\"_type\",\"matches1AtIndex\",\"comma\",\"matchesContextualAtIndex\",\"_from\",\"removeRemainingImport\",\"star\",\"string\",\"foundNonTypeImport\",\"foundAnyNamedImport\",\"braceL\",\"braceR\",\"matches4\",\"token\",\"shadowsGlobal\",\"identifierRole\",\"IdentifierRole\",\"ObjectShorthand\",\"processObjectShorthand\",\"Access\",\"replacement\",\"getIdentifierReplacement\",\"identifierNameForToken\",\"possibleOpenParenIndex\",\"length\",\"type\",\"tokenAtRelativeIndex\",\"_new\",\"processBalancedCode\",\"copyExpectedToken\",\"identifier\",\"identifierName\",\"_enum\",\"_const\",\"_default\",\"processExportDefault\",\"processExportBindings\",\"_as\",\"_var\",\"_let\",\"processExportVar\",\"_function\",\"processExportFunction\",\"_class\",\"_abstract\",\"at\",\"processExportClass\",\"processExportStar\",\"index\",\"identifierToken\",\"dot\",\"includes\",\"assignmentSnippet\",\"resolveExportBinding\",\"bracketL\",\"operatorToken\",\"operatorCode\",\"rawCodeForToken\",\"base\",\"exportedRuntimeValue\",\"matches5\",\"_async\",\"processNamedFunction\",\"copyDecorators\",\"processNamedClass\",\"defaultVarName\",\"claimFreeName\",\"setExtractedDefaultExportName\",\"isSimpleExportVar\",\"processSimpleExportVar\",\"processComplexExportVar\",\"tokenIndex\",\"varName\",\"endIndex\",\"rhsEndIndex\",\"needsParens\",\"depth\",\"dollarBraceL\",\"bracketR\",\"isDeclaration\",\"isObjectShorthandDeclaration\",\"processPossibleTypeRange\",\"isReExport\",\"exportStatements\",\"specifierInfo\",\"shouldElideExportedIdentifier\",\"leftName\",\"exportedName\",\"rightName\",\"localName\",\"newLocalName\",\"push\",\"JSON\",\"stringify\",\"join\",\"valueDeclarations\",\"has\"],\"sources\":[\"0\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0C,UAAUsD,SAC3CnF,KAAKQ,OAAOyD,cAEhB,MAAMC,EAAOlE,KAAKQ,OAAO2D,cACzBnE,KAAKQ,OAAO4D,mCAAmCpE,KAAKS,gBAAgB4D,gBAAgBH,KACpF,EAAIxE,EAA8B6E,6BAA6BvE,KAAKQ,QAChER,KAAKQ,OAAO0B,SAAS/C,EAAQ0C,UAAU2C,OACvCxE,KAAKQ,OAAOyD,aAEpB,CACA,6BAAAgG,CAA8BlI,GAC1B,OAAQ/B,KAAKe,+BACRf,KAAKkB,oBACLlB,KAAKsB,gBAAgBqJ,kBAAkBC,IAAI7I,EACpD,EAEJlD,EAAQiB,QAAUD,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/elideImportEquals.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/util/elideImportEquals.js","resolution":"ESM","id":"a5f4e01d7b","hash":"a5f4e01d7bb660d37a6429dc172a968eaaec02cfaf3ed18cf903a72226c67b37","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = elideImportEquals;\nconst types_1 = require(\"../parser/tokenizer/types\");\nfunction elideImportEquals(tokens) {\n    // import\n    tokens.removeInitialToken();\n    // name\n    tokens.removeToken();\n    // =\n    tokens.removeToken();\n    // name or require\n    tokens.removeToken();\n    // Handle either `import A = require('A')` or `import A = B.C.D`.\n    if (tokens.matches1(types_1.TokenType.parenL)) {\n        // (\n        tokens.removeToken();\n        // path string\n        tokens.removeToken();\n        // )\n        tokens.removeToken();\n    }\n    else {\n        while (tokens.matches1(types_1.TokenType.dot)) {\n            // .\n            tokens.removeToken();\n            // name\n            tokens.removeToken();\n        }\n    }\n}\n","type":"js","dependency_paths":[["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"]],"dependency_map":[],"exported":[{"type":"named","name":"elideImportEquals"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/util/elideImportEquals.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = elideImportEquals;\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    function elideImportEquals(tokens) {\n        // import\n        tokens.removeInitialToken();\n        // name\n        tokens.removeToken();\n        // =\n        tokens.removeToken();\n        // name or require\n        tokens.removeToken();\n        // Handle either `import A = require('A')` or `import A = B.C.D`.\n        if (tokens.matches1(types_1.TokenType.parenL)) {\n            // (\n            tokens.removeToken();\n            // path string\n            tokens.removeToken();\n            // )\n            tokens.removeToken();\n        }\n        else {\n            while (tokens.matches1(types_1.TokenType.dot)) {\n                // .\n                tokens.removeToken();\n                // name\n                tokens.removeToken();\n            }\n        }\n    }\n}\n","min_source":"function _(e,o,n,T,k){T(),n.default=function(e){if(e.removeInitialToken(),e.removeToken(),e.removeToken(),e.removeToken(),e.matches1(m.TokenType.parenL))e.removeToken(),e.removeToken(),e.removeToken();else for(;e.matches1(m.TokenType.dot);)e.removeToken(),e.removeToken()};const m=e(\"f0c35cbd76\")}\n//# sourceMappingURL=elideImportEquals.min.js.map","min_map":"{\"version\":3,\"file\":\"elideImportEquals.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"tokens\",\"removeInitialToken\",\"removeToken\",\"matches1\",\"types_1\",\"TokenType\",\"parenL\",\"dot\"],\"sources\":[\"0\"],\"mappings\":\"AAAiD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC9FD,IACAD,EAAQG,QAER,SAA2BC,GAUvB,GARAA,EAAOC,qBAEPD,EAAOE,cAEPF,EAAOE,cAEPF,EAAOE,cAEHF,EAAOG,SAASC,EAAQC,UAAUC,QAElCN,EAAOE,cAEPF,EAAOE,cAEPF,EAAOE,mBAGP,KAAOF,EAAOG,SAASC,EAAQC,UAAUE,MAErCP,EAAOE,cAEPF,EAAOE,aAGnB,EA3BA,MAAME,EAAUV,EAAQ,aA4B5B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getDeclarationInfo.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/util/getDeclarationInfo.js","resolution":"ESM","id":"f1b0dcccab","hash":"f1b0dcccab7fb76bcf976ac31ccff8800e4fda32efd0fe80775207948296f351","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.EMPTY_DECLARATION_INFO = void 0;\nexports.default = getDeclarationInfo;\nconst tokenizer_1 = require(\"../parser/tokenizer\");\nconst types_1 = require(\"../parser/tokenizer/types\");\nexports.EMPTY_DECLARATION_INFO = {\n    typeDeclarations: new Set(),\n    valueDeclarations: new Set(),\n};\n/**\n * Get all top-level identifiers that should be preserved when exported in TypeScript.\n *\n * Examples:\n * - If an identifier is declared as `const x`, then `export {x}` should be preserved.\n * - If it's declared as `type x`, then `export {x}` should be removed.\n * - If it's declared as both `const x` and `type x`, then the export should be preserved.\n * - Classes and enums should be preserved (even though they also introduce types).\n * - Imported identifiers should be preserved since we don't have enough information to\n *   rule them out. --isolatedModules disallows re-exports, which catches errors here.\n */\nfunction getDeclarationInfo(tokens) {\n    const typeDeclarations = new Set();\n    const valueDeclarations = new Set();\n    for (let i = 0; i < tokens.tokens.length; i++) {\n        const token = tokens.tokens[i];\n        if (token.type === types_1.TokenType.name && (0, tokenizer_1.isTopLevelDeclaration)(token)) {\n            if (token.isType) {\n                typeDeclarations.add(tokens.identifierNameForToken(token));\n            }\n            else {\n                valueDeclarations.add(tokens.identifierNameForToken(token));\n            }\n        }\n    }\n    return { typeDeclarations, valueDeclarations };\n}\n","type":"js","dependency_paths":[["../parser/tokenizer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"]],"dependency_map":[],"exported":[{"type":"named","name":"getDeclarationInfo"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/util/getDeclarationInfo.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = getDeclarationInfo;\n    const tokenizer_1 = require(\"bfb18d0576\") /* ../parser/tokenizer */;\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    exports.EMPTY_DECLARATION_INFO = {\n        typeDeclarations: new Set(),\n        valueDeclarations: new Set(),\n    };\n    /**\n     * Get all top-level identifiers that should be preserved when exported in TypeScript.\n     *\n     * Examples:\n     * - If an identifier is declared as `const x`, then `export {x}` should be preserved.\n     * - If it's declared as `type x`, then `export {x}` should be removed.\n     * - If it's declared as both `const x` and `type x`, then the export should be preserved.\n     * - Classes and enums should be preserved (even though they also introduce types).\n     * - Imported identifiers should be preserved since we don't have enough information to\n     *   rule them out. --isolatedModules disallows re-exports, which catches errors here.\n     */\n    function getDeclarationInfo(tokens) {\n        const typeDeclarations = new Set();\n        const valueDeclarations = new Set();\n        for (let i = 0; i < tokens.tokens.length; i++) {\n            const token = tokens.tokens[i];\n            if (token.type === types_1.TokenType.name && (0, tokenizer_1.isTopLevelDeclaration)(token)) {\n                if (token.isType) {\n                    typeDeclarations.add(tokens.identifierNameForToken(token));\n                }\n                else {\n                    valueDeclarations.add(tokens.identifierNameForToken(token));\n                }\n            }\n        }\n        return { typeDeclarations, valueDeclarations };\n    }\n}\n","min_source":"function _(e,n,t,o,a){o(),t.default=function(e){const n=new Set,t=new Set;for(let o=0;o<e.tokens.length;o++){const a=e.tokens[o];a.type===c.TokenType.name&&(0,i.isTopLevelDeclaration)(a)&&(a.isType?n.add(e.identifierNameForToken(a)):t.add(e.identifierNameForToken(a)))}return{typeDeclarations:n,valueDeclarations:t}};const i=e(\"bfb18d0576\"),c=e(\"f0c35cbd76\");t.EMPTY_DECLARATION_INFO={typeDeclarations:new Set,valueDeclarations:new Set}}\n//# sourceMappingURL=getDeclarationInfo.min.js.map","min_map":"{\"version\":3,\"file\":\"getDeclarationInfo.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"tokens\",\"typeDeclarations\",\"Set\",\"valueDeclarations\",\"i\",\"length\",\"token\",\"type\",\"types_1\",\"TokenType\",\"name\",\"tokenizer_1\",\"isTopLevelDeclaration\",\"isType\",\"add\",\"identifierNameForToken\",\"EMPTY_DECLARATION_INFO\"],\"sources\":[\"0\"],\"mappings\":\"AAAkD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC/FD,IACAD,EAAQG,QAkBR,SAA4BC,GACxB,MAAMC,EAAmB,IAAIC,IACvBC,EAAoB,IAAID,IAC9B,IAAK,IAAIE,EAAI,EAAGA,EAAIJ,EAAOA,OAAOK,OAAQD,IAAK,CAC3C,MAAME,EAAQN,EAAOA,OAAOI,GACxBE,EAAMC,OAASC,EAAQC,UAAUC,OAAQ,EAAIC,EAAYC,uBAAuBN,KAC5EA,EAAMO,OACNZ,EAAiBa,IAAId,EAAOe,uBAAuBT,IAGnDH,EAAkBW,IAAId,EAAOe,uBAAuBT,IAGhE,CACA,MAAO,CAAEL,mBAAkBE,oBAC/B,EAhCA,MAAMQ,EAAcjB,EAAQ,cACtBc,EAAUd,EAAQ,cACxBE,EAAQoB,uBAAyB,CAC7Bf,iBAAkB,IAAIC,IACtBC,kBAAmB,IAAID,IA6B/B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/isExportFrom.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/util/isExportFrom.js","resolution":"ESM","id":"c3c484c8b2","hash":"c3c484c8b26ef2b543a7cc1c4af4ea332a47f5d50b48648ca031d850a14b3af6","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = isExportFrom;\nconst keywords_1 = require(\"../parser/tokenizer/keywords\");\nconst types_1 = require(\"../parser/tokenizer/types\");\n/**\n * Starting at `export {`, look ahead and return `true` if this is an\n * `export {...} from` statement and `false` if this is a plain multi-export.\n */\nfunction isExportFrom(tokens) {\n    let closeBraceIndex = tokens.currentIndex();\n    while (!tokens.matches1AtIndex(closeBraceIndex, types_1.TokenType.braceR)) {\n        closeBraceIndex++;\n    }\n    return (tokens.matchesContextualAtIndex(closeBraceIndex + 1, keywords_1.ContextualKeyword._from) &&\n        tokens.matches1AtIndex(closeBraceIndex + 2, types_1.TokenType.string));\n}\n","type":"js","dependency_paths":[["../parser/tokenizer/keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"],["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"]],"dependency_map":[],"exported":[{"type":"named","name":"isExportFrom"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/util/isExportFrom.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = isExportFrom;\n    const keywords_1 = require(\"99ff836c64\") /* ../parser/tokenizer/keywords */;\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    /**\n     * Starting at `export {`, look ahead and return `true` if this is an\n     * `export {...} from` statement and `false` if this is a plain multi-export.\n     */\n    function isExportFrom(tokens) {\n        let closeBraceIndex = tokens.currentIndex();\n        while (!tokens.matches1AtIndex(closeBraceIndex, types_1.TokenType.braceR)) {\n            closeBraceIndex++;\n        }\n        return (tokens.matchesContextualAtIndex(closeBraceIndex + 1, keywords_1.ContextualKeyword._from) &&\n            tokens.matches1AtIndex(closeBraceIndex + 2, types_1.TokenType.string));\n    }\n}\n","min_source":"function _(e,t,n,c,o){c(),n.default=function(e){let t=e.currentIndex();for(;!e.matches1AtIndex(t,f.TokenType.braceR);)t++;return e.matchesContextualAtIndex(t+1,r.ContextualKeyword._from)&&e.matches1AtIndex(t+2,f.TokenType.string)};const r=e(\"99ff836c64\"),f=e(\"f0c35cbd76\")}\n//# sourceMappingURL=isExportFrom.min.js.map","min_map":"{\"version\":3,\"file\":\"isExportFrom.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"tokens\",\"closeBraceIndex\",\"currentIndex\",\"matches1AtIndex\",\"types_1\",\"TokenType\",\"braceR\",\"matchesContextualAtIndex\",\"keywords_1\",\"ContextualKeyword\",\"_from\",\"string\"],\"sources\":[\"0\"],\"mappings\":\"AAA4C,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzFD,IACAD,EAAQG,QAOR,SAAsBC,GAClB,IAAIC,EAAkBD,EAAOE,eAC7B,MAAQF,EAAOG,gBAAgBF,EAAiBG,EAAQC,UAAUC,SAC9DL,IAEJ,OAAQD,EAAOO,yBAAyBN,EAAkB,EAAGO,EAAWC,kBAAkBC,QACtFV,EAAOG,gBAAgBF,EAAkB,EAAGG,EAAQC,UAAUM,OACtE,EAbA,MAAMH,EAAad,EAAQ,cACrBU,EAAUV,EAAQ,aAa5B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/removeMaybeImportAttributes.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/util/removeMaybeImportAttributes.js","resolution":"ESM","id":"f659e3ed39","hash":"f659e3ed399d0056e7b5a65ed8b3088e15b8a6dad1b84ab8320bb6d08cba8760","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.removeMaybeImportAttributes = removeMaybeImportAttributes;\nconst keywords_1 = require(\"../parser/tokenizer/keywords\");\nconst types_1 = require(\"../parser/tokenizer/types\");\n/**\n * Starting at a potential `with` or (legacy) `assert` token, remove the import\n * attributes if they exist.\n */\nfunction removeMaybeImportAttributes(tokens) {\n    if (tokens.matches2(types_1.TokenType._with, types_1.TokenType.braceL) ||\n        (tokens.matches2(types_1.TokenType.name, types_1.TokenType.braceL) && tokens.matchesContextual(keywords_1.ContextualKeyword._assert))) {\n        // assert\n        tokens.removeToken();\n        // {\n        tokens.removeToken();\n        tokens.removeBalancedCode();\n        // }\n        tokens.removeToken();\n    }\n}\n","type":"js","dependency_paths":[["../parser/tokenizer/keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"],["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"]],"dependency_map":[],"exported":[{"type":"named","name":"removeMaybeImportAttributes"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/util/removeMaybeImportAttributes.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.removeMaybeImportAttributes = removeMaybeImportAttributes;\n    const keywords_1 = require(\"99ff836c64\") /* ../parser/tokenizer/keywords */;\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    /**\n     * Starting at a potential `with` or (legacy) `assert` token, remove the import\n     * attributes if they exist.\n     */\n    function removeMaybeImportAttributes(tokens) {\n        if (tokens.matches2(types_1.TokenType._with, types_1.TokenType.braceL) ||\n            (tokens.matches2(types_1.TokenType.name, types_1.TokenType.braceL) && tokens.matchesContextual(keywords_1.ContextualKeyword._assert))) {\n            // assert\n            tokens.removeToken();\n            // {\n            tokens.removeToken();\n            tokens.removeBalancedCode();\n            // }\n            tokens.removeToken();\n        }\n    }\n}\n","min_source":"function _(e,o,n,t,a){t(),n.removeMaybeImportAttributes=function(e){(e.matches2(r.TokenType._with,r.TokenType.braceL)||e.matches2(r.TokenType.name,r.TokenType.braceL)&&e.matchesContextual(c.ContextualKeyword._assert))&&(e.removeToken(),e.removeToken(),e.removeBalancedCode(),e.removeToken())};const c=e(\"99ff836c64\"),r=e(\"f0c35cbd76\")}\n//# sourceMappingURL=removeMaybeImportAttributes.min.js.map","min_map":"{\"version\":3,\"file\":\"removeMaybeImportAttributes.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"removeMaybeImportAttributes\",\"tokens\",\"matches2\",\"types_1\",\"TokenType\",\"_with\",\"braceL\",\"name\",\"matchesContextual\",\"keywords_1\",\"ContextualKeyword\",\"_assert\",\"removeToken\",\"removeBalancedCode\"],\"sources\":[\"0\"],\"mappings\":\"AAA2D,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACxGD,IACAD,EAAQG,4BAOR,SAAqCC,IAC7BA,EAAOC,SAASC,EAAQC,UAAUC,MAAOF,EAAQC,UAAUE,SAC1DL,EAAOC,SAASC,EAAQC,UAAUG,KAAMJ,EAAQC,UAAUE,SAAWL,EAAOO,kBAAkBC,EAAWC,kBAAkBC,YAE5HV,EAAOW,cAEPX,EAAOW,cACPX,EAAOY,qBAEPZ,EAAOW,cAEf,EAjBA,MAAMH,EAAad,EAAQ,cACrBQ,EAAUR,EAAQ,aAiB5B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/shouldElideDefaultExport.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/util/shouldElideDefaultExport.js","resolution":"ESM","id":"11afb90ac4","hash":"11afb90ac4e0b1b149576afd6dac9d15fffffe4f5ce13625c08c9a6ba06bc777","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = shouldElideDefaultExport;\nconst types_1 = require(\"../parser/tokenizer/types\");\n/**\n * Common method sharing code between CJS and ESM cases, since they're the same here.\n */\nfunction shouldElideDefaultExport(isTypeScriptTransformEnabled, keepUnusedImports, tokens, declarationInfo) {\n    if (!isTypeScriptTransformEnabled || keepUnusedImports) {\n        return false;\n    }\n    const exportToken = tokens.currentToken();\n    if (exportToken.rhsEndIndex == null) {\n        throw new Error(\"Expected non-null rhsEndIndex on export token.\");\n    }\n    // The export must be of the form `export default a` or `export default a;`.\n    const numTokens = exportToken.rhsEndIndex - tokens.currentIndex();\n    if (numTokens !== 3 &&\n        !(numTokens === 4 && tokens.matches1AtIndex(exportToken.rhsEndIndex - 1, types_1.TokenType.semi))) {\n        return false;\n    }\n    const identifierToken = tokens.tokenAtRelativeIndex(2);\n    if (identifierToken.type !== types_1.TokenType.name) {\n        return false;\n    }\n    const exportedName = tokens.identifierNameForToken(identifierToken);\n    return (declarationInfo.typeDeclarations.has(exportedName) &&\n        !declarationInfo.valueDeclarations.has(exportedName));\n}\n","type":"js","dependency_paths":[["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"]],"dependency_map":[],"exported":[{"type":"named","name":"shouldElideDefaultExport"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/util/shouldElideDefaultExport.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = shouldElideDefaultExport;\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    /**\n     * Common method sharing code between CJS and ESM cases, since they're the same here.\n     */\n    function shouldElideDefaultExport(isTypeScriptTransformEnabled, keepUnusedImports, tokens, declarationInfo) {\n        if (!isTypeScriptTransformEnabled || keepUnusedImports) {\n            return false;\n        }\n        const exportToken = tokens.currentToken();\n        if (exportToken.rhsEndIndex == null) {\n            throw new Error(\"Expected non-null rhsEndIndex on export token.\");\n        }\n        // The export must be of the form `export default a` or `export default a;`.\n        const numTokens = exportToken.rhsEndIndex - tokens.currentIndex();\n        if (numTokens !== 3 &&\n            !(numTokens === 4 && tokens.matches1AtIndex(exportToken.rhsEndIndex - 1, types_1.TokenType.semi))) {\n            return false;\n        }\n        const identifierToken = tokens.tokenAtRelativeIndex(2);\n        if (identifierToken.type !== types_1.TokenType.name) {\n            return false;\n        }\n        const exportedName = tokens.identifierNameForToken(identifierToken);\n        return (declarationInfo.typeDeclarations.has(exportedName) &&\n            !declarationInfo.valueDeclarations.has(exportedName));\n    }\n}\n","min_source":"function _(n,e,t,r,o){r(),t.default=function(n,e,t,r){if(!n||e)return!1;const o=t.currentToken();if(null==o.rhsEndIndex)throw new Error(\"Expected non-null rhsEndIndex on export token.\");const d=o.rhsEndIndex-t.currentIndex();if(3!==d&&(4!==d||!t.matches1AtIndex(o.rhsEndIndex-1,c.TokenType.semi)))return!1;const s=t.tokenAtRelativeIndex(2);if(s.type!==c.TokenType.name)return!1;const i=t.identifierNameForToken(s);return r.typeDeclarations.has(i)&&!r.valueDeclarations.has(i)};const c=n(\"f0c35cbd76\")}\n//# sourceMappingURL=shouldElideDefaultExport.min.js.map","min_map":"{\"version\":3,\"file\":\"shouldElideDefaultExport.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"isTypeScriptTransformEnabled\",\"keepUnusedImports\",\"tokens\",\"declarationInfo\",\"exportToken\",\"currentToken\",\"rhsEndIndex\",\"Error\",\"numTokens\",\"currentIndex\",\"matches1AtIndex\",\"types_1\",\"TokenType\",\"semi\",\"identifierToken\",\"tokenAtRelativeIndex\",\"type\",\"name\",\"exportedName\",\"identifierNameForToken\",\"typeDeclarations\",\"has\",\"valueDeclarations\"],\"sources\":[\"0\"],\"mappings\":\"AAAwD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACrGD,IACAD,EAAQG,QAKR,SAAkCC,EAA8BC,EAAmBC,EAAQC,GACvF,IAAKH,GAAgCC,EACjC,OAAO,EAEX,MAAMG,EAAcF,EAAOG,eAC3B,GAA+B,MAA3BD,EAAYE,YACZ,MAAM,IAAIC,MAAM,kDAGpB,MAAMC,EAAYJ,EAAYE,YAAcJ,EAAOO,eACnD,GAAkB,IAAdD,IACgB,IAAdA,IAAmBN,EAAOQ,gBAAgBN,EAAYE,YAAc,EAAGK,EAAQC,UAAUC,OAC3F,OAAO,EAEX,MAAMC,EAAkBZ,EAAOa,qBAAqB,GACpD,GAAID,EAAgBE,OAASL,EAAQC,UAAUK,KAC3C,OAAO,EAEX,MAAMC,EAAehB,EAAOiB,uBAAuBL,GACnD,OAAQX,EAAgBiB,iBAAiBC,IAAIH,KACxCf,EAAgBmB,kBAAkBD,IAAIH,EAC/C,EAzBA,MAAMP,EAAUjB,EAAQ,aA0B5B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/ESMImportTransformer.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/transformers/ESMImportTransformer.js","resolution":"ESM","id":"8db2e4c5d7","hash":"8db2e4c5d7fba7342be48ffe27e61b359de493d31fdfe9eefd584b3f2c420c07","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\nconst keywords_1 = require(\"../parser/tokenizer/keywords\");\nconst types_1 = require(\"../parser/tokenizer/types\");\nconst elideImportEquals_1 = tslib_1.__importDefault(require(\"../util/elideImportEquals\"));\nconst getDeclarationInfo_1 = tslib_1.__importStar(require(\"../util/getDeclarationInfo\"));\nconst getImportExportSpecifierInfo_1 = tslib_1.__importDefault(require(\"../util/getImportExportSpecifierInfo\"));\nconst getNonTypeIdentifiers_1 = require(\"../util/getNonTypeIdentifiers\");\nconst isExportFrom_1 = tslib_1.__importDefault(require(\"../util/isExportFrom\"));\nconst removeMaybeImportAttributes_1 = require(\"../util/removeMaybeImportAttributes\");\nconst shouldElideDefaultExport_1 = tslib_1.__importDefault(require(\"../util/shouldElideDefaultExport\"));\nconst Transformer_1 = tslib_1.__importDefault(require(\"./Transformer\"));\n/**\n * Class for editing import statements when we are keeping the code as ESM. We still need to remove\n * type-only imports in TypeScript and Flow.\n */\nclass ESMImportTransformer extends Transformer_1.default {\n    constructor(tokens, nameManager, helperManager, reactHotLoaderTransformer, isTypeScriptTransformEnabled, isFlowTransformEnabled, keepUnusedImports, options) {\n        super();\n        this.tokens = tokens;\n        this.nameManager = nameManager;\n        this.helperManager = helperManager;\n        this.reactHotLoaderTransformer = reactHotLoaderTransformer;\n        this.isTypeScriptTransformEnabled = isTypeScriptTransformEnabled;\n        this.isFlowTransformEnabled = isFlowTransformEnabled;\n        this.keepUnusedImports = keepUnusedImports;\n        ;\n        this.nonTypeIdentifiers =\n            isTypeScriptTransformEnabled && !keepUnusedImports\n                ? (0, getNonTypeIdentifiers_1.getNonTypeIdentifiers)(tokens, options)\n                : new Set();\n        this.declarationInfo =\n            isTypeScriptTransformEnabled && !keepUnusedImports\n                ? (0, getDeclarationInfo_1.default)(tokens)\n                : getDeclarationInfo_1.EMPTY_DECLARATION_INFO;\n        this.injectCreateRequireForImportRequire = Boolean(options.injectCreateRequireForImportRequire);\n    }\n    process() {\n        // TypeScript `import foo = require('foo');` should always just be translated to plain require.\n        if (this.tokens.matches3(types_1.TokenType._import, types_1.TokenType.name, types_1.TokenType.eq)) {\n            return this.processImportEquals();\n        }\n        if (this.tokens.matches4(types_1.TokenType._import, types_1.TokenType.name, types_1.TokenType.name, types_1.TokenType.eq) &&\n            this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 1, keywords_1.ContextualKeyword._type)) {\n            // import type T = require('T')\n            this.tokens.removeInitialToken();\n            // This construct is always exactly 8 tokens long, so remove the 7 remaining tokens.\n            for (let i = 0; i < 7; i++) {\n                this.tokens.removeToken();\n            }\n            return true;\n        }\n        if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType.eq)) {\n            this.tokens.replaceToken(\"module.exports\");\n            return true;\n        }\n        if (this.tokens.matches5(types_1.TokenType._export, types_1.TokenType._import, types_1.TokenType.name, types_1.TokenType.name, types_1.TokenType.eq) &&\n            this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 2, keywords_1.ContextualKeyword._type)) {\n            // export import type T = require('T')\n            this.tokens.removeInitialToken();\n            // This construct is always exactly 9 tokens long, so remove the 8 remaining tokens.\n            for (let i = 0; i < 8; i++) {\n                this.tokens.removeToken();\n            }\n            return true;\n        }\n        if (this.tokens.matches1(types_1.TokenType._import)) {\n            return this.processImport();\n        }\n        if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._default)) {\n            return this.processExportDefault();\n        }\n        if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType.braceL)) {\n            return this.processNamedExports();\n        }\n        if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType.name) &&\n            this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 1, keywords_1.ContextualKeyword._type)) {\n            // export type {a};\n            // export type {a as b};\n            // export type {a} from './b';\n            // export type * from './b';\n            // export type * as ns from './b';\n            this.tokens.removeInitialToken();\n            this.tokens.removeToken();\n            if (this.tokens.matches1(types_1.TokenType.braceL)) {\n                while (!this.tokens.matches1(types_1.TokenType.braceR)) {\n                    this.tokens.removeToken();\n                }\n                this.tokens.removeToken();\n            }\n            else {\n                // *\n                this.tokens.removeToken();\n                if (this.tokens.matches1(types_1.TokenType._as)) {\n                    // as\n                    this.tokens.removeToken();\n                    // ns\n                    this.tokens.removeToken();\n                }\n            }\n            // Remove type re-export `... } from './T'`\n            if (this.tokens.matchesContextual(keywords_1.ContextualKeyword._from) &&\n                this.tokens.matches1AtIndex(this.tokens.currentIndex() + 1, types_1.TokenType.string)) {\n                this.tokens.removeToken();\n                this.tokens.removeToken();\n                (0, removeMaybeImportAttributes_1.removeMaybeImportAttributes)(this.tokens);\n            }\n            return true;\n        }\n        return false;\n    }\n    processImportEquals() {\n        const importName = this.tokens.identifierNameAtIndex(this.tokens.currentIndex() + 1);\n        if (this.shouldAutomaticallyElideImportedName(importName)) {\n            // If this name is only used as a type, elide the whole import.\n            (0, elideImportEquals_1.default)(this.tokens);\n        }\n        else if (this.injectCreateRequireForImportRequire) {\n            // We're using require in an environment (Node ESM) that doesn't provide\n            // it as a global, so generate a helper to import it.\n            // import -> const\n            this.tokens.replaceToken(\"const\");\n            // Foo\n            this.tokens.copyToken();\n            // =\n            this.tokens.copyToken();\n            // require\n            this.tokens.replaceToken(this.helperManager.getHelperName(\"require\"));\n        }\n        else {\n            // Otherwise, just switch `import` to `const`.\n            this.tokens.replaceToken(\"const\");\n        }\n        return true;\n    }\n    processImport() {\n        if (this.tokens.matches2(types_1.TokenType._import, types_1.TokenType.parenL)) {\n            // Dynamic imports don't need to be transformed.\n            return false;\n        }\n        const snapshot = this.tokens.snapshot();\n        const allImportsRemoved = this.removeImportTypeBindings();\n        if (allImportsRemoved) {\n            this.tokens.restoreToSnapshot(snapshot);\n            while (!this.tokens.matches1(types_1.TokenType.string)) {\n                this.tokens.removeToken();\n            }\n            this.tokens.removeToken();\n            (0, removeMaybeImportAttributes_1.removeMaybeImportAttributes)(this.tokens);\n            if (this.tokens.matches1(types_1.TokenType.semi)) {\n                this.tokens.removeToken();\n            }\n        }\n        return true;\n    }\n    /**\n     * Remove type bindings from this import, leaving the rest of the import intact.\n     *\n     * Return true if this import was ONLY types, and thus is eligible for removal. This will bail out\n     * of the replacement operation, so we can return early here.\n     */\n    removeImportTypeBindings() {\n        this.tokens.copyExpectedToken(types_1.TokenType._import);\n        if (this.tokens.matchesContextual(keywords_1.ContextualKeyword._type) &&\n            !this.tokens.matches1AtIndex(this.tokens.currentIndex() + 1, types_1.TokenType.comma) &&\n            !this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 1, keywords_1.ContextualKeyword._from)) {\n            // This is an \"import type\" statement, so exit early.\n            return true;\n        }\n        if (this.tokens.matches1(types_1.TokenType.string)) {\n            // This is a bare import, so we should proceed with the import.\n            this.tokens.copyToken();\n            return false;\n        }\n        // Skip the \"module\" token in import reflection.\n        if (this.tokens.matchesContextual(keywords_1.ContextualKeyword._module) &&\n            this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 2, keywords_1.ContextualKeyword._from)) {\n            this.tokens.copyToken();\n        }\n        let foundNonTypeImport = false;\n        let foundAnyNamedImport = false;\n        let needsComma = false;\n        // Handle default import.\n        if (this.tokens.matches1(types_1.TokenType.name)) {\n            if (this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())) {\n                this.tokens.removeToken();\n                if (this.tokens.matches1(types_1.TokenType.comma)) {\n                    this.tokens.removeToken();\n                }\n            }\n            else {\n                foundNonTypeImport = true;\n                this.tokens.copyToken();\n                if (this.tokens.matches1(types_1.TokenType.comma)) {\n                    // We're in a statement like:\n                    // import A, * as B from './A';\n                    // or\n                    // import A, {foo} from './A';\n                    // where the `A` is being kept. The comma should be removed if an only\n                    // if the next part of the import statement is elided, but that's hard\n                    // to determine at this point in the code. Instead, always remove it\n                    // and set a flag to add it back if necessary.\n                    needsComma = true;\n                    this.tokens.removeToken();\n                }\n            }\n        }\n        if (this.tokens.matches1(types_1.TokenType.star)) {\n            if (this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))) {\n                this.tokens.removeToken();\n                this.tokens.removeToken();\n                this.tokens.removeToken();\n            }\n            else {\n                if (needsComma) {\n                    this.tokens.appendCode(\",\");\n                }\n                foundNonTypeImport = true;\n                this.tokens.copyExpectedToken(types_1.TokenType.star);\n                this.tokens.copyExpectedToken(types_1.TokenType.name);\n                this.tokens.copyExpectedToken(types_1.TokenType.name);\n            }\n        }\n        else if (this.tokens.matches1(types_1.TokenType.braceL)) {\n            if (needsComma) {\n                this.tokens.appendCode(\",\");\n            }\n            this.tokens.copyToken();\n            while (!this.tokens.matches1(types_1.TokenType.braceR)) {\n                foundAnyNamedImport = true;\n                const specifierInfo = (0, getImportExportSpecifierInfo_1.default)(this.tokens);\n                if (specifierInfo.isType ||\n                    this.shouldAutomaticallyElideImportedName(specifierInfo.rightName)) {\n                    while (this.tokens.currentIndex() < specifierInfo.endIndex) {\n                        this.tokens.removeToken();\n                    }\n                    if (this.tokens.matches1(types_1.TokenType.comma)) {\n                        this.tokens.removeToken();\n                    }\n                }\n                else {\n                    foundNonTypeImport = true;\n                    while (this.tokens.currentIndex() < specifierInfo.endIndex) {\n                        this.tokens.copyToken();\n                    }\n                    if (this.tokens.matches1(types_1.TokenType.comma)) {\n                        this.tokens.copyToken();\n                    }\n                }\n            }\n            this.tokens.copyExpectedToken(types_1.TokenType.braceR);\n        }\n        if (this.keepUnusedImports) {\n            return false;\n        }\n        if (this.isTypeScriptTransformEnabled) {\n            return !foundNonTypeImport;\n        }\n        else if (this.isFlowTransformEnabled) {\n            // In Flow, unlike TS, `import {} from 'foo';` preserves the import.\n            return foundAnyNamedImport && !foundNonTypeImport;\n        }\n        else {\n            return false;\n        }\n    }\n    shouldAutomaticallyElideImportedName(name) {\n        return (this.isTypeScriptTransformEnabled &&\n            !this.keepUnusedImports &&\n            !this.nonTypeIdentifiers.has(name));\n    }\n    processExportDefault() {\n        if ((0, shouldElideDefaultExport_1.default)(this.isTypeScriptTransformEnabled, this.keepUnusedImports, this.tokens, this.declarationInfo)) {\n            // If the exported value is just an identifier and should be elided by TypeScript\n            // rules, then remove it entirely. It will always have the form `export default e`,\n            // where `e` is an identifier.\n            this.tokens.removeInitialToken();\n            this.tokens.removeToken();\n            this.tokens.removeToken();\n            return true;\n        }\n        const alreadyHasName = this.tokens.matches4(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType._function, types_1.TokenType.name) ||\n            // export default async function\n            (this.tokens.matches5(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType.name, types_1.TokenType._function, types_1.TokenType.name) &&\n                this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 2, keywords_1.ContextualKeyword._async)) ||\n            this.tokens.matches4(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType._class, types_1.TokenType.name) ||\n            this.tokens.matches5(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType._abstract, types_1.TokenType._class, types_1.TokenType.name);\n        if (!alreadyHasName && this.reactHotLoaderTransformer) {\n            // This is a plain \"export default E\" statement and we need to assign E to a variable.\n            // Change \"export default E\" to \"let _default; export default _default = E\"\n            const defaultVarName = this.nameManager.claimFreeName(\"_default\");\n            this.tokens.replaceToken(`let ${defaultVarName}; export`);\n            this.tokens.copyToken();\n            this.tokens.appendCode(` ${defaultVarName} =`);\n            this.reactHotLoaderTransformer.setExtractedDefaultExportName(defaultVarName);\n            return true;\n        }\n        return false;\n    }\n    /**\n     * Handle a statement with one of these forms:\n     * export {a, type b};\n     * export {c, type d} from 'foo';\n     *\n     * In both cases, any explicit type exports should be removed. In the first\n     * case, we also need to handle implicit export elision for names declared as\n     * types. In the second case, we must NOT do implicit named export elision,\n     * but we must remove the runtime import if all exports are type exports.\n     */\n    processNamedExports() {\n        if (!this.isTypeScriptTransformEnabled) {\n            return false;\n        }\n        this.tokens.copyExpectedToken(types_1.TokenType._export);\n        this.tokens.copyExpectedToken(types_1.TokenType.braceL);\n        const isReExport = (0, isExportFrom_1.default)(this.tokens);\n        let foundNonTypeExport = false;\n        while (!this.tokens.matches1(types_1.TokenType.braceR)) {\n            const specifierInfo = (0, getImportExportSpecifierInfo_1.default)(this.tokens);\n            if (specifierInfo.isType ||\n                (!isReExport && this.shouldElideExportedName(specifierInfo.leftName))) {\n                // Type export, so remove all tokens, including any comma.\n                while (this.tokens.currentIndex() < specifierInfo.endIndex) {\n                    this.tokens.removeToken();\n                }\n                if (this.tokens.matches1(types_1.TokenType.comma)) {\n                    this.tokens.removeToken();\n                }\n            }\n            else {\n                // Non-type export, so copy all tokens, including any comma.\n                foundNonTypeExport = true;\n                while (this.tokens.currentIndex() < specifierInfo.endIndex) {\n                    this.tokens.copyToken();\n                }\n                if (this.tokens.matches1(types_1.TokenType.comma)) {\n                    this.tokens.copyToken();\n                }\n            }\n        }\n        this.tokens.copyExpectedToken(types_1.TokenType.braceR);\n        if (!this.keepUnusedImports && isReExport && !foundNonTypeExport) {\n            // This is a type-only re-export, so skip evaluating the other module. Technically this\n            // leaves the statement as `export {}`, but that's ok since that's a no-op.\n            this.tokens.removeToken();\n            this.tokens.removeToken();\n            (0, removeMaybeImportAttributes_1.removeMaybeImportAttributes)(this.tokens);\n        }\n        return true;\n    }\n    /**\n     * ESM elides all imports with the rule that we only elide if we see that it's\n     * a type and never see it as a value. This is in contrast to CJS, which\n     * elides imports that are completely unknown.\n     */\n    shouldElideExportedName(name) {\n        return (this.isTypeScriptTransformEnabled &&\n            !this.keepUnusedImports &&\n            this.declarationInfo.typeDeclarations.has(name) &&\n            !this.declarationInfo.valueDeclarations.has(name));\n    }\n}\nexports.default = ESMImportTransformer;\n","type":"js","dependency_paths":[["../parser/tokenizer/keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"],["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["../util/elideImportEquals","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/elideImportEquals.js"],["../util/getDeclarationInfo","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getDeclarationInfo.js"],["../util/getImportExportSpecifierInfo","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getImportExportSpecifierInfo.js"],["../util/getNonTypeIdentifiers","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getNonTypeIdentifiers.js"],["../util/isExportFrom","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/isExportFrom.js"],["../util/removeMaybeImportAttributes","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/removeMaybeImportAttributes.js"],["../util/shouldElideDefaultExport","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/shouldElideDefaultExport.js"],["./Transformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/Transformer.js"]],"dependency_map":[],"exported":[{"type":"named","name":"ESMImportTransformer"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/transformers/ESMImportTransformer.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const keywords_1 = require(\"99ff836c64\") /* ../parser/tokenizer/keywords */;\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    const elideImportEquals_1 = tslib_1.__importDefault(require(\"a5f4e01d7b\") /* ../util/elideImportEquals */);\n    const getDeclarationInfo_1 = tslib_1.__importStar(require(\"f1b0dcccab\") /* ../util/getDeclarationInfo */);\n    const getImportExportSpecifierInfo_1 = tslib_1.__importDefault(require(\"14d4ae78a4\") /* ../util/getImportExportSpecifierInfo */);\n    const getNonTypeIdentifiers_1 = require(\"1ff9c9004b\") /* ../util/getNonTypeIdentifiers */;\n    const isExportFrom_1 = tslib_1.__importDefault(require(\"c3c484c8b2\") /* ../util/isExportFrom */);\n    const removeMaybeImportAttributes_1 = require(\"f659e3ed39\") /* ../util/removeMaybeImportAttributes */;\n    const shouldElideDefaultExport_1 = tslib_1.__importDefault(require(\"11afb90ac4\") /* ../util/shouldElideDefaultExport */);\n    const Transformer_1 = tslib_1.__importDefault(require(\"a46f119f74\") /* ./Transformer */);\n    /**\n     * Class for editing import statements when we are keeping the code as ESM. We still need to remove\n     * type-only imports in TypeScript and Flow.\n     */\n    class ESMImportTransformer extends Transformer_1.default {\n        constructor(tokens, nameManager, helperManager, reactHotLoaderTransformer, isTypeScriptTransformEnabled, isFlowTransformEnabled, keepUnusedImports, options) {\n            super();\n            this.tokens = tokens;\n            this.nameManager = nameManager;\n            this.helperManager = helperManager;\n            this.reactHotLoaderTransformer = reactHotLoaderTransformer;\n            this.isTypeScriptTransformEnabled = isTypeScriptTransformEnabled;\n            this.isFlowTransformEnabled = isFlowTransformEnabled;\n            this.keepUnusedImports = keepUnusedImports;\n            ;\n            this.nonTypeIdentifiers =\n                isTypeScriptTransformEnabled && !keepUnusedImports\n                    ? (0, getNonTypeIdentifiers_1.getNonTypeIdentifiers)(tokens, options)\n                    : new Set();\n            this.declarationInfo =\n                isTypeScriptTransformEnabled && !keepUnusedImports\n                    ? (0, getDeclarationInfo_1.default)(tokens)\n                    : getDeclarationInfo_1.EMPTY_DECLARATION_INFO;\n            this.injectCreateRequireForImportRequire = Boolean(options.injectCreateRequireForImportRequire);\n        }\n        process() {\n            // TypeScript `import foo = require('foo');` should always just be translated to plain require.\n            if (this.tokens.matches3(types_1.TokenType._import, types_1.TokenType.name, types_1.TokenType.eq)) {\n                return this.processImportEquals();\n            }\n            if (this.tokens.matches4(types_1.TokenType._import, types_1.TokenType.name, types_1.TokenType.name, types_1.TokenType.eq) &&\n                this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 1, keywords_1.ContextualKeyword._type)) {\n                // import type T = require('T')\n                this.tokens.removeInitialToken();\n                // This construct is always exactly 8 tokens long, so remove the 7 remaining tokens.\n                for (let i = 0; i < 7; i++) {\n                    this.tokens.removeToken();\n                }\n                return true;\n            }\n            if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType.eq)) {\n                this.tokens.replaceToken(\"module.exports\");\n                return true;\n            }\n            if (this.tokens.matches5(types_1.TokenType._export, types_1.TokenType._import, types_1.TokenType.name, types_1.TokenType.name, types_1.TokenType.eq) &&\n                this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 2, keywords_1.ContextualKeyword._type)) {\n                // export import type T = require('T')\n                this.tokens.removeInitialToken();\n                // This construct is always exactly 9 tokens long, so remove the 8 remaining tokens.\n                for (let i = 0; i < 8; i++) {\n                    this.tokens.removeToken();\n                }\n                return true;\n            }\n            if (this.tokens.matches1(types_1.TokenType._import)) {\n                return this.processImport();\n            }\n            if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._default)) {\n                return this.processExportDefault();\n            }\n            if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType.braceL)) {\n                return this.processNamedExports();\n            }\n            if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType.name) &&\n                this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 1, keywords_1.ContextualKeyword._type)) {\n                // export type {a};\n                // export type {a as b};\n                // export type {a} from './b';\n                // export type * from './b';\n                // export type * as ns from './b';\n                this.tokens.removeInitialToken();\n                this.tokens.removeToken();\n                if (this.tokens.matches1(types_1.TokenType.braceL)) {\n                    while (!this.tokens.matches1(types_1.TokenType.braceR)) {\n                        this.tokens.removeToken();\n                    }\n                    this.tokens.removeToken();\n                }\n                else {\n                    // *\n                    this.tokens.removeToken();\n                    if (this.tokens.matches1(types_1.TokenType._as)) {\n                        // as\n                        this.tokens.removeToken();\n                        // ns\n                        this.tokens.removeToken();\n                    }\n                }\n                // Remove type re-export `... } from './T'`\n                if (this.tokens.matchesContextual(keywords_1.ContextualKeyword._from) &&\n                    this.tokens.matches1AtIndex(this.tokens.currentIndex() + 1, types_1.TokenType.string)) {\n                    this.tokens.removeToken();\n                    this.tokens.removeToken();\n                    (0, removeMaybeImportAttributes_1.removeMaybeImportAttributes)(this.tokens);\n                }\n                return true;\n            }\n            return false;\n        }\n        processImportEquals() {\n            const importName = this.tokens.identifierNameAtIndex(this.tokens.currentIndex() + 1);\n            if (this.shouldAutomaticallyElideImportedName(importName)) {\n                // If this name is only used as a type, elide the whole import.\n                (0, elideImportEquals_1.default)(this.tokens);\n            }\n            else if (this.injectCreateRequireForImportRequire) {\n                // We're using require in an environment (Node ESM) that doesn't provide\n                // it as a global, so generate a helper to import it.\n                // import -> const\n                this.tokens.replaceToken(\"const\");\n                // Foo\n                this.tokens.copyToken();\n                // =\n                this.tokens.copyToken();\n                // require\n                this.tokens.replaceToken(this.helperManager.getHelperName(\"require\"));\n            }\n            else {\n                // Otherwise, just switch `import` to `const`.\n                this.tokens.replaceToken(\"const\");\n            }\n            return true;\n        }\n        processImport() {\n            if (this.tokens.matches2(types_1.TokenType._import, types_1.TokenType.parenL)) {\n                // Dynamic imports don't need to be transformed.\n                return false;\n            }\n            const snapshot = this.tokens.snapshot();\n            const allImportsRemoved = this.removeImportTypeBindings();\n            if (allImportsRemoved) {\n                this.tokens.restoreToSnapshot(snapshot);\n                while (!this.tokens.matches1(types_1.TokenType.string)) {\n                    this.tokens.removeToken();\n                }\n                this.tokens.removeToken();\n                (0, removeMaybeImportAttributes_1.removeMaybeImportAttributes)(this.tokens);\n                if (this.tokens.matches1(types_1.TokenType.semi)) {\n                    this.tokens.removeToken();\n                }\n            }\n            return true;\n        }\n        /**\n         * Remove type bindings from this import, leaving the rest of the import intact.\n         *\n         * Return true if this import was ONLY types, and thus is eligible for removal. This will bail out\n         * of the replacement operation, so we can return early here.\n         */\n        removeImportTypeBindings() {\n            this.tokens.copyExpectedToken(types_1.TokenType._import);\n            if (this.tokens.matchesContextual(keywords_1.ContextualKeyword._type) &&\n                !this.tokens.matches1AtIndex(this.tokens.currentIndex() + 1, types_1.TokenType.comma) &&\n                !this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 1, keywords_1.ContextualKeyword._from)) {\n                // This is an \"import type\" statement, so exit early.\n                return true;\n            }\n            if (this.tokens.matches1(types_1.TokenType.string)) {\n                // This is a bare import, so we should proceed with the import.\n                this.tokens.copyToken();\n                return false;\n            }\n            // Skip the \"module\" token in import reflection.\n            if (this.tokens.matchesContextual(keywords_1.ContextualKeyword._module) &&\n                this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 2, keywords_1.ContextualKeyword._from)) {\n                this.tokens.copyToken();\n            }\n            let foundNonTypeImport = false;\n            let foundAnyNamedImport = false;\n            let needsComma = false;\n            // Handle default import.\n            if (this.tokens.matches1(types_1.TokenType.name)) {\n                if (this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())) {\n                    this.tokens.removeToken();\n                    if (this.tokens.matches1(types_1.TokenType.comma)) {\n                        this.tokens.removeToken();\n                    }\n                }\n                else {\n                    foundNonTypeImport = true;\n                    this.tokens.copyToken();\n                    if (this.tokens.matches1(types_1.TokenType.comma)) {\n                        // We're in a statement like:\n                        // import A, * as B from './A';\n                        // or\n                        // import A, {foo} from './A';\n                        // where the `A` is being kept. The comma should be removed if an only\n                        // if the next part of the import statement is elided, but that's hard\n                        // to determine at this point in the code. Instead, always remove it\n                        // and set a flag to add it back if necessary.\n                        needsComma = true;\n                        this.tokens.removeToken();\n                    }\n                }\n            }\n            if (this.tokens.matches1(types_1.TokenType.star)) {\n                if (this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))) {\n                    this.tokens.removeToken();\n                    this.tokens.removeToken();\n                    this.tokens.removeToken();\n                }\n                else {\n                    if (needsComma) {\n                        this.tokens.appendCode(\",\");\n                    }\n                    foundNonTypeImport = true;\n                    this.tokens.copyExpectedToken(types_1.TokenType.star);\n                    this.tokens.copyExpectedToken(types_1.TokenType.name);\n                    this.tokens.copyExpectedToken(types_1.TokenType.name);\n                }\n            }\n            else if (this.tokens.matches1(types_1.TokenType.braceL)) {\n                if (needsComma) {\n                    this.tokens.appendCode(\",\");\n                }\n                this.tokens.copyToken();\n                while (!this.tokens.matches1(types_1.TokenType.braceR)) {\n                    foundAnyNamedImport = true;\n                    const specifierInfo = (0, getImportExportSpecifierInfo_1.default)(this.tokens);\n                    if (specifierInfo.isType ||\n                        this.shouldAutomaticallyElideImportedName(specifierInfo.rightName)) {\n                        while (this.tokens.currentIndex() < specifierInfo.endIndex) {\n                            this.tokens.removeToken();\n                        }\n                        if (this.tokens.matches1(types_1.TokenType.comma)) {\n                            this.tokens.removeToken();\n                        }\n                    }\n                    else {\n                        foundNonTypeImport = true;\n                        while (this.tokens.currentIndex() < specifierInfo.endIndex) {\n                            this.tokens.copyToken();\n                        }\n                        if (this.tokens.matches1(types_1.TokenType.comma)) {\n                            this.tokens.copyToken();\n                        }\n                    }\n                }\n                this.tokens.copyExpectedToken(types_1.TokenType.braceR);\n            }\n            if (this.keepUnusedImports) {\n                return false;\n            }\n            if (this.isTypeScriptTransformEnabled) {\n                return !foundNonTypeImport;\n            }\n            else if (this.isFlowTransformEnabled) {\n                // In Flow, unlike TS, `import {} from 'foo';` preserves the import.\n                return foundAnyNamedImport && !foundNonTypeImport;\n            }\n            else {\n                return false;\n            }\n        }\n        shouldAutomaticallyElideImportedName(name) {\n            return (this.isTypeScriptTransformEnabled &&\n                !this.keepUnusedImports &&\n                !this.nonTypeIdentifiers.has(name));\n        }\n        processExportDefault() {\n            if ((0, shouldElideDefaultExport_1.default)(this.isTypeScriptTransformEnabled, this.keepUnusedImports, this.tokens, this.declarationInfo)) {\n                // If the exported value is just an identifier and should be elided by TypeScript\n                // rules, then remove it entirely. It will always have the form `export default e`,\n                // where `e` is an identifier.\n                this.tokens.removeInitialToken();\n                this.tokens.removeToken();\n                this.tokens.removeToken();\n                return true;\n            }\n            const alreadyHasName = this.tokens.matches4(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType._function, types_1.TokenType.name) ||\n                // export default async function\n                (this.tokens.matches5(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType.name, types_1.TokenType._function, types_1.TokenType.name) &&\n                    this.tokens.matchesContextualAtIndex(this.tokens.currentIndex() + 2, keywords_1.ContextualKeyword._async)) ||\n                this.tokens.matches4(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType._class, types_1.TokenType.name) ||\n                this.tokens.matches5(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType._abstract, types_1.TokenType._class, types_1.TokenType.name);\n            if (!alreadyHasName && this.reactHotLoaderTransformer) {\n                // This is a plain \"export default E\" statement and we need to assign E to a variable.\n                // Change \"export default E\" to \"let _default; export default _default = E\"\n                const defaultVarName = this.nameManager.claimFreeName(\"_default\");\n                this.tokens.replaceToken(`let ${defaultVarName}; export`);\n                this.tokens.copyToken();\n                this.tokens.appendCode(` ${defaultVarName} =`);\n                this.reactHotLoaderTransformer.setExtractedDefaultExportName(defaultVarName);\n                return true;\n            }\n            return false;\n        }\n        /**\n         * Handle a statement with one of these forms:\n         * export {a, type b};\n         * export {c, type d} from 'foo';\n         *\n         * In both cases, any explicit type exports should be removed. In the first\n         * case, we also need to handle implicit export elision for names declared as\n         * types. In the second case, we must NOT do implicit named export elision,\n         * but we must remove the runtime import if all exports are type exports.\n         */\n        processNamedExports() {\n            if (!this.isTypeScriptTransformEnabled) {\n                return false;\n            }\n            this.tokens.copyExpectedToken(types_1.TokenType._export);\n            this.tokens.copyExpectedToken(types_1.TokenType.braceL);\n            const isReExport = (0, isExportFrom_1.default)(this.tokens);\n            let foundNonTypeExport = false;\n            while (!this.tokens.matches1(types_1.TokenType.braceR)) {\n                const specifierInfo = (0, getImportExportSpecifierInfo_1.default)(this.tokens);\n                if (specifierInfo.isType ||\n                    (!isReExport && this.shouldElideExportedName(specifierInfo.leftName))) {\n                    // Type export, so remove all tokens, including any comma.\n                    while (this.tokens.currentIndex() < specifierInfo.endIndex) {\n                        this.tokens.removeToken();\n                    }\n                    if (this.tokens.matches1(types_1.TokenType.comma)) {\n                        this.tokens.removeToken();\n                    }\n                }\n                else {\n                    // Non-type export, so copy all tokens, including any comma.\n                    foundNonTypeExport = true;\n                    while (this.tokens.currentIndex() < specifierInfo.endIndex) {\n                        this.tokens.copyToken();\n                    }\n                    if (this.tokens.matches1(types_1.TokenType.comma)) {\n                        this.tokens.copyToken();\n                    }\n                }\n            }\n            this.tokens.copyExpectedToken(types_1.TokenType.braceR);\n            if (!this.keepUnusedImports && isReExport && !foundNonTypeExport) {\n                // This is a type-only re-export, so skip evaluating the other module. Technically this\n                // leaves the statement as `export {}`, but that's ok since that's a no-op.\n                this.tokens.removeToken();\n                this.tokens.removeToken();\n                (0, removeMaybeImportAttributes_1.removeMaybeImportAttributes)(this.tokens);\n            }\n            return true;\n        }\n        /**\n         * ESM elides all imports with the rule that we only elide if we see that it's\n         * a type and never see it as a value. This is in contrast to CJS, which\n         * elides imports that are completely unknown.\n         */\n        shouldElideExportedName(name) {\n            return (this.isTypeScriptTransformEnabled &&\n                !this.keepUnusedImports &&\n                this.declarationInfo.typeDeclarations.has(name) &&\n                !this.declarationInfo.valueDeclarations.has(name));\n        }\n    }\n    exports.default = ESMImportTransformer;\n}\n","min_source":"function _(e,t,o,s,n){s();const r=e(\"tslib\"),i=e(\"99ff836c64\"),k=e(\"f0c35cbd76\"),a=r.__importDefault(e(\"a5f4e01d7b\")),h=r.__importStar(e(\"f1b0dcccab\")),T=r.__importDefault(e(\"14d4ae78a4\")),p=e(\"1ff9c9004b\"),m=r.__importDefault(e(\"c3c484c8b2\")),c=e(\"f659e3ed39\"),d=r.__importDefault(e(\"11afb90ac4\")),y=r.__importDefault(e(\"a46f119f74\"));class l extends y.default{constructor(e,t,o,s,n,r,i,k){super(),this.tokens=e,this.nameManager=t,this.helperManager=o,this.reactHotLoaderTransformer=s,this.isTypeScriptTransformEnabled=n,this.isFlowTransformEnabled=r,this.keepUnusedImports=i,this.nonTypeIdentifiers=n&&!i?(0,p.getNonTypeIdentifiers)(e,k):new Set,this.declarationInfo=n&&!i?(0,h.default)(e):h.EMPTY_DECLARATION_INFO,this.injectCreateRequireForImportRequire=Boolean(k.injectCreateRequireForImportRequire)}process(){if(this.tokens.matches3(k.TokenType._import,k.TokenType.name,k.TokenType.eq))return this.processImportEquals();if(this.tokens.matches4(k.TokenType._import,k.TokenType.name,k.TokenType.name,k.TokenType.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,i.ContextualKeyword._type)){this.tokens.removeInitialToken();for(let e=0;e<7;e++)this.tokens.removeToken();return!0}if(this.tokens.matches2(k.TokenType._export,k.TokenType.eq))return this.tokens.replaceToken(\"module.exports\"),!0;if(this.tokens.matches5(k.TokenType._export,k.TokenType._import,k.TokenType.name,k.TokenType.name,k.TokenType.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,i.ContextualKeyword._type)){this.tokens.removeInitialToken();for(let e=0;e<8;e++)this.tokens.removeToken();return!0}if(this.tokens.matches1(k.TokenType._import))return this.processImport();if(this.tokens.matches2(k.TokenType._export,k.TokenType._default))return this.processExportDefault();if(this.tokens.matches2(k.TokenType._export,k.TokenType.braceL))return this.processNamedExports();if(this.tokens.matches2(k.TokenType._export,k.TokenType.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,i.ContextualKeyword._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(k.TokenType.braceL)){for(;!this.tokens.matches1(k.TokenType.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(k.TokenType._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(i.ContextualKeyword._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,k.TokenType.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),(0,c.removeMaybeImportAttributes)(this.tokens)),!0}return!1}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(e)?(0,a.default)(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken(\"const\"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName(\"require\"))):this.tokens.replaceToken(\"const\"),!0}processImport(){if(this.tokens.matches2(k.TokenType._import,k.TokenType.parenL))return!1;const e=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(e);!this.tokens.matches1(k.TokenType.string);)this.tokens.removeToken();this.tokens.removeToken(),(0,c.removeMaybeImportAttributes)(this.tokens),this.tokens.matches1(k.TokenType.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(k.TokenType._import),this.tokens.matchesContextual(i.ContextualKeyword._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,k.TokenType.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,i.ContextualKeyword._from))return!0;if(this.tokens.matches1(k.TokenType.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(i.ContextualKeyword._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,i.ContextualKeyword._from)&&this.tokens.copyToken();let e=!1,t=!1,o=!1;if(this.tokens.matches1(k.TokenType.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(k.TokenType.comma)&&this.tokens.removeToken()):(e=!0,this.tokens.copyToken(),this.tokens.matches1(k.TokenType.comma)&&(o=!0,this.tokens.removeToken()))),this.tokens.matches1(k.TokenType.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(o&&this.tokens.appendCode(\",\"),e=!0,this.tokens.copyExpectedToken(k.TokenType.star),this.tokens.copyExpectedToken(k.TokenType.name),this.tokens.copyExpectedToken(k.TokenType.name));else if(this.tokens.matches1(k.TokenType.braceL)){for(o&&this.tokens.appendCode(\",\"),this.tokens.copyToken();!this.tokens.matches1(k.TokenType.braceR);){t=!0;const o=(0,T.default)(this.tokens);if(o.isType||this.shouldAutomaticallyElideImportedName(o.rightName)){for(;this.tokens.currentIndex()<o.endIndex;)this.tokens.removeToken();this.tokens.matches1(k.TokenType.comma)&&this.tokens.removeToken()}else{for(e=!0;this.tokens.currentIndex()<o.endIndex;)this.tokens.copyToken();this.tokens.matches1(k.TokenType.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(k.TokenType.braceR)}return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!e:!!this.isFlowTransformEnabled&&(t&&!e))}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}processExportDefault(){if((0,d.default)(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(k.TokenType._export,k.TokenType._default,k.TokenType._function,k.TokenType.name)||this.tokens.matches5(k.TokenType._export,k.TokenType._default,k.TokenType.name,k.TokenType._function,k.TokenType.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,i.ContextualKeyword._async)||this.tokens.matches4(k.TokenType._export,k.TokenType._default,k.TokenType._class,k.TokenType.name)||this.tokens.matches5(k.TokenType._export,k.TokenType._default,k.TokenType._abstract,k.TokenType._class,k.TokenType.name))&&this.reactHotLoaderTransformer){const e=this.nameManager.claimFreeName(\"_default\");return this.tokens.replaceToken(`let ${e}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(k.TokenType._export),this.tokens.copyExpectedToken(k.TokenType.braceL);const e=(0,m.default)(this.tokens);let t=!1;for(;!this.tokens.matches1(k.TokenType.braceR);){const o=(0,T.default)(this.tokens);if(o.isType||!e&&this.shouldElideExportedName(o.leftName)){for(;this.tokens.currentIndex()<o.endIndex;)this.tokens.removeToken();this.tokens.matches1(k.TokenType.comma)&&this.tokens.removeToken()}else{for(t=!0;this.tokens.currentIndex()<o.endIndex;)this.tokens.copyToken();this.tokens.matches1(k.TokenType.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(k.TokenType.braceR),this.keepUnusedImports||!e||t||(this.tokens.removeToken(),this.tokens.removeToken(),(0,c.removeMaybeImportAttributes)(this.tokens)),!0}shouldElideExportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(e)&&!this.declarationInfo.valueDeclarations.has(e)}}o.default=l}\n//# sourceMappingURL=ESMImportTransformer.min.js.map","min_map":"{\"version\":3,\"file\":\"ESMImportTransformer.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tslib_1\",\"keywords_1\",\"types_1\",\"elideImportEquals_1\",\"__importDefault\",\"getDeclarationInfo_1\",\"__importStar\",\"getImportExportSpecifierInfo_1\",\"getNonTypeIdentifiers_1\",\"isExportFrom_1\",\"removeMaybeImportAttributes_1\",\"shouldElideDefaultExport_1\",\"Transformer_1\",\"ESMImportTransformer\",\"default\",\"constructor\",\"tokens\",\"nameManager\",\"helperManager\",\"reactHotLoaderTransformer\",\"isTypeScriptTransformEnabled\",\"isFlowTransformEnabled\",\"keepUnusedImports\",\"options\",\"super\",\"this\",\"nonTypeIdentifiers\",\"getNonTypeIdentifiers\",\"Set\",\"declarationInfo\",\"EMPTY_DECLARATION_INFO\",\"injectCreateRequireForImportRequire\",\"Boolean\",\"process\",\"matches3\",\"TokenType\",\"_import\",\"name\",\"eq\",\"processImportEquals\",\"matches4\",\"matchesContextualAtIndex\",\"currentIndex\",\"ContextualKeyword\",\"_type\",\"removeInitialToken\",\"i\",\"removeToken\",\"matches2\",\"_export\",\"replaceToken\",\"matches5\",\"matches1\",\"processImport\",\"_default\",\"processExportDefault\",\"braceL\",\"processNamedExports\",\"braceR\",\"_as\",\"matchesContextual\",\"_from\",\"matches1AtIndex\",\"string\",\"removeMaybeImportAttributes\",\"importName\",\"identifierNameAtIndex\",\"shouldAutomaticallyElideImportedName\",\"copyToken\",\"getHelperName\",\"parenL\",\"snapshot\",\"removeImportTypeBindings\",\"restoreToSnapshot\",\"semi\",\"copyExpectedToken\",\"comma\",\"_module\",\"foundNonTypeImport\",\"foundAnyNamedImport\",\"needsComma\",\"identifierName\",\"star\",\"identifierNameAtRelativeIndex\",\"appendCode\",\"specifierInfo\",\"isType\",\"rightName\",\"endIndex\",\"has\",\"_function\",\"_async\",\"_class\",\"_abstract\",\"defaultVarName\",\"claimFreeName\",\"setExtractedDefaultExportName\",\"isReExport\",\"foundNonTypeExport\",\"shouldElideExportedName\",\"leftName\",\"typeDeclarations\",\"valueDeclarations\"],\"sources\":[\"0\"],\"mappings\":\"AAA4D,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzGD,IACA,MAAME,EAAUL,EAAQ,SAClBM,EAAaN,EAAQ,cACrBO,EAAUP,EAAQ,cAClBQ,EAAsBH,EAAQI,gBAAgBT,EAAQ,eACtDU,EAAuBL,EAAQM,aAAaX,EAAQ,eACpDY,EAAiCP,EAAQI,gBAAgBT,EAAQ,eACjEa,EAA0Bb,EAAQ,cAClCc,EAAiBT,EAAQI,gBAAgBT,EAAQ,eACjDe,EAAgCf,EAAQ,cACxCgB,EAA6BX,EAAQI,gBAAgBT,EAAQ,eAC7DiB,EAAgBZ,EAAQI,gBAAgBT,EAAQ,eAKtD,MAAMkB,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8BsD,6BAA6BvC,KAAKT,UAEjE,CACX,CAMA,uBAAAmF,CAAwB9D,GACpB,OAAQZ,KAAKL,+BACRK,KAAKH,mBACNG,KAAKI,gBAAgBwE,iBAAiBZ,IAAIpD,KACzCZ,KAAKI,gBAAgByE,kBAAkBb,IAAIpD,EACpD,EAEJxC,EAAQiB,QAAUD,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/FlowTransformer.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/transformers/FlowTransformer.js","resolution":"ESM","id":"3913cc12b3","hash":"3913cc12b38d6626f567aeaea13f439c248550d0b47cf0eda7fd428c8d571608","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\nconst keywords_1 = require(\"../parser/tokenizer/keywords\");\nconst types_1 = require(\"../parser/tokenizer/types\");\nconst Transformer_1 = tslib_1.__importDefault(require(\"./Transformer\"));\nclass FlowTransformer extends Transformer_1.default {\n    constructor(rootTransformer, tokens, isImportsTransformEnabled) {\n        super();\n        this.rootTransformer = rootTransformer;\n        this.tokens = tokens;\n        this.isImportsTransformEnabled = isImportsTransformEnabled;\n        ;\n    }\n    process() {\n        if (this.rootTransformer.processPossibleArrowParamEnd() ||\n            this.rootTransformer.processPossibleAsyncArrowWithTypeParams() ||\n            this.rootTransformer.processPossibleTypeRange()) {\n            return true;\n        }\n        if (this.tokens.matches1(types_1.TokenType._enum)) {\n            this.processEnum();\n            return true;\n        }\n        if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._enum)) {\n            this.processNamedExportEnum();\n            return true;\n        }\n        if (this.tokens.matches3(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType._enum)) {\n            this.processDefaultExportEnum();\n            return true;\n        }\n        return false;\n    }\n    /**\n     * Handle a declaration like:\n     * export enum E ...\n     *\n     * With this imports transform, this becomes:\n     * const E = [[enum]]; exports.E = E;\n     *\n     * otherwise, it becomes:\n     * export const E = [[enum]];\n     */\n    processNamedExportEnum() {\n        if (this.isImportsTransformEnabled) {\n            // export\n            this.tokens.removeInitialToken();\n            const enumName = this.tokens.identifierNameAtRelativeIndex(1);\n            this.processEnum();\n            this.tokens.appendCode(` exports.${enumName} = ${enumName};`);\n        }\n        else {\n            this.tokens.copyToken();\n            this.processEnum();\n        }\n    }\n    /**\n     * Handle a declaration like:\n     * export default enum E\n     *\n     * With the imports transform, this becomes:\n     * const E = [[enum]]; exports.default = E;\n     *\n     * otherwise, it becomes:\n     * const E = [[enum]]; export default E;\n     */\n    processDefaultExportEnum() {\n        // export\n        this.tokens.removeInitialToken();\n        // default\n        this.tokens.removeToken();\n        const enumName = this.tokens.identifierNameAtRelativeIndex(1);\n        this.processEnum();\n        if (this.isImportsTransformEnabled) {\n            this.tokens.appendCode(` exports.default = ${enumName};`);\n        }\n        else {\n            this.tokens.appendCode(` export default ${enumName};`);\n        }\n    }\n    /**\n     * Transpile flow enums to invoke the \"flow-enums-runtime\" library.\n     *\n     * Currently, the transpiled code always uses `require(\"flow-enums-runtime\")`,\n     * but if future flexibility is needed, we could expose a config option for\n     * this string (similar to configurable JSX). Even when targeting ESM, the\n     * default behavior of babel-plugin-transform-flow-enums is to use require\n     * rather than injecting an import.\n     *\n     * Flow enums are quite a bit simpler than TS enums and have some convenient\n     * constraints:\n     * - Element initializers must be either always present or always absent. That\n     *   means that we can use fixed lookahead on the first element (if any) and\n     *   assume that all elements are like that.\n     * - The right-hand side of an element initializer must be a literal value,\n     *   not a complex expression and not referencing other elements. That means\n     *   we can simply copy a single token.\n     *\n     * Enums can be broken up into three basic cases:\n     *\n     * Mirrored enums:\n     * enum E {A, B}\n     *   ->\n     * const E = require(\"flow-enums-runtime\").Mirrored([\"A\", \"B\"]);\n     *\n     * Initializer enums:\n     * enum E {A = 1, B = 2}\n     *   ->\n     * const E = require(\"flow-enums-runtime\")({A: 1, B: 2});\n     *\n     * Symbol enums:\n     * enum E of symbol {A, B}\n     *   ->\n     * const E = require(\"flow-enums-runtime\")({A: Symbol(\"A\"), B: Symbol(\"B\")});\n     *\n     * We can statically detect which of the three cases this is by looking at the\n     * \"of\" declaration (if any) and seeing if the first element has an initializer.\n     * Since the other transform details are so similar between the three cases, we\n     * use a single implementation and vary the transform within processEnumElement\n     * based on case.\n     */\n    processEnum() {\n        // enum E -> const E\n        this.tokens.replaceToken(\"const\");\n        this.tokens.copyExpectedToken(types_1.TokenType.name);\n        let isSymbolEnum = false;\n        if (this.tokens.matchesContextual(keywords_1.ContextualKeyword._of)) {\n            this.tokens.removeToken();\n            isSymbolEnum = this.tokens.matchesContextual(keywords_1.ContextualKeyword._symbol);\n            this.tokens.removeToken();\n        }\n        const hasInitializers = this.tokens.matches3(types_1.TokenType.braceL, types_1.TokenType.name, types_1.TokenType.eq);\n        this.tokens.appendCode(' = require(\"flow-enums-runtime\")');\n        const isMirrored = !isSymbolEnum && !hasInitializers;\n        this.tokens.replaceTokenTrimmingLeftWhitespace(isMirrored ? \".Mirrored([\" : \"({\");\n        while (!this.tokens.matches1(types_1.TokenType.braceR)) {\n            // ... is allowed at the end and has no runtime behavior.\n            if (this.tokens.matches1(types_1.TokenType.ellipsis)) {\n                this.tokens.removeToken();\n                break;\n            }\n            this.processEnumElement(isSymbolEnum, hasInitializers);\n            if (this.tokens.matches1(types_1.TokenType.comma)) {\n                this.tokens.copyToken();\n            }\n        }\n        this.tokens.replaceToken(isMirrored ? \"]);\" : \"});\");\n    }\n    /**\n     * Process an individual enum element, producing either an array element or an\n     * object element based on what type of enum this is.\n     */\n    processEnumElement(isSymbolEnum, hasInitializers) {\n        if (isSymbolEnum) {\n            // Symbol enums never have initializers and are expanded to object elements.\n            // A, -> A: Symbol(\"A\"),\n            const elementName = this.tokens.identifierName();\n            this.tokens.copyToken();\n            this.tokens.appendCode(`: Symbol(\"${elementName}\")`);\n        }\n        else if (hasInitializers) {\n            // Initializers are expanded to object elements.\n            // A = 1, -> A: 1,\n            this.tokens.copyToken();\n            this.tokens.replaceTokenTrimmingLeftWhitespace(\":\");\n            this.tokens.copyToken();\n        }\n        else {\n            // Enum elements without initializers become string literal array elements.\n            // A, -> \"A\",\n            this.tokens.replaceToken(`\"${this.tokens.identifierName()}\"`);\n        }\n    }\n}\nexports.default = FlowTransformer;\n","type":"js","dependency_paths":[["../parser/tokenizer/keywords","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js"],["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["./Transformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/Transformer.js"]],"dependency_map":[],"exported":[{"type":"named","name":"FlowTransformer"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/transformers/FlowTransformer.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const keywords_1 = require(\"99ff836c64\") /* ../parser/tokenizer/keywords */;\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    const Transformer_1 = tslib_1.__importDefault(require(\"a46f119f74\") /* ./Transformer */);\n    class FlowTransformer extends Transformer_1.default {\n        constructor(rootTransformer, tokens, isImportsTransformEnabled) {\n            super();\n            this.rootTransformer = rootTransformer;\n            this.tokens = tokens;\n            this.isImportsTransformEnabled = isImportsTransformEnabled;\n            ;\n        }\n        process() {\n            if (this.rootTransformer.processPossibleArrowParamEnd() ||\n                this.rootTransformer.processPossibleAsyncArrowWithTypeParams() ||\n                this.rootTransformer.processPossibleTypeRange()) {\n                return true;\n            }\n            if (this.tokens.matches1(types_1.TokenType._enum)) {\n                this.processEnum();\n                return true;\n            }\n            if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._enum)) {\n                this.processNamedExportEnum();\n                return true;\n            }\n            if (this.tokens.matches3(types_1.TokenType._export, types_1.TokenType._default, types_1.TokenType._enum)) {\n                this.processDefaultExportEnum();\n                return true;\n            }\n            return false;\n        }\n        /**\n         * Handle a declaration like:\n         * export enum E ...\n         *\n         * With this imports transform, this becomes:\n         * const E = [[enum]]; exports.E = E;\n         *\n         * otherwise, it becomes:\n         * export const E = [[enum]];\n         */\n        processNamedExportEnum() {\n            if (this.isImportsTransformEnabled) {\n                // export\n                this.tokens.removeInitialToken();\n                const enumName = this.tokens.identifierNameAtRelativeIndex(1);\n                this.processEnum();\n                this.tokens.appendCode(` exports.${enumName} = ${enumName};`);\n            }\n            else {\n                this.tokens.copyToken();\n                this.processEnum();\n            }\n        }\n        /**\n         * Handle a declaration like:\n         * export default enum E\n         *\n         * With the imports transform, this becomes:\n         * const E = [[enum]]; exports.default = E;\n         *\n         * otherwise, it becomes:\n         * const E = [[enum]]; export default E;\n         */\n        processDefaultExportEnum() {\n            // export\n            this.tokens.removeInitialToken();\n            // default\n            this.tokens.removeToken();\n            const enumName = this.tokens.identifierNameAtRelativeIndex(1);\n            this.processEnum();\n            if (this.isImportsTransformEnabled) {\n                this.tokens.appendCode(` exports.default = ${enumName};`);\n            }\n            else {\n                this.tokens.appendCode(` export default ${enumName};`);\n            }\n        }\n        /**\n         * Transpile flow enums to invoke the \"flow-enums-runtime\" library.\n         *\n         * Currently, the transpiled code always uses `require(\"flow-enums-runtime\")`,\n         * but if future flexibility is needed, we could expose a config option for\n         * this string (similar to configurable JSX). Even when targeting ESM, the\n         * default behavior of babel-plugin-transform-flow-enums is to use require\n         * rather than injecting an import.\n         *\n         * Flow enums are quite a bit simpler than TS enums and have some convenient\n         * constraints:\n         * - Element initializers must be either always present or always absent. That\n         *   means that we can use fixed lookahead on the first element (if any) and\n         *   assume that all elements are like that.\n         * - The right-hand side of an element initializer must be a literal value,\n         *   not a complex expression and not referencing other elements. That means\n         *   we can simply copy a single token.\n         *\n         * Enums can be broken up into three basic cases:\n         *\n         * Mirrored enums:\n         * enum E {A, B}\n         *   ->\n         * const E = require(\"flow-enums-runtime\").Mirrored([\"A\", \"B\"]);\n         *\n         * Initializer enums:\n         * enum E {A = 1, B = 2}\n         *   ->\n         * const E = require(\"flow-enums-runtime\")({A: 1, B: 2});\n         *\n         * Symbol enums:\n         * enum E of symbol {A, B}\n         *   ->\n         * const E = require(\"flow-enums-runtime\")({A: Symbol(\"A\"), B: Symbol(\"B\")});\n         *\n         * We can statically detect which of the three cases this is by looking at the\n         * \"of\" declaration (if any) and seeing if the first element has an initializer.\n         * Since the other transform details are so similar between the three cases, we\n         * use a single implementation and vary the transform within processEnumElement\n         * based on case.\n         */\n        processEnum() {\n            // enum E -> const E\n            this.tokens.replaceToken(\"const\");\n            this.tokens.copyExpectedToken(types_1.TokenType.name);\n            let isSymbolEnum = false;\n            if (this.tokens.matchesContextual(keywords_1.ContextualKeyword._of)) {\n                this.tokens.removeToken();\n                isSymbolEnum = this.tokens.matchesContextual(keywords_1.ContextualKeyword._symbol);\n                this.tokens.removeToken();\n            }\n            const hasInitializers = this.tokens.matches3(types_1.TokenType.braceL, types_1.TokenType.name, types_1.TokenType.eq);\n            this.tokens.appendCode(' = require(\"flow-enums-runtime\")');\n            const isMirrored = !isSymbolEnum && !hasInitializers;\n            this.tokens.replaceTokenTrimmingLeftWhitespace(isMirrored ? \".Mirrored([\" : \"({\");\n            while (!this.tokens.matches1(types_1.TokenType.braceR)) {\n                // ... is allowed at the end and has no runtime behavior.\n                if (this.tokens.matches1(types_1.TokenType.ellipsis)) {\n                    this.tokens.removeToken();\n                    break;\n                }\n                this.processEnumElement(isSymbolEnum, hasInitializers);\n                if (this.tokens.matches1(types_1.TokenType.comma)) {\n                    this.tokens.copyToken();\n                }\n            }\n            this.tokens.replaceToken(isMirrored ? \"]);\" : \"});\");\n        }\n        /**\n         * Process an individual enum element, producing either an array element or an\n         * object element based on what type of enum this is.\n         */\n        processEnumElement(isSymbolEnum, hasInitializers) {\n            if (isSymbolEnum) {\n                // Symbol enums never have initializers and are expanded to object elements.\n                // A, -> A: Symbol(\"A\"),\n                const elementName = this.tokens.identifierName();\n                this.tokens.copyToken();\n                this.tokens.appendCode(`: Symbol(\"${elementName}\")`);\n            }\n            else if (hasInitializers) {\n                // Initializers are expanded to object elements.\n                // A = 1, -> A: 1,\n                this.tokens.copyToken();\n                this.tokens.replaceTokenTrimmingLeftWhitespace(\":\");\n                this.tokens.copyToken();\n            }\n            else {\n                // Enum elements without initializers become string literal array elements.\n                // A, -> \"A\",\n                this.tokens.replaceToken(`\"${this.tokens.identifierName()}\"`);\n            }\n        }\n    }\n    exports.default = FlowTransformer;\n}\n","min_source":"function _(e,s,t,o,n){o();const i=e(\"tslib\"),r=e(\"99ff836c64\"),p=e(\"f0c35cbd76\"),k=i.__importDefault(e(\"a46f119f74\"));class a extends k.default{constructor(e,s,t){super(),this.rootTransformer=e,this.tokens=s,this.isImportsTransformEnabled=t}process(){return!!(this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange())||(this.tokens.matches1(p.TokenType._enum)?(this.processEnum(),!0):this.tokens.matches2(p.TokenType._export,p.TokenType._enum)?(this.processNamedExportEnum(),!0):!!this.tokens.matches3(p.TokenType._export,p.TokenType._default,p.TokenType._enum)&&(this.processDefaultExportEnum(),!0))}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${e} = ${e};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${e};`):this.tokens.appendCode(` export default ${e};`)}processEnum(){this.tokens.replaceToken(\"const\"),this.tokens.copyExpectedToken(p.TokenType.name);let e=!1;this.tokens.matchesContextual(r.ContextualKeyword._of)&&(this.tokens.removeToken(),e=this.tokens.matchesContextual(r.ContextualKeyword._symbol),this.tokens.removeToken());const s=this.tokens.matches3(p.TokenType.braceL,p.TokenType.name,p.TokenType.eq);this.tokens.appendCode(' = require(\"flow-enums-runtime\")');const t=!e&&!s;for(this.tokens.replaceTokenTrimmingLeftWhitespace(t?\".Mirrored([\":\"({\");!this.tokens.matches1(p.TokenType.braceR);){if(this.tokens.matches1(p.TokenType.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(e,s),this.tokens.matches1(p.TokenType.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(t?\"]);\":\"});\")}processEnumElement(e,s){if(e){const e=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol(\"${e}\")`)}else s?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(\":\"),this.tokens.copyToken()):this.tokens.replaceToken(`\"${this.tokens.identifierName()}\"`)}}t.default=a}\n//# sourceMappingURL=FlowTransformer.min.js.map","min_map":"{\"version\":3,\"file\":\"FlowTransformer.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tslib_1\",\"keywords_1\",\"types_1\",\"Transformer_1\",\"__importDefault\",\"FlowTransformer\",\"default\",\"constructor\",\"rootTransformer\",\"tokens\",\"isImportsTransformEnabled\",\"super\",\"this\",\"process\",\"processPossibleArrowParamEnd\",\"processPossibleAsyncArrowWithTypeParams\",\"processPossibleTypeRange\",\"matches1\",\"TokenType\",\"_enum\",\"processEnum\",\"matches2\",\"_export\",\"processNamedExportEnum\",\"matches3\",\"_default\",\"processDefaultExportEnum\",\"removeInitialToken\",\"enumName\",\"identifierNameAtRelativeIndex\",\"appendCode\",\"copyToken\",\"removeToken\",\"replaceToken\",\"copyExpectedToken\",\"name\",\"isSymbolEnum\",\"matchesContextual\",\"ContextualKeyword\",\"_of\",\"_symbol\",\"hasInitializers\",\"braceL\",\"eq\",\"isMirrored\",\"replaceTokenTrimmingLeftWhitespace\",\"braceR\",\"ellipsis\",\"processEnumElement\",\"comma\",\"elementName\",\"identifierName\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hC,EAAQgB,UAAUiB,MAChD,IAAIC,GAAe,EACfxB,KAAKH,OAAO4B,kBAAkBpC,EAAWqC,kBAAkBC,OAC3D3B,KAAKH,OAAOuB,cACZI,EAAexB,KAAKH,OAAO4B,kBAAkBpC,EAAWqC,kBAAkBE,SAC1E5B,KAAKH,OAAOuB,eAEhB,MAAMS,EAAkB7B,KAAKH,OAAOe,SAAStB,EAAQgB,UAAUwB,OAAQxC,EAAQgB,UAAUiB,KAAMjC,EAAQgB,UAAUyB,IACjH/B,KAAKH,OAAOqB,WAAW,oCACvB,MAAMc,GAAcR,IAAiBK,EAErC,IADA7B,KAAKH,OAAOoC,mCAAmCD,EAAa,cAAgB,OACpEhC,KAAKH,OAAOQ,SAASf,EAAQgB,UAAU4B,SAAS,CAEpD,GAAIlC,KAAKH,OAAOQ,SAASf,EAAQgB,UAAU6B,UAAW,CAClDnC,KAAKH,OAAOuB,cACZ,KACJ,CACApB,KAAKoC,mBAAmBZ,EAAcK,GAClC7B,KAAKH,OAAOQ,SAASf,EAAQgB,UAAU+B,QACvCrC,KAAKH,OAAOsB,WAEpB,CACAnB,KAAKH,OAAOwB,aAAaW,EAAa,MAAQ,MAClD,CAKA,kBAAAI,CAAmBZ,EAAcK,GAC7B,GAAIL,EAAc,CAGd,MAAMc,EAActC,KAAKH,OAAO0C,iBAChCvC,KAAKH,OAAOsB,YACZnB,KAAKH,OAAOqB,WAAW,aAAaoB,MACxC,MACST,GAGL7B,KAAKH,OAAOsB,YACZnB,KAAKH,OAAOoC,mCAAmC,KAC/CjC,KAAKH,OAAOsB,aAKZnB,KAAKH,OAAOwB,aAAa,IAAIrB,KAAKH,OAAO0C,oBAEjD,EAEJtD,EAAQS,QAAUD,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/JestHoistTransformer.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/transformers/JestHoistTransformer.js","resolution":"ESM","id":"3eb46b07e3","hash":"3eb46b07e3d7daa7cccc61eed1bf60a6558fac92caa84ae3ff96845ba4620dbf","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\nfunction _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) {\n    const op = ops[i];\n    const fn = ops[i + 1];\n    i += 2;\n    if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n        return undefined;\n    }\n    if (op === 'access' || op === 'optionalAccess') {\n        lastAccessLHS = value;\n        value = fn(value);\n    }\n    else if (op === 'call' || op === 'optionalCall') {\n        value = fn((...args) => value.call(lastAccessLHS, ...args));\n        lastAccessLHS = undefined;\n    }\n} return value; }\nconst types_1 = require(\"../parser/tokenizer/types\");\nconst Transformer_1 = tslib_1.__importDefault(require(\"./Transformer\"));\nconst JEST_GLOBAL_NAME = \"jest\";\nconst HOISTED_METHODS = [\"mock\", \"unmock\", \"enableAutomock\", \"disableAutomock\"];\n/**\n * Implementation of babel-plugin-jest-hoist, which hoists up some jest method\n * calls above the imports to allow them to override other imports.\n *\n * To preserve line numbers, rather than directly moving the jest.mock code, we\n * wrap each invocation in a function statement and then call the function from\n * the top of the file.\n */\nclass JestHoistTransformer extends Transformer_1.default {\n    __init() { this.hoistedFunctionNames = []; }\n    constructor(rootTransformer, tokens, nameManager, importProcessor) {\n        super();\n        this.rootTransformer = rootTransformer;\n        this.tokens = tokens;\n        this.nameManager = nameManager;\n        this.importProcessor = importProcessor;\n        JestHoistTransformer.prototype.__init.call(this);\n        ;\n    }\n    process() {\n        if (this.tokens.currentToken().scopeDepth === 0 &&\n            this.tokens.matches4(types_1.TokenType.name, types_1.TokenType.dot, types_1.TokenType.name, types_1.TokenType.parenL) &&\n            this.tokens.identifierName() === JEST_GLOBAL_NAME) {\n            // TODO: This only works if imports transform is active, which it will be for jest.\n            //       But if jest adds module support and we no longer need the import transform, this needs fixing.\n            if (_optionalChain([this, 'access', _ => _.importProcessor, 'optionalAccess', _2 => _2.getGlobalNames, 'call', _3 => _3(), 'optionalAccess', _4 => _4.has, 'call', _5 => _5(JEST_GLOBAL_NAME)])) {\n                return false;\n            }\n            return this.extractHoistedCalls();\n        }\n        return false;\n    }\n    getHoistedCode() {\n        if (this.hoistedFunctionNames.length > 0) {\n            // This will be placed before module interop code, but that's fine since\n            // imports aren't allowed in module mock factories.\n            return this.hoistedFunctionNames.map((name) => `${name}();`).join(\"\");\n        }\n        return \"\";\n    }\n    /**\n     * Extracts any methods calls on the jest-object that should be hoisted.\n     *\n     * According to the jest docs, https://jestjs.io/docs/en/jest-object#jestmockmodulename-factory-options,\n     * mock, unmock, enableAutomock, disableAutomock, are the methods that should be hoisted.\n     *\n     * We do not apply the same checks of the arguments as babel-plugin-jest-hoist does.\n     */\n    extractHoistedCalls() {\n        // We're handling a chain of calls where `jest` may or may not need to be inserted for each call\n        // in the chain, so remove the initial `jest` to make the loop implementation cleaner.\n        this.tokens.removeToken();\n        // Track some state so that multiple non-hoisted chained calls in a row keep their chaining\n        // syntax.\n        let followsNonHoistedJestCall = false;\n        // Iterate through all chained calls on the jest object.\n        while (this.tokens.matches3(types_1.TokenType.dot, types_1.TokenType.name, types_1.TokenType.parenL)) {\n            const methodName = this.tokens.identifierNameAtIndex(this.tokens.currentIndex() + 1);\n            const shouldHoist = HOISTED_METHODS.includes(methodName);\n            if (shouldHoist) {\n                // We've matched e.g. `.mock(...)` or similar call.\n                // Replace the initial `.` with `function __jestHoist(){jest.`\n                const hoistedFunctionName = this.nameManager.claimFreeName(\"__jestHoist\");\n                this.hoistedFunctionNames.push(hoistedFunctionName);\n                this.tokens.replaceToken(`function ${hoistedFunctionName}(){${JEST_GLOBAL_NAME}.`);\n                this.tokens.copyToken();\n                this.tokens.copyToken();\n                this.rootTransformer.processBalancedCode();\n                this.tokens.copyExpectedToken(types_1.TokenType.parenR);\n                this.tokens.appendCode(\";}\");\n                followsNonHoistedJestCall = false;\n            }\n            else {\n                // This is a non-hoisted method, so just transform the code as usual.\n                if (followsNonHoistedJestCall) {\n                    // If we didn't hoist the previous call, we can leave the code as-is to chain off of the\n                    // previous method call. It's important to preserve the code here because we don't know\n                    // for sure that the method actually returned the jest object for chaining.\n                    this.tokens.copyToken();\n                }\n                else {\n                    // If we hoisted the previous call, we know it returns the jest object back, so we insert\n                    // the identifier `jest` to continue the chain.\n                    this.tokens.replaceToken(`${JEST_GLOBAL_NAME}.`);\n                }\n                this.tokens.copyToken();\n                this.tokens.copyToken();\n                this.rootTransformer.processBalancedCode();\n                this.tokens.copyExpectedToken(types_1.TokenType.parenR);\n                followsNonHoistedJestCall = true;\n            }\n        }\n        return true;\n    }\n}\nexports.default = JestHoistTransformer;\n","type":"js","dependency_paths":[["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["./Transformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/Transformer.js"]],"dependency_map":[],"exported":[{"type":"named","name":"JestHoistTransformer"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/transformers/JestHoistTransformer.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    function _optionalChain(ops) {\n        let lastAccessLHS = undefined;\n        let value = ops[0];\n        let i = 1;\n        while (i < ops.length) {\n            const op = ops[i];\n            const fn = ops[i + 1];\n            i += 2;\n            if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n                return undefined;\n            }\n            if (op === 'access' || op === 'optionalAccess') {\n                lastAccessLHS = value;\n                value = fn(value);\n            }\n            else if (op === 'call' || op === 'optionalCall') {\n                value = fn((...args) => value.call(lastAccessLHS, ...args));\n                lastAccessLHS = undefined;\n            }\n        }\n        return value;\n    }\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    const Transformer_1 = tslib_1.__importDefault(require(\"a46f119f74\") /* ./Transformer */);\n    const JEST_GLOBAL_NAME = \"jest\";\n    const HOISTED_METHODS = [\"mock\", \"unmock\", \"enableAutomock\", \"disableAutomock\"];\n    /**\n     * Implementation of babel-plugin-jest-hoist, which hoists up some jest method\n     * calls above the imports to allow them to override other imports.\n     *\n     * To preserve line numbers, rather than directly moving the jest.mock code, we\n     * wrap each invocation in a function statement and then call the function from\n     * the top of the file.\n     */\n    class JestHoistTransformer extends Transformer_1.default {\n        __init() { this.hoistedFunctionNames = []; }\n        constructor(rootTransformer, tokens, nameManager, importProcessor) {\n            super();\n            this.rootTransformer = rootTransformer;\n            this.tokens = tokens;\n            this.nameManager = nameManager;\n            this.importProcessor = importProcessor;\n            JestHoistTransformer.prototype.__init.call(this);\n            ;\n        }\n        process() {\n            if (this.tokens.currentToken().scopeDepth === 0 &&\n                this.tokens.matches4(types_1.TokenType.name, types_1.TokenType.dot, types_1.TokenType.name, types_1.TokenType.parenL) &&\n                this.tokens.identifierName() === JEST_GLOBAL_NAME) {\n                // TODO: This only works if imports transform is active, which it will be for jest.\n                //       But if jest adds module support and we no longer need the import transform, this needs fixing.\n                if (_optionalChain([this, 'access', _ => _.importProcessor, 'optionalAccess', _2 => _2.getGlobalNames, 'call', _3 => _3(), 'optionalAccess', _4 => _4.has, 'call', _5 => _5(JEST_GLOBAL_NAME)])) {\n                    return false;\n                }\n                return this.extractHoistedCalls();\n            }\n            return false;\n        }\n        getHoistedCode() {\n            if (this.hoistedFunctionNames.length > 0) {\n                // This will be placed before module interop code, but that's fine since\n                // imports aren't allowed in module mock factories.\n                return this.hoistedFunctionNames.map((name) => `${name}();`).join(\"\");\n            }\n            return \"\";\n        }\n        /**\n         * Extracts any methods calls on the jest-object that should be hoisted.\n         *\n         * According to the jest docs, https://jestjs.io/docs/en/jest-object#jestmockmodulename-factory-options,\n         * mock, unmock, enableAutomock, disableAutomock, are the methods that should be hoisted.\n         *\n         * We do not apply the same checks of the arguments as babel-plugin-jest-hoist does.\n         */\n        extractHoistedCalls() {\n            // We're handling a chain of calls where `jest` may or may not need to be inserted for each call\n            // in the chain, so remove the initial `jest` to make the loop implementation cleaner.\n            this.tokens.removeToken();\n            // Track some state so that multiple non-hoisted chained calls in a row keep their chaining\n            // syntax.\n            let followsNonHoistedJestCall = false;\n            // Iterate through all chained calls on the jest object.\n            while (this.tokens.matches3(types_1.TokenType.dot, types_1.TokenType.name, types_1.TokenType.parenL)) {\n                const methodName = this.tokens.identifierNameAtIndex(this.tokens.currentIndex() + 1);\n                const shouldHoist = HOISTED_METHODS.includes(methodName);\n                if (shouldHoist) {\n                    // We've matched e.g. `.mock(...)` or similar call.\n                    // Replace the initial `.` with `function __jestHoist(){jest.`\n                    const hoistedFunctionName = this.nameManager.claimFreeName(\"__jestHoist\");\n                    this.hoistedFunctionNames.push(hoistedFunctionName);\n                    this.tokens.replaceToken(`function ${hoistedFunctionName}(){${JEST_GLOBAL_NAME}.`);\n                    this.tokens.copyToken();\n                    this.tokens.copyToken();\n                    this.rootTransformer.processBalancedCode();\n                    this.tokens.copyExpectedToken(types_1.TokenType.parenR);\n                    this.tokens.appendCode(\";}\");\n                    followsNonHoistedJestCall = false;\n                }\n                else {\n                    // This is a non-hoisted method, so just transform the code as usual.\n                    if (followsNonHoistedJestCall) {\n                        // If we didn't hoist the previous call, we can leave the code as-is to chain off of the\n                        // previous method call. It's important to preserve the code here because we don't know\n                        // for sure that the method actually returned the jest object for chaining.\n                        this.tokens.copyToken();\n                    }\n                    else {\n                        // If we hoisted the previous call, we know it returns the jest object back, so we insert\n                        // the identifier `jest` to continue the chain.\n                        this.tokens.replaceToken(`${JEST_GLOBAL_NAME}.`);\n                    }\n                    this.tokens.copyToken();\n                    this.tokens.copyToken();\n                    this.rootTransformer.processBalancedCode();\n                    this.tokens.copyExpectedToken(types_1.TokenType.parenR);\n                    followsNonHoistedJestCall = true;\n                }\n            }\n            return true;\n        }\n    }\n    exports.default = JestHoistTransformer;\n}\n","min_source":"function _(e,t,o,s,n){s();const i=e(\"tslib\");const c=e(\"f0c35cbd76\"),a=i.__importDefault(e(\"a46f119f74\")),r=\"jest\",l=[\"mock\",\"unmock\",\"enableAutomock\",\"disableAutomock\"];class p extends a.default{__init(){this.hoistedFunctionNames=[]}constructor(e,t,o,s){super(),this.rootTransformer=e,this.tokens=t,this.nameManager=o,this.importProcessor=s,p.prototype.__init.call(this)}process(){return!(0!==this.tokens.currentToken().scopeDepth||!this.tokens.matches4(c.TokenType.name,c.TokenType.dot,c.TokenType.name,c.TokenType.parenL)||this.tokens.identifierName()!==r)&&(!function(e){let t,o=e[0],s=1;for(;s<e.length;){const n=e[s],i=e[s+1];if(s+=2,(\"optionalAccess\"===n||\"optionalCall\"===n)&&null==o)return;\"access\"===n||\"optionalAccess\"===n?(t=o,o=i(o)):\"call\"!==n&&\"optionalCall\"!==n||(o=i(((...e)=>o.call(t,...e))),t=void 0)}return o}([this,\"access\",e=>e.importProcessor,\"optionalAccess\",e=>e.getGlobalNames,\"call\",e=>e(),\"optionalAccess\",e=>e.has,\"call\",e=>e(r)])&&this.extractHoistedCalls())}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map((e=>`${e}();`)).join(\"\"):\"\"}extractHoistedCalls(){this.tokens.removeToken();let e=!1;for(;this.tokens.matches3(c.TokenType.dot,c.TokenType.name,c.TokenType.parenL);){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(l.includes(t)){const t=this.nameManager.claimFreeName(\"__jestHoist\");this.hoistedFunctionNames.push(t),this.tokens.replaceToken(`function ${t}(){${r}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(c.TokenType.parenR),this.tokens.appendCode(\";}\"),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken(`${r}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(c.TokenType.parenR),e=!0}return!0}}o.default=p}\n//# sourceMappingURL=JestHoistTransformer.min.js.map","min_map":"{\"version\":3,\"file\":\"JestHoistTransformer.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tslib_1\",\"types_1\",\"Transformer_1\",\"__importDefault\",\"JEST_GLOBAL_NAME\",\"HOISTED_METHODS\",\"JestHoistTransformer\",\"default\",\"__init\",\"this\",\"hoistedFunctionNames\",\"constructor\",\"rootTransformer\",\"tokens\",\"nameManager\",\"importProcessor\",\"super\",\"prototype\",\"call\",\"process\",\"currentToken\",\"scopeDepth\",\"matches4\",\"TokenType\",\"name\",\"dot\",\"parenL\",\"identifierName\",\"ops\",\"lastAccessLHS\",\"value\",\"i\",\"length\",\"op\",\"fn\",\"args\",\"undefined\",\"_optionalChain\",\"_2\",\"getGlobalNames\",\"_3\",\"_4\",\"has\",\"_5\",\"extractHoistedCalls\",\"getHoistedCode\",\"map\",\"join\",\"removeToken\",\"followsNonHoistedJestCall\",\"matches3\",\"methodName\",\"identifierNameAtIndex\",\"currentIndex\",\"includes\",\"hoistedFunctionName\",\"claimFreeName\",\"push\",\"replaceToken\",\"copyToken\",\"processBalancedCode\",\"copyExpectedToken\",\"parenR\",\"appendCode\"],\"sources\":[\"0\"],\"mappings\":\"AAA4D,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzGD,IACA,MAAME,EAAUL,EAAQ,SAuBxB,MAAMM,EAAUN,EAAQ,cAClBO,EAAgBF,EAAQG,gBAAgBR,EAAQ,eAChDS,EAAmB,OACnBC,EAAkB,CAAC,OAAQ,SAAU,iBAAkB,mBAS7D,MAAMC,UAA6BJ,EAAcK,QAC7C,MAAAC,GAAWC,KAAKC,qBAAuB,EAAI,CAC3C,WAAAC,CAAYC,EAAiBC,EAAQC,EAAaC,GAC9CC,QACAP,KAAKG,gBAAkBA,EACvBH,KAAKI,OAASA,EACdJ,KAAKK,YAAcA,EACnBL,KAAKM,gBAAkBA,EACvBT,EAAqBW,UAAUT,OAAOU,KAAKT,KAE/C,CACA,OAAAU,GACI,QAA8C,I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C3D/C,KAAKC,qBAAqB+C,KAAKF,GAC/B9C,KAAKI,OAAO6C,aAAa,YAAYH,OAAyBnD,MAC9DK,KAAKI,OAAO8C,YACZlD,KAAKI,OAAO8C,YACZlD,KAAKG,gBAAgBgD,sBACrBnD,KAAKI,OAAOgD,kBAAkB5D,EAAQsB,UAAUuC,QAChDrD,KAAKI,OAAOkD,WAAW,MACvBd,GAA4B,CAChC,MAGQA,EAIAxC,KAAKI,OAAO8C,YAKZlD,KAAKI,OAAO6C,aAAa,GAAGtD,MAEhCK,KAAKI,OAAO8C,YACZlD,KAAKI,OAAO8C,YACZlD,KAAKG,gBAAgBgD,sBACrBnD,KAAKI,OAAOgD,kBAAkB5D,EAAQsB,UAAUuC,QAChDb,GAA4B,CAEpC,CACA,OAAO,CACX,EAEJpD,EAAQU,QAAUD,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/NumericSeparatorTransformer.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/transformers/NumericSeparatorTransformer.js","resolution":"ESM","id":"09e20c28d7","hash":"09e20c28d7929b43d31d22ab195c33b0fa77ec0d8a7e3c374600e1ed0da15f09","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\nconst types_1 = require(\"../parser/tokenizer/types\");\nconst Transformer_1 = tslib_1.__importDefault(require(\"./Transformer\"));\nclass NumericSeparatorTransformer extends Transformer_1.default {\n    constructor(tokens) {\n        super();\n        this.tokens = tokens;\n        ;\n    }\n    process() {\n        if (this.tokens.matches1(types_1.TokenType.num)) {\n            const code = this.tokens.currentTokenCode();\n            if (code.includes(\"_\")) {\n                this.tokens.replaceToken(code.replace(/_/g, \"\"));\n                return true;\n            }\n        }\n        return false;\n    }\n}\nexports.default = NumericSeparatorTransformer;\n","type":"js","dependency_paths":[["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["./Transformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/Transformer.js"]],"dependency_map":[],"exported":[{"type":"named","name":"NumericSeparatorTransformer"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/transformers/NumericSeparatorTransformer.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    const Transformer_1 = tslib_1.__importDefault(require(\"a46f119f74\") /* ./Transformer */);\n    class NumericSeparatorTransformer extends Transformer_1.default {\n        constructor(tokens) {\n            super();\n            this.tokens = tokens;\n            ;\n        }\n        process() {\n            if (this.tokens.matches1(types_1.TokenType.num)) {\n                const code = this.tokens.currentTokenCode();\n                if (code.includes(\"_\")) {\n                    this.tokens.replaceToken(code.replace(/_/g, \"\"));\n                    return true;\n                }\n            }\n            return false;\n        }\n    }\n    exports.default = NumericSeparatorTransformer;\n}\n","min_source":"function _(e,t,s,n,o){n();const c=e(\"tslib\"),r=e(\"f0c35cbd76\"),u=c.__importDefault(e(\"a46f119f74\"));class i extends u.default{constructor(e){super(),this.tokens=e}process(){if(this.tokens.matches1(r.TokenType.num)){const e=this.tokens.currentTokenCode();if(e.includes(\"_\"))return this.tokens.replaceToken(e.replace(/_/g,\"\")),!0}return!1}}s.default=i}\n//# sourceMappingURL=NumericSeparatorTransformer.min.js.map","min_map":"{\"version\":3,\"file\":\"NumericSeparatorTransformer.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tslib_1\",\"types_1\",\"Transformer_1\",\"__importDefault\",\"NumericSeparatorTransformer\",\"default\",\"constructor\",\"tokens\",\"super\",\"this\",\"process\",\"matches1\",\"TokenType\",\"num\",\"code\",\"currentTokenCode\",\"includes\",\"replaceToken\",\"replace\"],\"sources\":[\"0\"],\"mappings\":\"AAAmE,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAChHD,IACA,MAAME,EAAUL,EAAQ,SAClBM,EAAUN,EAAQ,cAClBO,EAAgBF,EAAQG,gBAAgBR,EAAQ,eACtD,MAAMS,UAAoCF,EAAcG,QACpD,WAAAC,CAAYC,GACRC,QACAC,KAAKF,OAASA,CAElB,CACA,OAAAG,GACI,GAAID,KAAKF,OAAOI,SAASV,EAAQW,UAAUC,KAAM,CAC7C,MAAMC,EAAOL,KAAKF,OAAOQ,mBACzB,GAAID,EAAKE,SAAS,KAEd,OADAP,KAAKF,OAAOU,aAAaH,EAAKI,QAAQ,KAAM,MACrC,CAEf,CACA,OAAO,CACX,EAEJrB,EAAQQ,QAAUD,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/OptionalCatchBindingTransformer.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/transformers/OptionalCatchBindingTransformer.js","resolution":"ESM","id":"1dc037e3ca","hash":"1dc037e3ca10affb1547eedfa776a23be4c9b974c5a74f0afe3e78921377ae58","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\nconst types_1 = require(\"../parser/tokenizer/types\");\nconst Transformer_1 = tslib_1.__importDefault(require(\"./Transformer\"));\nclass OptionalCatchBindingTransformer extends Transformer_1.default {\n    constructor(tokens, nameManager) {\n        super();\n        this.tokens = tokens;\n        this.nameManager = nameManager;\n        ;\n    }\n    process() {\n        if (this.tokens.matches2(types_1.TokenType._catch, types_1.TokenType.braceL)) {\n            this.tokens.copyToken();\n            this.tokens.appendCode(` (${this.nameManager.claimFreeName(\"e\")})`);\n            return true;\n        }\n        return false;\n    }\n}\nexports.default = OptionalCatchBindingTransformer;\n","type":"js","dependency_paths":[["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["./Transformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/Transformer.js"]],"dependency_map":[],"exported":[{"type":"named","name":"OptionalCatchBindingTransformer"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/transformers/OptionalCatchBindingTransformer.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    const Transformer_1 = tslib_1.__importDefault(require(\"a46f119f74\") /* ./Transformer */);\n    class OptionalCatchBindingTransformer extends Transformer_1.default {\n        constructor(tokens, nameManager) {\n            super();\n            this.tokens = tokens;\n            this.nameManager = nameManager;\n            ;\n        }\n        process() {\n            if (this.tokens.matches2(types_1.TokenType._catch, types_1.TokenType.braceL)) {\n                this.tokens.copyToken();\n                this.tokens.appendCode(` (${this.nameManager.claimFreeName(\"e\")})`);\n                return true;\n            }\n            return false;\n        }\n    }\n    exports.default = OptionalCatchBindingTransformer;\n}\n","min_source":"function _(e,t,s,n,a){n();const o=e(\"tslib\"),c=e(\"f0c35cbd76\"),r=o.__importDefault(e(\"a46f119f74\"));class i extends r.default{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){return!!this.tokens.matches2(c.TokenType._catch,c.TokenType.braceL)&&(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName(\"e\")})`),!0)}}s.default=i}\n//# sourceMappingURL=OptionalCatchBindingTransformer.min.js.map","min_map":"{\"version\":3,\"file\":\"OptionalCatchBindingTransformer.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tslib_1\",\"types_1\",\"Transformer_1\",\"__importDefault\",\"OptionalCatchBindingTransformer\",\"default\",\"constructor\",\"tokens\",\"nameManager\",\"super\",\"this\",\"process\",\"matches2\",\"TokenType\",\"_catch\",\"braceL\",\"copyToken\",\"appendCode\",\"claimFreeName\"],\"sources\":[\"0\"],\"mappings\":\"AAAuE,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACpHD,IACA,MAAME,EAAUL,EAAQ,SAClBM,EAAUN,EAAQ,cAClBO,EAAgBF,EAAQG,gBAAgBR,EAAQ,eACtD,MAAMS,UAAwCF,EAAcG,QACxD,WAAAC,CAAYC,EAAQC,GAChBC,QACAC,KAAKH,OAASA,EACdG,KAAKF,YAAcA,CAEvB,CACA,OAAAG,GACI,QAAID,KAAKH,OAAOK,SAASX,EAAQY,UAAUC,OAAQb,EAAQY,UAAUE,UACjEL,KAAKH,OAAOS,YACZN,KAAKH,OAAOU,WAAW,KAAKP,KAAKF,YAAYU,cAAc,UACpD,EAGf,EAEJrB,EAAQQ,QAAUD,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/OptionalChainingNullishTransformer.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/transformers/OptionalChainingNullishTransformer.js","resolution":"ESM","id":"6995ead426","hash":"6995ead4265a95fb99b17d5e9ff6df83f9a325d785e3b323332b0b9ffdf5bf47","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\nconst types_1 = require(\"../parser/tokenizer/types\");\nconst Transformer_1 = tslib_1.__importDefault(require(\"./Transformer\"));\n/**\n * Transformer supporting the optional chaining and nullish coalescing operators.\n *\n * Tech plan here:\n * https://github.com/alangpierce/sucrase/wiki/Sucrase-Optional-Chaining-and-Nullish-Coalescing-Technical-Plan\n *\n * The prefix and suffix code snippets are handled by TokenProcessor, and this transformer handles\n * the operators themselves.\n */\nclass OptionalChainingNullishTransformer extends Transformer_1.default {\n    constructor(tokens, nameManager) {\n        super();\n        this.tokens = tokens;\n        this.nameManager = nameManager;\n        ;\n    }\n    process() {\n        if (this.tokens.matches1(types_1.TokenType.nullishCoalescing)) {\n            const token = this.tokens.currentToken();\n            if (this.tokens.tokens[token.nullishStartIndex].isAsyncOperation) {\n                this.tokens.replaceTokenTrimmingLeftWhitespace(\", async () => (\");\n            }\n            else {\n                this.tokens.replaceTokenTrimmingLeftWhitespace(\", () => (\");\n            }\n            return true;\n        }\n        if (this.tokens.matches1(types_1.TokenType._delete)) {\n            const nextToken = this.tokens.tokenAtRelativeIndex(1);\n            if (nextToken.isOptionalChainStart) {\n                this.tokens.removeInitialToken();\n                return true;\n            }\n        }\n        const token = this.tokens.currentToken();\n        const chainStart = token.subscriptStartIndex;\n        if (chainStart != null &&\n            this.tokens.tokens[chainStart].isOptionalChainStart &&\n            // Super subscripts can't be optional (since super is never null/undefined), and the syntax\n            // relies on the subscript being intact, so leave this token alone.\n            this.tokens.tokenAtRelativeIndex(-1).type !== types_1.TokenType._super) {\n            const param = this.nameManager.claimFreeName(\"_\");\n            let arrowStartSnippet;\n            if (chainStart > 0 &&\n                this.tokens.matches1AtIndex(chainStart - 1, types_1.TokenType._delete) &&\n                this.isLastSubscriptInChain()) {\n                // Delete operations are special: we already removed the delete keyword, and to still\n                // perform a delete, we need to insert a delete in the very last part of the chain, which\n                // in correct code will always be a property access.\n                arrowStartSnippet = `${param} => delete ${param}`;\n            }\n            else {\n                arrowStartSnippet = `${param} => ${param}`;\n            }\n            if (this.tokens.tokens[chainStart].isAsyncOperation) {\n                arrowStartSnippet = `async ${arrowStartSnippet}`;\n            }\n            if (this.tokens.matches2(types_1.TokenType.questionDot, types_1.TokenType.parenL) ||\n                this.tokens.matches2(types_1.TokenType.questionDot, types_1.TokenType.lessThan)) {\n                if (this.justSkippedSuper()) {\n                    this.tokens.appendCode(\".bind(this)\");\n                }\n                this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${arrowStartSnippet}`);\n            }\n            else if (this.tokens.matches2(types_1.TokenType.questionDot, types_1.TokenType.bracketL)) {\n                this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${arrowStartSnippet}`);\n            }\n            else if (this.tokens.matches1(types_1.TokenType.questionDot)) {\n                this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${arrowStartSnippet}.`);\n            }\n            else if (this.tokens.matches1(types_1.TokenType.dot)) {\n                this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${arrowStartSnippet}.`);\n            }\n            else if (this.tokens.matches1(types_1.TokenType.bracketL)) {\n                this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${arrowStartSnippet}[`);\n            }\n            else if (this.tokens.matches1(types_1.TokenType.parenL)) {\n                if (this.justSkippedSuper()) {\n                    this.tokens.appendCode(\".bind(this)\");\n                }\n                this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${arrowStartSnippet}(`);\n            }\n            else {\n                throw new Error(\"Unexpected subscript operator in optional chain.\");\n            }\n            return true;\n        }\n        return false;\n    }\n    /**\n     * Determine if the current token is the last of its chain, so that we know whether it's eligible\n     * to have a delete op inserted.\n     *\n     * We can do this by walking forward until we determine one way or another. Each\n     * isOptionalChainStart token must be paired with exactly one isOptionalChainEnd token after it in\n     * a nesting way, so we can track depth and walk to the end of the chain (the point where the\n     * depth goes negative) and see if any other subscript token is after us in the chain.\n     */\n    isLastSubscriptInChain() {\n        let depth = 0;\n        for (let i = this.tokens.currentIndex() + 1;; i++) {\n            if (i >= this.tokens.tokens.length) {\n                throw new Error(\"Reached the end of the code while finding the end of the access chain.\");\n            }\n            if (this.tokens.tokens[i].isOptionalChainStart) {\n                depth++;\n            }\n            else if (this.tokens.tokens[i].isOptionalChainEnd) {\n                depth--;\n            }\n            if (depth < 0) {\n                return true;\n            }\n            // This subscript token is a later one in the same chain.\n            if (depth === 0 && this.tokens.tokens[i].subscriptStartIndex != null) {\n                return false;\n            }\n        }\n    }\n    /**\n     * Determine if we are the open-paren in an expression like super.a()?.b.\n     *\n     * We can do this by walking backward to find the previous subscript. If that subscript was\n     * preceded by a super, then we must be the subscript after it, so if this is a call expression,\n     * we'll need to attach the right context.\n     */\n    justSkippedSuper() {\n        let depth = 0;\n        let index = this.tokens.currentIndex() - 1;\n        while (true) {\n            if (index < 0) {\n                throw new Error(\"Reached the start of the code while finding the start of the access chain.\");\n            }\n            if (this.tokens.tokens[index].isOptionalChainStart) {\n                depth--;\n            }\n            else if (this.tokens.tokens[index].isOptionalChainEnd) {\n                depth++;\n            }\n            if (depth < 0) {\n                return false;\n            }\n            // This subscript token is a later one in the same chain.\n            if (depth === 0 && this.tokens.tokens[index].subscriptStartIndex != null) {\n                return this.tokens.tokens[index - 1].type === types_1.TokenType._super;\n            }\n            index--;\n        }\n    }\n}\nexports.default = OptionalChainingNullishTransformer;\n","type":"js","dependency_paths":[["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["./Transformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/Transformer.js"]],"dependency_map":[],"exported":[{"type":"named","name":"OptionalChainingNullishTransformer"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/transformers/OptionalChainingNullishTransformer.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    const Transformer_1 = tslib_1.__importDefault(require(\"a46f119f74\") /* ./Transformer */);\n    /**\n     * Transformer supporting the optional chaining and nullish coalescing operators.\n     *\n     * Tech plan here:\n     * https://github.com/alangpierce/sucrase/wiki/Sucrase-Optional-Chaining-and-Nullish-Coalescing-Technical-Plan\n     *\n     * The prefix and suffix code snippets are handled by TokenProcessor, and this transformer handles\n     * the operators themselves.\n     */\n    class OptionalChainingNullishTransformer extends Transformer_1.default {\n        constructor(tokens, nameManager) {\n            super();\n            this.tokens = tokens;\n            this.nameManager = nameManager;\n            ;\n        }\n        process() {\n            if (this.tokens.matches1(types_1.TokenType.nullishCoalescing)) {\n                const token = this.tokens.currentToken();\n                if (this.tokens.tokens[token.nullishStartIndex].isAsyncOperation) {\n                    this.tokens.replaceTokenTrimmingLeftWhitespace(\", async () => (\");\n                }\n                else {\n                    this.tokens.replaceTokenTrimmingLeftWhitespace(\", () => (\");\n                }\n                return true;\n            }\n            if (this.tokens.matches1(types_1.TokenType._delete)) {\n                const nextToken = this.tokens.tokenAtRelativeIndex(1);\n                if (nextToken.isOptionalChainStart) {\n                    this.tokens.removeInitialToken();\n                    return true;\n                }\n            }\n            const token = this.tokens.currentToken();\n            const chainStart = token.subscriptStartIndex;\n            if (chainStart != null &&\n                this.tokens.tokens[chainStart].isOptionalChainStart &&\n                // Super subscripts can't be optional (since super is never null/undefined), and the syntax\n                // relies on the subscript being intact, so leave this token alone.\n                this.tokens.tokenAtRelativeIndex(-1).type !== types_1.TokenType._super) {\n                const param = this.nameManager.claimFreeName(\"_\");\n                let arrowStartSnippet;\n                if (chainStart > 0 &&\n                    this.tokens.matches1AtIndex(chainStart - 1, types_1.TokenType._delete) &&\n                    this.isLastSubscriptInChain()) {\n                    // Delete operations are special: we already removed the delete keyword, and to still\n                    // perform a delete, we need to insert a delete in the very last part of the chain, which\n                    // in correct code will always be a property access.\n                    arrowStartSnippet = `${param} => delete ${param}`;\n                }\n                else {\n                    arrowStartSnippet = `${param} => ${param}`;\n                }\n                if (this.tokens.tokens[chainStart].isAsyncOperation) {\n                    arrowStartSnippet = `async ${arrowStartSnippet}`;\n                }\n                if (this.tokens.matches2(types_1.TokenType.questionDot, types_1.TokenType.parenL) ||\n                    this.tokens.matches2(types_1.TokenType.questionDot, types_1.TokenType.lessThan)) {\n                    if (this.justSkippedSuper()) {\n                        this.tokens.appendCode(\".bind(this)\");\n                    }\n                    this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${arrowStartSnippet}`);\n                }\n                else if (this.tokens.matches2(types_1.TokenType.questionDot, types_1.TokenType.bracketL)) {\n                    this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${arrowStartSnippet}`);\n                }\n                else if (this.tokens.matches1(types_1.TokenType.questionDot)) {\n                    this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${arrowStartSnippet}.`);\n                }\n                else if (this.tokens.matches1(types_1.TokenType.dot)) {\n                    this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${arrowStartSnippet}.`);\n                }\n                else if (this.tokens.matches1(types_1.TokenType.bracketL)) {\n                    this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${arrowStartSnippet}[`);\n                }\n                else if (this.tokens.matches1(types_1.TokenType.parenL)) {\n                    if (this.justSkippedSuper()) {\n                        this.tokens.appendCode(\".bind(this)\");\n                    }\n                    this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${arrowStartSnippet}(`);\n                }\n                else {\n                    throw new Error(\"Unexpected subscript operator in optional chain.\");\n                }\n                return true;\n            }\n            return false;\n        }\n        /**\n         * Determine if the current token is the last of its chain, so that we know whether it's eligible\n         * to have a delete op inserted.\n         *\n         * We can do this by walking forward until we determine one way or another. Each\n         * isOptionalChainStart token must be paired with exactly one isOptionalChainEnd token after it in\n         * a nesting way, so we can track depth and walk to the end of the chain (the point where the\n         * depth goes negative) and see if any other subscript token is after us in the chain.\n         */\n        isLastSubscriptInChain() {\n            let depth = 0;\n            for (let i = this.tokens.currentIndex() + 1;; i++) {\n                if (i >= this.tokens.tokens.length) {\n                    throw new Error(\"Reached the end of the code while finding the end of the access chain.\");\n                }\n                if (this.tokens.tokens[i].isOptionalChainStart) {\n                    depth++;\n                }\n                else if (this.tokens.tokens[i].isOptionalChainEnd) {\n                    depth--;\n                }\n                if (depth < 0) {\n                    return true;\n                }\n                // This subscript token is a later one in the same chain.\n                if (depth === 0 && this.tokens.tokens[i].subscriptStartIndex != null) {\n                    return false;\n                }\n            }\n        }\n        /**\n         * Determine if we are the open-paren in an expression like super.a()?.b.\n         *\n         * We can do this by walking backward to find the previous subscript. If that subscript was\n         * preceded by a super, then we must be the subscript after it, so if this is a call expression,\n         * we'll need to attach the right context.\n         */\n        justSkippedSuper() {\n            let depth = 0;\n            let index = this.tokens.currentIndex() - 1;\n            while (true) {\n                if (index < 0) {\n                    throw new Error(\"Reached the start of the code while finding the start of the access chain.\");\n                }\n                if (this.tokens.tokens[index].isOptionalChainStart) {\n                    depth--;\n                }\n                else if (this.tokens.tokens[index].isOptionalChainEnd) {\n                    depth++;\n                }\n                if (depth < 0) {\n                    return false;\n                }\n                // This subscript token is a later one in the same chain.\n                if (depth === 0 && this.tokens.tokens[index].subscriptStartIndex != null) {\n                    return this.tokens.tokens[index - 1].type === types_1.TokenType._super;\n                }\n                index--;\n            }\n        }\n    }\n    exports.default = OptionalChainingNullishTransformer;\n}\n","min_source":"function _(e,t,s,n,i){n();const o=e(\"tslib\"),a=e(\"f0c35cbd76\"),h=o.__importDefault(e(\"a46f119f74\"));class r extends h.default{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){if(this.tokens.matches1(a.TokenType.nullishCoalescing)){const e=this.tokens.currentToken();return this.tokens.tokens[e.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(\", async () => (\"):this.tokens.replaceTokenTrimmingLeftWhitespace(\", () => (\"),!0}if(this.tokens.matches1(a.TokenType._delete)){if(this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0}const e=this.tokens.currentToken().subscriptStartIndex;if(null!=e&&this.tokens.tokens[e].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==a.TokenType._super){const t=this.nameManager.claimFreeName(\"_\");let s;if(s=e>0&&this.tokens.matches1AtIndex(e-1,a.TokenType._delete)&&this.isLastSubscriptInChain()?`${t} => delete ${t}`:`${t} => ${t}`,this.tokens.tokens[e].isAsyncOperation&&(s=`async ${s}`),this.tokens.matches2(a.TokenType.questionDot,a.TokenType.parenL)||this.tokens.matches2(a.TokenType.questionDot,a.TokenType.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(\".bind(this)\"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${s}`);else if(this.tokens.matches2(a.TokenType.questionDot,a.TokenType.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${s}`);else if(this.tokens.matches1(a.TokenType.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${s}.`);else if(this.tokens.matches1(a.TokenType.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${s}.`);else if(this.tokens.matches1(a.TokenType.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${s}[`);else{if(!this.tokens.matches1(a.TokenType.parenL))throw new Error(\"Unexpected subscript operator in optional chain.\");this.justSkippedSuper()&&this.tokens.appendCode(\".bind(this)\"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${s}(`)}return!0}return!1}isLastSubscriptInChain(){let e=0;for(let t=this.tokens.currentIndex()+1;;t++){if(t>=this.tokens.tokens.length)throw new Error(\"Reached the end of the code while finding the end of the access chain.\");if(this.tokens.tokens[t].isOptionalChainStart?e++:this.tokens.tokens[t].isOptionalChainEnd&&e--,e<0)return!0;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return!1}}justSkippedSuper(){let e=0,t=this.tokens.currentIndex()-1;for(;;){if(t<0)throw new Error(\"Reached the start of the code while finding the start of the access chain.\");if(this.tokens.tokens[t].isOptionalChainStart?e--:this.tokens.tokens[t].isOptionalChainEnd&&e++,e<0)return!1;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return this.tokens.tokens[t-1].type===a.TokenType._super;t--}}}s.default=r}\n//# sourceMappingURL=OptionalChainingNullishTransformer.min.js.map","min_map":"{\"version\":3,\"file\":\"OptionalChainingNullishTransformer.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tslib_1\",\"types_1\",\"Transformer_1\",\"__importDefault\",\"OptionalChainingNullishTransformer\",\"default\",\"constructor\",\"tokens\",\"nameManager\",\"super\",\"this\",\"process\",\"matches1\",\"TokenType\",\"nullishCoalescing\",\"token\",\"currentToken\",\"nullishStartIndex\",\"isAsyncOperation\",\"replaceTokenTrimmingLeftWhitespace\",\"_delete\",\"tokenAtRelativeIndex\",\"isOptionalChainStart\",\"removeInitialToken\",\"chainStart\",\"subscriptStartIndex\",\"type\",\"_super\",\"param\",\"claimFreeName\",\"arrowStartSnippet\",\"matches1AtIndex\",\"isLastSubscriptInChain\",\"matches2\",\"questionDot\",\"parenL\",\"lessThan\",\"justSkippedSuper\",\"appendCode\",\"bracketL\",\"dot\",\"Error\",\"depth\",\"i\",\"currentIndex\",\"length\",\"isOptionalChainEnd\",\"index\"],\"sources\":[\"0\"],\"mappings\":\"AAA0E,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACvHD,IACA,MAAME,EAAUL,EAAQ,SAClBM,EAAUN,EAAQ,cAClBO,EAAgBF,EAAQG,gBAAgBR,EAAQ,eAUtD,MAAMS,UAA2CF,EAAcG,QAC3D,WAAAC,CAAYC,EAAQC,GAChBC,QACAC,KAAKH,OAASA,EACdG,KAAKF,YAAcA,CAEvB,CACA,OAAAG,GACI,GAAID,KAAKH,OAAOK,SAASX,EAAQY,UAAUC,mBAAoB,CAC3D,MAAMC,EAAQL,KAAKH,OAAOS,eAO1B,OANIN,KAAKH,OAAOA,OAAOQ,EAAME,mBAAmBC,iBAC5CR,KAAKH,OAAOY,mCAAmC,mBAG/CT,KAAKH,OAAOY,mCAAmC,cAE5C,CACX,CACA,GAAIT,KAAKH,OAAOK,SAASX,EAAQY,UAAUO,SAAU,CAEjD,GADkBV,KAAKH,OAAOc,qBAAqB,GACrCC,qBAEV,OADAZ,KAAKH,OAAOgB,sBACL,CAEf,CACA,MACMC,EADQd,KAAKH,OAAOS,eACDS,oBACzB,GAAkB,MAAdD,GACAd,KAAKH,OAAOA,OAAOiB,GAAYF,sBAG/BZ,KAAKH,OAAOc,sBAAsB,GAAGK,OAASzB,EAAQY,UAAUc,OAAQ,CACxE,MAAMC,EAAQlB,KAAKF,YAAYqB,cAAc,KAC7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AAKH,OAAOA,OAAOoC,GAAGrB,qBACtBoB,IAEKhC,KAAKH,OAAOA,OAAOoC,GAAGG,oBAC3BJ,IAEAA,EAAQ,EACR,OAAO,EAGX,GAAc,IAAVA,GAA4D,MAA7ChC,KAAKH,OAAOA,OAAOoC,GAAGlB,oBACrC,OAAO,CAEf,CACJ,CAQA,gBAAAY,GACI,IAAIK,EAAQ,EACRK,EAAQrC,KAAKH,OAAOqC,eAAiB,EACzC,OAAa,CACT,GAAIG,EAAQ,EACR,MAAM,IAAIN,MAAM,8EAQpB,GANI/B,KAAKH,OAAOA,OAAOwC,GAAOzB,qBAC1BoB,IAEKhC,KAAKH,OAAOA,OAAOwC,GAAOD,oBAC/BJ,IAEAA,EAAQ,EACR,OAAO,EAGX,GAAc,IAAVA,GAAgE,MAAjDhC,KAAKH,OAAOA,OAAOwC,GAAOtB,oBACzC,OAAOf,KAAKH,OAAOA,OAAOwC,EAAQ,GAAGrB,OAASzB,EAAQY,UAAUc,OAEpEoB,GACJ,CACJ,EAEJlD,EAAQQ,QAAUD,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/ReactDisplayNameTransformer.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/transformers/ReactDisplayNameTransformer.js","resolution":"ESM","id":"9aad52e886","hash":"9aad52e8860bb46b02a42c1bbae6f685f2977d31b290c506dad1c1038010e3c7","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\nconst tokenizer_1 = require(\"../parser/tokenizer\");\nconst types_1 = require(\"../parser/tokenizer/types\");\nconst Transformer_1 = tslib_1.__importDefault(require(\"./Transformer\"));\n/**\n * Implementation of babel-plugin-transform-react-display-name, which adds a\n * display name to usages of React.createClass and createReactClass.\n */\nclass ReactDisplayNameTransformer extends Transformer_1.default {\n    constructor(rootTransformer, tokens, importProcessor, options) {\n        super();\n        this.rootTransformer = rootTransformer;\n        this.tokens = tokens;\n        this.importProcessor = importProcessor;\n        this.options = options;\n        ;\n    }\n    process() {\n        const startIndex = this.tokens.currentIndex();\n        if (this.tokens.identifierName() === \"createReactClass\") {\n            const newName = this.importProcessor && this.importProcessor.getIdentifierReplacement(\"createReactClass\");\n            if (newName) {\n                this.tokens.replaceToken(`(0, ${newName})`);\n            }\n            else {\n                this.tokens.copyToken();\n            }\n            this.tryProcessCreateClassCall(startIndex);\n            return true;\n        }\n        if (this.tokens.matches3(types_1.TokenType.name, types_1.TokenType.dot, types_1.TokenType.name) &&\n            this.tokens.identifierName() === \"React\" &&\n            this.tokens.identifierNameAtIndex(this.tokens.currentIndex() + 2) === \"createClass\") {\n            const newName = this.importProcessor\n                ? this.importProcessor.getIdentifierReplacement(\"React\") || \"React\"\n                : \"React\";\n            if (newName) {\n                this.tokens.replaceToken(newName);\n                this.tokens.copyToken();\n                this.tokens.copyToken();\n            }\n            else {\n                this.tokens.copyToken();\n                this.tokens.copyToken();\n                this.tokens.copyToken();\n            }\n            this.tryProcessCreateClassCall(startIndex);\n            return true;\n        }\n        return false;\n    }\n    /**\n     * This is called with the token position at the open-paren.\n     */\n    tryProcessCreateClassCall(startIndex) {\n        const displayName = this.findDisplayName(startIndex);\n        if (!displayName) {\n            return;\n        }\n        if (this.classNeedsDisplayName()) {\n            this.tokens.copyExpectedToken(types_1.TokenType.parenL);\n            this.tokens.copyExpectedToken(types_1.TokenType.braceL);\n            this.tokens.appendCode(`displayName: '${displayName}',`);\n            this.rootTransformer.processBalancedCode();\n            this.tokens.copyExpectedToken(types_1.TokenType.braceR);\n            this.tokens.copyExpectedToken(types_1.TokenType.parenR);\n        }\n    }\n    findDisplayName(startIndex) {\n        if (startIndex < 2) {\n            return null;\n        }\n        if (this.tokens.matches2AtIndex(startIndex - 2, types_1.TokenType.name, types_1.TokenType.eq)) {\n            // This is an assignment (or declaration) and the LHS is either an identifier or a member\n            // expression ending in an identifier, so use that identifier name.\n            return this.tokens.identifierNameAtIndex(startIndex - 2);\n        }\n        if (startIndex >= 2 &&\n            this.tokens.tokens[startIndex - 2].identifierRole === tokenizer_1.IdentifierRole.ObjectKey) {\n            // This is an object literal value.\n            return this.tokens.identifierNameAtIndex(startIndex - 2);\n        }\n        if (this.tokens.matches2AtIndex(startIndex - 2, types_1.TokenType._export, types_1.TokenType._default)) {\n            return this.getDisplayNameFromFilename();\n        }\n        return null;\n    }\n    getDisplayNameFromFilename() {\n        const filePath = this.options.filePath || \"unknown\";\n        const pathSegments = filePath.split(\"/\");\n        const filename = pathSegments[pathSegments.length - 1];\n        const dotIndex = filename.lastIndexOf(\".\");\n        const baseFilename = dotIndex === -1 ? filename : filename.slice(0, dotIndex);\n        if (baseFilename === \"index\" && pathSegments[pathSegments.length - 2]) {\n            return pathSegments[pathSegments.length - 2];\n        }\n        else {\n            return baseFilename;\n        }\n    }\n    /**\n     * We only want to add a display name when this is a function call containing\n     * one argument, which is an object literal without `displayName` as an\n     * existing key.\n     */\n    classNeedsDisplayName() {\n        let index = this.tokens.currentIndex();\n        if (!this.tokens.matches2(types_1.TokenType.parenL, types_1.TokenType.braceL)) {\n            return false;\n        }\n        // The block starts on the {, and we expect any displayName key to be in\n        // that context. We need to ignore other other contexts to avoid matching\n        // nested displayName keys.\n        const objectStartIndex = index + 1;\n        const objectContextId = this.tokens.tokens[objectStartIndex].contextId;\n        if (objectContextId == null) {\n            throw new Error(\"Expected non-null context ID on object open-brace.\");\n        }\n        for (; index < this.tokens.tokens.length; index++) {\n            const token = this.tokens.tokens[index];\n            if (token.type === types_1.TokenType.braceR && token.contextId === objectContextId) {\n                index++;\n                break;\n            }\n            if (this.tokens.identifierNameAtIndex(index) === \"displayName\" &&\n                this.tokens.tokens[index].identifierRole === tokenizer_1.IdentifierRole.ObjectKey &&\n                token.contextId === objectContextId) {\n                // We found a displayName key, so bail out.\n                return false;\n            }\n        }\n        if (index === this.tokens.tokens.length) {\n            throw new Error(\"Unexpected end of input when processing React class.\");\n        }\n        // If we got this far, we know we have createClass with an object with no\n        // display name, so we want to proceed as long as that was the only argument.\n        return (this.tokens.matches1AtIndex(index, types_1.TokenType.parenR) ||\n            this.tokens.matches2AtIndex(index, types_1.TokenType.comma, types_1.TokenType.parenR));\n    }\n}\nexports.default = ReactDisplayNameTransformer;\n","type":"js","dependency_paths":[["../parser/tokenizer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["./Transformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/Transformer.js"]],"dependency_map":[],"exported":[{"type":"named","name":"ReactDisplayNameTransformer"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/transformers/ReactDisplayNameTransformer.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const tokenizer_1 = require(\"bfb18d0576\") /* ../parser/tokenizer */;\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    const Transformer_1 = tslib_1.__importDefault(require(\"a46f119f74\") /* ./Transformer */);\n    /**\n     * Implementation of babel-plugin-transform-react-display-name, which adds a\n     * display name to usages of React.createClass and createReactClass.\n     */\n    class ReactDisplayNameTransformer extends Transformer_1.default {\n        constructor(rootTransformer, tokens, importProcessor, options) {\n            super();\n            this.rootTransformer = rootTransformer;\n            this.tokens = tokens;\n            this.importProcessor = importProcessor;\n            this.options = options;\n            ;\n        }\n        process() {\n            const startIndex = this.tokens.currentIndex();\n            if (this.tokens.identifierName() === \"createReactClass\") {\n                const newName = this.importProcessor && this.importProcessor.getIdentifierReplacement(\"createReactClass\");\n                if (newName) {\n                    this.tokens.replaceToken(`(0, ${newName})`);\n                }\n                else {\n                    this.tokens.copyToken();\n                }\n                this.tryProcessCreateClassCall(startIndex);\n                return true;\n            }\n            if (this.tokens.matches3(types_1.TokenType.name, types_1.TokenType.dot, types_1.TokenType.name) &&\n                this.tokens.identifierName() === \"React\" &&\n                this.tokens.identifierNameAtIndex(this.tokens.currentIndex() + 2) === \"createClass\") {\n                const newName = this.importProcessor\n                    ? this.importProcessor.getIdentifierReplacement(\"React\") || \"React\"\n                    : \"React\";\n                if (newName) {\n                    this.tokens.replaceToken(newName);\n                    this.tokens.copyToken();\n                    this.tokens.copyToken();\n                }\n                else {\n                    this.tokens.copyToken();\n                    this.tokens.copyToken();\n                    this.tokens.copyToken();\n                }\n                this.tryProcessCreateClassCall(startIndex);\n                return true;\n            }\n            return false;\n        }\n        /**\n         * This is called with the token position at the open-paren.\n         */\n        tryProcessCreateClassCall(startIndex) {\n            const displayName = this.findDisplayName(startIndex);\n            if (!displayName) {\n                return;\n            }\n            if (this.classNeedsDisplayName()) {\n                this.tokens.copyExpectedToken(types_1.TokenType.parenL);\n                this.tokens.copyExpectedToken(types_1.TokenType.braceL);\n                this.tokens.appendCode(`displayName: '${displayName}',`);\n                this.rootTransformer.processBalancedCode();\n                this.tokens.copyExpectedToken(types_1.TokenType.braceR);\n                this.tokens.copyExpectedToken(types_1.TokenType.parenR);\n            }\n        }\n        findDisplayName(startIndex) {\n            if (startIndex < 2) {\n                return null;\n            }\n            if (this.tokens.matches2AtIndex(startIndex - 2, types_1.TokenType.name, types_1.TokenType.eq)) {\n                // This is an assignment (or declaration) and the LHS is either an identifier or a member\n                // expression ending in an identifier, so use that identifier name.\n                return this.tokens.identifierNameAtIndex(startIndex - 2);\n            }\n            if (startIndex >= 2 &&\n                this.tokens.tokens[startIndex - 2].identifierRole === tokenizer_1.IdentifierRole.ObjectKey) {\n                // This is an object literal value.\n                return this.tokens.identifierNameAtIndex(startIndex - 2);\n            }\n            if (this.tokens.matches2AtIndex(startIndex - 2, types_1.TokenType._export, types_1.TokenType._default)) {\n                return this.getDisplayNameFromFilename();\n            }\n            return null;\n        }\n        getDisplayNameFromFilename() {\n            const filePath = this.options.filePath || \"unknown\";\n            const pathSegments = filePath.split(\"/\");\n            const filename = pathSegments[pathSegments.length - 1];\n            const dotIndex = filename.lastIndexOf(\".\");\n            const baseFilename = dotIndex === -1 ? filename : filename.slice(0, dotIndex);\n            if (baseFilename === \"index\" && pathSegments[pathSegments.length - 2]) {\n                return pathSegments[pathSegments.length - 2];\n            }\n            else {\n                return baseFilename;\n            }\n        }\n        /**\n         * We only want to add a display name when this is a function call containing\n         * one argument, which is an object literal without `displayName` as an\n         * existing key.\n         */\n        classNeedsDisplayName() {\n            let index = this.tokens.currentIndex();\n            if (!this.tokens.matches2(types_1.TokenType.parenL, types_1.TokenType.braceL)) {\n                return false;\n            }\n            // The block starts on the {, and we expect any displayName key to be in\n            // that context. We need to ignore other other contexts to avoid matching\n            // nested displayName keys.\n            const objectStartIndex = index + 1;\n            const objectContextId = this.tokens.tokens[objectStartIndex].contextId;\n            if (objectContextId == null) {\n                throw new Error(\"Expected non-null context ID on object open-brace.\");\n            }\n            for (; index < this.tokens.tokens.length; index++) {\n                const token = this.tokens.tokens[index];\n                if (token.type === types_1.TokenType.braceR && token.contextId === objectContextId) {\n                    index++;\n                    break;\n                }\n                if (this.tokens.identifierNameAtIndex(index) === \"displayName\" &&\n                    this.tokens.tokens[index].identifierRole === tokenizer_1.IdentifierRole.ObjectKey &&\n                    token.contextId === objectContextId) {\n                    // We found a displayName key, so bail out.\n                    return false;\n                }\n            }\n            if (index === this.tokens.tokens.length) {\n                throw new Error(\"Unexpected end of input when processing React class.\");\n            }\n            // If we got this far, we know we have createClass with an object with no\n            // display name, so we want to proceed as long as that was the only argument.\n            return (this.tokens.matches1AtIndex(index, types_1.TokenType.parenR) ||\n                this.tokens.matches2AtIndex(index, types_1.TokenType.comma, types_1.TokenType.parenR));\n        }\n    }\n    exports.default = ReactDisplayNameTransformer;\n}\n","min_source":"function _(e,t,s,n,o){n();const i=e(\"tslib\"),r=e(\"bfb18d0576\"),a=e(\"f0c35cbd76\"),c=i.__importDefault(e(\"a46f119f74\"));class k extends c.default{constructor(e,t,s,n){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=s,this.options=n}process(){const e=this.tokens.currentIndex();if(\"createReactClass\"===this.tokens.identifierName()){const t=this.importProcessor&&this.importProcessor.getIdentifierReplacement(\"createReactClass\");return t?this.tokens.replaceToken(`(0, ${t})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(a.TokenType.name,a.TokenType.dot,a.TokenType.name)&&\"React\"===this.tokens.identifierName()&&\"createClass\"===this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)){const t=this.importProcessor&&this.importProcessor.getIdentifierReplacement(\"React\")||\"React\";return t?(this.tokens.replaceToken(t),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(e),!0}return!1}tryProcessCreateClassCall(e){const t=this.findDisplayName(e);t&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(a.TokenType.parenL),this.tokens.copyExpectedToken(a.TokenType.braceL),this.tokens.appendCode(`displayName: '${t}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(a.TokenType.braceR),this.tokens.copyExpectedToken(a.TokenType.parenR))}findDisplayName(e){return e<2?null:this.tokens.matches2AtIndex(e-2,a.TokenType.name,a.TokenType.eq)||e>=2&&this.tokens.tokens[e-2].identifierRole===r.IdentifierRole.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,a.TokenType._export,a.TokenType._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const e=(this.options.filePath||\"unknown\").split(\"/\"),t=e[e.length-1],s=t.lastIndexOf(\".\"),n=-1===s?t:t.slice(0,s);return\"index\"===n&&e[e.length-2]?e[e.length-2]:n}classNeedsDisplayName(){let e=this.tokens.currentIndex();if(!this.tokens.matches2(a.TokenType.parenL,a.TokenType.braceL))return!1;const t=e+1,s=this.tokens.tokens[t].contextId;if(null==s)throw new Error(\"Expected non-null context ID on object open-brace.\");for(;e<this.tokens.tokens.length;e++){const t=this.tokens.tokens[e];if(t.type===a.TokenType.braceR&&t.contextId===s){e++;break}if(\"displayName\"===this.tokens.identifierNameAtIndex(e)&&this.tokens.tokens[e].identifierRole===r.IdentifierRole.ObjectKey&&t.contextId===s)return!1}if(e===this.tokens.tokens.length)throw new Error(\"Unexpected end of input when processing React class.\");return this.tokens.matches1AtIndex(e,a.TokenType.parenR)||this.tokens.matches2AtIndex(e,a.TokenType.comma,a.TokenType.parenR)}}s.default=k}\n//# sourceMappingURL=ReactDisplayNameTransformer.min.js.map","min_map":"{\"version\":3,\"file\":\"ReactDisplayNameTransformer.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tslib_1\",\"tokenizer_1\",\"types_1\",\"Transformer_1\",\"__importDefault\",\"ReactDisplayNameTransformer\",\"default\",\"constructor\",\"rootTransformer\",\"tokens\",\"importProcessor\",\"options\",\"super\",\"this\",\"process\",\"startIndex\",\"currentIndex\",\"identifierName\",\"newName\",\"getIdentifierReplacement\",\"replaceToken\",\"copyToken\",\"tryProcessCreateClassCall\",\"matches3\",\"TokenType\",\"name\",\"dot\",\"identifierNameAtIndex\",\"displayName\",\"findDisplayName\",\"classNeedsDisplayName\",\"copyExpectedToken\",\"parenL\",\"braceL\",\"appendCode\",\"processBalancedCode\",\"braceR\",\"parenR\",\"matches2AtIndex\",\"eq\",\"identifierRole\",\"IdentifierRole\",\"ObjectKey\",\"_export\",\"_default\",\"getDisplayNameFromFilename\",\"pathSegments\",\"filePath\",\"split\",\"filename\",\"length\",\"dotIndex\",\"lastIndexOf\",\"baseFilename\",\"slice\",\"index\",\"matches2\",\"objectStartIndex\",\"objectContextId\",\"contextId\",\"Error\",\"token\",\"type\",\"matches1AtIndex\",\"comma\"],\"sources\":[\"0\"],\"mappings\":\"AAAmE,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAChHD,IACA,MAAME,EAAUL,EAAQ,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B,EAAMF,YAAcD,EAAiB,CAChFH,IACA,KACJ,CACA,GAAiD,gBAA7C1C,KAAKJ,OAAOkB,sBAAsB4B,IAClC1C,KAAKJ,OAAOA,OAAO8C,GAAOf,iBAAmBvC,EAAYwC,eAAeC,WACxEmB,EAAMF,YAAcD,EAEpB,OAAO,CAEf,CACA,GAAIH,IAAU1C,KAAKJ,OAAOA,OAAOyC,OAC7B,MAAM,IAAIU,MAAM,wDAIpB,OAAQ/C,KAAKJ,OAAOsD,gBAAgBR,EAAOrD,EAAQsB,UAAUa,SACzDxB,KAAKJ,OAAO6B,gBAAgBiB,EAAOrD,EAAQsB,UAAUwC,MAAO9D,EAAQsB,UAAUa,OACtF,EAEJxC,EAAQS,QAAUD,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/ReactHotLoaderTransformer.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/transformers/ReactHotLoaderTransformer.js","resolution":"ESM","id":"c3f855a290","hash":"c3f855a290ad8a48e79fef1aa9a576c2d10a3f67f058172a9b38ccb28bba58ef","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\nconst tokenizer_1 = require(\"../parser/tokenizer\");\nconst Transformer_1 = tslib_1.__importDefault(require(\"./Transformer\"));\nclass ReactHotLoaderTransformer extends Transformer_1.default {\n    __init() { this.extractedDefaultExportName = null; }\n    constructor(tokens, filePath) {\n        super();\n        this.tokens = tokens;\n        this.filePath = filePath;\n        ReactHotLoaderTransformer.prototype.__init.call(this);\n        ;\n    }\n    setExtractedDefaultExportName(extractedDefaultExportName) {\n        this.extractedDefaultExportName = extractedDefaultExportName;\n    }\n    getPrefixCode() {\n        return `\n      (function () {\n        var enterModule = require('react-hot-loader').enterModule;\n        enterModule && enterModule(module);\n      })();`\n            .replace(/\\s+/g, \" \")\n            .trim();\n    }\n    getSuffixCode() {\n        const topLevelNames = new Set();\n        for (const token of this.tokens.tokens) {\n            if (!token.isType &&\n                (0, tokenizer_1.isTopLevelDeclaration)(token) &&\n                token.identifierRole !== tokenizer_1.IdentifierRole.ImportDeclaration) {\n                topLevelNames.add(this.tokens.identifierNameForToken(token));\n            }\n        }\n        const namesToRegister = Array.from(topLevelNames).map((name) => ({\n            variableName: name,\n            uniqueLocalName: name,\n        }));\n        if (this.extractedDefaultExportName) {\n            namesToRegister.push({\n                variableName: this.extractedDefaultExportName,\n                uniqueLocalName: \"default\",\n            });\n        }\n        return `\n;(function () {\n  var reactHotLoader = require('react-hot-loader').default;\n  var leaveModule = require('react-hot-loader').leaveModule;\n  if (!reactHotLoader) {\n    return;\n  }\n${namesToRegister\n            .map(({ variableName, uniqueLocalName }) => `  reactHotLoader.register(${variableName}, \"${uniqueLocalName}\", ${JSON.stringify(this.filePath || \"\")});`)\n            .join(\"\\n\")}\n  leaveModule(module);\n})();`;\n    }\n    process() {\n        return false;\n    }\n}\nexports.default = ReactHotLoaderTransformer;\n","type":"js","dependency_paths":[["../parser/tokenizer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/index.js"],["./Transformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/Transformer.js"]],"dependency_map":[],"exported":[{"type":"named","name":"ReactHotLoaderTransformer"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/transformers/ReactHotLoaderTransformer.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const tokenizer_1 = require(\"bfb18d0576\") /* ../parser/tokenizer */;\n    const Transformer_1 = tslib_1.__importDefault(require(\"a46f119f74\") /* ./Transformer */);\n    class ReactHotLoaderTransformer extends Transformer_1.default {\n        __init() { this.extractedDefaultExportName = null; }\n        constructor(tokens, filePath) {\n            super();\n            this.tokens = tokens;\n            this.filePath = filePath;\n            ReactHotLoaderTransformer.prototype.__init.call(this);\n            ;\n        }\n        setExtractedDefaultExportName(extractedDefaultExportName) {\n            this.extractedDefaultExportName = extractedDefaultExportName;\n        }\n        getPrefixCode() {\n            return `\n      (function () {\n        var enterModule = require('react-hot-loader').enterModule;\n        enterModule && enterModule(module);\n      })();`\n                .replace(/\\s+/g, \" \")\n                .trim();\n        }\n        getSuffixCode() {\n            const topLevelNames = new Set();\n            for (const token of this.tokens.tokens) {\n                if (!token.isType &&\n                    (0, tokenizer_1.isTopLevelDeclaration)(token) &&\n                    token.identifierRole !== tokenizer_1.IdentifierRole.ImportDeclaration) {\n                    topLevelNames.add(this.tokens.identifierNameForToken(token));\n                }\n            }\n            const namesToRegister = Array.from(topLevelNames).map((name) => ({\n                variableName: name,\n                uniqueLocalName: name,\n            }));\n            if (this.extractedDefaultExportName) {\n                namesToRegister.push({\n                    variableName: this.extractedDefaultExportName,\n                    uniqueLocalName: \"default\",\n                });\n            }\n            return `\n;(function () {\n  var reactHotLoader = require('react-hot-loader').default;\n  var leaveModule = require('react-hot-loader').leaveModule;\n  if (!reactHotLoader) {\n    return;\n  }\n${namesToRegister\n                .map(({ variableName, uniqueLocalName }) => `  reactHotLoader.register(${variableName}, \"${uniqueLocalName}\", ${JSON.stringify(this.filePath || \"\")});`)\n                .join(\"\\n\")}\n  leaveModule(module);\n})();`;\n        }\n        process() {\n            return false;\n        }\n    }\n    exports.default = ReactHotLoaderTransformer;\n}\n","min_source":"function _(e,t,r,a,o){a();const n=e(\"tslib\"),i=e(\"bfb18d0576\"),l=n.__importDefault(e(\"a46f119f74\"));class u extends l.default{__init(){this.extractedDefaultExportName=null}constructor(e,t){super(),this.tokens=e,this.filePath=t,u.prototype.__init.call(this)}setExtractedDefaultExportName(e){this.extractedDefaultExportName=e}getPrefixCode(){return\"\\n      (function () {\\n        var enterModule = require('react-hot-loader').enterModule;\\n        enterModule && enterModule(module);\\n      })();\".replace(/\\s+/g,\" \").trim()}getSuffixCode(){const e=new Set;for(const t of this.tokens.tokens)!t.isType&&(0,i.isTopLevelDeclaration)(t)&&t.identifierRole!==i.IdentifierRole.ImportDeclaration&&e.add(this.tokens.identifierNameForToken(t));const t=Array.from(e).map((e=>({variableName:e,uniqueLocalName:e})));return this.extractedDefaultExportName&&t.push({variableName:this.extractedDefaultExportName,uniqueLocalName:\"default\"}),`\\n;(function () {\\n  var reactHotLoader = require('react-hot-loader').default;\\n  var leaveModule = require('react-hot-loader').leaveModule;\\n  if (!reactHotLoader) {\\n    return;\\n  }\\n${t.map((({variableName:e,uniqueLocalName:t})=>`  reactHotLoader.register(${e}, \"${t}\", ${JSON.stringify(this.filePath||\"\")});`)).join(\"\\n\")}\\n  leaveModule(module);\\n})();`}process(){return!1}}r.default=u}\n//# sourceMappingURL=ReactHotLoaderTransformer.min.js.map","min_map":"{\"version\":3,\"file\":\"ReactHotLoaderTransformer.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tslib_1\",\"tokenizer_1\",\"Transformer_1\",\"__importDefault\",\"ReactHotLoaderTransformer\",\"default\",\"__init\",\"this\",\"extractedDefaultExportName\",\"constructor\",\"tokens\",\"filePath\",\"super\",\"prototype\",\"call\",\"setExtractedDefaultExportName\",\"getPrefixCode\",\"replace\",\"trim\",\"getSuffixCode\",\"topLevelNames\",\"Set\",\"token\",\"isType\",\"isTopLevelDeclaration\",\"identifierRole\",\"IdentifierRole\",\"ImportDeclaration\",\"add\",\"identifierNameForToken\",\"namesToRegister\",\"Array\",\"from\",\"map\",\"name\",\"variableName\",\"uniqueLocalName\",\"push\",\"JSON\",\"stringify\",\"join\",\"process\"],\"sources\":[\"0\"],\"mappings\":\"AAAiE,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC9GD,IACA,MAAME,EAAUL,EAAQ,SAClBM,EAAcN,EAAQ,cACtBO,EAAgBF,EAAQG,gBAAgBR,EAAQ,eACtD,MAAMS,UAAkCF,EAAcG,QAClD,MAAAC,GAAWC,KAAKC,2BAA6B,IAAM,CACnD,WAAAC,CAAYC,EAAQC,GAChBC,QACAL,KAAKG,OAASA,EACdH,KAAKI,SAAWA,EAChBP,EAA0BS,UAAUP,OAAOQ,KAAKP,KAEpD,CACA,6BAAAQ,CAA8BP,GAC1BD,KAAKC,2BAA6BA,CACtC,CACA,aAAAQ,GACI,MAAO,uJAKFC,QAAQ,OAAQ,KAChBC,MACT,CACA,aAAAC,GACI,MAAMC,EAAgB,IAAIC,IAC1B,IAAK,MAAMC,KAASf,KAAKG,OAAOA,QACvBY,EAAMC,SACP,EAAItB,EAAYuB,uBAAuBF,IACvCA,EAAMG,iBAAmBxB,EAAYyB,eAAeC,mBACpDP,EAAcQ,IAAIrB,KAAKG,OAAOmB,uBAAuBP,IAG7D,MAAMQ,EAAkBC,MAAMC,KAAKZ,GAAea,KAAKC,IAAS,CAC5DC,aAAcD,EACdE,gBAAiBF,MAQrB,OANI3B,KAAKC,4BACLsB,EAAgBO,KAAK,CACjBF,aAAc5B,KAAKC,2BACnB4B,gBAAiB,YAGlB,6LAOjBN,EACeG,KAAI,EAAGE,eAAcC,qBAAsB,6BAA6BD,OAAkBC,OAAqBE,KAAKC,UAAUhC,KAAKI,UAAY,UAC/I6B,KAAK,sCAGd,CACA,OAAAC,GACI,OAAO,CACX,EAEJ5C,EAAQQ,QAAUD,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/TypeScriptTransformer.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/transformers/TypeScriptTransformer.js","resolution":"ESM","id":"581b1c506a","hash":"581b1c506a06dcfea72f0dad024793e7c6ca6fc13c036e40ba4019485dbf777c","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\nconst types_1 = require(\"../parser/tokenizer/types\");\nconst isIdentifier_1 = tslib_1.__importDefault(require(\"../util/isIdentifier\"));\nconst Transformer_1 = tslib_1.__importDefault(require(\"./Transformer\"));\nclass TypeScriptTransformer extends Transformer_1.default {\n    constructor(rootTransformer, tokens, isImportsTransformEnabled) {\n        super();\n        this.rootTransformer = rootTransformer;\n        this.tokens = tokens;\n        this.isImportsTransformEnabled = isImportsTransformEnabled;\n        ;\n    }\n    process() {\n        if (this.rootTransformer.processPossibleArrowParamEnd() ||\n            this.rootTransformer.processPossibleAsyncArrowWithTypeParams() ||\n            this.rootTransformer.processPossibleTypeRange()) {\n            return true;\n        }\n        if (this.tokens.matches1(types_1.TokenType._public) ||\n            this.tokens.matches1(types_1.TokenType._protected) ||\n            this.tokens.matches1(types_1.TokenType._private) ||\n            this.tokens.matches1(types_1.TokenType._abstract) ||\n            this.tokens.matches1(types_1.TokenType._readonly) ||\n            this.tokens.matches1(types_1.TokenType._override) ||\n            this.tokens.matches1(types_1.TokenType.nonNullAssertion)) {\n            this.tokens.removeInitialToken();\n            return true;\n        }\n        if (this.tokens.matches1(types_1.TokenType._enum) || this.tokens.matches2(types_1.TokenType._const, types_1.TokenType._enum)) {\n            this.processEnum();\n            return true;\n        }\n        if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._enum) ||\n            this.tokens.matches3(types_1.TokenType._export, types_1.TokenType._const, types_1.TokenType._enum)) {\n            this.processEnum(true);\n            return true;\n        }\n        return false;\n    }\n    processEnum(isExport = false) {\n        // We might have \"export const enum\", so just remove all relevant tokens.\n        this.tokens.removeInitialToken();\n        while (this.tokens.matches1(types_1.TokenType._const) || this.tokens.matches1(types_1.TokenType._enum)) {\n            this.tokens.removeToken();\n        }\n        const enumName = this.tokens.identifierName();\n        this.tokens.removeToken();\n        if (isExport && !this.isImportsTransformEnabled) {\n            this.tokens.appendCode(\"export \");\n        }\n        this.tokens.appendCode(`var ${enumName}; (function (${enumName})`);\n        this.tokens.copyExpectedToken(types_1.TokenType.braceL);\n        this.processEnumBody(enumName);\n        this.tokens.copyExpectedToken(types_1.TokenType.braceR);\n        if (isExport && this.isImportsTransformEnabled) {\n            this.tokens.appendCode(`)(${enumName} || (exports.${enumName} = ${enumName} = {}));`);\n        }\n        else {\n            this.tokens.appendCode(`)(${enumName} || (${enumName} = {}));`);\n        }\n    }\n    /**\n     * Transform an enum into equivalent JS. This has complexity in a few places:\n     * - TS allows string enums, numeric enums, and a mix of the two styles within an enum.\n     * - Enum keys are allowed to be referenced in later enum values.\n     * - Enum keys are allowed to be strings.\n     * - When enum values are omitted, they should follow an auto-increment behavior.\n     */\n    processEnumBody(enumName) {\n        // Code that can be used to reference the previous enum member, or null if this is the first\n        // enum member.\n        let previousValueCode = null;\n        while (true) {\n            if (this.tokens.matches1(types_1.TokenType.braceR)) {\n                break;\n            }\n            const { nameStringCode, variableName } = this.extractEnumKeyInfo(this.tokens.currentToken());\n            this.tokens.removeInitialToken();\n            if (this.tokens.matches3(types_1.TokenType.eq, types_1.TokenType.string, types_1.TokenType.comma) ||\n                this.tokens.matches3(types_1.TokenType.eq, types_1.TokenType.string, types_1.TokenType.braceR)) {\n                this.processStringLiteralEnumMember(enumName, nameStringCode, variableName);\n            }\n            else if (this.tokens.matches1(types_1.TokenType.eq)) {\n                this.processExplicitValueEnumMember(enumName, nameStringCode, variableName);\n            }\n            else {\n                this.processImplicitValueEnumMember(enumName, nameStringCode, variableName, previousValueCode);\n            }\n            if (this.tokens.matches1(types_1.TokenType.comma)) {\n                this.tokens.removeToken();\n            }\n            if (variableName != null) {\n                previousValueCode = variableName;\n            }\n            else {\n                previousValueCode = `${enumName}[${nameStringCode}]`;\n            }\n        }\n    }\n    /**\n     * Detect name information about this enum key, which will be used to determine which code to emit\n     * and whether we should declare a variable as part of this declaration.\n     *\n     * Some cases to keep in mind:\n     * - Enum keys can be implicitly referenced later, e.g. `X = 1, Y = X`. In Sucrase, we implement\n     *   this by declaring a variable `X` so that later expressions can use it.\n     * - In addition to the usual identifier key syntax, enum keys are allowed to be string literals,\n     *   e.g. `\"hello world\" = 3,`. Template literal syntax is NOT allowed.\n     * - Even if the enum key is defined as a string literal, it may still be referenced by identifier\n     *   later, e.g. `\"X\" = 1, Y = X`. That means that we need to detect whether or not a string\n     *   literal is identifier-like and emit a variable if so, even if the declaration did not use an\n     *   identifier.\n     * - Reserved keywords like `break` are valid enum keys, but are not valid to be referenced later\n     *   and would be a syntax error if we emitted a variable, so we need to skip the variable\n     *   declaration in those cases.\n     *\n     * The variableName return value captures these nuances: if non-null, we can and must emit a\n     * variable declaration, and if null, we can't and shouldn't.\n     */\n    extractEnumKeyInfo(nameToken) {\n        if (nameToken.type === types_1.TokenType.name) {\n            const name = this.tokens.identifierNameForToken(nameToken);\n            return {\n                nameStringCode: `\"${name}\"`,\n                variableName: (0, isIdentifier_1.default)(name) ? name : null,\n            };\n        }\n        else if (nameToken.type === types_1.TokenType.string) {\n            const name = this.tokens.stringValueForToken(nameToken);\n            return {\n                nameStringCode: this.tokens.code.slice(nameToken.start, nameToken.end),\n                variableName: (0, isIdentifier_1.default)(name) ? name : null,\n            };\n        }\n        else {\n            throw new Error(\"Expected name or string at beginning of enum element.\");\n        }\n    }\n    /**\n     * Handle an enum member where the RHS is just a string literal (not omitted, not a number, and\n     * not a complex expression). This is the typical form for TS string enums, and in this case, we\n     * do *not* create a reverse mapping.\n     *\n     * This is called after deleting the key token, when the token processor is at the equals sign.\n     *\n     * Example 1:\n     * someKey = \"some value\"\n     * ->\n     * const someKey = \"some value\"; MyEnum[\"someKey\"] = someKey;\n     *\n     * Example 2:\n     * \"some key\" = \"some value\"\n     * ->\n     * MyEnum[\"some key\"] = \"some value\";\n     */\n    processStringLiteralEnumMember(enumName, nameStringCode, variableName) {\n        if (variableName != null) {\n            this.tokens.appendCode(`const ${variableName}`);\n            // =\n            this.tokens.copyToken();\n            // value string\n            this.tokens.copyToken();\n            this.tokens.appendCode(`; ${enumName}[${nameStringCode}] = ${variableName};`);\n        }\n        else {\n            this.tokens.appendCode(`${enumName}[${nameStringCode}]`);\n            // =\n            this.tokens.copyToken();\n            // value string\n            this.tokens.copyToken();\n            this.tokens.appendCode(\";\");\n        }\n    }\n    /**\n     * Handle an enum member initialized with an expression on the right-hand side (other than a\n     * string literal). In these cases, we should transform the expression and emit code that sets up\n     * a reverse mapping.\n     *\n     * The TypeScript implementation of this operation distinguishes between expressions that can be\n     * \"constant folded\" at compile time (i.e. consist of number literals and simple math operations\n     * on those numbers) and ones that are dynamic. For constant expressions, it emits the resolved\n     * numeric value, and auto-incrementing is only allowed in that case. Evaluating expressions at\n     * compile time would add significant complexity to Sucrase, so Sucrase instead leaves the\n     * expression as-is, and will later emit something like `MyEnum[\"previousKey\"] + 1` to implement\n     * auto-incrementing.\n     *\n     * This is called after deleting the key token, when the token processor is at the equals sign.\n     *\n     * Example 1:\n     * someKey = 1 + 1\n     * ->\n     * const someKey = 1 + 1; MyEnum[MyEnum[\"someKey\"] = someKey] = \"someKey\";\n     *\n     * Example 2:\n     * \"some key\" = 1 + 1\n     * ->\n     * MyEnum[MyEnum[\"some key\"] = 1 + 1] = \"some key\";\n     */\n    processExplicitValueEnumMember(enumName, nameStringCode, variableName) {\n        const rhsEndIndex = this.tokens.currentToken().rhsEndIndex;\n        if (rhsEndIndex == null) {\n            throw new Error(\"Expected rhsEndIndex on enum assign.\");\n        }\n        if (variableName != null) {\n            this.tokens.appendCode(`const ${variableName}`);\n            this.tokens.copyToken();\n            while (this.tokens.currentIndex() < rhsEndIndex) {\n                this.rootTransformer.processToken();\n            }\n            this.tokens.appendCode(`; ${enumName}[${enumName}[${nameStringCode}] = ${variableName}] = ${nameStringCode};`);\n        }\n        else {\n            this.tokens.appendCode(`${enumName}[${enumName}[${nameStringCode}]`);\n            this.tokens.copyToken();\n            while (this.tokens.currentIndex() < rhsEndIndex) {\n                this.rootTransformer.processToken();\n            }\n            this.tokens.appendCode(`] = ${nameStringCode};`);\n        }\n    }\n    /**\n     * Handle an enum member with no right-hand side expression. In this case, the value is the\n     * previous value plus 1, or 0 if there was no previous value. We should also always emit a\n     * reverse mapping.\n     *\n     * Example 1:\n     * someKey2\n     * ->\n     * const someKey2 = someKey1 + 1; MyEnum[MyEnum[\"someKey2\"] = someKey2] = \"someKey2\";\n     *\n     * Example 2:\n     * \"some key 2\"\n     * ->\n     * MyEnum[MyEnum[\"some key 2\"] = someKey1 + 1] = \"some key 2\";\n     */\n    processImplicitValueEnumMember(enumName, nameStringCode, variableName, previousValueCode) {\n        let valueCode = previousValueCode != null ? `${previousValueCode} + 1` : \"0\";\n        if (variableName != null) {\n            this.tokens.appendCode(`const ${variableName} = ${valueCode}; `);\n            valueCode = variableName;\n        }\n        this.tokens.appendCode(`${enumName}[${enumName}[${nameStringCode}] = ${valueCode}] = ${nameStringCode};`);\n    }\n}\nexports.default = TypeScriptTransformer;\n","type":"js","dependency_paths":[["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["../util/isIdentifier","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/isIdentifier.js"],["./Transformer","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/transformers/Transformer.js"]],"dependency_map":[],"exported":[{"type":"named","name":"TypeScriptTransformer"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/transformers/TypeScriptTransformer.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    const isIdentifier_1 = tslib_1.__importDefault(require(\"5e8df41f33\") /* ../util/isIdentifier */);\n    const Transformer_1 = tslib_1.__importDefault(require(\"a46f119f74\") /* ./Transformer */);\n    class TypeScriptTransformer extends Transformer_1.default {\n        constructor(rootTransformer, tokens, isImportsTransformEnabled) {\n            super();\n            this.rootTransformer = rootTransformer;\n            this.tokens = tokens;\n            this.isImportsTransformEnabled = isImportsTransformEnabled;\n            ;\n        }\n        process() {\n            if (this.rootTransformer.processPossibleArrowParamEnd() ||\n                this.rootTransformer.processPossibleAsyncArrowWithTypeParams() ||\n                this.rootTransformer.processPossibleTypeRange()) {\n                return true;\n            }\n            if (this.tokens.matches1(types_1.TokenType._public) ||\n                this.tokens.matches1(types_1.TokenType._protected) ||\n                this.tokens.matches1(types_1.TokenType._private) ||\n                this.tokens.matches1(types_1.TokenType._abstract) ||\n                this.tokens.matches1(types_1.TokenType._readonly) ||\n                this.tokens.matches1(types_1.TokenType._override) ||\n                this.tokens.matches1(types_1.TokenType.nonNullAssertion)) {\n                this.tokens.removeInitialToken();\n                return true;\n            }\n            if (this.tokens.matches1(types_1.TokenType._enum) || this.tokens.matches2(types_1.TokenType._const, types_1.TokenType._enum)) {\n                this.processEnum();\n                return true;\n            }\n            if (this.tokens.matches2(types_1.TokenType._export, types_1.TokenType._enum) ||\n                this.tokens.matches3(types_1.TokenType._export, types_1.TokenType._const, types_1.TokenType._enum)) {\n                this.processEnum(true);\n                return true;\n            }\n            return false;\n        }\n        processEnum(isExport = false) {\n            // We might have \"export const enum\", so just remove all relevant tokens.\n            this.tokens.removeInitialToken();\n            while (this.tokens.matches1(types_1.TokenType._const) || this.tokens.matches1(types_1.TokenType._enum)) {\n                this.tokens.removeToken();\n            }\n            const enumName = this.tokens.identifierName();\n            this.tokens.removeToken();\n            if (isExport && !this.isImportsTransformEnabled) {\n                this.tokens.appendCode(\"export \");\n            }\n            this.tokens.appendCode(`var ${enumName}; (function (${enumName})`);\n            this.tokens.copyExpectedToken(types_1.TokenType.braceL);\n            this.processEnumBody(enumName);\n            this.tokens.copyExpectedToken(types_1.TokenType.braceR);\n            if (isExport && this.isImportsTransformEnabled) {\n                this.tokens.appendCode(`)(${enumName} || (exports.${enumName} = ${enumName} = {}));`);\n            }\n            else {\n                this.tokens.appendCode(`)(${enumName} || (${enumName} = {}));`);\n            }\n        }\n        /**\n         * Transform an enum into equivalent JS. This has complexity in a few places:\n         * - TS allows string enums, numeric enums, and a mix of the two styles within an enum.\n         * - Enum keys are allowed to be referenced in later enum values.\n         * - Enum keys are allowed to be strings.\n         * - When enum values are omitted, they should follow an auto-increment behavior.\n         */\n        processEnumBody(enumName) {\n            // Code that can be used to reference the previous enum member, or null if this is the first\n            // enum member.\n            let previousValueCode = null;\n            while (true) {\n                if (this.tokens.matches1(types_1.TokenType.braceR)) {\n                    break;\n                }\n                const { nameStringCode, variableName } = this.extractEnumKeyInfo(this.tokens.currentToken());\n                this.tokens.removeInitialToken();\n                if (this.tokens.matches3(types_1.TokenType.eq, types_1.TokenType.string, types_1.TokenType.comma) ||\n                    this.tokens.matches3(types_1.TokenType.eq, types_1.TokenType.string, types_1.TokenType.braceR)) {\n                    this.processStringLiteralEnumMember(enumName, nameStringCode, variableName);\n                }\n                else if (this.tokens.matches1(types_1.TokenType.eq)) {\n                    this.processExplicitValueEnumMember(enumName, nameStringCode, variableName);\n                }\n                else {\n                    this.processImplicitValueEnumMember(enumName, nameStringCode, variableName, previousValueCode);\n                }\n                if (this.tokens.matches1(types_1.TokenType.comma)) {\n                    this.tokens.removeToken();\n                }\n                if (variableName != null) {\n                    previousValueCode = variableName;\n                }\n                else {\n                    previousValueCode = `${enumName}[${nameStringCode}]`;\n                }\n            }\n        }\n        /**\n         * Detect name information about this enum key, which will be used to determine which code to emit\n         * and whether we should declare a variable as part of this declaration.\n         *\n         * Some cases to keep in mind:\n         * - Enum keys can be implicitly referenced later, e.g. `X = 1, Y = X`. In Sucrase, we implement\n         *   this by declaring a variable `X` so that later expressions can use it.\n         * - In addition to the usual identifier key syntax, enum keys are allowed to be string literals,\n         *   e.g. `\"hello world\" = 3,`. Template literal syntax is NOT allowed.\n         * - Even if the enum key is defined as a string literal, it may still be referenced by identifier\n         *   later, e.g. `\"X\" = 1, Y = X`. That means that we need to detect whether or not a string\n         *   literal is identifier-like and emit a variable if so, even if the declaration did not use an\n         *   identifier.\n         * - Reserved keywords like `break` are valid enum keys, but are not valid to be referenced later\n         *   and would be a syntax error if we emitted a variable, so we need to skip the variable\n         *   declaration in those cases.\n         *\n         * The variableName return value captures these nuances: if non-null, we can and must emit a\n         * variable declaration, and if null, we can't and shouldn't.\n         */\n        extractEnumKeyInfo(nameToken) {\n            if (nameToken.type === types_1.TokenType.name) {\n                const name = this.tokens.identifierNameForToken(nameToken);\n                return {\n                    nameStringCode: `\"${name}\"`,\n                    variableName: (0, isIdentifier_1.default)(name) ? name : null,\n                };\n            }\n            else if (nameToken.type === types_1.TokenType.string) {\n                const name = this.tokens.stringValueForToken(nameToken);\n                return {\n                    nameStringCode: this.tokens.code.slice(nameToken.start, nameToken.end),\n                    variableName: (0, isIdentifier_1.default)(name) ? name : null,\n                };\n            }\n            else {\n                throw new Error(\"Expected name or string at beginning of enum element.\");\n            }\n        }\n        /**\n         * Handle an enum member where the RHS is just a string literal (not omitted, not a number, and\n         * not a complex expression). This is the typical form for TS string enums, and in this case, we\n         * do *not* create a reverse mapping.\n         *\n         * This is called after deleting the key token, when the token processor is at the equals sign.\n         *\n         * Example 1:\n         * someKey = \"some value\"\n         * ->\n         * const someKey = \"some value\"; MyEnum[\"someKey\"] = someKey;\n         *\n         * Example 2:\n         * \"some key\" = \"some value\"\n         * ->\n         * MyEnum[\"some key\"] = \"some value\";\n         */\n        processStringLiteralEnumMember(enumName, nameStringCode, variableName) {\n            if (variableName != null) {\n                this.tokens.appendCode(`const ${variableName}`);\n                // =\n                this.tokens.copyToken();\n                // value string\n                this.tokens.copyToken();\n                this.tokens.appendCode(`; ${enumName}[${nameStringCode}] = ${variableName};`);\n            }\n            else {\n                this.tokens.appendCode(`${enumName}[${nameStringCode}]`);\n                // =\n                this.tokens.copyToken();\n                // value string\n                this.tokens.copyToken();\n                this.tokens.appendCode(\";\");\n            }\n        }\n        /**\n         * Handle an enum member initialized with an expression on the right-hand side (other than a\n         * string literal). In these cases, we should transform the expression and emit code that sets up\n         * a reverse mapping.\n         *\n         * The TypeScript implementation of this operation distinguishes between expressions that can be\n         * \"constant folded\" at compile time (i.e. consist of number literals and simple math operations\n         * on those numbers) and ones that are dynamic. For constant expressions, it emits the resolved\n         * numeric value, and auto-incrementing is only allowed in that case. Evaluating expressions at\n         * compile time would add significant complexity to Sucrase, so Sucrase instead leaves the\n         * expression as-is, and will later emit something like `MyEnum[\"previousKey\"] + 1` to implement\n         * auto-incrementing.\n         *\n         * This is called after deleting the key token, when the token processor is at the equals sign.\n         *\n         * Example 1:\n         * someKey = 1 + 1\n         * ->\n         * const someKey = 1 + 1; MyEnum[MyEnum[\"someKey\"] = someKey] = \"someKey\";\n         *\n         * Example 2:\n         * \"some key\" = 1 + 1\n         * ->\n         * MyEnum[MyEnum[\"some key\"] = 1 + 1] = \"some key\";\n         */\n        processExplicitValueEnumMember(enumName, nameStringCode, variableName) {\n            const rhsEndIndex = this.tokens.currentToken().rhsEndIndex;\n            if (rhsEndIndex == null) {\n                throw new Error(\"Expected rhsEndIndex on enum assign.\");\n            }\n            if (variableName != null) {\n                this.tokens.appendCode(`const ${variableName}`);\n                this.tokens.copyToken();\n                while (this.tokens.currentIndex() < rhsEndIndex) {\n                    this.rootTransformer.processToken();\n                }\n                this.tokens.appendCode(`; ${enumName}[${enumName}[${nameStringCode}] = ${variableName}] = ${nameStringCode};`);\n            }\n            else {\n                this.tokens.appendCode(`${enumName}[${enumName}[${nameStringCode}]`);\n                this.tokens.copyToken();\n                while (this.tokens.currentIndex() < rhsEndIndex) {\n                    this.rootTransformer.processToken();\n                }\n                this.tokens.appendCode(`] = ${nameStringCode};`);\n            }\n        }\n        /**\n         * Handle an enum member with no right-hand side expression. In this case, the value is the\n         * previous value plus 1, or 0 if there was no previous value. We should also always emit a\n         * reverse mapping.\n         *\n         * Example 1:\n         * someKey2\n         * ->\n         * const someKey2 = someKey1 + 1; MyEnum[MyEnum[\"someKey2\"] = someKey2] = \"someKey2\";\n         *\n         * Example 2:\n         * \"some key 2\"\n         * ->\n         * MyEnum[MyEnum[\"some key 2\"] = someKey1 + 1] = \"some key 2\";\n         */\n        processImplicitValueEnumMember(enumName, nameStringCode, variableName, previousValueCode) {\n            let valueCode = previousValueCode != null ? `${previousValueCode} + 1` : \"0\";\n            if (variableName != null) {\n                this.tokens.appendCode(`const ${variableName} = ${valueCode}; `);\n                valueCode = variableName;\n            }\n            this.tokens.appendCode(`${enumName}[${enumName}[${nameStringCode}] = ${valueCode}] = ${nameStringCode};`);\n        }\n    }\n    exports.default = TypeScriptTransformer;\n}\n","min_source":"function _(e,t,s,n,o){n();const r=e(\"tslib\"),i=e(\"f0c35cbd76\"),p=r.__importDefault(e(\"5e8df41f33\")),k=r.__importDefault(e(\"a46f119f74\"));class a extends k.default{constructor(e,t,s){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=s}process(){return!!(this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange())||(this.tokens.matches1(i.TokenType._public)||this.tokens.matches1(i.TokenType._protected)||this.tokens.matches1(i.TokenType._private)||this.tokens.matches1(i.TokenType._abstract)||this.tokens.matches1(i.TokenType._readonly)||this.tokens.matches1(i.TokenType._override)||this.tokens.matches1(i.TokenType.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(i.TokenType._enum)||this.tokens.matches2(i.TokenType._const,i.TokenType._enum)?(this.processEnum(),!0):!(!this.tokens.matches2(i.TokenType._export,i.TokenType._enum)&&!this.tokens.matches3(i.TokenType._export,i.TokenType._const,i.TokenType._enum))&&(this.processEnum(!0),!0))}processEnum(e=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(i.TokenType._const)||this.tokens.matches1(i.TokenType._enum);)this.tokens.removeToken();const t=this.tokens.identifierName();this.tokens.removeToken(),e&&!this.isImportsTransformEnabled&&this.tokens.appendCode(\"export \"),this.tokens.appendCode(`var ${t}; (function (${t})`),this.tokens.copyExpectedToken(i.TokenType.braceL),this.processEnumBody(t),this.tokens.copyExpectedToken(i.TokenType.braceR),e&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${t} || (exports.${t} = ${t} = {}));`):this.tokens.appendCode(`)(${t} || (${t} = {}));`)}processEnumBody(e){let t=null;for(;!this.tokens.matches1(i.TokenType.braceR);){const{nameStringCode:s,variableName:n}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(i.TokenType.eq,i.TokenType.string,i.TokenType.comma)||this.tokens.matches3(i.TokenType.eq,i.TokenType.string,i.TokenType.braceR)?this.processStringLiteralEnumMember(e,s,n):this.tokens.matches1(i.TokenType.eq)?this.processExplicitValueEnumMember(e,s,n):this.processImplicitValueEnumMember(e,s,n,t),this.tokens.matches1(i.TokenType.comma)&&this.tokens.removeToken(),t=null!=n?n:`${e}[${s}]`}}extractEnumKeyInfo(e){if(e.type===i.TokenType.name){const t=this.tokens.identifierNameForToken(e);return{nameStringCode:`\"${t}\"`,variableName:(0,p.default)(t)?t:null}}if(e.type===i.TokenType.string){const t=this.tokens.stringValueForToken(e);return{nameStringCode:this.tokens.code.slice(e.start,e.end),variableName:(0,p.default)(t)?t:null}}throw new Error(\"Expected name or string at beginning of enum element.\")}processStringLiteralEnumMember(e,t,s){null!=s?(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${e}[${t}] = ${s};`)):(this.tokens.appendCode(`${e}[${t}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(\";\"))}processExplicitValueEnumMember(e,t,s){const n=this.tokens.currentToken().rhsEndIndex;if(null==n)throw new Error(\"Expected rhsEndIndex on enum assign.\");if(null!=s){for(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken();this.tokens.currentIndex()<n;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${e}[${e}[${t}] = ${s}] = ${t};`)}else{for(this.tokens.appendCode(`${e}[${e}[${t}]`),this.tokens.copyToken();this.tokens.currentIndex()<n;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${t};`)}}processImplicitValueEnumMember(e,t,s,n){let o=null!=n?`${n} + 1`:\"0\";null!=s&&(this.tokens.appendCode(`const ${s} = ${o}; `),o=s),this.tokens.appendCode(`${e}[${e}[${t}] = ${o}] = ${t};`)}}s.default=a}\n//# sourceMappingURL=TypeScriptTransformer.min.js.map","min_map":"{\"version\":3,\"file\":\"TypeScriptTransformer.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tslib_1\",\"types_1\",\"isIdentifier_1\",\"__importDefault\",\"Transformer_1\",\"TypeScriptTransformer\",\"default\",\"constructor\",\"rootTransformer\",\"tokens\",\"isImportsTransformEnabled\",\"super\",\"this\",\"process\",\"processPossibleArrowParamEnd\",\"processPossibleAsyncArrowWithTypeParams\",\"processPossibleTypeRange\",\"matches1\",\"TokenType\",\"_public\",\"_protected\",\"_private\",\"_abstract\",\"_readonly\",\"_override\",\"nonNullAssertion\",\"removeInitialToken\",\"_enum\",\"matches2\",\"_const\",\"processEnum\",\"_export\",\"matches3\",\"isExport\",\"removeToken\",\"enumName\",\"identifierName\",\"appendCode\",\"copyExpectedToken\",\"braceL\",\"processEnumBody\",\"braceR\",\"previousValueCode\",\"nameStringCode\",\"variableName\",\"extractEnumKeyInfo\",\"currentToken\",\"eq\",\"string\",\"comma\",\"processStringLiteralEnumMember\",\"processExplicitValueEnumMember\",\"processImplicitValueEnumMember\",\"nameToken\",\"type\",\"name\",\"identifierNameForToken\",\"stringValueForToken\",\"code\",\"slice\",\"start\",\"end\",\"Error\",\"copyToken\",\"rhsEndIndex\",\"currentIndex\",\"processToken\",\"valueCode\"],\"sources\":[\"0\"],\"mappings\":\"AAA6D,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC1GD,IACA,MAAME,EAAUL,EAAQ,SAClBM,EAAUN,EAAQ,cAClBO,EAAiBF,EAAQG,gBAAgBR,EAAQ,eACjDS,EAAgBJ,EAAQG,gBAAgBR,EAAQ,eACtD,MAAMU,UAA8BD,EAAcE,QAC9C,WAAAC,CAAYC,EAAiBC,EAAQC,GACjCC,QACAC,KAAKJ,gBAAkBA,EACvBI,KAAKH,OAASA,EACdG,KAAKF,0BAA4BA,CA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KH,OAAO4B,WAAW,GAAGF,KAAYA,KAAYQ,QAAqBwB,QAAgBxB,KAC3F,EAEJ9C,EAAQS,QAAUD,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/isIdentifier.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/util/isIdentifier.js","resolution":"ESM","id":"5e8df41f33","hash":"5e8df41f33e8eb2228323dcc8f614a2682254cb4cfd151e4944c4944d3891d4f","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = isIdentifier;\nconst identifier_1 = require(\"../parser/util/identifier\");\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar\n// Hard-code a list of reserved words rather than trying to use keywords or contextual keywords\n// from the parser, since currently there are various exceptions, like `package` being reserved\n// but unused and various contextual keywords being reserved. Note that we assume that all code\n// compiled by Sucrase is in a module, so strict mode words and await are all considered reserved\n// here.\nconst RESERVED_WORDS = new Set([\n    // Reserved keywords as of ECMAScript 2015\n    \"break\",\n    \"case\",\n    \"catch\",\n    \"class\",\n    \"const\",\n    \"continue\",\n    \"debugger\",\n    \"default\",\n    \"delete\",\n    \"do\",\n    \"else\",\n    \"export\",\n    \"extends\",\n    \"finally\",\n    \"for\",\n    \"function\",\n    \"if\",\n    \"import\",\n    \"in\",\n    \"instanceof\",\n    \"new\",\n    \"return\",\n    \"super\",\n    \"switch\",\n    \"this\",\n    \"throw\",\n    \"try\",\n    \"typeof\",\n    \"var\",\n    \"void\",\n    \"while\",\n    \"with\",\n    \"yield\",\n    // Future reserved keywords\n    \"enum\",\n    \"implements\",\n    \"interface\",\n    \"let\",\n    \"package\",\n    \"private\",\n    \"protected\",\n    \"public\",\n    \"static\",\n    \"await\",\n    // Literals that cannot be used as identifiers\n    \"false\",\n    \"null\",\n    \"true\",\n]);\n/**\n * Determine if the given name is a legal variable name.\n *\n * This is needed when transforming TypeScript enums; if an enum key is a valid\n * variable name, it might be referenced later in the enum, so we need to\n * declare a variable.\n */\nfunction isIdentifier(name) {\n    if (name.length === 0) {\n        return false;\n    }\n    if (!identifier_1.IS_IDENTIFIER_START[name.charCodeAt(0)]) {\n        return false;\n    }\n    for (let i = 1; i < name.length; i++) {\n        if (!identifier_1.IS_IDENTIFIER_CHAR[name.charCodeAt(i)]) {\n            return false;\n        }\n    }\n    return !RESERVED_WORDS.has(name);\n}\n","type":"js","dependency_paths":[["../parser/util/identifier","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/util/identifier.js"]],"dependency_map":[],"exported":[{"type":"named","name":"isIdentifier"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/util/isIdentifier.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = isIdentifier;\n    const identifier_1 = require(\"364148c9f0\") /* ../parser/util/identifier */;\n    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar\n    // Hard-code a list of reserved words rather than trying to use keywords or contextual keywords\n    // from the parser, since currently there are various exceptions, like `package` being reserved\n    // but unused and various contextual keywords being reserved. Note that we assume that all code\n    // compiled by Sucrase is in a module, so strict mode words and await are all considered reserved\n    // here.\n    const RESERVED_WORDS = new Set([\n        // Reserved keywords as of ECMAScript 2015\n        \"break\",\n        \"case\",\n        \"catch\",\n        \"class\",\n        \"const\",\n        \"continue\",\n        \"debugger\",\n        \"default\",\n        \"delete\",\n        \"do\",\n        \"else\",\n        \"export\",\n        \"extends\",\n        \"finally\",\n        \"for\",\n        \"function\",\n        \"if\",\n        \"import\",\n        \"in\",\n        \"instanceof\",\n        \"new\",\n        \"return\",\n        \"super\",\n        \"switch\",\n        \"this\",\n        \"throw\",\n        \"try\",\n        \"typeof\",\n        \"var\",\n        \"void\",\n        \"while\",\n        \"with\",\n        \"yield\",\n        // Future reserved keywords\n        \"enum\",\n        \"implements\",\n        \"interface\",\n        \"let\",\n        \"package\",\n        \"private\",\n        \"protected\",\n        \"public\",\n        \"static\",\n        \"await\",\n        // Literals that cannot be used as identifiers\n        \"false\",\n        \"null\",\n        \"true\",\n    ]);\n    /**\n     * Determine if the given name is a legal variable name.\n     *\n     * This is needed when transforming TypeScript enums; if an enum key is a valid\n     * variable name, it might be referenced later in the enum, so we need to\n     * declare a variable.\n     */\n    function isIdentifier(name) {\n        if (name.length === 0) {\n            return false;\n        }\n        if (!identifier_1.IS_IDENTIFIER_START[name.charCodeAt(0)]) {\n            return false;\n        }\n        for (let i = 1; i < name.length; i++) {\n            if (!identifier_1.IS_IDENTIFIER_CHAR[name.charCodeAt(i)]) {\n                return false;\n            }\n        }\n        return !RESERVED_WORDS.has(name);\n    }\n}\n","min_source":"function _(e,t,n,r,i){r(),n.default=function(e){if(0===e.length)return!1;if(!a.IS_IDENTIFIER_START[e.charCodeAt(0)])return!1;for(let t=1;t<e.length;t++)if(!a.IS_IDENTIFIER_CHAR[e.charCodeAt(t)])return!1;return!c.has(e)};const a=e(\"364148c9f0\"),c=new Set([\"break\",\"case\",\"catch\",\"class\",\"const\",\"continue\",\"debugger\",\"default\",\"delete\",\"do\",\"else\",\"export\",\"extends\",\"finally\",\"for\",\"function\",\"if\",\"import\",\"in\",\"instanceof\",\"new\",\"return\",\"super\",\"switch\",\"this\",\"throw\",\"try\",\"typeof\",\"var\",\"void\",\"while\",\"with\",\"yield\",\"enum\",\"implements\",\"interface\",\"let\",\"package\",\"private\",\"protected\",\"public\",\"static\",\"await\",\"false\",\"null\",\"true\"])}\n//# sourceMappingURL=isIdentifier.min.js.map","min_map":"{\"version\":3,\"file\":\"isIdentifier.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"name\",\"length\",\"identifier_1\",\"IS_IDENTIFIER_START\",\"charCodeAt\",\"i\",\"IS_IDENTIFIER_CHAR\",\"RESERVED_WORDS\",\"has\",\"Set\"],\"sources\":[\"0\"],\"mappings\":\"AAA4C,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzFD,IACAD,EAAQG,QAkER,SAAsBC,GAClB,GAAoB,IAAhBA,EAAKC,OACL,OAAO,EAEX,IAAKC,EAAaC,oBAAoBH,EAAKI,WAAW,IAClD,OAAO,EAEX,IAAK,IAAIC,EAAI,EAAGA,EAAIL,EAAKC,OAAQI,IAC7B,IAAKH,EAAaI,mBAAmBN,EAAKI,WAAWC,IACjD,OAAO,EAGf,OAAQE,EAAeC,IAAIR,EAC/B,EA9EA,MAAME,EAAeR,EAAQ,cAOvBa,EAAiB,IAAIE,IAAI,CAE3B,QACA,OACA,QACA,QACA,QACA,WACA,WACA,UACA,SACA,KACA,OACA,SACA,UACA,UACA,MACA,WACA,KACA,SACA,KACA,aACA,MACA,SACA,QACA,SACA,OACA,QACA,MACA,SACA,MACA,OACA,QACA,OACA,QAEA,OACA,aACA,YACA,MACA,UACA,UACA,YACA,SACA,SACA,QAEA,QACA,OACA,QAuBR\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/formatTokens.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/util/formatTokens.js","resolution":"ESM","id":"2e6a9a5b28","hash":"2e6a9a5b28a582ce39badeeb48bcf682b65585471c2c492f4b493780a6e0c837","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = formatTokens;\nconst tslib_1 = require(\"tslib\");\nconst lines_and_columns_1 = tslib_1.__importDefault(require(\"lines-and-columns\"));\nconst types_1 = require(\"../parser/tokenizer/types\");\nfunction formatTokens(code, tokens) {\n    if (tokens.length === 0) {\n        return \"\";\n    }\n    const tokenKeys = Object.keys(tokens[0]).filter((k) => k !== \"type\" && k !== \"value\" && k !== \"start\" && k !== \"end\" && k !== \"loc\");\n    const typeKeys = Object.keys(tokens[0].type).filter((k) => k !== \"label\" && k !== \"keyword\");\n    const headings = [\"Location\", \"Label\", \"Raw\", ...tokenKeys, ...typeKeys];\n    const lines = new lines_and_columns_1.default(code);\n    const rows = [headings, ...tokens.map(getTokenComponents)];\n    const padding = headings.map(() => 0);\n    for (const components of rows) {\n        for (let i = 0; i < components.length; i++) {\n            padding[i] = Math.max(padding[i], components[i].length);\n        }\n    }\n    return rows\n        .map((components) => components.map((component, i) => component.padEnd(padding[i])).join(\" \"))\n        .join(\"\\n\");\n    function getTokenComponents(token) {\n        const raw = code.slice(token.start, token.end);\n        return [\n            formatRange(token.start, token.end),\n            (0, types_1.formatTokenType)(token.type),\n            truncate(String(raw), 14),\n            // @ts-ignore: Intentional dynamic access by key.\n            ...tokenKeys.map((key) => formatValue(token[key], key)),\n            // @ts-ignore: Intentional dynamic access by key.\n            ...typeKeys.map((key) => formatValue(token.type[key], key)),\n        ];\n    }\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    function formatValue(value, key) {\n        if (value === true) {\n            return key;\n        }\n        else if (value === false || value === null) {\n            return \"\";\n        }\n        else {\n            return String(value);\n        }\n    }\n    function formatRange(start, end) {\n        return `${formatPos(start)}-${formatPos(end)}`;\n    }\n    function formatPos(pos) {\n        const location = lines.locationForIndex(pos);\n        if (!location) {\n            return \"Unknown\";\n        }\n        else {\n            return `${location.line + 1}:${location.column + 1}`;\n        }\n    }\n}\nfunction truncate(s, length) {\n    if (s.length > length) {\n        return `${s.slice(0, length - 3)}...`;\n    }\n    else {\n        return s;\n    }\n}\n","type":"js","dependency_paths":[["lines-and-columns","/home/runner/work/panel/panel/panel/node_modules/lines-and-columns/build/index.js"],["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"]],"dependency_map":[],"exported":[{"type":"named","name":"formatTokens"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/util/formatTokens.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = formatTokens;\n    const tslib_1 = require(\"tslib\");\n    const lines_and_columns_1 = tslib_1.__importDefault(require(\"d2035ed1c8\") /* lines-and-columns */);\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    function formatTokens(code, tokens) {\n        if (tokens.length === 0) {\n            return \"\";\n        }\n        const tokenKeys = Object.keys(tokens[0]).filter((k) => k !== \"type\" && k !== \"value\" && k !== \"start\" && k !== \"end\" && k !== \"loc\");\n        const typeKeys = Object.keys(tokens[0].type).filter((k) => k !== \"label\" && k !== \"keyword\");\n        const headings = [\"Location\", \"Label\", \"Raw\", ...tokenKeys, ...typeKeys];\n        const lines = new lines_and_columns_1.default(code);\n        const rows = [headings, ...tokens.map(getTokenComponents)];\n        const padding = headings.map(() => 0);\n        for (const components of rows) {\n            for (let i = 0; i < components.length; i++) {\n                padding[i] = Math.max(padding[i], components[i].length);\n            }\n        }\n        return rows\n            .map((components) => components.map((component, i) => component.padEnd(padding[i])).join(\" \"))\n            .join(\"\\n\");\n        function getTokenComponents(token) {\n            const raw = code.slice(token.start, token.end);\n            return [\n                formatRange(token.start, token.end),\n                (0, types_1.formatTokenType)(token.type),\n                truncate(String(raw), 14),\n                // @ts-ignore: Intentional dynamic access by key.\n                ...tokenKeys.map((key) => formatValue(token[key], key)),\n                // @ts-ignore: Intentional dynamic access by key.\n                ...typeKeys.map((key) => formatValue(token.type[key], key)),\n            ];\n        }\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        function formatValue(value, key) {\n            if (value === true) {\n                return key;\n            }\n            else if (value === false || value === null) {\n                return \"\";\n            }\n            else {\n                return String(value);\n            }\n        }\n        function formatRange(start, end) {\n            return `${formatPos(start)}-${formatPos(end)}`;\n        }\n        function formatPos(pos) {\n            const location = lines.locationForIndex(pos);\n            if (!location) {\n                return \"Unknown\";\n            }\n            else {\n                return `${location.line + 1}:${location.column + 1}`;\n            }\n        }\n    }\n    function truncate(s, length) {\n        if (s.length > length) {\n            return `${s.slice(0, length - 3)}...`;\n        }\n        else {\n            return s;\n        }\n    }\n}\n","min_source":"function _(n,t,e,o,r){o(),e.default=function(n,t){if(0===t.length)return\"\";const e=Object.keys(t[0]).filter((n=>\"type\"!==n&&\"value\"!==n&&\"start\"!==n&&\"end\"!==n&&\"loc\"!==n)),o=Object.keys(t[0].type).filter((n=>\"label\"!==n&&\"keyword\"!==n)),r=[\"Location\",\"Label\",\"Raw\",...e,...o],i=new c.default(n),u=[r,...t.map((function(t){const r=n.slice(t.start,t.end);return[s(t.start,t.end),(0,l.formatTokenType)(t.type),a(String(r),14),...e.map((n=>p(t[n],n))),...o.map((n=>p(t.type[n],n)))]}))],f=r.map((()=>0));for(const n of u)for(let t=0;t<n.length;t++)f[t]=Math.max(f[t],n[t].length);return u.map((n=>n.map(((n,t)=>n.padEnd(f[t]))).join(\" \"))).join(\"\\n\");function p(n,t){return!0===n?t:!1===n||null===n?\"\":String(n)}function s(n,t){return`${d(n)}-${d(t)}`}function d(n){const t=i.locationForIndex(n);return t?`${t.line+1}:${t.column+1}`:\"Unknown\"}};const c=n(\"tslib\").__importDefault(n(\"d2035ed1c8\")),l=n(\"f0c35cbd76\");function a(n,t){return n.length>t?`${n.slice(0,t-3)}...`:n}}\n//# sourceMappingURL=formatTokens.min.js.map","min_map":"{\"version\":3,\"file\":\"formatTokens.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"code\",\"tokens\",\"length\",\"tokenKeys\",\"Object\",\"keys\",\"filter\",\"k\",\"typeKeys\",\"type\",\"headings\",\"lines\",\"lines_and_columns_1\",\"rows\",\"map\",\"token\",\"raw\",\"slice\",\"start\",\"end\",\"formatRange\",\"types_1\",\"formatTokenType\",\"truncate\",\"String\",\"key\",\"formatValue\",\"padding\",\"components\",\"i\",\"Math\",\"max\",\"component\",\"padEnd\",\"join\",\"value\",\"formatPos\",\"pos\",\"location\",\"locationForIndex\",\"line\",\"column\",\"__importDefault\",\"s\"],\"sources\":[\"0\"],\"mappings\":\"AAA4C,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzFD,IACAD,EA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BAAiBF,GACxC,OAAKC,EAIM,GAAGA,EAASE,KAAO,KAAKF,EAASG,OAAS,IAH1C,SAKf,CACJ,EAzDA,MACM7B,EADUlB,EAAQ,SACYgD,gBAAgBhD,EAAQ,eACtD2B,EAAU3B,EAAQ,cAwDxB,SAAS6B,EAASoB,EAAGzC,GACjB,OAAIyC,EAAEzC,OAASA,EACJ,GAAGyC,EAAE1B,MAAM,EAAGf,EAAS,QAGvByC,CAEf,CACJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/lines-and-columns/build/index.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"lines-and-columns/build/index.js","resolution":"CJS","id":"d2035ed1c8","hash":"d2035ed1c84729327f87f50376b47fdba4bb749b99acaaed74c0873fc193abbc","source":"\"use strict\";\nexports.__esModule = true;\nexports.LinesAndColumns = void 0;\nvar LF = '\\n';\nvar CR = '\\r';\nvar LinesAndColumns = /** @class */ (function () {\n    function LinesAndColumns(string) {\n        this.string = string;\n        var offsets = [0];\n        for (var offset = 0; offset < string.length;) {\n            switch (string[offset]) {\n                case LF:\n                    offset += LF.length;\n                    offsets.push(offset);\n                    break;\n                case CR:\n                    offset += CR.length;\n                    if (string[offset] === LF) {\n                        offset += LF.length;\n                    }\n                    offsets.push(offset);\n                    break;\n                default:\n                    offset++;\n                    break;\n            }\n        }\n        this.offsets = offsets;\n    }\n    LinesAndColumns.prototype.locationForIndex = function (index) {\n        if (index < 0 || index > this.string.length) {\n            return null;\n        }\n        var line = 0;\n        var offsets = this.offsets;\n        while (offsets[line + 1] <= index) {\n            line++;\n        }\n        var column = index - offsets[line];\n        return { line: line, column: column };\n    };\n    LinesAndColumns.prototype.indexForLocation = function (location) {\n        var line = location.line, column = location.column;\n        if (line < 0 || line >= this.offsets.length) {\n            return null;\n        }\n        if (column < 0 || column > this.lengthOfLine(line)) {\n            return null;\n        }\n        return this.offsets[line] + column;\n    };\n    LinesAndColumns.prototype.lengthOfLine = function (line) {\n        var offset = this.offsets[line];\n        var nextOffset = line === this.offsets.length - 1\n            ? this.string.length\n            : this.offsets[line + 1];\n        return nextOffset - offset;\n    };\n    return LinesAndColumns;\n}());\nexports.LinesAndColumns = LinesAndColumns;\nexports[\"default\"] = LinesAndColumns;\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* lines-and-columns/build/index.js */ function _(require, module, exports, __esModule, __esExport) {\n    exports.__esModule = true;\n    var LF = '\\n';\n    var CR = '\\r';\n    var LinesAndColumns = /** @class */ (function () {\n        function LinesAndColumns(string) {\n            this.string = string;\n            var offsets = [0];\n            for (var offset = 0; offset < string.length;) {\n                switch (string[offset]) {\n                    case LF:\n                        offset += LF.length;\n                        offsets.push(offset);\n                        break;\n                    case CR:\n                        offset += CR.length;\n                        if (string[offset] === LF) {\n                            offset += LF.length;\n                        }\n                        offsets.push(offset);\n                        break;\n                    default:\n                        offset++;\n                        break;\n                }\n            }\n            this.offsets = offsets;\n        }\n        LinesAndColumns.prototype.locationForIndex = function (index) {\n            if (index < 0 || index > this.string.length) {\n                return null;\n            }\n            var line = 0;\n            var offsets = this.offsets;\n            while (offsets[line + 1] <= index) {\n                line++;\n            }\n            var column = index - offsets[line];\n            return { line: line, column: column };\n        };\n        LinesAndColumns.prototype.indexForLocation = function (location) {\n            var line = location.line, column = location.column;\n            if (line < 0 || line >= this.offsets.length) {\n                return null;\n            }\n            if (column < 0 || column > this.lengthOfLine(line)) {\n                return null;\n            }\n            return this.offsets[line] + column;\n        };\n        LinesAndColumns.prototype.lengthOfLine = function (line) {\n            var offset = this.offsets[line];\n            var nextOffset = line === this.offsets.length - 1\n                ? this.string.length\n                : this.offsets[line + 1];\n            return nextOffset - offset;\n        };\n        return LinesAndColumns;\n    }());\n    exports.LinesAndColumns = LinesAndColumns;\n    exports[\"default\"] = LinesAndColumns;\n}\n","min_source":"function _(t,n,e,s,o){e.__esModule=!0;var i=\"\\n\",r=function(){function t(t){this.string=t;for(var n=[0],e=0;e<t.length;)switch(t[e]){case i:e+=1,n.push(e);break;case\"\\r\":t[e+=1]===i&&(e+=1),n.push(e);break;default:e++}this.offsets=n}return t.prototype.locationForIndex=function(t){if(t<0||t>this.string.length)return null;for(var n=0,e=this.offsets;e[n+1]<=t;)n++;return{line:n,column:t-e[n]}},t.prototype.indexForLocation=function(t){var n=t.line,e=t.column;return n<0||n>=this.offsets.length||e<0||e>this.lengthOfLine(n)?null:this.offsets[n]+e},t.prototype.lengthOfLine=function(t){var n=this.offsets[t];return(t===this.offsets.length-1?this.string.length:this.offsets[t+1])-n},t}();e.LinesAndColumns=r,e.default=r}\n//# sourceMappingURL=index.min.js.map","min_map":"{\"version\":3,\"file\":\"index.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"LF\",\"LinesAndColumns\",\"string\",\"this\",\"offsets\",\"offset\",\"length\",\"push\",\"CR\",\"prototype\",\"locationForIndex\",\"index\",\"line\",\"column\",\"indexForLocation\",\"location\",\"lengthOfLine\"],\"sources\":[\"0\"],\"mappings\":\"AAAuC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACpFF,EAAQC,YAAa,EACrB,IAAIE,EAAK,KAELC,EAAiC,WACjC,SAASA,EAAgBC,GACrBC,KAAKD,OAASA,EAEd,IADA,IAAIE,EAAU,CAAC,GACNC,EAAS,EAAGA,EAASH,EAAOI,QACjC,OAAQJ,EAAOG,IACX,KAAKL,EACDK,GAAUL,EACVI,EAAQG,KAAKF,GACb,MACJ,IAXP,KAaeH,EADJG,GAAUG,KACaR,IACnBK,GAAUL,GAEdI,EAAQG,KAAKF,GACb,MACJ,QACIA,IAIZF,KAAKC,QAAUA,CACnB,CA8BA,OA7BAH,EAAgBQ,UAAUC,iBAAmB,SAAUC,GACnD,GAAIA,EAAQ,GAAKA,EAAQR,KAAKD,OAAOI,OACjC,OAAO,KAIX,IAFA,IAAIM,EAAO,EACPR,EAAUD,KAAKC,QACZA,EAAQQ,EAAO,IAAMD,GACxBC,IAGJ,MAAO,CAAEA,KAAMA,EAAMC,OADRF,EAAQP,EAAQQ,GAEjC,EACAX,EAAgBQ,UAAUK,iBAAmB,SAAUC,GACnD,IAAIH,EAAOG,EAASH,KAAMC,EAASE,EAASF,OAC5C,OAAID,EAAO,GAAKA,GAAQT,KAAKC,QAAQE,QAGjCO,EAAS,GAAKA,EAASV,KAAKa,aAAaJ,GAFlC,KAKJT,KAAKC,QAAQQ,GAAQC,CAChC,EACAZ,EAAgBQ,UAAUO,aAAe,SAAUJ,GAC/C,IAAIP,EAASF,KAAKC,QAAQQ,GAI1B,OAHiBA,IAAST,KAAKC,QAAQE,OAAS,EAC1CH,KAAKD,OAAOI,OACZH,KAAKC,QAAQQ,EAAO,IACNP,CACxB,EACOJ,CACX,CAtDoC,GAuDpCJ,EAAQI,gBAAkBA,EAC1BJ,EAAiB,QAAII,CACzB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getTSImportedNames.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"sucrase/dist/esm/util/getTSImportedNames.js","resolution":"ESM","id":"4160f5108d","hash":"4160f5108db54a79873fbe0dbb1539a0d5583cc6665d7b10c6a9daf571811de1","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = getTSImportedNames;\nconst tslib_1 = require(\"tslib\");\nconst types_1 = require(\"../parser/tokenizer/types\");\nconst getImportExportSpecifierInfo_1 = tslib_1.__importDefault(require(\"./getImportExportSpecifierInfo\"));\n/**\n * Special case code to scan for imported names in ESM TypeScript. We need to do this so we can\n * properly get globals so we can compute shadowed globals.\n *\n * This is similar to logic in CJSImportProcessor, but trimmed down to avoid logic with CJS\n * replacement and flow type imports.\n */\nfunction getTSImportedNames(tokens) {\n    const importedNames = new Set();\n    for (let i = 0; i < tokens.tokens.length; i++) {\n        if (tokens.matches1AtIndex(i, types_1.TokenType._import) &&\n            !tokens.matches3AtIndex(i, types_1.TokenType._import, types_1.TokenType.name, types_1.TokenType.eq)) {\n            collectNamesForImport(tokens, i, importedNames);\n        }\n    }\n    return importedNames;\n}\nfunction collectNamesForImport(tokens, index, importedNames) {\n    index++;\n    if (tokens.matches1AtIndex(index, types_1.TokenType.parenL)) {\n        // Dynamic import, so nothing to do\n        return;\n    }\n    if (tokens.matches1AtIndex(index, types_1.TokenType.name)) {\n        importedNames.add(tokens.identifierNameAtIndex(index));\n        index++;\n        if (tokens.matches1AtIndex(index, types_1.TokenType.comma)) {\n            index++;\n        }\n    }\n    if (tokens.matches1AtIndex(index, types_1.TokenType.star)) {\n        // * as\n        index += 2;\n        importedNames.add(tokens.identifierNameAtIndex(index));\n        index++;\n    }\n    if (tokens.matches1AtIndex(index, types_1.TokenType.braceL)) {\n        index++;\n        collectNamesForNamedImport(tokens, index, importedNames);\n    }\n}\nfunction collectNamesForNamedImport(tokens, index, importedNames) {\n    while (true) {\n        if (tokens.matches1AtIndex(index, types_1.TokenType.braceR)) {\n            return;\n        }\n        const specifierInfo = (0, getImportExportSpecifierInfo_1.default)(tokens, index);\n        index = specifierInfo.endIndex;\n        if (!specifierInfo.isType) {\n            importedNames.add(specifierInfo.rightName);\n        }\n        if (tokens.matches2AtIndex(index, types_1.TokenType.comma, types_1.TokenType.braceR)) {\n            return;\n        }\n        else if (tokens.matches1AtIndex(index, types_1.TokenType.braceR)) {\n            return;\n        }\n        else if (tokens.matches1AtIndex(index, types_1.TokenType.comma)) {\n            index++;\n        }\n        else {\n            throw new Error(`Unexpected token: ${JSON.stringify(tokens.tokens[index])}`);\n        }\n    }\n}\n","type":"js","dependency_paths":[["../parser/tokenizer/types","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/parser/tokenizer/types.js"],["./getImportExportSpecifierInfo","/home/runner/work/panel/panel/panel/node_modules/sucrase/dist/esm/util/getImportExportSpecifierInfo.js"]],"dependency_map":[],"exported":[{"type":"named","name":"getTSImportedNames"}],"externals":[],"shims":[]},"code":{"source":"/* sucrase/dist/esm/util/getTSImportedNames.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = getTSImportedNames;\n    const tslib_1 = require(\"tslib\");\n    const types_1 = require(\"f0c35cbd76\") /* ../parser/tokenizer/types */;\n    const getImportExportSpecifierInfo_1 = tslib_1.__importDefault(require(\"14d4ae78a4\") /* ./getImportExportSpecifierInfo */);\n    /**\n     * Special case code to scan for imported names in ESM TypeScript. We need to do this so we can\n     * properly get globals so we can compute shadowed globals.\n     *\n     * This is similar to logic in CJSImportProcessor, but trimmed down to avoid logic with CJS\n     * replacement and flow type imports.\n     */\n    function getTSImportedNames(tokens) {\n        const importedNames = new Set();\n        for (let i = 0; i < tokens.tokens.length; i++) {\n            if (tokens.matches1AtIndex(i, types_1.TokenType._import) &&\n                !tokens.matches3AtIndex(i, types_1.TokenType._import, types_1.TokenType.name, types_1.TokenType.eq)) {\n                collectNamesForImport(tokens, i, importedNames);\n            }\n        }\n        return importedNames;\n    }\n    function collectNamesForImport(tokens, index, importedNames) {\n        index++;\n        if (tokens.matches1AtIndex(index, types_1.TokenType.parenL)) {\n            // Dynamic import, so nothing to do\n            return;\n        }\n        if (tokens.matches1AtIndex(index, types_1.TokenType.name)) {\n            importedNames.add(tokens.identifierNameAtIndex(index));\n            index++;\n            if (tokens.matches1AtIndex(index, types_1.TokenType.comma)) {\n                index++;\n            }\n        }\n        if (tokens.matches1AtIndex(index, types_1.TokenType.star)) {\n            // * as\n            index += 2;\n            importedNames.add(tokens.identifierNameAtIndex(index));\n            index++;\n        }\n        if (tokens.matches1AtIndex(index, types_1.TokenType.braceL)) {\n            index++;\n            collectNamesForNamedImport(tokens, index, importedNames);\n        }\n    }\n    function collectNamesForNamedImport(tokens, index, importedNames) {\n        while (true) {\n            if (tokens.matches1AtIndex(index, types_1.TokenType.braceR)) {\n                return;\n            }\n            const specifierInfo = (0, getImportExportSpecifierInfo_1.default)(tokens, index);\n            index = specifierInfo.endIndex;\n            if (!specifierInfo.isType) {\n                importedNames.add(specifierInfo.rightName);\n            }\n            if (tokens.matches2AtIndex(index, types_1.TokenType.comma, types_1.TokenType.braceR)) {\n                return;\n            }\n            else if (tokens.matches1AtIndex(index, types_1.TokenType.braceR)) {\n                return;\n            }\n            else if (tokens.matches1AtIndex(index, types_1.TokenType.comma)) {\n                index++;\n            }\n            else {\n                throw new Error(`Unexpected token: ${JSON.stringify(tokens.tokens[index])}`);\n            }\n        }\n    }\n}\n","min_source":"function _(e,n,t,o,a){o(),t.default=function(e){const n=new Set;for(let t=0;t<e.tokens.length;t++)e.matches1AtIndex(t,c.TokenType._import)&&!e.matches3AtIndex(t,c.TokenType._import,c.TokenType.name,c.TokenType.eq)&&r(e,t,n);return n};const T=e(\"tslib\"),c=e(\"f0c35cbd76\"),d=T.__importDefault(e(\"14d4ae78a4\"));function r(e,n,t){n++,e.matches1AtIndex(n,c.TokenType.parenL)||(e.matches1AtIndex(n,c.TokenType.name)&&(t.add(e.identifierNameAtIndex(n)),n++,e.matches1AtIndex(n,c.TokenType.comma)&&n++),e.matches1AtIndex(n,c.TokenType.star)&&(n+=2,t.add(e.identifierNameAtIndex(n)),n++),e.matches1AtIndex(n,c.TokenType.braceL)&&function(e,n,t){for(;;){if(e.matches1AtIndex(n,c.TokenType.braceR))return;const o=(0,d.default)(e,n);if(n=o.endIndex,o.isType||t.add(o.rightName),e.matches2AtIndex(n,c.TokenType.comma,c.TokenType.braceR))return;if(e.matches1AtIndex(n,c.TokenType.braceR))return;if(!e.matches1AtIndex(n,c.TokenType.comma))throw new Error(`Unexpected token: ${JSON.stringify(e.tokens[n])}`);n++}}(e,++n,t))}}\n//# sourceMappingURL=getTSImportedNames.min.js.map","min_map":"{\"version\":3,\"file\":\"getTSImportedNames.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"tokens\",\"importedNames\",\"Set\",\"i\",\"length\",\"matches1AtIndex\",\"types_1\",\"TokenType\",\"_import\",\"matches3AtIndex\",\"name\",\"eq\",\"collectNamesForImport\",\"tslib_1\",\"getImportExportSpecifierInfo_1\",\"__importDefault\",\"index\",\"parenL\",\"add\",\"identifierNameAtIndex\",\"comma\",\"star\",\"braceL\",\"braceR\",\"specifierInfo\",\"endIndex\",\"isType\",\"rightName\",\"matches2AtIndex\",\"Error\",\"JSON\",\"stringify\",\"collectNamesForNamedImport\"],\"sources\":[\"0\"],\"mappings\":\"AAAkD,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC/FD,IACAD,EAAQG,QAWR,SAA4BC,GACxB,MAAMC,EAAgB,IAAIC,IAC1B,IAAK,IAAIC,EAAI,EAAGA,EAAIH,EAAOA,OAAOI,OAAQD,IAClCH,EAAOK,gBAAgBF,EAAGG,EAAQC,UAAUC,WAC3CR,EAAOS,gBAAgBN,EAAGG,EAAQC,UAAUC,QAASF,EAAQC,UAAUG,KAAMJ,EAAQC,UAAUI,KAChGC,EAAsBZ,EAAQG,EAAGF,GAGzC,OAAOA,CACX,EAnBA,MAAMY,EAAUnB,EAAQ,SAClBY,EAAUZ,EAAQ,cAClBoB,EAAiCD,EAAQE,gBAAgBrB,EAAQ,eAkBvE,SAASkB,EAAsBZ,EAAQgB,EAAOf,GAC1Ce,IACIhB,EAAOK,gBAAgBW,EAAOV,EAAQC,UAAUU,UAIhDjB,EAAOK,gBAAgBW,EAAOV,EAAQC,UAAUG,QAChDT,EAAciB,IAAIlB,EAAOmB,sBAAsBH,IAC/CA,IACIhB,EAAOK,gBAAgBW,EAAOV,EAAQC,UAAUa,QAChDJ,KAGJhB,EAAOK,gBAAgBW,EAAOV,EAAQC,UAAUc,QAEhDL,GAAS,EACTf,EAAciB,IAAIlB,EAAOmB,sBAAsBH,IAC/CA,KAEAhB,EAAOK,gBAAgBW,EAAOV,EAAQC,UAAUe,SAKxD,SAAoCtB,EAAQgB,EAAOf,GAC/C,OAAa,CACT,GAAID,EAAOK,gBAAgBW,EAAOV,EAAQC,UAAUgB,QAChD,OAEJ,MAAMC,GAAgB,EAAIV,EAA+Bf,SAASC,EAAQgB,GAK1E,GAJAA,EAAQQ,EAAcC,SACjBD,EAAcE,QACfzB,EAAciB,IAAIM,EAAcG,WAEhC3B,EAAO4B,gBAAgBZ,EAAOV,EAAQC,UAAUa,MAAOd,EAAQC,UAAUgB,QACzE,OAEC,GAAIvB,EAAOK,gBAAgBW,EAAOV,EAAQC,UAAUgB,QACrD,OAEC,IAAIvB,EAAOK,gBAAgBW,EAAOV,EAAQC,UAAUa,OAIrD,MAAM,IAAIS,MAAM,qBAAqBC,KAAKC,UAAU/B,EAAOA,OAAOgB,OAHlEA,GAKR,CACJ,CA1BQgB,CAA2BhC,IAD3BgB,EAC0Cf,GAElD,CAyBJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/event-to-object.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/event-to-object.js","canonical":"models/event-to-object","resolution":"ESM","id":"a572dba9cd","hash":"a572dba9cdf05f06514439f020bbdcbf8a85e0d5004e22e556fc9994583bd9a5","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.serializeEvent = serializeEvent;\n/*\nThe MIT License (MIT)\n\nCopyright (c) 2019 Ryan S. Morshead\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\nfunction serializeEvent(event) {\n    const data = {};\n    // support for CustomEvents: the whole `detail` object is serialized\n    if (event.detail !== undefined) {\n        Object.assign(data, { detail: JSON.parse(JSON.stringify(event.detail)) });\n    }\n    if (event.type in eventTransforms) {\n        Object.assign(data, eventTransforms[event.type](event));\n    }\n    data.target = serializeDomElement(event.target);\n    data.currentTarget =\n        event.target === event.currentTarget\n            ? data.target\n            : serializeDomElement(event.currentTarget);\n    data.relatedTarget = serializeDomElement(event.relatedTarget);\n    return data;\n}\nfunction serializeDomElement(element) {\n    let elementData = null;\n    if (element) {\n        elementData = defaultElementTransform(element);\n        if (element.tagName in elementTransforms) {\n            elementTransforms[element.tagName].forEach((trans) => Object.assign(elementData, trans(element)));\n        }\n    }\n    return elementData;\n}\nconst elementTransformCategories = {\n    hasValue: (element) => ({\n        value: element.value,\n    }),\n    hasCurrentTime: (element) => ({\n        currentTime: element.currentTime,\n    }),\n    hasFiles: (element) => {\n        if (element.type === \"file\") {\n            return {\n                files: [...element.files ?? []].map((file) => ({\n                    lastModified: file.lastModified,\n                    name: file.name,\n                    size: file.size,\n                    type: file.type,\n                })),\n            };\n        }\n        else {\n            return {};\n        }\n    },\n};\nfunction defaultElementTransform(element) {\n    try {\n        return { boundingClientRect: { ...element.getBoundingClientRect() } };\n    }\n    catch {\n        return {};\n    }\n}\nconst elementTagCategories = {\n    hasValue: [\n        \"BUTTON\",\n        \"INPUT\",\n        \"OPTION\",\n        \"LI\",\n        \"METER\",\n        \"PROGRESS\",\n        \"PARAM\",\n        \"SELECT\",\n        \"TEXTAREA\",\n    ],\n    hasCurrentTime: [\"AUDIO\", \"VIDEO\"],\n    hasFiles: [\"INPUT\"],\n};\nconst elementTransforms = {};\nObject.keys(elementTagCategories).forEach((category) => {\n    elementTagCategories[category].forEach((type) => {\n        const transforms = elementTransforms[type] || (elementTransforms[type] = []);\n        transforms.push(elementTransformCategories[category]);\n    });\n});\nclass EventTransformCategories {\n    clipboard(event) {\n        return {\n            clipboardData: event.clipboardData,\n        };\n    }\n    composition(event) {\n        return {\n            data: event.data,\n        };\n    }\n    keyboard(event) {\n        return {\n            altKey: event.altKey,\n            charCode: event.charCode,\n            ctrlKey: event.ctrlKey,\n            key: event.key,\n            keyCode: event.keyCode,\n            locale: event.locale,\n            location: event.location,\n            metaKey: event.metaKey,\n            repeat: event.repeat,\n            shiftKey: event.shiftKey,\n            which: event.which,\n        };\n    }\n    mouse(event) {\n        return {\n            altKey: event.altKey,\n            button: event.button,\n            buttons: event.buttons,\n            clientX: event.clientX,\n            clientY: event.clientY,\n            ctrlKey: event.ctrlKey,\n            metaKey: event.metaKey,\n            pageX: event.pageX,\n            pageY: event.pageY,\n            screenX: event.screenX,\n            screenY: event.screenY,\n            shiftKey: event.shiftKey,\n        };\n    }\n    pointer(event) {\n        return {\n            ...this.mouse(event),\n            pointerId: event.pointerId,\n            width: event.width,\n            height: event.height,\n            pressure: event.pressure,\n            tiltX: event.tiltX,\n            tiltY: event.tiltY,\n            pointerType: event.pointerType,\n            isPrimary: event.isPrimary,\n        };\n    }\n    selection() {\n        return {\n            selectedText: window.getSelection().toString(),\n        };\n    }\n    ;\n    touch(event) {\n        return {\n            altKey: event.altKey,\n            ctrlKey: event.ctrlKey,\n            metaKey: event.metaKey,\n            shiftKey: event.shiftKey,\n        };\n    }\n    ui(event) {\n        return {\n            detail: event.detail,\n        };\n    }\n    wheel(event) {\n        return {\n            deltaMode: event.deltaMode,\n            deltaX: event.deltaX,\n            deltaY: event.deltaY,\n            deltaZ: event.deltaZ,\n        };\n    }\n    animation(event) {\n        return {\n            animationName: event.animationName,\n            pseudoElement: event.pseudoElement,\n            elapsedTime: event.elapsedTime,\n        };\n    }\n    transition(event) {\n        return {\n            propertyName: event.propertyName,\n            pseudoElement: event.pseudoElement,\n            elapsedTime: event.elapsedTime,\n        };\n    }\n}\nEventTransformCategories.__name__ = \"EventTransformCategories\";\nconst eventTypeCategories = {\n    clipboard: [\"copy\", \"cut\", \"paste\"],\n    composition: [\"compositionend\", \"compositionstart\", \"compositionupdate\"],\n    keyboard: [\"keydown\", \"keypress\", \"keyup\"],\n    mouse: [\n        \"click\",\n        \"contextmenu\",\n        \"doubleclick\",\n        \"drag\",\n        \"dragend\",\n        \"dragenter\",\n        \"dragexit\",\n        \"dragleave\",\n        \"dragover\",\n        \"dragstart\",\n        \"drop\",\n        \"mousedown\",\n        \"mouseenter\",\n        \"mouseleave\",\n        \"mousemove\",\n        \"mouseout\",\n        \"mouseover\",\n        \"mouseup\",\n    ],\n    pointer: [\n        \"pointerdown\",\n        \"pointermove\",\n        \"pointerup\",\n        \"pointercancel\",\n        \"gotpointercapture\",\n        \"lostpointercapture\",\n        \"pointerenter\",\n        \"pointerleave\",\n        \"pointerover\",\n        \"pointerout\",\n    ],\n    selection: [\"select\"],\n    touch: [\"touchcancel\", \"touchend\", \"touchmove\", \"touchstart\"],\n    ui: [\"scroll\"],\n    wheel: [\"wheel\"],\n    animation: [\"animationstart\", \"animationend\", \"animationiteration\"],\n    transition: [\"transitionend\"],\n};\nconst eventTransforms = {};\nconst eventTransformCategories = new EventTransformCategories();\nObject.keys(eventTypeCategories).forEach((category) => {\n    eventTypeCategories[category].forEach((type) => {\n        // Bind the method to the eventTransformCategories instance to ensure correct 'this'\n        eventTransforms[type] = eventTransformCategories[category].bind(eventTransformCategories);\n    });\n});\n//# sourceMappingURL=event-to-object.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"serializeEvent"}],"externals":[],"shims":[]},"code":{"source":"/* models/event-to-object.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.serializeEvent = serializeEvent;\n    /*\n    The MIT License (MIT)\n    \n    Copyright (c) 2019 Ryan S. Morshead\n    \n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n    \n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n    \n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n    */\n    function serializeEvent(event) {\n        const data = {};\n        // support for CustomEvents: the whole `detail` object is serialized\n        if (event.detail !== undefined) {\n            Object.assign(data, { detail: JSON.parse(JSON.stringify(event.detail)) });\n        }\n        if (event.type in eventTransforms) {\n            Object.assign(data, eventTransforms[event.type](event));\n        }\n        data.target = serializeDomElement(event.target);\n        data.currentTarget =\n            event.target === event.currentTarget\n                ? data.target\n                : serializeDomElement(event.currentTarget);\n        data.relatedTarget = serializeDomElement(event.relatedTarget);\n        return data;\n    }\n    function serializeDomElement(element) {\n        let elementData = null;\n        if (element) {\n            elementData = defaultElementTransform(element);\n            if (element.tagName in elementTransforms) {\n                elementTransforms[element.tagName].forEach((trans) => Object.assign(elementData, trans(element)));\n            }\n        }\n        return elementData;\n    }\n    const elementTransformCategories = {\n        hasValue: (element) => ({\n            value: element.value,\n        }),\n        hasCurrentTime: (element) => ({\n            currentTime: element.currentTime,\n        }),\n        hasFiles: (element) => {\n            if (element.type === \"file\") {\n                return {\n                    files: [...element.files ?? []].map((file) => ({\n                        lastModified: file.lastModified,\n                        name: file.name,\n                        size: file.size,\n                        type: file.type,\n                    })),\n                };\n            }\n            else {\n                return {};\n            }\n        },\n    };\n    function defaultElementTransform(element) {\n        try {\n            return { boundingClientRect: { ...element.getBoundingClientRect() } };\n        }\n        catch {\n            return {};\n        }\n    }\n    const elementTagCategories = {\n        hasValue: [\n            \"BUTTON\",\n            \"INPUT\",\n            \"OPTION\",\n            \"LI\",\n            \"METER\",\n            \"PROGRESS\",\n            \"PARAM\",\n            \"SELECT\",\n            \"TEXTAREA\",\n        ],\n        hasCurrentTime: [\"AUDIO\", \"VIDEO\"],\n        hasFiles: [\"INPUT\"],\n    };\n    const elementTransforms = {};\n    Object.keys(elementTagCategories).forEach((category) => {\n        elementTagCategories[category].forEach((type) => {\n            const transforms = elementTransforms[type] || (elementTransforms[type] = []);\n            transforms.push(elementTransformCategories[category]);\n        });\n    });\n    class EventTransformCategories {\n        clipboard(event) {\n            return {\n                clipboardData: event.clipboardData,\n            };\n        }\n        composition(event) {\n            return {\n                data: event.data,\n            };\n        }\n        keyboard(event) {\n            return {\n                altKey: event.altKey,\n                charCode: event.charCode,\n                ctrlKey: event.ctrlKey,\n                key: event.key,\n                keyCode: event.keyCode,\n                locale: event.locale,\n                location: event.location,\n                metaKey: event.metaKey,\n                repeat: event.repeat,\n                shiftKey: event.shiftKey,\n                which: event.which,\n            };\n        }\n        mouse(event) {\n            return {\n                altKey: event.altKey,\n                button: event.button,\n                buttons: event.buttons,\n                clientX: event.clientX,\n                clientY: event.clientY,\n                ctrlKey: event.ctrlKey,\n                metaKey: event.metaKey,\n                pageX: event.pageX,\n                pageY: event.pageY,\n                screenX: event.screenX,\n                screenY: event.screenY,\n                shiftKey: event.shiftKey,\n            };\n        }\n        pointer(event) {\n            return {\n                ...this.mouse(event),\n                pointerId: event.pointerId,\n                width: event.width,\n                height: event.height,\n                pressure: event.pressure,\n                tiltX: event.tiltX,\n                tiltY: event.tiltY,\n                pointerType: event.pointerType,\n                isPrimary: event.isPrimary,\n            };\n        }\n        selection() {\n            return {\n                selectedText: window.getSelection().toString(),\n            };\n        }\n        ;\n        touch(event) {\n            return {\n                altKey: event.altKey,\n                ctrlKey: event.ctrlKey,\n                metaKey: event.metaKey,\n                shiftKey: event.shiftKey,\n            };\n        }\n        ui(event) {\n            return {\n                detail: event.detail,\n            };\n        }\n        wheel(event) {\n            return {\n                deltaMode: event.deltaMode,\n                deltaX: event.deltaX,\n                deltaY: event.deltaY,\n                deltaZ: event.deltaZ,\n            };\n        }\n        animation(event) {\n            return {\n                animationName: event.animationName,\n                pseudoElement: event.pseudoElement,\n                elapsedTime: event.elapsedTime,\n            };\n        }\n        transition(event) {\n            return {\n                propertyName: event.propertyName,\n                pseudoElement: event.pseudoElement,\n                elapsedTime: event.elapsedTime,\n            };\n        }\n    }\n    EventTransformCategories.__name__ = \"EventTransformCategories\";\n    const eventTypeCategories = {\n        clipboard: [\"copy\", \"cut\", \"paste\"],\n        composition: [\"compositionend\", \"compositionstart\", \"compositionupdate\"],\n        keyboard: [\"keydown\", \"keypress\", \"keyup\"],\n        mouse: [\n            \"click\",\n            \"contextmenu\",\n            \"doubleclick\",\n            \"drag\",\n            \"dragend\",\n            \"dragenter\",\n            \"dragexit\",\n            \"dragleave\",\n            \"dragover\",\n            \"dragstart\",\n            \"drop\",\n            \"mousedown\",\n            \"mouseenter\",\n            \"mouseleave\",\n            \"mousemove\",\n            \"mouseout\",\n            \"mouseover\",\n            \"mouseup\",\n        ],\n        pointer: [\n            \"pointerdown\",\n            \"pointermove\",\n            \"pointerup\",\n            \"pointercancel\",\n            \"gotpointercapture\",\n            \"lostpointercapture\",\n            \"pointerenter\",\n            \"pointerleave\",\n            \"pointerover\",\n            \"pointerout\",\n        ],\n        selection: [\"select\"],\n        touch: [\"touchcancel\", \"touchend\", \"touchmove\", \"touchstart\"],\n        ui: [\"scroll\"],\n        wheel: [\"wheel\"],\n        animation: [\"animationstart\", \"animationend\", \"animationiteration\"],\n        transition: [\"transitionend\"],\n    };\n    const eventTransforms = {};\n    const eventTransformCategories = new EventTransformCategories();\n    Object.keys(eventTypeCategories).forEach((category) => {\n        eventTypeCategories[category].forEach((type) => {\n            // Bind the method to the eventTransformCategories instance to ensure correct 'this'\n            eventTransforms[type] = eventTransformCategories[category].bind(eventTransformCategories);\n        });\n    });\n}\n","min_source":"function _(e,t,a,r,n){function i(e){let t=null;return e&&(t=function(e){try{return{boundingClientRect:{...e.getBoundingClientRect()}}}catch{return{}}}(e),e.tagName in l&&l[e.tagName].forEach((a=>Object.assign(t,a(e))))),t}r(),a.serializeEvent=\n/*\n    The MIT License (MIT)\n    \n    Copyright (c) 2019 Ryan S. Morshead\n    \n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n    \n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n    \n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n    */\nfunction(e){const t={};void 0!==e.detail&&Object.assign(t,{detail:JSON.parse(JSON.stringify(e.detail))});e.type in d&&Object.assign(t,d[e.type](e));return t.target=i(e.target),t.currentTarget=e.target===e.currentTarget?t.target:i(e.currentTarget),t.relatedTarget=i(e.relatedTarget),t};const o={hasValue:e=>({value:e.value}),hasCurrentTime:e=>({currentTime:e.currentTime}),hasFiles:e=>\"file\"===e.type?{files:[...e.files??[]].map((e=>({lastModified:e.lastModified,name:e.name,size:e.size,type:e.type})))}:{}};const s={hasValue:[\"BUTTON\",\"INPUT\",\"OPTION\",\"LI\",\"METER\",\"PROGRESS\",\"PARAM\",\"SELECT\",\"TEXTAREA\"],hasCurrentTime:[\"AUDIO\",\"VIDEO\"],hasFiles:[\"INPUT\"]},l={};Object.keys(s).forEach((e=>{s[e].forEach((t=>{(l[t]||(l[t]=[])).push(o[e])}))}));class c{clipboard(e){return{clipboardData:e.clipboardData}}composition(e){return{data:e.data}}keyboard(e){return{altKey:e.altKey,charCode:e.charCode,ctrlKey:e.ctrlKey,key:e.key,keyCode:e.keyCode,locale:e.locale,location:e.location,metaKey:e.metaKey,repeat:e.repeat,shiftKey:e.shiftKey,which:e.which}}mouse(e){return{altKey:e.altKey,button:e.button,buttons:e.buttons,clientX:e.clientX,clientY:e.clientY,ctrlKey:e.ctrlKey,metaKey:e.metaKey,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY,shiftKey:e.shiftKey}}pointer(e){return{...this.mouse(e),pointerId:e.pointerId,width:e.width,height:e.height,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY,pointerType:e.pointerType,isPrimary:e.isPrimary}}selection(){return{selectedText:window.getSelection().toString()}}touch(e){return{altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey}}ui(e){return{detail:e.detail}}wheel(e){return{deltaMode:e.deltaMode,deltaX:e.deltaX,deltaY:e.deltaY,deltaZ:e.deltaZ}}animation(e){return{animationName:e.animationName,pseudoElement:e.pseudoElement,elapsedTime:e.elapsedTime}}transition(e){return{propertyName:e.propertyName,pseudoElement:e.pseudoElement,elapsedTime:e.elapsedTime}}}c.__name__=\"EventTransformCategories\";const u={clipboard:[\"copy\",\"cut\",\"paste\"],composition:[\"compositionend\",\"compositionstart\",\"compositionupdate\"],keyboard:[\"keydown\",\"keypress\",\"keyup\"],mouse:[\"click\",\"contextmenu\",\"doubleclick\",\"drag\",\"dragend\",\"dragenter\",\"dragexit\",\"dragleave\",\"dragover\",\"dragstart\",\"drop\",\"mousedown\",\"mouseenter\",\"mouseleave\",\"mousemove\",\"mouseout\",\"mouseover\",\"mouseup\"],pointer:[\"pointerdown\",\"pointermove\",\"pointerup\",\"pointercancel\",\"gotpointercapture\",\"lostpointercapture\",\"pointerenter\",\"pointerleave\",\"pointerover\",\"pointerout\"],selection:[\"select\"],touch:[\"touchcancel\",\"touchend\",\"touchmove\",\"touchstart\"],ui:[\"scroll\"],wheel:[\"wheel\"],animation:[\"animationstart\",\"animationend\",\"animationiteration\"],transition:[\"transitionend\"]},d={},p=new c;Object.keys(u).forEach((e=>{u[e].forEach((t=>{d[t]=p[e].bind(p)}))}))}\n//# sourceMappingURL=event-to-object.min.js.map","min_map":"{\"version\":3,\"file\":\"event-to-object.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"serializeDomElement\",\"element\",\"elementData\",\"boundingClientRect\",\"getBoundingClientRect\",\"defaultElementTransform\",\"tagName\",\"elementTransforms\",\"forEach\",\"trans\",\"Object\",\"assign\",\"serializeEvent\",\"event\",\"data\",\"undefined\",\"detail\",\"JSON\",\"parse\",\"stringify\",\"type\",\"eventTransforms\",\"target\",\"currentTarget\",\"relatedTarget\",\"elementTransformCategories\",\"hasValue\",\"value\",\"hasCurrentTime\",\"currentTime\",\"hasFiles\",\"files\",\"map\",\"file\",\"lastModified\",\"name\",\"size\",\"elementTagCategories\",\"keys\",\"category\",\"push\",\"EventTransformCategories\",\"clipboard\",\"clipboardData\",\"composition\",\"keyboard\",\"altKey\",\"charCode\",\"ctrlKey\",\"key\",\"keyCode\",\"locale\",\"location\",\"metaKey\",\"repeat\",\"shiftKey\",\"which\",\"mouse\",\"button\",\"buttons\",\"clientX\",\"clientY\",\"pageX\",\"pageY\",\"screenX\",\"screenY\",\"pointer\",\"this\",\"pointerId\",\"width\",\"height\",\"pressure\",\"tiltX\",\"tiltY\",\"pointerType\",\"isPrimary\",\"selection\",\"selectedText\",\"window\",\"getSelection\",\"toString\",\"touch\",\"ui\",\"wheel\",\"deltaMode\",\"deltaX\",\"deltaY\",\"deltaZ\",\"animation\",\"animationName\",\"pseudoElement\",\"elapsedTime\",\"transition\",\"propertyName\",\"__name__\",\"eventTypeCategories\",\"eventTransformCategories\",\"bind\"],\"sources\":[\"0\"],\"mappings\":\"AAAgC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GA2C7E,SAASC,EAAoBC,GACzB,IAAIC,EAAc,KAOlB,OANID,IACAC,EA8BR,SAAiCD,GAC7B,IACI,MAAO,CAAEE,mBAAoB,IAAKF,EAAQG,yBAC9C,CACA,MACI,MAAO,CAAC,CACZ,CACJ,CArCsBC,CAAwBJ,GAClCA,EAAQK,WAAWC,GACnBA,EAAkBN,EAAQK,SAASE,SAASC,GAAUC,OAAOC,OAAOT,EAAaO,EAAMR,OAGxFC,CACX,CAnDAJ,IACAD,EAAQe;;;;;;;;;;;;;;;;;;;;;;;;AAwBR,SAAwBC,GACpB,MAAMC,EAAO,CAAC,OAEOC,IAAjBF,EAAMG,QACNN,OAAOC,OAAOG,EAAM,CAAEE,OAAQC,KAAKC,MAAMD,KAAKE,UAAUN,EAAMG,WAE9DH,EAAMO,QAAQC,GACdX,OAAOC,OAAOG,EAAMO,EAAgBR,EAAMO,MAAMP,IAQpD,OANAC,EAAKQ,OAAStB,EAAoBa,EAAMS,QACxCR,EAAKS,cACDV,EAAMS,SAAWT,EAAMU,cACjBT,EAAKQ,OACLtB,EAAoBa,EAAMU,eACpCT,EAAKU,cAAgBxB,EAAoBa,EAAMW,eACxCV,CACX,EAWA,MAAMW,EAA6B,CAC/BC,SAAWzB,IAAY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,cACA,cAEJU,UAAW,CAAC,UACZK,MAAO,CAAC,cAAe,WAAY,YAAa,cAChDC,GAAI,CAAC,UACLC,MAAO,CAAC,SACRK,UAAW,CAAC,iBAAkB,eAAgB,sBAC9CI,WAAY,CAAC,kBAEXvE,EAAkB,CAAC,EACnB2E,EAA2B,IAAIvD,EACrC/B,OAAO4B,KAAKyD,GAAqBvF,SAAS+B,IACtCwD,EAAoBxD,GAAU/B,SAASY,IAEnCC,EAAgBD,GAAQ4E,EAAyBzD,GAAU0D,KAAKD,EAAyB,GAC3F,GAEV\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/html.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/html.js","canonical":"models/html","resolution":"ESM","id":"4c04683fdc","hash":"4c04683fdc0d5240ada36de6163f9c0d413caf52f00c77bd546d7c1829cda499","source":"\"use strict\";\nvar _a, _b, _c;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.HTML = exports.HTMLView = exports.DOMEvent = exports.HTMLStreamEvent = void 0;\nexports.html_decode = html_decode;\nexports.run_scripts = run_scripts;\nconst tslib_1 = require(\"tslib\");\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n        r = Reflect.decorate(decorators, target, key, desc);\n    else\n        for (var i = decorators.length - 1; i >= 0; i--)\n            if (d = decorators[i])\n                r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar HTMLStreamEvent_1;\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nconst object_1 = require(\"@bokehjs/core/util/object\");\nconst markup_1 = require(\"@bokehjs/models/widgets/markup\");\nconst layout_1 = require(\"./layout\");\nconst event_to_object_1 = require(\"./event-to-object\");\nconst util_1 = require(\"./util\");\nconst html_css_1 = tslib_1.__importDefault(require(\"../styles/models/html.css\"));\nconst COPY_ICON = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"  fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"  class=\"icon icon-tabler icons-tabler-outline icon-tabler-clipboard\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2\" /><path d=\"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z\"/></svg>`;\nconst CHECK_ICON = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"  fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"  class=\"icon icon-tabler icons-tabler-outline icon-tabler-check\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M5 12l5 5l10 -10\"/></svg>`;\nfunction searchAllDOMs(node, selector) {\n    let found = [];\n    if (node instanceof Element && node.matches(selector)) {\n        found.push(node);\n    }\n    node.children && Array.from(node.children).forEach(child => {\n        found = found.concat(searchAllDOMs(child, selector));\n    });\n    if (node instanceof Element && node.shadowRoot) {\n        found = found.concat(searchAllDOMs(node.shadowRoot, selector));\n    }\n    return found;\n}\nlet HTMLStreamEvent = (_a = class HTMLStreamEvent extends bokeh_events_1.ModelEvent {\n        constructor(model, patch, start) {\n            super();\n            this.model = model;\n            this.patch = patch;\n            this.start = start;\n            this.patch = patch;\n            this.start = start;\n            this.origin = model;\n        }\n        get event_values() {\n            return { model: this.origin, patch: this.patch, start: this.start };\n        }\n        static from_values(values) {\n            const { model, patch, start } = values;\n            return new HTMLStreamEvent_1(model, patch, start);\n        }\n    },\n    (() => {\n        HTMLStreamEvent_1 = _a;\n    })(),\n    _a.__name__ = \"HTMLStreamEvent\",\n    _a);\nexports.HTMLStreamEvent = HTMLStreamEvent;\nexports.HTMLStreamEvent = HTMLStreamEvent = HTMLStreamEvent_1 = __decorate([\n    (0, bokeh_events_1.server_event)(\"html_stream\")\n], HTMLStreamEvent);\nclass DOMEvent extends bokeh_events_1.ModelEvent {\n    constructor(node, data) {\n        super();\n        this.node = node;\n        this.data = data;\n    }\n    get event_values() {\n        return { model: this.origin, node: this.node, data: this.data };\n    }\n}\nexports.DOMEvent = DOMEvent;\n_b = DOMEvent;\nDOMEvent.__name__ = \"DOMEvent\";\n(() => {\n    _b.prototype.event_name = \"dom_event\";\n})();\nfunction html_decode(input) {\n    const doc = new DOMParser().parseFromString(input, \"text/html\");\n    return doc.documentElement.textContent;\n}\nfunction run_scripts(node) {\n    for (const old_script of node.querySelectorAll(\"script\")) {\n        const new_script = document.createElement(\"script\");\n        for (const attr of old_script.attributes) {\n            new_script.setAttribute(attr.name, attr.value);\n        }\n        new_script.append(document.createTextNode(old_script.innerHTML));\n        const parent_node = old_script.parentNode;\n        if (parent_node != null) {\n            parent_node.replaceChild(new_script, old_script);\n        }\n    }\n}\nclass HTMLView extends layout_1.PanelMarkupView {\n    constructor() {\n        super(...arguments);\n        this._buffer = null;\n        this._event_listeners = new Map();\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { text, visible, events } = this.model.properties;\n        this.on_change(text, () => {\n            this._buffer = null;\n            const html = this.process_tex();\n            this.set_html(html);\n        });\n        this.on_change(visible, () => {\n            if (this.model.visible) {\n                this.container.style.visibility = \"visible\";\n            }\n        });\n        this.on_change(events, () => {\n            this._remove_event_listeners();\n            this._setup_event_listeners();\n        });\n        const set_text = (0, util_1.throttle)(() => {\n            const text = this._buffer;\n            this._buffer = null;\n            this.model.setv({ text }, { silent: true });\n            const html = this.process_tex();\n            this.set_html(html);\n        }, 10);\n        this.model.on_event(HTMLStreamEvent, (event) => {\n            const beginning = this._buffer == null ? this.model.text : this._buffer;\n            this._buffer = beginning.slice(0, event.start) + event.patch;\n            set_text();\n        });\n    }\n    stylesheets() {\n        return [...super.stylesheets(), html_css_1.default];\n    }\n    set_html(html) {\n        if (html === null || this.container == null) {\n            return;\n        }\n        this.container.innerHTML = html;\n        if (this.model.run_scripts) {\n            run_scripts(this.container);\n        }\n        this._setup_event_listeners();\n        for (const codeblock of this.container.querySelectorAll(\".codehilite\")) {\n            const copy_button = document.createElement(\"button\");\n            const pre = codeblock.children[0];\n            copy_button.className = \"copybtn\";\n            copy_button.innerHTML = COPY_ICON;\n            copy_button.addEventListener(\"click\", () => {\n                const code = pre.innerText;\n                navigator.clipboard.writeText(code).then(() => {\n                    copy_button.innerHTML = CHECK_ICON;\n                    setTimeout(() => {\n                        copy_button.innerHTML = COPY_ICON;\n                    }, 300);\n                });\n            });\n            codeblock.insertBefore(copy_button, pre);\n        }\n        for (const anchor of this.container.querySelectorAll(\"a\")) {\n            const link = anchor.getAttribute(\"href\");\n            if (link && link.startsWith(\"#\")) {\n                anchor.addEventListener(\"click\", () => {\n                    const found = searchAllDOMs(document.body, link);\n                    if ((found.length > 0) && found[0] instanceof Element) {\n                        found[0].scrollIntoView();\n                    }\n                });\n                if (!this.root.has_finished() && this.model.document && window.location.hash === link) {\n                    this.model.document.on_event(\"document_ready\", () => {\n                        anchor.scrollIntoView();\n                        setTimeout(() => anchor.scrollIntoView(), 5);\n                    });\n                }\n            }\n        }\n    }\n    render() {\n        super.render();\n        this.container.style.visibility = \"hidden\";\n        this.shadow_el.appendChild(this.container);\n        if (this.provider.status == \"failed\" || this.provider.status == \"loaded\") {\n            this._has_finished = true;\n        }\n        const html = this.process_tex();\n        this.watch_stylesheets();\n        this.set_html(html);\n    }\n    style_redraw() {\n        if (this.model.visible) {\n            this.container.style.visibility = \"visible\";\n        }\n    }\n    process_tex() {\n        const decoded = html_decode(this.model.text);\n        const text = decoded ?? this.model.text;\n        if (this.model.disable_math || !this.contains_tex(text)) {\n            return text;\n        }\n        const tex_parts = this.provider.MathJax.find_tex(text);\n        const processed_text = [];\n        let last_index = 0;\n        for (const part of tex_parts) {\n            processed_text.push(text.slice(last_index, part.start.n));\n            processed_text.push(this.provider.MathJax.tex2svg(part.math, { display: part.display }).outerHTML);\n            last_index = part.end.n;\n        }\n        if (last_index < text.length) {\n            processed_text.push(text.slice(last_index));\n        }\n        return processed_text.join(\"\");\n    }\n    contains_tex(html) {\n        if (!this.provider.MathJax) {\n            return false;\n        }\n        return this.provider.MathJax.find_tex(html).length > 0;\n    }\n    _remove_event_listeners() {\n        for (const [node, callbacks] of this._event_listeners) {\n            const el = document.getElementById(node);\n            if (el == null) {\n                console.warn(`DOM node '${node}' could not be found. Cannot subscribe to DOM events.`);\n                continue;\n            }\n            for (const [event_name, event_callback] of callbacks) {\n                el.removeEventListener(event_name, event_callback);\n            }\n        }\n        this._event_listeners.clear();\n    }\n    _setup_event_listeners() {\n        for (const [node, event_names] of (0, object_1.entries)(this.model.events)) {\n            const el = document.getElementById(node);\n            if (el == null) {\n                console.warn(`DOM node '${node}' could not be found. Cannot subscribe to DOM events.`);\n                continue;\n            }\n            for (const event_name of event_names) {\n                const callback = (event) => {\n                    this.model.trigger_event(new DOMEvent(node, (0, event_to_object_1.serializeEvent)(event)));\n                };\n                el.addEventListener(event_name, callback);\n                let callbacks = this._event_listeners.get(node);\n                if (callbacks === undefined) {\n                    this._event_listeners.set(node, callbacks = new Map());\n                }\n                callbacks.set(event_name, callback);\n            }\n        }\n    }\n}\nexports.HTMLView = HTMLView;\nHTMLView.__name__ = \"HTMLView\";\nclass HTML extends markup_1.Markup {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.HTML = HTML;\n_c = HTML;\nHTML.__name__ = \"HTML\";\nHTML.__module__ = \"panel.models.markup\";\n(() => {\n    _c.prototype.default_view = HTMLView;\n    _c.define(({ Bool, Str, List, Dict }) => ({\n        events: [Dict(List(Str)), {}],\n        run_scripts: [Bool, true],\n    }));\n})();\n//# sourceMappingURL=html.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"],["./event-to-object","/home/runner/work/panel/panel/panel/dist/lib/models/event-to-object.js"],["./util","/home/runner/work/panel/panel/panel/dist/lib/models/util.js"],["../styles/models/html.css","/home/runner/work/panel/panel/panel/dist/lib/styles/models/html.css.js"]],"dependency_map":[],"exported":[{"type":"named","name":"DOMEvent"},{"type":"named","name":"html_decode"},{"type":"named","name":"run_scripts"},{"type":"named","name":"HTMLView"},{"type":"named","name":"HTML"}],"externals":[],"shims":[]},"code":{"source":"/* models/html.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a, _b, _c;\n    __esModule();\n    exports.html_decode = html_decode;\n    exports.run_scripts = run_scripts;\n    const tslib_1 = require(\"tslib\");\n    var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n        if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n            r = Reflect.decorate(decorators, target, key, desc);\n        else\n            for (var i = decorators.length - 1; i >= 0; i--)\n                if (d = decorators[i])\n                    r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n        return c > 3 && r && Object.defineProperty(target, key, r), r;\n    };\n    var HTMLStreamEvent_1;\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    const object_1 = require(\"@bokehjs/core/util/object\");\n    const markup_1 = require(\"@bokehjs/models/widgets/markup\");\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    const event_to_object_1 = require(\"a572dba9cd\") /* ./event-to-object */;\n    const util_1 = require(\"a3669a897a\") /* ./util */;\n    const html_css_1 = tslib_1.__importDefault(require(\"9b8139e439\") /* ../styles/models/html.css */);\n    const COPY_ICON = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"  fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"  class=\"icon icon-tabler icons-tabler-outline icon-tabler-clipboard\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2\" /><path d=\"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z\"/></svg>`;\n    const CHECK_ICON = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"  fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"  class=\"icon icon-tabler icons-tabler-outline icon-tabler-check\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M5 12l5 5l10 -10\"/></svg>`;\n    function searchAllDOMs(node, selector) {\n        let found = [];\n        if (node instanceof Element && node.matches(selector)) {\n            found.push(node);\n        }\n        node.children && Array.from(node.children).forEach(child => {\n            found = found.concat(searchAllDOMs(child, selector));\n        });\n        if (node instanceof Element && node.shadowRoot) {\n            found = found.concat(searchAllDOMs(node.shadowRoot, selector));\n        }\n        return found;\n    }\n    let HTMLStreamEvent = (_a = class HTMLStreamEvent extends bokeh_events_1.ModelEvent {\n        constructor(model, patch, start) {\n            super();\n            this.model = model;\n            this.patch = patch;\n            this.start = start;\n            this.patch = patch;\n            this.start = start;\n            this.origin = model;\n        }\n        get event_values() {\n            return { model: this.origin, patch: this.patch, start: this.start };\n        }\n        static from_values(values) {\n            const { model, patch, start } = values;\n            return new HTMLStreamEvent_1(model, patch, start);\n        }\n    },\n        (() => {\n            HTMLStreamEvent_1 = _a;\n        })(),\n        _a.__name__ = \"HTMLStreamEvent\",\n        _a);\n    exports.HTMLStreamEvent = HTMLStreamEvent;\n    exports.HTMLStreamEvent = HTMLStreamEvent = HTMLStreamEvent_1 = __decorate([\n        (0, bokeh_events_1.server_event)(\"html_stream\")\n    ], HTMLStreamEvent);\n    class DOMEvent extends bokeh_events_1.ModelEvent {\n        constructor(node, data) {\n            super();\n            this.node = node;\n            this.data = data;\n        }\n        get event_values() {\n            return { model: this.origin, node: this.node, data: this.data };\n        }\n    }\n    exports.DOMEvent = DOMEvent;\n    _b = DOMEvent;\n    DOMEvent.__name__ = \"DOMEvent\";\n    (() => {\n        _b.prototype.event_name = \"dom_event\";\n    })();\n    function html_decode(input) {\n        const doc = new DOMParser().parseFromString(input, \"text/html\");\n        return doc.documentElement.textContent;\n    }\n    function run_scripts(node) {\n        for (const old_script of node.querySelectorAll(\"script\")) {\n            const new_script = document.createElement(\"script\");\n            for (const attr of old_script.attributes) {\n                new_script.setAttribute(attr.name, attr.value);\n            }\n            new_script.append(document.createTextNode(old_script.innerHTML));\n            const parent_node = old_script.parentNode;\n            if (parent_node != null) {\n                parent_node.replaceChild(new_script, old_script);\n            }\n        }\n    }\n    class HTMLView extends layout_1.PanelMarkupView {\n        constructor() {\n            super(...arguments);\n            this._buffer = null;\n            this._event_listeners = new Map();\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { text, visible, events } = this.model.properties;\n            this.on_change(text, () => {\n                this._buffer = null;\n                const html = this.process_tex();\n                this.set_html(html);\n            });\n            this.on_change(visible, () => {\n                if (this.model.visible) {\n                    this.container.style.visibility = \"visible\";\n                }\n            });\n            this.on_change(events, () => {\n                this._remove_event_listeners();\n                this._setup_event_listeners();\n            });\n            const set_text = (0, util_1.throttle)(() => {\n                const text = this._buffer;\n                this._buffer = null;\n                this.model.setv({ text }, { silent: true });\n                const html = this.process_tex();\n                this.set_html(html);\n            }, 10);\n            this.model.on_event(HTMLStreamEvent, (event) => {\n                const beginning = this._buffer == null ? this.model.text : this._buffer;\n                this._buffer = beginning.slice(0, event.start) + event.patch;\n                set_text();\n            });\n        }\n        stylesheets() {\n            return [...super.stylesheets(), html_css_1.default];\n        }\n        set_html(html) {\n            if (html === null || this.container == null) {\n                return;\n            }\n            this.container.innerHTML = html;\n            if (this.model.run_scripts) {\n                run_scripts(this.container);\n            }\n            this._setup_event_listeners();\n            for (const codeblock of this.container.querySelectorAll(\".codehilite\")) {\n                const copy_button = document.createElement(\"button\");\n                const pre = codeblock.children[0];\n                copy_button.className = \"copybtn\";\n                copy_button.innerHTML = COPY_ICON;\n                copy_button.addEventListener(\"click\", () => {\n                    const code = pre.innerText;\n                    navigator.clipboard.writeText(code).then(() => {\n                        copy_button.innerHTML = CHECK_ICON;\n                        setTimeout(() => {\n                            copy_button.innerHTML = COPY_ICON;\n                        }, 300);\n                    });\n                });\n                codeblock.insertBefore(copy_button, pre);\n            }\n            for (const anchor of this.container.querySelectorAll(\"a\")) {\n                const link = anchor.getAttribute(\"href\");\n                if (link && link.startsWith(\"#\")) {\n                    anchor.addEventListener(\"click\", () => {\n                        const found = searchAllDOMs(document.body, link);\n                        if ((found.length > 0) && found[0] instanceof Element) {\n                            found[0].scrollIntoView();\n                        }\n                    });\n                    if (!this.root.has_finished() && this.model.document && window.location.hash === link) {\n                        this.model.document.on_event(\"document_ready\", () => {\n                            anchor.scrollIntoView();\n                            setTimeout(() => anchor.scrollIntoView(), 5);\n                        });\n                    }\n                }\n            }\n        }\n        render() {\n            super.render();\n            this.container.style.visibility = \"hidden\";\n            this.shadow_el.appendChild(this.container);\n            if (this.provider.status == \"failed\" || this.provider.status == \"loaded\") {\n                this._has_finished = true;\n            }\n            const html = this.process_tex();\n            this.watch_stylesheets();\n            this.set_html(html);\n        }\n        style_redraw() {\n            if (this.model.visible) {\n                this.container.style.visibility = \"visible\";\n            }\n        }\n        process_tex() {\n            const decoded = html_decode(this.model.text);\n            const text = decoded ?? this.model.text;\n            if (this.model.disable_math || !this.contains_tex(text)) {\n                return text;\n            }\n            const tex_parts = this.provider.MathJax.find_tex(text);\n            const processed_text = [];\n            let last_index = 0;\n            for (const part of tex_parts) {\n                processed_text.push(text.slice(last_index, part.start.n));\n                processed_text.push(this.provider.MathJax.tex2svg(part.math, { display: part.display }).outerHTML);\n                last_index = part.end.n;\n            }\n            if (last_index < text.length) {\n                processed_text.push(text.slice(last_index));\n            }\n            return processed_text.join(\"\");\n        }\n        contains_tex(html) {\n            if (!this.provider.MathJax) {\n                return false;\n            }\n            return this.provider.MathJax.find_tex(html).length > 0;\n        }\n        _remove_event_listeners() {\n            for (const [node, callbacks] of this._event_listeners) {\n                const el = document.getElementById(node);\n                if (el == null) {\n                    console.warn(`DOM node '${node}' could not be found. Cannot subscribe to DOM events.`);\n                    continue;\n                }\n                for (const [event_name, event_callback] of callbacks) {\n                    el.removeEventListener(event_name, event_callback);\n                }\n            }\n            this._event_listeners.clear();\n        }\n        _setup_event_listeners() {\n            for (const [node, event_names] of (0, object_1.entries)(this.model.events)) {\n                const el = document.getElementById(node);\n                if (el == null) {\n                    console.warn(`DOM node '${node}' could not be found. Cannot subscribe to DOM events.`);\n                    continue;\n                }\n                for (const event_name of event_names) {\n                    const callback = (event) => {\n                        this.model.trigger_event(new DOMEvent(node, (0, event_to_object_1.serializeEvent)(event)));\n                    };\n                    el.addEventListener(event_name, callback);\n                    let callbacks = this._event_listeners.get(node);\n                    if (callbacks === undefined) {\n                        this._event_listeners.set(node, callbacks = new Map());\n                    }\n                    callbacks.set(event_name, callback);\n                }\n            }\n        }\n    }\n    exports.HTMLView = HTMLView;\n    HTMLView.__name__ = \"HTMLView\";\n    class HTML extends markup_1.Markup {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.HTML = HTML;\n    _c = HTML;\n    HTML.__name__ = \"HTML\";\n    HTML.__module__ = \"panel.models.markup\";\n    (() => {\n        _c.prototype.default_view = HTMLView;\n        _c.define(({ Bool, Str, List, Dict }) => ({\n            events: [Dict(List(Str)), {}],\n            run_scripts: [Bool, true],\n        }));\n    })();\n}\n","min_source":"function _(e,t,s,n,o){var i,r,l;n(),s.html_decode=x,s.run_scripts=y;const c=e(\"tslib\");var a,h=this&&this.__decorate||function(e,t,s,n){var o,i=arguments.length,r=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,s):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(i<3?o(r):i>3?o(t,s,r):o(t,s))||r);return i>3&&r&&Object.defineProperty(t,s,r),r};const d=e(\"@bokehjs/core/bokeh_events\"),u=e(\"@bokehjs/core/util/object\"),_=e(\"@bokehjs/models/widgets/markup\"),v=e(\"dab42e6dad\"),m=e(\"a572dba9cd\"),p=e(\"a3669a897a\"),f=c.__importDefault(e(\"9b8139e439\")),b='<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"  fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"  class=\"icon icon-tabler icons-tabler-outline icon-tabler-clipboard\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2\" /><path d=\"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z\"/></svg>';function w(e,t){let s=[];return e instanceof Element&&e.matches(t)&&s.push(e),e.children&&Array.from(e.children).forEach((e=>{s=s.concat(w(e,t))})),e instanceof Element&&e.shadowRoot&&(s=s.concat(w(e.shadowRoot,t))),s}let g=(i=class extends d.ModelEvent{constructor(e,t,s){super(),this.model=e,this.patch=t,this.start=s,this.patch=t,this.start=s,this.origin=e}get event_values(){return{model:this.origin,patch:this.patch,start:this.start}}static from_values(e){const{model:t,patch:s,start:n}=e;return new a(t,s,n)}},a=i,i.__name__=\"HTMLStreamEvent\",i);s.HTMLStreamEvent=g,s.HTMLStreamEvent=g=a=h([(0,d.server_event)(\"html_stream\")],g);class M extends d.ModelEvent{constructor(e,t){super(),this.node=e,this.data=t}get event_values(){return{model:this.origin,node:this.node,data:this.data}}}function x(e){return(new DOMParser).parseFromString(e,\"text/html\").documentElement.textContent}function y(e){for(const t of e.querySelectorAll(\"script\")){const e=document.createElement(\"script\");for(const s of t.attributes)e.setAttribute(s.name,s.value);e.append(document.createTextNode(t.innerHTML));const s=t.parentNode;null!=s&&s.replaceChild(e,t)}}s.DOMEvent=M,r=M,M.__name__=\"DOMEvent\",r.prototype.event_name=\"dom_event\";class k extends v.PanelMarkupView{constructor(){super(...arguments),this._buffer=null,this._event_listeners=new Map}connect_signals(){super.connect_signals();const{text:e,visible:t,events:s}=this.model.properties;this.on_change(e,(()=>{this._buffer=null;const e=this.process_tex();this.set_html(e)})),this.on_change(t,(()=>{this.model.visible&&(this.container.style.visibility=\"visible\")})),this.on_change(s,(()=>{this._remove_event_listeners(),this._setup_event_listeners()}));const n=(0,p.throttle)((()=>{const e=this._buffer;this._buffer=null,this.model.setv({text:e},{silent:!0});const t=this.process_tex();this.set_html(t)}),10);this.model.on_event(g,(e=>{const t=null==this._buffer?this.model.text:this._buffer;this._buffer=t.slice(0,e.start)+e.patch,n()}))}stylesheets(){return[...super.stylesheets(),f.default]}set_html(e){if(null!==e&&null!=this.container){this.container.innerHTML=e,this.model.run_scripts&&y(this.container),this._setup_event_listeners();for(const e of this.container.querySelectorAll(\".codehilite\")){const t=document.createElement(\"button\"),s=e.children[0];t.className=\"copybtn\",t.innerHTML=b,t.addEventListener(\"click\",(()=>{const e=s.innerText;navigator.clipboard.writeText(e).then((()=>{t.innerHTML='<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"  fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"  class=\"icon icon-tabler icons-tabler-outline icon-tabler-check\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M5 12l5 5l10 -10\"/></svg>',setTimeout((()=>{t.innerHTML=b}),300)}))})),e.insertBefore(t,s)}for(const e of this.container.querySelectorAll(\"a\")){const t=e.getAttribute(\"href\");t&&t.startsWith(\"#\")&&(e.addEventListener(\"click\",(()=>{const e=w(document.body,t);e.length>0&&e[0]instanceof Element&&e[0].scrollIntoView()})),!this.root.has_finished()&&this.model.document&&window.location.hash===t&&this.model.document.on_event(\"document_ready\",(()=>{e.scrollIntoView(),setTimeout((()=>e.scrollIntoView()),5)})))}}}render(){super.render(),this.container.style.visibility=\"hidden\",this.shadow_el.appendChild(this.container),\"failed\"!=this.provider.status&&\"loaded\"!=this.provider.status||(this._has_finished=!0);const e=this.process_tex();this.watch_stylesheets(),this.set_html(e)}style_redraw(){this.model.visible&&(this.container.style.visibility=\"visible\")}process_tex(){const e=x(this.model.text)??this.model.text;if(this.model.disable_math||!this.contains_tex(e))return e;const t=this.provider.MathJax.find_tex(e),s=[];let n=0;for(const o of t)s.push(e.slice(n,o.start.n)),s.push(this.provider.MathJax.tex2svg(o.math,{display:o.display}).outerHTML),n=o.end.n;return n<e.length&&s.push(e.slice(n)),s.join(\"\")}contains_tex(e){return!!this.provider.MathJax&&this.provider.MathJax.find_tex(e).length>0}_remove_event_listeners(){for(const[e,t]of this._event_listeners){const s=document.getElementById(e);if(null!=s)for(const[e,n]of t)s.removeEventListener(e,n);else console.warn(`DOM node '${e}' could not be found. Cannot subscribe to DOM events.`)}this._event_listeners.clear()}_setup_event_listeners(){for(const[e,t]of(0,u.entries)(this.model.events)){const s=document.getElementById(e);if(null!=s)for(const n of t){const t=t=>{this.model.trigger_event(new M(e,(0,m.serializeEvent)(t)))};s.addEventListener(n,t);let o=this._event_listeners.get(e);void 0===o&&this._event_listeners.set(e,o=new Map),o.set(n,t)}else console.warn(`DOM node '${e}' could not be found. Cannot subscribe to DOM events.`)}}}s.HTMLView=k,k.__name__=\"HTMLView\";class E extends _.Markup{constructor(e){super(e)}}s.HTML=E,l=E,E.__name__=\"HTML\",E.__module__=\"panel.models.markup\",l.prototype.default_view=k,l.define((({Bool:e,Str:t,List:s,Dict:n})=>({events:[n(s(t)),{}],run_scripts:[e,!0]})))}\n//# sourceMappingURL=html.min.js.map","min_map":"{\"version\":3,\"file\":\"html.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"_b\",\"_c\",\"html_decode\",\"run_scripts\",\"tslib_1\",\"HTMLStreamEvent_1\",\"__decorate\",\"this\",\"decorators\",\"target\",\"key\",\"desc\",\"d\",\"c\",\"arguments\",\"length\",\"r\",\"Object\",\"getOwnPropertyDescriptor\",\"Reflect\",\"decorate\",\"i\",\"defineProperty\",\"bokeh_events_1\",\"object_1\",\"markup_1\",\"layout_1\",\"event_to_object_1\",\"util_1\",\"html_css_1\",\"__importDefault\",\"COPY_ICON\",\"searchAllDOMs\",\"node\",\"selector\",\"found\",\"Element\",\"matches\",\"push\",\"children\",\"Array\",\"from\",\"forEach\",\"child\",\"concat\",\"shadowRoot\",\"HTMLStreamEvent\",\"ModelEvent\",\"constructor\",\"model\",\"patch\",\"start\",\"super\",\"origin\",\"event_values\",\"from_values\",\"values\",\"__name__\",\"server_event\",\"DOMEvent\",\"data\",\"input\",\"DOMParser\",\"parseFromString\",\"documentElement\",\"textContent\",\"old_script\",\"querySelectorAll\",\"new_script\",\"document\",\"createElement\",\"attr\",\"attributes\",\"setAttribute\",\"name\",\"value\",\"append\",\"createTextNode\",\"innerHTML\",\"parent_node\",\"parentNode\",\"replaceChild\",\"prototype\",\"event_name\",\"HTMLView\",\"PanelMarkupView\",\"_buffer\",\"_event_listeners\",\"Map\",\"connect_signals\",\"text\",\"visible\",\"events\",\"properties\",\"on_change\",\"html\",\"process_tex\",\"set_html\",\"container\",\"style\",\"visibility\",\"_remove_event_listeners\",\"_setup_event_listeners\",\"set_text\",\"throttle\",\"setv\",\"silent\",\"on_event\",\"event\",\"beginning\",\"slice\",\"stylesheets\",\"default\",\"codeblock\",\"copy_button\",\"pre\",\"className\",\"addEventListener\",\"code\",\"innerText\",\"navigator\",\"clipboard\",\"writeText\",\"then\",\"setTimeout\",\"insertBefore\",\"anchor\",\"link\",\"getAttribute\",\"startsWith\",\"body\",\"scrollIntoView\",\"root\",\"has_finished\",\"window\",\"location\",\"hash\",\"render\",\"shadow_el\",\"appendChild\",\"provider\",\"status\",\"_has_finished\",\"watch_stylesheets\",\"style_redraw\",\"disable_math\",\"contains_tex\",\"tex_parts\",\"MathJax\",\"find_tex\",\"processed_text\",\"last_index\",\"part\",\"n\",\"tex2svg\",\"math\",\"display\",\"outerHTML\",\"end\",\"join\",\"callbacks\",\"el\",\"getElementById\",\"event_callback\",\"removeEventListener\",\"console\",\"warn\",\"clear\",\"event_names\",\"entries\",\"callback\",\"trigger_event\",\"serializeEvent\",\"get\",\"undefined\",\"set\",\"HTML\",\"Markup\",\"attrs\",\"__module__\",\"default_view\",\"define\",\"Bool\",\"Str\",\"List\",\"Dict\"],\"sources\":[\"0\"],\"mappings\":\"AAAqB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAClE,IAAIC,EAAIC,EAAIC,EACZJ,IACAD,EAAQM,YAAcA,EACtBN,EAAQO,YAAcA,EACtB,MAAMC,EAAUV,EAAQ,SACxB,IAUIW,EAVAC,EAAcC,MAAQA,KAAKD,YAAe,SAAUE,EAAYC,EAAQC,EAAKC,GAC7E,IAA2HC,EAAvHC,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIJ,EAAkB,OAATE,EAAgBA,EAAOM,OAAOC,yBAAyBT,EAAQC,GAAOC,EACrH,GAAuB,iBAAZQ,SAAoD,mBAArBA,QAAQC,SAC9CJ,EAAIG,QAAQC,SAASZ,EAAYC,EAAQC,EAAKC,QAE9C,IAA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KvH,SAAW,OAChBuH,EAAKG,WAAa,sBAEdlL,EAAGiF,UAAUkG,aAAehG,EAC5BnF,EAAGoL,QAAO,EAAGC,OAAMC,MAAKC,OAAMC,WAAW,CACrC7F,OAAQ,CAAC6F,EAAKD,EAAKD,IAAO,CAAC,GAC3BpL,YAAa,CAACmL,GAAM,MAGhC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/styles/models/html.css.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"styles/models/html.css.js","canonical":"styles/models/html.css","resolution":"ESM","id":"9b8139e439","hash":"9b8139e4393c26d12cc6b8a2145f99c3fd752d66cf1cf666eb9f0e263891580f","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = `.copybtn{position:sticky;display:flex;top:0;left:100%;width:1.7em;height:1.7em;opacity:0;transition:opacity 0.3s, border 0.3s, background-color 0.3s;user-select:none;padding:0;border:none;outline:none;border-radius:0.4em;border:#1b1f2426 1px solid;background-color:#f6f8fa;color:#57606a;}.codehilite pre{margin-top:-1.5em;}.copybtn svg{stroke:currentColor;width:1.5em;height:1.5em;padding:0.1em;}.codehilite:hover .copybtn{opacity:1;cursor:pointer;}`;\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"default"}],"externals":[],"shims":[]},"code":{"source":"/* styles/models/html.css.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = `.copybtn{position:sticky;display:flex;top:0;left:100%;width:1.7em;height:1.7em;opacity:0;transition:opacity 0.3s, border 0.3s, background-color 0.3s;user-select:none;padding:0;border:none;outline:none;border-radius:0.4em;border:#1b1f2426 1px solid;background-color:#f6f8fa;color:#57606a;}.codehilite pre{margin-top:-1.5em;}.copybtn svg{stroke:currentColor;width:1.5em;height:1.5em;padding:0.1em;}.codehilite:hover .copybtn{opacity:1;cursor:pointer;}`;\n}\n","min_source":"function _(o,e,r,t,i){t(),r.default=\".copybtn{position:sticky;display:flex;top:0;left:100%;width:1.7em;height:1.7em;opacity:0;transition:opacity 0.3s, border 0.3s, background-color 0.3s;user-select:none;padding:0;border:none;outline:none;border-radius:0.4em;border:#1b1f2426 1px solid;background-color:#f6f8fa;color:#57606a;}.codehilite pre{margin-top:-1.5em;}.copybtn svg{stroke:currentColor;width:1.5em;height:1.5em;padding:0.1em;}.codehilite:hover .copybtn{opacity:1;cursor:pointer;}\"}\n//# sourceMappingURL=html.css.min.js.map","min_map":"{\"version\":3,\"file\":\"html.css.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\"],\"sources\":[\"0\"],\"mappings\":\"AAAgC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC7ED,IACAD,EAAQG,QAAU,mcACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/styles/models/esm.css.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"styles/models/esm.css.js","canonical":"styles/models/esm.css","resolution":"ESM","id":"727a14f76b","hash":"727a14f76b64f1ba3ed1025c50f5f573b033a53c4ab49da07b47761884fdb915","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = `.error-wrapper,.child-wrapper{display:contents;}.error{padding:0.75rem 1.25rem;border:1px solid transparent;border-radius:0.25rem;color:var(--danger-text-color);background-color:var(--danger-bg-subtle);border-color:var(--danger-border-subtle);}.error .msg{font-weight:bold;}.error pre.highlight{backdrop-filter:brightness(0.8);font-weight:900;}`;\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"default"}],"externals":[],"shims":[]},"code":{"source":"/* styles/models/esm.css.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = `.error-wrapper,.child-wrapper{display:contents;}.error{padding:0.75rem 1.25rem;border:1px solid transparent;border-radius:0.25rem;color:var(--danger-text-color);background-color:var(--danger-bg-subtle);border-color:var(--danger-border-subtle);}.error .msg{font-weight:bold;}.error pre.highlight{backdrop-filter:brightness(0.8);font-weight:900;}`;\n}\n","min_source":"function _(r,e,o,d,t){d(),o.default=\".error-wrapper,.child-wrapper{display:contents;}.error{padding:0.75rem 1.25rem;border:1px solid transparent;border-radius:0.25rem;color:var(--danger-text-color);background-color:var(--danger-bg-subtle);border-color:var(--danger-border-subtle);}.error .msg{font-weight:bold;}.error pre.highlight{backdrop-filter:brightness(0.8);font-weight:900;}\"}\n//# sourceMappingURL=esm.css.min.js.map","min_map":"{\"version\":3,\"file\":\"esm.css.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\"],\"sources\":[\"0\"],\"mappings\":\"AAA+B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC5ED,IACAD,EAAQG,QAAU,0VACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/audio.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/audio.js","canonical":"models/audio","resolution":"ESM","id":"fd59c985b3","hash":"fd59c985b32987dc36919ddeb53a5cae4903eef41dd3f756617da192ed9f06ec","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Audio = exports.AudioView = void 0;\nconst layout_1 = require(\"./layout\");\nclass AudioView extends layout_1.HTMLBoxView {\n    initialize() {\n        super.initialize();\n        this._blocked = false;\n        this._setting = false;\n        this._time = Date.now();\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { loop, paused, time, value, volume, muted, autoplay } = this.model.properties;\n        this.on_change(loop, () => this.set_loop());\n        this.on_change(paused, () => this.set_paused());\n        this.on_change(time, () => this.set_time());\n        this.on_change(value, () => this.set_value());\n        this.on_change(volume, () => this.set_volume());\n        this.on_change(muted, () => this.set_muted());\n        this.on_change(autoplay, () => this.set_autoplay());\n    }\n    render() {\n        super.render();\n        this.audioEl = document.createElement(\"audio\");\n        this.audioEl.controls = true;\n        this.audioEl.src = this.model.value;\n        this.audioEl.currentTime = this.model.time;\n        this.audioEl.loop = this.model.loop;\n        this.audioEl.muted = this.model.muted;\n        this.audioEl.autoplay = this.model.autoplay;\n        if (this.model.volume != null) {\n            this.audioEl.volume = this.model.volume / 100;\n        }\n        else {\n            this.model.volume = this.audioEl.volume * 100;\n        }\n        this.audioEl.onpause = () => this.model.paused = true;\n        this.audioEl.onplay = () => this.model.paused = false;\n        this.audioEl.ontimeupdate = () => this.update_time(this);\n        this.audioEl.onvolumechange = () => this.update_volume(this);\n        (0, layout_1.set_size)(this.audioEl, this.model, false);\n        this.shadow_el.appendChild(this.audioEl);\n        if (!this.model.paused) {\n            this.audioEl.play();\n        }\n    }\n    update_time(view) {\n        if (view._setting) {\n            view._setting = false;\n            return;\n        }\n        if ((Date.now() - view._time) < view.model.throttle) {\n            return;\n        }\n        view._blocked = true;\n        view.model.time = view.audioEl.currentTime;\n        view._time = Date.now();\n    }\n    update_volume(view) {\n        if (view._setting) {\n            view._setting = false;\n            return;\n        }\n        view._blocked = true;\n        view.model.volume = view.audioEl.volume * 100;\n    }\n    set_loop() {\n        this.audioEl.loop = this.model.loop;\n    }\n    set_muted() {\n        this.audioEl.muted = this.model.muted;\n    }\n    set_autoplay() {\n        this.audioEl.autoplay = this.model.autoplay;\n    }\n    set_paused() {\n        if (!this.audioEl.paused && this.model.paused) {\n            this.audioEl.pause();\n        }\n        if (this.audioEl.paused && !this.model.paused) {\n            this.audioEl.play();\n        }\n    }\n    set_volume() {\n        if (this._blocked) {\n            this._blocked = false;\n            return;\n        }\n        this._setting = true;\n        if (this.model.volume != null) {\n            this.audioEl.volume = this.model.volume / 100;\n        }\n    }\n    set_time() {\n        if (this._blocked) {\n            this._blocked = false;\n            return;\n        }\n        this._setting = true;\n        this.audioEl.currentTime = this.model.time;\n    }\n    set_value() {\n        this.audioEl.src = this.model.value;\n    }\n}\nexports.AudioView = AudioView;\nAudioView.__name__ = \"AudioView\";\nclass Audio extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.Audio = Audio;\n_a = Audio;\nAudio.__name__ = \"Audio\";\nAudio.__module__ = \"panel.models.widgets\";\n(() => {\n    _a.prototype.default_view = AudioView;\n    _a.define(({ Any, Bool, Float, Nullable }) => ({\n        loop: [Bool, false],\n        paused: [Bool, true],\n        muted: [Bool, false],\n        autoplay: [Bool, false],\n        time: [Float, 0],\n        throttle: [Float, 250],\n        value: [Any, \"\"],\n        volume: [Nullable(Float), null],\n    }));\n})();\n//# sourceMappingURL=audio.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"]],"dependency_map":[],"exported":[{"type":"named","name":"AudioView"},{"type":"named","name":"Audio"}],"externals":[],"shims":[]},"code":{"source":"/* models/audio.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    class AudioView extends layout_1.HTMLBoxView {\n        initialize() {\n            super.initialize();\n            this._blocked = false;\n            this._setting = false;\n            this._time = Date.now();\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { loop, paused, time, value, volume, muted, autoplay } = this.model.properties;\n            this.on_change(loop, () => this.set_loop());\n            this.on_change(paused, () => this.set_paused());\n            this.on_change(time, () => this.set_time());\n            this.on_change(value, () => this.set_value());\n            this.on_change(volume, () => this.set_volume());\n            this.on_change(muted, () => this.set_muted());\n            this.on_change(autoplay, () => this.set_autoplay());\n        }\n        render() {\n            super.render();\n            this.audioEl = document.createElement(\"audio\");\n            this.audioEl.controls = true;\n            this.audioEl.src = this.model.value;\n            this.audioEl.currentTime = this.model.time;\n            this.audioEl.loop = this.model.loop;\n            this.audioEl.muted = this.model.muted;\n            this.audioEl.autoplay = this.model.autoplay;\n            if (this.model.volume != null) {\n                this.audioEl.volume = this.model.volume / 100;\n            }\n            else {\n                this.model.volume = this.audioEl.volume * 100;\n            }\n            this.audioEl.onpause = () => this.model.paused = true;\n            this.audioEl.onplay = () => this.model.paused = false;\n            this.audioEl.ontimeupdate = () => this.update_time(this);\n            this.audioEl.onvolumechange = () => this.update_volume(this);\n            (0, layout_1.set_size)(this.audioEl, this.model, false);\n            this.shadow_el.appendChild(this.audioEl);\n            if (!this.model.paused) {\n                this.audioEl.play();\n            }\n        }\n        update_time(view) {\n            if (view._setting) {\n                view._setting = false;\n                return;\n            }\n            if ((Date.now() - view._time) < view.model.throttle) {\n                return;\n            }\n            view._blocked = true;\n            view.model.time = view.audioEl.currentTime;\n            view._time = Date.now();\n        }\n        update_volume(view) {\n            if (view._setting) {\n                view._setting = false;\n                return;\n            }\n            view._blocked = true;\n            view.model.volume = view.audioEl.volume * 100;\n        }\n        set_loop() {\n            this.audioEl.loop = this.model.loop;\n        }\n        set_muted() {\n            this.audioEl.muted = this.model.muted;\n        }\n        set_autoplay() {\n            this.audioEl.autoplay = this.model.autoplay;\n        }\n        set_paused() {\n            if (!this.audioEl.paused && this.model.paused) {\n                this.audioEl.pause();\n            }\n            if (this.audioEl.paused && !this.model.paused) {\n                this.audioEl.play();\n            }\n        }\n        set_volume() {\n            if (this._blocked) {\n                this._blocked = false;\n                return;\n            }\n            this._setting = true;\n            if (this.model.volume != null) {\n                this.audioEl.volume = this.model.volume / 100;\n            }\n        }\n        set_time() {\n            if (this._blocked) {\n                this._blocked = false;\n                return;\n            }\n            this._setting = true;\n            this.audioEl.currentTime = this.model.time;\n        }\n        set_value() {\n            this.audioEl.src = this.model.value;\n        }\n    }\n    exports.AudioView = AudioView;\n    AudioView.__name__ = \"AudioView\";\n    class Audio extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.Audio = Audio;\n    _a = Audio;\n    Audio.__name__ = \"Audio\";\n    Audio.__module__ = \"panel.models.widgets\";\n    (() => {\n        _a.prototype.default_view = AudioView;\n        _a.define(({ Any, Bool, Float, Nullable }) => ({\n            loop: [Bool, false],\n            paused: [Bool, true],\n            muted: [Bool, false],\n            autoplay: [Bool, false],\n            time: [Float, 0],\n            throttle: [Float, 250],\n            value: [Any, \"\"],\n            volume: [Nullable(Float), null],\n        }));\n    })();\n}\n","min_source":"function _(e,t,i,o,s){var l;o();const u=e(\"dab42e6dad\");class d extends u.HTMLBoxView{initialize(){super.initialize(),this._blocked=!1,this._setting=!1,this._time=Date.now()}connect_signals(){super.connect_signals();const{loop:e,paused:t,time:i,value:o,volume:s,muted:l,autoplay:u}=this.model.properties;this.on_change(e,(()=>this.set_loop())),this.on_change(t,(()=>this.set_paused())),this.on_change(i,(()=>this.set_time())),this.on_change(o,(()=>this.set_value())),this.on_change(s,(()=>this.set_volume())),this.on_change(l,(()=>this.set_muted())),this.on_change(u,(()=>this.set_autoplay()))}render(){super.render(),this.audioEl=document.createElement(\"audio\"),this.audioEl.controls=!0,this.audioEl.src=this.model.value,this.audioEl.currentTime=this.model.time,this.audioEl.loop=this.model.loop,this.audioEl.muted=this.model.muted,this.audioEl.autoplay=this.model.autoplay,null!=this.model.volume?this.audioEl.volume=this.model.volume/100:this.model.volume=100*this.audioEl.volume,this.audioEl.onpause=()=>this.model.paused=!0,this.audioEl.onplay=()=>this.model.paused=!1,this.audioEl.ontimeupdate=()=>this.update_time(this),this.audioEl.onvolumechange=()=>this.update_volume(this),(0,u.set_size)(this.audioEl,this.model,!1),this.shadow_el.appendChild(this.audioEl),this.model.paused||this.audioEl.play()}update_time(e){e._setting?e._setting=!1:Date.now()-e._time<e.model.throttle||(e._blocked=!0,e.model.time=e.audioEl.currentTime,e._time=Date.now())}update_volume(e){e._setting?e._setting=!1:(e._blocked=!0,e.model.volume=100*e.audioEl.volume)}set_loop(){this.audioEl.loop=this.model.loop}set_muted(){this.audioEl.muted=this.model.muted}set_autoplay(){this.audioEl.autoplay=this.model.autoplay}set_paused(){!this.audioEl.paused&&this.model.paused&&this.audioEl.pause(),this.audioEl.paused&&!this.model.paused&&this.audioEl.play()}set_volume(){this._blocked?this._blocked=!1:(this._setting=!0,null!=this.model.volume&&(this.audioEl.volume=this.model.volume/100))}set_time(){this._blocked?this._blocked=!1:(this._setting=!0,this.audioEl.currentTime=this.model.time)}set_value(){this.audioEl.src=this.model.value}}i.AudioView=d,d.__name__=\"AudioView\";class a extends u.HTMLBox{constructor(e){super(e)}}i.Audio=a,l=a,a.__name__=\"Audio\",a.__module__=\"panel.models.widgets\",l.prototype.default_view=d,l.define((({Any:e,Bool:t,Float:i,Nullable:o})=>({loop:[t,!1],paused:[t,!0],muted:[t,!1],autoplay:[t,!1],time:[i,0],throttle:[i,250],value:[e,\"\"],volume:[o(i),null]})))}\n//# sourceMappingURL=audio.min.js.map","min_map":"{\"version\":3,\"file\":\"audio.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"layout_1\",\"AudioView\",\"HTMLBoxView\",\"initialize\",\"super\",\"this\",\"_blocked\",\"_setting\",\"_time\",\"Date\",\"now\",\"connect_signals\",\"loop\",\"paused\",\"time\",\"value\",\"volume\",\"muted\",\"autoplay\",\"model\",\"properties\",\"on_change\",\"set_loop\",\"set_paused\",\"set_time\",\"set_value\",\"set_volume\",\"set_muted\",\"set_autoplay\",\"render\",\"audioEl\",\"document\",\"createElement\",\"controls\",\"src\",\"currentTime\",\"onpause\",\"onplay\",\"ontimeupdate\",\"update_time\",\"onvolumechange\",\"update_volume\",\"set_size\",\"shadow_el\",\"appendChild\",\"play\",\"view\",\"throttle\",\"pause\",\"__name__\",\"Audio\",\"HTMLBox\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Any\",\"Bool\",\"Float\",\"Nullable\"],\"sources\":[\"0\"],\"mappings\":\"AAAsB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACnE,IAAIC,EACJF,IACA,MAAMG,EAAWN,EAAQ,cACzB,MAAMO,UAAkBD,EAASE,YAC7B,UAAAC,GACIC,MAAMD,aACNE,KAAKC,UAAW,EAChBD,KAAKE,UAAW,EAChBF,KAAKG,MA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AAYC,GACRjD,MAAMiD,EACV,EAEJzD,EAAQsD,MAAQA,EAChBnD,EAAKmD,EACLA,EAAMD,SAAW,QACjBC,EAAMI,WAAa,uBAEfvD,EAAGwD,UAAUC,aAAevD,EAC5BF,EAAG0D,QAAO,EAAGC,MAAKC,OAAMC,QAAOC,eAAe,CAC1CjD,KAAM,CAAC+C,GAAM,GACb9C,OAAQ,CAAC8C,GAAM,GACf1C,MAAO,CAAC0C,GAAM,GACdzC,SAAU,CAACyC,GAAM,GACjB7C,KAAM,CAAC8C,EAAO,GACdb,SAAU,CAACa,EAAO,KAClB7C,MAAO,CAAC2C,EAAK,IACb1C,OAAQ,CAAC6C,EAASD,GAAQ,SAGtC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/browser.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/browser.js","canonical":"models/browser","resolution":"ESM","id":"5a16cc23e6","hash":"5a16cc23e63e7109c88474b41a354c735c29302e6939166394cbe8207e02e757","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BrowserInfo = exports.BrowserInfoView = void 0;\nconst view_1 = require(\"@bokehjs/core/view\");\nconst model_1 = require(\"@bokehjs/model\");\nclass BrowserInfoView extends view_1.View {\n    initialize() {\n        super.initialize();\n        if (window.matchMedia != null) {\n            const darkModeMediaQuery = window.matchMedia(\"(prefers-color-scheme: dark)\");\n            darkModeMediaQuery.addEventListener(\"change\", (e) => {\n                this.model.dark_mode = e.matches;\n            });\n            this.model.dark_mode = darkModeMediaQuery.matches;\n        }\n        this.model.device_pixel_ratio = window.devicePixelRatio;\n        if (navigator != null) {\n            this.model.language = navigator.language;\n            this.model.webdriver = navigator.webdriver;\n        }\n        const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;\n        if (timezone != null) {\n            this.model.timezone = timezone;\n        }\n        const timezone_offset = new Date().getTimezoneOffset();\n        if (timezone_offset != null) {\n            this.model.timezone_offset = timezone_offset;\n        }\n        try {\n            const canvas = document.createElement(\"canvas\");\n            this.model.webgl = !!(window.WebGLRenderingContext &&\n                (canvas.getContext(\"webgl\") || canvas.getContext(\"experimental-webgl\")));\n        }\n        catch (e) {\n            this.model.webgl = false;\n        }\n        this._has_finished = true;\n        this.notify_finished();\n    }\n}\nexports.BrowserInfoView = BrowserInfoView;\nBrowserInfoView.__name__ = \"BrowserInfoView\";\nclass BrowserInfo extends model_1.Model {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.BrowserInfo = BrowserInfo;\n_a = BrowserInfo;\nBrowserInfo.__name__ = \"BrowserInfo\";\nBrowserInfo.__module__ = \"panel.models.browser\";\n(() => {\n    _a.prototype.default_view = BrowserInfoView;\n    _a.define(({ Bool, Nullable, Float, Str }) => ({\n        dark_mode: [Nullable(Bool), null],\n        device_pixel_ratio: [Nullable(Float), null],\n        language: [Nullable(Str), null],\n        timezone: [Nullable(Str), null],\n        timezone_offset: [Nullable(Float), null],\n        webdriver: [Nullable(Bool), null],\n        webgl: [Nullable(Bool), null],\n    }));\n})();\n//# sourceMappingURL=browser.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"BrowserInfoView"},{"type":"named","name":"BrowserInfo"}],"externals":[],"shims":[]},"code":{"source":"/* models/browser.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const view_1 = require(\"@bokehjs/core/view\");\n    const model_1 = require(\"@bokehjs/model\");\n    class BrowserInfoView extends view_1.View {\n        initialize() {\n            super.initialize();\n            if (window.matchMedia != null) {\n                const darkModeMediaQuery = window.matchMedia(\"(prefers-color-scheme: dark)\");\n                darkModeMediaQuery.addEventListener(\"change\", (e) => {\n                    this.model.dark_mode = e.matches;\n                });\n                this.model.dark_mode = darkModeMediaQuery.matches;\n            }\n            this.model.device_pixel_ratio = window.devicePixelRatio;\n            if (navigator != null) {\n                this.model.language = navigator.language;\n                this.model.webdriver = navigator.webdriver;\n            }\n            const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;\n            if (timezone != null) {\n                this.model.timezone = timezone;\n            }\n            const timezone_offset = new Date().getTimezoneOffset();\n            if (timezone_offset != null) {\n                this.model.timezone_offset = timezone_offset;\n            }\n            try {\n                const canvas = document.createElement(\"canvas\");\n                this.model.webgl = !!(window.WebGLRenderingContext &&\n                    (canvas.getContext(\"webgl\") || canvas.getContext(\"experimental-webgl\")));\n            }\n            catch (e) {\n                this.model.webgl = false;\n            }\n            this._has_finished = true;\n            this.notify_finished();\n        }\n    }\n    exports.BrowserInfoView = BrowserInfoView;\n    BrowserInfoView.__name__ = \"BrowserInfoView\";\n    class BrowserInfo extends model_1.Model {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.BrowserInfo = BrowserInfo;\n    _a = BrowserInfo;\n    BrowserInfo.__name__ = \"BrowserInfo\";\n    BrowserInfo.__module__ = \"panel.models.browser\";\n    (() => {\n        _a.prototype.default_view = BrowserInfoView;\n        _a.define(({ Bool, Nullable, Float, Str }) => ({\n            dark_mode: [Nullable(Bool), null],\n            device_pixel_ratio: [Nullable(Float), null],\n            language: [Nullable(Str), null],\n            timezone: [Nullable(Str), null],\n            timezone_offset: [Nullable(Float), null],\n            webdriver: [Nullable(Bool), null],\n            webgl: [Nullable(Bool), null],\n        }));\n    })();\n}\n","min_source":"function _(e,o,t,n,i){var l;n();const a=e(\"@bokehjs/core/view\"),s=e(\"@bokehjs/model\");class d extends a.View{initialize(){if(super.initialize(),null!=window.matchMedia){const e=window.matchMedia(\"(prefers-color-scheme: dark)\");e.addEventListener(\"change\",(e=>{this.model.dark_mode=e.matches})),this.model.dark_mode=e.matches}this.model.device_pixel_ratio=window.devicePixelRatio,null!=navigator&&(this.model.language=navigator.language,this.model.webdriver=navigator.webdriver);const e=Intl.DateTimeFormat().resolvedOptions().timeZone;null!=e&&(this.model.timezone=e);const o=(new Date).getTimezoneOffset();null!=o&&(this.model.timezone_offset=o);try{const e=document.createElement(\"canvas\");this.model.webgl=!(!window.WebGLRenderingContext||!e.getContext(\"webgl\")&&!e.getContext(\"experimental-webgl\"))}catch(e){this.model.webgl=!1}this._has_finished=!0,this.notify_finished()}}t.BrowserInfoView=d,d.__name__=\"BrowserInfoView\";class r extends s.Model{constructor(e){super(e)}}t.BrowserInfo=r,l=r,r.__name__=\"BrowserInfo\",r.__module__=\"panel.models.browser\",l.prototype.default_view=d,l.define((({Bool:e,Nullable:o,Float:t,Str:n})=>({dark_mode:[o(e),null],device_pixel_ratio:[o(t),null],language:[o(n),null],timezone:[o(n),null],timezone_offset:[o(t),null],webdriver:[o(e),null],webgl:[o(e),null]})))}\n//# sourceMappingURL=browser.min.js.map","min_map":"{\"version\":3,\"file\":\"browser.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"view_1\",\"model_1\",\"BrowserInfoView\",\"View\",\"initialize\",\"super\",\"window\",\"matchMedia\",\"darkModeMediaQuery\",\"addEventListener\",\"e\",\"this\",\"model\",\"dark_mode\",\"matches\",\"device_pixel_ratio\",\"devicePixelRatio\",\"navigator\",\"language\",\"webdriver\",\"timezone\",\"Intl\",\"DateTimeFormat\",\"resolvedOptions\",\"timeZone\",\"timezone_offset\",\"Date\",\"getTimezoneOffset\",\"canvas\",\"document\",\"createElement\",\"webgl\",\"WebGLRenderingContext\",\"getContext\",\"_has_finished\",\"notify_finished\",\"__name__\",\"BrowserInfo\",\"Model\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Bool\",\"Nullable\",\"Float\",\"Str\"],\"sources\":[\"0\"],\"mappings\":\"AAAwB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACrE,IAAIC,EACJF,IACA,MAAMG,EAASN,EAAQ,sBACjBO,EAAUP,EAAQ,kBACxB,MAAMQ,UAAwBF,EAAOG,KACjC,UAAAC,GAEI,GADAC,MAAMD,aACmB,MAArBE,OAAOC,WAAoB,CAC3B,MAAMC,EAA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},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/button.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/button.js","canonical":"models/button","resolution":"ESM","id":"1db93211cd","hash":"1db93211cdf5dbcb6c2bb163d4411fec11ffdf471ca525e4bac1854a62be3ece","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Button = exports.ButtonView = void 0;\nconst tooltip_1 = require(\"@bokehjs/models/ui/tooltip\");\nconst build_views_1 = require(\"@bokehjs/core/build_views\");\nconst button_1 = require(\"@bokehjs/models/widgets/button\");\nclass ButtonView extends button_1.ButtonView {\n    *children() {\n        yield* super.children();\n        if (this.tooltip != null) {\n            yield this.tooltip;\n        }\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { tooltip } = this.model.properties;\n        this.on_change(tooltip, () => this.update_tooltip());\n    }\n    async update_tooltip() {\n        if (this.tooltip != null) {\n            this.tooltip.remove();\n        }\n        const { tooltip } = this.model;\n        if (tooltip != null) {\n            this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });\n        }\n    }\n    async lazy_initialize() {\n        await super.lazy_initialize();\n        const { tooltip } = this.model;\n        if (tooltip != null) {\n            this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });\n        }\n    }\n    remove() {\n        this.tooltip?.remove();\n        super.remove();\n    }\n    render() {\n        super.render();\n        const toggle = (visible) => {\n            this.tooltip?.model.setv({\n                visible,\n            });\n        };\n        let timer;\n        this.el.addEventListener(\"mouseenter\", () => {\n            timer = setTimeout(() => toggle(true), this.model.tooltip_delay);\n        });\n        this.el.addEventListener(\"mouseleave\", () => {\n            clearTimeout(timer);\n            toggle(false);\n        });\n    }\n}\nexports.ButtonView = ButtonView;\nButtonView.__name__ = \"ButtonView\";\nclass Button extends button_1.Button {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.Button = Button;\n_a = Button;\nButton.__name__ = \"Button\";\nButton.__module__ = \"panel.models.widgets\";\n(() => {\n    _a.prototype.default_view = ButtonView;\n    _a.define(({ Nullable, Ref, Float }) => ({\n        tooltip: [Nullable(Ref(tooltip_1.Tooltip)), null],\n        tooltip_delay: [Float, 500],\n    }));\n})();\n//# sourceMappingURL=button.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"ButtonView"},{"type":"named","name":"Button"}],"externals":[],"shims":[]},"code":{"source":"/* models/button.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const tooltip_1 = require(\"@bokehjs/models/ui/tooltip\");\n    const build_views_1 = require(\"@bokehjs/core/build_views\");\n    const button_1 = require(\"@bokehjs/models/widgets/button\");\n    class ButtonView extends button_1.ButtonView {\n        *children() {\n            yield* super.children();\n            if (this.tooltip != null) {\n                yield this.tooltip;\n            }\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { tooltip } = this.model.properties;\n            this.on_change(tooltip, () => this.update_tooltip());\n        }\n        async update_tooltip() {\n            if (this.tooltip != null) {\n                this.tooltip.remove();\n            }\n            const { tooltip } = this.model;\n            if (tooltip != null) {\n                this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });\n            }\n        }\n        async lazy_initialize() {\n            await super.lazy_initialize();\n            const { tooltip } = this.model;\n            if (tooltip != null) {\n                this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });\n            }\n        }\n        remove() {\n            this.tooltip?.remove();\n            super.remove();\n        }\n        render() {\n            super.render();\n            const toggle = (visible) => {\n                this.tooltip?.model.setv({\n                    visible,\n                });\n            };\n            let timer;\n            this.el.addEventListener(\"mouseenter\", () => {\n                timer = setTimeout(() => toggle(true), this.model.tooltip_delay);\n            });\n            this.el.addEventListener(\"mouseleave\", () => {\n                clearTimeout(timer);\n                toggle(false);\n            });\n        }\n    }\n    exports.ButtonView = ButtonView;\n    ButtonView.__name__ = \"ButtonView\";\n    class Button extends button_1.Button {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.Button = Button;\n    _a = Button;\n    Button.__name__ = \"Button\";\n    Button.__module__ = \"panel.models.widgets\";\n    (() => {\n        _a.prototype.default_view = ButtonView;\n        _a.define(({ Nullable, Ref, Float }) => ({\n            tooltip: [Nullable(Ref(tooltip_1.Tooltip)), null],\n            tooltip_delay: [Float, 500],\n        }));\n    })();\n}\n","min_source":"function _(t,e,o,i,l){var s;i();const n=t(\"@bokehjs/models/ui/tooltip\"),a=t(\"@bokehjs/core/build_views\"),p=t(\"@bokehjs/models/widgets/button\");class u extends p.ButtonView{*children(){yield*super.children(),null!=this.tooltip&&(yield this.tooltip)}connect_signals(){super.connect_signals();const{tooltip:t}=this.model.properties;this.on_change(t,(()=>this.update_tooltip()))}async update_tooltip(){null!=this.tooltip&&this.tooltip.remove();const{tooltip:t}=this.model;null!=t&&(this.tooltip=await(0,a.build_view)(t,{parent:this}))}async lazy_initialize(){await super.lazy_initialize();const{tooltip:t}=this.model;null!=t&&(this.tooltip=await(0,a.build_view)(t,{parent:this}))}remove(){this.tooltip?.remove(),super.remove()}render(){super.render();const t=t=>{this.tooltip?.model.setv({visible:t})};let e;this.el.addEventListener(\"mouseenter\",(()=>{e=setTimeout((()=>t(!0)),this.model.tooltip_delay)})),this.el.addEventListener(\"mouseleave\",(()=>{clearTimeout(e),t(!1)}))}}o.ButtonView=u,u.__name__=\"ButtonView\";class d extends p.Button{constructor(t){super(t)}}o.Button=d,s=d,d.__name__=\"Button\",d.__module__=\"panel.models.widgets\",s.prototype.default_view=u,s.define((({Nullable:t,Ref:e,Float:o})=>({tooltip:[t(e(n.Tooltip)),null],tooltip_delay:[o,500]})))}\n//# sourceMappingURL=button.min.js.map","min_map":"{\"version\":3,\"file\":\"button.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"tooltip_1\",\"build_views_1\",\"button_1\",\"ButtonView\",\"children\",\"super\",\"this\",\"tooltip\",\"connect_signals\",\"model\",\"properties\",\"on_change\",\"update_tooltip\",\"remove\",\"build_view\",\"parent\",\"lazy_initialize\",\"render\",\"toggle\",\"visible\",\"setv\",\"timer\",\"el\",\"addEventListener\",\"setTimeout\",\"tooltip_delay\",\"clearTimeout\",\"__name__\",\"Button\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Nullable\",\"Ref\",\"Float\",\"Tooltip\"],\"sources\":[\"0\"],\"mappings\":\"AAAuB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACpE,IAAIC,EACJF,IACA,MAAMG,EAAYN,EAAQ,8BACpBO,EAAgBP,EAAQ,6BACxBQ,EAAWR,EAAQ,kCACzB,MAAMS,UAAmBD,EAASC,WAC9B,SAACC,SACUC,MAAMD,WACO,MAAhBE,KAAKC,gBACCD,KAAKC,QAEnB,CACA,eAAAC,GACIH,MAAMG,kBACN,MAAMD,QAAEA,GAAYD,KAAKG,MAAMC,WAC/BJ,KAAKK,UAAUJ,GAAS,IAAMD,KAAKM,kBACvC,CACA,oBAAMA,GACkB,MAAhBN,KAAKC,SACLD,KAAKC,QAAQM,SAEjB,MAAMN,QAAEA,GAAYD,KAAKG,MACV,MAAXF,IACAD,KAAKC,cAAgB,EAAIN,EAAca,YAAYP,EAAS,CAAEQ,OAAQT,OAE9E,CACA,qBAAMU,SACIX,MAAMW,kBACZ,MAAMT,QAAEA,GAAYD,KAAKG,MACV,MAAXF,IACAD,KAAKC,cAAgB,EAAIN,EAAca,YAAYP,EAAS,CAAEQ,OAAQT,OAE9E,CACA,MAAAO,GACIP,KAAKC,SAASM,SACdR,MAAMQ,QACV,CACA,MAAAI,GACIZ,MAAMY,SACN,MAAMC,EAAUC,IACZb,KAAKC,SAASE,MAAMW,KAAK,CACrBD,WACF,EAEN,IAAIE,EACJf,KAAKgB,GAAGC,iBAAiB,cAAc,KACnCF,EAAQG,YAAW,IAAMN,GAAO,IAAOZ,KAAKG,MAAMgB,cAAc,IAEpEnB,KAAKgB,GAAGC,iBAAiB,cAAc,KACnCG,aAAaL,GACbH,GAAO,EAAM,GAErB,EAEJtB,EAAQO,WAAaA,EACrBA,EAAWwB,SAAW,aACtB,MAAMC,UAAe1B,EAAS0B,OAC1B,WAAAC,CAAYC,GACRzB,MAAMyB,EACV,EAEJlC,EAAQgC,OAASA,EACjB7B,EAAK6B,EACLA,EAAOD,SAAW,SAClBC,EAAOG,WAAa,uBAEhBhC,EAAGiC,UAAUC,aAAe9B,EAC5BJ,EAAGmC,QAAO,EAAGC,WAAUC,MAAKC,YAAY,CACpC9B,QAAS,CAAC4B,EAASC,EAAIpC,EAAUsC,UAAW,MAC5Cb,cAAe,CAACY,EAAO,QAGnC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/button_icon.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/button_icon.js","canonical":"models/button_icon","resolution":"ESM","id":"1738ddeb3a","hash":"1738ddeb3a4a6094254f654b62d7a4e586846593ca5de446e9f96bc09ef59dbc","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ButtonIcon = exports.ButtonIconView = void 0;\nconst icon_1 = require(\"./icon\");\nclass ButtonIconView extends icon_1.ClickableIconView {\n    *controls() { }\n    update_cursor() {\n        this.icon_view.el.style.cursor = this.model.disabled ? \"default\" : \"pointer\";\n    }\n    click() {\n        if (this.model.disabled) {\n            return;\n        }\n        super.click();\n        const updateState = (value, disabled) => {\n            this.model.value = value;\n            this.model.disabled = disabled;\n        };\n        updateState(true, true);\n        new Promise(resolve => setTimeout(resolve, this.model.toggle_duration))\n            .then(() => {\n            updateState(false, false);\n        });\n    }\n}\nexports.ButtonIconView = ButtonIconView;\nButtonIconView.__name__ = \"ButtonIconView\";\nclass ButtonIcon extends icon_1.ClickableIcon {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.ButtonIcon = ButtonIcon;\n_a = ButtonIcon;\nButtonIcon.__name__ = \"ButtonIcon\";\nButtonIcon.__module__ = \"panel.models.icon\";\n(() => {\n    _a.prototype.default_view = ButtonIconView;\n    _a.define(({ Int }) => ({\n        toggle_duration: [Int, 75],\n    }));\n})();\n//# sourceMappingURL=button_icon.js.map\n","type":"js","dependency_paths":[["./icon","/home/runner/work/panel/panel/panel/dist/lib/models/icon.js"]],"dependency_map":[],"exported":[{"type":"named","name":"ButtonIconView"},{"type":"named","name":"ButtonIcon"}],"externals":[],"shims":[]},"code":{"source":"/* models/button_icon.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const icon_1 = require(\"6c7fbea0ef\") /* ./icon */;\n    class ButtonIconView extends icon_1.ClickableIconView {\n        *controls() { }\n        update_cursor() {\n            this.icon_view.el.style.cursor = this.model.disabled ? \"default\" : \"pointer\";\n        }\n        click() {\n            if (this.model.disabled) {\n                return;\n            }\n            super.click();\n            const updateState = (value, disabled) => {\n                this.model.value = value;\n                this.model.disabled = disabled;\n            };\n            updateState(true, true);\n            new Promise(resolve => setTimeout(resolve, this.model.toggle_duration))\n                .then(() => {\n                updateState(false, false);\n            });\n        }\n    }\n    exports.ButtonIconView = ButtonIconView;\n    ButtonIconView.__name__ = \"ButtonIconView\";\n    class ButtonIcon extends icon_1.ClickableIcon {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.ButtonIcon = ButtonIcon;\n    _a = ButtonIcon;\n    ButtonIcon.__name__ = \"ButtonIcon\";\n    ButtonIcon.__module__ = \"panel.models.icon\";\n    (() => {\n        _a.prototype.default_view = ButtonIconView;\n        _a.define(({ Int }) => ({\n            toggle_duration: [Int, 75],\n        }));\n    })();\n}\n","min_source":"function _(e,t,o,n,i){var l;n();const s=e(\"6c7fbea0ef\");class c extends s.ClickableIconView{*controls(){}update_cursor(){this.icon_view.el.style.cursor=this.model.disabled?\"default\":\"pointer\"}click(){if(this.model.disabled)return;super.click();const e=(e,t)=>{this.model.value=e,this.model.disabled=t};e(!0,!0),new Promise((e=>setTimeout(e,this.model.toggle_duration))).then((()=>{e(!1,!1)}))}}o.ButtonIconView=c,c.__name__=\"ButtonIconView\";class d extends s.ClickableIcon{constructor(e){super(e)}}o.ButtonIcon=d,l=d,d.__name__=\"ButtonIcon\",d.__module__=\"panel.models.icon\",l.prototype.default_view=c,l.define((({Int:e})=>({toggle_duration:[e,75]})))}\n//# sourceMappingURL=button_icon.min.js.map","min_map":"{\"version\":3,\"file\":\"button_icon.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"icon_1\",\"ButtonIconView\",\"ClickableIconView\",\"controls\",\"update_cursor\",\"this\",\"icon_view\",\"el\",\"style\",\"cursor\",\"model\",\"disabled\",\"click\",\"super\",\"updateState\",\"value\",\"Promise\",\"resolve\",\"setTimeout\",\"toggle_duration\",\"then\",\"__name__\",\"ButtonIcon\",\"ClickableIcon\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Int\"],\"sources\":[\"0\"],\"mappings\":\"AAA4B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzE,IAAIC,EACJF,IACA,MAAMG,EAASN,EAAQ,cACvB,MAAMO,UAAuBD,EAAOE,kBAChC,SAACC,GAAa,CACd,aAAAC,GACIC,KAAKC,UAAUC,GAAGC,MAAMC,OAASJ,KAAKK,MAAMC,SAAW,UAAY,SACvE,CACA,KAAAC,GACI,GAAIP,KAAKK,MAAMC,SACX,OAEJE,MAAMD,QACN,MAAME,EAAc,CAACC,EAAOJ,KACxBN,KAAKK,MAAMK,MAAQA,EACnBV,KAAKK,MAAMC,SAAWA,CAAQ,EAElCG,GAAY,GAAM,GAClB,IAAIE,SAAQC,GAAWC,WAAWD,EAASZ,KAAKK,MAAMS,mBACjDC,MAAK,KACNN,GAAY,GAAO,EAAM,GAEjC,EAEJlB,EAAQK,eAAiBA,EACzBA,EAAeoB,SAAW,iBAC1B,MAAMC,UAAmBtB,EAAOuB,cAC5B,WAAAC,CAAYC,GACRZ,MAAMY,EACV,EAEJ7B,EAAQ0B,WAAaA,EACrBvB,EAAKuB,EACLA,EAAWD,SAAW,aACtBC,EAAWI,WAAa,oBAEpB3B,EAAG4B,UAAUC,aAAe3B,EAC5BF,EAAG8B,QAAO,EAAGC,UAAU,CACnBX,gBAAiB,CAACW,EAAK,OAGnC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/icon.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/icon.js","canonical":"models/icon","resolution":"ESM","id":"6c7fbea0ef","hash":"6c7fbea0ef0eb5621dc3b6fc25b69ede3017cbbeb111cf6156f541665e32c8b8","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ClickableIcon = exports.ClickableIconView = void 0;\nconst tooltip_1 = require(\"@bokehjs/models/ui/tooltip\");\nconst tabler_icon_1 = require(\"@bokehjs/models/ui/icons/tabler_icon\");\nconst svg_icon_1 = require(\"@bokehjs/models/ui/icons/svg_icon\");\nconst control_1 = require(\"@bokehjs/models/widgets/control\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst build_views_1 = require(\"@bokehjs/core/build_views\");\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nclass ClickableIconView extends control_1.ControlView {\n    *controls() { }\n    remove() {\n        this.tooltip?.remove();\n        this.icon_view.remove();\n        super.remove();\n    }\n    async lazy_initialize() {\n        await super.lazy_initialize();\n        this.was_svg_icon = this.is_svg_icon(this.model.icon);\n        this.label_el = (0, dom_1.div)({ class: \"bk-IconLabel\" }, this.model.title);\n        this.label_el.style.fontSize = this.calculate_size(0.6);\n        this.icon_view = await this.build_icon_model(this.model.icon, this.was_svg_icon);\n        const { tooltip } = this.model;\n        if (tooltip != null) {\n            this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });\n        }\n    }\n    *children() {\n        yield* super.children();\n        yield this.icon_view;\n        if (this.tooltip != null) {\n            yield this.tooltip;\n        }\n    }\n    is_svg_icon(icon) {\n        return icon.trim().startsWith(\"<svg\");\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { icon, active_icon, disabled, value, size, tooltip } = this.model.properties;\n        this.on_change([active_icon, icon, value], () => this.update_icon());\n        this.on_change(this.model.properties.title, () => this.update_label());\n        this.on_change(disabled, () => this.update_cursor());\n        this.on_change(size, () => this.update_size());\n        this.on_change(tooltip, () => this.update_tooltip());\n    }\n    async update_tooltip() {\n        if (this.tooltip != null) {\n            this.tooltip.remove();\n        }\n        const { tooltip } = this.model;\n        if (tooltip != null) {\n            this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });\n        }\n    }\n    render() {\n        super.render();\n        this.icon_view.render();\n        this.update_icon();\n        this.update_label();\n        this.update_cursor();\n        this.row_div = (0, dom_1.div)({\n            class: \"bk-IconRow\",\n        }, this.icon_view.el, this.label_el);\n        this.shadow_el.appendChild(this.row_div);\n        const toggle_tooltip = (visible) => {\n            this.tooltip?.model.setv({\n                visible,\n            });\n        };\n        let timer;\n        this.el.addEventListener(\"mouseenter\", () => {\n            if (timer) {\n                clearTimeout(timer);\n            }\n            timer = setTimeout(() => toggle_tooltip(true), this.model.tooltip_delay);\n        });\n        this.el.addEventListener(\"pointerleave\", () => {\n            clearTimeout(timer);\n            timer = undefined;\n            toggle_tooltip(false);\n        });\n    }\n    update_label() {\n        this.label_el.innerText = this.model.title;\n    }\n    update_cursor() {\n        this.icon_view.el.style.cursor = this.model.disabled ? \"not-allowed\" : \"pointer\";\n    }\n    update_size() {\n        this.icon_view.model.size = this.calculate_size();\n        this.label_el.style.fontSize = this.calculate_size(0.6);\n    }\n    async build_icon_model(icon, is_svg_icon) {\n        const size = this.calculate_size();\n        const icon_model = (() => {\n            if (is_svg_icon) {\n                return new svg_icon_1.SVGIcon({ svg: icon, size });\n            }\n            else {\n                return new tabler_icon_1.TablerIcon({ icon_name: icon, size });\n            }\n        })();\n        const icon_view = await (0, build_views_1.build_view)(icon_model, { parent: this });\n        icon_view.el.addEventListener(\"click\", () => this.click());\n        return icon_view;\n    }\n    async update_icon() {\n        const icon = this.model.value ? this.get_active_icon() : this.model.icon;\n        this.class_list.toggle(\"active\", this.model.value);\n        const is_svg_icon = this.is_svg_icon(icon);\n        if (this.was_svg_icon !== is_svg_icon) {\n            // If the icon type has changed, we need to rebuild the icon view\n            // and invalidate the old one.\n            const icon_view = await this.build_icon_model(icon, is_svg_icon);\n            icon_view.render();\n            this.icon_view.remove();\n            this.icon_view = icon_view;\n            this.was_svg_icon = is_svg_icon;\n            this.update_cursor();\n            // We need to re-append the new icon view to the DOM\n            this.row_div.insertBefore(this.icon_view.el, this.label_el);\n        }\n        else if (is_svg_icon) {\n            this.icon_view.model.svg = icon;\n        }\n        else {\n            this.icon_view.model.icon_name = icon;\n        }\n        this.icon_view.el.style.lineHeight = \"0\";\n    }\n    get_active_icon() {\n        return this.model.active_icon !== \"\" ? this.model.active_icon : `${this.model.icon}-filled`;\n    }\n    calculate_size(factor = 1) {\n        if (this.model.size !== null) {\n            return `calc(${this.model.size} * ${factor})`;\n        }\n        const maxWidth = this.model.width ?? 15;\n        const maxHeight = this.model.height ?? 15;\n        const size = Math.max(maxWidth, maxHeight) * factor;\n        return `${size}px`;\n    }\n    click() {\n        this.model.trigger_event(new bokeh_events_1.ButtonClick());\n    }\n}\nexports.ClickableIconView = ClickableIconView;\nClickableIconView.__name__ = \"ClickableIconView\";\nclass ClickableIcon extends control_1.Control {\n    constructor(attrs) {\n        super(attrs);\n    }\n    on_click(callback) {\n        this.on_event(bokeh_events_1.ButtonClick, callback);\n    }\n}\nexports.ClickableIcon = ClickableIcon;\n_a = ClickableIcon;\nClickableIcon.__name__ = \"ClickableIcon\";\nClickableIcon.__module__ = \"panel.models.icon\";\n(() => {\n    _a.prototype.default_view = ClickableIconView;\n    _a.define(({ Nullable, Ref, Float, Str, Bool }) => ({\n        active_icon: [Str, \"\"],\n        icon: [Str, \"heart\"],\n        size: [Nullable(Str), null],\n        value: [Bool, false],\n        title: [Str, \"\"],\n        tooltip: [Nullable(Ref(tooltip_1.Tooltip)), null],\n        tooltip_delay: [Float, 500],\n    }));\n})();\n//# sourceMappingURL=icon.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"ClickableIconView"},{"type":"named","name":"ClickableIcon"}],"externals":[],"shims":[]},"code":{"source":"/* models/icon.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const tooltip_1 = require(\"@bokehjs/models/ui/tooltip\");\n    const tabler_icon_1 = require(\"@bokehjs/models/ui/icons/tabler_icon\");\n    const svg_icon_1 = require(\"@bokehjs/models/ui/icons/svg_icon\");\n    const control_1 = require(\"@bokehjs/models/widgets/control\");\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const build_views_1 = require(\"@bokehjs/core/build_views\");\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    class ClickableIconView extends control_1.ControlView {\n        *controls() { }\n        remove() {\n            this.tooltip?.remove();\n            this.icon_view.remove();\n            super.remove();\n        }\n        async lazy_initialize() {\n            await super.lazy_initialize();\n            this.was_svg_icon = this.is_svg_icon(this.model.icon);\n            this.label_el = (0, dom_1.div)({ class: \"bk-IconLabel\" }, this.model.title);\n            this.label_el.style.fontSize = this.calculate_size(0.6);\n            this.icon_view = await this.build_icon_model(this.model.icon, this.was_svg_icon);\n            const { tooltip } = this.model;\n            if (tooltip != null) {\n                this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });\n            }\n        }\n        *children() {\n            yield* super.children();\n            yield this.icon_view;\n            if (this.tooltip != null) {\n                yield this.tooltip;\n            }\n        }\n        is_svg_icon(icon) {\n            return icon.trim().startsWith(\"<svg\");\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { icon, active_icon, disabled, value, size, tooltip } = this.model.properties;\n            this.on_change([active_icon, icon, value], () => this.update_icon());\n            this.on_change(this.model.properties.title, () => this.update_label());\n            this.on_change(disabled, () => this.update_cursor());\n            this.on_change(size, () => this.update_size());\n            this.on_change(tooltip, () => this.update_tooltip());\n        }\n        async update_tooltip() {\n            if (this.tooltip != null) {\n                this.tooltip.remove();\n            }\n            const { tooltip } = this.model;\n            if (tooltip != null) {\n                this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });\n            }\n        }\n        render() {\n            super.render();\n            this.icon_view.render();\n            this.update_icon();\n            this.update_label();\n            this.update_cursor();\n            this.row_div = (0, dom_1.div)({\n                class: \"bk-IconRow\",\n            }, this.icon_view.el, this.label_el);\n            this.shadow_el.appendChild(this.row_div);\n            const toggle_tooltip = (visible) => {\n                this.tooltip?.model.setv({\n                    visible,\n                });\n            };\n            let timer;\n            this.el.addEventListener(\"mouseenter\", () => {\n                if (timer) {\n                    clearTimeout(timer);\n                }\n                timer = setTimeout(() => toggle_tooltip(true), this.model.tooltip_delay);\n            });\n            this.el.addEventListener(\"pointerleave\", () => {\n                clearTimeout(timer);\n                timer = undefined;\n                toggle_tooltip(false);\n            });\n        }\n        update_label() {\n            this.label_el.innerText = this.model.title;\n        }\n        update_cursor() {\n            this.icon_view.el.style.cursor = this.model.disabled ? \"not-allowed\" : \"pointer\";\n        }\n        update_size() {\n            this.icon_view.model.size = this.calculate_size();\n            this.label_el.style.fontSize = this.calculate_size(0.6);\n        }\n        async build_icon_model(icon, is_svg_icon) {\n            const size = this.calculate_size();\n            const icon_model = (() => {\n                if (is_svg_icon) {\n                    return new svg_icon_1.SVGIcon({ svg: icon, size });\n                }\n                else {\n                    return new tabler_icon_1.TablerIcon({ icon_name: icon, size });\n                }\n            })();\n            const icon_view = await (0, build_views_1.build_view)(icon_model, { parent: this });\n            icon_view.el.addEventListener(\"click\", () => this.click());\n            return icon_view;\n        }\n        async update_icon() {\n            const icon = this.model.value ? this.get_active_icon() : this.model.icon;\n            this.class_list.toggle(\"active\", this.model.value);\n            const is_svg_icon = this.is_svg_icon(icon);\n            if (this.was_svg_icon !== is_svg_icon) {\n                // If the icon type has changed, we need to rebuild the icon view\n                // and invalidate the old one.\n                const icon_view = await this.build_icon_model(icon, is_svg_icon);\n                icon_view.render();\n                this.icon_view.remove();\n                this.icon_view = icon_view;\n                this.was_svg_icon = is_svg_icon;\n                this.update_cursor();\n                // We need to re-append the new icon view to the DOM\n                this.row_div.insertBefore(this.icon_view.el, this.label_el);\n            }\n            else if (is_svg_icon) {\n                this.icon_view.model.svg = icon;\n            }\n            else {\n                this.icon_view.model.icon_name = icon;\n            }\n            this.icon_view.el.style.lineHeight = \"0\";\n        }\n        get_active_icon() {\n            return this.model.active_icon !== \"\" ? this.model.active_icon : `${this.model.icon}-filled`;\n        }\n        calculate_size(factor = 1) {\n            if (this.model.size !== null) {\n                return `calc(${this.model.size} * ${factor})`;\n            }\n            const maxWidth = this.model.width ?? 15;\n            const maxHeight = this.model.height ?? 15;\n            const size = Math.max(maxWidth, maxHeight) * factor;\n            return `${size}px`;\n        }\n        click() {\n            this.model.trigger_event(new bokeh_events_1.ButtonClick());\n        }\n    }\n    exports.ClickableIconView = ClickableIconView;\n    ClickableIconView.__name__ = \"ClickableIconView\";\n    class ClickableIcon extends control_1.Control {\n        constructor(attrs) {\n            super(attrs);\n        }\n        on_click(callback) {\n            this.on_event(bokeh_events_1.ButtonClick, callback);\n        }\n    }\n    exports.ClickableIcon = ClickableIcon;\n    _a = ClickableIcon;\n    ClickableIcon.__name__ = \"ClickableIcon\";\n    ClickableIcon.__module__ = \"panel.models.icon\";\n    (() => {\n        _a.prototype.default_view = ClickableIconView;\n        _a.define(({ Nullable, Ref, Float, Str, Bool }) => ({\n            active_icon: [Str, \"\"],\n            icon: [Str, \"heart\"],\n            size: [Nullable(Str), null],\n            value: [Bool, false],\n            title: [Str, \"\"],\n            tooltip: [Nullable(Ref(tooltip_1.Tooltip)), null],\n            tooltip_delay: [Float, 500],\n        }));\n    })();\n}\n","min_source":"function _(i,e,t,o,s){var l;o();const n=i(\"@bokehjs/models/ui/tooltip\"),c=i(\"@bokehjs/models/ui/icons/tabler_icon\"),a=i(\"@bokehjs/models/ui/icons/svg_icon\"),h=i(\"@bokehjs/models/widgets/control\"),_=i(\"@bokehjs/core/dom\"),d=i(\"@bokehjs/core/build_views\"),r=i(\"@bokehjs/core/bokeh_events\");class u extends h.ControlView{*controls(){}remove(){this.tooltip?.remove(),this.icon_view.remove(),super.remove()}async lazy_initialize(){await super.lazy_initialize(),this.was_svg_icon=this.is_svg_icon(this.model.icon),this.label_el=(0,_.div)({class:\"bk-IconLabel\"},this.model.title),this.label_el.style.fontSize=this.calculate_size(.6),this.icon_view=await this.build_icon_model(this.model.icon,this.was_svg_icon);const{tooltip:i}=this.model;null!=i&&(this.tooltip=await(0,d.build_view)(i,{parent:this}))}*children(){yield*super.children(),yield this.icon_view,null!=this.tooltip&&(yield this.tooltip)}is_svg_icon(i){return i.trim().startsWith(\"<svg\")}connect_signals(){super.connect_signals();const{icon:i,active_icon:e,disabled:t,value:o,size:s,tooltip:l}=this.model.properties;this.on_change([e,i,o],(()=>this.update_icon())),this.on_change(this.model.properties.title,(()=>this.update_label())),this.on_change(t,(()=>this.update_cursor())),this.on_change(s,(()=>this.update_size())),this.on_change(l,(()=>this.update_tooltip()))}async update_tooltip(){null!=this.tooltip&&this.tooltip.remove();const{tooltip:i}=this.model;null!=i&&(this.tooltip=await(0,d.build_view)(i,{parent:this}))}render(){super.render(),this.icon_view.render(),this.update_icon(),this.update_label(),this.update_cursor(),this.row_div=(0,_.div)({class:\"bk-IconRow\"},this.icon_view.el,this.label_el),this.shadow_el.appendChild(this.row_div);const i=i=>{this.tooltip?.model.setv({visible:i})};let e;this.el.addEventListener(\"mouseenter\",(()=>{e&&clearTimeout(e),e=setTimeout((()=>i(!0)),this.model.tooltip_delay)})),this.el.addEventListener(\"pointerleave\",(()=>{clearTimeout(e),e=void 0,i(!1)}))}update_label(){this.label_el.innerText=this.model.title}update_cursor(){this.icon_view.el.style.cursor=this.model.disabled?\"not-allowed\":\"pointer\"}update_size(){this.icon_view.model.size=this.calculate_size(),this.label_el.style.fontSize=this.calculate_size(.6)}async build_icon_model(i,e){const t=this.calculate_size(),o=e?new a.SVGIcon({svg:i,size:t}):new c.TablerIcon({icon_name:i,size:t}),s=await(0,d.build_view)(o,{parent:this});return s.el.addEventListener(\"click\",(()=>this.click())),s}async update_icon(){const i=this.model.value?this.get_active_icon():this.model.icon;this.class_list.toggle(\"active\",this.model.value);const e=this.is_svg_icon(i);if(this.was_svg_icon!==e){const t=await this.build_icon_model(i,e);t.render(),this.icon_view.remove(),this.icon_view=t,this.was_svg_icon=e,this.update_cursor(),this.row_div.insertBefore(this.icon_view.el,this.label_el)}else e?this.icon_view.model.svg=i:this.icon_view.model.icon_name=i;this.icon_view.el.style.lineHeight=\"0\"}get_active_icon(){return\"\"!==this.model.active_icon?this.model.active_icon:`${this.model.icon}-filled`}calculate_size(i=1){if(null!==this.model.size)return`calc(${this.model.size} * ${i})`;const e=this.model.width??15,t=this.model.height??15;return`${Math.max(e,t)*i}px`}click(){this.model.trigger_event(new r.ButtonClick)}}t.ClickableIconView=u,u.__name__=\"ClickableIconView\";class v extends h.Control{constructor(i){super(i)}on_click(i){this.on_event(r.ButtonClick,i)}}t.ClickableIcon=v,l=v,v.__name__=\"ClickableIcon\",v.__module__=\"panel.models.icon\",l.prototype.default_view=u,l.define((({Nullable:i,Ref:e,Float:t,Str:o,Bool:s})=>({active_icon:[o,\"\"],icon:[o,\"heart\"],size:[i(o),null],value:[s,!1],title:[o,\"\"],tooltip:[i(e(n.Tooltip)),null],tooltip_delay:[t,500]})))}\n//# sourceMappingURL=icon.min.js.map","min_map":"{\"version\":3,\"file\":\"icon.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"tooltip_1\",\"tabler_icon_1\",\"svg_icon_1\",\"control_1\",\"dom_1\",\"build_views_1\",\"bokeh_events_1\",\"ClickableIconView\",\"ControlView\",\"controls\",\"remove\",\"this\",\"tooltip\",\"icon_view\",\"super\",\"lazy_initialize\",\"was_svg_icon\",\"is_svg_icon\",\"model\",\"icon\",\"label_el\",\"div\",\"class\",\"title\",\"style\",\"fontSize\",\"calculate_size\",\"build_icon_model\",\"build_view\",\"parent\",\"children\",\"trim\",\"startsWith\",\"connect_signals\",\"active_icon\",\"disabled\",\"value\",\"size\",\"properties\",\"on_change\",\"update_icon\",\"update_label\",\"update_cursor\",\"update_size\",\"update_tooltip\",\"render\",\"row_div\",\"el\",\"shadow_el\",\"appendChild\",\"toggle_tooltip\",\"visible\",\"setv\",\"timer\",\"addEventListener\",\"clearTimeout\",\"setTimeout\",\"tooltip_delay\",\"undefined\",\"innerText\",\"cursor\",\"icon_model\",\"SVGIcon\",\"svg\",\"TablerIcon\",\"icon_name\",\"click\",\"get_active_icon\",\"class_list\",\"toggle\",\"insertBefore\",\"lineHeight\",\"factor\",\"maxWidth\",\"width\",\"maxHeight\",\"height\",\"Math\",\"max\",\"trigger_event\",\"ButtonClick\",\"__name__\",\"ClickableIcon\",\"Control\",\"constructor\",\"attrs\",\"on_click\",\"callback\",\"on_event\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Nullable\",\"Ref\",\"Float\",\"Str\",\"Bool\",\"Tooltip\"],\"sources\":[\"0\"],\"mappings\":\"AAAqB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAClE,IAAIC,EACJF,IACA,MAAMG,EAAYN,EAAQ,8BACpBO,EAAgBP,EAAQ,wCACxBQ,EAAaR,EAAQ,qCACrBS,EAAYT,EAAQ,mCACpBU,EAAQV,EAAQ,qBAChBW,EAAgBX,EAAQ,6BACxBY,EAAiBZ,EAAQ,8BAC/B,MAAMa,UAA0BJ,EAAUK,YACtC,SAACC,GAAa,CACd,MAAAC,GACIC,KAAKC,SAASF,SACdC,KAAKE,UAAUH,SACfI,MAAMJ,QACV,CACA,qBAAMK,SACID,MAAMC,kBACZJ,KAAKK,aAAeL,KAAKM,YAAYN,KAAKO,MAAMC,MAChDR,KAAKS,UAAW,EAAIhB,EAAMiB,KAAK,CAAEC,MAAO,gBAAkBX,KAAKO,MA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C5CzC,cAAe,CAACsC,EAAO,QAGnC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/card.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/card.js","canonical":"models/card","resolution":"ESM","id":"3684eee729","hash":"3684eee7295cee5dd06bf60698aeb1147980e0c1cb528edfd1c7f7b448879c5b","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Card = exports.CardView = void 0;\nconst tslib_1 = require(\"tslib\");\nconst DOM = tslib_1.__importStar(require(\"@bokehjs/core/dom\"));\nconst grid_1 = require(\"@bokehjs/core/layout/grid\");\nconst alignments_1 = require(\"@bokehjs/models/layouts/alignments\");\nconst layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\nconst column_1 = require(\"./column\");\nconst card_css_1 = tslib_1.__importDefault(require(\"../styles/models/card.css\"));\nconst CHEVRON_RIGHT = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"icon icon-tabler icons-tabler-outline icon-tabler-chevron-right\"><path stroke=\"none\" d=\"M0 0h12v12H0z\" fill=\"none\"/><path d=\"M9 6l6 6l-6 6\" /></svg>\n`;\nconst CHEVRON_DOWN = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"icon icon-tabler icons-tabler-outline icon-tabler-chevron-down\"><path stroke=\"none\" d=\"M0 0h12v12H0z\" fill=\"none\"/><path d=\"M6 9l6 6l6 -6\" /></svg>\n`;\nclass CardView extends column_1.ColumnView {\n    constructor() {\n        super(...arguments);\n        this.visible_child_views = new Map();\n        this._updating_child_visibility = new Set();\n        this._child_visible_callbacks = new Map();\n        this.collapsed_style = new DOM.InlineStyleSheet();\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { active_header_background, collapsed, header_background, header_color, hide_header } = this.model.properties;\n        this.on_change(collapsed, () => this._collapse());\n        this.on_change([header_color, hide_header], () => this.render());\n        this.on_change([active_header_background, collapsed, header_background], () => {\n            const header_background = this.header_background;\n            if (header_background == null) {\n                return;\n            }\n            this.child_views[0].el.style.backgroundColor = header_background;\n            this.header_el.style.backgroundColor = header_background;\n        });\n        for (const child_view of this.child_views.slice(1)) {\n            this._register_child_view(child_view);\n        }\n    }\n    stylesheets() {\n        return [...super.stylesheets(), card_css_1.default];\n    }\n    *_stylesheets() {\n        yield* super._stylesheets();\n        yield this.collapsed_style;\n    }\n    get header_background() {\n        let header_background = this.model.header_background;\n        if (!this.model.collapsed && this.model.active_header_background) {\n            header_background = this.model.active_header_background;\n        }\n        return header_background;\n    }\n    render() {\n        this.empty();\n        if (this.model.collapsed) {\n            this.collapsed_style.replace(\":host\", {\n                height: \"fit-content\",\n                flex: \"none\",\n            });\n        }\n        this._update_stylesheets();\n        this._update_css_classes();\n        this._apply_styles();\n        this._apply_visible();\n        this.class_list.add(...this.css_classes());\n        const { button_css_classes, header_color, header_tag, header_css_classes } = this.model;\n        const header_background = this.header_background;\n        const header = this.child_views[0];\n        let header_el;\n        if (this.model.collapsible) {\n            this.button_el = DOM.button({ class: header_css_classes });\n            const icon = DOM.div({ class: button_css_classes });\n            icon.innerHTML = this.model.collapsed ? CHEVRON_RIGHT : CHEVRON_DOWN;\n            this.button_el.appendChild(icon);\n            this.button_el.style.backgroundColor = header_background != null ? header_background : \"\";\n            header.el.style.backgroundColor = header_background != null ? header_background : \"\";\n            this.button_el.appendChild(header.el);\n            this.button_el.addEventListener(\"click\", (e) => this._toggle_button(e));\n            header_el = this.button_el;\n        }\n        else {\n            header_el = DOM.create_element(header_tag, { class: header_css_classes });\n            header_el.style.backgroundColor = header_background != null ? header_background : \"\";\n            header_el.appendChild(header.el);\n        }\n        this.header_el = header_el;\n        if (!this.model.hide_header) {\n            header_el.style.color = header_color != null ? header_color : \"\";\n            this.shadow_el.appendChild(header_el);\n            header.render();\n            header.r_after_render();\n        }\n        for (const child_view of this.child_views.slice(1)) {\n            this._register_child_view(child_view);\n            this._apply_child_visible(child_view);\n            this.shadow_el.appendChild(child_view.el);\n            child_view.render();\n            child_view.r_after_render();\n        }\n    }\n    async update_children() {\n        await this.build_child_views();\n        const child_views = new Set(this.child_views.slice(1));\n        for (const child_view of this.visible_child_views.keys()) {\n            if (!child_views.has(child_view)) {\n                this._unregister_child_view(child_view);\n            }\n        }\n        for (const child_view of child_views) {\n            this._register_child_view(child_view);\n        }\n        this.render();\n        this.invalidate_layout();\n    }\n    _update_layout() {\n        super._update_layout();\n        this.style.append(\":host\", {\n            flex_direction: this._direction,\n            gap: DOM.px(this.model.spacing),\n        });\n        const layoutable = new grid_1.Container();\n        let r0 = 0;\n        let c0 = 0;\n        for (let i = 0; i < this.child_views.length; i++) {\n            const view = this.child_views[i];\n            if (!(view instanceof layout_dom_1.LayoutDOMView)) {\n                continue;\n            }\n            const is_row = i == 0;\n            const sizing = view.box_sizing();\n            const flex = (() => {\n                const policy = is_row ? sizing.width_policy : sizing.height_policy;\n                const size = is_row ? sizing.width : sizing.height;\n                const basis = size != null ? DOM.px(size) : \"auto\";\n                switch (policy) {\n                    case \"auto\":\n                    case \"fixed\": return `0 0 ${basis}`;\n                    case \"fit\": return \"1 1 auto\";\n                    case \"min\": return \"0 1 auto\";\n                    case \"max\": return \"1 0 0px\";\n                }\n            })();\n            const align_self = (() => {\n                const policy = is_row ? sizing.height_policy : sizing.width_policy;\n                switch (policy) {\n                    case \"auto\":\n                    case \"fixed\":\n                    case \"fit\":\n                    case \"min\": return is_row ? sizing.valign : sizing.halign;\n                    case \"max\": return \"stretch\";\n                }\n            })();\n            view.parent_style.append(\":host\", { flex, align_self });\n            // undo `width/height: 100%` and let `align-self: stretch` do the work\n            if (is_row) {\n                if (sizing.height_policy == \"max\") {\n                    view.parent_style.append(\":host\", { height: \"auto\" });\n                }\n            }\n            else {\n                if (sizing.width_policy == \"max\") {\n                    view.parent_style.append(\":host\", { width: \"auto\" });\n                }\n            }\n            if (view.layout != null) {\n                layoutable.add({ r0, c0, r1: r0 + 1, c1: c0 + 1 }, view);\n                if (is_row) {\n                    c0 += 1;\n                }\n                else {\n                    r0 += 1;\n                }\n            }\n        }\n        if (layoutable.size != 0) {\n            this.layout = new alignments_1.GridAlignmentLayout(layoutable);\n            this.layout.set_sizing();\n        }\n        else {\n            delete this.layout;\n        }\n    }\n    _toggle_button(e) {\n        const is_panel_widget = (el) => el instanceof HTMLInputElement || (el instanceof HTMLElement &&\n            Array.from(el.classList).some((c) => c.startsWith(\"bk-panel-models-widgets-\")));\n        for (const el of e.composedPath()) {\n            // If the click came from any Panel widget in the header, don't toggle.\n            if (is_panel_widget(el)) {\n                return;\n            }\n        }\n        this.model.collapsed = !this.model.collapsed;\n    }\n    _collapse() {\n        for (const child_view of this.child_views.slice(1)) {\n            this._register_child_view(child_view);\n            if (this.model.collapsed) {\n                this.shadow_el.removeChild(child_view.el);\n                this._set_child_visible(child_view, false);\n            }\n            else {\n                child_view.render();\n                child_view.after_render();\n                this.shadow_el.appendChild(child_view.el);\n                this._apply_child_visible(child_view);\n            }\n        }\n        if (this.model.collapsed) {\n            this.collapsed_style.replace(\":host\", {\n                height: \"fit-content\",\n                flex: \"none\",\n            });\n        }\n        else {\n            this.collapsed_style.clear();\n        }\n        this.button_el.children[0].innerHTML = this.model.collapsed ? CHEVRON_RIGHT : CHEVRON_DOWN;\n        this.invalidate_layout();\n    }\n    _set_child_visible(child_view, visible) {\n        if (child_view.model.visible == visible) {\n            return;\n        }\n        this._updating_child_visibility.add(child_view);\n        try {\n            child_view.model.visible = visible;\n        }\n        finally {\n            this._updating_child_visibility.delete(child_view);\n        }\n    }\n    _apply_child_visible(child_view) {\n        const desired_visible = this.visible_child_views.get(child_view) ?? child_view.model.visible;\n        this.visible_child_views.set(child_view, desired_visible);\n        this._set_child_visible(child_view, desired_visible && !this.model.collapsed);\n    }\n    _register_child_view(child_view) {\n        if (this.visible_child_views.has(child_view)) {\n            return;\n        }\n        this.visible_child_views.set(child_view, child_view.model.visible);\n        const { visible } = child_view.model.properties;\n        const callback = () => {\n            if (this._updating_child_visibility.has(child_view)) {\n                return;\n            }\n            const desired_visible = child_view.model.visible;\n            this.visible_child_views.set(child_view, desired_visible);\n            if (this.model.collapsed && desired_visible) {\n                this._set_child_visible(child_view, false);\n            }\n        };\n        this._child_visible_callbacks.set(child_view, callback);\n        this.on_change(visible, callback);\n    }\n    _unregister_child_view(child_view) {\n        const callback = this._child_visible_callbacks.get(child_view);\n        if (callback != null) {\n            child_view.model.properties.visible.change.disconnect(callback);\n            this._child_visible_callbacks.delete(child_view);\n        }\n        this.visible_child_views.delete(child_view);\n        this._updating_child_visibility.delete(child_view);\n    }\n    _create_element() {\n        return DOM.create_element(this.model.tag, { class: this.css_classes() });\n    }\n}\nexports.CardView = CardView;\nCardView.__name__ = \"CardView\";\nclass Card extends column_1.Column {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.Card = Card;\n_a = Card;\nCard.__name__ = \"Card\";\nCard.__module__ = \"panel.models.layout\";\n(() => {\n    _a.prototype.default_view = CardView;\n    _a.define(({ List, Bool, Nullable, Str }) => ({\n        active_header_background: [Nullable(Str), null],\n        button_css_classes: [List(Str), []],\n        collapsed: [Bool, true],\n        collapsible: [Bool, true],\n        header_background: [Nullable(Str), null],\n        header_color: [Nullable(Str), null],\n        header_css_classes: [List(Str), []],\n        header_tag: [Str, \"div\"],\n        hide_header: [Bool, false],\n        tag: [Str, \"div\"],\n    }));\n})();\n//# sourceMappingURL=card.js.map\n","type":"js","dependency_paths":[["./column","/home/runner/work/panel/panel/panel/dist/lib/models/column.js"],["../styles/models/card.css","/home/runner/work/panel/panel/panel/dist/lib/styles/models/card.css.js"]],"dependency_map":[],"exported":[{"type":"named","name":"CardView"},{"type":"named","name":"Card"}],"externals":[],"shims":[]},"code":{"source":"/* models/card.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const DOM = tslib_1.__importStar(require(\"@bokehjs/core/dom\"));\n    const grid_1 = require(\"@bokehjs/core/layout/grid\");\n    const alignments_1 = require(\"@bokehjs/models/layouts/alignments\");\n    const layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\n    const column_1 = require(\"b273e5b2fb\") /* ./column */;\n    const card_css_1 = tslib_1.__importDefault(require(\"6342ac8e26\") /* ../styles/models/card.css */);\n    const CHEVRON_RIGHT = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"icon icon-tabler icons-tabler-outline icon-tabler-chevron-right\"><path stroke=\"none\" d=\"M0 0h12v12H0z\" fill=\"none\"/><path d=\"M9 6l6 6l-6 6\" /></svg>\n`;\n    const CHEVRON_DOWN = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"icon icon-tabler icons-tabler-outline icon-tabler-chevron-down\"><path stroke=\"none\" d=\"M0 0h12v12H0z\" fill=\"none\"/><path d=\"M6 9l6 6l6 -6\" /></svg>\n`;\n    class CardView extends column_1.ColumnView {\n        constructor() {\n            super(...arguments);\n            this.visible_child_views = new Map();\n            this._updating_child_visibility = new Set();\n            this._child_visible_callbacks = new Map();\n            this.collapsed_style = new DOM.InlineStyleSheet();\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { active_header_background, collapsed, header_background, header_color, hide_header } = this.model.properties;\n            this.on_change(collapsed, () => this._collapse());\n            this.on_change([header_color, hide_header], () => this.render());\n            this.on_change([active_header_background, collapsed, header_background], () => {\n                const header_background = this.header_background;\n                if (header_background == null) {\n                    return;\n                }\n                this.child_views[0].el.style.backgroundColor = header_background;\n                this.header_el.style.backgroundColor = header_background;\n            });\n            for (const child_view of this.child_views.slice(1)) {\n                this._register_child_view(child_view);\n            }\n        }\n        stylesheets() {\n            return [...super.stylesheets(), card_css_1.default];\n        }\n        *_stylesheets() {\n            yield* super._stylesheets();\n            yield this.collapsed_style;\n        }\n        get header_background() {\n            let header_background = this.model.header_background;\n            if (!this.model.collapsed && this.model.active_header_background) {\n                header_background = this.model.active_header_background;\n            }\n            return header_background;\n        }\n        render() {\n            this.empty();\n            if (this.model.collapsed) {\n                this.collapsed_style.replace(\":host\", {\n                    height: \"fit-content\",\n                    flex: \"none\",\n                });\n            }\n            this._update_stylesheets();\n            this._update_css_classes();\n            this._apply_styles();\n            this._apply_visible();\n            this.class_list.add(...this.css_classes());\n            const { button_css_classes, header_color, header_tag, header_css_classes } = this.model;\n            const header_background = this.header_background;\n            const header = this.child_views[0];\n            let header_el;\n            if (this.model.collapsible) {\n                this.button_el = DOM.button({ class: header_css_classes });\n                const icon = DOM.div({ class: button_css_classes });\n                icon.innerHTML = this.model.collapsed ? CHEVRON_RIGHT : CHEVRON_DOWN;\n                this.button_el.appendChild(icon);\n                this.button_el.style.backgroundColor = header_background != null ? header_background : \"\";\n                header.el.style.backgroundColor = header_background != null ? header_background : \"\";\n                this.button_el.appendChild(header.el);\n                this.button_el.addEventListener(\"click\", (e) => this._toggle_button(e));\n                header_el = this.button_el;\n            }\n            else {\n                header_el = DOM.create_element(header_tag, { class: header_css_classes });\n                header_el.style.backgroundColor = header_background != null ? header_background : \"\";\n                header_el.appendChild(header.el);\n            }\n            this.header_el = header_el;\n            if (!this.model.hide_header) {\n                header_el.style.color = header_color != null ? header_color : \"\";\n                this.shadow_el.appendChild(header_el);\n                header.render();\n                header.r_after_render();\n            }\n            for (const child_view of this.child_views.slice(1)) {\n                this._register_child_view(child_view);\n                this._apply_child_visible(child_view);\n                this.shadow_el.appendChild(child_view.el);\n                child_view.render();\n                child_view.r_after_render();\n            }\n        }\n        async update_children() {\n            await this.build_child_views();\n            const child_views = new Set(this.child_views.slice(1));\n            for (const child_view of this.visible_child_views.keys()) {\n                if (!child_views.has(child_view)) {\n                    this._unregister_child_view(child_view);\n                }\n            }\n            for (const child_view of child_views) {\n                this._register_child_view(child_view);\n            }\n            this.render();\n            this.invalidate_layout();\n        }\n        _update_layout() {\n            super._update_layout();\n            this.style.append(\":host\", {\n                flex_direction: this._direction,\n                gap: DOM.px(this.model.spacing),\n            });\n            const layoutable = new grid_1.Container();\n            let r0 = 0;\n            let c0 = 0;\n            for (let i = 0; i < this.child_views.length; i++) {\n                const view = this.child_views[i];\n                if (!(view instanceof layout_dom_1.LayoutDOMView)) {\n                    continue;\n                }\n                const is_row = i == 0;\n                const sizing = view.box_sizing();\n                const flex = (() => {\n                    const policy = is_row ? sizing.width_policy : sizing.height_policy;\n                    const size = is_row ? sizing.width : sizing.height;\n                    const basis = size != null ? DOM.px(size) : \"auto\";\n                    switch (policy) {\n                        case \"auto\":\n                        case \"fixed\": return `0 0 ${basis}`;\n                        case \"fit\": return \"1 1 auto\";\n                        case \"min\": return \"0 1 auto\";\n                        case \"max\": return \"1 0 0px\";\n                    }\n                })();\n                const align_self = (() => {\n                    const policy = is_row ? sizing.height_policy : sizing.width_policy;\n                    switch (policy) {\n                        case \"auto\":\n                        case \"fixed\":\n                        case \"fit\":\n                        case \"min\": return is_row ? sizing.valign : sizing.halign;\n                        case \"max\": return \"stretch\";\n                    }\n                })();\n                view.parent_style.append(\":host\", { flex, align_self });\n                // undo `width/height: 100%` and let `align-self: stretch` do the work\n                if (is_row) {\n                    if (sizing.height_policy == \"max\") {\n                        view.parent_style.append(\":host\", { height: \"auto\" });\n                    }\n                }\n                else {\n                    if (sizing.width_policy == \"max\") {\n                        view.parent_style.append(\":host\", { width: \"auto\" });\n                    }\n                }\n                if (view.layout != null) {\n                    layoutable.add({ r0, c0, r1: r0 + 1, c1: c0 + 1 }, view);\n                    if (is_row) {\n                        c0 += 1;\n                    }\n                    else {\n                        r0 += 1;\n                    }\n                }\n            }\n            if (layoutable.size != 0) {\n                this.layout = new alignments_1.GridAlignmentLayout(layoutable);\n                this.layout.set_sizing();\n            }\n            else {\n                delete this.layout;\n            }\n        }\n        _toggle_button(e) {\n            const is_panel_widget = (el) => el instanceof HTMLInputElement || (el instanceof HTMLElement &&\n                Array.from(el.classList).some((c) => c.startsWith(\"bk-panel-models-widgets-\")));\n            for (const el of e.composedPath()) {\n                // If the click came from any Panel widget in the header, don't toggle.\n                if (is_panel_widget(el)) {\n                    return;\n                }\n            }\n            this.model.collapsed = !this.model.collapsed;\n        }\n        _collapse() {\n            for (const child_view of this.child_views.slice(1)) {\n                this._register_child_view(child_view);\n                if (this.model.collapsed) {\n                    this.shadow_el.removeChild(child_view.el);\n                    this._set_child_visible(child_view, false);\n                }\n                else {\n                    child_view.render();\n                    child_view.after_render();\n                    this.shadow_el.appendChild(child_view.el);\n                    this._apply_child_visible(child_view);\n                }\n            }\n            if (this.model.collapsed) {\n                this.collapsed_style.replace(\":host\", {\n                    height: \"fit-content\",\n                    flex: \"none\",\n                });\n            }\n            else {\n                this.collapsed_style.clear();\n            }\n            this.button_el.children[0].innerHTML = this.model.collapsed ? CHEVRON_RIGHT : CHEVRON_DOWN;\n            this.invalidate_layout();\n        }\n        _set_child_visible(child_view, visible) {\n            if (child_view.model.visible == visible) {\n                return;\n            }\n            this._updating_child_visibility.add(child_view);\n            try {\n                child_view.model.visible = visible;\n            }\n            finally {\n                this._updating_child_visibility.delete(child_view);\n            }\n        }\n        _apply_child_visible(child_view) {\n            const desired_visible = this.visible_child_views.get(child_view) ?? child_view.model.visible;\n            this.visible_child_views.set(child_view, desired_visible);\n            this._set_child_visible(child_view, desired_visible && !this.model.collapsed);\n        }\n        _register_child_view(child_view) {\n            if (this.visible_child_views.has(child_view)) {\n                return;\n            }\n            this.visible_child_views.set(child_view, child_view.model.visible);\n            const { visible } = child_view.model.properties;\n            const callback = () => {\n                if (this._updating_child_visibility.has(child_view)) {\n                    return;\n                }\n                const desired_visible = child_view.model.visible;\n                this.visible_child_views.set(child_view, desired_visible);\n                if (this.model.collapsed && desired_visible) {\n                    this._set_child_visible(child_view, false);\n                }\n            };\n            this._child_visible_callbacks.set(child_view, callback);\n            this.on_change(visible, callback);\n        }\n        _unregister_child_view(child_view) {\n            const callback = this._child_visible_callbacks.get(child_view);\n            if (callback != null) {\n                child_view.model.properties.visible.change.disconnect(callback);\n                this._child_visible_callbacks.delete(child_view);\n            }\n            this.visible_child_views.delete(child_view);\n            this._updating_child_visibility.delete(child_view);\n        }\n        _create_element() {\n            return DOM.create_element(this.model.tag, { class: this.css_classes() });\n        }\n    }\n    exports.CardView = CardView;\n    CardView.__name__ = \"CardView\";\n    class Card extends column_1.Column {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.Card = Card;\n    _a = Card;\n    Card.__name__ = \"Card\";\n    Card.__module__ = \"panel.models.layout\";\n    (() => {\n        _a.prototype.default_view = CardView;\n        _a.define(({ List, Bool, Nullable, Str }) => ({\n            active_header_background: [Nullable(Str), null],\n            button_css_classes: [List(Str), []],\n            collapsed: [Bool, true],\n            collapsible: [Bool, true],\n            header_background: [Nullable(Str), null],\n            header_color: [Nullable(Str), null],\n            header_css_classes: [List(Str), []],\n            header_tag: [Str, \"div\"],\n            hide_header: [Bool, false],\n            tag: [Str, \"div\"],\n        }));\n    })();\n}\n","min_source":"function _(e,s,i,t,l){var o;t();const h=e(\"tslib\"),n=h.__importStar(e(\"@bokehjs/core/dom\")),a=e(\"@bokehjs/core/layout/grid\"),d=e(\"@bokehjs/models/layouts/alignments\"),_=e(\"@bokehjs/models/layouts/layout_dom\"),c=e(\"b273e5b2fb\"),r=h.__importDefault(e(\"6342ac8e26\")),u='\\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"icon icon-tabler icons-tabler-outline icon-tabler-chevron-right\"><path stroke=\"none\" d=\"M0 0h12v12H0z\" fill=\"none\"/><path d=\"M9 6l6 6l-6 6\" /></svg>\\n',p='\\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"icon icon-tabler icons-tabler-outline icon-tabler-chevron-down\"><path stroke=\"none\" d=\"M0 0h12v12H0z\" fill=\"none\"/><path d=\"M6 9l6 6l6 -6\" /></svg>\\n';class b extends c.ColumnView{constructor(){super(...arguments),this.visible_child_views=new Map,this._updating_child_visibility=new Set,this._child_visible_callbacks=new Map,this.collapsed_style=new n.InlineStyleSheet}connect_signals(){super.connect_signals();const{active_header_background:e,collapsed:s,header_background:i,header_color:t,hide_header:l}=this.model.properties;this.on_change(s,(()=>this._collapse())),this.on_change([t,l],(()=>this.render())),this.on_change([e,s,i],(()=>{const e=this.header_background;null!=e&&(this.child_views[0].el.style.backgroundColor=e,this.header_el.style.backgroundColor=e)}));for(const e of this.child_views.slice(1))this._register_child_view(e)}stylesheets(){return[...super.stylesheets(),r.default]}*_stylesheets(){yield*super._stylesheets(),yield this.collapsed_style}get header_background(){let e=this.model.header_background;return!this.model.collapsed&&this.model.active_header_background&&(e=this.model.active_header_background),e}render(){this.empty(),this.model.collapsed&&this.collapsed_style.replace(\":host\",{height:\"fit-content\",flex:\"none\"}),this._update_stylesheets(),this._update_css_classes(),this._apply_styles(),this._apply_visible(),this.class_list.add(...this.css_classes());const{button_css_classes:e,header_color:s,header_tag:i,header_css_classes:t}=this.model,l=this.header_background,o=this.child_views[0];let h;if(this.model.collapsible){this.button_el=n.button({class:t});const s=n.div({class:e});s.innerHTML=this.model.collapsed?u:p,this.button_el.appendChild(s),this.button_el.style.backgroundColor=null!=l?l:\"\",o.el.style.backgroundColor=null!=l?l:\"\",this.button_el.appendChild(o.el),this.button_el.addEventListener(\"click\",(e=>this._toggle_button(e))),h=this.button_el}else h=n.create_element(i,{class:t}),h.style.backgroundColor=null!=l?l:\"\",h.appendChild(o.el);this.header_el=h,this.model.hide_header||(h.style.color=null!=s?s:\"\",this.shadow_el.appendChild(h),o.render(),o.r_after_render());for(const e of this.child_views.slice(1))this._register_child_view(e),this._apply_child_visible(e),this.shadow_el.appendChild(e.el),e.render(),e.r_after_render()}async update_children(){await this.build_child_views();const e=new Set(this.child_views.slice(1));for(const s of this.visible_child_views.keys())e.has(s)||this._unregister_child_view(s);for(const s of e)this._register_child_view(s);this.render(),this.invalidate_layout()}_update_layout(){super._update_layout(),this.style.append(\":host\",{flex_direction:this._direction,gap:n.px(this.model.spacing)});const e=new a.Container;let s=0,i=0;for(let t=0;t<this.child_views.length;t++){const l=this.child_views[t];if(!(l instanceof _.LayoutDOMView))continue;const o=0==t,h=l.box_sizing(),a=(()=>{const e=o?h.width_policy:h.height_policy,s=o?h.width:h.height,i=null!=s?n.px(s):\"auto\";switch(e){case\"auto\":case\"fixed\":return`0 0 ${i}`;case\"fit\":return\"1 1 auto\";case\"min\":return\"0 1 auto\";case\"max\":return\"1 0 0px\"}})(),d=(()=>{switch(o?h.height_policy:h.width_policy){case\"auto\":case\"fixed\":case\"fit\":case\"min\":return o?h.valign:h.halign;case\"max\":return\"stretch\"}})();l.parent_style.append(\":host\",{flex:a,align_self:d}),o?\"max\"==h.height_policy&&l.parent_style.append(\":host\",{height:\"auto\"}):\"max\"==h.width_policy&&l.parent_style.append(\":host\",{width:\"auto\"}),null!=l.layout&&(e.add({r0:s,c0:i,r1:s+1,c1:i+1},l),o?i+=1:s+=1)}0!=e.size?(this.layout=new d.GridAlignmentLayout(e),this.layout.set_sizing()):delete this.layout}_toggle_button(e){const s=e=>e instanceof HTMLInputElement||e instanceof HTMLElement&&Array.from(e.classList).some((e=>e.startsWith(\"bk-panel-models-widgets-\")));for(const i of e.composedPath())if(s(i))return;this.model.collapsed=!this.model.collapsed}_collapse(){for(const e of this.child_views.slice(1))this._register_child_view(e),this.model.collapsed?(this.shadow_el.removeChild(e.el),this._set_child_visible(e,!1)):(e.render(),e.after_render(),this.shadow_el.appendChild(e.el),this._apply_child_visible(e));this.model.collapsed?this.collapsed_style.replace(\":host\",{height:\"fit-content\",flex:\"none\"}):this.collapsed_style.clear(),this.button_el.children[0].innerHTML=this.model.collapsed?u:p,this.invalidate_layout()}_set_child_visible(e,s){if(e.model.visible!=s){this._updating_child_visibility.add(e);try{e.model.visible=s}finally{this._updating_child_visibility.delete(e)}}}_apply_child_visible(e){const s=this.visible_child_views.get(e)??e.model.visible;this.visible_child_views.set(e,s),this._set_child_visible(e,s&&!this.model.collapsed)}_register_child_view(e){if(this.visible_child_views.has(e))return;this.visible_child_views.set(e,e.model.visible);const{visible:s}=e.model.properties,i=()=>{if(this._updating_child_visibility.has(e))return;const s=e.model.visible;this.visible_child_views.set(e,s),this.model.collapsed&&s&&this._set_child_visible(e,!1)};this._child_visible_callbacks.set(e,i),this.on_change(s,i)}_unregister_child_view(e){const s=this._child_visible_callbacks.get(e);null!=s&&(e.model.properties.visible.change.disconnect(s),this._child_visible_callbacks.delete(e)),this.visible_child_views.delete(e),this._updating_child_visibility.delete(e)}_create_element(){return n.create_element(this.model.tag,{class:this.css_classes()})}}i.CardView=b,b.__name__=\"CardView\";class v extends c.Column{constructor(e){super(e)}}i.Card=v,o=v,v.__name__=\"Card\",v.__module__=\"panel.models.layout\",o.prototype.default_view=b,o.define((({List:e,Bool:s,Nullable:i,Str:t})=>({active_header_background:[i(t),null],button_css_classes:[e(t),[]],collapsed:[s,!0],collapsible:[s,!0],header_background:[i(t),null],header_color:[i(t),null],header_css_classes:[e(t),[]],header_tag:[t,\"div\"],hide_header:[s,!1],tag:[t,\"div\"]})))}\n//# sourceMappingURL=card.min.js.map","min_map":"{\"version\":3,\"file\":\"card.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"tslib_1\",\"DOM\",\"__importStar\",\"grid_1\",\"alignments_1\",\"layout_dom_1\",\"column_1\",\"card_css_1\",\"__importDefault\",\"CHEVRON_RIGHT\",\"CHEVRON_DOWN\",\"CardView\",\"ColumnView\",\"constructor\",\"super\",\"arguments\",\"this\",\"visible_child_views\",\"Map\",\"_updating_child_visibility\",\"Set\",\"_child_visible_callbacks\",\"collapsed_style\",\"InlineStyleSheet\",\"connect_signals\",\"active_header_background\",\"collapsed\",\"header_background\",\"header_color\",\"hide_header\",\"model\",\"properties\",\"on_change\",\"_collapse\",\"render\",\"child_views\",\"el\",\"style\",\"backgroundColor\",\"header_el\",\"child_view\",\"slice\",\"_register_child_view\",\"stylesheets\",\"default\",\"_stylesheets\",\"empty\",\"replace\",\"height\",\"flex\",\"_update_stylesheets\",\"_update_css_classes\",\"_apply_styles\",\"_apply_visible\",\"class_list\",\"add\",\"css_classes\",\"button_css_classes\",\"header_tag\",\"header_css_classes\",\"header\",\"collapsible\",\"button_el\",\"button\",\"class\",\"icon\",\"div\",\"innerHTML\",\"appendChild\",\"addEventListener\",\"e\",\"_toggle_button\",\"create_element\",\"color\",\"shadow_el\",\"r_after_render\",\"_apply_child_visible\",\"update_children\",\"build_child_views\",\"keys\",\"has\",\"_unregister_child_view\",\"invalidate_layout\",\"_update_layout\",\"append\",\"flex_direction\",\"_direction\",\"gap\",\"px\",\"spacing\",\"layoutable\",\"Container\",\"r0\",\"c0\",\"i\",\"length\",\"view\",\"LayoutDOMView\",\"is_row\",\"sizing\",\"box_sizing\",\"policy\",\"width_policy\",\"height_policy\",\"size\",\"width\",\"basis\",\"align_self\",\"valign\",\"halign\",\"parent_style\",\"layout\",\"r1\",\"c1\",\"GridAlignmentLayout\",\"set_sizing\",\"is_panel_widget\",\"HTMLInputElement\",\"HTMLElement\",\"Array\",\"from\",\"classList\",\"some\",\"c\",\"startsWith\",\"composedPath\",\"removeChild\",\"_set_child_visible\",\"after_render\",\"clear\",\"children\",\"visible\",\"delete\",\"desired_visible\",\"get\",\"set\",\"callback\",\"change\",\"disconnect\",\"_create_element\",\"tag\",\"__name__\",\"Card\",\"Column\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"List\",\"Bool\",\"Nullable\",\"Str\"],\"sources\":[\"0\"],\"mappings\":\"AAAqB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAClE,IAAIC,EACJF,IACA,MAAMG,EAAUN,EAAQ,SAClBO,EAAMD,EAAQE,aAAaR,EAAQ,sBACnCS,EAAST,EAAQ,6BACjBU,EAAeV,EAAQ,sCACvBW,EAAeX,EAAQ,sCACvBY,EAAWZ,EAAQ,cACnBa,EAAaP,EAAQQ,gBAAgBd,EAAQ,eAC7Ce,EAAgB,uVAGhBC,EAAe,sVAGrB,MAAMC,UAAiBL,EAASM,WAC5B,WAAAC,GACIC,SAASC,WACTC,KAAKC,oBAAsB,IAAIC,IAC/BF,KAAKG,2BAA6B,IAAIC,IACtCJ,KAAKK,yBAA2B,IAAIH,IACpCF,KAAKM,gBAAkB,IAAIrB,EAAIsB,gBACnC,CACA,eAAAC,GACIV,MAAMU,kBACN,MAAMC,yBAAEA,EAAwBC,UAAEA,EAASC,kBAAEA,EAAiBC,aAAEA,EAAYC,YAAEA,GAAgBb,KAAKc,MAAMC,WACzGf,KAAKgB,UAAUN,GAAW,IAAMV,KAAKiB,cACrCjB,KAAKgB,UAAU,CAACJ,EAAcC,IAAc,IAAMb,KAAKkB,WACvDlB,KAAKgB,UAAU,CAACP,EAA0BC,EAAWC,IAAoB,KACrE,MAAMA,EAAoBX,KAAKW,kBACN,MAArBA,IAGJX,KAAKmB,YAAY,GAAGC,GAAGC,MAAMC,gBAAkBX,EAC/CX,KAAKuB,UAAUF,MAAMC,gBAAkBX,EAAiB,IAE5D,IAAK,MAAMa,KAAcxB,KAAKmB,YAAYM,MAAM,GAC5CzB,KAAK0B,qB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vD,CAAuBzC,GACnB,MAAMgG,EAAWxH,KAAKK,yBAAyBiH,IAAI9F,GACnC,MAAZgG,IACAhG,EAAWV,MAAMC,WAAWoG,QAAQM,OAAOC,WAAWF,GACtDxH,KAAKK,yBAAyB+G,OAAO5F,IAEzCxB,KAAKC,oBAAoBmH,OAAO5F,GAChCxB,KAAKG,2BAA2BiH,OAAO5F,EAC3C,CACA,eAAAmG,GACI,OAAO1I,EAAIuE,eAAexD,KAAKc,MAAM8G,IAAK,CAAE5E,MAAOhD,KAAKwC,eAC5D,EAEJ5D,EAAQe,SAAWA,EACnBA,EAASkI,SAAW,WACpB,MAAMC,UAAaxI,EAASyI,OACxB,WAAAlI,CAAYmI,GACRlI,MAAMkI,EACV,EAEJpJ,EAAQkJ,KAAOA,EACf/I,EAAK+I,EACLA,EAAKD,SAAW,OAChBC,EAAKG,WAAa,sBAEdlJ,EAAGmJ,UAAUC,aAAexI,EAC5BZ,EAAGqJ,QAAO,EAAGC,OAAMC,OAAMC,WAAUC,UAAU,CACzC/H,yBAA0B,CAAC8H,EAASC,GAAM,MAC1C/F,mBAAoB,CAAC4F,EAAKG,GAAM,IAChC9H,UAAW,CAAC4H,GAAM,GAClBzF,YAAa,CAACyF,GAAM,GACpB3H,kBAAmB,CAAC4H,EAASC,GAAM,MACnC5H,aAAc,CAAC2H,EAASC,GAAM,MAC9B7F,mBAAoB,CAAC0F,EAAKG,GAAM,IAChC9F,WAAY,CAAC8F,EAAK,OAClB3H,YAAa,CAACyH,GAAM,GACpBV,IAAK,CAACY,EAAK,UAGvB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/column.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/column.js","canonical":"models/column","resolution":"ESM","id":"b273e5b2fb","hash":"b273e5b2fbab4cf239529d8d2602d2a2e5dccc85bc698d23b027619e49b34834","source":"\"use strict\";\nvar _a, _b, _c;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Column = exports.ColumnView = exports.ScrollToEvent = exports.ScrollButtonClick = void 0;\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n        r = Reflect.decorate(decorators, target, key, desc);\n    else\n        for (var i = decorators.length - 1; i >= 0; i--)\n            if (d = decorators[i])\n                r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ScrollToEvent_1;\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst column_1 = require(\"@bokehjs/models/layouts/column\");\nconst layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\nclass ScrollButtonClick extends bokeh_events_1.ModelEvent {\n}\nexports.ScrollButtonClick = ScrollButtonClick;\n_a = ScrollButtonClick;\nScrollButtonClick.__name__ = \"ScrollButtonClick\";\n(() => {\n    _a.prototype.event_name = \"scroll_button_click\";\n})();\nlet ScrollToEvent = (_b = class ScrollToEvent extends bokeh_events_1.ModelEvent {\n        constructor(model, index) {\n            super();\n            this.model = model;\n            this.index = index;\n            this.index = index;\n            this.origin = model;\n        }\n        get event_values() {\n            return { model: this.origin, index: this.index };\n        }\n        static from_values(values) {\n            const { model, index } = values;\n            return new ScrollToEvent_1(model, index);\n        }\n    },\n    (() => {\n        ScrollToEvent_1 = _b;\n    })(),\n    _b.__name__ = \"ScrollToEvent\",\n    _b);\nexports.ScrollToEvent = ScrollToEvent;\nexports.ScrollToEvent = ScrollToEvent = ScrollToEvent_1 = __decorate([\n    (0, bokeh_events_1.server_event)(\"scroll_to\")\n], ScrollToEvent);\nclass ColumnView extends column_1.ColumnView {\n    constructor() {\n        super(...arguments);\n        this._updating = false;\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { children, scroll_position, scroll_button_threshold } = this.model.properties;\n        this.on_change(children, () => this.trigger_auto_scroll());\n        this.on_change(scroll_position, () => this.scroll_to_position());\n        this.on_change(scroll_button_threshold, () => this.toggle_scroll_button());\n        this.model.on_event(ScrollToEvent, (event) => this.scroll_to_index(event.index));\n    }\n    get distance_from_latest() {\n        return this.el.scrollHeight - this.el.scrollTop - this.el.clientHeight;\n    }\n    scroll_to_index(index) {\n        if (index === null) {\n            return;\n        }\n        if (index >= this.model.children.length) {\n            console.warn(`Invalid scroll index: ${index}`);\n            return;\n        }\n        // Get the child view at the specified index\n        const childView = this.child_views[index];\n        if (!childView) {\n            console.warn(`Child view not found for index: ${index}`);\n            return;\n        }\n        // Get the top position of the child element relative to the column\n        const childEl = childView.el;\n        const childRect = childEl.getBoundingClientRect();\n        const columnRect = this.el.getBoundingClientRect();\n        const relativeTop = childRect.top - columnRect.top + this.el.scrollTop;\n        // Scroll to the child's position\n        this.model.scroll_position = Math.round(relativeTop);\n    }\n    scroll_to_position() {\n        if (this._updating) {\n            return;\n        }\n        requestAnimationFrame(() => {\n            this.el.scrollTo({ top: this.model.scroll_position, behavior: \"instant\" });\n        });\n    }\n    scroll_to_latest(scroll_limit = null) {\n        if (scroll_limit !== null) {\n            const within_limit = this.distance_from_latest <= scroll_limit;\n            if (!within_limit) {\n                return;\n            }\n        }\n        requestAnimationFrame(() => {\n            this.model.scroll_position = Math.round(this.el.scrollHeight);\n        });\n    }\n    trigger_auto_scroll() {\n        const limit = this.model.auto_scroll_limit;\n        if (limit == 0) {\n            return;\n        }\n        const within_limit = this.distance_from_latest <= limit;\n        if (!within_limit) {\n            return;\n        }\n        this.scroll_to_latest();\n    }\n    record_scroll_position() {\n        this._updating = true;\n        this.model.scroll_position = Math.round(this.el.scrollTop);\n        this._updating = false;\n    }\n    toggle_scroll_button() {\n        const threshold = this.model.scroll_button_threshold;\n        if (!this.scroll_down_button_el || threshold === 0) {\n            return;\n        }\n        const exceeds_threshold = this.distance_from_latest >= threshold;\n        this.scroll_down_button_el.classList.toggle(\"visible\", exceeds_threshold);\n    }\n    _update_layout() {\n        super._update_layout();\n        const is_scrollable = this.model.css_classes.some(cls => [\"scroll\", \"scrollable\", \"scrollable-vertical\"].includes(cls));\n        for (const view of this.child_views) {\n            if (!(view instanceof layout_dom_1.LayoutDOMView)) {\n                continue;\n            }\n            if (is_scrollable) {\n                view.parent_style.append(\":host\", { maxHeight: \"none\" });\n            }\n        }\n    }\n    render() {\n        super.render();\n        this.scroll_down_button_el = (0, dom_1.div)({ class: \"scroll-button\" });\n        this.shadow_el.appendChild(this.scroll_down_button_el);\n        this.el.addEventListener(\"scroll\", () => {\n            this.record_scroll_position();\n            this.toggle_scroll_button();\n        });\n        this.scroll_down_button_el.addEventListener(\"click\", () => {\n            this.scroll_to_latest();\n            this.model.trigger_event(new ScrollButtonClick());\n        });\n    }\n    async update_children() {\n        const created = await this.build_child_views();\n        const created_views = new Set(created);\n        // Find index up to which the order of the existing views\n        // matches the order of the new views. This allows us to\n        // skip re-inserting the views up to this point\n        const current_views = Array.from(this.shadow_el.children).flatMap(el => {\n            const view = this.child_views.find(view => view.el === el);\n            return view === undefined ? [] : [view];\n        });\n        let matching_index = null;\n        for (let i = 0; i < current_views.length; i++) {\n            if (current_views[i] === this.child_views[i]) {\n                matching_index = i;\n            }\n            else {\n                break;\n            }\n        }\n        // Since appending to a DOM node will move the node to the end if it has\n        // already been added appending all the children in order will result in\n        // correct ordering.\n        for (let i = 0; i < this.child_views.length; i++) {\n            const view = this.child_views[i];\n            const is_new = created_views.has(view);\n            // this.shadow_el is needed for Bokeh < 3.7.0 as this.self_target is not defined\n            // can be removed when our minimum version is Bokeh 3.7.0\n            // https://github.com/holoviz/panel/pull/7948\n            const target = view.rendering_target() ?? this.self_target ?? this.shadow_el;\n            if (is_new) {\n                view.render_to(target);\n            }\n            else if (matching_index === null || i > matching_index) {\n                target.append(view.el);\n            }\n        }\n        this.r_after_render();\n        this._update_children();\n        this.invalidate_layout();\n    }\n    after_render() {\n        super.after_render();\n        requestAnimationFrame(() => {\n            if (this.model.scroll_position) {\n                this.scroll_to_position();\n            }\n            if (this.model.view_latest) {\n                this.scroll_to_latest();\n            }\n            this.toggle_scroll_button();\n        });\n    }\n}\nexports.ColumnView = ColumnView;\nColumnView.__name__ = \"ColumnView\";\nclass Column extends column_1.Column {\n    constructor(attrs) {\n        super(attrs);\n    }\n    on_click(callback) {\n        this.on_event(ScrollButtonClick, callback);\n    }\n}\nexports.Column = Column;\n_c = Column;\nColumn.__name__ = \"Column\";\nColumn.__module__ = \"panel.models.layout\";\n(() => {\n    _c.prototype.default_view = ColumnView;\n    _c.define(({ Int, Bool, Nullable }) => ({\n        auto_scroll_limit: [Int, 0],\n        scroll_button_threshold: [Int, 0],\n        scroll_index: [Nullable(Int), null],\n        scroll_position: [Int, 0],\n        view_latest: [Bool, false],\n    }));\n})();\n//# sourceMappingURL=column.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"ScrollButtonClick"},{"type":"named","name":"ColumnView"},{"type":"named","name":"Column"}],"externals":[],"shims":[]},"code":{"source":"/* models/column.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a, _b, _c;\n    __esModule();\n    var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n        if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n            r = Reflect.decorate(decorators, target, key, desc);\n        else\n            for (var i = decorators.length - 1; i >= 0; i--)\n                if (d = decorators[i])\n                    r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n        return c > 3 && r && Object.defineProperty(target, key, r), r;\n    };\n    var ScrollToEvent_1;\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const column_1 = require(\"@bokehjs/models/layouts/column\");\n    const layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\n    class ScrollButtonClick extends bokeh_events_1.ModelEvent {\n    }\n    exports.ScrollButtonClick = ScrollButtonClick;\n    _a = ScrollButtonClick;\n    ScrollButtonClick.__name__ = \"ScrollButtonClick\";\n    (() => {\n        _a.prototype.event_name = \"scroll_button_click\";\n    })();\n    let ScrollToEvent = (_b = class ScrollToEvent extends bokeh_events_1.ModelEvent {\n        constructor(model, index) {\n            super();\n            this.model = model;\n            this.index = index;\n            this.index = index;\n            this.origin = model;\n        }\n        get event_values() {\n            return { model: this.origin, index: this.index };\n        }\n        static from_values(values) {\n            const { model, index } = values;\n            return new ScrollToEvent_1(model, index);\n        }\n    },\n        (() => {\n            ScrollToEvent_1 = _b;\n        })(),\n        _b.__name__ = \"ScrollToEvent\",\n        _b);\n    exports.ScrollToEvent = ScrollToEvent;\n    exports.ScrollToEvent = ScrollToEvent = ScrollToEvent_1 = __decorate([\n        (0, bokeh_events_1.server_event)(\"scroll_to\")\n    ], ScrollToEvent);\n    class ColumnView extends column_1.ColumnView {\n        constructor() {\n            super(...arguments);\n            this._updating = false;\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { children, scroll_position, scroll_button_threshold } = this.model.properties;\n            this.on_change(children, () => this.trigger_auto_scroll());\n            this.on_change(scroll_position, () => this.scroll_to_position());\n            this.on_change(scroll_button_threshold, () => this.toggle_scroll_button());\n            this.model.on_event(ScrollToEvent, (event) => this.scroll_to_index(event.index));\n        }\n        get distance_from_latest() {\n            return this.el.scrollHeight - this.el.scrollTop - this.el.clientHeight;\n        }\n        scroll_to_index(index) {\n            if (index === null) {\n                return;\n            }\n            if (index >= this.model.children.length) {\n                console.warn(`Invalid scroll index: ${index}`);\n                return;\n            }\n            // Get the child view at the specified index\n            const childView = this.child_views[index];\n            if (!childView) {\n                console.warn(`Child view not found for index: ${index}`);\n                return;\n            }\n            // Get the top position of the child element relative to the column\n            const childEl = childView.el;\n            const childRect = childEl.getBoundingClientRect();\n            const columnRect = this.el.getBoundingClientRect();\n            const relativeTop = childRect.top - columnRect.top + this.el.scrollTop;\n            // Scroll to the child's position\n            this.model.scroll_position = Math.round(relativeTop);\n        }\n        scroll_to_position() {\n            if (this._updating) {\n                return;\n            }\n            requestAnimationFrame(() => {\n                this.el.scrollTo({ top: this.model.scroll_position, behavior: \"instant\" });\n            });\n        }\n        scroll_to_latest(scroll_limit = null) {\n            if (scroll_limit !== null) {\n                const within_limit = this.distance_from_latest <= scroll_limit;\n                if (!within_limit) {\n                    return;\n                }\n            }\n            requestAnimationFrame(() => {\n                this.model.scroll_position = Math.round(this.el.scrollHeight);\n            });\n        }\n        trigger_auto_scroll() {\n            const limit = this.model.auto_scroll_limit;\n            if (limit == 0) {\n                return;\n            }\n            const within_limit = this.distance_from_latest <= limit;\n            if (!within_limit) {\n                return;\n            }\n            this.scroll_to_latest();\n        }\n        record_scroll_position() {\n            this._updating = true;\n            this.model.scroll_position = Math.round(this.el.scrollTop);\n            this._updating = false;\n        }\n        toggle_scroll_button() {\n            const threshold = this.model.scroll_button_threshold;\n            if (!this.scroll_down_button_el || threshold === 0) {\n                return;\n            }\n            const exceeds_threshold = this.distance_from_latest >= threshold;\n            this.scroll_down_button_el.classList.toggle(\"visible\", exceeds_threshold);\n        }\n        _update_layout() {\n            super._update_layout();\n            const is_scrollable = this.model.css_classes.some(cls => [\"scroll\", \"scrollable\", \"scrollable-vertical\"].includes(cls));\n            for (const view of this.child_views) {\n                if (!(view instanceof layout_dom_1.LayoutDOMView)) {\n                    continue;\n                }\n                if (is_scrollable) {\n                    view.parent_style.append(\":host\", { maxHeight: \"none\" });\n                }\n            }\n        }\n        render() {\n            super.render();\n            this.scroll_down_button_el = (0, dom_1.div)({ class: \"scroll-button\" });\n            this.shadow_el.appendChild(this.scroll_down_button_el);\n            this.el.addEventListener(\"scroll\", () => {\n                this.record_scroll_position();\n                this.toggle_scroll_button();\n            });\n            this.scroll_down_button_el.addEventListener(\"click\", () => {\n                this.scroll_to_latest();\n                this.model.trigger_event(new ScrollButtonClick());\n            });\n        }\n        async update_children() {\n            const created = await this.build_child_views();\n            const created_views = new Set(created);\n            // Find index up to which the order of the existing views\n            // matches the order of the new views. This allows us to\n            // skip re-inserting the views up to this point\n            const current_views = Array.from(this.shadow_el.children).flatMap(el => {\n                const view = this.child_views.find(view => view.el === el);\n                return view === undefined ? [] : [view];\n            });\n            let matching_index = null;\n            for (let i = 0; i < current_views.length; i++) {\n                if (current_views[i] === this.child_views[i]) {\n                    matching_index = i;\n                }\n                else {\n                    break;\n                }\n            }\n            // Since appending to a DOM node will move the node to the end if it has\n            // already been added appending all the children in order will result in\n            // correct ordering.\n            for (let i = 0; i < this.child_views.length; i++) {\n                const view = this.child_views[i];\n                const is_new = created_views.has(view);\n                // this.shadow_el is needed for Bokeh < 3.7.0 as this.self_target is not defined\n                // can be removed when our minimum version is Bokeh 3.7.0\n                // https://github.com/holoviz/panel/pull/7948\n                const target = view.rendering_target() ?? this.self_target ?? this.shadow_el;\n                if (is_new) {\n                    view.render_to(target);\n                }\n                else if (matching_index === null || i > matching_index) {\n                    target.append(view.el);\n                }\n            }\n            this.r_after_render();\n            this._update_children();\n            this.invalidate_layout();\n        }\n        after_render() {\n            super.after_render();\n            requestAnimationFrame(() => {\n                if (this.model.scroll_position) {\n                    this.scroll_to_position();\n                }\n                if (this.model.view_latest) {\n                    this.scroll_to_latest();\n                }\n                this.toggle_scroll_button();\n            });\n        }\n    }\n    exports.ColumnView = ColumnView;\n    ColumnView.__name__ = \"ColumnView\";\n    class Column extends column_1.Column {\n        constructor(attrs) {\n            super(attrs);\n        }\n        on_click(callback) {\n            this.on_event(ScrollButtonClick, callback);\n        }\n    }\n    exports.Column = Column;\n    _c = Column;\n    Column.__name__ = \"Column\";\n    Column.__module__ = \"panel.models.layout\";\n    (() => {\n        _c.prototype.default_view = ColumnView;\n        _c.define(({ Int, Bool, Nullable }) => ({\n            auto_scroll_limit: [Int, 0],\n            scroll_button_threshold: [Int, 0],\n            scroll_index: [Nullable(Int), null],\n            scroll_position: [Int, 0],\n            view_latest: [Bool, false],\n        }));\n    })();\n}\n","min_source":"function _(t,e,o,l,s){var i,n,r;l();var _,c=this&&this.__decorate||function(t,e,o,l){var s,i=arguments.length,n=i<3?e:null===l?l=Object.getOwnPropertyDescriptor(e,o):l;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,l);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(n=(i<3?s(n):i>3?s(e,o,n):s(e,o))||n);return i>3&&n&&Object.defineProperty(e,o,n),n};const h=t(\"@bokehjs/core/bokeh_events\"),d=t(\"@bokehjs/core/dom\"),a=t(\"@bokehjs/models/layouts/column\"),u=t(\"@bokehjs/models/layouts/layout_dom\");class p extends h.ModelEvent{}o.ScrollButtonClick=p,i=p,p.__name__=\"ScrollButtonClick\",i.prototype.event_name=\"scroll_button_click\";let m=(n=class extends h.ModelEvent{constructor(t,e){super(),this.model=t,this.index=e,this.index=e,this.origin=t}get event_values(){return{model:this.origin,index:this.index}}static from_values(t){const{model:e,index:o}=t;return new _(e,o)}},_=n,n.__name__=\"ScrollToEvent\",n);o.ScrollToEvent=m,o.ScrollToEvent=m=_=c([(0,h.server_event)(\"scroll_to\")],m);class g extends a.ColumnView{constructor(){super(...arguments),this._updating=!1}connect_signals(){super.connect_signals();const{children:t,scroll_position:e,scroll_button_threshold:o}=this.model.properties;this.on_change(t,(()=>this.trigger_auto_scroll())),this.on_change(e,(()=>this.scroll_to_position())),this.on_change(o,(()=>this.toggle_scroll_button())),this.model.on_event(m,(t=>this.scroll_to_index(t.index)))}get distance_from_latest(){return this.el.scrollHeight-this.el.scrollTop-this.el.clientHeight}scroll_to_index(t){if(null===t)return;if(t>=this.model.children.length)return void console.warn(`Invalid scroll index: ${t}`);const e=this.child_views[t];if(!e)return void console.warn(`Child view not found for index: ${t}`);const o=e.el.getBoundingClientRect(),l=this.el.getBoundingClientRect(),s=o.top-l.top+this.el.scrollTop;this.model.scroll_position=Math.round(s)}scroll_to_position(){this._updating||requestAnimationFrame((()=>{this.el.scrollTo({top:this.model.scroll_position,behavior:\"instant\"})}))}scroll_to_latest(t=null){if(null!==t){if(!(this.distance_from_latest<=t))return}requestAnimationFrame((()=>{this.model.scroll_position=Math.round(this.el.scrollHeight)}))}trigger_auto_scroll(){const t=this.model.auto_scroll_limit;if(0==t)return;this.distance_from_latest<=t&&this.scroll_to_latest()}record_scroll_position(){this._updating=!0,this.model.scroll_position=Math.round(this.el.scrollTop),this._updating=!1}toggle_scroll_button(){const t=this.model.scroll_button_threshold;if(!this.scroll_down_button_el||0===t)return;const e=this.distance_from_latest>=t;this.scroll_down_button_el.classList.toggle(\"visible\",e)}_update_layout(){super._update_layout();const t=this.model.css_classes.some((t=>[\"scroll\",\"scrollable\",\"scrollable-vertical\"].includes(t)));for(const e of this.child_views)e instanceof u.LayoutDOMView&&t&&e.parent_style.append(\":host\",{maxHeight:\"none\"})}render(){super.render(),this.scroll_down_button_el=(0,d.div)({class:\"scroll-button\"}),this.shadow_el.appendChild(this.scroll_down_button_el),this.el.addEventListener(\"scroll\",(()=>{this.record_scroll_position(),this.toggle_scroll_button()})),this.scroll_down_button_el.addEventListener(\"click\",(()=>{this.scroll_to_latest(),this.model.trigger_event(new p)}))}async update_children(){const t=await this.build_child_views(),e=new Set(t),o=Array.from(this.shadow_el.children).flatMap((t=>{const e=this.child_views.find((e=>e.el===t));return void 0===e?[]:[e]}));let l=null;for(let t=0;t<o.length&&o[t]===this.child_views[t];t++)l=t;for(let t=0;t<this.child_views.length;t++){const o=this.child_views[t],s=e.has(o),i=o.rendering_target()??this.self_target??this.shadow_el;s?o.render_to(i):(null===l||t>l)&&i.append(o.el)}this.r_after_render(),this._update_children(),this.invalidate_layout()}after_render(){super.after_render(),requestAnimationFrame((()=>{this.model.scroll_position&&this.scroll_to_position(),this.model.view_latest&&this.scroll_to_latest(),this.toggle_scroll_button()}))}}o.ColumnView=g,g.__name__=\"ColumnView\";class v extends a.Column{constructor(t){super(t)}on_click(t){this.on_event(p,t)}}o.Column=v,r=v,v.__name__=\"Column\",v.__module__=\"panel.models.layout\",r.prototype.default_view=g,r.define((({Int:t,Bool:e,Nullable:o})=>({auto_scroll_limit:[t,0],scroll_button_threshold:[t,0],scroll_index:[o(t),null],scroll_position:[t,0],view_latest:[e,!1]})))}\n//# sourceMappingURL=column.min.js.map","min_map":"{\"version\":3,\"file\":\"column.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"_b\",\"_c\",\"ScrollToEvent_1\",\"__decorate\",\"this\",\"decorators\",\"target\",\"key\",\"desc\",\"d\",\"c\",\"arguments\",\"length\",\"r\",\"Object\",\"getOwnPropertyDescriptor\",\"Reflect\",\"decorate\",\"i\",\"defineProperty\",\"bokeh_events_1\",\"dom_1\",\"column_1\",\"layout_dom_1\",\"ScrollButtonClick\",\"ModelEvent\",\"__name__\",\"prototype\",\"event_name\",\"ScrollToEvent\",\"constructor\",\"model\",\"index\",\"super\",\"origin\",\"event_values\",\"from_values\",\"values\",\"server_event\",\"ColumnView\",\"_updating\",\"connect_signals\",\"children\",\"scroll_position\",\"scroll_button_threshold\",\"properties\",\"on_change\",\"trigger_auto_scroll\",\"scroll_to_position\",\"toggle_scroll_button\",\"on_event\",\"event\",\"scroll_to_index\",\"distance_from_latest\",\"el\",\"scrollHeight\",\"scrollTop\",\"clientHeight\",\"console\",\"warn\",\"childView\",\"child_views\",\"childRect\",\"getBoundingClientRect\",\"columnRect\",\"relativeTop\",\"top\",\"Math\",\"round\",\"requestAnimationFrame\",\"scrollTo\",\"behavior\",\"scroll_to_latest\",\"scroll_limit\",\"limit\",\"auto_scroll_limit\",\"record_scroll_position\",\"threshold\",\"scroll_down_button_el\",\"exceeds_threshold\",\"classList\",\"toggle\",\"_update_layout\",\"is_scrollable\",\"css_classes\",\"some\",\"cls\",\"includes\",\"view\",\"LayoutDOMView\",\"parent_style\",\"append\",\"maxHeight\",\"render\",\"div\",\"class\",\"shadow_el\",\"appendChild\",\"addEventListener\",\"trigger_event\",\"update_children\",\"created\",\"build_child_views\",\"created_views\",\"Set\",\"current_views\",\"Array\",\"from\",\"flatMap\",\"find\",\"undefined\",\"matching_index\",\"is_new\",\"has\",\"rendering_target\",\"self_target\",\"render_to\",\"r_after_render\",\"_update_children\",\"invalidate_layout\",\"after_render\",\"view_latest\",\"Column\",\"attrs\",\"on_click\",\"callback\",\"__module__\",\"default_view\",\"define\",\"Int\",\"Bool\",\"Nullable\",\"scroll_index\"],\"sources\":[\"0\"],\"mappings\":\"AAAuB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACpE,IAAIC,EAAIC,EAAIC,EACZJ,IACA,IAUIK,EAVAC,EAAcC,MAAQA,KAAKD,YAAe,SAAUE,EAAYC,EAAQC,EAAKC,GAC7E,IAA2HC,EAAvHC,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIJ,EAAkB,OAATE,EAAgBA,EAAOM,OAAOC,yBAAyBT,EAAQC,GAAOC,EACrH,GAAuB,iBAAZQ,SAAoD,mBAArBA,QAAQC,SAC9CJ,EAAIG,QAAQC,SAASZ,EAAYC,EAAQC,EAAKC,QAE9C,IAAK,IAAIU,EAAIb,EAAWO,OAAS,EAAGM,GAAK,EAAGA,KACpCT,EAAIJ,EAAWa,MACfL,GAAKH,EAAI,EAAID,EAAEI,GAAKH,EAAI,EAAID,EAAEH,EAAQC,EAAKM,GAAKJ,EAAEH,EAAQC,KAASM,GAC/E,OAAOH,EAAI,GAAKG,GAAKC,OAAOK,eAAeb,EAAQC,EAAKM,GAAIA,CAChE,EAEA,MAAMO,EAAiB1B,EAAQ,8BACzB2B,EAAQ3B,EAAQ,qBAChB4B,EAAW5B,EAAQ,kCACnB6B,EAAe7B,EAAQ,sCAC7B,MAAM8B,UAA0BJ,EAAeK,YAE/C7B,EAAQ4B,kBAAoBA,EAC5BzB,EAAKyB,EACLA,EAAkBE,SAAW,oBAEzB3B,EAA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ACXrH,KAAKoE,mBAETpE,KAAK6C,sBAAsB,GAEnC,EAEJrD,EAAQ2C,WAAaA,EACrBA,EAAWb,SAAW,aACtB,MAAMgG,UAAepG,EAASoG,OAC1B,WAAA5F,CAAY6F,GACR1F,MAAM0F,EACV,CACA,QAAAC,CAASC,GACLzH,KAAK8C,SAAS1B,EAAmBqG,EACrC,EAEJjI,EAAQ8H,OAASA,EACjBzH,EAAKyH,EACLA,EAAOhG,SAAW,SAClBgG,EAAOI,WAAa,sBAEhB7H,EAAG0B,UAAUoG,aAAexF,EAC5BtC,EAAG+H,QAAO,EAAGC,MAAKC,OAAMC,eAAe,CACnCxD,kBAAmB,CAACsD,EAAK,GACzBrF,wBAAyB,CAACqF,EAAK,GAC/BG,aAAc,CAACD,EAASF,GAAM,MAC9BtF,gBAAiB,CAACsF,EAAK,GACvBR,YAAa,CAACS,GAAM,MAGhC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/styles/models/card.css.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"styles/models/card.css.js","canonical":"styles/models/card.css","resolution":"ESM","id":"6342ac8e26","hash":"6342ac8e2614674915c8822f41e8eecc384199072d97bf8508d8f628d779a3c3","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = `:host(.card){border-radius:0.25rem;box-shadow:rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;outline:1px solid rgba(0, 0, 0, 0.125);}:host(.accordion){box-shadow:rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;outline:1px solid rgba(0, 0, 0, 0.125);width:100%;}.card-header{align-items:center;background-color:rgba(0, 0, 0, 0.03);border:unset;border-radius:0.25rem;display:inline-flex;justify-content:start;outline:unset;position:sticky;width:100%;margin-right:0.5em;padding-inline:0.5em;cursor:pointer;}.card-header:hover{box-shadow:0 0 3px rgba(0, 0, 0, 0.3);}.card-header:not(:hover){box-shadow:0 0 3px rgba(0, 0, 0, 0);}.accordion-header{align-items:center;background-color:rgba(0, 0, 0, 0.03);border:unset;outline:1px solid;border-radius:0;display:flex;justify-content:start;position:sticky;width:100%;cursor:pointer;}.card-button{background-color:transparent;margin-left:0em;margin-right:0.25em;height:12px;width:12px;}.card-header-row{position:relative !important;}.card-title{align-items:center;font-size:1.4em;font-weight:bold;overflow-wrap:break-word;}.card-header-row > .bk{overflow-wrap:break-word;text-align:center;}`;\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"default"}],"externals":[],"shims":[]},"code":{"source":"/* styles/models/card.css.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = `:host(.card){border-radius:0.25rem;box-shadow:rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;outline:1px solid rgba(0, 0, 0, 0.125);}:host(.accordion){box-shadow:rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;outline:1px solid rgba(0, 0, 0, 0.125);width:100%;}.card-header{align-items:center;background-color:rgba(0, 0, 0, 0.03);border:unset;border-radius:0.25rem;display:inline-flex;justify-content:start;outline:unset;position:sticky;width:100%;margin-right:0.5em;padding-inline:0.5em;cursor:pointer;}.card-header:hover{box-shadow:0 0 3px rgba(0, 0, 0, 0.3);}.card-header:not(:hover){box-shadow:0 0 3px rgba(0, 0, 0, 0);}.accordion-header{align-items:center;background-color:rgba(0, 0, 0, 0.03);border:unset;outline:1px solid;border-radius:0;display:flex;justify-content:start;position:sticky;width:100%;cursor:pointer;}.card-button{background-color:transparent;margin-left:0em;margin-right:0.25em;height:12px;width:12px;}.card-header-row{position:relative !important;}.card-title{align-items:center;font-size:1.4em;font-weight:bold;overflow-wrap:break-word;}.card-header-row > .bk{overflow-wrap:break-word;text-align:center;}`;\n}\n","min_source":"function _(r,e,o,t,a){t(),o.default=\":host(.card){border-radius:0.25rem;box-shadow:rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;outline:1px solid rgba(0, 0, 0, 0.125);}:host(.accordion){box-shadow:rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;outline:1px solid rgba(0, 0, 0, 0.125);width:100%;}.card-header{align-items:center;background-color:rgba(0, 0, 0, 0.03);border:unset;border-radius:0.25rem;display:inline-flex;justify-content:start;outline:unset;position:sticky;width:100%;margin-right:0.5em;padding-inline:0.5em;cursor:pointer;}.card-header:hover{box-shadow:0 0 3px rgba(0, 0, 0, 0.3);}.card-header:not(:hover){box-shadow:0 0 3px rgba(0, 0, 0, 0);}.accordion-header{align-items:center;background-color:rgba(0, 0, 0, 0.03);border:unset;outline:1px solid;border-radius:0;display:flex;justify-content:start;position:sticky;width:100%;cursor:pointer;}.card-button{background-color:transparent;margin-left:0em;margin-right:0.25em;height:12px;width:12px;}.card-header-row{position:relative !important;}.card-title{align-items:center;font-size:1.4em;font-weight:bold;overflow-wrap:break-word;}.card-header-row > .bk{overflow-wrap:break-word;text-align:center;}\"}\n//# sourceMappingURL=card.css.min.js.map","min_map":"{\"version\":3,\"file\":\"card.css.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\"],\"sources\":[\"0\"],\"mappings\":\"AAAgC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC7ED,IACAD,EAAQG,QAAU,wqCACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/checkbox_button_group.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/checkbox_button_group.js","canonical":"models/checkbox_button_group","resolution":"ESM","id":"51fbe9e2d0","hash":"51fbe9e2d0671d345956659ec82aadba5e852b6604f1e7e69a3cbd2fcce80e34","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CheckboxButtonGroup = exports.CheckboxButtonGroupView = void 0;\nconst tooltip_1 = require(\"@bokehjs/models/ui/tooltip\");\nconst build_views_1 = require(\"@bokehjs/core/build_views\");\nconst checkbox_button_group_1 = require(\"@bokehjs/models/widgets/checkbox_button_group\");\nclass CheckboxButtonGroupView extends checkbox_button_group_1.CheckboxButtonGroupView {\n    *children() {\n        yield* super.children();\n        if (this.tooltip != null) {\n            yield this.tooltip;\n        }\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { tooltip } = this.model.properties;\n        this.on_change(tooltip, () => this.update_tooltip());\n    }\n    async update_tooltip() {\n        if (this.tooltip != null) {\n            this.tooltip.remove();\n        }\n        const { tooltip } = this.model;\n        if (tooltip != null) {\n            this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });\n        }\n    }\n    async lazy_initialize() {\n        await super.lazy_initialize();\n        const { tooltip } = this.model;\n        if (tooltip != null) {\n            this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });\n        }\n    }\n    remove() {\n        this.tooltip?.remove();\n        super.remove();\n    }\n    render() {\n        super.render();\n        const toggle = (visible) => {\n            this.tooltip?.model.setv({\n                visible,\n            });\n        };\n        let timer;\n        this.el.addEventListener(\"mouseenter\", () => {\n            timer = setTimeout(() => toggle(true), this.model.tooltip_delay);\n        });\n        this.el.addEventListener(\"mouseleave\", () => {\n            clearTimeout(timer);\n            toggle(false);\n        });\n    }\n}\nexports.CheckboxButtonGroupView = CheckboxButtonGroupView;\nCheckboxButtonGroupView.__name__ = \"CheckboxButtonGroupView\";\nclass CheckboxButtonGroup extends checkbox_button_group_1.CheckboxButtonGroup {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.CheckboxButtonGroup = CheckboxButtonGroup;\n_a = CheckboxButtonGroup;\nCheckboxButtonGroup.__name__ = \"CheckboxButtonGroup\";\nCheckboxButtonGroup.__module__ = \"panel.models.widgets\";\n(() => {\n    _a.prototype.default_view = CheckboxButtonGroupView;\n    _a.define(({ Nullable, Ref, Float }) => ({\n        tooltip: [Nullable(Ref(tooltip_1.Tooltip)), null],\n        tooltip_delay: [Float, 500],\n    }));\n})();\n//# sourceMappingURL=checkbox_button_group.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"CheckboxButtonGroupView"},{"type":"named","name":"CheckboxButtonGroup"}],"externals":[],"shims":[]},"code":{"source":"/* models/checkbox_button_group.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const tooltip_1 = require(\"@bokehjs/models/ui/tooltip\");\n    const build_views_1 = require(\"@bokehjs/core/build_views\");\n    const checkbox_button_group_1 = require(\"@bokehjs/models/widgets/checkbox_button_group\");\n    class CheckboxButtonGroupView extends checkbox_button_group_1.CheckboxButtonGroupView {\n        *children() {\n            yield* super.children();\n            if (this.tooltip != null) {\n                yield this.tooltip;\n            }\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { tooltip } = this.model.properties;\n            this.on_change(tooltip, () => this.update_tooltip());\n        }\n        async update_tooltip() {\n            if (this.tooltip != null) {\n                this.tooltip.remove();\n            }\n            const { tooltip } = this.model;\n            if (tooltip != null) {\n                this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });\n            }\n        }\n        async lazy_initialize() {\n            await super.lazy_initialize();\n            const { tooltip } = this.model;\n            if (tooltip != null) {\n                this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });\n            }\n        }\n        remove() {\n            this.tooltip?.remove();\n            super.remove();\n        }\n        render() {\n            super.render();\n            const toggle = (visible) => {\n                this.tooltip?.model.setv({\n                    visible,\n                });\n            };\n            let timer;\n            this.el.addEventListener(\"mouseenter\", () => {\n                timer = setTimeout(() => toggle(true), this.model.tooltip_delay);\n            });\n            this.el.addEventListener(\"mouseleave\", () => {\n                clearTimeout(timer);\n                toggle(false);\n            });\n        }\n    }\n    exports.CheckboxButtonGroupView = CheckboxButtonGroupView;\n    CheckboxButtonGroupView.__name__ = \"CheckboxButtonGroupView\";\n    class CheckboxButtonGroup extends checkbox_button_group_1.CheckboxButtonGroup {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.CheckboxButtonGroup = CheckboxButtonGroup;\n    _a = CheckboxButtonGroup;\n    CheckboxButtonGroup.__name__ = \"CheckboxButtonGroup\";\n    CheckboxButtonGroup.__module__ = \"panel.models.widgets\";\n    (() => {\n        _a.prototype.default_view = CheckboxButtonGroupView;\n        _a.define(({ Nullable, Ref, Float }) => ({\n            tooltip: [Nullable(Ref(tooltip_1.Tooltip)), null],\n            tooltip_delay: [Float, 500],\n        }));\n    })();\n}\n","min_source":"function _(t,e,o,i,l){var s;i();const n=t(\"@bokehjs/models/ui/tooltip\"),p=t(\"@bokehjs/core/build_views\"),u=t(\"@bokehjs/models/widgets/checkbox_button_group\");class r extends u.CheckboxButtonGroupView{*children(){yield*super.children(),null!=this.tooltip&&(yield this.tooltip)}connect_signals(){super.connect_signals();const{tooltip:t}=this.model.properties;this.on_change(t,(()=>this.update_tooltip()))}async update_tooltip(){null!=this.tooltip&&this.tooltip.remove();const{tooltip:t}=this.model;null!=t&&(this.tooltip=await(0,p.build_view)(t,{parent:this}))}async lazy_initialize(){await super.lazy_initialize();const{tooltip:t}=this.model;null!=t&&(this.tooltip=await(0,p.build_view)(t,{parent:this}))}remove(){this.tooltip?.remove(),super.remove()}render(){super.render();const t=t=>{this.tooltip?.model.setv({visible:t})};let e;this.el.addEventListener(\"mouseenter\",(()=>{e=setTimeout((()=>t(!0)),this.model.tooltip_delay)})),this.el.addEventListener(\"mouseleave\",(()=>{clearTimeout(e),t(!1)}))}}o.CheckboxButtonGroupView=r,r.__name__=\"CheckboxButtonGroupView\";class a extends u.CheckboxButtonGroup{constructor(t){super(t)}}o.CheckboxButtonGroup=a,s=a,a.__name__=\"CheckboxButtonGroup\",a.__module__=\"panel.models.widgets\",s.prototype.default_view=r,s.define((({Nullable:t,Ref:e,Float:o})=>({tooltip:[t(e(n.Tooltip)),null],tooltip_delay:[o,500]})))}\n//# sourceMappingURL=checkbox_button_group.min.js.map","min_map":"{\"version\":3,\"file\":\"checkbox_button_group.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"tooltip_1\",\"build_views_1\",\"checkbox_button_group_1\",\"CheckboxButtonGroupView\",\"children\",\"super\",\"this\",\"tooltip\",\"connect_signals\",\"model\",\"properties\",\"on_change\",\"update_tooltip\",\"remove\",\"build_view\",\"parent\",\"lazy_initialize\",\"render\",\"toggle\",\"visible\",\"setv\",\"timer\",\"el\",\"addEventListener\",\"setTimeout\",\"tooltip_delay\",\"clearTimeout\",\"__name__\",\"CheckboxButtonGroup\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Nullable\",\"Ref\",\"Float\",\"Tooltip\"],\"sources\":[\"0\"],\"mappings\":\"AAAsC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACnF,IAAIC,EACJF,IACA,MAAMG,EAAYN,EAAQ,8BACpBO,EAAgBP,EAAQ,6BACxBQ,EAA0BR,EAAQ,iDACxC,MAAMS,UAAgCD,EAAwBC,wBAC1D,SAACC,SACUC,MAAMD,WACO,MAAhBE,KAAKC,gBACCD,KAAKC,QAEnB,CACA,eAAAC,GACIH,MAAMG,kBACN,MAAMD,QAAEA,GAAYD,KAAKG,MAAMC,WAC/BJ,KAAKK,UAAUJ,GAAS,IAAMD,KAAKM,kBACvC,CACA,oBAAMA,GACkB,MAAhBN,KAAKC,SACLD,KAAKC,QAAQM,SAEjB,MAAMN,QAAEA,GAAYD,KAAKG,MACV,MAAXF,IACAD,KAAKC,cAAgB,EAAIN,EAAca,YAAYP,EAAS,CAAEQ,OAAQT,OAE9E,CACA,qBAAMU,SACIX,MAAMW,kBACZ,MAAMT,QAAEA,GAAYD,KAAKG,MACV,MAAXF,IACAD,KAAKC,cAAgB,EAAIN,EAAca,YAAYP,EAAS,CAAEQ,OAAQT,OAE9E,CACA,MAAAO,GACIP,KAAKC,SAASM,SACdR,MAAMQ,QACV,CACA,MAAAI,GACIZ,MAAMY,SACN,MAAMC,EAAUC,IACZb,KAAKC,SAASE,MAAMW,KAAK,CACrBD,WACF,EAEN,IAAIE,EACJf,KAAKgB,GAAGC,iBAAiB,cAAc,KACnCF,EAAQG,YAAW,IAAMN,GAAO,IAAOZ,KAAKG,MAAMgB,cAAc,IAEpEnB,KAAKgB,GAAGC,iBAAiB,cAAc,KACnCG,aAAaL,GACbH,GAAO,EAAM,GAErB,EAEJtB,EAAQO,wBAA0BA,EAClCA,EAAwBwB,SAAW,0BACnC,MAAMC,UAA4B1B,EAAwB0B,oBACtD,WAAAC,CAAYC,GACRzB,MAAMyB,EACV,EAEJlC,EAAQgC,oBAAsBA,EAC9B7B,EAAK6B,EACLA,EAAoBD,SAAW,sBAC/BC,EAAoBG,WAAa,uBAE7BhC,EAAGiC,UAAUC,aAAe9B,EAC5BJ,EAAGmC,QAAO,EAAGC,WAAUC,MAAKC,YAAY,CACpC9B,QAAS,CAAC4B,EAASC,EAAIpC,EAAUsC,UAAW,MAC5Cb,cAAe,CAACY,EAAO,QAGnC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/chatarea_input.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/chatarea_input.js","canonical":"models/chatarea_input","resolution":"ESM","id":"27a077673d","hash":"27a077673d954894ab3d57ded69e98074b78257b27aef2efb6502826f297eb95","source":"\"use strict\";\nvar _a, _b;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ChatAreaInput = exports.ChatAreaInputView = exports.ChatMessageEvent = void 0;\nconst textarea_input_1 = require(\"./textarea_input\");\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nclass ChatMessageEvent extends bokeh_events_1.ModelEvent {\n    constructor(value) {\n        super();\n        this.value = value;\n    }\n    get event_values() {\n        return { model: this.origin, value: this.value };\n    }\n}\nexports.ChatMessageEvent = ChatMessageEvent;\n_a = ChatMessageEvent;\nChatMessageEvent.__name__ = \"ChatMessageEvent\";\n(() => {\n    _a.prototype.event_name = \"chat_message_event\";\n})();\nclass ChatAreaInputView extends textarea_input_1.TextAreaInputView {\n    connect_signals() {\n        super.connect_signals();\n        const { value_input } = this.model.properties;\n        this.on_change(value_input, () => this.update_rows());\n    }\n    render() {\n        super.render();\n        this.el.addEventListener(\"keydown\", (event) => {\n            if (event.key === \"Enter\") {\n                if (!event.shiftKey && (event.ctrlKey != this.model.enter_sends)) {\n                    if (!this.model.disabled_enter) {\n                        this.model.trigger_event(new ChatMessageEvent(this.model.value_input));\n                        this.model.value_input = \"\";\n                    }\n                    event.preventDefault();\n                }\n                else if (event.ctrlKey && this.model.enter_sends) {\n                    this.model.value_input += \"\\n\";\n                    event.preventDefault();\n                }\n            }\n        });\n    }\n}\nexports.ChatAreaInputView = ChatAreaInputView;\nChatAreaInputView.__name__ = \"ChatAreaInputView\";\nclass ChatAreaInput extends textarea_input_1.TextAreaInput {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.ChatAreaInput = ChatAreaInput;\n_b = ChatAreaInput;\nChatAreaInput.__name__ = \"ChatAreaInput\";\nChatAreaInput.__module__ = \"panel.models.chatarea_input\";\n(() => {\n    _b.prototype.default_view = ChatAreaInputView;\n    _b.define(({ Bool }) => {\n        return {\n            disabled_enter: [Bool, false],\n            enter_sends: [Bool, true],\n        };\n    });\n})();\n//# sourceMappingURL=chatarea_input.js.map\n","type":"js","dependency_paths":[["./textarea_input","/home/runner/work/panel/panel/panel/dist/lib/models/textarea_input.js"]],"dependency_map":[],"exported":[{"type":"named","name":"ChatMessageEvent"},{"type":"named","name":"ChatAreaInputView"},{"type":"named","name":"ChatAreaInput"}],"externals":[],"shims":[]},"code":{"source":"/* models/chatarea_input.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a, _b;\n    __esModule();\n    const textarea_input_1 = require(\"b7d595d74a\") /* ./textarea_input */;\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    class ChatMessageEvent extends bokeh_events_1.ModelEvent {\n        constructor(value) {\n            super();\n            this.value = value;\n        }\n        get event_values() {\n            return { model: this.origin, value: this.value };\n        }\n    }\n    exports.ChatMessageEvent = ChatMessageEvent;\n    _a = ChatMessageEvent;\n    ChatMessageEvent.__name__ = \"ChatMessageEvent\";\n    (() => {\n        _a.prototype.event_name = \"chat_message_event\";\n    })();\n    class ChatAreaInputView extends textarea_input_1.TextAreaInputView {\n        connect_signals() {\n            super.connect_signals();\n            const { value_input } = this.model.properties;\n            this.on_change(value_input, () => this.update_rows());\n        }\n        render() {\n            super.render();\n            this.el.addEventListener(\"keydown\", (event) => {\n                if (event.key === \"Enter\") {\n                    if (!event.shiftKey && (event.ctrlKey != this.model.enter_sends)) {\n                        if (!this.model.disabled_enter) {\n                            this.model.trigger_event(new ChatMessageEvent(this.model.value_input));\n                            this.model.value_input = \"\";\n                        }\n                        event.preventDefault();\n                    }\n                    else if (event.ctrlKey && this.model.enter_sends) {\n                        this.model.value_input += \"\\n\";\n                        event.preventDefault();\n                    }\n                }\n            });\n        }\n    }\n    exports.ChatAreaInputView = ChatAreaInputView;\n    ChatAreaInputView.__name__ = \"ChatAreaInputView\";\n    class ChatAreaInput extends textarea_input_1.TextAreaInput {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.ChatAreaInput = ChatAreaInput;\n    _b = ChatAreaInput;\n    ChatAreaInput.__name__ = \"ChatAreaInput\";\n    ChatAreaInput.__module__ = \"panel.models.chatarea_input\";\n    (() => {\n        _b.prototype.default_view = ChatAreaInputView;\n        _b.define(({ Bool }) => {\n            return {\n                disabled_enter: [Bool, false],\n                enter_sends: [Bool, true],\n            };\n        });\n    })();\n}\n","min_source":"function _(e,t,n,s,a){var r,_;s();const i=e(\"b7d595d74a\"),l=e(\"@bokehjs/core/bokeh_events\");class o extends l.ModelEvent{constructor(e){super(),this.value=e}get event_values(){return{model:this.origin,value:this.value}}}n.ChatMessageEvent=o,r=o,o.__name__=\"ChatMessageEvent\",r.prototype.event_name=\"chat_message_event\";class d extends i.TextAreaInputView{connect_signals(){super.connect_signals();const{value_input:e}=this.model.properties;this.on_change(e,(()=>this.update_rows()))}render(){super.render(),this.el.addEventListener(\"keydown\",(e=>{\"Enter\"===e.key&&(e.shiftKey||e.ctrlKey==this.model.enter_sends?e.ctrlKey&&this.model.enter_sends&&(this.model.value_input+=\"\\n\",e.preventDefault()):(this.model.disabled_enter||(this.model.trigger_event(new o(this.model.value_input)),this.model.value_input=\"\"),e.preventDefault()))}))}}n.ChatAreaInputView=d,d.__name__=\"ChatAreaInputView\";class u extends i.TextAreaInput{constructor(e){super(e)}}n.ChatAreaInput=u,_=u,u.__name__=\"ChatAreaInput\",u.__module__=\"panel.models.chatarea_input\",_.prototype.default_view=d,_.define((({Bool:e})=>({disabled_enter:[e,!1],enter_sends:[e,!0]})))}\n//# sourceMappingURL=chatarea_input.min.js.map","min_map":"{\"version\":3,\"file\":\"chatarea_input.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"_b\",\"textarea_input_1\",\"bokeh_events_1\",\"ChatMessageEvent\",\"ModelEvent\",\"constructor\",\"value\",\"super\",\"this\",\"event_values\",\"model\",\"origin\",\"__name__\",\"prototype\",\"event_name\",\"ChatAreaInputView\",\"TextAreaInputView\",\"connect_signals\",\"value_input\",\"properties\",\"on_change\",\"update_rows\",\"render\",\"el\",\"addEventListener\",\"event\",\"key\",\"shiftKey\",\"ctrlKey\",\"enter_sends\",\"preventDefault\",\"disabled_enter\",\"trigger_event\",\"ChatAreaInput\",\"TextAreaInput\",\"attrs\",\"__module__\",\"default_view\",\"define\",\"Bool\"],\"sources\":[\"0\"],\"mappings\":\"AAA+B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC5E,IAAIC,EAAIC,EACRH,IACA,MAAMI,EAAmBP,EAAQ,cAC3BQ,EAAiBR,EAAQ,8BAC/B,MAAMS,UAAyBD,EAAeE,WAC1C,WAAAC,CAAYC,GACRC,QACAC,KAAKF,MAAQA,CACjB,CACA,gBAAIG,GACA,MAAO,CAAEC,MAAOF,KAAKG,OAAQL,MAAOE,KAAKF,MAC7C,EAEJV,EAAQO,iBAAmBA,EAC3BJ,EAAKI,EACLA,EAAiBS,SAAW,mBAExBb,EAAGc,UAAUC,WAAa,qBAE9B,MAAMC,UAA0Bd,EAAiBe,kBAC7C,eAAAC,GACIV,MAAMU,kBACN,MAAMC,YAAEA,GAAgBV,KAAKE,MAAMS,WACnCX,KAAKY,UAAUF,GAAa,IAAMV,KAAKa,eAC3C,CACA,MAAAC,GACIf,MAAMe,SACNd,KAAKe,GAAGC,iBAAiB,WAAYC,IACf,UAAdA,EAAMC,MACDD,EAAME,UAAaF,EAAMG,SAAWpB,KAAKE,MAAMmB,YAO3CJ,EAAMG,SAAWpB,KAAKE,MAAMmB,cACjCrB,KAAKE,MAAMQ,aAAe,KAC1BO,EAAMK,mBARDtB,KAAKE,MAAMqB,iBACZvB,KAAKE,MAAMsB,cAAc,IAAI7B,EAAiBK,KAAKE,MAAMQ,cACzDV,KAAKE,MAAMQ,YAAc,IAE7BO,EAAMK,kBAMd,GAER,EAEJlC,EAAQmB,kBAAoBA,EAC5BA,EAAkBH,SAAW,oBAC7B,MAAMqB,UAAsBhC,EAAiBiC,cACzC,WAAA7B,CAAY8B,GACR5B,MAAM4B,EACV,EAEJvC,EAAQqC,cAAgBA,EACxBjC,EAAKiC,EACLA,EAAcrB,SAAW,gBACzBqB,EAAcG,WAAa,8BAEvBpC,EAAGa,UAAUwB,aAAetB,EAC5Bf,EAAGsC,QAAO,EAAGC,WACF,CACHR,eAAgB,CAACQ,GAAM,GACvBV,YAAa,CAACU,GAAM,MAIpC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/textarea_input.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/textarea_input.js","canonical":"models/textarea_input","resolution":"ESM","id":"b7d595d74a","hash":"b7d595d74a09bee38924b9d390664e300c38be870d2a6293faecafd9552f67fd","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TextAreaInput = exports.TextAreaInputView = void 0;\nconst textarea_input_1 = require(\"@bokehjs/models/widgets/textarea_input\");\nclass TextAreaInputView extends textarea_input_1.TextAreaInputView {\n    connect_signals() {\n        super.connect_signals();\n        const { value, max_rows } = this.model.properties;\n        this.on_change([max_rows, value], () => this.update_rows());\n    }\n    update_rows() {\n        if (!this.model.auto_grow) {\n            return;\n        }\n        // Use this.el directly to access the textarea element\n        const textarea = this.input_el;\n        const textLines = textarea.value.split(\"\\n\");\n        const numRows = Math.max(textLines.length, this.model.rows, 1);\n        textarea.rows = Math.min(numRows, this.model.max_rows || Infinity);\n    }\n    render() {\n        super.render();\n        this.update_rows();\n        this.el.addEventListener(\"input\", () => {\n            this.update_rows();\n        });\n    }\n}\nexports.TextAreaInputView = TextAreaInputView;\nTextAreaInputView.__name__ = \"TextAreaInputView\";\nclass TextAreaInput extends textarea_input_1.TextAreaInput {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.TextAreaInput = TextAreaInput;\n_a = TextAreaInput;\nTextAreaInput.__name__ = \"TextAreaInput\";\nTextAreaInput.__module__ = \"panel.models.widgets\";\n(() => {\n    _a.prototype.default_view = TextAreaInputView;\n    _a.define(({ Bool, Int, Nullable }) => ({\n        auto_grow: [Bool, false],\n        max_rows: [Nullable(Int), null],\n    }));\n})();\n//# sourceMappingURL=textarea_input.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"TextAreaInputView"},{"type":"named","name":"TextAreaInput"}],"externals":[],"shims":[]},"code":{"source":"/* models/textarea_input.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const textarea_input_1 = require(\"@bokehjs/models/widgets/textarea_input\");\n    class TextAreaInputView extends textarea_input_1.TextAreaInputView {\n        connect_signals() {\n            super.connect_signals();\n            const { value, max_rows } = this.model.properties;\n            this.on_change([max_rows, value], () => this.update_rows());\n        }\n        update_rows() {\n            if (!this.model.auto_grow) {\n                return;\n            }\n            // Use this.el directly to access the textarea element\n            const textarea = this.input_el;\n            const textLines = textarea.value.split(\"\\n\");\n            const numRows = Math.max(textLines.length, this.model.rows, 1);\n            textarea.rows = Math.min(numRows, this.model.max_rows || Infinity);\n        }\n        render() {\n            super.render();\n            this.update_rows();\n            this.el.addEventListener(\"input\", () => {\n                this.update_rows();\n            });\n        }\n    }\n    exports.TextAreaInputView = TextAreaInputView;\n    TextAreaInputView.__name__ = \"TextAreaInputView\";\n    class TextAreaInput extends textarea_input_1.TextAreaInput {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.TextAreaInput = TextAreaInput;\n    _a = TextAreaInput;\n    TextAreaInput.__name__ = \"TextAreaInput\";\n    TextAreaInput.__module__ = \"panel.models.widgets\";\n    (() => {\n        _a.prototype.default_view = TextAreaInputView;\n        _a.define(({ Bool, Int, Nullable }) => ({\n            auto_grow: [Bool, false],\n            max_rows: [Nullable(Int), null],\n        }));\n    })();\n}\n","min_source":"function _(e,t,s,n,o){var a;n();const r=e(\"@bokehjs/models/widgets/textarea_input\");class i extends r.TextAreaInputView{connect_signals(){super.connect_signals();const{value:e,max_rows:t}=this.model.properties;this.on_change([t,e],(()=>this.update_rows()))}update_rows(){if(!this.model.auto_grow)return;const e=this.input_el,t=e.value.split(\"\\n\"),s=Math.max(t.length,this.model.rows,1);e.rows=Math.min(s,this.model.max_rows||1/0)}render(){super.render(),this.update_rows(),this.el.addEventListener(\"input\",(()=>{this.update_rows()}))}}s.TextAreaInputView=i,i.__name__=\"TextAreaInputView\";class _ extends r.TextAreaInput{constructor(e){super(e)}}s.TextAreaInput=_,a=_,_.__name__=\"TextAreaInput\",_.__module__=\"panel.models.widgets\",a.prototype.default_view=i,a.define((({Bool:e,Int:t,Nullable:s})=>({auto_grow:[e,!1],max_rows:[s(t),null]})))}\n//# sourceMappingURL=textarea_input.min.js.map","min_map":"{\"version\":3,\"file\":\"textarea_input.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"textarea_input_1\",\"TextAreaInputView\",\"connect_signals\",\"super\",\"value\",\"max_rows\",\"this\",\"model\",\"properties\",\"on_change\",\"update_rows\",\"auto_grow\",\"textarea\",\"input_el\",\"textLines\",\"split\",\"numRows\",\"Math\",\"max\",\"length\",\"rows\",\"min\",\"Infinity\",\"render\",\"el\",\"addEventListener\",\"__name__\",\"TextAreaInput\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Bool\",\"Int\",\"Nullable\"],\"sources\":[\"0\"],\"mappings\":\"AAA+B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC5E,IAAIC,EACJF,IACA,MAAMG,EAAmBN,EAAQ,0CACjC,MAAMO,UAA0BD,EAAiBC,kBAC7C,eAAAC,GACIC,MAAMD,kBACN,MAAME,MAAEA,EAAKC,SAAEA,GAAaC,KAAKC,MAAMC,WACvCF,KAAKG,UAAU,CAACJ,EAAUD,IAAQ,IAAME,KAAKI,eACjD,CACA,WAAAA,GACI,IAAKJ,KAAKC,MAAMI,UACZ,OAGJ,MAAMC,EAAWN,KAAKO,SAChBC,EAAYF,EAASR,MAAMW,MAAM,MACjCC,EAAUC,KAAKC,IAAIJ,EAAUK,OAAQb,KAAKC,MAAMa,KAAM,GAC5DR,EAASQ,KAAOH,KAAKI,IAAIL,EAASV,KAAKC,MAAMF,UAAYiB,IAC7D,CACA,MAAAC,GACIpB,MAAMoB,SACNjB,KAAKI,cACLJ,KAAKkB,GAAGC,iBAAiB,SAAS,KAC9BnB,KAAKI,aAAa,GAE1B,EAEJd,EAAQK,kBAAoBA,EAC5BA,EAAkByB,SAAW,oBAC7B,MAAMC,UAAsB3B,EAAiB2B,cACzC,WAAAC,CAAYC,GACR1B,MAAM0B,EACV,EAEJjC,EAAQ+B,cAAgBA,EACxB5B,EAAK4B,EACLA,EAAcD,SAAW,gBACzBC,EAAcG,WAAa,uBAEvB/B,EAAGgC,UAAUC,aAAe/B,EAC5BF,EAAGkC,QAAO,EAAGC,OAAMC,MAAKC,eAAe,CACnCzB,UAAW,CAACuB,GAAM,GAClB7B,SAAU,CAAC+B,EAASD,GAAM,SAGtC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/comm_manager.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/comm_manager.js","canonical":"models/comm_manager","resolution":"ESM","id":"1bec1b1fcc","hash":"1bec1b1fccdb47a26e29c4f0d6f649d28f00b86547898d1eb47dfea018e2bf7e","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CommManager = exports.CommManagerView = exports.comm_settings = void 0;\nconst document_1 = require(\"@bokehjs/document\");\nconst view_1 = require(\"@bokehjs/core/view\");\nconst model_1 = require(\"@bokehjs/model\");\nconst message_1 = require(\"@bokehjs/protocol/message\");\nconst receiver_1 = require(\"@bokehjs/protocol/receiver\");\nconst buffer_1 = require(\"@bokehjs/core/serialization/buffer\");\nconst types_1 = require(\"@bokehjs/core/util/types\");\nconst object_1 = require(\"@bokehjs/core/util/object\");\nexports.comm_settings = {\n    debounce: true,\n};\nclass CommManagerView extends view_1.View {\n}\nexports.CommManagerView = CommManagerView;\nCommManagerView.__name__ = \"CommManagerView\";\nclass CommManager extends model_1.Model {\n    constructor(attrs) {\n        super(attrs);\n        this._document_listener = (event) => this._document_changed(event);\n    }\n    initialize() {\n        super.initialize();\n        this._receiver = new receiver_1.Receiver();\n        this._event_buffer = [];\n        this._blocked = false;\n        this._reconnect = false;\n        this._timeout = Date.now();\n        if ((window.PyViz == undefined) || (!window.PyViz.comm_manager)) {\n            console.warn(\"Could not find comm manager on window.PyViz, ensure the extension is loaded.\");\n        }\n        else {\n            this.ns = window.PyViz;\n            this.ns.comm_manager.register_target(this.plot_id, this.comm_id, (msg) => {\n                for (const view of this.ns.shared_views.get(this.plot_id)) {\n                    if (view !== this) {\n                        view.msg_handler(msg);\n                    }\n                }\n                try {\n                    this.msg_handler(msg);\n                }\n                catch (e) {\n                    console.error(e);\n                }\n            });\n            this._client_comm = this.ns.comm_manager.get_client_comm(this.plot_id, this.client_comm_id, (msg) => this.on_ack(msg));\n            this._reconnect = !this._client_comm?.active || false;\n            if (this.ns.shared_views == null) {\n                this.ns.shared_views = new Map();\n            }\n            if (this.ns.shared_views.has(this.plot_id)) {\n                this.ns.shared_views.get(this.plot_id).push(this);\n            }\n            else {\n                this.ns.shared_views.set(this.plot_id, [this]);\n            }\n        }\n    }\n    _doc_attached() {\n        super._doc_attached();\n        if (this.document != null) {\n            this.document.on_change(this._document_listener);\n        }\n    }\n    _document_changed(event) {\n        // Filter out changes to attributes that aren't server-visible\n        if (event instanceof document_1.ModelChangedEvent && !event.model.properties[event.attr].syncable) {\n            return;\n        }\n        this._event_buffer.push(event);\n        if (this._reconnect && this._client_comm?.connected) {\n            this.on_ack({ metadata: { msg_type: \"Ready\" } });\n        }\n        else if (!exports.comm_settings.debounce) {\n            this.process_events();\n        }\n        else if ((!this._blocked || (Date.now() > this._timeout))) {\n            setTimeout(() => this.process_events(), this.debounce);\n            this._blocked = true;\n            this._timeout = Date.now() + this.timeout;\n        }\n    }\n    _extract_buffers(value, buffers) {\n        if ((0, types_1.isArray)(value)) {\n            for (const val of value) {\n                this._extract_buffers(val, buffers);\n            }\n        }\n        else if (value instanceof Map) {\n            for (const key of value.keys()) {\n                const v = value.get(key);\n                this._extract_buffers(v, buffers);\n            }\n        }\n        else if (value instanceof buffer_1.Buffer) {\n            const { buffer } = value;\n            const id = buffers.length;\n            buffers.push(buffer);\n            return { id };\n        }\n        else if ((0, types_1.isPlainObject)(value)) {\n            for (const key of (0, object_1.keys)(value)) {\n                const replaced = this._extract_buffers(value[key], buffers);\n                if (replaced != null) {\n                    value[key] = replaced;\n                }\n            }\n        }\n    }\n    process_events() {\n        if ((this.document == null) || (this._client_comm == null)) {\n            return;\n        }\n        const patch = this.document.create_json_patch(this._event_buffer);\n        this._event_buffer = [];\n        const message = { ...message_1.Message.create(\"PATCH-DOC\", {}, patch) };\n        const buffers = [];\n        this._extract_buffers(message.content, buffers);\n        this._client_comm.send(message, {}, buffers);\n        for (const view of this.ns.shared_views.get(this.plot_id)) {\n            if (view !== this && view.document != null) {\n                view.document.apply_json_patch(patch, [], this.id);\n            }\n        }\n    }\n    disconnect_signals() {\n        super.disconnect_signals();\n        this.ns.shared_views.shared_views.delete(this.plot_id);\n    }\n    on_ack(msg) {\n        // Receives acknowledgement from Python, processing event\n        // and unblocking Comm if event queue empty\n        const metadata = msg.metadata;\n        if (this._event_buffer.length > 0) {\n            this._blocked = true;\n            this._timeout = Date.now() + this.timeout;\n            this.process_events();\n        }\n        else {\n            this._blocked = false;\n        }\n        if ((metadata.msg_type == \"Ready\") && metadata.content) {\n            // eslint-disable-next-line no-console\n            console.log(\"Python callback returned following output:\", metadata.content);\n        }\n        else if (metadata.msg_type == \"Error\") {\n            console.warn(\"Python failed with the following traceback:\", metadata.traceback);\n        }\n    }\n    msg_handler(msg) {\n        const metadata = msg.metadata;\n        const buffers = msg.buffers;\n        const content = msg.content.data;\n        const plot_id = this.plot_id;\n        if ((metadata.msg_type == \"Ready\")) {\n            if (metadata.content) {\n                // eslint-disable-next-line no-console\n                console.log(\"Python callback returned following output:\", metadata.content);\n            }\n            else if (metadata.msg_type == \"Error\") {\n                console.warn(\"Python failed with the following traceback:\", metadata.traceback);\n            }\n        }\n        else if (plot_id != null) {\n            let plot = null;\n            if ((plot_id in this.ns.plot_index) && (this.ns.plot_index[plot_id] != null)) {\n                plot = this.ns.plot_index[plot_id];\n            }\n            else if ((window.Bokeh !== undefined) && (plot_id in window.Bokeh.index)) {\n                plot = window.Bokeh.index[plot_id];\n            }\n            if (plot == null) {\n                return;\n            }\n            if (content.length) {\n                this._receiver.consume(content);\n            }\n            else if ((buffers != undefined) && (buffers.length > 0)) {\n                this._receiver.consume(buffers[0].buffer);\n            }\n            else {\n                return;\n            }\n            const comm_msg = this._receiver.message;\n            if ((comm_msg != null) && (Object.keys(comm_msg.content).length > 0) && this.document != null) {\n                const patch = comm_msg.content;\n                this.document.apply_json_patch(patch, comm_msg.buffers);\n            }\n        }\n    }\n}\nexports.CommManager = CommManager;\n_a = CommManager;\nCommManager.__name__ = \"CommManager\";\nCommManager.__module__ = \"panel.models.comm_manager\";\n(() => {\n    _a.prototype.default_view = CommManagerView;\n    _a.define(({ Int, Str, Nullable }) => ({\n        plot_id: [Nullable(Str), null],\n        comm_id: [Nullable(Str), null],\n        client_comm_id: [Nullable(Str), null],\n        timeout: [Int, 5000],\n        debounce: [Int, 50],\n    }));\n})();\n//# sourceMappingURL=comm_manager.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"CommManagerView"},{"type":"named","name":"CommManager"}],"externals":[],"shims":[]},"code":{"source":"/* models/comm_manager.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const document_1 = require(\"@bokehjs/document\");\n    const view_1 = require(\"@bokehjs/core/view\");\n    const model_1 = require(\"@bokehjs/model\");\n    const message_1 = require(\"@bokehjs/protocol/message\");\n    const receiver_1 = require(\"@bokehjs/protocol/receiver\");\n    const buffer_1 = require(\"@bokehjs/core/serialization/buffer\");\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    const object_1 = require(\"@bokehjs/core/util/object\");\n    exports.comm_settings = {\n        debounce: true,\n    };\n    class CommManagerView extends view_1.View {\n    }\n    exports.CommManagerView = CommManagerView;\n    CommManagerView.__name__ = \"CommManagerView\";\n    class CommManager extends model_1.Model {\n        constructor(attrs) {\n            super(attrs);\n            this._document_listener = (event) => this._document_changed(event);\n        }\n        initialize() {\n            super.initialize();\n            this._receiver = new receiver_1.Receiver();\n            this._event_buffer = [];\n            this._blocked = false;\n            this._reconnect = false;\n            this._timeout = Date.now();\n            if ((window.PyViz == undefined) || (!window.PyViz.comm_manager)) {\n                console.warn(\"Could not find comm manager on window.PyViz, ensure the extension is loaded.\");\n            }\n            else {\n                this.ns = window.PyViz;\n                this.ns.comm_manager.register_target(this.plot_id, this.comm_id, (msg) => {\n                    for (const view of this.ns.shared_views.get(this.plot_id)) {\n                        if (view !== this) {\n                            view.msg_handler(msg);\n                        }\n                    }\n                    try {\n                        this.msg_handler(msg);\n                    }\n                    catch (e) {\n                        console.error(e);\n                    }\n                });\n                this._client_comm = this.ns.comm_manager.get_client_comm(this.plot_id, this.client_comm_id, (msg) => this.on_ack(msg));\n                this._reconnect = !this._client_comm?.active || false;\n                if (this.ns.shared_views == null) {\n                    this.ns.shared_views = new Map();\n                }\n                if (this.ns.shared_views.has(this.plot_id)) {\n                    this.ns.shared_views.get(this.plot_id).push(this);\n                }\n                else {\n                    this.ns.shared_views.set(this.plot_id, [this]);\n                }\n            }\n        }\n        _doc_attached() {\n            super._doc_attached();\n            if (this.document != null) {\n                this.document.on_change(this._document_listener);\n            }\n        }\n        _document_changed(event) {\n            // Filter out changes to attributes that aren't server-visible\n            if (event instanceof document_1.ModelChangedEvent && !event.model.properties[event.attr].syncable) {\n                return;\n            }\n            this._event_buffer.push(event);\n            if (this._reconnect && this._client_comm?.connected) {\n                this.on_ack({ metadata: { msg_type: \"Ready\" } });\n            }\n            else if (!exports.comm_settings.debounce) {\n                this.process_events();\n            }\n            else if ((!this._blocked || (Date.now() > this._timeout))) {\n                setTimeout(() => this.process_events(), this.debounce);\n                this._blocked = true;\n                this._timeout = Date.now() + this.timeout;\n            }\n        }\n        _extract_buffers(value, buffers) {\n            if ((0, types_1.isArray)(value)) {\n                for (const val of value) {\n                    this._extract_buffers(val, buffers);\n                }\n            }\n            else if (value instanceof Map) {\n                for (const key of value.keys()) {\n                    const v = value.get(key);\n                    this._extract_buffers(v, buffers);\n                }\n            }\n            else if (value instanceof buffer_1.Buffer) {\n                const { buffer } = value;\n                const id = buffers.length;\n                buffers.push(buffer);\n                return { id };\n            }\n            else if ((0, types_1.isPlainObject)(value)) {\n                for (const key of (0, object_1.keys)(value)) {\n                    const replaced = this._extract_buffers(value[key], buffers);\n                    if (replaced != null) {\n                        value[key] = replaced;\n                    }\n                }\n            }\n        }\n        process_events() {\n            if ((this.document == null) || (this._client_comm == null)) {\n                return;\n            }\n            const patch = this.document.create_json_patch(this._event_buffer);\n            this._event_buffer = [];\n            const message = { ...message_1.Message.create(\"PATCH-DOC\", {}, patch) };\n            const buffers = [];\n            this._extract_buffers(message.content, buffers);\n            this._client_comm.send(message, {}, buffers);\n            for (const view of this.ns.shared_views.get(this.plot_id)) {\n                if (view !== this && view.document != null) {\n                    view.document.apply_json_patch(patch, [], this.id);\n                }\n            }\n        }\n        disconnect_signals() {\n            super.disconnect_signals();\n            this.ns.shared_views.shared_views.delete(this.plot_id);\n        }\n        on_ack(msg) {\n            // Receives acknowledgement from Python, processing event\n            // and unblocking Comm if event queue empty\n            const metadata = msg.metadata;\n            if (this._event_buffer.length > 0) {\n                this._blocked = true;\n                this._timeout = Date.now() + this.timeout;\n                this.process_events();\n            }\n            else {\n                this._blocked = false;\n            }\n            if ((metadata.msg_type == \"Ready\") && metadata.content) {\n                // eslint-disable-next-line no-console\n                console.log(\"Python callback returned following output:\", metadata.content);\n            }\n            else if (metadata.msg_type == \"Error\") {\n                console.warn(\"Python failed with the following traceback:\", metadata.traceback);\n            }\n        }\n        msg_handler(msg) {\n            const metadata = msg.metadata;\n            const buffers = msg.buffers;\n            const content = msg.content.data;\n            const plot_id = this.plot_id;\n            if ((metadata.msg_type == \"Ready\")) {\n                if (metadata.content) {\n                    // eslint-disable-next-line no-console\n                    console.log(\"Python callback returned following output:\", metadata.content);\n                }\n                else if (metadata.msg_type == \"Error\") {\n                    console.warn(\"Python failed with the following traceback:\", metadata.traceback);\n                }\n            }\n            else if (plot_id != null) {\n                let plot = null;\n                if ((plot_id in this.ns.plot_index) && (this.ns.plot_index[plot_id] != null)) {\n                    plot = this.ns.plot_index[plot_id];\n                }\n                else if ((window.Bokeh !== undefined) && (plot_id in window.Bokeh.index)) {\n                    plot = window.Bokeh.index[plot_id];\n                }\n                if (plot == null) {\n                    return;\n                }\n                if (content.length) {\n                    this._receiver.consume(content);\n                }\n                else if ((buffers != undefined) && (buffers.length > 0)) {\n                    this._receiver.consume(buffers[0].buffer);\n                }\n                else {\n                    return;\n                }\n                const comm_msg = this._receiver.message;\n                if ((comm_msg != null) && (Object.keys(comm_msg.content).length > 0) && this.document != null) {\n                    const patch = comm_msg.content;\n                    this.document.apply_json_patch(patch, comm_msg.buffers);\n                }\n            }\n        }\n    }\n    exports.CommManager = CommManager;\n    _a = CommManager;\n    CommManager.__name__ = \"CommManager\";\n    CommManager.__module__ = \"panel.models.comm_manager\";\n    (() => {\n        _a.prototype.default_view = CommManagerView;\n        _a.define(({ Int, Str, Nullable }) => ({\n            plot_id: [Nullable(Str), null],\n            comm_id: [Nullable(Str), null],\n            client_comm_id: [Nullable(Str), null],\n            timeout: [Int, 5000],\n            debounce: [Int, 50],\n        }));\n    })();\n}\n","min_source":"function _(e,t,s,n,o){var i;n();const c=e(\"@bokehjs/document\"),_=e(\"@bokehjs/core/view\"),h=e(\"@bokehjs/model\"),l=e(\"@bokehjs/protocol/message\"),r=e(\"@bokehjs/protocol/receiver\"),a=e(\"@bokehjs/core/serialization/buffer\"),d=e(\"@bokehjs/core/util/types\"),m=e(\"@bokehjs/core/util/object\");s.comm_settings={debounce:!0};class u extends _.View{}s.CommManagerView=u,u.__name__=\"CommManagerView\";class f extends h.Model{constructor(e){super(e),this._document_listener=e=>this._document_changed(e)}initialize(){super.initialize(),this._receiver=new r.Receiver,this._event_buffer=[],this._blocked=!1,this._reconnect=!1,this._timeout=Date.now(),null!=window.PyViz&&window.PyViz.comm_manager?(this.ns=window.PyViz,this.ns.comm_manager.register_target(this.plot_id,this.comm_id,(e=>{for(const t of this.ns.shared_views.get(this.plot_id))t!==this&&t.msg_handler(e);try{this.msg_handler(e)}catch(e){console.error(e)}})),this._client_comm=this.ns.comm_manager.get_client_comm(this.plot_id,this.client_comm_id,(e=>this.on_ack(e))),this._reconnect=!this._client_comm?.active||!1,null==this.ns.shared_views&&(this.ns.shared_views=new Map),this.ns.shared_views.has(this.plot_id)?this.ns.shared_views.get(this.plot_id).push(this):this.ns.shared_views.set(this.plot_id,[this])):console.warn(\"Could not find comm manager on window.PyViz, ensure the extension is loaded.\")}_doc_attached(){super._doc_attached(),null!=this.document&&this.document.on_change(this._document_listener)}_document_changed(e){e instanceof c.ModelChangedEvent&&!e.model.properties[e.attr].syncable||(this._event_buffer.push(e),this._reconnect&&this._client_comm?.connected?this.on_ack({metadata:{msg_type:\"Ready\"}}):s.comm_settings.debounce?(!this._blocked||Date.now()>this._timeout)&&(setTimeout((()=>this.process_events()),this.debounce),this._blocked=!0,this._timeout=Date.now()+this.timeout):this.process_events())}_extract_buffers(e,t){if((0,d.isArray)(e))for(const s of e)this._extract_buffers(s,t);else if(e instanceof Map)for(const s of e.keys()){const n=e.get(s);this._extract_buffers(n,t)}else{if(e instanceof a.Buffer){const{buffer:s}=e,n=t.length;return t.push(s),{id:n}}if((0,d.isPlainObject)(e))for(const s of(0,m.keys)(e)){const n=this._extract_buffers(e[s],t);null!=n&&(e[s]=n)}}}process_events(){if(null==this.document||null==this._client_comm)return;const e=this.document.create_json_patch(this._event_buffer);this._event_buffer=[];const t={...l.Message.create(\"PATCH-DOC\",{},e)},s=[];this._extract_buffers(t.content,s),this._client_comm.send(t,{},s);for(const t of this.ns.shared_views.get(this.plot_id))t!==this&&null!=t.document&&t.document.apply_json_patch(e,[],this.id)}disconnect_signals(){super.disconnect_signals(),this.ns.shared_views.shared_views.delete(this.plot_id)}on_ack(e){const t=e.metadata;this._event_buffer.length>0?(this._blocked=!0,this._timeout=Date.now()+this.timeout,this.process_events()):this._blocked=!1,\"Ready\"==t.msg_type&&t.content?console.log(\"Python callback returned following output:\",t.content):\"Error\"==t.msg_type&&console.warn(\"Python failed with the following traceback:\",t.traceback)}msg_handler(e){const t=e.metadata,s=e.buffers,n=e.content.data,o=this.plot_id;if(\"Ready\"==t.msg_type)t.content?console.log(\"Python callback returned following output:\",t.content):\"Error\"==t.msg_type&&console.warn(\"Python failed with the following traceback:\",t.traceback);else if(null!=o){let e=null;if(o in this.ns.plot_index&&null!=this.ns.plot_index[o]?e=this.ns.plot_index[o]:void 0!==window.Bokeh&&o in window.Bokeh.index&&(e=window.Bokeh.index[o]),null==e)return;if(n.length)this._receiver.consume(n);else{if(!(null!=s&&s.length>0))return;this._receiver.consume(s[0].buffer)}const t=this._receiver.message;if(null!=t&&Object.keys(t.content).length>0&&null!=this.document){const e=t.content;this.document.apply_json_patch(e,t.buffers)}}}}s.CommManager=f,i=f,f.__name__=\"CommManager\",f.__module__=\"panel.models.comm_manager\",i.prototype.default_view=u,i.define((({Int:e,Str:t,Nullable:s})=>({plot_id:[s(t),null],comm_id:[s(t),null],client_comm_id:[s(t),null],timeout:[e,5e3],debounce:[e,50]})))}\n//# sourceMappingURL=comm_manager.min.js.map","min_map":"{\"version\":3,\"file\":\"comm_manager.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"document_1\",\"view_1\",\"model_1\",\"message_1\",\"receiver_1\",\"buffer_1\",\"types_1\",\"object_1\",\"comm_settings\",\"debounce\",\"CommManagerView\",\"View\",\"__name__\",\"CommManager\",\"Model\",\"constructor\",\"attrs\",\"super\",\"this\",\"_document_listener\",\"event\",\"_document_changed\",\"initialize\",\"_receiver\",\"Receiver\",\"_event_buffer\",\"_blocked\",\"_reconnect\",\"_timeout\",\"Date\",\"now\",\"undefined\",\"window\",\"PyViz\",\"comm_manager\",\"ns\",\"register_target\",\"plot_id\",\"comm_id\",\"msg\",\"view\",\"shared_views\",\"get\",\"msg_handler\",\"e\",\"console\",\"error\",\"_client_comm\",\"get_client_comm\",\"client_comm_id\",\"on_ack\",\"active\",\"Map\",\"has\",\"push\",\"set\",\"warn\",\"_doc_attached\",\"document\",\"on_change\",\"ModelChangedEvent\",\"model\",\"properties\",\"attr\",\"syncable\",\"connected\",\"metadata\",\"msg_type\",\"setTimeout\",\"process_events\",\"timeout\",\"_extract_buffers\",\"value\",\"buffers\",\"isArray\",\"val\",\"key\",\"keys\",\"v\",\"Buffer\",\"buffer\",\"id\",\"length\",\"isPlainObject\",\"replaced\",\"patch\",\"create_json_patch\",\"message\",\"Message\",\"create\",\"content\",\"send\",\"apply_json_patch\",\"disconnect_signals\",\"delete\",\"log\",\"traceback\",\"data\",\"plot\",\"plot_index\",\"Bokeh\",\"index\",\"consume\",\"comm_msg\",\"Object\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Int\",\"Str\",\"Nullable\"],\"sources\":[\"0\"],\"mappings\":\"AAA6B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC1E,IAAIC,EACJF,IACA,MAAMG,EAAaN,EAAQ,qBACrBO,EAASP,EAAQ,sBACjBQ,EAAUR,EAAQ,kBAClBS,EAAYT,EAAQ,6BACpBU,EAAaV,EAAQ,8BACrBW,EAAWX,EAAQ,sCACnBY,EAAUZ,EAAQ,4BAClBa,EAAWb,EAAQ,6BACzBE,EAAQY,cAAgB,CACpBC,UAAU,GAEd,MAAMC,UAAwBT,EAAOU,MAErCf,EAAQc,gBAAkBA,EAC1BA,EAAgBE,SAAW,kBAC3B,MAAMC,UAAoBX,EAAQY,MAC9B,WAAAC,CAAYC,GACRC,MAAMD,GACNE,KAAKC,mBAAsBC,GAAUF,KAAKG,kBAAkBD,EAChE,CACA,UAAAE,GACIL,MAAMK,aACNJ,KAAKK,UAAY,IAAInB,EAAWoB,SAChCN,KAAKO,cAAgB,GACrBP,KAAKQ,UAAW,EAChBR,KAAKS,YAAa,EAClBT,KAAKU,SAAWC,KAAKC,MACAC,MAAhBC,OAAOC,OAAyBD,OAAOC,MAAMC,cAI9ChB,KAAKiB,G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,QACnD,CACJ,CACJ,EAEJ7E,EAAQiB,YAAcA,EACtBd,EAAKc,EACLA,EAAYD,SAAW,cACvBC,EAAY4F,WAAa,4BAErB1G,EAAG2G,UAAUC,aAAejG,EAC5BX,EAAG6G,QAAO,EAAGC,MAAKC,MAAKC,eAAe,CAClC1E,QAAS,CAAC0E,EAASD,GAAM,MACzBxE,QAAS,CAACyE,EAASD,GAAM,MACzB7D,eAAgB,CAAC8D,EAASD,GAAM,MAChCxC,QAAS,CAACuC,EAAK,KACfpG,SAAU,CAACoG,EAAK,OAG5B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/customselect.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/customselect.js","canonical":"models/customselect","resolution":"ESM","id":"92bbd30bd1","hash":"92bbd30bd16d6e99c26087661c7a656ce3ddafaed36f579cd8aa0dd87cea7e40","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CustomSelect = exports.CustomSelectView = void 0;\nconst select_1 = require(\"@bokehjs/models/widgets/select\");\nclass CustomSelectView extends select_1.SelectView {\n    connect_signals() {\n        super.connect_signals();\n        const { disabled_options } = this.model.properties;\n        this.on_change(disabled_options, () => this._update_disabled_options());\n    }\n    options_el() {\n        const opts = super.options_el();\n        const { disabled_options } = this.model;\n        opts.forEach((element) => {\n            // XXX: what about HTMLOptGroupElement?\n            if (element instanceof HTMLOptionElement && disabled_options.includes(element.value)) {\n                element.setAttribute(\"disabled\", \"true\");\n            }\n        });\n        return opts;\n    }\n    _update_disabled_options() {\n        for (const element of this.input_el.options) {\n            if (this.model.disabled_options.includes(element.value)) {\n                element.setAttribute(\"disabled\", \"true\");\n            }\n            else {\n                element.removeAttribute(\"disabled\");\n            }\n        }\n    }\n}\nexports.CustomSelectView = CustomSelectView;\nCustomSelectView.__name__ = \"CustomSelectView\";\nclass CustomSelect extends select_1.Select {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.CustomSelect = CustomSelect;\n_a = CustomSelect;\nCustomSelect.__name__ = \"CustomSelect\";\nCustomSelect.__module__ = \"panel.models.widgets\";\n(() => {\n    _a.prototype.default_view = CustomSelectView;\n    _a.define(({ List, Str }) => {\n        return {\n            disabled_options: [List(Str), []],\n        };\n    });\n})();\n//# sourceMappingURL=customselect.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"CustomSelectView"},{"type":"named","name":"CustomSelect"}],"externals":[],"shims":[]},"code":{"source":"/* models/customselect.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const select_1 = require(\"@bokehjs/models/widgets/select\");\n    class CustomSelectView extends select_1.SelectView {\n        connect_signals() {\n            super.connect_signals();\n            const { disabled_options } = this.model.properties;\n            this.on_change(disabled_options, () => this._update_disabled_options());\n        }\n        options_el() {\n            const opts = super.options_el();\n            const { disabled_options } = this.model;\n            opts.forEach((element) => {\n                // XXX: what about HTMLOptGroupElement?\n                if (element instanceof HTMLOptionElement && disabled_options.includes(element.value)) {\n                    element.setAttribute(\"disabled\", \"true\");\n                }\n            });\n            return opts;\n        }\n        _update_disabled_options() {\n            for (const element of this.input_el.options) {\n                if (this.model.disabled_options.includes(element.value)) {\n                    element.setAttribute(\"disabled\", \"true\");\n                }\n                else {\n                    element.removeAttribute(\"disabled\");\n                }\n            }\n        }\n    }\n    exports.CustomSelectView = CustomSelectView;\n    CustomSelectView.__name__ = \"CustomSelectView\";\n    class CustomSelect extends select_1.Select {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.CustomSelect = CustomSelect;\n    _a = CustomSelect;\n    CustomSelect.__name__ = \"CustomSelect\";\n    CustomSelect.__module__ = \"panel.models.widgets\";\n    (() => {\n        _a.prototype.default_view = CustomSelectView;\n        _a.define(({ List, Str }) => {\n            return {\n                disabled_options: [List(Str), []],\n            };\n        });\n    })();\n}\n","min_source":"function _(e,t,s,o,i){var n;o();const l=e(\"@bokehjs/models/widgets/select\");class d extends l.SelectView{connect_signals(){super.connect_signals();const{disabled_options:e}=this.model.properties;this.on_change(e,(()=>this._update_disabled_options()))}options_el(){const e=super.options_el(),{disabled_options:t}=this.model;return e.forEach((e=>{e instanceof HTMLOptionElement&&t.includes(e.value)&&e.setAttribute(\"disabled\",\"true\")})),e}_update_disabled_options(){for(const e of this.input_el.options)this.model.disabled_options.includes(e.value)?e.setAttribute(\"disabled\",\"true\"):e.removeAttribute(\"disabled\")}}s.CustomSelectView=d,d.__name__=\"CustomSelectView\";class _ extends l.Select{constructor(e){super(e)}}s.CustomSelect=_,n=_,_.__name__=\"CustomSelect\",_.__module__=\"panel.models.widgets\",n.prototype.default_view=d,n.define((({List:e,Str:t})=>({disabled_options:[e(t),[]]})))}\n//# sourceMappingURL=customselect.min.js.map","min_map":"{\"version\":3,\"file\":\"customselect.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"select_1\",\"CustomSelectView\",\"SelectView\",\"connect_signals\",\"super\",\"disabled_options\",\"this\",\"model\",\"properties\",\"on_change\",\"_update_disabled_options\",\"options_el\",\"opts\",\"forEach\",\"element\",\"HTMLOptionElement\",\"includes\",\"value\",\"setAttribute\",\"input_el\",\"options\",\"removeAttribute\",\"__name__\",\"CustomSelect\",\"Select\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"List\",\"Str\"],\"sources\":[\"0\"],\"mappings\":\"AAA6B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC1E,IAAIC,EACJF,IACA,MAAMG,EAAWN,EAAQ,kCACzB,MAAMO,UAAyBD,EAASE,WACpC,eAAAC,GACIC,MAAMD,kBACN,MAAME,iBAAEA,GAAqBC,KAAKC,MAAMC,WACxCF,KAAKG,UAAUJ,GAAkB,IAAMC,KAAKI,4BAChD,CACA,UAAAC,GACI,MAAMC,EAAOR,MAAMO,cACbN,iBAAEA,GAAqBC,KAAKC,MAOlC,OANAK,EAAKC,SAASC,IAENA,aAAmBC,mBAAqBV,EAAiBW,SAASF,EAAQG,QAC1EH,EAAQI,aAAa,WAAY,OACrC,IAEGN,CACX,CACA,wBAAAF,GACI,IAAK,MAAMI,KAAWR,KAAKa,SAASC,QAC5Bd,KAAKC,MAAMF,iBAAiBW,SAASF,EAAQG,OAC7CH,EAAQI,aAAa,WAAY,QAGjCJ,EAAQO,gBAAgB,WAGpC,EAEJzB,EAAQK,iBAAmBA,EAC3BA,EAAiBqB,SAAW,mBAC5B,MAAMC,UAAqBvB,EAASwB,OAChC,WAAAC,CAAYC,GACRtB,MAAMsB,EACV,EAEJ9B,EAAQ2B,aAAeA,EACvBxB,EAAKwB,EACLA,EAAaD,SAAW,eACxBC,EAAaI,WAAa,uBAEtB5B,EAAG6B,UAAUC,aAAe5B,EAC5BF,EAAG+B,QAAO,EAAGC,OAAMC,UACR,CACH3B,iBAAkB,CAAC0B,EAAKC,GAAM,OAI9C\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/multiselect.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/multiselect.js","canonical":"models/multiselect","resolution":"ESM","id":"27b5580835","hash":"27b5580835653e2de4255657d1dc66ef1d4cbae4b2683feb46b40822d72d3634","source":"\"use strict\";\nvar _a, _b;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CustomMultiSelect = exports.CustomMultiSelectView = exports.DoubleClickEvent = void 0;\nconst multiselect_1 = require(\"@bokehjs/models/widgets/multiselect\");\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nclass DoubleClickEvent extends bokeh_events_1.ModelEvent {\n    constructor(option) {\n        super();\n        this.option = option;\n    }\n    get event_values() {\n        return { model: this.origin, option: this.option };\n    }\n}\nexports.DoubleClickEvent = DoubleClickEvent;\n_a = DoubleClickEvent;\nDoubleClickEvent.__name__ = \"DoubleClickEvent\";\n(() => {\n    _a.prototype.event_name = \"dblclick_event\";\n})();\nclass CustomMultiSelectView extends multiselect_1.MultiSelectView {\n    render() {\n        super.render();\n        for (const option of this.input_el.children) {\n            option.addEventListener(\"dblclick\", (event) => {\n                if (event.target) {\n                    this.model.trigger_event(new DoubleClickEvent(event.target.value));\n                }\n            });\n        }\n    }\n}\nexports.CustomMultiSelectView = CustomMultiSelectView;\nCustomMultiSelectView.__name__ = \"CustomMultiSelectView\";\nclass CustomMultiSelect extends multiselect_1.MultiSelect {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.CustomMultiSelect = CustomMultiSelect;\n_b = CustomMultiSelect;\nCustomMultiSelect.__name__ = \"CustomMultiSelect\";\nCustomMultiSelect.__module__ = \"panel.models.widgets\";\n(() => {\n    _b.prototype.default_view = CustomMultiSelectView;\n})();\n//# sourceMappingURL=multiselect.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"DoubleClickEvent"},{"type":"named","name":"CustomMultiSelectView"},{"type":"named","name":"CustomMultiSelect"}],"externals":[],"shims":[]},"code":{"source":"/* models/multiselect.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a, _b;\n    __esModule();\n    const multiselect_1 = require(\"@bokehjs/models/widgets/multiselect\");\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    class DoubleClickEvent extends bokeh_events_1.ModelEvent {\n        constructor(option) {\n            super();\n            this.option = option;\n        }\n        get event_values() {\n            return { model: this.origin, option: this.option };\n        }\n    }\n    exports.DoubleClickEvent = DoubleClickEvent;\n    _a = DoubleClickEvent;\n    DoubleClickEvent.__name__ = \"DoubleClickEvent\";\n    (() => {\n        _a.prototype.event_name = \"dblclick_event\";\n    })();\n    class CustomMultiSelectView extends multiselect_1.MultiSelectView {\n        render() {\n            super.render();\n            for (const option of this.input_el.children) {\n                option.addEventListener(\"dblclick\", (event) => {\n                    if (event.target) {\n                        this.model.trigger_event(new DoubleClickEvent(event.target.value));\n                    }\n                });\n            }\n        }\n    }\n    exports.CustomMultiSelectView = CustomMultiSelectView;\n    CustomMultiSelectView.__name__ = \"CustomMultiSelectView\";\n    class CustomMultiSelect extends multiselect_1.MultiSelect {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.CustomMultiSelect = CustomMultiSelect;\n    _b = CustomMultiSelect;\n    CustomMultiSelect.__name__ = \"CustomMultiSelect\";\n    CustomMultiSelect.__module__ = \"panel.models.widgets\";\n    (() => {\n        _b.prototype.default_view = CustomMultiSelectView;\n    })();\n}\n","min_source":"function _(e,t,l,o,s){var n,i;o();const c=e(\"@bokehjs/models/widgets/multiselect\"),r=e(\"@bokehjs/core/bokeh_events\");class u extends r.ModelEvent{constructor(e){super(),this.option=e}get event_values(){return{model:this.origin,option:this.option}}}l.DoubleClickEvent=u,n=u,u.__name__=\"DoubleClickEvent\",n.prototype.event_name=\"dblclick_event\";class _ extends c.MultiSelectView{render(){super.render();for(const e of this.input_el.children)e.addEventListener(\"dblclick\",(e=>{e.target&&this.model.trigger_event(new u(e.target.value))}))}}l.CustomMultiSelectView=_,_.__name__=\"CustomMultiSelectView\";class d extends c.MultiSelect{constructor(e){super(e)}}l.CustomMultiSelect=d,i=d,d.__name__=\"CustomMultiSelect\",d.__module__=\"panel.models.widgets\",i.prototype.default_view=_}\n//# sourceMappingURL=multiselect.min.js.map","min_map":"{\"version\":3,\"file\":\"multiselect.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"_b\",\"multiselect_1\",\"bokeh_events_1\",\"DoubleClickEvent\",\"ModelEvent\",\"constructor\",\"option\",\"super\",\"this\",\"event_values\",\"model\",\"origin\",\"__name__\",\"prototype\",\"event_name\",\"CustomMultiSelectView\",\"MultiSelectView\",\"render\",\"input_el\",\"children\",\"addEventListener\",\"event\",\"target\",\"trigger_event\",\"value\",\"CustomMultiSelect\",\"MultiSelect\",\"attrs\",\"__module__\",\"default_view\"],\"sources\":[\"0\"],\"mappings\":\"AAA4B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzE,IAAIC,EAAIC,EACRH,IACA,MAAMI,EAAgBP,EAAQ,uCACxBQ,EAAiBR,EAAQ,8BAC/B,MAAMS,UAAyBD,EAAeE,WAC1C,WAAAC,CAAYC,GACRC,QACAC,KAAKF,OAASA,CAClB,CACA,gBAAIG,GACA,MAAO,CAAEC,MAAOF,KAAKG,OAAQL,OAAQE,KAAKF,OAC9C,EAEJV,EAAQO,iBAAmBA,EAC3BJ,EAAKI,EACLA,EAAiBS,SAAW,mBAExBb,EAAGc,UAAUC,WAAa,iBAE9B,MAAMC,UAA8Bd,EAAce,gBAC9C,MAAAC,GACIV,MAAMU,SACN,IAAK,MAAMX,KAAUE,KAAKU,SAASC,SAC/Bb,EAAOc,iBAAiB,YAAaC,IAC7BA,EAAMC,QACNd,KAAKE,MAAMa,cAAc,IAAIpB,EAAiBkB,EAAMC,OAAOE,OAC/D,GAGZ,EAEJ5B,EAAQmB,sBAAwBA,EAChCA,EAAsBH,SAAW,wBACjC,MAAMa,UAA0BxB,EAAcyB,YAC1C,WAAArB,CAAYsB,GACRpB,MAAMoB,EACV,EAEJ/B,EAAQ6B,kBAAoBA,EAC5BzB,EAAKyB,EACLA,EAAkBb,SAAW,oBAC7Ba,EAAkBG,WAAa,uBAE3B5B,EAAGa,UAAUgB,aAAed,CAEpC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/tabulator.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/tabulator.js","canonical":"models/tabulator","resolution":"ESM","id":"03df1ee2df","hash":"03df1ee2df1ff3e1a028afcb7e90d430ce262f7784de9c0b6febd1ae9cdabd29","source":"\"use strict\";\nvar _a, _b, _c, _d;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DataTabulator = exports.TableLayout = exports.DataTabulatorView = exports.SelectionEvent = exports.CellClickEvent = exports.TableEditEvent = void 0;\nconst tslib_1 = require(\"tslib\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst arrayable_1 = require(\"@bokehjs/core/util/arrayable\");\nconst types_1 = require(\"@bokehjs/core/util/types\");\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nconst dom_2 = require(\"@bokehjs/core/dom\");\nconst kinds_1 = require(\"@bokehjs/core/kinds\");\nconst column_data_source_1 = require(\"@bokehjs/models/sources/column_data_source\");\nconst tables_1 = require(\"@bokehjs/models/widgets/tables\");\nconst debounce_1 = require(\"debounce\");\nconst comm_manager_1 = require(\"./comm_manager\");\nconst data_1 = require(\"./data\");\nconst layout_1 = require(\"./layout\");\nconst util_1 = require(\"./util\");\nconst tabulator_css_1 = tslib_1.__importDefault(require(\"../styles/models/tabulator.css\"));\nclass TableEditEvent extends bokeh_events_1.ModelEvent {\n    constructor(column, row, pre) {\n        super();\n        this.column = column;\n        this.row = row;\n        this.pre = pre;\n    }\n    get event_values() {\n        return { model: this.origin, column: this.column, row: this.row, pre: this.pre };\n    }\n}\nexports.TableEditEvent = TableEditEvent;\n_a = TableEditEvent;\nTableEditEvent.__name__ = \"TableEditEvent\";\n(() => {\n    _a.prototype.event_name = \"table-edit\";\n})();\nclass CellClickEvent extends bokeh_events_1.ModelEvent {\n    constructor(column, row) {\n        super();\n        this.column = column;\n        this.row = row;\n    }\n    get event_values() {\n        return { model: this.origin, column: this.column, row: this.row };\n    }\n}\nexports.CellClickEvent = CellClickEvent;\n_b = CellClickEvent;\nCellClickEvent.__name__ = \"CellClickEvent\";\n(() => {\n    _b.prototype.event_name = \"cell-click\";\n})();\nclass SelectionEvent extends bokeh_events_1.ModelEvent {\n    constructor(indices, selected, flush = false) {\n        super();\n        this.indices = indices;\n        this.selected = selected;\n        this.flush = flush;\n    }\n    get event_values() {\n        return { model: this.origin, indices: this.indices, selected: this.selected, flush: this.flush };\n    }\n}\nexports.SelectionEvent = SelectionEvent;\n_c = SelectionEvent;\nSelectionEvent.__name__ = \"SelectionEvent\";\n(() => {\n    _c.prototype.event_name = \"selection-change\";\n})();\nfunction find_group(key, value, records) {\n    for (const record of records) {\n        if (record[key] == value) {\n            return record;\n        }\n    }\n    return null;\n}\nfunction summarize(grouped, columns, aggregators, depth = 0) {\n    const summary = {};\n    if (grouped.length == 0) {\n        return summary;\n    }\n    // depth level 0 is the root, finish here\n    let aggs = \"\";\n    if (depth > 0) {\n        aggs = aggregators[depth - 1];\n    }\n    for (const group of grouped) {\n        const subsummary = summarize(group._children, columns, aggregators, depth + 1);\n        for (const col in subsummary) {\n            if ((0, types_1.isArray)(subsummary[col])) {\n                group[col] = (0, arrayable_1.sum)(subsummary[col]) / subsummary[col].length;\n            }\n            else {\n                group[col] = subsummary[col];\n            }\n        }\n        for (const column of columns.slice(1)) {\n            // if no aggregation method provided for an index level,\n            // or a specific column of an index level, do not aggregate data\n            let agg = \"\";\n            if (typeof aggs === \"string\") {\n                agg = aggs;\n            }\n            else if (column.field in aggs) {\n                agg = aggs[column.field];\n            }\n            const val = group[column.field];\n            if (column.field in summary) {\n                const old_val = summary[column.field];\n                if (agg === \"min\") {\n                    summary[column.field] = (val < old_val) ? val : old_val;\n                }\n                else if (agg === \"max\") {\n                    summary[column.field] = (val > old_val) ? val : old_val;\n                }\n                else if (agg === \"sum\") {\n                    summary[column.field] = val + old_val;\n                }\n                else if (agg === \"mean\") {\n                    if ((0, types_1.isArray)(summary[column.field])) {\n                        summary[column.field].push(val);\n                    }\n                    else {\n                        summary[column.field] = [old_val, val];\n                    }\n                }\n            }\n            else {\n                summary[column.field] = val;\n            }\n        }\n    }\n    return summary;\n}\nfunction group_data(records, columns, indexes, aggregators) {\n    const grouped = [];\n    const index_field = columns[0].field;\n    for (const record of records) {\n        const value = record[indexes[0]];\n        let group = find_group(index_field, value, grouped);\n        if (group == null) {\n            group = { _children: [] };\n            group[index_field] = value;\n            grouped.push(group);\n        }\n        let subgroup = group;\n        for (const index of indexes.slice(1)) {\n            subgroup = find_group(index_field, record[index], subgroup._children);\n            if (subgroup == null) {\n                subgroup = { _children: [] };\n                subgroup[index_field] = record[index];\n                group._children.push(subgroup);\n            }\n            for (const column of columns.slice(1)) {\n                subgroup[column.field] = record[column];\n            }\n            group = subgroup;\n        }\n        for (const column of columns.slice(1)) {\n            subgroup[column.field] = record[column.field];\n        }\n    }\n    const aggs = [];\n    for (const index of indexes) {\n        if (index in aggregators) {\n            if (aggregators[index] instanceof Map) {\n                // when some column names are numeric, need to convert that from a Map to an Object\n                aggs.push(Object.fromEntries(aggregators[index]));\n            }\n            else {\n                aggs.push(aggregators[index]);\n            }\n        }\n        else {\n            aggs.push(\"sum\");\n        }\n    }\n    summarize(grouped, columns, aggs);\n    return grouped;\n}\nconst timestampSorter = function (a, b, _aRow, _bRow, _column, _dir, _params) {\n    // Bokeh/Panel serializes datetime objects as UNIX timestamps (in milliseconds).\n    //a, b - the two values being compared\n    //aRow, bRow - the row components for the values being compared (useful if you need to access additional fields in the row data for the sort)\n    //column - the column component for the column being sorted\n    //dir - the direction of the sort (\"asc\" or \"desc\")\n    //sorterParams - sorterParams object from column definition array\n    // Added an _ in front of some parameters as they're unused and the Typescript compiler was complaining about it.\n    // const alignEmptyValues = params.alignEmptyValues\n    let emptyAlign;\n    emptyAlign = 0;\n    const opts = { zone: new window.luxon.IANAZone(\"UTC\") };\n    if (Number.isNaN(a)) {\n        a = window.luxon.DateTime.fromISO(\"invalid\");\n    }\n    else {\n        a = window.luxon.DateTime.fromMillis(a, opts);\n    }\n    if (Number.isNaN(b)) {\n        b = window.luxon.DateTime.fromISO(\"invalid\");\n    }\n    else {\n        b = window.luxon.DateTime.fromMillis(b, opts);\n    }\n    if (!a.isValid) {\n        emptyAlign = !b.isValid ? 0 : -1;\n    }\n    else if (!b.isValid) {\n        emptyAlign = 1;\n    }\n    else {\n        //compare valid values\n        return a - b;\n    }\n    // Invalid (e.g. NaN) always at the bottom\n    emptyAlign *= -1;\n    return emptyAlign;\n};\nconst dateEditor = function (cell, onRendered, success, cancel) {\n    //cell - the cell component for the editable cell\n    //onRendered - function to call when the editor has been rendered\n    //success - function to call to pass the successfully updated value to Tabulator\n    //cancel - function to call to abort the edit and return to a normal cell\n    //create and style input\n    const rawValue = cell.getValue();\n    const opts = { zone: new window.luxon.IANAZone(\"UTC\") };\n    let cellValue;\n    if (rawValue === \"NaN\" || rawValue === null) {\n        cellValue = null;\n    }\n    else {\n        cellValue = window.luxon.DateTime.fromMillis(rawValue, opts).toFormat(\"yyyy-MM-dd\");\n    }\n    const input = document.createElement(\"input\");\n    input.setAttribute(\"type\", \"date\");\n    input.style.padding = \"4px\";\n    input.style.width = \"100%\";\n    input.style.boxSizing = \"border-box\";\n    input.value = cellValue;\n    onRendered(() => {\n        input.focus();\n        input.style.height = \"100%\";\n    });\n    function onChange() {\n        const new_val = window.luxon.DateTime.fromFormat(input.value, \"yyyy-MM-dd\", opts).toMillis();\n        if (new_val != cellValue) {\n            success(new_val);\n        }\n        else {\n            cancel();\n        }\n    }\n    //submit new value on blur or change\n    input.addEventListener(\"blur\", onChange);\n    //submit new value on enter\n    input.addEventListener(\"keydown\", (e) => {\n        if (e.key == \"Enter\") {\n            setTimeout(onChange, 100);\n        }\n        if (e.key == \"Escape\") {\n            setTimeout(cancel, 100);\n        }\n    });\n    return input;\n};\nconst datetimeEditor = function (cell, onRendered, success, cancel) {\n    //cell - the cell component for the editable cell\n    //onRendered - function to call when the editor has been rendered\n    //success - function to call to pass the successfully updated value to Tabulator\n    //cancel - function to call to abort the edit and return to a normal cell\n    //create and style input\n    const rawValue = cell.getValue();\n    const opts = { zone: new window.luxon.IANAZone(\"UTC\") };\n    let cellValue;\n    if (rawValue === \"NaN\" || rawValue === null) {\n        cellValue = null;\n    }\n    else {\n        cellValue = window.luxon.DateTime.fromMillis(rawValue, opts).toFormat(\"yyyy-MM-dd'T'T\");\n    }\n    const input = document.createElement(\"input\");\n    input.setAttribute(\"type\", \"datetime-local\");\n    input.style.padding = \"4px\";\n    input.style.width = \"100%\";\n    input.style.boxSizing = \"border-box\";\n    input.value = cellValue;\n    onRendered(() => {\n        input.focus();\n        input.style.height = \"100%\";\n    });\n    function onChange() {\n        const new_val = window.luxon.DateTime.fromFormat(input.value, \"yyyy-MM-dd'T'T\", opts).toMillis();\n        if (new_val != cellValue) {\n            success(new_val);\n        }\n        else {\n            cancel();\n        }\n    }\n    //submit new value on blur or change\n    input.addEventListener(\"blur\", onChange);\n    //submit new value on enter\n    input.addEventListener(\"keydown\", (e) => {\n        if (e.key == \"Enter\") {\n            setTimeout(onChange, 100);\n        }\n        if (e.key == \"Escape\") {\n            setTimeout(cancel, 100);\n        }\n    });\n    return input;\n};\nconst nestedEditor = function (cell, editorParams) {\n    //cell - the cell component for the editable cell\n    const row = cell.getRow().getData();\n    let values = editorParams.options;\n    for (const i of editorParams.lookup_order) {\n        values = row[i] in values ? values[row[i]] : [];\n        if (Array.isArray(values)) {\n            break;\n        }\n    }\n    return values ? values : [];\n};\nfunction find_column(group, field) {\n    if (group.columns != null) {\n        for (const col of group.columns) {\n            const found = find_column(col, field);\n            if (found) {\n                return found;\n            }\n        }\n    }\n    else {\n        return group.field === field ? group : null;\n    }\n}\nfunction clone_column(group) {\n    if (group.columns == null) {\n        return { ...group };\n    }\n    const group_columns = [];\n    for (const col of group.columns) {\n        group_columns.push(clone_column(col));\n    }\n    return { ...group, columns: group_columns };\n}\nclass DataTabulatorView extends layout_1.HTMLBoxView {\n    constructor() {\n        super(...arguments);\n        this.columns = new Map();\n        this.container = null;\n        this._tabulator_cell_updating = false;\n        this._updating_page = false;\n        this._updating_expanded = false;\n        this._updating_sort = false;\n        this._updating_page_size = false;\n        this._selection_updating = false;\n        this._last_selected_row = null;\n        this._lastVerticalScrollbarTopPosition = 0;\n        this._lastHorizontalScrollbarLeftPosition = 0;\n        this._applied_styles = false;\n        this._building = false;\n        this._redrawing = false;\n        this._debounced_redraw = null;\n        this._restore_scroll = false;\n        this._updating_scroll = false;\n        this._is_scrolling = false;\n        this._automatic_page_size = false;\n    }\n    connect_signals() {\n        super.connect_signals();\n        this._debounced_redraw = (0, debounce_1.debounce)(() => this._resize_redraw(), 20, false);\n        const { configuration, layout, columns, groupby, visible, download, children, expanded, cell_styles, hidden_columns, page_size, page, max_page, frozen_rows, sorters, theme_classes, } = this.model.properties;\n        this.on_change([configuration, layout, groupby], (0, debounce_1.debounce)(() => {\n            this.invalidate_render();\n        }, 20, false));\n        this.on_change(visible, () => {\n            if (this.model.visible) {\n                this.tabulator.element.style.visibility = \"visible\";\n            }\n        });\n        this.on_change(columns, () => {\n            this.tabulator.setColumns(this.getColumns());\n            this.setHidden();\n        });\n        this.on_change(download, () => {\n            const ftype = this.model.filename.endsWith(\".json\") ? \"json\" : \"csv\";\n            this.tabulator.download(ftype, this.model.filename);\n        });\n        this.on_change(children, () => this.renderChildren());\n        this.on_change(expanded, () => {\n            // The first cell is the cell of the frozen _index column.\n            for (const row of this.tabulator.rowManager.getRows()) {\n                if (row.cells.length > 0) {\n                    row.cells[0].layoutElement();\n                }\n            }\n            // Make sure the expand icon is changed when expanded is\n            // changed from Python.\n            for (const row of this.tabulator.rowManager.getRows()) {\n                if (row.cells.length > 0) {\n                    const index = row.data._index;\n                    const icon = this.model.expanded.includes(index) ? \"▼\" : \"►\";\n                    row.cells[1].element.innerText = icon;\n                }\n            }\n            // If content is embedded, views may not have been\n            // rendered so if expanded is updated server side\n            // we have to trigger a render\n            if (this.model.embed_content && !this._updating_expanded) {\n                this.renderChildren();\n            }\n        });\n        this.on_change(cell_styles, () => {\n            if (this._applied_styles) {\n                this.tabulator.redraw(true);\n            }\n            this.setStyles();\n        });\n        this.on_change(hidden_columns, () => {\n            this.setHidden();\n            this.tabulator.redraw(true);\n        });\n        this.on_change(page_size, () => this.setPageSize());\n        this.on_change(page, () => {\n            if (!this._updating_page) {\n                this.setPage();\n            }\n        });\n        this.on_change(visible, () => this.setVisibility());\n        this.on_change(max_page, () => this.setMaxPage());\n        this.on_change(frozen_rows, () => this.setFrozen());\n        this.on_change(sorters, () => this.setSorters());\n        this.on_change(theme_classes, () => this.setCSSClasses(this.tabulator.element));\n        this.on_change(this.model.source.properties.data, () => {\n            if (this.tabulator === undefined) {\n                return;\n            }\n            this._restore_scroll = \"horizontal\";\n            this._selection_updating = true;\n            this._updating_scroll = true;\n            this.setData();\n            this._updating_scroll = false;\n            this._selection_updating = false;\n            this.postUpdate();\n        });\n        this.connect(this.model.source.streaming, () => this.addData());\n        this.connect(this.model.source.patching, () => {\n            const inds = this.model.source.selected.indices;\n            this._updating_scroll = true;\n            this.updateOrAddData();\n            this._updating_scroll = false;\n            // Restore indices since updating data may have reset checkbox column\n            this.model.source.selected.indices = inds;\n            this.restore_scroll();\n        });\n        this.connect(this.model.source.selected.change, () => this.setSelection());\n        this.connect(this.model.source.selected.properties.indices.change, () => this.setSelection());\n    }\n    get groupBy() {\n        const groupby = (data) => {\n            const groups = [];\n            for (const g of this.model.groupby) {\n                const group = `${g}: ${data[g]}`;\n                groups.push(group);\n            }\n            return groups.join(\", \");\n        };\n        return (this.model.groupby.length > 0) ? groupby : false;\n    }\n    get sorters() {\n        const sorters = [];\n        if (this.model.sorters.length > 0) {\n            sorters.push({ column: \"_index\", dir: \"asc\" });\n        }\n        for (const sort of this.model.sorters.reverse()) {\n            if (sort.column === undefined) {\n                sort.column = sort.field;\n            }\n            sorters.push(sort);\n        }\n        return sorters;\n    }\n    invalidate_render() {\n        this.tabulator?.destroy();\n        this.tabulator = null;\n        this.rerender_();\n    }\n    redraw(columns = true, rows = true) {\n        if (this._building || this.tabulator == null || this._redrawing) {\n            return;\n        }\n        this._redrawing = true;\n        if (columns && (this.tabulator.columnManager.element != null)) {\n            this.tabulator.columnManager.redraw(true);\n        }\n        if (rows && (this.tabulator.rowManager.renderer != null)) {\n            this.tabulator.rowManager.redraw(true);\n            this.setStyles();\n        }\n        this._redrawing = false;\n        this._restore_scroll = true;\n    }\n    get is_drawing() {\n        return this._building || this._redrawing || !this.has_finished();\n    }\n    after_layout() {\n        super.after_layout();\n        if (this.tabulator != null && this._initializing && !this.is_drawing) {\n            this._initializing = false;\n            this._resize_redraw();\n        }\n    }\n    after_resize() {\n        super.after_resize();\n        if (!this._is_scrolling && !this._initializing && !this.is_drawing) {\n            this._debounced_redraw();\n        }\n    }\n    _resize_redraw() {\n        if (this._initializing || !this.container || this._building) {\n            return;\n        }\n        const width = this.container.clientWidth;\n        const height = this.container.clientHeight;\n        if (!width || !height) {\n            return;\n        }\n        this.redraw(true, true);\n        this.restore_scroll();\n        requestAnimationFrame(() => this.recompute_page_size());\n    }\n    stylesheets() {\n        return [...super.stylesheets(), tabulator_css_1.default];\n    }\n    setCSSClasses(el) {\n        el.className = \"pnx-tabulator tabulator\";\n        for (const cls of this.model.theme_classes) {\n            el.classList.add(cls);\n        }\n    }\n    remove() {\n        this.tabulator?.destroy();\n        super.remove();\n    }\n    render() {\n        this.tabulator?.destroy();\n        super.render();\n        this._initializing = true;\n        this._building = true;\n        const container = (0, dom_2.div)({ style: { display: \"contents\" } });\n        const el = (0, dom_2.div)({ style: { width: \"100%\", height: \"100%\", visibility: \"hidden\" } });\n        this.container = el;\n        this.setCSSClasses(el);\n        container.appendChild(el);\n        this.shadow_el.appendChild(container);\n        const configuration = this.getConfiguration();\n        this.tabulator = new Tabulator(el, configuration);\n        this.watch_stylesheets();\n        this.init_callbacks();\n    }\n    style_redraw() {\n        if (this.model.visible) {\n            this.tabulator.element.style.visibility = \"visible\";\n        }\n        if (!this._initializing && !this._building) {\n            this.redraw();\n        }\n    }\n    tableInit() {\n        this._building = true;\n        // Patch the ajax request and page data parsing methods\n        const ajax = this.tabulator.modules.ajax;\n        ajax.sendRequest = (_url, params, _config) => {\n            return this.requestPage(params.page, params.sort);\n        };\n        this.tabulator.modules.page._parseRemoteData = () => {\n            return false;\n        };\n    }\n    init_callbacks() {\n        // Initialization\n        this.tabulator.on(\"tableBuilding\", () => this.tableInit());\n        this.tabulator.on(\"tableBuilt\", () => this.tableBuilt());\n        // Rendering callbacks\n        this.tabulator.on(\"selectableRowsCheck\", (row) => {\n            const selectable = this.model.selectable_rows;\n            return (selectable == null) || selectable.includes(row._row.data._index);\n        });\n        this.tabulator.on(\"tooltips\", (cell) => {\n            return `${cell.getColumn().getField()}: ${cell.getValue()}`;\n        });\n        this.tabulator.on(\"scrollVertical\", (0, debounce_1.debounce)(() => {\n            this.setStyles();\n        }, 50, false));\n        // Sync state with model\n        this.tabulator.on(\"rowSelectionChanged\", (data, rows, selected, deselected) => {\n            this.rowSelectionChanged(data, rows, selected, deselected);\n        });\n        this.tabulator.on(\"rowClick\", (e, row) => this.rowClicked(e, row));\n        this.tabulator.on(\"cellEdited\", (cell) => this.cellEdited(cell));\n        this.tabulator.on(\"dataFiltering\", (filters) => {\n            this.record_scroll();\n            this.model.filters = filters;\n        });\n        this.tabulator.on(\"dataFiltered\", (_, rows) => {\n            if (this._building) {\n                return;\n            }\n            // Ensure that after filtering empty scroll renders\n            if (rows.length === 0) {\n                this.tabulator.rowManager.renderEmptyScroll();\n            }\n            if (this.model.pagination != null) {\n                // Ensure that after filtering the page is updated\n                this.updatePage(this.tabulator.getPage());\n            }\n        });\n        this.tabulator.on(\"pageLoaded\", (pageno) => {\n            this.updatePage(pageno);\n        });\n        this.tabulator.on(\"renderComplete\", () => {\n            if (this._building) {\n                return;\n            }\n            this.postUpdate();\n        });\n        this.tabulator.on(\"dataSorting\", (sorters) => {\n            const sorts = [];\n            for (const s of sorters) {\n                if (s.field !== \"_index\") {\n                    sorts.push({ field: s.field, dir: s.dir });\n                }\n            }\n            if (this.model.pagination !== \"remote\") {\n                this._updating_sort = true;\n                this.model.sorters = sorts.reverse();\n                this._updating_sort = false;\n            }\n        });\n    }\n    tableBuilt() {\n        this.setSelection();\n        this.renderChildren();\n        this.setStyles();\n        // Track scrolling position and active scroll\n        const holder = this.shadow_el.querySelector(\".tabulator-tableholder\");\n        let scroll_timeout;\n        if (holder) {\n            holder.addEventListener(\"scroll\", () => {\n                this.record_scroll();\n                this._is_scrolling = true;\n                clearTimeout(scroll_timeout);\n                scroll_timeout = setTimeout(() => {\n                    this._is_scrolling = false;\n                }, 200);\n            });\n        }\n        if (this.model.pagination) {\n            this.setMaxPage();\n            this.tabulator.setPage(this.model.page);\n        }\n        this._building = false;\n        (0, util_1.schedule_when)(() => {\n            const initializing = this._initializing;\n            this._initializing = false;\n            if (initializing) {\n                this._resize_redraw();\n            }\n        }, () => this.has_finished() && [...this._initialized_stylesheets.values()].every(v => v));\n    }\n    recompute_page_size() {\n        if (!this.model.pagination || (this.model.page_size !== null && !this._automatic_page_size) || this._initializing || !this.tabulator) {\n            return;\n        }\n        this._automatic_page_size = true;\n        const responsive = this.model.sizing_mode && (this.model.sizing_mode.includes(\"height\") || this.model.sizing_mode.includes(\"both\"));\n        const holder = this.shadow_el.querySelector(\".tabulator-tableholder\");\n        const table = this.shadow_el.querySelector(\".tabulator-table\");\n        if (table != null && holder != null) {\n            const table_height = holder.clientHeight;\n            let height = 0;\n            let page_size = null;\n            const heights = [];\n            for (let i = 0; i < table.children.length; i++) {\n                const row_height = table.children[i].clientHeight;\n                heights.push(row_height);\n                height += row_height;\n                if (height > table_height) {\n                    page_size = i;\n                    if (responsive) {\n                        page_size -= 1;\n                    }\n                    break;\n                }\n            }\n            if (height < table_height) {\n                page_size = table.children.length;\n                const remaining = table_height - height;\n                page_size += Math.floor(remaining / Math.min(...heights));\n                if (responsive) {\n                    page_size -= 1;\n                }\n            }\n            this._updating_page_size = true;\n            try {\n                this.model.page_size = Math.max(page_size || 1, 1);\n            }\n            finally {\n                this._updating_page_size = false;\n            }\n        }\n    }\n    requestPage(page, sorters) {\n        return new Promise((resolve, reject) => {\n            try {\n                if (page != null && sorters != null) {\n                    this._updating_sort = true;\n                    const sorts = [];\n                    for (const s of sorters) {\n                        if (s.field !== \"_index\") {\n                            sorts.push({ field: s.field, dir: s.dir });\n                        }\n                    }\n                    this.model.sorters = sorts;\n                    this._updating_sort = false;\n                    this._updating_page = true;\n                    try {\n                        this.model.page = page || 1;\n                    }\n                    finally {\n                        this._updating_page = false;\n                    }\n                }\n                resolve([]);\n            }\n            catch (err) {\n                reject(err);\n            }\n        });\n    }\n    getLayout() {\n        const layout = this.model.layout;\n        switch (layout) {\n            case \"fit_data\":\n                return \"fitData\";\n            case \"fit_data_fill\":\n                return \"fitDataFill\";\n            case \"fit_data_stretch\":\n                return \"fitDataStretch\";\n            case \"fit_data_table\":\n                return \"fitDataTable\";\n            case \"fit_columns\":\n                return \"fitColumns\";\n        }\n    }\n    getConfiguration() {\n        // Only use selectable mode if explicitly requested otherwise manually handle selections\n        const selectableRows = this.model.select_mode === \"toggle\" ? true : NaN;\n        const configuration = {\n            ...(0, util_1.transformJsPlaceholders)(this.model.configuration),\n            index: \"_index\",\n            nestedFieldSeparator: false,\n            movableColumns: false,\n            selectableRows,\n            columns: this.getColumns(),\n            initialSort: this.sorters,\n            layout: this.getLayout(),\n            pagination: this.model.pagination != null,\n            paginationMode: this.model.pagination,\n            paginationSize: this.model.page_size || 20,\n            paginationInitialPage: 1,\n            popupContainer: this.model.container_popup && this.container,\n            groupBy: this.groupBy,\n            frozenRows: (row) => {\n                return (this.model.frozen_rows.length > 0) ? this.model.frozen_rows.includes(row._row.data._index) : false;\n            },\n            rowFormatter: (row) => this._render_row(row, false),\n        };\n        if (this.model.max_height != null) {\n            configuration.maxHeight = this.model.max_height;\n        }\n        if (this.model.pagination === \"remote\") {\n            configuration.ajaxURL = \"http://panel.pyviz.org\";\n            configuration.sortMode = \"remote\";\n        }\n        const data = this.getData();\n        return {\n            ...configuration,\n            data,\n        };\n    }\n    get_child(idx) {\n        if (this.model.children instanceof Map) {\n            return this.model.children.get(idx) || null;\n        }\n        return null;\n    }\n    get child_models() {\n        const children = [];\n        for (const idx of this.model.expanded) {\n            const child = this.get_child(idx);\n            if (child != null) {\n                children.push(child);\n            }\n        }\n        return children;\n    }\n    get row_index() {\n        const rows = this.tabulator.getRows();\n        const lookup = new Map();\n        for (const row of rows) {\n            const index = row._row?.data._index;\n            if (index != null) {\n                lookup.set(index, row);\n            }\n        }\n        return lookup;\n    }\n    renderChildren() {\n        void new Promise(async () => {\n            await this.build_child_views();\n            const lookup = this.row_index;\n            const expanded = this.model.expanded;\n            for (const index of expanded) {\n                const model = this.get_child(index);\n                const row = lookup.get(index);\n                const view = model == null ? null : this._child_views.get(model);\n                if (view != null) {\n                    this._render_row(row, index === expanded[expanded.length - 1]);\n                }\n            }\n        });\n    }\n    _render_row(row, resize = true) {\n        const index = row._row?.data._index;\n        if (!this.model.expanded.includes(index)) {\n            return;\n        }\n        const model = this.get_child(index);\n        const view = model == null ? null : this._child_views.get(model);\n        if (view == null) {\n            return;\n        }\n        (0, util_1.schedule_when)(() => {\n            const rowEl = row.getElement();\n            const style = getComputedStyle(this.tabulator.element.children[1].children[0]);\n            const bg = style.backgroundColor;\n            const neg_margin = rowEl.style.paddingLeft ? `-${rowEl.style.paddingLeft}` : \"0\";\n            const prev_child = rowEl.children[rowEl.children.length - 1];\n            let viewEl;\n            if (prev_child != null && prev_child.className == \"row-content\") {\n                viewEl = prev_child;\n                if (viewEl.children.length && viewEl.children[0] === view.el) {\n                    return;\n                }\n            }\n            else {\n                viewEl = (0, dom_2.div)({ class: \"row-content\", style: { background_color: bg, margin_left: neg_margin, max_width: \"100%\", overflow_x: \"hidden\" } });\n                rowEl.appendChild(viewEl);\n            }\n            (0, dom_1.display)(view.el);\n            viewEl.appendChild(view.el);\n            if (view.shadow_el.children.length === 0) {\n                this.rerender_(view);\n            }\n            if (resize) {\n                this._update_children();\n                this.resize_table();\n            }\n        }, () => this.has_finished());\n    }\n    resize_table() {\n        if (this.tabulator.rowManager.renderer != null) {\n            try {\n                this.tabulator.rowManager.adjustTableSize();\n            }\n            catch (e) { }\n        }\n        this.invalidate_layout();\n    }\n    _expand_render(cell) {\n        const index = cell._cell.row.data._index;\n        const icon = this.model.expanded.indexOf(index) < 0 ? \"►\" : \"▼\";\n        return icon;\n    }\n    _update_expand(cell) {\n        const index = cell._cell.row.data._index;\n        const expanded = [...this.model.expanded];\n        if (!expanded.includes(index)) {\n            expanded.push(index);\n        }\n        else {\n            const exp_index = expanded.indexOf(index);\n            const removed = expanded.splice(exp_index, 1)[0];\n            const model = this.get_child(removed);\n            if (model != null) {\n                const view = this._child_views.get(model);\n                if (view !== undefined && view.el != null) {\n                    (0, dom_1.undisplay)(view.el);\n                }\n            }\n        }\n        this._updating_expanded = true;\n        this.model.expanded = expanded;\n        this._updating_expanded = false;\n        if (!expanded.includes(index)) {\n            return;\n        }\n        let ready = true;\n        for (const idx of this.model.expanded) {\n            if (this.get_child(idx) == null) {\n                ready = false;\n                break;\n            }\n        }\n        if (ready) {\n            this.renderChildren();\n        }\n    }\n    getData() {\n        const cds = this.model.source;\n        let data;\n        if (cds === null || (cds.columns().length === 0)) {\n            data = [];\n        }\n        else {\n            data = (0, data_1.transform_cds_to_records)(cds, true);\n        }\n        if (this.model.configuration.dataTree) {\n            data = group_data(data, this.model.columns, this.model.indexes, this.model.aggregators);\n        }\n        return data;\n    }\n    getColumns() {\n        this.columns = new Map();\n        const config_columns = (0, util_1.transformJsPlaceholders)(this.model.configuration?.columns);\n        const columns = [];\n        columns.push({ field: \"_index\", frozen: true, visible: false });\n        if (config_columns != null) {\n            for (const column of config_columns) {\n                const new_column = clone_column(column);\n                if (column.formatter === \"expand\") {\n                    const expand = {\n                        hozAlign: \"center\",\n                        cellClick: (_, cell) => {\n                            this._update_expand(cell);\n                        },\n                        formatter: (cell) => {\n                            return this._expand_render(cell);\n                        },\n                        width: 40,\n                        frozen: true,\n                    };\n                    columns.push(expand);\n                }\n                else {\n                    if (new_column.formatter === \"rowSelection\") {\n                        new_column.cellClick = (_, cell) => {\n                            cell.getRow().toggleSelect();\n                        };\n                    }\n                    columns.push(new_column);\n                }\n            }\n        }\n        for (const column of this.model.columns) {\n            let tab_column = null;\n            if (config_columns != null) {\n                for (const col of columns) {\n                    tab_column = find_column(col, column.field);\n                    if (tab_column != null) {\n                        break;\n                    }\n                }\n            }\n            if (tab_column == null) {\n                tab_column = { field: column.field };\n            }\n            this.columns.set(column.field, tab_column);\n            if (tab_column.title == null) {\n                tab_column.title = column.title;\n            }\n            if (tab_column.headerTooltip === undefined) {\n                tab_column.headerTooltip = true;\n            }\n            if (tab_column.width == null && column.width != null && column.width != 0) {\n                tab_column.width = column.width;\n            }\n            if (tab_column.formatter == null && column.formatter != null) {\n                const formatter = column.formatter;\n                const ftype = formatter.type;\n                if (ftype === \"BooleanFormatter\") {\n                    tab_column.formatter = \"tickCross\";\n                }\n                else {\n                    tab_column.formatter = (cell) => {\n                        const row = cell.getRow();\n                        const formatted = column.formatter.doFormat(cell.getRow(), cell, cell.getValue(), null, row.getData());\n                        if (column.formatter.type === \"HTMLTemplateFormatter\") {\n                            return formatted;\n                        }\n                        const node = (0, dom_2.div)();\n                        node.innerHTML = formatted;\n                        const child = node.children[0];\n                        if (child.innerHTML === \"function(){return c.convert(arguments)}\") { // If the formatter fails\n                            return \"\";\n                        }\n                        return child;\n                    };\n                }\n            }\n            if (tab_column.sorter == \"timestamp\") {\n                tab_column.sorter = timestampSorter;\n            }\n            if (tab_column.sorter === undefined) {\n                tab_column.sorter = \"string\";\n            }\n            const editor = column.editor;\n            const ctype = editor.type;\n            if (tab_column.editor != null) {\n                if (tab_column.editor === \"date\") {\n                    tab_column.editor = dateEditor;\n                }\n                else if (tab_column.editor === \"datetime\") {\n                    tab_column.editor = datetimeEditor;\n                }\n                else if (tab_column.editor === \"nested\") {\n                    tab_column.editorParams.valuesLookup = (cell) => {\n                        return nestedEditor(cell, tab_column.editorParams);\n                    };\n                    tab_column.editor = \"list\";\n                }\n            }\n            else if (ctype === \"StringEditor\") {\n                if (editor.completions.length > 0) {\n                    tab_column.editor = \"list\";\n                    tab_column.editorParams = { values: editor.completions, autocomplete: true, listOnEmpty: true };\n                }\n                else {\n                    tab_column.editor = \"input\";\n                }\n            }\n            else if (ctype === \"TextEditor\") {\n                tab_column.editor = \"textarea\";\n            }\n            else if (ctype === \"IntEditor\" || ctype === \"NumberEditor\") {\n                tab_column.editor = \"number\";\n                tab_column.editorParams = { step: editor.step };\n                if (ctype === \"IntEditor\") {\n                    tab_column.validator = \"integer\";\n                }\n                else {\n                    tab_column.validator = \"numeric\";\n                }\n            }\n            else if (ctype === \"CheckboxEditor\") {\n                tab_column.editor = \"tickCross\";\n            }\n            else if (ctype === \"DateEditor\") {\n                tab_column.editor = dateEditor;\n            }\n            else if (ctype === \"SelectEditor\") {\n                tab_column.editor = \"list\";\n                tab_column.editorParams = { values: editor.options };\n            }\n            else if (editor != null && editor.default_view != null) {\n                tab_column.editor = (cell, onRendered, success, cancel) => {\n                    this.renderEditor(column, cell, onRendered, success, cancel);\n                };\n            }\n            tab_column.visible = (tab_column.visible != false && !this.model.hidden_columns.includes(column.field));\n            const originalEditable = tab_column.editable;\n            if ((0, types_1.isFunction)(originalEditable)) {\n                tab_column.editable = (cell) => (this.model.editable && (editor.default_view != null) && originalEditable(cell));\n            }\n            else if ((0, types_1.isBoolean)(originalEditable)) {\n                tab_column.editable = () => (this.model.editable && (editor.default_view != null) && originalEditable);\n            }\n            else {\n                tab_column.editable = () => (this.model.editable && (editor.default_view != null));\n            }\n            if (tab_column.headerFilter) {\n                if ((0, types_1.isBoolean)(tab_column.headerFilter) && (0, types_1.isString)(tab_column.editor)) {\n                    tab_column.headerFilter = tab_column.editor;\n                    tab_column.headerFilterParams = tab_column.editorParams;\n                }\n            }\n            for (const sort of this.model.sorters) {\n                if (tab_column.field === sort.field) {\n                    tab_column.headerSortStartingDir = sort.dir;\n                }\n            }\n            tab_column.cellClick = (_, cell) => {\n                const index = cell.getData()._index;\n                const event = new CellClickEvent(column.field, index);\n                this.model.trigger_event(event);\n            };\n            if (config_columns == null) {\n                columns.push(tab_column);\n            }\n        }\n        for (const col in this.model.buttons) {\n            const button_formatter = () => {\n                return this.model.buttons[col];\n            };\n            const button_column = {\n                formatter: button_formatter,\n                hozAlign: \"center\",\n                cellClick: (_, cell) => {\n                    const index = cell.getData()._index;\n                    const event = new CellClickEvent(col, index);\n                    this.model.trigger_event(event);\n                },\n            };\n            columns.push(button_column);\n        }\n        if (this.model.container_popup && (this.model.layout !== \"fit_data_stretch\")) {\n            // We insert an empty last column to ensure select editor is rendered in correct position\n            // see: https://github.com/holoviz/panel/issues/7295\n            columns.push({ width: 1, maxWidth: 1, minWidth: 1, resizable: false, cssClass: \"empty\", sorter: null });\n        }\n        return columns;\n    }\n    renderEditor(column, cell, onRendered, success, cancel) {\n        const editor = column.editor;\n        const view = new editor.default_view({ column, model: editor, parent: this, container: cell._cell.element });\n        view.initialize();\n        view.connect_signals();\n        onRendered(() => {\n            view.setValue(cell.getValue());\n        });\n        view.inputEl.addEventListener(\"input\", () => {\n            const value = view.serializeValue();\n            const old_value = cell.getValue();\n            const validation = view.validate();\n            if (!validation.valid) {\n                cancel(validation.msg);\n            }\n            if (old_value != null && typeof value != typeof old_value) {\n                cancel(\"Mismatching type\");\n            }\n            else {\n                success(view.serializeValue());\n            }\n        });\n        return view.inputEl;\n    }\n    // Update table\n    setData() {\n        if (this._initializing || this._building || !this.tabulator.initialized) {\n            return Promise.resolve(undefined);\n        }\n        const data = this.getData();\n        if (this.model.pagination != null) {\n            return this.tabulator.rowManager.setData(data, true, false);\n        }\n        else {\n            return this.tabulator.setData(data);\n        }\n    }\n    addData() {\n        const rows = this.tabulator.rowManager.getRows();\n        const last_row = rows[rows.length - 1];\n        const start = ((last_row?.data._index) || 0);\n        this._updating_page = true;\n        const promise = this.setData();\n        if (this.model.follow) {\n            promise.then(() => {\n                if (this.model.pagination) {\n                    this.tabulator.setPage(Math.ceil(this.tabulator.rowManager.getDataCount() / (this.model.page_size || 20)));\n                }\n                if (last_row) {\n                    this.tabulator.scrollToRow(start, \"top\", false);\n                }\n                this._updating_page = false;\n            });\n        }\n        else {\n            this._updating_page = true;\n        }\n    }\n    postUpdate() {\n        this.setSelection();\n        this.setStyles();\n        if (this._restore_scroll) {\n            const vertical = this._restore_scroll === \"horizontal\" ? false : true;\n            const horizontal = this._restore_scroll === \"vertical\" ? false : true;\n            this.restore_scroll(horizontal, vertical);\n            this._restore_scroll = false;\n        }\n    }\n    updateOrAddData() {\n        // To avoid double updating the tabulator data\n        if (this._tabulator_cell_updating) {\n            return;\n        }\n        // Temporarily set minHeight to avoid \"scroll-to-top\" issues caused\n        // by Tabulator JS entirely destroying the table when .setData is called.\n        // Inspired by https://github.com/olifolkerd/tabulator/issues/4155\n        const prev_minheight = this.tabulator.element.style.minHeight;\n        this.tabulator.element.style.minHeight = `${this.tabulator.element.offsetHeight}px`;\n        const data = (0, data_1.transform_cds_to_records)(this.model.source, true);\n        this.tabulator.setData(data).then(() => {\n            this.tabulator.element.style.minHeight = prev_minheight;\n        });\n    }\n    setFrozen() {\n        for (const row of this.model.frozen_rows) {\n            this.tabulator.getRow(row).freeze();\n        }\n    }\n    setVisibility() {\n        if (this.tabulator == null) {\n            return;\n        }\n        this.tabulator.element.style.visibility = this.model.visible ? \"visible\" : \"hidden\";\n    }\n    updatePage(pageno) {\n        if (this.model.pagination === \"local\" && this.model.page !== pageno && !this._updating_page) {\n            this._updating_page = true;\n            this.model.page = pageno;\n            this._updating_page = false;\n            this.setStyles();\n        }\n    }\n    setGroupBy() {\n        this.tabulator.setGroupBy(this.groupBy);\n    }\n    setSorters() {\n        if (this._updating_sort) {\n            return;\n        }\n        this.tabulator.setSort(this.sorters);\n    }\n    setStyles() {\n        const style_data = this.model.cell_styles.data;\n        if (this.tabulator == null || this.tabulator.getDataCount() == 0 || style_data == null || !style_data.size) {\n            return;\n        }\n        this._applied_styles = false;\n        for (const r of style_data.keys()) {\n            const row_style = style_data.get(r);\n            const row = this.tabulator.getRow(r);\n            if (!row) {\n                continue;\n            }\n            const cells = row._row.cells;\n            for (const c of row_style.keys()) {\n                const style = row_style.get(c);\n                const cell = cells[c];\n                if (cell == null || !style.length) {\n                    continue;\n                }\n                const element = cell.element;\n                for (const s of style) {\n                    let prop, value;\n                    if ((0, types_1.isArray)(s)) {\n                        [prop, value] = s;\n                    }\n                    else if (!s.includes(\":\")) {\n                        continue;\n                    }\n                    else {\n                        [prop, value] = s.split(\":\");\n                    }\n                    element.style.setProperty(prop, value.trimLeft());\n                    this._applied_styles = true;\n                }\n            }\n        }\n    }\n    setHidden() {\n        for (const column of this.tabulator.getColumns()) {\n            const col = column._column;\n            if ((col.field == \"_index\") || this.model.hidden_columns.includes(col.field)) {\n                column.hide();\n            }\n            else {\n                column.show();\n            }\n        }\n    }\n    setMaxPage() {\n        this.tabulator.setMaxPage(this.model.max_page);\n        if (this.tabulator.modules.page.pagesElement) {\n            this.tabulator.modules.page._setPageButtons();\n        }\n    }\n    setPage() {\n        this.tabulator.setPage(Math.min(this.model.max_page, this.model.page));\n        if (this.model.pagination === \"local\") {\n            this.setStyles();\n        }\n    }\n    setPageSize() {\n        if (!this._updating_page_size) {\n            this._automatic_page_size = false;\n        }\n        this.tabulator.setPageSize(this.model.page_size);\n        if (this.model.pagination === \"local\") {\n            this.setStyles();\n        }\n    }\n    setSelection() {\n        if (this.tabulator == null || this._initializing || this._selection_updating || !this.tabulator.initialized) {\n            return;\n        }\n        const indices = this.model.source.selected.indices;\n        const current_indices = this.tabulator.getSelectedData().map((row) => row._index);\n        if (JSON.stringify(indices) == JSON.stringify(current_indices)) {\n            return;\n        }\n        this._selection_updating = true;\n        this.tabulator.deselectRow();\n        this.tabulator.selectRow(indices);\n        for (const index of indices) {\n            const row = this.tabulator.rowManager.findRow(index);\n            if (row) {\n                this.tabulator.scrollToRow(index, \"center\", false).catch(() => { });\n            }\n        }\n        this._selection_updating = false;\n    }\n    restore_scroll(horizontal = true, vertical = true) {\n        if (!(horizontal || vertical)) {\n            return;\n        }\n        const opts = { behavior: \"instant\" };\n        if (vertical) {\n            opts.top = this._lastVerticalScrollbarTopPosition;\n        }\n        if (horizontal) {\n            opts.left = this._lastHorizontalScrollbarLeftPosition;\n        }\n        setTimeout(() => {\n            this._updating_scroll = true;\n            this.tabulator.rowManager.element.scrollTo(opts);\n            this._updating_scroll = false;\n        }, 0);\n    }\n    // Update model\n    record_scroll() {\n        if (this._updating_scroll) {\n            return;\n        }\n        this._lastVerticalScrollbarTopPosition = this.tabulator.rowManager.element.scrollTop;\n        this._lastHorizontalScrollbarLeftPosition = this.tabulator.rowManager.element.scrollLeft;\n    }\n    rowClicked(e, row) {\n        if (this._selection_updating ||\n            this._initializing ||\n            (0, types_1.isString)(this.model.select_mode) ||\n            this.model.select_mode === false || // selection disabled\n            this.model.configuration.dataTree || // dataTree does not support selection\n            e.srcElement?.innerText === \"►\" // expand button\n        ) {\n            return;\n        }\n        let indices = [];\n        const selected = this.model.source.selected;\n        const index = row._row.data._index;\n        if (e.ctrlKey || e.metaKey) {\n            indices = [...selected.indices];\n        }\n        else if (e.shiftKey && this._last_selected_row) {\n            const rows = row._row.parent.getDisplayRows();\n            const start_idx = rows.indexOf(this._last_selected_row);\n            if (start_idx !== -1) {\n                const end_idx = rows.indexOf(row._row);\n                const reverse = start_idx > end_idx;\n                const [start, end] = reverse ? [end_idx + 1, start_idx + 1] : [start_idx, end_idx];\n                indices = rows.slice(start, end).map((r) => r.data._index);\n                if (reverse) {\n                    indices = indices.reverse();\n                }\n            }\n        }\n        const flush = !(e.ctrlKey || e.metaKey || e.shiftKey);\n        const includes = indices.includes(index);\n        const remote = this.model.pagination === \"remote\";\n        // Toggle the index on or off (if remote we let Python do the toggling)\n        if (!includes || remote) {\n            indices.push(index);\n        }\n        else {\n            indices.splice(indices.indexOf(index), 1);\n        }\n        // Remove the first selected indices when selectable is an int.\n        if ((0, types_1.isNumber)(this.model.select_mode)) {\n            while (indices.length > this.model.select_mode) {\n                indices.shift();\n            }\n        }\n        const filtered = this._filter_selected(indices);\n        if (!remote) {\n            this.tabulator.deselectRow();\n            this.tabulator.selectRow(filtered);\n        }\n        this._last_selected_row = row._row;\n        this._selection_updating = true;\n        if (!remote) {\n            selected.indices = filtered;\n        }\n        this.model.trigger_event(new SelectionEvent(indices, !includes, flush));\n        this._selection_updating = false;\n    }\n    _filter_selected(indices) {\n        const filtered = [];\n        for (const ind of indices) {\n            if (this.model.selectable_rows == null ||\n                this.model.selectable_rows.indexOf(ind) >= 0) {\n                filtered.push(ind);\n            }\n        }\n        return filtered;\n    }\n    rowSelectionChanged(data, _row, selected, deselected) {\n        if (this._selection_updating ||\n            this._initializing ||\n            (0, types_1.isBoolean)(this.model.select_mode) ||\n            (0, types_1.isNumber)(this.model.select_mode) ||\n            this.model.configuration.dataTree) {\n            return;\n        }\n        if (this.model.pagination === \"remote\") {\n            const selected_indices = selected.map((x) => x._row.data._index);\n            const deselected_indices = deselected.map((x) => x._row.data._index);\n            if (selected_indices.length > 0) {\n                this._selection_updating = true;\n                this.model.trigger_event(new SelectionEvent(selected_indices, true, false));\n            }\n            if (deselected_indices.length > 0) {\n                this._selection_updating = true;\n                this.model.trigger_event(new SelectionEvent(deselected_indices, false, false));\n            }\n        }\n        else {\n            const indices = data.map((row) => row._index);\n            const filtered = this._filter_selected(indices);\n            this._selection_updating = indices.length === filtered.length;\n            this.model.source.selected.indices = filtered;\n        }\n        this._selection_updating = false;\n    }\n    cellEdited(cell) {\n        const field = cell._cell.column.field;\n        const column_def = this.columns.get(field);\n        const index = cell.getData()._index;\n        const value = cell._cell.value;\n        if (column_def.validator === \"numeric\" && value === \"\") {\n            cell.setValue(NaN, true);\n            return;\n        }\n        this._tabulator_cell_updating = true;\n        comm_manager_1.comm_settings.debounce = false;\n        this.model.trigger_event(new TableEditEvent(field, index, true));\n        try {\n            this.model.source.patch({ [field]: [[index, value]] });\n        }\n        finally {\n            comm_manager_1.comm_settings.debounce = true;\n            this._tabulator_cell_updating = false;\n        }\n        this.model.trigger_event(new TableEditEvent(field, index, false));\n        this.tabulator.scrollToRow(index, \"top\", false);\n    }\n}\nexports.DataTabulatorView = DataTabulatorView;\nDataTabulatorView.__name__ = \"DataTabulatorView\";\nexports.TableLayout = (0, kinds_1.Enum)(\"fit_data\", \"fit_data_fill\", \"fit_data_stretch\", \"fit_data_table\", \"fit_columns\");\n// The Bokeh .ts model corresponding to the Bokeh .py model\nclass DataTabulator extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.DataTabulator = DataTabulator;\n_d = DataTabulator;\nDataTabulator.__name__ = \"DataTabulator\";\nDataTabulator.__module__ = \"panel.models.tabulator\";\n(() => {\n    _d.prototype.default_view = DataTabulatorView;\n    _d.define(({ Any, List, Bool, Nullable, Float, Ref, Str }) => ({\n        aggregators: [Any, {}],\n        buttons: [Any, {}],\n        children: [Any, new Map()],\n        configuration: [Any, {}],\n        columns: [List(Ref(tables_1.TableColumn)), []],\n        download: [Bool, false],\n        editable: [Bool, true],\n        embed_content: [Bool, false],\n        expanded: [List(Float), []],\n        filename: [Str, \"table.csv\"],\n        filters: [List(Any), []],\n        follow: [Bool, true],\n        frozen_rows: [List(Float), []],\n        groupby: [List(Str), []],\n        hidden_columns: [List(Str), []],\n        indexes: [List(Str), []],\n        layout: [exports.TableLayout, \"fit_data\"],\n        max_page: [Float, 0],\n        pagination: [Nullable(Str), null],\n        page: [Float, 0],\n        page_size: [Nullable(Float), null],\n        select_mode: [Any, true],\n        selectable_rows: [Nullable(List(Float)), null],\n        source: [Ref(column_data_source_1.ColumnDataSource)],\n        sorters: [List(Any), []],\n        cell_styles: [Any, {}],\n        theme_classes: [List(Str), []],\n        container_popup: [Bool, true],\n    }));\n})();\n//# sourceMappingURL=tabulator.js.map\n","type":"js","dependency_paths":[["debounce","/home/runner/work/panel/panel/panel/node_modules/debounce/index.js"],["./comm_manager","/home/runner/work/panel/panel/panel/dist/lib/models/comm_manager.js"],["./data","/home/runner/work/panel/panel/panel/dist/lib/models/data.js"],["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"],["./util","/home/runner/work/panel/panel/panel/dist/lib/models/util.js"],["../styles/models/tabulator.css","/home/runner/work/panel/panel/panel/dist/lib/styles/models/tabulator.css.js"]],"dependency_map":[],"exported":[{"type":"named","name":"TableEditEvent"},{"type":"named","name":"CellClickEvent"},{"type":"named","name":"SelectionEvent"},{"type":"named","name":"DataTabulatorView"},{"type":"named","name":"DataTabulator"}],"externals":[],"shims":[]},"code":{"source":"/* models/tabulator.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a, _b, _c, _d;\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const arrayable_1 = require(\"@bokehjs/core/util/arrayable\");\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    const dom_2 = require(\"@bokehjs/core/dom\");\n    const kinds_1 = require(\"@bokehjs/core/kinds\");\n    const column_data_source_1 = require(\"@bokehjs/models/sources/column_data_source\");\n    const tables_1 = require(\"@bokehjs/models/widgets/tables\");\n    const debounce_1 = require(\"99a25e6992\") /* debounce */;\n    const comm_manager_1 = require(\"1bec1b1fcc\") /* ./comm_manager */;\n    const data_1 = require(\"be689f0377\") /* ./data */;\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    const util_1 = require(\"a3669a897a\") /* ./util */;\n    const tabulator_css_1 = tslib_1.__importDefault(require(\"3d732ff91f\") /* ../styles/models/tabulator.css */);\n    class TableEditEvent extends bokeh_events_1.ModelEvent {\n        constructor(column, row, pre) {\n            super();\n            this.column = column;\n            this.row = row;\n            this.pre = pre;\n        }\n        get event_values() {\n            return { model: this.origin, column: this.column, row: this.row, pre: this.pre };\n        }\n    }\n    exports.TableEditEvent = TableEditEvent;\n    _a = TableEditEvent;\n    TableEditEvent.__name__ = \"TableEditEvent\";\n    (() => {\n        _a.prototype.event_name = \"table-edit\";\n    })();\n    class CellClickEvent extends bokeh_events_1.ModelEvent {\n        constructor(column, row) {\n            super();\n            this.column = column;\n            this.row = row;\n        }\n        get event_values() {\n            return { model: this.origin, column: this.column, row: this.row };\n        }\n    }\n    exports.CellClickEvent = CellClickEvent;\n    _b = CellClickEvent;\n    CellClickEvent.__name__ = \"CellClickEvent\";\n    (() => {\n        _b.prototype.event_name = \"cell-click\";\n    })();\n    class SelectionEvent extends bokeh_events_1.ModelEvent {\n        constructor(indices, selected, flush = false) {\n            super();\n            this.indices = indices;\n            this.selected = selected;\n            this.flush = flush;\n        }\n        get event_values() {\n            return { model: this.origin, indices: this.indices, selected: this.selected, flush: this.flush };\n        }\n    }\n    exports.SelectionEvent = SelectionEvent;\n    _c = SelectionEvent;\n    SelectionEvent.__name__ = \"SelectionEvent\";\n    (() => {\n        _c.prototype.event_name = \"selection-change\";\n    })();\n    function find_group(key, value, records) {\n        for (const record of records) {\n            if (record[key] == value) {\n                return record;\n            }\n        }\n        return null;\n    }\n    function summarize(grouped, columns, aggregators, depth = 0) {\n        const summary = {};\n        if (grouped.length == 0) {\n            return summary;\n        }\n        // depth level 0 is the root, finish here\n        let aggs = \"\";\n        if (depth > 0) {\n            aggs = aggregators[depth - 1];\n        }\n        for (const group of grouped) {\n            const subsummary = summarize(group._children, columns, aggregators, depth + 1);\n            for (const col in subsummary) {\n                if ((0, types_1.isArray)(subsummary[col])) {\n                    group[col] = (0, arrayable_1.sum)(subsummary[col]) / subsummary[col].length;\n                }\n                else {\n                    group[col] = subsummary[col];\n                }\n            }\n            for (const column of columns.slice(1)) {\n                // if no aggregation method provided for an index level,\n                // or a specific column of an index level, do not aggregate data\n                let agg = \"\";\n                if (typeof aggs === \"string\") {\n                    agg = aggs;\n                }\n                else if (column.field in aggs) {\n                    agg = aggs[column.field];\n                }\n                const val = group[column.field];\n                if (column.field in summary) {\n                    const old_val = summary[column.field];\n                    if (agg === \"min\") {\n                        summary[column.field] = (val < old_val) ? val : old_val;\n                    }\n                    else if (agg === \"max\") {\n                        summary[column.field] = (val > old_val) ? val : old_val;\n                    }\n                    else if (agg === \"sum\") {\n                        summary[column.field] = val + old_val;\n                    }\n                    else if (agg === \"mean\") {\n                        if ((0, types_1.isArray)(summary[column.field])) {\n                            summary[column.field].push(val);\n                        }\n                        else {\n                            summary[column.field] = [old_val, val];\n                        }\n                    }\n                }\n                else {\n                    summary[column.field] = val;\n                }\n            }\n        }\n        return summary;\n    }\n    function group_data(records, columns, indexes, aggregators) {\n        const grouped = [];\n        const index_field = columns[0].field;\n        for (const record of records) {\n            const value = record[indexes[0]];\n            let group = find_group(index_field, value, grouped);\n            if (group == null) {\n                group = { _children: [] };\n                group[index_field] = value;\n                grouped.push(group);\n            }\n            let subgroup = group;\n            for (const index of indexes.slice(1)) {\n                subgroup = find_group(index_field, record[index], subgroup._children);\n                if (subgroup == null) {\n                    subgroup = { _children: [] };\n                    subgroup[index_field] = record[index];\n                    group._children.push(subgroup);\n                }\n                for (const column of columns.slice(1)) {\n                    subgroup[column.field] = record[column];\n                }\n                group = subgroup;\n            }\n            for (const column of columns.slice(1)) {\n                subgroup[column.field] = record[column.field];\n            }\n        }\n        const aggs = [];\n        for (const index of indexes) {\n            if (index in aggregators) {\n                if (aggregators[index] instanceof Map) {\n                    // when some column names are numeric, need to convert that from a Map to an Object\n                    aggs.push(Object.fromEntries(aggregators[index]));\n                }\n                else {\n                    aggs.push(aggregators[index]);\n                }\n            }\n            else {\n                aggs.push(\"sum\");\n            }\n        }\n        summarize(grouped, columns, aggs);\n        return grouped;\n    }\n    const timestampSorter = function (a, b, _aRow, _bRow, _column, _dir, _params) {\n        // Bokeh/Panel serializes datetime objects as UNIX timestamps (in milliseconds).\n        //a, b - the two values being compared\n        //aRow, bRow - the row components for the values being compared (useful if you need to access additional fields in the row data for the sort)\n        //column - the column component for the column being sorted\n        //dir - the direction of the sort (\"asc\" or \"desc\")\n        //sorterParams - sorterParams object from column definition array\n        // Added an _ in front of some parameters as they're unused and the Typescript compiler was complaining about it.\n        // const alignEmptyValues = params.alignEmptyValues\n        let emptyAlign;\n        emptyAlign = 0;\n        const opts = { zone: new window.luxon.IANAZone(\"UTC\") };\n        if (Number.isNaN(a)) {\n            a = window.luxon.DateTime.fromISO(\"invalid\");\n        }\n        else {\n            a = window.luxon.DateTime.fromMillis(a, opts);\n        }\n        if (Number.isNaN(b)) {\n            b = window.luxon.DateTime.fromISO(\"invalid\");\n        }\n        else {\n            b = window.luxon.DateTime.fromMillis(b, opts);\n        }\n        if (!a.isValid) {\n            emptyAlign = !b.isValid ? 0 : -1;\n        }\n        else if (!b.isValid) {\n            emptyAlign = 1;\n        }\n        else {\n            //compare valid values\n            return a - b;\n        }\n        // Invalid (e.g. NaN) always at the bottom\n        emptyAlign *= -1;\n        return emptyAlign;\n    };\n    const dateEditor = function (cell, onRendered, success, cancel) {\n        //cell - the cell component for the editable cell\n        //onRendered - function to call when the editor has been rendered\n        //success - function to call to pass the successfully updated value to Tabulator\n        //cancel - function to call to abort the edit and return to a normal cell\n        //create and style input\n        const rawValue = cell.getValue();\n        const opts = { zone: new window.luxon.IANAZone(\"UTC\") };\n        let cellValue;\n        if (rawValue === \"NaN\" || rawValue === null) {\n            cellValue = null;\n        }\n        else {\n            cellValue = window.luxon.DateTime.fromMillis(rawValue, opts).toFormat(\"yyyy-MM-dd\");\n        }\n        const input = document.createElement(\"input\");\n        input.setAttribute(\"type\", \"date\");\n        input.style.padding = \"4px\";\n        input.style.width = \"100%\";\n        input.style.boxSizing = \"border-box\";\n        input.value = cellValue;\n        onRendered(() => {\n            input.focus();\n            input.style.height = \"100%\";\n        });\n        function onChange() {\n            const new_val = window.luxon.DateTime.fromFormat(input.value, \"yyyy-MM-dd\", opts).toMillis();\n            if (new_val != cellValue) {\n                success(new_val);\n            }\n            else {\n                cancel();\n            }\n        }\n        //submit new value on blur or change\n        input.addEventListener(\"blur\", onChange);\n        //submit new value on enter\n        input.addEventListener(\"keydown\", (e) => {\n            if (e.key == \"Enter\") {\n                setTimeout(onChange, 100);\n            }\n            if (e.key == \"Escape\") {\n                setTimeout(cancel, 100);\n            }\n        });\n        return input;\n    };\n    const datetimeEditor = function (cell, onRendered, success, cancel) {\n        //cell - the cell component for the editable cell\n        //onRendered - function to call when the editor has been rendered\n        //success - function to call to pass the successfully updated value to Tabulator\n        //cancel - function to call to abort the edit and return to a normal cell\n        //create and style input\n        const rawValue = cell.getValue();\n        const opts = { zone: new window.luxon.IANAZone(\"UTC\") };\n        let cellValue;\n        if (rawValue === \"NaN\" || rawValue === null) {\n            cellValue = null;\n        }\n        else {\n            cellValue = window.luxon.DateTime.fromMillis(rawValue, opts).toFormat(\"yyyy-MM-dd'T'T\");\n        }\n        const input = document.createElement(\"input\");\n        input.setAttribute(\"type\", \"datetime-local\");\n        input.style.padding = \"4px\";\n        input.style.width = \"100%\";\n        input.style.boxSizing = \"border-box\";\n        input.value = cellValue;\n        onRendered(() => {\n            input.focus();\n            input.style.height = \"100%\";\n        });\n        function onChange() {\n            const new_val = window.luxon.DateTime.fromFormat(input.value, \"yyyy-MM-dd'T'T\", opts).toMillis();\n            if (new_val != cellValue) {\n                success(new_val);\n            }\n            else {\n                cancel();\n            }\n        }\n        //submit new value on blur or change\n        input.addEventListener(\"blur\", onChange);\n        //submit new value on enter\n        input.addEventListener(\"keydown\", (e) => {\n            if (e.key == \"Enter\") {\n                setTimeout(onChange, 100);\n            }\n            if (e.key == \"Escape\") {\n                setTimeout(cancel, 100);\n            }\n        });\n        return input;\n    };\n    const nestedEditor = function (cell, editorParams) {\n        //cell - the cell component for the editable cell\n        const row = cell.getRow().getData();\n        let values = editorParams.options;\n        for (const i of editorParams.lookup_order) {\n            values = row[i] in values ? values[row[i]] : [];\n            if (Array.isArray(values)) {\n                break;\n            }\n        }\n        return values ? values : [];\n    };\n    function find_column(group, field) {\n        if (group.columns != null) {\n            for (const col of group.columns) {\n                const found = find_column(col, field);\n                if (found) {\n                    return found;\n                }\n            }\n        }\n        else {\n            return group.field === field ? group : null;\n        }\n    }\n    function clone_column(group) {\n        if (group.columns == null) {\n            return { ...group };\n        }\n        const group_columns = [];\n        for (const col of group.columns) {\n            group_columns.push(clone_column(col));\n        }\n        return { ...group, columns: group_columns };\n    }\n    class DataTabulatorView extends layout_1.HTMLBoxView {\n        constructor() {\n            super(...arguments);\n            this.columns = new Map();\n            this.container = null;\n            this._tabulator_cell_updating = false;\n            this._updating_page = false;\n            this._updating_expanded = false;\n            this._updating_sort = false;\n            this._updating_page_size = false;\n            this._selection_updating = false;\n            this._last_selected_row = null;\n            this._lastVerticalScrollbarTopPosition = 0;\n            this._lastHorizontalScrollbarLeftPosition = 0;\n            this._applied_styles = false;\n            this._building = false;\n            this._redrawing = false;\n            this._debounced_redraw = null;\n            this._restore_scroll = false;\n            this._updating_scroll = false;\n            this._is_scrolling = false;\n            this._automatic_page_size = false;\n        }\n        connect_signals() {\n            super.connect_signals();\n            this._debounced_redraw = (0, debounce_1.debounce)(() => this._resize_redraw(), 20, false);\n            const { configuration, layout, columns, groupby, visible, download, children, expanded, cell_styles, hidden_columns, page_size, page, max_page, frozen_rows, sorters, theme_classes, } = this.model.properties;\n            this.on_change([configuration, layout, groupby], (0, debounce_1.debounce)(() => {\n                this.invalidate_render();\n            }, 20, false));\n            this.on_change(visible, () => {\n                if (this.model.visible) {\n                    this.tabulator.element.style.visibility = \"visible\";\n                }\n            });\n            this.on_change(columns, () => {\n                this.tabulator.setColumns(this.getColumns());\n                this.setHidden();\n            });\n            this.on_change(download, () => {\n                const ftype = this.model.filename.endsWith(\".json\") ? \"json\" : \"csv\";\n                this.tabulator.download(ftype, this.model.filename);\n            });\n            this.on_change(children, () => this.renderChildren());\n            this.on_change(expanded, () => {\n                // The first cell is the cell of the frozen _index column.\n                for (const row of this.tabulator.rowManager.getRows()) {\n                    if (row.cells.length > 0) {\n                        row.cells[0].layoutElement();\n                    }\n                }\n                // Make sure the expand icon is changed when expanded is\n                // changed from Python.\n                for (const row of this.tabulator.rowManager.getRows()) {\n                    if (row.cells.length > 0) {\n                        const index = row.data._index;\n                        const icon = this.model.expanded.includes(index) ? \"▼\" : \"►\";\n                        row.cells[1].element.innerText = icon;\n                    }\n                }\n                // If content is embedded, views may not have been\n                // rendered so if expanded is updated server side\n                // we have to trigger a render\n                if (this.model.embed_content && !this._updating_expanded) {\n                    this.renderChildren();\n                }\n            });\n            this.on_change(cell_styles, () => {\n                if (this._applied_styles) {\n                    this.tabulator.redraw(true);\n                }\n                this.setStyles();\n            });\n            this.on_change(hidden_columns, () => {\n                this.setHidden();\n                this.tabulator.redraw(true);\n            });\n            this.on_change(page_size, () => this.setPageSize());\n            this.on_change(page, () => {\n                if (!this._updating_page) {\n                    this.setPage();\n                }\n            });\n            this.on_change(visible, () => this.setVisibility());\n            this.on_change(max_page, () => this.setMaxPage());\n            this.on_change(frozen_rows, () => this.setFrozen());\n            this.on_change(sorters, () => this.setSorters());\n            this.on_change(theme_classes, () => this.setCSSClasses(this.tabulator.element));\n            this.on_change(this.model.source.properties.data, () => {\n                if (this.tabulator === undefined) {\n                    return;\n                }\n                this._restore_scroll = \"horizontal\";\n                this._selection_updating = true;\n                this._updating_scroll = true;\n                this.setData();\n                this._updating_scroll = false;\n                this._selection_updating = false;\n                this.postUpdate();\n            });\n            this.connect(this.model.source.streaming, () => this.addData());\n            this.connect(this.model.source.patching, () => {\n                const inds = this.model.source.selected.indices;\n                this._updating_scroll = true;\n                this.updateOrAddData();\n                this._updating_scroll = false;\n                // Restore indices since updating data may have reset checkbox column\n                this.model.source.selected.indices = inds;\n                this.restore_scroll();\n            });\n            this.connect(this.model.source.selected.change, () => this.setSelection());\n            this.connect(this.model.source.selected.properties.indices.change, () => this.setSelection());\n        }\n        get groupBy() {\n            const groupby = (data) => {\n                const groups = [];\n                for (const g of this.model.groupby) {\n                    const group = `${g}: ${data[g]}`;\n                    groups.push(group);\n                }\n                return groups.join(\", \");\n            };\n            return (this.model.groupby.length > 0) ? groupby : false;\n        }\n        get sorters() {\n            const sorters = [];\n            if (this.model.sorters.length > 0) {\n                sorters.push({ column: \"_index\", dir: \"asc\" });\n            }\n            for (const sort of this.model.sorters.reverse()) {\n                if (sort.column === undefined) {\n                    sort.column = sort.field;\n                }\n                sorters.push(sort);\n            }\n            return sorters;\n        }\n        invalidate_render() {\n            this.tabulator?.destroy();\n            this.tabulator = null;\n            this.rerender_();\n        }\n        redraw(columns = true, rows = true) {\n            if (this._building || this.tabulator == null || this._redrawing) {\n                return;\n            }\n            this._redrawing = true;\n            if (columns && (this.tabulator.columnManager.element != null)) {\n                this.tabulator.columnManager.redraw(true);\n            }\n            if (rows && (this.tabulator.rowManager.renderer != null)) {\n                this.tabulator.rowManager.redraw(true);\n                this.setStyles();\n            }\n            this._redrawing = false;\n            this._restore_scroll = true;\n        }\n        get is_drawing() {\n            return this._building || this._redrawing || !this.has_finished();\n        }\n        after_layout() {\n            super.after_layout();\n            if (this.tabulator != null && this._initializing && !this.is_drawing) {\n                this._initializing = false;\n                this._resize_redraw();\n            }\n        }\n        after_resize() {\n            super.after_resize();\n            if (!this._is_scrolling && !this._initializing && !this.is_drawing) {\n                this._debounced_redraw();\n            }\n        }\n        _resize_redraw() {\n            if (this._initializing || !this.container || this._building) {\n                return;\n            }\n            const width = this.container.clientWidth;\n            const height = this.container.clientHeight;\n            if (!width || !height) {\n                return;\n            }\n            this.redraw(true, true);\n            this.restore_scroll();\n            requestAnimationFrame(() => this.recompute_page_size());\n        }\n        stylesheets() {\n            return [...super.stylesheets(), tabulator_css_1.default];\n        }\n        setCSSClasses(el) {\n            el.className = \"pnx-tabulator tabulator\";\n            for (const cls of this.model.theme_classes) {\n                el.classList.add(cls);\n            }\n        }\n        remove() {\n            this.tabulator?.destroy();\n            super.remove();\n        }\n        render() {\n            this.tabulator?.destroy();\n            super.render();\n            this._initializing = true;\n            this._building = true;\n            const container = (0, dom_2.div)({ style: { display: \"contents\" } });\n            const el = (0, dom_2.div)({ style: { width: \"100%\", height: \"100%\", visibility: \"hidden\" } });\n            this.container = el;\n            this.setCSSClasses(el);\n            container.appendChild(el);\n            this.shadow_el.appendChild(container);\n            const configuration = this.getConfiguration();\n            this.tabulator = new Tabulator(el, configuration);\n            this.watch_stylesheets();\n            this.init_callbacks();\n        }\n        style_redraw() {\n            if (this.model.visible) {\n                this.tabulator.element.style.visibility = \"visible\";\n            }\n            if (!this._initializing && !this._building) {\n                this.redraw();\n            }\n        }\n        tableInit() {\n            this._building = true;\n            // Patch the ajax request and page data parsing methods\n            const ajax = this.tabulator.modules.ajax;\n            ajax.sendRequest = (_url, params, _config) => {\n                return this.requestPage(params.page, params.sort);\n            };\n            this.tabulator.modules.page._parseRemoteData = () => {\n                return false;\n            };\n        }\n        init_callbacks() {\n            // Initialization\n            this.tabulator.on(\"tableBuilding\", () => this.tableInit());\n            this.tabulator.on(\"tableBuilt\", () => this.tableBuilt());\n            // Rendering callbacks\n            this.tabulator.on(\"selectableRowsCheck\", (row) => {\n                const selectable = this.model.selectable_rows;\n                return (selectable == null) || selectable.includes(row._row.data._index);\n            });\n            this.tabulator.on(\"tooltips\", (cell) => {\n                return `${cell.getColumn().getField()}: ${cell.getValue()}`;\n            });\n            this.tabulator.on(\"scrollVertical\", (0, debounce_1.debounce)(() => {\n                this.setStyles();\n            }, 50, false));\n            // Sync state with model\n            this.tabulator.on(\"rowSelectionChanged\", (data, rows, selected, deselected) => {\n                this.rowSelectionChanged(data, rows, selected, deselected);\n            });\n            this.tabulator.on(\"rowClick\", (e, row) => this.rowClicked(e, row));\n            this.tabulator.on(\"cellEdited\", (cell) => this.cellEdited(cell));\n            this.tabulator.on(\"dataFiltering\", (filters) => {\n                this.record_scroll();\n                this.model.filters = filters;\n            });\n            this.tabulator.on(\"dataFiltered\", (_, rows) => {\n                if (this._building) {\n                    return;\n                }\n                // Ensure that after filtering empty scroll renders\n                if (rows.length === 0) {\n                    this.tabulator.rowManager.renderEmptyScroll();\n                }\n                if (this.model.pagination != null) {\n                    // Ensure that after filtering the page is updated\n                    this.updatePage(this.tabulator.getPage());\n                }\n            });\n            this.tabulator.on(\"pageLoaded\", (pageno) => {\n                this.updatePage(pageno);\n            });\n            this.tabulator.on(\"renderComplete\", () => {\n                if (this._building) {\n                    return;\n                }\n                this.postUpdate();\n            });\n            this.tabulator.on(\"dataSorting\", (sorters) => {\n                const sorts = [];\n                for (const s of sorters) {\n                    if (s.field !== \"_index\") {\n                        sorts.push({ field: s.field, dir: s.dir });\n                    }\n                }\n                if (this.model.pagination !== \"remote\") {\n                    this._updating_sort = true;\n                    this.model.sorters = sorts.reverse();\n                    this._updating_sort = false;\n                }\n            });\n        }\n        tableBuilt() {\n            this.setSelection();\n            this.renderChildren();\n            this.setStyles();\n            // Track scrolling position and active scroll\n            const holder = this.shadow_el.querySelector(\".tabulator-tableholder\");\n            let scroll_timeout;\n            if (holder) {\n                holder.addEventListener(\"scroll\", () => {\n                    this.record_scroll();\n                    this._is_scrolling = true;\n                    clearTimeout(scroll_timeout);\n                    scroll_timeout = setTimeout(() => {\n                        this._is_scrolling = false;\n                    }, 200);\n                });\n            }\n            if (this.model.pagination) {\n                this.setMaxPage();\n                this.tabulator.setPage(this.model.page);\n            }\n            this._building = false;\n            (0, util_1.schedule_when)(() => {\n                const initializing = this._initializing;\n                this._initializing = false;\n                if (initializing) {\n                    this._resize_redraw();\n                }\n            }, () => this.has_finished() && [...this._initialized_stylesheets.values()].every(v => v));\n        }\n        recompute_page_size() {\n            if (!this.model.pagination || (this.model.page_size !== null && !this._automatic_page_size) || this._initializing || !this.tabulator) {\n                return;\n            }\n            this._automatic_page_size = true;\n            const responsive = this.model.sizing_mode && (this.model.sizing_mode.includes(\"height\") || this.model.sizing_mode.includes(\"both\"));\n            const holder = this.shadow_el.querySelector(\".tabulator-tableholder\");\n            const table = this.shadow_el.querySelector(\".tabulator-table\");\n            if (table != null && holder != null) {\n                const table_height = holder.clientHeight;\n                let height = 0;\n                let page_size = null;\n                const heights = [];\n                for (let i = 0; i < table.children.length; i++) {\n                    const row_height = table.children[i].clientHeight;\n                    heights.push(row_height);\n                    height += row_height;\n                    if (height > table_height) {\n                        page_size = i;\n                        if (responsive) {\n                            page_size -= 1;\n                        }\n                        break;\n                    }\n                }\n                if (height < table_height) {\n                    page_size = table.children.length;\n                    const remaining = table_height - height;\n                    page_size += Math.floor(remaining / Math.min(...heights));\n                    if (responsive) {\n                        page_size -= 1;\n                    }\n                }\n                this._updating_page_size = true;\n                try {\n                    this.model.page_size = Math.max(page_size || 1, 1);\n                }\n                finally {\n                    this._updating_page_size = false;\n                }\n            }\n        }\n        requestPage(page, sorters) {\n            return new Promise((resolve, reject) => {\n                try {\n                    if (page != null && sorters != null) {\n                        this._updating_sort = true;\n                        const sorts = [];\n                        for (const s of sorters) {\n                            if (s.field !== \"_index\") {\n                                sorts.push({ field: s.field, dir: s.dir });\n                            }\n                        }\n                        this.model.sorters = sorts;\n                        this._updating_sort = false;\n                        this._updating_page = true;\n                        try {\n                            this.model.page = page || 1;\n                        }\n                        finally {\n                            this._updating_page = false;\n                        }\n                    }\n                    resolve([]);\n                }\n                catch (err) {\n                    reject(err);\n                }\n            });\n        }\n        getLayout() {\n            const layout = this.model.layout;\n            switch (layout) {\n                case \"fit_data\":\n                    return \"fitData\";\n                case \"fit_data_fill\":\n                    return \"fitDataFill\";\n                case \"fit_data_stretch\":\n                    return \"fitDataStretch\";\n                case \"fit_data_table\":\n                    return \"fitDataTable\";\n                case \"fit_columns\":\n                    return \"fitColumns\";\n            }\n        }\n        getConfiguration() {\n            // Only use selectable mode if explicitly requested otherwise manually handle selections\n            const selectableRows = this.model.select_mode === \"toggle\" ? true : NaN;\n            const configuration = {\n                ...(0, util_1.transformJsPlaceholders)(this.model.configuration),\n                index: \"_index\",\n                nestedFieldSeparator: false,\n                movableColumns: false,\n                selectableRows,\n                columns: this.getColumns(),\n                initialSort: this.sorters,\n                layout: this.getLayout(),\n                pagination: this.model.pagination != null,\n                paginationMode: this.model.pagination,\n                paginationSize: this.model.page_size || 20,\n                paginationInitialPage: 1,\n                popupContainer: this.model.container_popup && this.container,\n                groupBy: this.groupBy,\n                frozenRows: (row) => {\n                    return (this.model.frozen_rows.length > 0) ? this.model.frozen_rows.includes(row._row.data._index) : false;\n                },\n                rowFormatter: (row) => this._render_row(row, false),\n            };\n            if (this.model.max_height != null) {\n                configuration.maxHeight = this.model.max_height;\n            }\n            if (this.model.pagination === \"remote\") {\n                configuration.ajaxURL = \"http://panel.pyviz.org\";\n                configuration.sortMode = \"remote\";\n            }\n            const data = this.getData();\n            return {\n                ...configuration,\n                data,\n            };\n        }\n        get_child(idx) {\n            if (this.model.children instanceof Map) {\n                return this.model.children.get(idx) || null;\n            }\n            return null;\n        }\n        get child_models() {\n            const children = [];\n            for (const idx of this.model.expanded) {\n                const child = this.get_child(idx);\n                if (child != null) {\n                    children.push(child);\n                }\n            }\n            return children;\n        }\n        get row_index() {\n            const rows = this.tabulator.getRows();\n            const lookup = new Map();\n            for (const row of rows) {\n                const index = row._row?.data._index;\n                if (index != null) {\n                    lookup.set(index, row);\n                }\n            }\n            return lookup;\n        }\n        renderChildren() {\n            void new Promise(async () => {\n                await this.build_child_views();\n                const lookup = this.row_index;\n                const expanded = this.model.expanded;\n                for (const index of expanded) {\n                    const model = this.get_child(index);\n                    const row = lookup.get(index);\n                    const view = model == null ? null : this._child_views.get(model);\n                    if (view != null) {\n                        this._render_row(row, index === expanded[expanded.length - 1]);\n                    }\n                }\n            });\n        }\n        _render_row(row, resize = true) {\n            const index = row._row?.data._index;\n            if (!this.model.expanded.includes(index)) {\n                return;\n            }\n            const model = this.get_child(index);\n            const view = model == null ? null : this._child_views.get(model);\n            if (view == null) {\n                return;\n            }\n            (0, util_1.schedule_when)(() => {\n                const rowEl = row.getElement();\n                const style = getComputedStyle(this.tabulator.element.children[1].children[0]);\n                const bg = style.backgroundColor;\n                const neg_margin = rowEl.style.paddingLeft ? `-${rowEl.style.paddingLeft}` : \"0\";\n                const prev_child = rowEl.children[rowEl.children.length - 1];\n                let viewEl;\n                if (prev_child != null && prev_child.className == \"row-content\") {\n                    viewEl = prev_child;\n                    if (viewEl.children.length && viewEl.children[0] === view.el) {\n                        return;\n                    }\n                }\n                else {\n                    viewEl = (0, dom_2.div)({ class: \"row-content\", style: { background_color: bg, margin_left: neg_margin, max_width: \"100%\", overflow_x: \"hidden\" } });\n                    rowEl.appendChild(viewEl);\n                }\n                (0, dom_1.display)(view.el);\n                viewEl.appendChild(view.el);\n                if (view.shadow_el.children.length === 0) {\n                    this.rerender_(view);\n                }\n                if (resize) {\n                    this._update_children();\n                    this.resize_table();\n                }\n            }, () => this.has_finished());\n        }\n        resize_table() {\n            if (this.tabulator.rowManager.renderer != null) {\n                try {\n                    this.tabulator.rowManager.adjustTableSize();\n                }\n                catch (e) { }\n            }\n            this.invalidate_layout();\n        }\n        _expand_render(cell) {\n            const index = cell._cell.row.data._index;\n            const icon = this.model.expanded.indexOf(index) < 0 ? \"►\" : \"▼\";\n            return icon;\n        }\n        _update_expand(cell) {\n            const index = cell._cell.row.data._index;\n            const expanded = [...this.model.expanded];\n            if (!expanded.includes(index)) {\n                expanded.push(index);\n            }\n            else {\n                const exp_index = expanded.indexOf(index);\n                const removed = expanded.splice(exp_index, 1)[0];\n                const model = this.get_child(removed);\n                if (model != null) {\n                    const view = this._child_views.get(model);\n                    if (view !== undefined && view.el != null) {\n                        (0, dom_1.undisplay)(view.el);\n                    }\n                }\n            }\n            this._updating_expanded = true;\n            this.model.expanded = expanded;\n            this._updating_expanded = false;\n            if (!expanded.includes(index)) {\n                return;\n            }\n            let ready = true;\n            for (const idx of this.model.expanded) {\n                if (this.get_child(idx) == null) {\n                    ready = false;\n                    break;\n                }\n            }\n            if (ready) {\n                this.renderChildren();\n            }\n        }\n        getData() {\n            const cds = this.model.source;\n            let data;\n            if (cds === null || (cds.columns().length === 0)) {\n                data = [];\n            }\n            else {\n                data = (0, data_1.transform_cds_to_records)(cds, true);\n            }\n            if (this.model.configuration.dataTree) {\n                data = group_data(data, this.model.columns, this.model.indexes, this.model.aggregators);\n            }\n            return data;\n        }\n        getColumns() {\n            this.columns = new Map();\n            const config_columns = (0, util_1.transformJsPlaceholders)(this.model.configuration?.columns);\n            const columns = [];\n            columns.push({ field: \"_index\", frozen: true, visible: false });\n            if (config_columns != null) {\n                for (const column of config_columns) {\n                    const new_column = clone_column(column);\n                    if (column.formatter === \"expand\") {\n                        const expand = {\n                            hozAlign: \"center\",\n                            cellClick: (_, cell) => {\n                                this._update_expand(cell);\n                            },\n                            formatter: (cell) => {\n                                return this._expand_render(cell);\n                            },\n                            width: 40,\n                            frozen: true,\n                        };\n                        columns.push(expand);\n                    }\n                    else {\n                        if (new_column.formatter === \"rowSelection\") {\n                            new_column.cellClick = (_, cell) => {\n                                cell.getRow().toggleSelect();\n                            };\n                        }\n                        columns.push(new_column);\n                    }\n                }\n            }\n            for (const column of this.model.columns) {\n                let tab_column = null;\n                if (config_columns != null) {\n                    for (const col of columns) {\n                        tab_column = find_column(col, column.field);\n                        if (tab_column != null) {\n                            break;\n                        }\n                    }\n                }\n                if (tab_column == null) {\n                    tab_column = { field: column.field };\n                }\n                this.columns.set(column.field, tab_column);\n                if (tab_column.title == null) {\n                    tab_column.title = column.title;\n                }\n                if (tab_column.headerTooltip === undefined) {\n                    tab_column.headerTooltip = true;\n                }\n                if (tab_column.width == null && column.width != null && column.width != 0) {\n                    tab_column.width = column.width;\n                }\n                if (tab_column.formatter == null && column.formatter != null) {\n                    const formatter = column.formatter;\n                    const ftype = formatter.type;\n                    if (ftype === \"BooleanFormatter\") {\n                        tab_column.formatter = \"tickCross\";\n                    }\n                    else {\n                        tab_column.formatter = (cell) => {\n                            const row = cell.getRow();\n                            const formatted = column.formatter.doFormat(cell.getRow(), cell, cell.getValue(), null, row.getData());\n                            if (column.formatter.type === \"HTMLTemplateFormatter\") {\n                                return formatted;\n                            }\n                            const node = (0, dom_2.div)();\n                            node.innerHTML = formatted;\n                            const child = node.children[0];\n                            if (child.innerHTML === \"function(){return c.convert(arguments)}\") { // If the formatter fails\n                                return \"\";\n                            }\n                            return child;\n                        };\n                    }\n                }\n                if (tab_column.sorter == \"timestamp\") {\n                    tab_column.sorter = timestampSorter;\n                }\n                if (tab_column.sorter === undefined) {\n                    tab_column.sorter = \"string\";\n                }\n                const editor = column.editor;\n                const ctype = editor.type;\n                if (tab_column.editor != null) {\n                    if (tab_column.editor === \"date\") {\n                        tab_column.editor = dateEditor;\n                    }\n                    else if (tab_column.editor === \"datetime\") {\n                        tab_column.editor = datetimeEditor;\n                    }\n                    else if (tab_column.editor === \"nested\") {\n                        tab_column.editorParams.valuesLookup = (cell) => {\n                            return nestedEditor(cell, tab_column.editorParams);\n                        };\n                        tab_column.editor = \"list\";\n                    }\n                }\n                else if (ctype === \"StringEditor\") {\n                    if (editor.completions.length > 0) {\n                        tab_column.editor = \"list\";\n                        tab_column.editorParams = { values: editor.completions, autocomplete: true, listOnEmpty: true };\n                    }\n                    else {\n                        tab_column.editor = \"input\";\n                    }\n                }\n                else if (ctype === \"TextEditor\") {\n                    tab_column.editor = \"textarea\";\n                }\n                else if (ctype === \"IntEditor\" || ctype === \"NumberEditor\") {\n                    tab_column.editor = \"number\";\n                    tab_column.editorParams = { step: editor.step };\n                    if (ctype === \"IntEditor\") {\n                        tab_column.validator = \"integer\";\n                    }\n                    else {\n                        tab_column.validator = \"numeric\";\n                    }\n                }\n                else if (ctype === \"CheckboxEditor\") {\n                    tab_column.editor = \"tickCross\";\n                }\n                else if (ctype === \"DateEditor\") {\n                    tab_column.editor = dateEditor;\n                }\n                else if (ctype === \"SelectEditor\") {\n                    tab_column.editor = \"list\";\n                    tab_column.editorParams = { values: editor.options };\n                }\n                else if (editor != null && editor.default_view != null) {\n                    tab_column.editor = (cell, onRendered, success, cancel) => {\n                        this.renderEditor(column, cell, onRendered, success, cancel);\n                    };\n                }\n                tab_column.visible = (tab_column.visible != false && !this.model.hidden_columns.includes(column.field));\n                const originalEditable = tab_column.editable;\n                if ((0, types_1.isFunction)(originalEditable)) {\n                    tab_column.editable = (cell) => (this.model.editable && (editor.default_view != null) && originalEditable(cell));\n                }\n                else if ((0, types_1.isBoolean)(originalEditable)) {\n                    tab_column.editable = () => (this.model.editable && (editor.default_view != null) && originalEditable);\n                }\n                else {\n                    tab_column.editable = () => (this.model.editable && (editor.default_view != null));\n                }\n                if (tab_column.headerFilter) {\n                    if ((0, types_1.isBoolean)(tab_column.headerFilter) && (0, types_1.isString)(tab_column.editor)) {\n                        tab_column.headerFilter = tab_column.editor;\n                        tab_column.headerFilterParams = tab_column.editorParams;\n                    }\n                }\n                for (const sort of this.model.sorters) {\n                    if (tab_column.field === sort.field) {\n                        tab_column.headerSortStartingDir = sort.dir;\n                    }\n                }\n                tab_column.cellClick = (_, cell) => {\n                    const index = cell.getData()._index;\n                    const event = new CellClickEvent(column.field, index);\n                    this.model.trigger_event(event);\n                };\n                if (config_columns == null) {\n                    columns.push(tab_column);\n                }\n            }\n            for (const col in this.model.buttons) {\n                const button_formatter = () => {\n                    return this.model.buttons[col];\n                };\n                const button_column = {\n                    formatter: button_formatter,\n                    hozAlign: \"center\",\n                    cellClick: (_, cell) => {\n                        const index = cell.getData()._index;\n                        const event = new CellClickEvent(col, index);\n                        this.model.trigger_event(event);\n                    },\n                };\n                columns.push(button_column);\n            }\n            if (this.model.container_popup && (this.model.layout !== \"fit_data_stretch\")) {\n                // We insert an empty last column to ensure select editor is rendered in correct position\n                // see: https://github.com/holoviz/panel/issues/7295\n                columns.push({ width: 1, maxWidth: 1, minWidth: 1, resizable: false, cssClass: \"empty\", sorter: null });\n            }\n            return columns;\n        }\n        renderEditor(column, cell, onRendered, success, cancel) {\n            const editor = column.editor;\n            const view = new editor.default_view({ column, model: editor, parent: this, container: cell._cell.element });\n            view.initialize();\n            view.connect_signals();\n            onRendered(() => {\n                view.setValue(cell.getValue());\n            });\n            view.inputEl.addEventListener(\"input\", () => {\n                const value = view.serializeValue();\n                const old_value = cell.getValue();\n                const validation = view.validate();\n                if (!validation.valid) {\n                    cancel(validation.msg);\n                }\n                if (old_value != null && typeof value != typeof old_value) {\n                    cancel(\"Mismatching type\");\n                }\n                else {\n                    success(view.serializeValue());\n                }\n            });\n            return view.inputEl;\n        }\n        // Update table\n        setData() {\n            if (this._initializing || this._building || !this.tabulator.initialized) {\n                return Promise.resolve(undefined);\n            }\n            const data = this.getData();\n            if (this.model.pagination != null) {\n                return this.tabulator.rowManager.setData(data, true, false);\n            }\n            else {\n                return this.tabulator.setData(data);\n            }\n        }\n        addData() {\n            const rows = this.tabulator.rowManager.getRows();\n            const last_row = rows[rows.length - 1];\n            const start = ((last_row?.data._index) || 0);\n            this._updating_page = true;\n            const promise = this.setData();\n            if (this.model.follow) {\n                promise.then(() => {\n                    if (this.model.pagination) {\n                        this.tabulator.setPage(Math.ceil(this.tabulator.rowManager.getDataCount() / (this.model.page_size || 20)));\n                    }\n                    if (last_row) {\n                        this.tabulator.scrollToRow(start, \"top\", false);\n                    }\n                    this._updating_page = false;\n                });\n            }\n            else {\n                this._updating_page = true;\n            }\n        }\n        postUpdate() {\n            this.setSelection();\n            this.setStyles();\n            if (this._restore_scroll) {\n                const vertical = this._restore_scroll === \"horizontal\" ? false : true;\n                const horizontal = this._restore_scroll === \"vertical\" ? false : true;\n                this.restore_scroll(horizontal, vertical);\n                this._restore_scroll = false;\n            }\n        }\n        updateOrAddData() {\n            // To avoid double updating the tabulator data\n            if (this._tabulator_cell_updating) {\n                return;\n            }\n            // Temporarily set minHeight to avoid \"scroll-to-top\" issues caused\n            // by Tabulator JS entirely destroying the table when .setData is called.\n            // Inspired by https://github.com/olifolkerd/tabulator/issues/4155\n            const prev_minheight = this.tabulator.element.style.minHeight;\n            this.tabulator.element.style.minHeight = `${this.tabulator.element.offsetHeight}px`;\n            const data = (0, data_1.transform_cds_to_records)(this.model.source, true);\n            this.tabulator.setData(data).then(() => {\n                this.tabulator.element.style.minHeight = prev_minheight;\n            });\n        }\n        setFrozen() {\n            for (const row of this.model.frozen_rows) {\n                this.tabulator.getRow(row).freeze();\n            }\n        }\n        setVisibility() {\n            if (this.tabulator == null) {\n                return;\n            }\n            this.tabulator.element.style.visibility = this.model.visible ? \"visible\" : \"hidden\";\n        }\n        updatePage(pageno) {\n            if (this.model.pagination === \"local\" && this.model.page !== pageno && !this._updating_page) {\n                this._updating_page = true;\n                this.model.page = pageno;\n                this._updating_page = false;\n                this.setStyles();\n            }\n        }\n        setGroupBy() {\n            this.tabulator.setGroupBy(this.groupBy);\n        }\n        setSorters() {\n            if (this._updating_sort) {\n                return;\n            }\n            this.tabulator.setSort(this.sorters);\n        }\n        setStyles() {\n            const style_data = this.model.cell_styles.data;\n            if (this.tabulator == null || this.tabulator.getDataCount() == 0 || style_data == null || !style_data.size) {\n                return;\n            }\n            this._applied_styles = false;\n            for (const r of style_data.keys()) {\n                const row_style = style_data.get(r);\n                const row = this.tabulator.getRow(r);\n                if (!row) {\n                    continue;\n                }\n                const cells = row._row.cells;\n                for (const c of row_style.keys()) {\n                    const style = row_style.get(c);\n                    const cell = cells[c];\n                    if (cell == null || !style.length) {\n                        continue;\n                    }\n                    const element = cell.element;\n                    for (const s of style) {\n                        let prop, value;\n                        if ((0, types_1.isArray)(s)) {\n                            [prop, value] = s;\n                        }\n                        else if (!s.includes(\":\")) {\n                            continue;\n                        }\n                        else {\n                            [prop, value] = s.split(\":\");\n                        }\n                        element.style.setProperty(prop, value.trimLeft());\n                        this._applied_styles = true;\n                    }\n                }\n            }\n        }\n        setHidden() {\n            for (const column of this.tabulator.getColumns()) {\n                const col = column._column;\n                if ((col.field == \"_index\") || this.model.hidden_columns.includes(col.field)) {\n                    column.hide();\n                }\n                else {\n                    column.show();\n                }\n            }\n        }\n        setMaxPage() {\n            this.tabulator.setMaxPage(this.model.max_page);\n            if (this.tabulator.modules.page.pagesElement) {\n                this.tabulator.modules.page._setPageButtons();\n            }\n        }\n        setPage() {\n            this.tabulator.setPage(Math.min(this.model.max_page, this.model.page));\n            if (this.model.pagination === \"local\") {\n                this.setStyles();\n            }\n        }\n        setPageSize() {\n            if (!this._updating_page_size) {\n                this._automatic_page_size = false;\n            }\n            this.tabulator.setPageSize(this.model.page_size);\n            if (this.model.pagination === \"local\") {\n                this.setStyles();\n            }\n        }\n        setSelection() {\n            if (this.tabulator == null || this._initializing || this._selection_updating || !this.tabulator.initialized) {\n                return;\n            }\n            const indices = this.model.source.selected.indices;\n            const current_indices = this.tabulator.getSelectedData().map((row) => row._index);\n            if (JSON.stringify(indices) == JSON.stringify(current_indices)) {\n                return;\n            }\n            this._selection_updating = true;\n            this.tabulator.deselectRow();\n            this.tabulator.selectRow(indices);\n            for (const index of indices) {\n                const row = this.tabulator.rowManager.findRow(index);\n                if (row) {\n                    this.tabulator.scrollToRow(index, \"center\", false).catch(() => { });\n                }\n            }\n            this._selection_updating = false;\n        }\n        restore_scroll(horizontal = true, vertical = true) {\n            if (!(horizontal || vertical)) {\n                return;\n            }\n            const opts = { behavior: \"instant\" };\n            if (vertical) {\n                opts.top = this._lastVerticalScrollbarTopPosition;\n            }\n            if (horizontal) {\n                opts.left = this._lastHorizontalScrollbarLeftPosition;\n            }\n            setTimeout(() => {\n                this._updating_scroll = true;\n                this.tabulator.rowManager.element.scrollTo(opts);\n                this._updating_scroll = false;\n            }, 0);\n        }\n        // Update model\n        record_scroll() {\n            if (this._updating_scroll) {\n                return;\n            }\n            this._lastVerticalScrollbarTopPosition = this.tabulator.rowManager.element.scrollTop;\n            this._lastHorizontalScrollbarLeftPosition = this.tabulator.rowManager.element.scrollLeft;\n        }\n        rowClicked(e, row) {\n            if (this._selection_updating ||\n                this._initializing ||\n                (0, types_1.isString)(this.model.select_mode) ||\n                this.model.select_mode === false || // selection disabled\n                this.model.configuration.dataTree || // dataTree does not support selection\n                e.srcElement?.innerText === \"►\" // expand button\n            ) {\n                return;\n            }\n            let indices = [];\n            const selected = this.model.source.selected;\n            const index = row._row.data._index;\n            if (e.ctrlKey || e.metaKey) {\n                indices = [...selected.indices];\n            }\n            else if (e.shiftKey && this._last_selected_row) {\n                const rows = row._row.parent.getDisplayRows();\n                const start_idx = rows.indexOf(this._last_selected_row);\n                if (start_idx !== -1) {\n                    const end_idx = rows.indexOf(row._row);\n                    const reverse = start_idx > end_idx;\n                    const [start, end] = reverse ? [end_idx + 1, start_idx + 1] : [start_idx, end_idx];\n                    indices = rows.slice(start, end).map((r) => r.data._index);\n                    if (reverse) {\n                        indices = indices.reverse();\n                    }\n                }\n            }\n            const flush = !(e.ctrlKey || e.metaKey || e.shiftKey);\n            const includes = indices.includes(index);\n            const remote = this.model.pagination === \"remote\";\n            // Toggle the index on or off (if remote we let Python do the toggling)\n            if (!includes || remote) {\n                indices.push(index);\n            }\n            else {\n                indices.splice(indices.indexOf(index), 1);\n            }\n            // Remove the first selected indices when selectable is an int.\n            if ((0, types_1.isNumber)(this.model.select_mode)) {\n                while (indices.length > this.model.select_mode) {\n                    indices.shift();\n                }\n            }\n            const filtered = this._filter_selected(indices);\n            if (!remote) {\n                this.tabulator.deselectRow();\n                this.tabulator.selectRow(filtered);\n            }\n            this._last_selected_row = row._row;\n            this._selection_updating = true;\n            if (!remote) {\n                selected.indices = filtered;\n            }\n            this.model.trigger_event(new SelectionEvent(indices, !includes, flush));\n            this._selection_updating = false;\n        }\n        _filter_selected(indices) {\n            const filtered = [];\n            for (const ind of indices) {\n                if (this.model.selectable_rows == null ||\n                    this.model.selectable_rows.indexOf(ind) >= 0) {\n                    filtered.push(ind);\n                }\n            }\n            return filtered;\n        }\n        rowSelectionChanged(data, _row, selected, deselected) {\n            if (this._selection_updating ||\n                this._initializing ||\n                (0, types_1.isBoolean)(this.model.select_mode) ||\n                (0, types_1.isNumber)(this.model.select_mode) ||\n                this.model.configuration.dataTree) {\n                return;\n            }\n            if (this.model.pagination === \"remote\") {\n                const selected_indices = selected.map((x) => x._row.data._index);\n                const deselected_indices = deselected.map((x) => x._row.data._index);\n                if (selected_indices.length > 0) {\n                    this._selection_updating = true;\n                    this.model.trigger_event(new SelectionEvent(selected_indices, true, false));\n                }\n                if (deselected_indices.length > 0) {\n                    this._selection_updating = true;\n                    this.model.trigger_event(new SelectionEvent(deselected_indices, false, false));\n                }\n            }\n            else {\n                const indices = data.map((row) => row._index);\n                const filtered = this._filter_selected(indices);\n                this._selection_updating = indices.length === filtered.length;\n                this.model.source.selected.indices = filtered;\n            }\n            this._selection_updating = false;\n        }\n        cellEdited(cell) {\n            const field = cell._cell.column.field;\n            const column_def = this.columns.get(field);\n            const index = cell.getData()._index;\n            const value = cell._cell.value;\n            if (column_def.validator === \"numeric\" && value === \"\") {\n                cell.setValue(NaN, true);\n                return;\n            }\n            this._tabulator_cell_updating = true;\n            comm_manager_1.comm_settings.debounce = false;\n            this.model.trigger_event(new TableEditEvent(field, index, true));\n            try {\n                this.model.source.patch({ [field]: [[index, value]] });\n            }\n            finally {\n                comm_manager_1.comm_settings.debounce = true;\n                this._tabulator_cell_updating = false;\n            }\n            this.model.trigger_event(new TableEditEvent(field, index, false));\n            this.tabulator.scrollToRow(index, \"top\", false);\n        }\n    }\n    exports.DataTabulatorView = DataTabulatorView;\n    DataTabulatorView.__name__ = \"DataTabulatorView\";\n    exports.TableLayout = (0, kinds_1.Enum)(\"fit_data\", \"fit_data_fill\", \"fit_data_stretch\", \"fit_data_table\", \"fit_columns\");\n    // The Bokeh .ts model corresponding to the Bokeh .py model\n    class DataTabulator extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.DataTabulator = DataTabulator;\n    _d = DataTabulator;\n    DataTabulator.__name__ = \"DataTabulator\";\n    DataTabulator.__module__ = \"panel.models.tabulator\";\n    (() => {\n        _d.prototype.default_view = DataTabulatorView;\n        _d.define(({ Any, List, Bool, Nullable, Float, Ref, Str }) => ({\n            aggregators: [Any, {}],\n            buttons: [Any, {}],\n            children: [Any, new Map()],\n            configuration: [Any, {}],\n            columns: [List(Ref(tables_1.TableColumn)), []],\n            download: [Bool, false],\n            editable: [Bool, true],\n            embed_content: [Bool, false],\n            expanded: [List(Float), []],\n            filename: [Str, \"table.csv\"],\n            filters: [List(Any), []],\n            follow: [Bool, true],\n            frozen_rows: [List(Float), []],\n            groupby: [List(Str), []],\n            hidden_columns: [List(Str), []],\n            indexes: [List(Str), []],\n            layout: [exports.TableLayout, \"fit_data\"],\n            max_page: [Float, 0],\n            pagination: [Nullable(Str), null],\n            page: [Float, 0],\n            page_size: [Nullable(Float), null],\n            select_mode: [Any, true],\n            selectable_rows: [Nullable(List(Float)), null],\n            source: [Ref(column_data_source_1.ColumnDataSource)],\n            sorters: [List(Any), []],\n            cell_styles: [Any, {}],\n            theme_classes: [List(Str), []],\n            container_popup: [Bool, true],\n        }));\n    })();\n}\n","min_source":"function _(t,e,i,s,o){var l,n,a,r;s();const d=t(\"tslib\"),h=t(\"@bokehjs/core/dom\"),c=t(\"@bokehjs/core/util/arrayable\"),u=t(\"@bokehjs/core/util/types\"),_=t(\"@bokehjs/core/bokeh_events\"),g=t(\"@bokehjs/core/dom\"),m=t(\"@bokehjs/core/kinds\"),p=t(\"@bokehjs/models/sources/column_data_source\"),f=t(\"@bokehjs/models/widgets/tables\"),b=t(\"99a25e6992\"),w=t(\"1bec1b1fcc\"),y=t(\"be689f0377\"),x=t(\"dab42e6dad\"),v=t(\"a3669a897a\"),z=d.__importDefault(t(\"3d732ff91f\"));class S extends _.ModelEvent{constructor(t,e,i){super(),this.column=t,this.row=e,this.pre=i}get event_values(){return{model:this.origin,column:this.column,row:this.row,pre:this.pre}}}i.TableEditEvent=S,l=S,S.__name__=\"TableEditEvent\",l.prototype.event_name=\"table-edit\";class M extends _.ModelEvent{constructor(t,e){super(),this.column=t,this.row=e}get event_values(){return{model:this.origin,column:this.column,row:this.row}}}i.CellClickEvent=M,n=M,M.__name__=\"CellClickEvent\",n.prototype.event_name=\"cell-click\";class T extends _.ModelEvent{constructor(t,e,i=!1){super(),this.indices=t,this.selected=e,this.flush=i}get event_values(){return{model:this.origin,indices:this.indices,selected:this.selected,flush:this.flush}}}function C(t,e,i){for(const s of i)if(s[t]==e)return s;return null}function E(t,e,i,s=0){const o={};if(0==t.length)return o;let l=\"\";s>0&&(l=i[s-1]);for(const n of t){const t=E(n._children,e,i,s+1);for(const e in t)(0,u.isArray)(t[e])?n[e]=(0,c.sum)(t[e])/t[e].length:n[e]=t[e];for(const t of e.slice(1)){let e=\"\";\"string\"==typeof l?e=l:t.field in l&&(e=l[t.field]);const i=n[t.field];if(t.field in o){const s=o[t.field];\"min\"===e?o[t.field]=i<s?i:s:\"max\"===e?o[t.field]=i>s?i:s:\"sum\"===e?o[t.field]=i+s:\"mean\"===e&&((0,u.isArray)(o[t.field])?o[t.field].push(i):o[t.field]=[s,i])}else o[t.field]=i}}return o}function D(t,e,i,s){const o=[],l=e[0].field;for(const s of t){const t=s[i[0]];let n=C(l,t,o);null==n&&(n={_children:[]},n[l]=t,o.push(n));let a=n;for(const t of i.slice(1)){a=C(l,s[t],a._children),null==a&&(a={_children:[]},a[l]=s[t],n._children.push(a));for(const t of e.slice(1))a[t.field]=s[t];n=a}for(const t of e.slice(1))a[t.field]=s[t.field]}const n=[];for(const t of i)t in s?s[t]instanceof Map?n.push(Object.fromEntries(s[t])):n.push(s[t]):n.push(\"sum\");return E(o,e,n),o}i.SelectionEvent=T,a=T,T.__name__=\"SelectionEvent\",a.prototype.event_name=\"selection-change\";const k=function(t,e,i,s,o,l,n){let a;a=0;const r={zone:new window.luxon.IANAZone(\"UTC\")};if(t=Number.isNaN(t)?window.luxon.DateTime.fromISO(\"invalid\"):window.luxon.DateTime.fromMillis(t,r),e=Number.isNaN(e)?window.luxon.DateTime.fromISO(\"invalid\"):window.luxon.DateTime.fromMillis(e,r),t.isValid){if(e.isValid)return t-e;a=1}else a=e.isValid?-1:0;return a*=-1,a},P=function(t,e,i,s){const o=t.getValue(),l={zone:new window.luxon.IANAZone(\"UTC\")};let n;n=\"NaN\"===o||null===o?null:window.luxon.DateTime.fromMillis(o,l).toFormat(\"yyyy-MM-dd\");const a=document.createElement(\"input\");function r(){const t=window.luxon.DateTime.fromFormat(a.value,\"yyyy-MM-dd\",l).toMillis();t!=n?i(t):s()}return a.setAttribute(\"type\",\"date\"),a.style.padding=\"4px\",a.style.width=\"100%\",a.style.boxSizing=\"border-box\",a.value=n,e((()=>{a.focus(),a.style.height=\"100%\"})),a.addEventListener(\"blur\",r),a.addEventListener(\"keydown\",(t=>{\"Enter\"==t.key&&setTimeout(r,100),\"Escape\"==t.key&&setTimeout(s,100)})),a},L=function(t,e,i,s){const o=t.getValue(),l={zone:new window.luxon.IANAZone(\"UTC\")};let n;n=\"NaN\"===o||null===o?null:window.luxon.DateTime.fromMillis(o,l).toFormat(\"yyyy-MM-dd'T'T\");const a=document.createElement(\"input\");function r(){const t=window.luxon.DateTime.fromFormat(a.value,\"yyyy-MM-dd'T'T\",l).toMillis();t!=n?i(t):s()}return a.setAttribute(\"type\",\"datetime-local\"),a.style.padding=\"4px\",a.style.width=\"100%\",a.style.boxSizing=\"border-box\",a.value=n,e((()=>{a.focus(),a.style.height=\"100%\"})),a.addEventListener(\"blur\",r),a.addEventListener(\"keydown\",(t=>{\"Enter\"==t.key&&setTimeout(r,100),\"Escape\"==t.key&&setTimeout(s,100)})),a},R=function(t,e){const i=t.getRow().getData();let s=e.options;for(const t of e.lookup_order)if(s=i[t]in s?s[i[t]]:[],Array.isArray(s))break;return s||[]};function N(t,e){if(null==t.columns)return t.field===e?t:null;for(const i of t.columns){const t=N(i,e);if(t)return t}}function F(t){if(null==t.columns)return{...t};const e=[];for(const i of t.columns)e.push(F(i));return{...t,columns:e}}class V extends x.HTMLBoxView{constructor(){super(...arguments),this.columns=new Map,this.container=null,this._tabulator_cell_updating=!1,this._updating_page=!1,this._updating_expanded=!1,this._updating_sort=!1,this._updating_page_size=!1,this._selection_updating=!1,this._last_selected_row=null,this._lastVerticalScrollbarTopPosition=0,this._lastHorizontalScrollbarLeftPosition=0,this._applied_styles=!1,this._building=!1,this._redrawing=!1,this._debounced_redraw=null,this._restore_scroll=!1,this._updating_scroll=!1,this._is_scrolling=!1,this._automatic_page_size=!1}connect_signals(){super.connect_signals(),this._debounced_redraw=(0,b.debounce)((()=>this._resize_redraw()),20,!1);const{configuration:t,layout:e,columns:i,groupby:s,visible:o,download:l,children:n,expanded:a,cell_styles:r,hidden_columns:d,page_size:h,page:c,max_page:u,frozen_rows:_,sorters:g,theme_classes:m}=this.model.properties;this.on_change([t,e,s],(0,b.debounce)((()=>{this.invalidate_render()}),20,!1)),this.on_change(o,(()=>{this.model.visible&&(this.tabulator.element.style.visibility=\"visible\")})),this.on_change(i,(()=>{this.tabulator.setColumns(this.getColumns()),this.setHidden()})),this.on_change(l,(()=>{const t=this.model.filename.endsWith(\".json\")?\"json\":\"csv\";this.tabulator.download(t,this.model.filename)})),this.on_change(n,(()=>this.renderChildren())),this.on_change(a,(()=>{for(const t of this.tabulator.rowManager.getRows())t.cells.length>0&&t.cells[0].layoutElement();for(const t of this.tabulator.rowManager.getRows())if(t.cells.length>0){const e=t.data._index,i=this.model.expanded.includes(e)?\"\\u25bc\":\"\\u25ba\";t.cells[1].element.innerText=i}this.model.embed_content&&!this._updating_expanded&&this.renderChildren()})),this.on_change(r,(()=>{this._applied_styles&&this.tabulator.redraw(!0),this.setStyles()})),this.on_change(d,(()=>{this.setHidden(),this.tabulator.redraw(!0)})),this.on_change(h,(()=>this.setPageSize())),this.on_change(c,(()=>{this._updating_page||this.setPage()})),this.on_change(o,(()=>this.setVisibility())),this.on_change(u,(()=>this.setMaxPage())),this.on_change(_,(()=>this.setFrozen())),this.on_change(g,(()=>this.setSorters())),this.on_change(m,(()=>this.setCSSClasses(this.tabulator.element))),this.on_change(this.model.source.properties.data,(()=>{void 0!==this.tabulator&&(this._restore_scroll=\"horizontal\",this._selection_updating=!0,this._updating_scroll=!0,this.setData(),this._updating_scroll=!1,this._selection_updating=!1,this.postUpdate())})),this.connect(this.model.source.streaming,(()=>this.addData())),this.connect(this.model.source.patching,(()=>{const t=this.model.source.selected.indices;this._updating_scroll=!0,this.updateOrAddData(),this._updating_scroll=!1,this.model.source.selected.indices=t,this.restore_scroll()})),this.connect(this.model.source.selected.change,(()=>this.setSelection())),this.connect(this.model.source.selected.properties.indices.change,(()=>this.setSelection()))}get groupBy(){return this.model.groupby.length>0&&(t=>{const e=[];for(const i of this.model.groupby){const s=`${i}: ${t[i]}`;e.push(s)}return e.join(\", \")})}get sorters(){const t=[];this.model.sorters.length>0&&t.push({column:\"_index\",dir:\"asc\"});for(const e of this.model.sorters.reverse())void 0===e.column&&(e.column=e.field),t.push(e);return t}invalidate_render(){this.tabulator?.destroy(),this.tabulator=null,this.rerender_()}redraw(t=!0,e=!0){this._building||null==this.tabulator||this._redrawing||(this._redrawing=!0,t&&null!=this.tabulator.columnManager.element&&this.tabulator.columnManager.redraw(!0),e&&null!=this.tabulator.rowManager.renderer&&(this.tabulator.rowManager.redraw(!0),this.setStyles()),this._redrawing=!1,this._restore_scroll=!0)}get is_drawing(){return this._building||this._redrawing||!this.has_finished()}after_layout(){super.after_layout(),null!=this.tabulator&&this._initializing&&!this.is_drawing&&(this._initializing=!1,this._resize_redraw())}after_resize(){super.after_resize(),this._is_scrolling||this._initializing||this.is_drawing||this._debounced_redraw()}_resize_redraw(){if(this._initializing||!this.container||this._building)return;const t=this.container.clientWidth,e=this.container.clientHeight;t&&e&&(this.redraw(!0,!0),this.restore_scroll(),requestAnimationFrame((()=>this.recompute_page_size())))}stylesheets(){return[...super.stylesheets(),z.default]}setCSSClasses(t){t.className=\"pnx-tabulator tabulator\";for(const e of this.model.theme_classes)t.classList.add(e)}remove(){this.tabulator?.destroy(),super.remove()}render(){this.tabulator?.destroy(),super.render(),this._initializing=!0,this._building=!0;const t=(0,g.div)({style:{display:\"contents\"}}),e=(0,g.div)({style:{width:\"100%\",height:\"100%\",visibility:\"hidden\"}});this.container=e,this.setCSSClasses(e),t.appendChild(e),this.shadow_el.appendChild(t);const i=this.getConfiguration();this.tabulator=new Tabulator(e,i),this.watch_stylesheets(),this.init_callbacks()}style_redraw(){this.model.visible&&(this.tabulator.element.style.visibility=\"visible\"),this._initializing||this._building||this.redraw()}tableInit(){this._building=!0;this.tabulator.modules.ajax.sendRequest=(t,e,i)=>this.requestPage(e.page,e.sort),this.tabulator.modules.page._parseRemoteData=()=>!1}init_callbacks(){this.tabulator.on(\"tableBuilding\",(()=>this.tableInit())),this.tabulator.on(\"tableBuilt\",(()=>this.tableBuilt())),this.tabulator.on(\"selectableRowsCheck\",(t=>{const e=this.model.selectable_rows;return null==e||e.includes(t._row.data._index)})),this.tabulator.on(\"tooltips\",(t=>`${t.getColumn().getField()}: ${t.getValue()}`)),this.tabulator.on(\"scrollVertical\",(0,b.debounce)((()=>{this.setStyles()}),50,!1)),this.tabulator.on(\"rowSelectionChanged\",((t,e,i,s)=>{this.rowSelectionChanged(t,e,i,s)})),this.tabulator.on(\"rowClick\",((t,e)=>this.rowClicked(t,e))),this.tabulator.on(\"cellEdited\",(t=>this.cellEdited(t))),this.tabulator.on(\"dataFiltering\",(t=>{this.record_scroll(),this.model.filters=t})),this.tabulator.on(\"dataFiltered\",((t,e)=>{this._building||(0===e.length&&this.tabulator.rowManager.renderEmptyScroll(),null!=this.model.pagination&&this.updatePage(this.tabulator.getPage()))})),this.tabulator.on(\"pageLoaded\",(t=>{this.updatePage(t)})),this.tabulator.on(\"renderComplete\",(()=>{this._building||this.postUpdate()})),this.tabulator.on(\"dataSorting\",(t=>{const e=[];for(const i of t)\"_index\"!==i.field&&e.push({field:i.field,dir:i.dir});\"remote\"!==this.model.pagination&&(this._updating_sort=!0,this.model.sorters=e.reverse(),this._updating_sort=!1)}))}tableBuilt(){this.setSelection(),this.renderChildren(),this.setStyles();const t=this.shadow_el.querySelector(\".tabulator-tableholder\");let e;t&&t.addEventListener(\"scroll\",(()=>{this.record_scroll(),this._is_scrolling=!0,clearTimeout(e),e=setTimeout((()=>{this._is_scrolling=!1}),200)})),this.model.pagination&&(this.setMaxPage(),this.tabulator.setPage(this.model.page)),this._building=!1,(0,v.schedule_when)((()=>{const t=this._initializing;this._initializing=!1,t&&this._resize_redraw()}),(()=>this.has_finished()&&[...this._initialized_stylesheets.values()].every((t=>t))))}recompute_page_size(){if(!this.model.pagination||null!==this.model.page_size&&!this._automatic_page_size||this._initializing||!this.tabulator)return;this._automatic_page_size=!0;const t=this.model.sizing_mode&&(this.model.sizing_mode.includes(\"height\")||this.model.sizing_mode.includes(\"both\")),e=this.shadow_el.querySelector(\".tabulator-tableholder\"),i=this.shadow_el.querySelector(\".tabulator-table\");if(null!=i&&null!=e){const s=e.clientHeight;let o=0,l=null;const n=[];for(let e=0;e<i.children.length;e++){const a=i.children[e].clientHeight;if(n.push(a),o+=a,o>s){l=e,t&&(l-=1);break}}if(o<s){l=i.children.length;const e=s-o;l+=Math.floor(e/Math.min(...n)),t&&(l-=1)}this._updating_page_size=!0;try{this.model.page_size=Math.max(l||1,1)}finally{this._updating_page_size=!1}}}requestPage(t,e){return new Promise(((i,s)=>{try{if(null!=t&&null!=e){this._updating_sort=!0;const i=[];for(const t of e)\"_index\"!==t.field&&i.push({field:t.field,dir:t.dir});this.model.sorters=i,this._updating_sort=!1,this._updating_page=!0;try{this.model.page=t||1}finally{this._updating_page=!1}}i([])}catch(t){s(t)}}))}getLayout(){switch(this.model.layout){case\"fit_data\":return\"fitData\";case\"fit_data_fill\":return\"fitDataFill\";case\"fit_data_stretch\":return\"fitDataStretch\";case\"fit_data_table\":return\"fitDataTable\";case\"fit_columns\":return\"fitColumns\"}}getConfiguration(){const t=\"toggle\"===this.model.select_mode||NaN,e={...(0,v.transformJsPlaceholders)(this.model.configuration),index:\"_index\",nestedFieldSeparator:!1,movableColumns:!1,selectableRows:t,columns:this.getColumns(),initialSort:this.sorters,layout:this.getLayout(),pagination:null!=this.model.pagination,paginationMode:this.model.pagination,paginationSize:this.model.page_size||20,paginationInitialPage:1,popupContainer:this.model.container_popup&&this.container,groupBy:this.groupBy,frozenRows:t=>this.model.frozen_rows.length>0&&this.model.frozen_rows.includes(t._row.data._index),rowFormatter:t=>this._render_row(t,!1)};null!=this.model.max_height&&(e.maxHeight=this.model.max_height),\"remote\"===this.model.pagination&&(e.ajaxURL=\"http://panel.pyviz.org\",e.sortMode=\"remote\");const i=this.getData();return{...e,data:i}}get_child(t){return this.model.children instanceof Map&&this.model.children.get(t)||null}get child_models(){const t=[];for(const e of this.model.expanded){const i=this.get_child(e);null!=i&&t.push(i)}return t}get row_index(){const t=this.tabulator.getRows(),e=new Map;for(const i of t){const t=i._row?.data._index;null!=t&&e.set(t,i)}return e}renderChildren(){new Promise((async()=>{await this.build_child_views();const t=this.row_index,e=this.model.expanded;for(const i of e){const s=this.get_child(i),o=t.get(i);null!=(null==s?null:this._child_views.get(s))&&this._render_row(o,i===e[e.length-1])}}))}_render_row(t,e=!0){const i=t._row?.data._index;if(!this.model.expanded.includes(i))return;const s=this.get_child(i),o=null==s?null:this._child_views.get(s);null!=o&&(0,v.schedule_when)((()=>{const i=t.getElement(),s=getComputedStyle(this.tabulator.element.children[1].children[0]).backgroundColor,l=i.style.paddingLeft?`-${i.style.paddingLeft}`:\"0\",n=i.children[i.children.length-1];let a;if(null!=n&&\"row-content\"==n.className){if(a=n,a.children.length&&a.children[0]===o.el)return}else a=(0,g.div)({class:\"row-content\",style:{background_color:s,margin_left:l,max_width:\"100%\",overflow_x:\"hidden\"}}),i.appendChild(a);(0,h.display)(o.el),a.appendChild(o.el),0===o.shadow_el.children.length&&this.rerender_(o),e&&(this._update_children(),this.resize_table())}),(()=>this.has_finished()))}resize_table(){if(null!=this.tabulator.rowManager.renderer)try{this.tabulator.rowManager.adjustTableSize()}catch(t){}this.invalidate_layout()}_expand_render(t){const e=t._cell.row.data._index;return this.model.expanded.indexOf(e)<0?\"\\u25ba\":\"\\u25bc\"}_update_expand(t){const e=t._cell.row.data._index,i=[...this.model.expanded];if(i.includes(e)){const t=i.indexOf(e),s=i.splice(t,1)[0],o=this.get_child(s);if(null!=o){const t=this._child_views.get(o);void 0!==t&&null!=t.el&&(0,h.undisplay)(t.el)}}else i.push(e);if(this._updating_expanded=!0,this.model.expanded=i,this._updating_expanded=!1,!i.includes(e))return;let s=!0;for(const t of this.model.expanded)if(null==this.get_child(t)){s=!1;break}s&&this.renderChildren()}getData(){const t=this.model.source;let e;return e=null===t||0===t.columns().length?[]:(0,y.transform_cds_to_records)(t,!0),this.model.configuration.dataTree&&(e=D(e,this.model.columns,this.model.indexes,this.model.aggregators)),e}getColumns(){this.columns=new Map;const t=(0,v.transformJsPlaceholders)(this.model.configuration?.columns),e=[];if(e.push({field:\"_index\",frozen:!0,visible:!1}),null!=t)for(const i of t){const t=F(i);if(\"expand\"===i.formatter){const t={hozAlign:\"center\",cellClick:(t,e)=>{this._update_expand(e)},formatter:t=>this._expand_render(t),width:40,frozen:!0};e.push(t)}else\"rowSelection\"===t.formatter&&(t.cellClick=(t,e)=>{e.getRow().toggleSelect()}),e.push(t)}for(const i of this.model.columns){let s=null;if(null!=t)for(const t of e)if(s=N(t,i.field),null!=s)break;if(null==s&&(s={field:i.field}),this.columns.set(i.field,s),null==s.title&&(s.title=i.title),void 0===s.headerTooltip&&(s.headerTooltip=!0),null==s.width&&null!=i.width&&0!=i.width&&(s.width=i.width),null==s.formatter&&null!=i.formatter){const t=i.formatter.type;s.formatter=\"BooleanFormatter\"===t?\"tickCross\":t=>{const e=t.getRow(),s=i.formatter.doFormat(t.getRow(),t,t.getValue(),null,e.getData());if(\"HTMLTemplateFormatter\"===i.formatter.type)return s;const o=(0,g.div)();o.innerHTML=s;const l=o.children[0];return\"function(){return c.convert(arguments)}\"===l.innerHTML?\"\":l}}\"timestamp\"==s.sorter&&(s.sorter=k),void 0===s.sorter&&(s.sorter=\"string\");const o=i.editor,l=o.type;null!=s.editor?\"date\"===s.editor?s.editor=P:\"datetime\"===s.editor?s.editor=L:\"nested\"===s.editor&&(s.editorParams.valuesLookup=t=>R(t,s.editorParams),s.editor=\"list\"):\"StringEditor\"===l?o.completions.length>0?(s.editor=\"list\",s.editorParams={values:o.completions,autocomplete:!0,listOnEmpty:!0}):s.editor=\"input\":\"TextEditor\"===l?s.editor=\"textarea\":\"IntEditor\"===l||\"NumberEditor\"===l?(s.editor=\"number\",s.editorParams={step:o.step},s.validator=\"IntEditor\"===l?\"integer\":\"numeric\"):\"CheckboxEditor\"===l?s.editor=\"tickCross\":\"DateEditor\"===l?s.editor=P:\"SelectEditor\"===l?(s.editor=\"list\",s.editorParams={values:o.options}):null!=o&&null!=o.default_view&&(s.editor=(t,e,s,o)=>{this.renderEditor(i,t,e,s,o)}),s.visible=0!=s.visible&&!this.model.hidden_columns.includes(i.field);const n=s.editable;(0,u.isFunction)(n)?s.editable=t=>this.model.editable&&null!=o.default_view&&n(t):(0,u.isBoolean)(n)?s.editable=()=>this.model.editable&&null!=o.default_view&&n:s.editable=()=>this.model.editable&&null!=o.default_view,s.headerFilter&&(0,u.isBoolean)(s.headerFilter)&&(0,u.isString)(s.editor)&&(s.headerFilter=s.editor,s.headerFilterParams=s.editorParams);for(const t of this.model.sorters)s.field===t.field&&(s.headerSortStartingDir=t.dir);s.cellClick=(t,e)=>{const s=e.getData()._index,o=new M(i.field,s);this.model.trigger_event(o)},null==t&&e.push(s)}for(const t in this.model.buttons){const i={formatter:()=>this.model.buttons[t],hozAlign:\"center\",cellClick:(e,i)=>{const s=i.getData()._index,o=new M(t,s);this.model.trigger_event(o)}};e.push(i)}return this.model.container_popup&&\"fit_data_stretch\"!==this.model.layout&&e.push({width:1,maxWidth:1,minWidth:1,resizable:!1,cssClass:\"empty\",sorter:null}),e}renderEditor(t,e,i,s,o){const l=t.editor,n=new l.default_view({column:t,model:l,parent:this,container:e._cell.element});return n.initialize(),n.connect_signals(),i((()=>{n.setValue(e.getValue())})),n.inputEl.addEventListener(\"input\",(()=>{const t=n.serializeValue(),i=e.getValue(),l=n.validate();l.valid||o(l.msg),null!=i&&typeof t!=typeof i?o(\"Mismatching type\"):s(n.serializeValue())})),n.inputEl}setData(){if(this._initializing||this._building||!this.tabulator.initialized)return Promise.resolve(void 0);const t=this.getData();return null!=this.model.pagination?this.tabulator.rowManager.setData(t,!0,!1):this.tabulator.setData(t)}addData(){const t=this.tabulator.rowManager.getRows(),e=t[t.length-1],i=e?.data._index||0;this._updating_page=!0;const s=this.setData();this.model.follow?s.then((()=>{this.model.pagination&&this.tabulator.setPage(Math.ceil(this.tabulator.rowManager.getDataCount()/(this.model.page_size||20))),e&&this.tabulator.scrollToRow(i,\"top\",!1),this._updating_page=!1})):this._updating_page=!0}postUpdate(){if(this.setSelection(),this.setStyles(),this._restore_scroll){const t=\"horizontal\"!==this._restore_scroll,e=\"vertical\"!==this._restore_scroll;this.restore_scroll(e,t),this._restore_scroll=!1}}updateOrAddData(){if(this._tabulator_cell_updating)return;const t=this.tabulator.element.style.minHeight;this.tabulator.element.style.minHeight=`${this.tabulator.element.offsetHeight}px`;const e=(0,y.transform_cds_to_records)(this.model.source,!0);this.tabulator.setData(e).then((()=>{this.tabulator.element.style.minHeight=t}))}setFrozen(){for(const t of this.model.frozen_rows)this.tabulator.getRow(t).freeze()}setVisibility(){null!=this.tabulator&&(this.tabulator.element.style.visibility=this.model.visible?\"visible\":\"hidden\")}updatePage(t){\"local\"!==this.model.pagination||this.model.page===t||this._updating_page||(this._updating_page=!0,this.model.page=t,this._updating_page=!1,this.setStyles())}setGroupBy(){this.tabulator.setGroupBy(this.groupBy)}setSorters(){this._updating_sort||this.tabulator.setSort(this.sorters)}setStyles(){const t=this.model.cell_styles.data;if(null!=this.tabulator&&0!=this.tabulator.getDataCount()&&null!=t&&t.size){this._applied_styles=!1;for(const e of t.keys()){const i=t.get(e),s=this.tabulator.getRow(e);if(!s)continue;const o=s._row.cells;for(const t of i.keys()){const e=i.get(t),s=o[t];if(null==s||!e.length)continue;const l=s.element;for(const t of e){let e,i;if((0,u.isArray)(t))[e,i]=t;else{if(!t.includes(\":\"))continue;[e,i]=t.split(\":\")}l.style.setProperty(e,i.trimLeft()),this._applied_styles=!0}}}}}setHidden(){for(const t of this.tabulator.getColumns()){const e=t._column;\"_index\"==e.field||this.model.hidden_columns.includes(e.field)?t.hide():t.show()}}setMaxPage(){this.tabulator.setMaxPage(this.model.max_page),this.tabulator.modules.page.pagesElement&&this.tabulator.modules.page._setPageButtons()}setPage(){this.tabulator.setPage(Math.min(this.model.max_page,this.model.page)),\"local\"===this.model.pagination&&this.setStyles()}setPageSize(){this._updating_page_size||(this._automatic_page_size=!1),this.tabulator.setPageSize(this.model.page_size),\"local\"===this.model.pagination&&this.setStyles()}setSelection(){if(null==this.tabulator||this._initializing||this._selection_updating||!this.tabulator.initialized)return;const t=this.model.source.selected.indices,e=this.tabulator.getSelectedData().map((t=>t._index));if(JSON.stringify(t)!=JSON.stringify(e)){this._selection_updating=!0,this.tabulator.deselectRow(),this.tabulator.selectRow(t);for(const e of t){this.tabulator.rowManager.findRow(e)&&this.tabulator.scrollToRow(e,\"center\",!1).catch((()=>{}))}this._selection_updating=!1}}restore_scroll(t=!0,e=!0){if(!t&&!e)return;const i={behavior:\"instant\"};e&&(i.top=this._lastVerticalScrollbarTopPosition),t&&(i.left=this._lastHorizontalScrollbarLeftPosition),setTimeout((()=>{this._updating_scroll=!0,this.tabulator.rowManager.element.scrollTo(i),this._updating_scroll=!1}),0)}record_scroll(){this._updating_scroll||(this._lastVerticalScrollbarTopPosition=this.tabulator.rowManager.element.scrollTop,this._lastHorizontalScrollbarLeftPosition=this.tabulator.rowManager.element.scrollLeft)}rowClicked(t,e){if(this._selection_updating||this._initializing||(0,u.isString)(this.model.select_mode)||!1===this.model.select_mode||this.model.configuration.dataTree||\"\\u25ba\"===t.srcElement?.innerText)return;let i=[];const s=this.model.source.selected,o=e._row.data._index;if(t.ctrlKey||t.metaKey)i=[...s.indices];else if(t.shiftKey&&this._last_selected_row){const t=e._row.parent.getDisplayRows(),s=t.indexOf(this._last_selected_row);if(-1!==s){const o=t.indexOf(e._row),l=s>o,[n,a]=l?[o+1,s+1]:[s,o];i=t.slice(n,a).map((t=>t.data._index)),l&&(i=i.reverse())}}const l=!(t.ctrlKey||t.metaKey||t.shiftKey),n=i.includes(o),a=\"remote\"===this.model.pagination;if(!n||a?i.push(o):i.splice(i.indexOf(o),1),(0,u.isNumber)(this.model.select_mode))for(;i.length>this.model.select_mode;)i.shift();const r=this._filter_selected(i);a||(this.tabulator.deselectRow(),this.tabulator.selectRow(r)),this._last_selected_row=e._row,this._selection_updating=!0,a||(s.indices=r),this.model.trigger_event(new T(i,!n,l)),this._selection_updating=!1}_filter_selected(t){const e=[];for(const i of t)(null==this.model.selectable_rows||this.model.selectable_rows.indexOf(i)>=0)&&e.push(i);return e}rowSelectionChanged(t,e,i,s){if(!(this._selection_updating||this._initializing||(0,u.isBoolean)(this.model.select_mode)||(0,u.isNumber)(this.model.select_mode)||this.model.configuration.dataTree)){if(\"remote\"===this.model.pagination){const t=i.map((t=>t._row.data._index)),e=s.map((t=>t._row.data._index));t.length>0&&(this._selection_updating=!0,this.model.trigger_event(new T(t,!0,!1))),e.length>0&&(this._selection_updating=!0,this.model.trigger_event(new T(e,!1,!1)))}else{const e=t.map((t=>t._index)),i=this._filter_selected(e);this._selection_updating=e.length===i.length,this.model.source.selected.indices=i}this._selection_updating=!1}}cellEdited(t){const e=t._cell.column.field,i=this.columns.get(e),s=t.getData()._index,o=t._cell.value;if(\"numeric\"!==i.validator||\"\"!==o){this._tabulator_cell_updating=!0,w.comm_settings.debounce=!1,this.model.trigger_event(new S(e,s,!0));try{this.model.source.patch({[e]:[[s,o]]})}finally{w.comm_settings.debounce=!0,this._tabulator_cell_updating=!1}this.model.trigger_event(new S(e,s,!1)),this.tabulator.scrollToRow(s,\"top\",!1)}else t.setValue(NaN,!0)}}i.DataTabulatorView=V,V.__name__=\"DataTabulatorView\",i.TableLayout=(0,m.Enum)(\"fit_data\",\"fit_data_fill\",\"fit_data_stretch\",\"fit_data_table\",\"fit_columns\");class A extends x.HTMLBox{constructor(t){super(t)}}i.DataTabulator=A,r=A,A.__name__=\"DataTabulator\",A.__module__=\"panel.models.tabulator\",r.prototype.default_view=V,r.define((({Any:t,List:e,Bool:s,Nullable:o,Float:l,Ref:n,Str:a})=>({aggregators:[t,{}],buttons:[t,{}],children:[t,new Map],configuration:[t,{}],columns:[e(n(f.TableColumn)),[]],download:[s,!1],editable:[s,!0],embed_content:[s,!1],expanded:[e(l),[]],filename:[a,\"table.csv\"],filters:[e(t),[]],follow:[s,!0],frozen_rows:[e(l),[]],groupby:[e(a),[]],hidden_columns:[e(a),[]],indexes:[e(a),[]],layout:[i.TableLayout,\"fit_data\"],max_page:[l,0],pagination:[o(a),null],page:[l,0],page_size:[o(l),null],select_mode:[t,!0],selectable_rows:[o(e(l)),null],source:[n(p.ColumnDataSource)],sorters:[e(t),[]],cell_styles:[t,{}],theme_classes:[e(a),[]],container_popup:[s,!0]})))}\n//# sourceMappingURL=tabulator.min.js.map","min_map":"{\"version\":3,\"file\":\"tabulator.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"_b\",\"_c\",\"_d\",\"tslib_1\",\"dom_1\",\"arrayable_1\",\"types_1\",\"bokeh_events_1\",\"dom_2\",\"kinds_1\",\"column_data_source_1\",\"tables_1\",\"debounce_1\",\"comm_manager_1\",\"data_1\",\"layout_1\",\"util_1\",\"tabulator_css_1\",\"__importDefault\",\"TableEditEvent\",\"ModelEvent\",\"constructor\",\"column\",\"row\",\"pre\",\"super\",\"this\",\"event_values\",\"model\",\"origin\",\"__name__\",\"prototype\",\"event_name\",\"CellClickEvent\",\"SelectionEvent\",\"indices\",\"selected\",\"flush\",\"find_group\",\"key\",\"value\",\"records\",\"record\",\"summarize\",\"grouped\",\"columns\",\"aggregators\",\"depth\",\"summary\",\"length\",\"aggs\",\"group\",\"subsummary\",\"_children\",\"col\",\"isArray\",\"sum\",\"slice\",\"agg\",\"field\",\"val\",\"old_val\",\"push\",\"group_data\",\"indexes\",\"index_field\",\"subgroup\",\"index\",\"Map\",\"Object\",\"fromEntries\",\"timestampSorter\",\"a\",\"b\",\"_aRow\",\"_bRow\",\"_column\",\"_dir\",\"_params\",\"emptyAlign\",\"opts\",\"zone\",\"window\",\"luxon\",\"IANAZone\",\"Number\",\"isNaN\",\"DateTime\",\"fromISO\",\"fromMillis\",\"isValid\",\"dateEditor\",\"cell\",\"onRendered\",\"success\",\"cancel\",\"rawValue\",\"getValue\",\"cellValue\",\"toFormat\",\"input\",\"document\",\"createElement\",\"onChange\",\"new_val\",\"fromFormat\",\"toMillis\",\"setAttribute\",\"style\",\"padding\",\"width\",\"boxSizing\",\"focus\",\"height\",\"addEventListener\",\"e\",\"setTimeout\",\"datetimeEditor\",\"nestedEditor\",\"editorParams\",\"getRow\",\"getData\",\"values\",\"options\",\"i\",\"lookup_order\",\"Array\",\"find_column\",\"found\",\"clone_column\",\"group_columns\",\"DataTabulatorView\",\"HTMLBoxView\",\"arguments\",\"container\",\"_tabulator_cell_updating\",\"_updating_page\",\"_updating_expanded\",\"_updating_sort\",\"_updating_page_size\",\"_selection_updating\",\"_last_selected_row\",\"_lastVerticalScrollbarTopPosition\",\"_lastHorizontalScrollbarLeftPosition\",\"_applied_styles\",\"_building\",\"_redrawing\",\"_debounced_redraw\",\"_restore_scroll\",\"_updating_scroll\",\"_is_scrolling\",\"_automatic_page_size\",\"connect_signals\",\"debounce\",\"_resize_redraw\",\"configuration\",\"layout\",\"groupby\",\"visible\",\"download\",\"children\",\"expanded\",\"cell_styles\",\"hidden_columns\",\"page_size\",\"page\",\"max_page\",\"frozen_rows\",\"sorters\",\"theme_classes\",\"properties\",\"on_change\",\"invalidate_render\",\"tabulator\",\"element\",\"visibility\",\"setColumns\",\"getColumns\",\"setHidden\",\"ftype\",\"filename\",\"endsWith\",\"renderChildren\",\"rowManager\",\"getRows\",\"cells\",\"layoutElement\",\"data\",\"_index\",\"icon\",\"includes\",\"innerText\",\"embed_content\",\"redraw\",\"setStyles\",\"setPageSize\",\"setPage\",\"setVisibility\",\"setMaxPage\",\"setFrozen\",\"setSorters\",\"setCSSClasses\",\"source\",\"undefined\",\"setData\",\"postUpdate\",\"connect\",\"streaming\",\"addData\",\"patching\",\"inds\",\"updateOrAddData\",\"restore_scroll\",\"change\",\"setSelection\",\"groupBy\",\"groups\",\"g\",\"join\",\"dir\",\"sort\",\"reverse\",\"destroy\",\"rerender_\",\"rows\",\"columnManager\",\"renderer\",\"is_drawing\",\"has_finished\",\"after_layout\",\"_initializing\",\"after_resize\",\"clientWidth\",\"clientHeight\",\"requestAnimationFrame\",\"recompute_page_size\",\"stylesheets\",\"default\",\"el\",\"className\",\"cls\",\"classList\",\"add\",\"remove\",\"render\",\"div\",\"display\",\"appendChild\",\"shadow_el\",\"getConfiguration\",\"Tabulator\",\"watch_stylesheets\",\"init_callbacks\",\"style_redraw\",\"tableInit\",\"modules\",\"ajax\",\"sendRequest\",\"_url\",\"params\",\"_config\",\"requestPage\",\"_parseRemoteData\",\"on\",\"tableBuilt\",\"selectable\",\"selectable_rows\",\"_row\",\"getColumn\",\"getField\",\"deselected\",\"rowSelectionChanged\",\"rowClicked\",\"cellEdited\",\"filters\",\"record_scroll\",\"renderEmptyScroll\",\"pagination\",\"updatePage\",\"getPage\",\"pageno\",\"sorts\",\"s\",\"holder\",\"querySelector\",\"scroll_timeout\",\"clearTimeout\",\"schedule_when\",\"initializing\",\"_initialized_stylesheets\",\"every\",\"v\",\"responsive\",\"sizing_mode\",\"table\",\"table_height\",\"heights\",\"row_height\",\"remaining\",\"Math\",\"floor\",\"min\",\"max\",\"Promise\",\"resolve\",\"reject\",\"err\",\"getLayout\",\"selectableRows\",\"select_mode\",\"NaN\",\"transformJsPlaceholders\",\"nestedFieldSeparator\",\"movableColumns\",\"initialSort\",\"paginationMode\",\"paginationSize\",\"paginationInitialPage\",\"popupContainer\",\"container_popup\",\"frozenRows\",\"rowFormatter\",\"_render_row\",\"max_height\",\"maxHeight\",\"ajaxURL\",\"sortMode\",\"get_child\",\"idx\",\"get\",\"child_models\",\"child\",\"row_index\",\"lookup\",\"set\",\"async\",\"build_child_views\",\"_child_views\",\"resize\",\"view\",\"rowEl\",\"getElement\",\"bg\",\"getComputedStyle\",\"backgroundColor\",\"neg_margin\",\"paddingLeft\",\"prev_child\",\"viewEl\",\"class\",\"background_color\",\"margin_left\",\"max_width\",\"overflow_x\",\"_update_children\",\"resize_table\",\"adjustTableSize\",\"invalidate_layout\",\"_expand_render\",\"_cell\",\"indexOf\",\"_update_expand\",\"exp_index\",\"removed\",\"splice\",\"undisplay\",\"ready\",\"cds\",\"transform_cds_to_records\",\"dataTree\",\"config_columns\",\"frozen\",\"new_column\",\"formatter\",\"expand\",\"hozAlign\",\"cellClick\",\"toggleSelect\",\"tab_column\",\"title\",\"headerTooltip\",\"type\",\"formatted\",\"doFormat\",\"node\",\"innerHTML\",\"sorter\",\"editor\",\"ctype\",\"valuesLookup\",\"completions\",\"autocomplete\",\"listOnEmpty\",\"step\",\"validator\",\"default_view\",\"renderEditor\",\"originalEditable\",\"editable\",\"isFunction\",\"isBoolean\",\"headerFilter\",\"isString\",\"headerFilterParams\",\"headerSortStartingDir\",\"event\",\"trigger_event\",\"buttons\",\"button_column\",\"maxWidth\",\"minWidth\",\"resizable\",\"cssClass\",\"parent\",\"initialize\",\"setValue\",\"inputEl\",\"serializeValue\",\"old_value\",\"validation\",\"validate\",\"valid\",\"msg\",\"initialized\",\"last_row\",\"start\",\"promise\",\"follow\",\"then\",\"ceil\",\"getDataCount\",\"scrollToRow\",\"vertical\",\"horizontal\",\"prev_minheight\",\"minHeight\",\"offsetHeight\",\"freeze\",\"setGroupBy\",\"setSort\",\"style_data\",\"size\",\"r\",\"keys\",\"row_style\",\"c\",\"prop\",\"split\",\"setProperty\",\"trimLeft\",\"hide\",\"show\",\"pagesElement\",\"_setPageButtons\",\"current_indices\",\"getSelectedData\",\"map\",\"JSON\",\"stringify\",\"deselectRow\",\"selectRow\",\"findRow\",\"catch\",\"behavior\",\"top\",\"left\",\"scrollTo\",\"scrollTop\",\"scrollLeft\",\"srcElement\",\"ctrlKey\",\"metaKey\",\"shiftKey\",\"getDisplayRows\",\"start_idx\",\"end_idx\",\"end\",\"remote\",\"isNumber\",\"shift\",\"filtered\",\"_filter_selected\",\"ind\",\"selected_indices\",\"x\",\"deselected_indices\",\"column_def\",\"comm_settings\",\"patch\",\"TableLayout\",\"Enum\",\"DataTabulator\",\"HTMLBox\",\"attrs\",\"__module__\",\"define\",\"Any\",\"List\",\"Bool\",\"Nullable\",\"Float\",\"Ref\",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ACyF,EAAK,CAAC,GAChBhV,SAAU,CAACgV,EAAK,IAAI5a,KACpBuF,cAAe,CAACqV,EAAK,CAAC,GACtBnc,QAAS,CAACoc,EAAKI,EAAI1e,EAAS4e,cAAe,IAC3CxV,SAAU,CAACmV,GAAM,GACjBpG,SAAU,CAACoG,GAAM,GACjBlT,cAAe,CAACkT,GAAM,GACtBjV,SAAU,CAACgV,EAAKG,GAAQ,IACxBhU,SAAU,CAACkU,EAAK,aAChBpO,QAAS,CAAC+N,EAAKD,GAAM,IACrBrE,OAAQ,CAACuE,GAAM,GACf3U,YAAa,CAAC0U,EAAKG,GAAQ,IAC3BvV,QAAS,CAACoV,EAAKK,GAAM,IACrBnV,eAAgB,CAAC8U,EAAKK,GAAM,IAC5Btb,QAAS,CAACib,EAAKK,GAAM,IACrB1V,OAAQ,CAAChK,EAAQ6e,YAAa,YAC9BnU,SAAU,CAAC8U,EAAO,GAClB/N,WAAY,CAAC8N,EAASG,GAAM,MAC5BjV,KAAM,CAAC+U,EAAO,GACdhV,UAAW,CAAC+U,EAASC,GAAQ,MAC7B/L,YAAa,CAAC2L,GAAK,GACnBtO,gBAAiB,CAACyO,EAASF,EAAKG,IAAS,MACzC1S,OAAQ,CAAC2S,EAAI3e,EAAqB8e,mBAClChV,QAAS,CAACyU,EAAKD,GAAM,IACrB9U,YAAa,CAAC8U,EAAK,CAAC,GACpBvU,cAAe,CAACwU,EAAKK,GAAM,IAC3BvL,gBAAiB,CAACmL,GAAM,MAGpC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/debounce/index.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"debounce/index.js","resolution":"CJS","id":"99a25e6992","hash":"99a25e6992e3ac65efedc6025b816f8611d5c424b46a3a0c562dd83cf5c11c50","source":"/**\n * Returns a function, that, as long as it continues to be invoked, will not\n * be triggered. The function will be called after it stops being called for\n * N milliseconds. If `immediate` is passed, trigger the function on the\n * leading edge, instead of the trailing. The function also has a property 'clear' \n * that is a function which will clear the timer to prevent previously scheduled executions. \n *\n * @source underscore.js\n * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/\n * @param {Function} function to wrap\n * @param {Number} timeout in ms (`100`)\n * @param {Boolean} whether to execute at the beginning (`false`)\n * @api public\n */\nfunction debounce(func, wait, immediate){\n  var timeout, args, context, timestamp, result;\n  if (null == wait) wait = 100;\n\n  function later() {\n    var last = Date.now() - timestamp;\n\n    if (last < wait && last >= 0) {\n      timeout = setTimeout(later, wait - last);\n    } else {\n      timeout = null;\n      if (!immediate) {\n        result = func.apply(context, args);\n        context = args = null;\n      }\n    }\n  };\n\n  var debounced = function(){\n    context = this;\n    args = arguments;\n    timestamp = Date.now();\n    var callNow = immediate && !timeout;\n    if (!timeout) timeout = setTimeout(later, wait);\n    if (callNow) {\n      result = func.apply(context, args);\n      context = args = null;\n    }\n\n    return result;\n  };\n\n  debounced.clear = function() {\n    if (timeout) {\n      clearTimeout(timeout);\n      timeout = null;\n    }\n  };\n  \n  debounced.flush = function() {\n    if (timeout) {\n      result = func.apply(context, args);\n      context = args = null;\n      \n      clearTimeout(timeout);\n      timeout = null;\n    }\n  };\n\n  return debounced;\n};\n\n// Adds compatibility for ES modules\ndebounce.debounce = debounce;\n\nmodule.exports = debounce;\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* debounce/index.js */ function _(require, module, exports, __esModule, __esExport) {\n    /**\n     * Returns a function, that, as long as it continues to be invoked, will not\n     * be triggered. The function will be called after it stops being called for\n     * N milliseconds. If `immediate` is passed, trigger the function on the\n     * leading edge, instead of the trailing. The function also has a property 'clear'\n     * that is a function which will clear the timer to prevent previously scheduled executions.\n     *\n     * @source underscore.js\n     * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/\n     * @param {Function} function to wrap\n     * @param {Number} timeout in ms (`100`)\n     * @param {Boolean} whether to execute at the beginning (`false`)\n     * @api public\n     */\n    function debounce(func, wait, immediate) {\n        var timeout, args, context, timestamp, result;\n        if (null == wait)\n            wait = 100;\n        function later() {\n            var last = Date.now() - timestamp;\n            if (last < wait && last >= 0) {\n                timeout = setTimeout(later, wait - last);\n            }\n            else {\n                timeout = null;\n                if (!immediate) {\n                    result = func.apply(context, args);\n                    context = args = null;\n                }\n            }\n        }\n        ;\n        var debounced = function () {\n            context = this;\n            args = arguments;\n            timestamp = Date.now();\n            var callNow = immediate && !timeout;\n            if (!timeout)\n                timeout = setTimeout(later, wait);\n            if (callNow) {\n                result = func.apply(context, args);\n                context = args = null;\n            }\n            return result;\n        };\n        debounced.clear = function () {\n            if (timeout) {\n                clearTimeout(timeout);\n                timeout = null;\n            }\n        };\n        debounced.flush = function () {\n            if (timeout) {\n                result = func.apply(context, args);\n                context = args = null;\n                clearTimeout(timeout);\n                timeout = null;\n            }\n        };\n        return debounced;\n    }\n    ;\n    // Adds compatibility for ES modules\n    debounce.debounce = debounce;\n    module.exports = debounce;\n}\n","min_source":"function _(n,l,u,t,e){function o(n,l,u){var t,e,o,a,r;function i(){var c=Date.now()-a;c<l&&c>=0?t=setTimeout(i,l-c):(t=null,u||(r=n.apply(o,e),o=e=null))}null==l&&(l=100);var c=function(){o=this,e=arguments,a=Date.now();var c=u&&!t;return t||(t=setTimeout(i,l)),c&&(r=n.apply(o,e),o=e=null),r};return c.clear=function(){t&&(clearTimeout(t),t=null)},c.flush=function(){t&&(r=n.apply(o,e),o=e=null,clearTimeout(t),t=null)},c}o.debounce=o,l.exports=o}\n//# sourceMappingURL=index.min.js.map","min_map":"{\"version\":3,\"file\":\"index.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"debounce\",\"func\",\"wait\",\"immediate\",\"timeout\",\"args\",\"context\",\"timestamp\",\"result\",\"later\",\"last\",\"Date\",\"now\",\"setTimeout\",\"apply\",\"debounced\",\"this\",\"arguments\",\"callNow\",\"clear\",\"clearTimeout\",\"flush\"],\"sources\":[\"0\"],\"mappings\":\"AAAwB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAerE,SAASC,EAASC,EAAMC,EAAMC,GAC1B,IAAIC,EAASC,EAAMC,EAASC,EAAWC,EAGvC,SAASC,IACL,IAAIC,EAAOC,KAAKC,MAAQL,EACpBG,EAAOR,GAAQQ,GAAQ,EACvBN,EAAUS,WAAWJ,EAAOP,EAAOQ,IAGnCN,EAAU,KACLD,IACDK,EAASP,EAAKa,MAAMR,EAASD,GAC7BC,EAAUD,EAAO,MAG7B,CAdI,MAAQH,IACRA,EAAO,KAeX,IAAIa,EAAY,WACZT,EAAUU,KACVX,EAAOY,UACPV,EAAYI,KAAKC,MACjB,IAAIM,EAAUf,IAAcC,EAO5B,OANKA,IACDA,EAAUS,WAAWJ,EAAOP,IAC5BgB,IACAV,EAASP,EAAKa,MAAMR,EAASD,GAC7BC,EAAUD,EAAO,MAEdG,CACX,EAeA,OAdAO,EAAUI,MAAQ,WACVf,IACAgB,aAAahB,GACbA,EAAU,KAElB,EACAW,EAAUM,MAAQ,WACVjB,IACAI,EAASP,EAAKa,MAAMR,EAASD,GAC7BC,EAAUD,EAAO,KACjBe,aAAahB,GACbA,EAAU,KAElB,EACOW,CACX,CAGAf,EAASA,SAAWA,EACpBJ,EAAOC,QAAUG,CACrB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/data.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/data.js","canonical":"models/data","resolution":"ESM","id":"be689f0377","hash":"be689f03776afd729881df5d612c5d6fa0fd67e8be4dca650356125d1178509b","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.transform_cds_to_records = transform_cds_to_records;\nexports.dict_to_records = dict_to_records;\nconst types_1 = require(\"@bokehjs/core/util/types\");\nfunction transform_cds_to_records(cds, addId = false, start = 0) {\n    const data = [];\n    const columns = cds.columns();\n    const cdsLength = cds.get_length();\n    if (columns.length === 0 || cdsLength === null) {\n        return [];\n    }\n    for (let i = start; i < cdsLength; i++) {\n        const item = {};\n        for (const column of columns) {\n            const array = cds.get_array(column);\n            const shape = (array[0] == null || array[0].shape == null) ? null : array[0].shape;\n            if (shape != null && shape.length > 1 && (0, types_1.isNumber)(shape[0])) {\n                item[column] = array.slice(i * shape[1], i * shape[1] + shape[1]);\n            }\n            else if (array.length != cdsLength && (array.length % cdsLength === 0)) {\n                const offset = array.length / cdsLength;\n                item[column] = array.slice(i * offset, i * offset + offset);\n            }\n            else {\n                item[column] = array[i];\n            }\n        }\n        if (addId) {\n            item._index = i;\n        }\n        data.push(item);\n    }\n    return data;\n}\nfunction dict_to_records(data, index = true) {\n    const records = [];\n    for (let i = 0; i < data.index.length; i++) {\n        const record = {};\n        for (const col of data) {\n            if (index || col !== \"index\") {\n                record[col] = data[col][i];\n            }\n        }\n    }\n    return records;\n}\n//# sourceMappingURL=data.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"transform_cds_to_records"},{"type":"named","name":"dict_to_records"}],"externals":[],"shims":[]},"code":{"source":"/* models/data.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.transform_cds_to_records = transform_cds_to_records;\n    exports.dict_to_records = dict_to_records;\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    function transform_cds_to_records(cds, addId = false, start = 0) {\n        const data = [];\n        const columns = cds.columns();\n        const cdsLength = cds.get_length();\n        if (columns.length === 0 || cdsLength === null) {\n            return [];\n        }\n        for (let i = start; i < cdsLength; i++) {\n            const item = {};\n            for (const column of columns) {\n                const array = cds.get_array(column);\n                const shape = (array[0] == null || array[0].shape == null) ? null : array[0].shape;\n                if (shape != null && shape.length > 1 && (0, types_1.isNumber)(shape[0])) {\n                    item[column] = array.slice(i * shape[1], i * shape[1] + shape[1]);\n                }\n                else if (array.length != cdsLength && (array.length % cdsLength === 0)) {\n                    const offset = array.length / cdsLength;\n                    item[column] = array.slice(i * offset, i * offset + offset);\n                }\n                else {\n                    item[column] = array[i];\n                }\n            }\n            if (addId) {\n                item._index = i;\n            }\n            data.push(item);\n        }\n        return data;\n    }\n    function dict_to_records(data, index = true) {\n        const records = [];\n        for (let i = 0; i < data.index.length; i++) {\n            const record = {};\n            for (const col of data) {\n                if (index || col !== \"index\") {\n                    record[col] = data[col][i];\n                }\n            }\n        }\n        return records;\n    }\n}\n","min_source":"function _(n,e,t,l,o){l(),t.transform_cds_to_records=function(n,e=!1,t=0){const l=[],o=n.columns(),r=n.get_length();if(0===o.length||null===r)return[];for(let c=t;c<r;c++){const t={};for(const e of o){const l=n.get_array(e),o=null==l[0]||null==l[0].shape?null:l[0].shape;if(null!=o&&o.length>1&&(0,s.isNumber)(o[0]))t[e]=l.slice(c*o[1],c*o[1]+o[1]);else if(l.length!=r&&l.length%r==0){const n=l.length/r;t[e]=l.slice(c*n,c*n+n)}else t[e]=l[c]}e&&(t._index=c),l.push(t)}return l},t.dict_to_records=function(n,e=!0){for(let t=0;t<n.index.length;t++){const l={};for(const o of n)(e||\"index\"!==o)&&(l[o]=n[o][t])}return[]};const s=n(\"@bokehjs/core/util/types\")}\n//# sourceMappingURL=data.min.js.map","min_map":"{\"version\":3,\"file\":\"data.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"transform_cds_to_records\",\"cds\",\"addId\",\"start\",\"data\",\"columns\",\"cdsLength\",\"get_length\",\"length\",\"i\",\"item\",\"column\",\"array\",\"get_array\",\"shape\",\"types_1\",\"isNumber\",\"slice\",\"offset\",\"_index\",\"push\",\"dict_to_records\",\"index\",\"record\",\"col\"],\"sources\":[\"0\"],\"mappings\":\"AAAqB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAClED,IACAD,EAAQG,yBAGR,SAAkCC,EAAKC,GAAQ,EAAOC,EAAQ,GAC1D,MAAMC,EAAO,GACPC,EAAUJ,EAAII,UACdC,EAAYL,EAAIM,aACtB,GAAuB,IAAnBF,EAAQG,QAA8B,OAAdF,EACxB,MAAO,GAEX,IAAK,IAAIG,EAAIN,EAAOM,EAAIH,EAAWG,IAAK,CACpC,MAAMC,EAAO,CAAC,EACd,IAAK,MAAMC,KAAUN,EAAS,CAC1B,MAAMO,EAAQX,EAAIY,UAAUF,GACtBG,EAAqB,MAAZF,EAAM,IAAgC,MAAlBA,EAAM,GAAGE,MAAiB,KAAOF,EAAM,GAAGE,MAC7E,GAAa,MAATA,GAAiBA,EAAMN,OAAS,IAAK,EAAIO,EAAQC,UAAUF,EAAM,IACjEJ,EAAKC,GAAUC,EAAMK,MAAMR,EAAIK,EAAM,GAAIL,EAAIK,EAAM,GAAKA,EAAM,SAE7D,GAAIF,EAAMJ,QAAUF,GAAcM,EAAMJ,OAASF,GAAc,EAAI,CACpE,MAAMY,EAASN,EAAMJ,OAASF,EAC9BI,EAAKC,GAAUC,EAAMK,MAAMR,EAAIS,EAAQT,EAAIS,EAASA,EACxD,MAEIR,EAAKC,GAAUC,EAAMH,EAE7B,CACIP,IACAQ,EAAKS,OAASV,GAElBL,EAAKgB,KAAKV,EACd,CACA,OAAON,CACX,EA/BAP,EAAQwB,gBAgCR,SAAyBjB,EAAMkB,GAAQ,GAEnC,IAAK,IAAIb,EAAI,EAAGA,EAAIL,EAAKkB,MAAMd,OAAQC,IAAK,CACxC,MAAMc,EAAS,CAAC,EAChB,IAAK,MAAMC,KAAOpB,GACVkB,GAAiB,UAARE,KACTD,EAAOC,GAAOpB,EAAKoB,GAAKf,GAGpC,CACA,MATgB,EAUpB,EA1CA,MAAMM,EAAUpB,EAAQ,2BA2C5B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/styles/models/tabulator.css.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"styles/models/tabulator.css.js","canonical":"styles/models/tabulator.css","resolution":"ESM","id":"3d732ff91f","hash":"3d732ff91f96870b410dc8b036c24869d880fab23904fb3009568ec31d2ac968","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.panel_models_markup_HTML = void 0;\nexports.panel_models_markup_HTML = \"bk-panel-models-markup-HTML\";\nexports.default = `.pnx-tabulator.tabulator{overflow:visible;}.tabulator-table{max-width:max-content;}.tabulator-table .tabulator-row .row-content .bk-panel-models-markup-HTML{white-space:normal;}.tabulator-table .tabulator-cell.empty{min-width:0px !important;width:0px !important;padding:0px !important;}.tabulator-header .tabulator-col.empty{min-width:0px !important;width:100% !important;border-right:unset !important;}.tabulator-header .tabulator-col.empty .tabulator-col-content{padding:0px !important;}`;\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"default"}],"externals":[],"shims":[]},"code":{"source":"/* styles/models/tabulator.css.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.panel_models_markup_HTML = \"bk-panel-models-markup-HTML\";\n    exports.default = `.pnx-tabulator.tabulator{overflow:visible;}.tabulator-table{max-width:max-content;}.tabulator-table .tabulator-row .row-content .bk-panel-models-markup-HTML{white-space:normal;}.tabulator-table .tabulator-cell.empty{min-width:0px !important;width:0px !important;padding:0px !important;}.tabulator-header .tabulator-col.empty{min-width:0px !important;width:100% !important;border-right:unset !important;}.tabulator-header .tabulator-col.empty .tabulator-col-content{padding:0px !important;}`;\n}\n","min_source":"function _(t,a,o,r,l){r(),o.panel_models_markup_HTML=\"bk-panel-models-markup-HTML\",o.default=\".pnx-tabulator.tabulator{overflow:visible;}.tabulator-table{max-width:max-content;}.tabulator-table .tabulator-row .row-content .bk-panel-models-markup-HTML{white-space:normal;}.tabulator-table .tabulator-cell.empty{min-width:0px !important;width:0px !important;padding:0px !important;}.tabulator-header .tabulator-col.empty{min-width:0px !important;width:100% !important;border-right:unset !important;}.tabulator-header .tabulator-col.empty .tabulator-col-content{padding:0px !important;}\"}\n//# sourceMappingURL=tabulator.css.min.js.map","min_map":"{\"version\":3,\"file\":\"tabulator.css.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"panel_models_markup_HTML\",\"default\"],\"sources\":[\"0\"],\"mappings\":\"AAAqC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAClFD,IACAD,EAAQG,yBAA2B,8BACnCH,EAAQI,QAAU,2eACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/datetime_picker.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/datetime_picker.js","canonical":"models/datetime_picker","resolution":"ESM","id":"100965d6f3","hash":"100965d6f3e44d999249a4b5df952c4feba061d316c5caaef6fd9330d8ca8337","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DatetimePicker = exports.DatetimePickerView = void 0;\nconst tslib_1 = require(\"tslib\");\nconst flatpickr_1 = tslib_1.__importDefault(require(\"flatpickr\"));\nconst input_widget_1 = require(\"@bokehjs/models/widgets/input_widget\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst enums_1 = require(\"@bokehjs/core/enums\");\nconst types_1 = require(\"@bokehjs/core/util/types\");\nconst inputs = tslib_1.__importStar(require(\"@bokehjs/styles/widgets/inputs.css\"));\nconst flatpickr_css_1 = tslib_1.__importDefault(require(\"@bokehjs/styles/widgets/flatpickr.css\"));\nfunction _convert_date_list(value) {\n    const result = [];\n    for (const item of value) {\n        if ((0, types_1.isString)(item)) {\n            result.push(item);\n        }\n        else {\n            const [from, to] = item;\n            result.push({ from, to });\n        }\n    }\n    return result;\n}\nclass DatetimePickerView extends input_widget_1.InputWidgetView {\n    connect_signals() {\n        super.connect_signals();\n        const { value, min_date, max_date, disabled_dates, enabled_dates, inline, enable_time, enable_seconds, military_time, date_format, mode, } = this.model.properties;\n        this.on_change(value, () => this.model.value ? this._picker?.setDate(this.model.value) : this._clear());\n        this.on_change(min_date, () => this._picker?.set(\"minDate\", this.model.min_date));\n        this.on_change(max_date, () => this._picker?.set(\"maxDate\", this.model.max_date));\n        this.on_change(disabled_dates, () => {\n            const { disabled_dates } = this.model;\n            this._picker?.set(\"disable\", disabled_dates != null ? _convert_date_list(disabled_dates) : []);\n        });\n        this.on_change(enabled_dates, () => {\n            const { enabled_dates } = this.model;\n            if (enabled_dates != null) {\n                this._picker?.set(\"enable\", _convert_date_list(enabled_dates));\n            }\n            else {\n                // this reimplements `set()` for the `undefined` case\n                if (this._picker) {\n                    this._picker.config._enable = undefined;\n                    this._picker.redraw();\n                    this._picker.updateValue(true);\n                }\n            }\n        });\n        this.on_change(inline, () => this._picker?.set(\"inline\", this.model.inline));\n        this.on_change(enable_time, () => this._picker?.set(\"enableTime\", this.model.enable_time));\n        this.on_change(enable_seconds, () => this._picker?.set(\"enableSeconds\", this.model.enable_seconds));\n        this.on_change(military_time, () => this._picker?.set(\"time_24hr\", this.model.military_time));\n        this.on_change(mode, () => this._picker?.set(\"mode\", this.model.mode));\n        this.on_change(date_format, () => this._picker?.set(\"dateFormat\", this.model.date_format));\n    }\n    remove() {\n        this._picker?.destroy();\n        super.remove();\n    }\n    stylesheets() {\n        return [...super.stylesheets(), flatpickr_css_1.default];\n    }\n    _render_input() {\n        return this.input_el = (0, dom_1.input)({ type: \"text\", class: inputs.input, disabled: this.model.disabled });\n    }\n    render() {\n        if (this._picker != null) {\n            return;\n        }\n        super.render();\n        const options = {\n            allowInput: this.model.allow_input,\n            appendTo: this.group_el,\n            positionElement: this.input_el,\n            defaultDate: this.model.value,\n            inline: this.model.inline,\n            position: this._position.bind(this),\n            enableTime: this.model.enable_time,\n            enableSeconds: this.model.enable_seconds,\n            time_24hr: this.model.military_time,\n            dateFormat: this.model.date_format,\n            mode: this.model.mode,\n            onClose: (selected_dates, date_string, instance) => this._on_close(selected_dates, date_string, instance),\n        };\n        const { min_date, max_date, disabled_dates, enabled_dates } = this.model;\n        if (min_date != null) {\n            options.minDate = min_date;\n        }\n        if (max_date != null) {\n            options.maxDate = max_date;\n        }\n        if (disabled_dates != null) {\n            options.disable = _convert_date_list(disabled_dates);\n        }\n        if (enabled_dates != null) {\n            options.enable = _convert_date_list(enabled_dates);\n        }\n        this._picker = (0, flatpickr_1.default)(this.input_el, options);\n        this._picker.maxDateHasTime = true;\n        this._picker.minDateHasTime = true;\n    }\n    _clear() {\n        this._picker?.clear();\n        this.model.value = null;\n    }\n    _on_close(_selected_dates, date_string, _instance) {\n        if (this.model.mode == \"range\" && !date_string.includes(\"to\")) {\n            return;\n        }\n        this.model.value = date_string;\n        this.change_input();\n    }\n    _position(self, custom_el) {\n        // This function is copied directly from bokehs date_picker\n        const positionElement = custom_el ?? self._positionElement;\n        const calendarHeight = [...self.calendarContainer.children].reduce((acc, child) => acc + (0, dom_1.bounding_box)(child).height, 0);\n        const calendarWidth = self.calendarContainer.offsetWidth;\n        const configPos = this.model.position.split(\" \");\n        const configPosVertical = configPos[0];\n        const configPosHorizontal = configPos.length > 1 ? configPos[1] : null;\n        // const inputBounds = positionElement.getBoundingClientRect()\n        const inputBounds = {\n            top: positionElement.offsetTop,\n            bottom: positionElement.offsetTop + positionElement.offsetHeight,\n            left: positionElement.offsetLeft,\n            right: positionElement.offsetLeft + positionElement.offsetWidth,\n            width: positionElement.offsetWidth,\n        };\n        const distanceFromBottom = window.innerHeight - inputBounds.bottom;\n        const showOnTop = configPosVertical === \"above\" ||\n            (configPosVertical !== \"below\" &&\n                distanceFromBottom < calendarHeight &&\n                inputBounds.top > calendarHeight);\n        // const top =\n        //   window.scrollY +\n        //   inputBounds.top +\n        //   (!showOnTop ? positionElement.offsetHeight + 2 : -calendarHeight - 2)\n        const top = self.config.appendTo\n            ? inputBounds.top +\n                (!showOnTop ? positionElement.offsetHeight + 2 : -calendarHeight - 2)\n            : window.scrollY +\n                inputBounds.top +\n                (!showOnTop ? positionElement.offsetHeight + 2 : -calendarHeight - 2);\n        self.calendarContainer.classList.toggle(\"arrowTop\", !showOnTop);\n        self.calendarContainer.classList.toggle(\"arrowBottom\", showOnTop);\n        if (self.config.inline) {\n            return;\n        }\n        let left = window.scrollX + inputBounds.left;\n        let isCenter = false;\n        let isRight = false;\n        if (configPosHorizontal === \"center\") {\n            left -= (calendarWidth - inputBounds.width) / 2;\n            isCenter = true;\n        }\n        else if (configPosHorizontal === \"right\") {\n            left -= calendarWidth - inputBounds.width;\n            isRight = true;\n        }\n        self.calendarContainer.classList.toggle(\"arrowLeft\", !isCenter && !isRight);\n        self.calendarContainer.classList.toggle(\"arrowCenter\", isCenter);\n        self.calendarContainer.classList.toggle(\"arrowRight\", isRight);\n        const right = window.document.body.offsetWidth -\n            (window.scrollX + inputBounds.right);\n        const rightMost = left + calendarWidth > window.document.body.offsetWidth;\n        const centerMost = right + calendarWidth > window.document.body.offsetWidth;\n        self.calendarContainer.classList.toggle(\"rightMost\", rightMost);\n        if (self.config.static) {\n            return;\n        }\n        self.calendarContainer.style.top = `${top}px`;\n        if (!rightMost) {\n            self.calendarContainer.style.left = `${left}px`;\n            self.calendarContainer.style.right = \"auto\";\n        }\n        else if (!centerMost) {\n            self.calendarContainer.style.left = \"auto\";\n            self.calendarContainer.style.right = `${right}px`;\n        }\n        else {\n            const css = this.shadow_el.styleSheets[0];\n            const bodyWidth = window.document.body.offsetWidth;\n            const centerLeft = Math.max(0, bodyWidth / 2 - calendarWidth / 2);\n            const centerBefore = \".flatpickr-calendar.centerMost:before\";\n            const centerAfter = \".flatpickr-calendar.centerMost:after\";\n            const centerIndex = css.cssRules.length;\n            const centerStyle = `{left:${inputBounds.left}px;right:auto;}`;\n            self.calendarContainer.classList.toggle(\"rightMost\", false);\n            self.calendarContainer.classList.toggle(\"centerMost\", true);\n            css.insertRule(`${centerBefore},${centerAfter}${centerStyle}`, centerIndex);\n            self.calendarContainer.style.left = `${centerLeft}px`;\n            self.calendarContainer.style.right = \"auto\";\n        }\n    }\n}\nexports.DatetimePickerView = DatetimePickerView;\nDatetimePickerView.__name__ = \"DatetimePickerView\";\nclass DatetimePicker extends input_widget_1.InputWidget {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.DatetimePicker = DatetimePicker;\n_a = DatetimePicker;\nDatetimePicker.__name__ = \"DatetimePicker\";\nDatetimePicker.__module__ = \"panel.models.datetime_picker\";\n(() => {\n    _a.prototype.default_view = DatetimePickerView;\n    _a.define(({ Bool, Str, List, Tuple, Or, Nullable }) => {\n        const DateStr = Str;\n        const DatesList = List(Or(DateStr, Tuple(DateStr, DateStr)));\n        return {\n            allow_input: [Bool, false],\n            value: [Nullable(Str), null],\n            min_date: [Nullable(Str), null],\n            max_date: [Nullable(Str), null],\n            disabled_dates: [Nullable(DatesList), null],\n            enabled_dates: [Nullable(DatesList), null],\n            position: [enums_1.CalendarPosition, \"auto\"],\n            inline: [Bool, false],\n            enable_time: [Bool, true],\n            enable_seconds: [Bool, true],\n            military_time: [Bool, true],\n            date_format: [Str, \"Y-m-d H:i:S\"],\n            mode: [Str, \"single\"],\n        };\n    });\n})();\n//# sourceMappingURL=datetime_picker.js.map\n","type":"js","dependency_paths":[["flatpickr","/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/index.js"]],"dependency_map":[],"exported":[{"type":"named","name":"DatetimePickerView"},{"type":"named","name":"DatetimePicker"}],"externals":[],"shims":[]},"code":{"source":"/* models/datetime_picker.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const flatpickr_1 = tslib_1.__importDefault(require(\"1156ddcec2\") /* flatpickr */);\n    const input_widget_1 = require(\"@bokehjs/models/widgets/input_widget\");\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const enums_1 = require(\"@bokehjs/core/enums\");\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    const inputs = tslib_1.__importStar(require(\"@bokehjs/styles/widgets/inputs.css\"));\n    const flatpickr_css_1 = tslib_1.__importDefault(require(\"@bokehjs/styles/widgets/flatpickr.css\"));\n    function _convert_date_list(value) {\n        const result = [];\n        for (const item of value) {\n            if ((0, types_1.isString)(item)) {\n                result.push(item);\n            }\n            else {\n                const [from, to] = item;\n                result.push({ from, to });\n            }\n        }\n        return result;\n    }\n    class DatetimePickerView extends input_widget_1.InputWidgetView {\n        connect_signals() {\n            super.connect_signals();\n            const { value, min_date, max_date, disabled_dates, enabled_dates, inline, enable_time, enable_seconds, military_time, date_format, mode, } = this.model.properties;\n            this.on_change(value, () => this.model.value ? this._picker?.setDate(this.model.value) : this._clear());\n            this.on_change(min_date, () => this._picker?.set(\"minDate\", this.model.min_date));\n            this.on_change(max_date, () => this._picker?.set(\"maxDate\", this.model.max_date));\n            this.on_change(disabled_dates, () => {\n                const { disabled_dates } = this.model;\n                this._picker?.set(\"disable\", disabled_dates != null ? _convert_date_list(disabled_dates) : []);\n            });\n            this.on_change(enabled_dates, () => {\n                const { enabled_dates } = this.model;\n                if (enabled_dates != null) {\n                    this._picker?.set(\"enable\", _convert_date_list(enabled_dates));\n                }\n                else {\n                    // this reimplements `set()` for the `undefined` case\n                    if (this._picker) {\n                        this._picker.config._enable = undefined;\n                        this._picker.redraw();\n                        this._picker.updateValue(true);\n                    }\n                }\n            });\n            this.on_change(inline, () => this._picker?.set(\"inline\", this.model.inline));\n            this.on_change(enable_time, () => this._picker?.set(\"enableTime\", this.model.enable_time));\n            this.on_change(enable_seconds, () => this._picker?.set(\"enableSeconds\", this.model.enable_seconds));\n            this.on_change(military_time, () => this._picker?.set(\"time_24hr\", this.model.military_time));\n            this.on_change(mode, () => this._picker?.set(\"mode\", this.model.mode));\n            this.on_change(date_format, () => this._picker?.set(\"dateFormat\", this.model.date_format));\n        }\n        remove() {\n            this._picker?.destroy();\n            super.remove();\n        }\n        stylesheets() {\n            return [...super.stylesheets(), flatpickr_css_1.default];\n        }\n        _render_input() {\n            return this.input_el = (0, dom_1.input)({ type: \"text\", class: inputs.input, disabled: this.model.disabled });\n        }\n        render() {\n            if (this._picker != null) {\n                return;\n            }\n            super.render();\n            const options = {\n                allowInput: this.model.allow_input,\n                appendTo: this.group_el,\n                positionElement: this.input_el,\n                defaultDate: this.model.value,\n                inline: this.model.inline,\n                position: this._position.bind(this),\n                enableTime: this.model.enable_time,\n                enableSeconds: this.model.enable_seconds,\n                time_24hr: this.model.military_time,\n                dateFormat: this.model.date_format,\n                mode: this.model.mode,\n                onClose: (selected_dates, date_string, instance) => this._on_close(selected_dates, date_string, instance),\n            };\n            const { min_date, max_date, disabled_dates, enabled_dates } = this.model;\n            if (min_date != null) {\n                options.minDate = min_date;\n            }\n            if (max_date != null) {\n                options.maxDate = max_date;\n            }\n            if (disabled_dates != null) {\n                options.disable = _convert_date_list(disabled_dates);\n            }\n            if (enabled_dates != null) {\n                options.enable = _convert_date_list(enabled_dates);\n            }\n            this._picker = (0, flatpickr_1.default)(this.input_el, options);\n            this._picker.maxDateHasTime = true;\n            this._picker.minDateHasTime = true;\n        }\n        _clear() {\n            this._picker?.clear();\n            this.model.value = null;\n        }\n        _on_close(_selected_dates, date_string, _instance) {\n            if (this.model.mode == \"range\" && !date_string.includes(\"to\")) {\n                return;\n            }\n            this.model.value = date_string;\n            this.change_input();\n        }\n        _position(self, custom_el) {\n            // This function is copied directly from bokehs date_picker\n            const positionElement = custom_el ?? self._positionElement;\n            const calendarHeight = [...self.calendarContainer.children].reduce((acc, child) => acc + (0, dom_1.bounding_box)(child).height, 0);\n            const calendarWidth = self.calendarContainer.offsetWidth;\n            const configPos = this.model.position.split(\" \");\n            const configPosVertical = configPos[0];\n            const configPosHorizontal = configPos.length > 1 ? configPos[1] : null;\n            // const inputBounds = positionElement.getBoundingClientRect()\n            const inputBounds = {\n                top: positionElement.offsetTop,\n                bottom: positionElement.offsetTop + positionElement.offsetHeight,\n                left: positionElement.offsetLeft,\n                right: positionElement.offsetLeft + positionElement.offsetWidth,\n                width: positionElement.offsetWidth,\n            };\n            const distanceFromBottom = window.innerHeight - inputBounds.bottom;\n            const showOnTop = configPosVertical === \"above\" ||\n                (configPosVertical !== \"below\" &&\n                    distanceFromBottom < calendarHeight &&\n                    inputBounds.top > calendarHeight);\n            // const top =\n            //   window.scrollY +\n            //   inputBounds.top +\n            //   (!showOnTop ? positionElement.offsetHeight + 2 : -calendarHeight - 2)\n            const top = self.config.appendTo\n                ? inputBounds.top +\n                    (!showOnTop ? positionElement.offsetHeight + 2 : -calendarHeight - 2)\n                : window.scrollY +\n                    inputBounds.top +\n                    (!showOnTop ? positionElement.offsetHeight + 2 : -calendarHeight - 2);\n            self.calendarContainer.classList.toggle(\"arrowTop\", !showOnTop);\n            self.calendarContainer.classList.toggle(\"arrowBottom\", showOnTop);\n            if (self.config.inline) {\n                return;\n            }\n            let left = window.scrollX + inputBounds.left;\n            let isCenter = false;\n            let isRight = false;\n            if (configPosHorizontal === \"center\") {\n                left -= (calendarWidth - inputBounds.width) / 2;\n                isCenter = true;\n            }\n            else if (configPosHorizontal === \"right\") {\n                left -= calendarWidth - inputBounds.width;\n                isRight = true;\n            }\n            self.calendarContainer.classList.toggle(\"arrowLeft\", !isCenter && !isRight);\n            self.calendarContainer.classList.toggle(\"arrowCenter\", isCenter);\n            self.calendarContainer.classList.toggle(\"arrowRight\", isRight);\n            const right = window.document.body.offsetWidth -\n                (window.scrollX + inputBounds.right);\n            const rightMost = left + calendarWidth > window.document.body.offsetWidth;\n            const centerMost = right + calendarWidth > window.document.body.offsetWidth;\n            self.calendarContainer.classList.toggle(\"rightMost\", rightMost);\n            if (self.config.static) {\n                return;\n            }\n            self.calendarContainer.style.top = `${top}px`;\n            if (!rightMost) {\n                self.calendarContainer.style.left = `${left}px`;\n                self.calendarContainer.style.right = \"auto\";\n            }\n            else if (!centerMost) {\n                self.calendarContainer.style.left = \"auto\";\n                self.calendarContainer.style.right = `${right}px`;\n            }\n            else {\n                const css = this.shadow_el.styleSheets[0];\n                const bodyWidth = window.document.body.offsetWidth;\n                const centerLeft = Math.max(0, bodyWidth / 2 - calendarWidth / 2);\n                const centerBefore = \".flatpickr-calendar.centerMost:before\";\n                const centerAfter = \".flatpickr-calendar.centerMost:after\";\n                const centerIndex = css.cssRules.length;\n                const centerStyle = `{left:${inputBounds.left}px;right:auto;}`;\n                self.calendarContainer.classList.toggle(\"rightMost\", false);\n                self.calendarContainer.classList.toggle(\"centerMost\", true);\n                css.insertRule(`${centerBefore},${centerAfter}${centerStyle}`, centerIndex);\n                self.calendarContainer.style.left = `${centerLeft}px`;\n                self.calendarContainer.style.right = \"auto\";\n            }\n        }\n    }\n    exports.DatetimePickerView = DatetimePickerView;\n    DatetimePickerView.__name__ = \"DatetimePickerView\";\n    class DatetimePicker extends input_widget_1.InputWidget {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.DatetimePicker = DatetimePicker;\n    _a = DatetimePicker;\n    DatetimePicker.__name__ = \"DatetimePicker\";\n    DatetimePicker.__module__ = \"panel.models.datetime_picker\";\n    (() => {\n        _a.prototype.default_view = DatetimePickerView;\n        _a.define(({ Bool, Str, List, Tuple, Or, Nullable }) => {\n            const DateStr = Str;\n            const DatesList = List(Or(DateStr, Tuple(DateStr, DateStr)));\n            return {\n                allow_input: [Bool, false],\n                value: [Nullable(Str), null],\n                min_date: [Nullable(Str), null],\n                max_date: [Nullable(Str), null],\n                disabled_dates: [Nullable(DatesList), null],\n                enabled_dates: [Nullable(DatesList), null],\n                position: [enums_1.CalendarPosition, \"auto\"],\n                inline: [Bool, false],\n                enable_time: [Bool, true],\n                enable_seconds: [Bool, true],\n                military_time: [Bool, true],\n                date_format: [Str, \"Y-m-d H:i:S\"],\n                mode: [Str, \"single\"],\n            };\n        });\n    })();\n}\n","min_source":"function _(e,t,i,s,n){var o;s();const l=e(\"tslib\"),a=l.__importDefault(e(\"1156ddcec2\")),r=e(\"@bokehjs/models/widgets/input_widget\"),d=e(\"@bokehjs/core/dom\"),c=e(\"@bokehjs/core/enums\"),h=e(\"@bokehjs/core/util/types\"),_=l.__importStar(e(\"@bokehjs/styles/widgets/inputs.css\")),m=l.__importDefault(e(\"@bokehjs/styles/widgets/flatpickr.css\"));function p(e){const t=[];for(const i of e)if((0,h.isString)(i))t.push(i);else{const[e,s]=i;t.push({from:e,to:s})}return t}class u extends r.InputWidgetView{connect_signals(){super.connect_signals();const{value:e,min_date:t,max_date:i,disabled_dates:s,enabled_dates:n,inline:o,enable_time:l,enable_seconds:a,military_time:r,date_format:d,mode:c}=this.model.properties;this.on_change(e,(()=>this.model.value?this._picker?.setDate(this.model.value):this._clear())),this.on_change(t,(()=>this._picker?.set(\"minDate\",this.model.min_date))),this.on_change(i,(()=>this._picker?.set(\"maxDate\",this.model.max_date))),this.on_change(s,(()=>{const{disabled_dates:e}=this.model;this._picker?.set(\"disable\",null!=e?p(e):[])})),this.on_change(n,(()=>{const{enabled_dates:e}=this.model;null!=e?this._picker?.set(\"enable\",p(e)):this._picker&&(this._picker.config._enable=void 0,this._picker.redraw(),this._picker.updateValue(!0))})),this.on_change(o,(()=>this._picker?.set(\"inline\",this.model.inline))),this.on_change(l,(()=>this._picker?.set(\"enableTime\",this.model.enable_time))),this.on_change(a,(()=>this._picker?.set(\"enableSeconds\",this.model.enable_seconds))),this.on_change(r,(()=>this._picker?.set(\"time_24hr\",this.model.military_time))),this.on_change(c,(()=>this._picker?.set(\"mode\",this.model.mode))),this.on_change(d,(()=>this._picker?.set(\"dateFormat\",this.model.date_format)))}remove(){this._picker?.destroy(),super.remove()}stylesheets(){return[...super.stylesheets(),m.default]}_render_input(){return this.input_el=(0,d.input)({type:\"text\",class:_.input,disabled:this.model.disabled})}render(){if(null!=this._picker)return;super.render();const e={allowInput:this.model.allow_input,appendTo:this.group_el,positionElement:this.input_el,defaultDate:this.model.value,inline:this.model.inline,position:this._position.bind(this),enableTime:this.model.enable_time,enableSeconds:this.model.enable_seconds,time_24hr:this.model.military_time,dateFormat:this.model.date_format,mode:this.model.mode,onClose:(e,t,i)=>this._on_close(e,t,i)},{min_date:t,max_date:i,disabled_dates:s,enabled_dates:n}=this.model;null!=t&&(e.minDate=t),null!=i&&(e.maxDate=i),null!=s&&(e.disable=p(s)),null!=n&&(e.enable=p(n)),this._picker=(0,a.default)(this.input_el,e),this._picker.maxDateHasTime=!0,this._picker.minDateHasTime=!0}_clear(){this._picker?.clear(),this.model.value=null}_on_close(e,t,i){(\"range\"!=this.model.mode||t.includes(\"to\"))&&(this.model.value=t,this.change_input())}_position(e,t){const i=t??e._positionElement,s=[...e.calendarContainer.children].reduce(((e,t)=>e+(0,d.bounding_box)(t).height),0),n=e.calendarContainer.offsetWidth,o=this.model.position.split(\" \"),l=o[0],a=o.length>1?o[1]:null,r=i.offsetTop,c=i.offsetTop+i.offsetHeight,h=i.offsetLeft,_=i.offsetLeft+i.offsetWidth,m=i.offsetWidth,p=window.innerHeight-c,u=\"above\"===l||\"below\"!==l&&p<s&&r>s,f=e.config.appendTo?r+(u?-s-2:i.offsetHeight+2):window.scrollY+r+(u?-s-2:i.offsetHeight+2);if(e.calendarContainer.classList.toggle(\"arrowTop\",!u),e.calendarContainer.classList.toggle(\"arrowBottom\",u),e.config.inline)return;let g=window.scrollX+h,b=!1,k=!1;\"center\"===a?(g-=(n-m)/2,b=!0):\"right\"===a&&(g-=n-m,k=!0),e.calendarContainer.classList.toggle(\"arrowLeft\",!b&&!k),e.calendarContainer.classList.toggle(\"arrowCenter\",b),e.calendarContainer.classList.toggle(\"arrowRight\",k);const w=window.document.body.offsetWidth-(window.scrollX+_),y=g+n>window.document.body.offsetWidth,C=w+n>window.document.body.offsetWidth;if(e.calendarContainer.classList.toggle(\"rightMost\",y),!e.config.static)if(e.calendarContainer.style.top=`${f}px`,y)if(C){const t=this.shadow_el.styleSheets[0],i=window.document.body.offsetWidth,s=Math.max(0,i/2-n/2),o=\".flatpickr-calendar.centerMost:before\",l=\".flatpickr-calendar.centerMost:after\",a=t.cssRules.length,r=`{left:${h}px;right:auto;}`;e.calendarContainer.classList.toggle(\"rightMost\",!1),e.calendarContainer.classList.toggle(\"centerMost\",!0),t.insertRule(`${o},${l}${r}`,a),e.calendarContainer.style.left=`${s}px`,e.calendarContainer.style.right=\"auto\"}else e.calendarContainer.style.left=\"auto\",e.calendarContainer.style.right=`${w}px`;else e.calendarContainer.style.left=`${g}px`,e.calendarContainer.style.right=\"auto\"}}i.DatetimePickerView=u,u.__name__=\"DatetimePickerView\";class f extends r.InputWidget{constructor(e){super(e)}}i.DatetimePicker=f,o=f,f.__name__=\"DatetimePicker\",f.__module__=\"panel.models.datetime_picker\",o.prototype.default_view=u,o.define((({Bool:e,Str:t,List:i,Tuple:s,Or:n,Nullable:o})=>{const l=i(n(t,s(t,t)));return{allow_input:[e,!1],value:[o(t),null],min_date:[o(t),null],max_date:[o(t),null],disabled_dates:[o(l),null],enabled_dates:[o(l),null],position:[c.CalendarPosition,\"auto\"],inline:[e,!1],enable_time:[e,!0],enable_seconds:[e,!0],military_time:[e,!0],date_format:[t,\"Y-m-d H:i:S\"],mode:[t,\"single\"]}}))}\n//# sourceMappingURL=datetime_picker.min.js.map","min_map":"{\"version\":3,\"file\":\"datetime_picker.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"tslib_1\",\"flatpickr_1\",\"__importDefault\",\"input_widget_1\",\"dom_1\",\"enums_1\",\"types_1\",\"inputs\",\"__importStar\",\"flatpickr_css_1\",\"_convert_date_list\",\"value\",\"result\",\"item\",\"isString\",\"push\",\"from\",\"to\",\"DatetimePickerView\",\"InputWidgetView\",\"connect_signals\",\"super\",\"min_date\",\"max_date\",\"disabled_dates\",\"enabled_dates\",\"inline\",\"enable_time\",\"enable_seconds\",\"military_time\",\"date_format\",\"mode\",\"this\",\"model\",\"properties\",\"on_change\",\"_picker\",\"setDate\",\"_clear\",\"set\",\"config\",\"_enable\",\"undefined\",\"redraw\",\"updateValue\",\"remove\",\"destroy\",\"stylesheets\",\"default\",\"_render_input\",\"input_el\",\"input\",\"type\",\"class\",\"disabled\",\"render\",\"options\",\"allowInput\",\"allow_input\",\"appendTo\",\"group_el\",\"positionElement\",\"defaultDate\",\"position\",\"_position\",\"bind\",\"enableTime\",\"enableSeconds\",\"time_24hr\",\"dateFormat\",\"onClose\",\"selected_dates\",\"date_string\",\"instance\",\"_on_close\",\"minDate\",\"maxDate\",\"disable\",\"enable\",\"maxDateHasTime\",\"minDateHasTime\",\"clear\",\"_selected_dates\",\"_instance\",\"includes\",\"change_input\",\"self\",\"custom_el\",\"_positionElement\",\"calendarHeight\",\"calendarContainer\",\"children\",\"reduce\",\"acc\",\"child\",\"bounding_box\",\"height\",\"calendarWidth\",\"offsetWidth\",\"configPos\",\"split\",\"configPosVertical\",\"configPosHorizontal\",\"length\",\"inputBounds\",\"offsetTop\",\"offsetHeight\",\"offsetLeft\",\"distanceFromBottom\",\"window\",\"innerHeight\",\"showOnTop\",\"top\",\"scrollY\",\"classList\",\"toggle\",\"left\",\"scrollX\",\"isCenter\",\"isRight\",\"right\",\"document\",\"body\",\"rightMost\",\"centerMost\",\"static\",\"style\",\"css\",\"shadow_el\",\"styleSheets\",\"bodyWidth\",\"centerLeft\",\"Math\",\"max\",\"centerBefore\",\"centerAfter\",\"centerIndex\",\"cssRules\",\"centerStyle\",\"insertRule\",\"__name__\",\"DatetimePicker\",\"InputWidget\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Bool\",\"Str\",\"List\",\"Tuple\",\"Or\",\"Nullable\",\"DatesList\",\"CalendarPosition\"],\"sources\":[\"0\"],\"mappings\":\"AAAgC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC7E,IAAIC,EACJF,IACA,MAAMG,EAAUN,EAAQ,SAClBO,EAAcD,EAAQE,gBAAgBR,EAAQ,eAC9CS,EAAiBT,EAAQ,wCACzBU,EAAQV,EAAQ,qBAChBW,EAAUX,EAAQ,uBAClBY,EAAUZ,EAAQ,4BAClBa,EAASP,EAAQQ,aAAad,EAAQ,uCACtCe,EAAkBT,EAAQE,gBAAgBR,EAAQ,0CACxD,SAASgB,EAAmBC,GACxB,MAAMC,EAAS,GACf,IAAK,MAAMC,KAAQF,EACf,IAAI,EAAIL,EAAQQ,UAAUD,GACtBD,EAAOG,KAAKF,OAEX,CACD,MAAOG,EAAMC,GAA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AQ,MAoB7C,EAEJ5H,EAAQsB,mBAAqBA,EAC7BA,EAAmB0H,SAAW,qBAC9B,MAAMC,UAAuB1I,EAAe2I,YACxC,WAAAC,CAAYC,GACR3H,MAAM2H,EACV,EAEJpJ,EAAQiJ,eAAiBA,EACzB9I,EAAK8I,EACLA,EAAeD,SAAW,iBAC1BC,EAAeI,WAAa,+BAExBlJ,EAAGmJ,UAAUC,aAAejI,EAC5BnB,EAAGqJ,QAAO,EAAGC,OAAMC,MAAKC,OAAMC,QAAOC,KAAIC,eACrC,MACMC,EAAYJ,EAAKE,EADPH,EACmBE,EADnBF,OAEhB,MAAO,CACH5F,YAAa,CAAC2F,GAAM,GACpB1I,MAAO,CAAC+I,EAASJ,GAAM,MACvBhI,SAAU,CAACoI,EAASJ,GAAM,MAC1B/H,SAAU,CAACmI,EAASJ,GAAM,MAC1B9H,eAAgB,CAACkI,EAASC,GAAY,MACtClI,cAAe,CAACiI,EAASC,GAAY,MACrC5F,SAAU,CAAC1D,EAAQuJ,iBAAkB,QACrClI,OAAQ,CAAC2H,GAAM,GACf1H,YAAa,CAAC0H,GAAM,GACpBzH,eAAgB,CAACyH,GAAM,GACvBxH,cAAe,CAACwH,GAAM,GACtBvH,YAAa,CAACwH,EAAK,eACnBvH,KAAM,CAACuH,EAAK,UACf,GAGb\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/index.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"flatpickr/dist/esm/index.js","resolution":"ESM","id":"1156ddcec2","hash":"1156ddcec24869abbd5f6a7a610a7d5f9eee9530aff6630d4d679c9487ff8382","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function (t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s)\n                if (Object.prototype.hasOwnProperty.call(s, p))\n                    t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n    for (var s = 0, i = 0, il = arguments.length; i < il; i++)\n        s += arguments[i].length;\n    for (var r = Array(s), k = 0, i = 0; i < il; i++)\n        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n            r[k] = a[j];\n    return r;\n};\nconst options_1 = require(\"./types/options\");\nconst default_1 = tslib_1.__importDefault(require(\"./l10n/default\"));\nconst utils_1 = require(\"./utils\");\nconst dom_1 = require(\"./utils/dom\");\nconst dates_1 = require(\"./utils/dates\");\nconst formatting_1 = require(\"./utils/formatting\");\nrequire(\"./utils/polyfills\");\nvar DEBOUNCED_CHANGE_MS = 300;\nfunction FlatpickrInstance(element, instanceConfig) {\n    var self = {\n        config: __assign(__assign({}, options_1.defaults), flatpickr.defaultConfig),\n        l10n: default_1.default,\n    };\n    self.parseDate = (0, dates_1.createDateParser)({ config: self.config, l10n: self.l10n });\n    self._handlers = [];\n    self.pluginElements = [];\n    self.loadedPlugins = [];\n    self._bind = bind;\n    self._setHoursFromDate = setHoursFromDate;\n    self._positionCalendar = positionCalendar;\n    self.changeMonth = changeMonth;\n    self.changeYear = changeYear;\n    self.clear = clear;\n    self.close = close;\n    self.onMouseOver = onMouseOver;\n    self._createElement = dom_1.createElement;\n    self.createDay = createDay;\n    self.destroy = destroy;\n    self.isEnabled = isEnabled;\n    self.jumpToDate = jumpToDate;\n    self.updateValue = updateValue;\n    self.open = open;\n    self.redraw = redraw;\n    self.set = set;\n    self.setDate = setDate;\n    self.toggle = toggle;\n    function setupHelperFunctions() {\n        self.utils = {\n            getDaysInMonth: function (month, yr) {\n                if (month === void 0) {\n                    month = self.currentMonth;\n                }\n                if (yr === void 0) {\n                    yr = self.currentYear;\n                }\n                if (month === 1 && ((yr % 4 === 0 && yr % 100 !== 0) || yr % 400 === 0))\n                    return 29;\n                return self.l10n.daysInMonth[month];\n            },\n        };\n    }\n    function init() {\n        self.element = self.input = element;\n        self.isOpen = false;\n        parseConfig();\n        setupLocale();\n        setupInputs();\n        setupDates();\n        setupHelperFunctions();\n        if (!self.isMobile)\n            build();\n        bindEvents();\n        if (self.selectedDates.length || self.config.noCalendar) {\n            if (self.config.enableTime) {\n                setHoursFromDate(self.config.noCalendar ? self.latestSelectedDateObj : undefined);\n            }\n            updateValue(false);\n        }\n        setCalendarWidth();\n        var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);\n        if (!self.isMobile && isSafari) {\n            positionCalendar();\n        }\n        triggerEvent(\"onReady\");\n    }\n    function getClosestActiveElement() {\n        var _a;\n        return (((_a = self.calendarContainer) === null || _a === void 0 ? void 0 : _a.getRootNode())\n            .activeElement || document.activeElement);\n    }\n    function bindToInstance(fn) {\n        return fn.bind(self);\n    }\n    function setCalendarWidth() {\n        var config = self.config;\n        if (config.weekNumbers === false && config.showMonths === 1) {\n            return;\n        }\n        else if (config.noCalendar !== true) {\n            window.requestAnimationFrame(function () {\n                if (self.calendarContainer !== undefined) {\n                    self.calendarContainer.style.visibility = \"hidden\";\n                    self.calendarContainer.style.display = \"block\";\n                }\n                if (self.daysContainer !== undefined) {\n                    var daysWidth = (self.days.offsetWidth + 1) * config.showMonths;\n                    self.daysContainer.style.width = daysWidth + \"px\";\n                    self.calendarContainer.style.width =\n                        daysWidth +\n                            (self.weekWrapper !== undefined\n                                ? self.weekWrapper.offsetWidth\n                                : 0) +\n                            \"px\";\n                    self.calendarContainer.style.removeProperty(\"visibility\");\n                    self.calendarContainer.style.removeProperty(\"display\");\n                }\n            });\n        }\n    }\n    function updateTime(e) {\n        if (self.selectedDates.length === 0) {\n            var defaultDate = self.config.minDate === undefined ||\n                (0, dates_1.compareDates)(new Date(), self.config.minDate) >= 0\n                ? new Date()\n                : new Date(self.config.minDate.getTime());\n            var defaults = (0, dates_1.getDefaultHours)(self.config);\n            defaultDate.setHours(defaults.hours, defaults.minutes, defaults.seconds, defaultDate.getMilliseconds());\n            self.selectedDates = [defaultDate];\n            self.latestSelectedDateObj = defaultDate;\n        }\n        if (e !== undefined && e.type !== \"blur\") {\n            timeWrapper(e);\n        }\n        var prevValue = self._input.value;\n        setHoursFromInputs();\n        updateValue();\n        if (self._input.value !== prevValue) {\n            self._debouncedChange();\n        }\n    }\n    function ampm2military(hour, amPM) {\n        return (hour % 12) + 12 * (0, utils_1.int)(amPM === self.l10n.amPM[1]);\n    }\n    function military2ampm(hour) {\n        switch (hour % 24) {\n            case 0:\n            case 12:\n                return 12;\n            default:\n                return hour % 12;\n        }\n    }\n    function setHoursFromInputs() {\n        if (self.hourElement === undefined || self.minuteElement === undefined)\n            return;\n        var hours = (parseInt(self.hourElement.value.slice(-2), 10) || 0) % 24, minutes = (parseInt(self.minuteElement.value, 10) || 0) % 60, seconds = self.secondElement !== undefined\n            ? (parseInt(self.secondElement.value, 10) || 0) % 60\n            : 0;\n        if (self.amPM !== undefined) {\n            hours = ampm2military(hours, self.amPM.textContent);\n        }\n        var limitMinHours = self.config.minTime !== undefined ||\n            (self.config.minDate &&\n                self.minDateHasTime &&\n                self.latestSelectedDateObj &&\n                (0, dates_1.compareDates)(self.latestSelectedDateObj, self.config.minDate, true) ===\n                    0);\n        var limitMaxHours = self.config.maxTime !== undefined ||\n            (self.config.maxDate &&\n                self.maxDateHasTime &&\n                self.latestSelectedDateObj &&\n                (0, dates_1.compareDates)(self.latestSelectedDateObj, self.config.maxDate, true) ===\n                    0);\n        if (self.config.maxTime !== undefined &&\n            self.config.minTime !== undefined &&\n            self.config.minTime > self.config.maxTime) {\n            var minBound = (0, dates_1.calculateSecondsSinceMidnight)(self.config.minTime.getHours(), self.config.minTime.getMinutes(), self.config.minTime.getSeconds());\n            var maxBound = (0, dates_1.calculateSecondsSinceMidnight)(self.config.maxTime.getHours(), self.config.maxTime.getMinutes(), self.config.maxTime.getSeconds());\n            var currentTime = (0, dates_1.calculateSecondsSinceMidnight)(hours, minutes, seconds);\n            if (currentTime > maxBound && currentTime < minBound) {\n                var result = (0, dates_1.parseSeconds)(minBound);\n                hours = result[0];\n                minutes = result[1];\n                seconds = result[2];\n            }\n        }\n        else {\n            if (limitMaxHours) {\n                var maxTime = self.config.maxTime !== undefined\n                    ? self.config.maxTime\n                    : self.config.maxDate;\n                hours = Math.min(hours, maxTime.getHours());\n                if (hours === maxTime.getHours())\n                    minutes = Math.min(minutes, maxTime.getMinutes());\n                if (minutes === maxTime.getMinutes())\n                    seconds = Math.min(seconds, maxTime.getSeconds());\n            }\n            if (limitMinHours) {\n                var minTime = self.config.minTime !== undefined\n                    ? self.config.minTime\n                    : self.config.minDate;\n                hours = Math.max(hours, minTime.getHours());\n                if (hours === minTime.getHours() && minutes < minTime.getMinutes())\n                    minutes = minTime.getMinutes();\n                if (minutes === minTime.getMinutes())\n                    seconds = Math.max(seconds, minTime.getSeconds());\n            }\n        }\n        setHours(hours, minutes, seconds);\n    }\n    function setHoursFromDate(dateObj) {\n        var date = dateObj || self.latestSelectedDateObj;\n        if (date && date instanceof Date) {\n            setHours(date.getHours(), date.getMinutes(), date.getSeconds());\n        }\n    }\n    function setHours(hours, minutes, seconds) {\n        if (self.latestSelectedDateObj !== undefined) {\n            self.latestSelectedDateObj.setHours(hours % 24, minutes, seconds || 0, 0);\n        }\n        if (!self.hourElement || !self.minuteElement || self.isMobile)\n            return;\n        self.hourElement.value = (0, utils_1.pad)(!self.config.time_24hr\n            ? ((12 + hours) % 12) + 12 * (0, utils_1.int)(hours % 12 === 0)\n            : hours);\n        self.minuteElement.value = (0, utils_1.pad)(minutes);\n        if (self.amPM !== undefined)\n            self.amPM.textContent = self.l10n.amPM[(0, utils_1.int)(hours >= 12)];\n        if (self.secondElement !== undefined)\n            self.secondElement.value = (0, utils_1.pad)(seconds);\n    }\n    function onYearInput(event) {\n        var eventTarget = (0, dom_1.getEventTarget)(event);\n        var year = parseInt(eventTarget.value) + (event.delta || 0);\n        if (year / 1000 > 1 ||\n            (event.key === \"Enter\" && !/[^\\d]/.test(year.toString()))) {\n            changeYear(year);\n        }\n    }\n    function bind(element, event, handler, options) {\n        if (event instanceof Array)\n            return event.forEach(function (ev) { return bind(element, ev, handler, options); });\n        if (element instanceof Array)\n            return element.forEach(function (el) { return bind(el, event, handler, options); });\n        element.addEventListener(event, handler, options);\n        self._handlers.push({\n            remove: function () { return element.removeEventListener(event, handler, options); },\n        });\n    }\n    function triggerChange() {\n        triggerEvent(\"onChange\");\n    }\n    function bindEvents() {\n        if (self.config.wrap) {\n            [\"open\", \"close\", \"toggle\", \"clear\"].forEach(function (evt) {\n                Array.prototype.forEach.call(self.element.querySelectorAll(\"[data-\" + evt + \"]\"), function (el) {\n                    return bind(el, \"click\", self[evt]);\n                });\n            });\n        }\n        if (self.isMobile) {\n            setupMobile();\n            return;\n        }\n        var debouncedResize = (0, utils_1.debounce)(onResize, 50);\n        self._debouncedChange = (0, utils_1.debounce)(triggerChange, DEBOUNCED_CHANGE_MS);\n        if (self.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent))\n            bind(self.daysContainer, \"mouseover\", function (e) {\n                if (self.config.mode === \"range\")\n                    onMouseOver((0, dom_1.getEventTarget)(e));\n            });\n        bind(self._input, \"keydown\", onKeyDown);\n        if (self.calendarContainer !== undefined) {\n            bind(self.calendarContainer, \"keydown\", onKeyDown);\n        }\n        if (!self.config.inline && !self.config.static)\n            bind(window, \"resize\", debouncedResize);\n        if (window.ontouchstart !== undefined)\n            bind(window.document, \"touchstart\", documentClick);\n        else\n            bind(window.document, \"mousedown\", documentClick);\n        bind(window.document, \"focus\", documentClick, { capture: true });\n        if (self.config.clickOpens === true) {\n            bind(self._input, \"focus\", self.open);\n            bind(self._input, \"click\", self.open);\n        }\n        if (self.daysContainer !== undefined) {\n            bind(self.monthNav, \"click\", onMonthNavClick);\n            bind(self.monthNav, [\"keyup\", \"increment\"], onYearInput);\n            bind(self.daysContainer, \"click\", selectDate);\n        }\n        if (self.timeContainer !== undefined &&\n            self.minuteElement !== undefined &&\n            self.hourElement !== undefined) {\n            var selText = function (e) {\n                return (0, dom_1.getEventTarget)(e).select();\n            };\n            bind(self.timeContainer, [\"increment\"], updateTime);\n            bind(self.timeContainer, \"blur\", updateTime, { capture: true });\n            bind(self.timeContainer, \"click\", timeIncrement);\n            bind([self.hourElement, self.minuteElement], [\"focus\", \"click\"], selText);\n            if (self.secondElement !== undefined)\n                bind(self.secondElement, \"focus\", function () { return self.secondElement && self.secondElement.select(); });\n            if (self.amPM !== undefined) {\n                bind(self.amPM, \"click\", function (e) {\n                    updateTime(e);\n                });\n            }\n        }\n        if (self.config.allowInput) {\n            bind(self._input, \"blur\", onBlur);\n        }\n    }\n    function jumpToDate(jumpDate, triggerChange) {\n        var jumpTo = jumpDate !== undefined\n            ? self.parseDate(jumpDate)\n            : self.latestSelectedDateObj ||\n                (self.config.minDate && self.config.minDate > self.now\n                    ? self.config.minDate\n                    : self.config.maxDate && self.config.maxDate < self.now\n                        ? self.config.maxDate\n                        : self.now);\n        var oldYear = self.currentYear;\n        var oldMonth = self.currentMonth;\n        try {\n            if (jumpTo !== undefined) {\n                self.currentYear = jumpTo.getFullYear();\n                self.currentMonth = jumpTo.getMonth();\n            }\n        }\n        catch (e) {\n            e.message = \"Invalid date supplied: \" + jumpTo;\n            self.config.errorHandler(e);\n        }\n        if (triggerChange && self.currentYear !== oldYear) {\n            triggerEvent(\"onYearChange\");\n            buildMonthSwitch();\n        }\n        if (triggerChange &&\n            (self.currentYear !== oldYear || self.currentMonth !== oldMonth)) {\n            triggerEvent(\"onMonthChange\");\n        }\n        self.redraw();\n    }\n    function timeIncrement(e) {\n        var eventTarget = (0, dom_1.getEventTarget)(e);\n        if (~eventTarget.className.indexOf(\"arrow\"))\n            incrementNumInput(e, eventTarget.classList.contains(\"arrowUp\") ? 1 : -1);\n    }\n    function incrementNumInput(e, delta, inputElem) {\n        var target = e && (0, dom_1.getEventTarget)(e);\n        var input = inputElem ||\n            (target && target.parentNode && target.parentNode.firstChild);\n        var event = createEvent(\"increment\");\n        event.delta = delta;\n        input && input.dispatchEvent(event);\n    }\n    function build() {\n        var fragment = window.document.createDocumentFragment();\n        self.calendarContainer = (0, dom_1.createElement)(\"div\", \"flatpickr-calendar\");\n        self.calendarContainer.tabIndex = -1;\n        if (!self.config.noCalendar) {\n            fragment.appendChild(buildMonthNav());\n            self.innerContainer = (0, dom_1.createElement)(\"div\", \"flatpickr-innerContainer\");\n            if (self.config.weekNumbers) {\n                var _a = buildWeeks(), weekWrapper = _a.weekWrapper, weekNumbers = _a.weekNumbers;\n                self.innerContainer.appendChild(weekWrapper);\n                self.weekNumbers = weekNumbers;\n                self.weekWrapper = weekWrapper;\n            }\n            self.rContainer = (0, dom_1.createElement)(\"div\", \"flatpickr-rContainer\");\n            self.rContainer.appendChild(buildWeekdays());\n            if (!self.daysContainer) {\n                self.daysContainer = (0, dom_1.createElement)(\"div\", \"flatpickr-days\");\n                self.daysContainer.tabIndex = -1;\n            }\n            buildDays();\n            self.rContainer.appendChild(self.daysContainer);\n            self.innerContainer.appendChild(self.rContainer);\n            fragment.appendChild(self.innerContainer);\n        }\n        if (self.config.enableTime) {\n            fragment.appendChild(buildTime());\n        }\n        (0, dom_1.toggleClass)(self.calendarContainer, \"rangeMode\", self.config.mode === \"range\");\n        (0, dom_1.toggleClass)(self.calendarContainer, \"animate\", self.config.animate === true);\n        (0, dom_1.toggleClass)(self.calendarContainer, \"multiMonth\", self.config.showMonths > 1);\n        self.calendarContainer.appendChild(fragment);\n        var customAppend = self.config.appendTo !== undefined &&\n            self.config.appendTo.nodeType !== undefined;\n        if (self.config.inline || self.config.static) {\n            self.calendarContainer.classList.add(self.config.inline ? \"inline\" : \"static\");\n            if (self.config.inline) {\n                if (!customAppend && self.element.parentNode)\n                    self.element.parentNode.insertBefore(self.calendarContainer, self._input.nextSibling);\n                else if (self.config.appendTo !== undefined)\n                    self.config.appendTo.appendChild(self.calendarContainer);\n            }\n            if (self.config.static) {\n                var wrapper = (0, dom_1.createElement)(\"div\", \"flatpickr-wrapper\");\n                if (self.element.parentNode)\n                    self.element.parentNode.insertBefore(wrapper, self.element);\n                wrapper.appendChild(self.element);\n                if (self.altInput)\n                    wrapper.appendChild(self.altInput);\n                wrapper.appendChild(self.calendarContainer);\n            }\n        }\n        if (!self.config.static && !self.config.inline)\n            (self.config.appendTo !== undefined\n                ? self.config.appendTo\n                : window.document.body).appendChild(self.calendarContainer);\n    }\n    function createDay(className, date, _dayNumber, i) {\n        var dateIsEnabled = isEnabled(date, true), dayElement = (0, dom_1.createElement)(\"span\", className, date.getDate().toString());\n        dayElement.dateObj = date;\n        dayElement.$i = i;\n        dayElement.setAttribute(\"aria-label\", self.formatDate(date, self.config.ariaDateFormat));\n        if (className.indexOf(\"hidden\") === -1 &&\n            (0, dates_1.compareDates)(date, self.now) === 0) {\n            self.todayDateElem = dayElement;\n            dayElement.classList.add(\"today\");\n            dayElement.setAttribute(\"aria-current\", \"date\");\n        }\n        if (dateIsEnabled) {\n            dayElement.tabIndex = -1;\n            if (isDateSelected(date)) {\n                dayElement.classList.add(\"selected\");\n                self.selectedDateElem = dayElement;\n                if (self.config.mode === \"range\") {\n                    (0, dom_1.toggleClass)(dayElement, \"startRange\", self.selectedDates[0] &&\n                        (0, dates_1.compareDates)(date, self.selectedDates[0], true) === 0);\n                    (0, dom_1.toggleClass)(dayElement, \"endRange\", self.selectedDates[1] &&\n                        (0, dates_1.compareDates)(date, self.selectedDates[1], true) === 0);\n                    if (className === \"nextMonthDay\")\n                        dayElement.classList.add(\"inRange\");\n                }\n            }\n        }\n        else {\n            dayElement.classList.add(\"flatpickr-disabled\");\n        }\n        if (self.config.mode === \"range\") {\n            if (isDateInRange(date) && !isDateSelected(date))\n                dayElement.classList.add(\"inRange\");\n        }\n        if (self.weekNumbers &&\n            self.config.showMonths === 1 &&\n            className !== \"prevMonthDay\" &&\n            i % 7 === 6) {\n            self.weekNumbers.insertAdjacentHTML(\"beforeend\", \"<span class='flatpickr-day'>\" + self.config.getWeek(date) + \"</span>\");\n        }\n        triggerEvent(\"onDayCreate\", dayElement);\n        return dayElement;\n    }\n    function focusOnDayElem(targetNode) {\n        targetNode.focus();\n        if (self.config.mode === \"range\")\n            onMouseOver(targetNode);\n    }\n    function getFirstAvailableDay(delta) {\n        var startMonth = delta > 0 ? 0 : self.config.showMonths - 1;\n        var endMonth = delta > 0 ? self.config.showMonths : -1;\n        for (var m = startMonth; m != endMonth; m += delta) {\n            var month = self.daysContainer.children[m];\n            var startIndex = delta > 0 ? 0 : month.children.length - 1;\n            var endIndex = delta > 0 ? month.children.length : -1;\n            for (var i = startIndex; i != endIndex; i += delta) {\n                var c = month.children[i];\n                if (c.className.indexOf(\"hidden\") === -1 && isEnabled(c.dateObj))\n                    return c;\n            }\n        }\n        return undefined;\n    }\n    function getNextAvailableDay(current, delta) {\n        var givenMonth = current.className.indexOf(\"Month\") === -1\n            ? current.dateObj.getMonth()\n            : self.currentMonth;\n        var endMonth = delta > 0 ? self.config.showMonths : -1;\n        var loopDelta = delta > 0 ? 1 : -1;\n        for (var m = givenMonth - self.currentMonth; m != endMonth; m += loopDelta) {\n            var month = self.daysContainer.children[m];\n            var startIndex = givenMonth - self.currentMonth === m\n                ? current.$i + delta\n                : delta < 0\n                    ? month.children.length - 1\n                    : 0;\n            var numMonthDays = month.children.length;\n            for (var i = startIndex; i >= 0 && i < numMonthDays && i != (delta > 0 ? numMonthDays : -1); i += loopDelta) {\n                var c = month.children[i];\n                if (c.className.indexOf(\"hidden\") === -1 &&\n                    isEnabled(c.dateObj) &&\n                    Math.abs(current.$i - i) >= Math.abs(delta))\n                    return focusOnDayElem(c);\n            }\n        }\n        self.changeMonth(loopDelta);\n        focusOnDay(getFirstAvailableDay(loopDelta), 0);\n        return undefined;\n    }\n    function focusOnDay(current, offset) {\n        var activeElement = getClosestActiveElement();\n        var dayFocused = isInView(activeElement || document.body);\n        var startElem = current !== undefined\n            ? current\n            : dayFocused\n                ? activeElement\n                : self.selectedDateElem !== undefined && isInView(self.selectedDateElem)\n                    ? self.selectedDateElem\n                    : self.todayDateElem !== undefined && isInView(self.todayDateElem)\n                        ? self.todayDateElem\n                        : getFirstAvailableDay(offset > 0 ? 1 : -1);\n        if (startElem === undefined) {\n            self._input.focus();\n        }\n        else if (!dayFocused) {\n            focusOnDayElem(startElem);\n        }\n        else {\n            getNextAvailableDay(startElem, offset);\n        }\n    }\n    function buildMonthDays(year, month) {\n        var firstOfMonth = (new Date(year, month, 1).getDay() - self.l10n.firstDayOfWeek + 7) % 7;\n        var prevMonthDays = self.utils.getDaysInMonth((month - 1 + 12) % 12, year);\n        var daysInMonth = self.utils.getDaysInMonth(month, year), days = window.document.createDocumentFragment(), isMultiMonth = self.config.showMonths > 1, prevMonthDayClass = isMultiMonth ? \"prevMonthDay hidden\" : \"prevMonthDay\", nextMonthDayClass = isMultiMonth ? \"nextMonthDay hidden\" : \"nextMonthDay\";\n        var dayNumber = prevMonthDays + 1 - firstOfMonth, dayIndex = 0;\n        for (; dayNumber <= prevMonthDays; dayNumber++, dayIndex++) {\n            days.appendChild(createDay(\"flatpickr-day \" + prevMonthDayClass, new Date(year, month - 1, dayNumber), dayNumber, dayIndex));\n        }\n        for (dayNumber = 1; dayNumber <= daysInMonth; dayNumber++, dayIndex++) {\n            days.appendChild(createDay(\"flatpickr-day\", new Date(year, month, dayNumber), dayNumber, dayIndex));\n        }\n        for (var dayNum = daysInMonth + 1; dayNum <= 42 - firstOfMonth &&\n            (self.config.showMonths === 1 || dayIndex % 7 !== 0); dayNum++, dayIndex++) {\n            days.appendChild(createDay(\"flatpickr-day \" + nextMonthDayClass, new Date(year, month + 1, dayNum % daysInMonth), dayNum, dayIndex));\n        }\n        var dayContainer = (0, dom_1.createElement)(\"div\", \"dayContainer\");\n        dayContainer.appendChild(days);\n        return dayContainer;\n    }\n    function buildDays() {\n        if (self.daysContainer === undefined) {\n            return;\n        }\n        (0, dom_1.clearNode)(self.daysContainer);\n        if (self.weekNumbers)\n            (0, dom_1.clearNode)(self.weekNumbers);\n        var frag = document.createDocumentFragment();\n        for (var i = 0; i < self.config.showMonths; i++) {\n            var d = new Date(self.currentYear, self.currentMonth, 1);\n            d.setMonth(self.currentMonth + i);\n            frag.appendChild(buildMonthDays(d.getFullYear(), d.getMonth()));\n        }\n        self.daysContainer.appendChild(frag);\n        self.days = self.daysContainer.firstChild;\n        if (self.config.mode === \"range\" && self.selectedDates.length === 1) {\n            onMouseOver();\n        }\n    }\n    function buildMonthSwitch() {\n        if (self.config.showMonths > 1 ||\n            self.config.monthSelectorType !== \"dropdown\")\n            return;\n        var shouldBuildMonth = function (month) {\n            if (self.config.minDate !== undefined &&\n                self.currentYear === self.config.minDate.getFullYear() &&\n                month < self.config.minDate.getMonth()) {\n                return false;\n            }\n            return !(self.config.maxDate !== undefined &&\n                self.currentYear === self.config.maxDate.getFullYear() &&\n                month > self.config.maxDate.getMonth());\n        };\n        self.monthsDropdownContainer.tabIndex = -1;\n        self.monthsDropdownContainer.innerHTML = \"\";\n        for (var i = 0; i < 12; i++) {\n            if (!shouldBuildMonth(i))\n                continue;\n            var month = (0, dom_1.createElement)(\"option\", \"flatpickr-monthDropdown-month\");\n            month.value = new Date(self.currentYear, i).getMonth().toString();\n            month.textContent = (0, formatting_1.monthToStr)(i, self.config.shorthandCurrentMonth, self.l10n);\n            month.tabIndex = -1;\n            if (self.currentMonth === i) {\n                month.selected = true;\n            }\n            self.monthsDropdownContainer.appendChild(month);\n        }\n    }\n    function buildMonth() {\n        var container = (0, dom_1.createElement)(\"div\", \"flatpickr-month\");\n        var monthNavFragment = window.document.createDocumentFragment();\n        var monthElement;\n        if (self.config.showMonths > 1 ||\n            self.config.monthSelectorType === \"static\") {\n            monthElement = (0, dom_1.createElement)(\"span\", \"cur-month\");\n        }\n        else {\n            self.monthsDropdownContainer = (0, dom_1.createElement)(\"select\", \"flatpickr-monthDropdown-months\");\n            self.monthsDropdownContainer.setAttribute(\"aria-label\", self.l10n.monthAriaLabel);\n            bind(self.monthsDropdownContainer, \"change\", function (e) {\n                var target = (0, dom_1.getEventTarget)(e);\n                var selectedMonth = parseInt(target.value, 10);\n                self.changeMonth(selectedMonth - self.currentMonth);\n                triggerEvent(\"onMonthChange\");\n            });\n            buildMonthSwitch();\n            monthElement = self.monthsDropdownContainer;\n        }\n        var yearInput = (0, dom_1.createNumberInput)(\"cur-year\", { tabindex: \"-1\" });\n        var yearElement = yearInput.getElementsByTagName(\"input\")[0];\n        yearElement.setAttribute(\"aria-label\", self.l10n.yearAriaLabel);\n        if (self.config.minDate) {\n            yearElement.setAttribute(\"min\", self.config.minDate.getFullYear().toString());\n        }\n        if (self.config.maxDate) {\n            yearElement.setAttribute(\"max\", self.config.maxDate.getFullYear().toString());\n            yearElement.disabled =\n                !!self.config.minDate &&\n                    self.config.minDate.getFullYear() === self.config.maxDate.getFullYear();\n        }\n        var currentMonth = (0, dom_1.createElement)(\"div\", \"flatpickr-current-month\");\n        currentMonth.appendChild(monthElement);\n        currentMonth.appendChild(yearInput);\n        monthNavFragment.appendChild(currentMonth);\n        container.appendChild(monthNavFragment);\n        return {\n            container: container,\n            yearElement: yearElement,\n            monthElement: monthElement,\n        };\n    }\n    function buildMonths() {\n        (0, dom_1.clearNode)(self.monthNav);\n        self.monthNav.appendChild(self.prevMonthNav);\n        if (self.config.showMonths) {\n            self.yearElements = [];\n            self.monthElements = [];\n        }\n        for (var m = self.config.showMonths; m--;) {\n            var month = buildMonth();\n            self.yearElements.push(month.yearElement);\n            self.monthElements.push(month.monthElement);\n            self.monthNav.appendChild(month.container);\n        }\n        self.monthNav.appendChild(self.nextMonthNav);\n    }\n    function buildMonthNav() {\n        self.monthNav = (0, dom_1.createElement)(\"div\", \"flatpickr-months\");\n        self.yearElements = [];\n        self.monthElements = [];\n        self.prevMonthNav = (0, dom_1.createElement)(\"span\", \"flatpickr-prev-month\");\n        self.prevMonthNav.innerHTML = self.config.prevArrow;\n        self.nextMonthNav = (0, dom_1.createElement)(\"span\", \"flatpickr-next-month\");\n        self.nextMonthNav.innerHTML = self.config.nextArrow;\n        buildMonths();\n        Object.defineProperty(self, \"_hidePrevMonthArrow\", {\n            get: function () { return self.__hidePrevMonthArrow; },\n            set: function (bool) {\n                if (self.__hidePrevMonthArrow !== bool) {\n                    (0, dom_1.toggleClass)(self.prevMonthNav, \"flatpickr-disabled\", bool);\n                    self.__hidePrevMonthArrow = bool;\n                }\n            },\n        });\n        Object.defineProperty(self, \"_hideNextMonthArrow\", {\n            get: function () { return self.__hideNextMonthArrow; },\n            set: function (bool) {\n                if (self.__hideNextMonthArrow !== bool) {\n                    (0, dom_1.toggleClass)(self.nextMonthNav, \"flatpickr-disabled\", bool);\n                    self.__hideNextMonthArrow = bool;\n                }\n            },\n        });\n        self.currentYearElement = self.yearElements[0];\n        updateNavigationCurrentMonth();\n        return self.monthNav;\n    }\n    function buildTime() {\n        self.calendarContainer.classList.add(\"hasTime\");\n        if (self.config.noCalendar)\n            self.calendarContainer.classList.add(\"noCalendar\");\n        var defaults = (0, dates_1.getDefaultHours)(self.config);\n        self.timeContainer = (0, dom_1.createElement)(\"div\", \"flatpickr-time\");\n        self.timeContainer.tabIndex = -1;\n        var separator = (0, dom_1.createElement)(\"span\", \"flatpickr-time-separator\", \":\");\n        var hourInput = (0, dom_1.createNumberInput)(\"flatpickr-hour\", {\n            \"aria-label\": self.l10n.hourAriaLabel,\n        });\n        self.hourElement = hourInput.getElementsByTagName(\"input\")[0];\n        var minuteInput = (0, dom_1.createNumberInput)(\"flatpickr-minute\", {\n            \"aria-label\": self.l10n.minuteAriaLabel,\n        });\n        self.minuteElement = minuteInput.getElementsByTagName(\"input\")[0];\n        self.hourElement.tabIndex = self.minuteElement.tabIndex = -1;\n        self.hourElement.value = (0, utils_1.pad)(self.latestSelectedDateObj\n            ? self.latestSelectedDateObj.getHours()\n            : self.config.time_24hr\n                ? defaults.hours\n                : military2ampm(defaults.hours));\n        self.minuteElement.value = (0, utils_1.pad)(self.latestSelectedDateObj\n            ? self.latestSelectedDateObj.getMinutes()\n            : defaults.minutes);\n        self.hourElement.setAttribute(\"step\", self.config.hourIncrement.toString());\n        self.minuteElement.setAttribute(\"step\", self.config.minuteIncrement.toString());\n        self.hourElement.setAttribute(\"min\", self.config.time_24hr ? \"0\" : \"1\");\n        self.hourElement.setAttribute(\"max\", self.config.time_24hr ? \"23\" : \"12\");\n        self.hourElement.setAttribute(\"maxlength\", \"2\");\n        self.minuteElement.setAttribute(\"min\", \"0\");\n        self.minuteElement.setAttribute(\"max\", \"59\");\n        self.minuteElement.setAttribute(\"maxlength\", \"2\");\n        self.timeContainer.appendChild(hourInput);\n        self.timeContainer.appendChild(separator);\n        self.timeContainer.appendChild(minuteInput);\n        if (self.config.time_24hr)\n            self.timeContainer.classList.add(\"time24hr\");\n        if (self.config.enableSeconds) {\n            self.timeContainer.classList.add(\"hasSeconds\");\n            var secondInput = (0, dom_1.createNumberInput)(\"flatpickr-second\");\n            self.secondElement = secondInput.getElementsByTagName(\"input\")[0];\n            self.secondElement.value = (0, utils_1.pad)(self.latestSelectedDateObj\n                ? self.latestSelectedDateObj.getSeconds()\n                : defaults.seconds);\n            self.secondElement.setAttribute(\"step\", self.minuteElement.getAttribute(\"step\"));\n            self.secondElement.setAttribute(\"min\", \"0\");\n            self.secondElement.setAttribute(\"max\", \"59\");\n            self.secondElement.setAttribute(\"maxlength\", \"2\");\n            self.timeContainer.appendChild((0, dom_1.createElement)(\"span\", \"flatpickr-time-separator\", \":\"));\n            self.timeContainer.appendChild(secondInput);\n        }\n        if (!self.config.time_24hr) {\n            self.amPM = (0, dom_1.createElement)(\"span\", \"flatpickr-am-pm\", self.l10n.amPM[(0, utils_1.int)((self.latestSelectedDateObj\n                ? self.hourElement.value\n                : self.config.defaultHour) > 11)]);\n            self.amPM.title = self.l10n.toggleTitle;\n            self.amPM.tabIndex = -1;\n            self.timeContainer.appendChild(self.amPM);\n        }\n        return self.timeContainer;\n    }\n    function buildWeekdays() {\n        if (!self.weekdayContainer)\n            self.weekdayContainer = (0, dom_1.createElement)(\"div\", \"flatpickr-weekdays\");\n        else\n            (0, dom_1.clearNode)(self.weekdayContainer);\n        for (var i = self.config.showMonths; i--;) {\n            var container = (0, dom_1.createElement)(\"div\", \"flatpickr-weekdaycontainer\");\n            self.weekdayContainer.appendChild(container);\n        }\n        updateWeekdays();\n        return self.weekdayContainer;\n    }\n    function updateWeekdays() {\n        if (!self.weekdayContainer) {\n            return;\n        }\n        var firstDayOfWeek = self.l10n.firstDayOfWeek;\n        var weekdays = __spreadArrays(self.l10n.weekdays.shorthand);\n        if (firstDayOfWeek > 0 && firstDayOfWeek < weekdays.length) {\n            weekdays = __spreadArrays(weekdays.splice(firstDayOfWeek, weekdays.length), weekdays.splice(0, firstDayOfWeek));\n        }\n        for (var i = self.config.showMonths; i--;) {\n            self.weekdayContainer.children[i].innerHTML = \"\\n      <span class='flatpickr-weekday'>\\n        \" + weekdays.join(\"</span><span class='flatpickr-weekday'>\") + \"\\n      </span>\\n      \";\n        }\n    }\n    function buildWeeks() {\n        self.calendarContainer.classList.add(\"hasWeeks\");\n        var weekWrapper = (0, dom_1.createElement)(\"div\", \"flatpickr-weekwrapper\");\n        weekWrapper.appendChild((0, dom_1.createElement)(\"span\", \"flatpickr-weekday\", self.l10n.weekAbbreviation));\n        var weekNumbers = (0, dom_1.createElement)(\"div\", \"flatpickr-weeks\");\n        weekWrapper.appendChild(weekNumbers);\n        return {\n            weekWrapper: weekWrapper,\n            weekNumbers: weekNumbers,\n        };\n    }\n    function changeMonth(value, isOffset) {\n        if (isOffset === void 0) {\n            isOffset = true;\n        }\n        var delta = isOffset ? value : value - self.currentMonth;\n        if ((delta < 0 && self._hidePrevMonthArrow === true) ||\n            (delta > 0 && self._hideNextMonthArrow === true))\n            return;\n        self.currentMonth += delta;\n        if (self.currentMonth < 0 || self.currentMonth > 11) {\n            self.currentYear += self.currentMonth > 11 ? 1 : -1;\n            self.currentMonth = (self.currentMonth + 12) % 12;\n            triggerEvent(\"onYearChange\");\n            buildMonthSwitch();\n        }\n        buildDays();\n        triggerEvent(\"onMonthChange\");\n        updateNavigationCurrentMonth();\n    }\n    function clear(triggerChangeEvent, toInitial) {\n        if (triggerChangeEvent === void 0) {\n            triggerChangeEvent = true;\n        }\n        if (toInitial === void 0) {\n            toInitial = true;\n        }\n        self.input.value = \"\";\n        if (self.altInput !== undefined)\n            self.altInput.value = \"\";\n        if (self.mobileInput !== undefined)\n            self.mobileInput.value = \"\";\n        self.selectedDates = [];\n        self.latestSelectedDateObj = undefined;\n        if (toInitial === true) {\n            self.currentYear = self._initialDate.getFullYear();\n            self.currentMonth = self._initialDate.getMonth();\n        }\n        if (self.config.enableTime === true) {\n            var _a = (0, dates_1.getDefaultHours)(self.config), hours = _a.hours, minutes = _a.minutes, seconds = _a.seconds;\n            setHours(hours, minutes, seconds);\n        }\n        self.redraw();\n        if (triggerChangeEvent)\n            triggerEvent(\"onChange\");\n    }\n    function close() {\n        self.isOpen = false;\n        if (!self.isMobile) {\n            if (self.calendarContainer !== undefined) {\n                self.calendarContainer.classList.remove(\"open\");\n            }\n            if (self._input !== undefined) {\n                self._input.classList.remove(\"active\");\n            }\n        }\n        triggerEvent(\"onClose\");\n    }\n    function destroy() {\n        if (self.config !== undefined)\n            triggerEvent(\"onDestroy\");\n        for (var i = self._handlers.length; i--;) {\n            self._handlers[i].remove();\n        }\n        self._handlers = [];\n        if (self.mobileInput) {\n            if (self.mobileInput.parentNode)\n                self.mobileInput.parentNode.removeChild(self.mobileInput);\n            self.mobileInput = undefined;\n        }\n        else if (self.calendarContainer && self.calendarContainer.parentNode) {\n            if (self.config.static && self.calendarContainer.parentNode) {\n                var wrapper = self.calendarContainer.parentNode;\n                wrapper.lastChild && wrapper.removeChild(wrapper.lastChild);\n                if (wrapper.parentNode) {\n                    while (wrapper.firstChild)\n                        wrapper.parentNode.insertBefore(wrapper.firstChild, wrapper);\n                    wrapper.parentNode.removeChild(wrapper);\n                }\n            }\n            else\n                self.calendarContainer.parentNode.removeChild(self.calendarContainer);\n        }\n        if (self.altInput) {\n            self.input.type = \"text\";\n            if (self.altInput.parentNode)\n                self.altInput.parentNode.removeChild(self.altInput);\n            delete self.altInput;\n        }\n        if (self.input) {\n            self.input.type = self.input._type;\n            self.input.classList.remove(\"flatpickr-input\");\n            self.input.removeAttribute(\"readonly\");\n        }\n        [\n            \"_showTimeInput\",\n            \"latestSelectedDateObj\",\n            \"_hideNextMonthArrow\",\n            \"_hidePrevMonthArrow\",\n            \"__hideNextMonthArrow\",\n            \"__hidePrevMonthArrow\",\n            \"isMobile\",\n            \"isOpen\",\n            \"selectedDateElem\",\n            \"minDateHasTime\",\n            \"maxDateHasTime\",\n            \"days\",\n            \"daysContainer\",\n            \"_input\",\n            \"_positionElement\",\n            \"innerContainer\",\n            \"rContainer\",\n            \"monthNav\",\n            \"todayDateElem\",\n            \"calendarContainer\",\n            \"weekdayContainer\",\n            \"prevMonthNav\",\n            \"nextMonthNav\",\n            \"monthsDropdownContainer\",\n            \"currentMonthElement\",\n            \"currentYearElement\",\n            \"navigationCurrentMonth\",\n            \"selectedDateElem\",\n            \"config\",\n        ].forEach(function (k) {\n            try {\n                delete self[k];\n            }\n            catch (_) { }\n        });\n    }\n    function isCalendarElem(elem) {\n        return self.calendarContainer.contains(elem);\n    }\n    function documentClick(e) {\n        if (self.isOpen && !self.config.inline) {\n            var eventTarget_1 = (0, dom_1.getEventTarget)(e);\n            var isCalendarElement = isCalendarElem(eventTarget_1);\n            var isInput = eventTarget_1 === self.input ||\n                eventTarget_1 === self.altInput ||\n                self.element.contains(eventTarget_1) ||\n                (e.path &&\n                    e.path.indexOf &&\n                    (~e.path.indexOf(self.input) ||\n                        ~e.path.indexOf(self.altInput)));\n            var lostFocus = !isInput &&\n                !isCalendarElement &&\n                !isCalendarElem(e.relatedTarget);\n            var isIgnored = !self.config.ignoredFocusElements.some(function (elem) {\n                return elem.contains(eventTarget_1);\n            });\n            if (lostFocus && isIgnored) {\n                if (self.config.allowInput) {\n                    self.setDate(self._input.value, false, self.config.altInput\n                        ? self.config.altFormat\n                        : self.config.dateFormat);\n                }\n                if (self.timeContainer !== undefined &&\n                    self.minuteElement !== undefined &&\n                    self.hourElement !== undefined &&\n                    self.input.value !== \"\" &&\n                    self.input.value !== undefined) {\n                    updateTime();\n                }\n                self.close();\n                if (self.config &&\n                    self.config.mode === \"range\" &&\n                    self.selectedDates.length === 1)\n                    self.clear(false);\n            }\n        }\n    }\n    function changeYear(newYear) {\n        if (!newYear ||\n            (self.config.minDate && newYear < self.config.minDate.getFullYear()) ||\n            (self.config.maxDate && newYear > self.config.maxDate.getFullYear()))\n            return;\n        var newYearNum = newYear, isNewYear = self.currentYear !== newYearNum;\n        self.currentYear = newYearNum || self.currentYear;\n        if (self.config.maxDate &&\n            self.currentYear === self.config.maxDate.getFullYear()) {\n            self.currentMonth = Math.min(self.config.maxDate.getMonth(), self.currentMonth);\n        }\n        else if (self.config.minDate &&\n            self.currentYear === self.config.minDate.getFullYear()) {\n            self.currentMonth = Math.max(self.config.minDate.getMonth(), self.currentMonth);\n        }\n        if (isNewYear) {\n            self.redraw();\n            triggerEvent(\"onYearChange\");\n            buildMonthSwitch();\n        }\n    }\n    function isEnabled(date, timeless) {\n        var _a;\n        if (timeless === void 0) {\n            timeless = true;\n        }\n        var dateToCheck = self.parseDate(date, undefined, timeless);\n        if ((self.config.minDate &&\n            dateToCheck &&\n            (0, dates_1.compareDates)(dateToCheck, self.config.minDate, timeless !== undefined ? timeless : !self.minDateHasTime) < 0) ||\n            (self.config.maxDate &&\n                dateToCheck &&\n                (0, dates_1.compareDates)(dateToCheck, self.config.maxDate, timeless !== undefined ? timeless : !self.maxDateHasTime) > 0))\n            return false;\n        if (!self.config.enable && self.config.disable.length === 0)\n            return true;\n        if (dateToCheck === undefined)\n            return false;\n        var bool = !!self.config.enable, array = (_a = self.config.enable) !== null && _a !== void 0 ? _a : self.config.disable;\n        for (var i = 0, d = void 0; i < array.length; i++) {\n            d = array[i];\n            if (typeof d === \"function\" &&\n                d(dateToCheck))\n                return bool;\n            else if (d instanceof Date &&\n                dateToCheck !== undefined &&\n                d.getTime() === dateToCheck.getTime())\n                return bool;\n            else if (typeof d === \"string\") {\n                var parsed = self.parseDate(d, undefined, true);\n                return parsed && parsed.getTime() === dateToCheck.getTime()\n                    ? bool\n                    : !bool;\n            }\n            else if (typeof d === \"object\" &&\n                dateToCheck !== undefined &&\n                d.from &&\n                d.to &&\n                dateToCheck.getTime() >= d.from.getTime() &&\n                dateToCheck.getTime() <= d.to.getTime())\n                return bool;\n        }\n        return !bool;\n    }\n    function isInView(elem) {\n        if (self.daysContainer !== undefined)\n            return (elem.className.indexOf(\"hidden\") === -1 &&\n                elem.className.indexOf(\"flatpickr-disabled\") === -1 &&\n                self.daysContainer.contains(elem));\n        return false;\n    }\n    function onBlur(e) {\n        var isInput = e.target === self._input;\n        var valueChanged = self._input.value.trimEnd() !== getDateStr();\n        if (isInput &&\n            valueChanged &&\n            !(e.relatedTarget && isCalendarElem(e.relatedTarget))) {\n            self.setDate(self._input.value, true, e.target === self.altInput\n                ? self.config.altFormat\n                : self.config.dateFormat);\n        }\n    }\n    function onKeyDown(e) {\n        var eventTarget = (0, dom_1.getEventTarget)(e);\n        var isInput = self.config.wrap\n            ? element.contains(eventTarget)\n            : eventTarget === self._input;\n        var allowInput = self.config.allowInput;\n        var allowKeydown = self.isOpen && (!allowInput || !isInput);\n        var allowInlineKeydown = self.config.inline && isInput && !allowInput;\n        if (e.keyCode === 13 && isInput) {\n            if (allowInput) {\n                self.setDate(self._input.value, true, eventTarget === self.altInput\n                    ? self.config.altFormat\n                    : self.config.dateFormat);\n                self.close();\n                return eventTarget.blur();\n            }\n            else {\n                self.open();\n            }\n        }\n        else if (isCalendarElem(eventTarget) ||\n            allowKeydown ||\n            allowInlineKeydown) {\n            var isTimeObj = !!self.timeContainer &&\n                self.timeContainer.contains(eventTarget);\n            switch (e.keyCode) {\n                case 13:\n                    if (isTimeObj) {\n                        e.preventDefault();\n                        updateTime();\n                        focusAndClose();\n                    }\n                    else\n                        selectDate(e);\n                    break;\n                case 27:\n                    e.preventDefault();\n                    focusAndClose();\n                    break;\n                case 8:\n                case 46:\n                    if (isInput && !self.config.allowInput) {\n                        e.preventDefault();\n                        self.clear();\n                    }\n                    break;\n                case 37:\n                case 39:\n                    if (!isTimeObj && !isInput) {\n                        e.preventDefault();\n                        var activeElement = getClosestActiveElement();\n                        if (self.daysContainer !== undefined &&\n                            (allowInput === false ||\n                                (activeElement && isInView(activeElement)))) {\n                            var delta_1 = e.keyCode === 39 ? 1 : -1;\n                            if (!e.ctrlKey)\n                                focusOnDay(undefined, delta_1);\n                            else {\n                                e.stopPropagation();\n                                changeMonth(delta_1);\n                                focusOnDay(getFirstAvailableDay(1), 0);\n                            }\n                        }\n                    }\n                    else if (self.hourElement)\n                        self.hourElement.focus();\n                    break;\n                case 38:\n                case 40:\n                    e.preventDefault();\n                    var delta = e.keyCode === 40 ? 1 : -1;\n                    if ((self.daysContainer &&\n                        eventTarget.$i !== undefined) ||\n                        eventTarget === self.input ||\n                        eventTarget === self.altInput) {\n                        if (e.ctrlKey) {\n                            e.stopPropagation();\n                            changeYear(self.currentYear - delta);\n                            focusOnDay(getFirstAvailableDay(1), 0);\n                        }\n                        else if (!isTimeObj)\n                            focusOnDay(undefined, delta * 7);\n                    }\n                    else if (eventTarget === self.currentYearElement) {\n                        changeYear(self.currentYear - delta);\n                    }\n                    else if (self.config.enableTime) {\n                        if (!isTimeObj && self.hourElement)\n                            self.hourElement.focus();\n                        updateTime(e);\n                        self._debouncedChange();\n                    }\n                    break;\n                case 9:\n                    if (isTimeObj) {\n                        var elems = [\n                            self.hourElement,\n                            self.minuteElement,\n                            self.secondElement,\n                            self.amPM,\n                        ]\n                            .concat(self.pluginElements)\n                            .filter(function (x) { return x; });\n                        var i = elems.indexOf(eventTarget);\n                        if (i !== -1) {\n                            var target = elems[i + (e.shiftKey ? -1 : 1)];\n                            e.preventDefault();\n                            (target || self._input).focus();\n                        }\n                    }\n                    else if (!self.config.noCalendar &&\n                        self.daysContainer &&\n                        self.daysContainer.contains(eventTarget) &&\n                        e.shiftKey) {\n                        e.preventDefault();\n                        self._input.focus();\n                    }\n                    break;\n                default:\n                    break;\n            }\n        }\n        if (self.amPM !== undefined && eventTarget === self.amPM) {\n            switch (e.key) {\n                case self.l10n.amPM[0].charAt(0):\n                case self.l10n.amPM[0].charAt(0).toLowerCase():\n                    self.amPM.textContent = self.l10n.amPM[0];\n                    setHoursFromInputs();\n                    updateValue();\n                    break;\n                case self.l10n.amPM[1].charAt(0):\n                case self.l10n.amPM[1].charAt(0).toLowerCase():\n                    self.amPM.textContent = self.l10n.amPM[1];\n                    setHoursFromInputs();\n                    updateValue();\n                    break;\n            }\n        }\n        if (isInput || isCalendarElem(eventTarget)) {\n            triggerEvent(\"onKeyDown\", e);\n        }\n    }\n    function onMouseOver(elem, cellClass) {\n        if (cellClass === void 0) {\n            cellClass = \"flatpickr-day\";\n        }\n        if (self.selectedDates.length !== 1 ||\n            (elem &&\n                (!elem.classList.contains(cellClass) ||\n                    elem.classList.contains(\"flatpickr-disabled\"))))\n            return;\n        var hoverDate = elem\n            ? elem.dateObj.getTime()\n            : self.days.firstElementChild.dateObj.getTime(), initialDate = self.parseDate(self.selectedDates[0], undefined, true).getTime(), rangeStartDate = Math.min(hoverDate, self.selectedDates[0].getTime()), rangeEndDate = Math.max(hoverDate, self.selectedDates[0].getTime());\n        var containsDisabled = false;\n        var minRange = 0, maxRange = 0;\n        for (var t = rangeStartDate; t < rangeEndDate; t += dates_1.duration.DAY) {\n            if (!isEnabled(new Date(t), true)) {\n                containsDisabled =\n                    containsDisabled || (t > rangeStartDate && t < rangeEndDate);\n                if (t < initialDate && (!minRange || t > minRange))\n                    minRange = t;\n                else if (t > initialDate && (!maxRange || t < maxRange))\n                    maxRange = t;\n            }\n        }\n        var hoverableCells = Array.from(self.rContainer.querySelectorAll(\"*:nth-child(-n+\" + self.config.showMonths + \") > .\" + cellClass));\n        hoverableCells.forEach(function (dayElem) {\n            var date = dayElem.dateObj;\n            var timestamp = date.getTime();\n            var outOfRange = (minRange > 0 && timestamp < minRange) ||\n                (maxRange > 0 && timestamp > maxRange);\n            if (outOfRange) {\n                dayElem.classList.add(\"notAllowed\");\n                [\"inRange\", \"startRange\", \"endRange\"].forEach(function (c) {\n                    dayElem.classList.remove(c);\n                });\n                return;\n            }\n            else if (containsDisabled && !outOfRange)\n                return;\n            [\"startRange\", \"inRange\", \"endRange\", \"notAllowed\"].forEach(function (c) {\n                dayElem.classList.remove(c);\n            });\n            if (elem !== undefined) {\n                elem.classList.add(hoverDate <= self.selectedDates[0].getTime()\n                    ? \"startRange\"\n                    : \"endRange\");\n                if (initialDate < hoverDate && timestamp === initialDate)\n                    dayElem.classList.add(\"startRange\");\n                else if (initialDate > hoverDate && timestamp === initialDate)\n                    dayElem.classList.add(\"endRange\");\n                if (timestamp >= minRange &&\n                    (maxRange === 0 || timestamp <= maxRange) &&\n                    (0, dates_1.isBetween)(timestamp, initialDate, hoverDate))\n                    dayElem.classList.add(\"inRange\");\n            }\n        });\n    }\n    function onResize() {\n        if (self.isOpen && !self.config.static && !self.config.inline)\n            positionCalendar();\n    }\n    function open(e, positionElement) {\n        if (positionElement === void 0) {\n            positionElement = self._positionElement;\n        }\n        if (self.isMobile === true) {\n            if (e) {\n                e.preventDefault();\n                var eventTarget = (0, dom_1.getEventTarget)(e);\n                if (eventTarget) {\n                    eventTarget.blur();\n                }\n            }\n            if (self.mobileInput !== undefined) {\n                self.mobileInput.focus();\n                self.mobileInput.click();\n            }\n            triggerEvent(\"onOpen\");\n            return;\n        }\n        else if (self._input.disabled || self.config.inline) {\n            return;\n        }\n        var wasOpen = self.isOpen;\n        self.isOpen = true;\n        if (!wasOpen) {\n            self.calendarContainer.classList.add(\"open\");\n            self._input.classList.add(\"active\");\n            triggerEvent(\"onOpen\");\n            positionCalendar(positionElement);\n        }\n        if (self.config.enableTime === true && self.config.noCalendar === true) {\n            if (self.config.allowInput === false &&\n                (e === undefined ||\n                    !self.timeContainer.contains(e.relatedTarget))) {\n                setTimeout(function () { return self.hourElement.select(); }, 50);\n            }\n        }\n    }\n    function minMaxDateSetter(type) {\n        return function (date) {\n            var dateObj = (self.config[\"_\" + type + \"Date\"] = self.parseDate(date, self.config.dateFormat));\n            var inverseDateObj = self.config[\"_\" + (type === \"min\" ? \"max\" : \"min\") + \"Date\"];\n            if (dateObj !== undefined) {\n                self[type === \"min\" ? \"minDateHasTime\" : \"maxDateHasTime\"] =\n                    dateObj.getHours() > 0 ||\n                        dateObj.getMinutes() > 0 ||\n                        dateObj.getSeconds() > 0;\n            }\n            if (self.selectedDates) {\n                self.selectedDates = self.selectedDates.filter(function (d) { return isEnabled(d); });\n                if (!self.selectedDates.length && type === \"min\")\n                    setHoursFromDate(dateObj);\n                updateValue();\n            }\n            if (self.daysContainer) {\n                redraw();\n                if (dateObj !== undefined)\n                    self.currentYearElement[type] = dateObj.getFullYear().toString();\n                else\n                    self.currentYearElement.removeAttribute(type);\n                self.currentYearElement.disabled =\n                    !!inverseDateObj &&\n                        dateObj !== undefined &&\n                        inverseDateObj.getFullYear() === dateObj.getFullYear();\n            }\n        };\n    }\n    function parseConfig() {\n        var boolOpts = [\n            \"wrap\",\n            \"weekNumbers\",\n            \"allowInput\",\n            \"allowInvalidPreload\",\n            \"clickOpens\",\n            \"time_24hr\",\n            \"enableTime\",\n            \"noCalendar\",\n            \"altInput\",\n            \"shorthandCurrentMonth\",\n            \"inline\",\n            \"static\",\n            \"enableSeconds\",\n            \"disableMobile\",\n        ];\n        var userConfig = __assign(__assign({}, JSON.parse(JSON.stringify(element.dataset || {}))), instanceConfig);\n        var formats = {};\n        self.config.parseDate = userConfig.parseDate;\n        self.config.formatDate = userConfig.formatDate;\n        Object.defineProperty(self.config, \"enable\", {\n            get: function () { return self.config._enable; },\n            set: function (dates) {\n                self.config._enable = parseDateRules(dates);\n            },\n        });\n        Object.defineProperty(self.config, \"disable\", {\n            get: function () { return self.config._disable; },\n            set: function (dates) {\n                self.config._disable = parseDateRules(dates);\n            },\n        });\n        var timeMode = userConfig.mode === \"time\";\n        if (!userConfig.dateFormat && (userConfig.enableTime || timeMode)) {\n            var defaultDateFormat = flatpickr.defaultConfig.dateFormat || options_1.defaults.dateFormat;\n            formats.dateFormat =\n                userConfig.noCalendar || timeMode\n                    ? \"H:i\" + (userConfig.enableSeconds ? \":S\" : \"\")\n                    : defaultDateFormat + \" H:i\" + (userConfig.enableSeconds ? \":S\" : \"\");\n        }\n        if (userConfig.altInput &&\n            (userConfig.enableTime || timeMode) &&\n            !userConfig.altFormat) {\n            var defaultAltFormat = flatpickr.defaultConfig.altFormat || options_1.defaults.altFormat;\n            formats.altFormat =\n                userConfig.noCalendar || timeMode\n                    ? \"h:i\" + (userConfig.enableSeconds ? \":S K\" : \" K\")\n                    : defaultAltFormat + (\" h:i\" + (userConfig.enableSeconds ? \":S\" : \"\") + \" K\");\n        }\n        Object.defineProperty(self.config, \"minDate\", {\n            get: function () { return self.config._minDate; },\n            set: minMaxDateSetter(\"min\"),\n        });\n        Object.defineProperty(self.config, \"maxDate\", {\n            get: function () { return self.config._maxDate; },\n            set: minMaxDateSetter(\"max\"),\n        });\n        var minMaxTimeSetter = function (type) {\n            return function (val) {\n                self.config[type === \"min\" ? \"_minTime\" : \"_maxTime\"] = self.parseDate(val, \"H:i:S\");\n            };\n        };\n        Object.defineProperty(self.config, \"minTime\", {\n            get: function () { return self.config._minTime; },\n            set: minMaxTimeSetter(\"min\"),\n        });\n        Object.defineProperty(self.config, \"maxTime\", {\n            get: function () { return self.config._maxTime; },\n            set: minMaxTimeSetter(\"max\"),\n        });\n        if (userConfig.mode === \"time\") {\n            self.config.noCalendar = true;\n            self.config.enableTime = true;\n        }\n        Object.assign(self.config, formats, userConfig);\n        for (var i = 0; i < boolOpts.length; i++)\n            self.config[boolOpts[i]] =\n                self.config[boolOpts[i]] === true ||\n                    self.config[boolOpts[i]] === \"true\";\n        options_1.HOOKS.filter(function (hook) { return self.config[hook] !== undefined; }).forEach(function (hook) {\n            self.config[hook] = (0, utils_1.arrayify)(self.config[hook] || []).map(bindToInstance);\n        });\n        self.isMobile =\n            !self.config.disableMobile &&\n                !self.config.inline &&\n                self.config.mode === \"single\" &&\n                !self.config.disable.length &&\n                !self.config.enable &&\n                !self.config.weekNumbers &&\n                /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\n        for (var i = 0; i < self.config.plugins.length; i++) {\n            var pluginConf = self.config.plugins[i](self) || {};\n            for (var key in pluginConf) {\n                if (options_1.HOOKS.indexOf(key) > -1) {\n                    self.config[key] = (0, utils_1.arrayify)(pluginConf[key])\n                        .map(bindToInstance)\n                        .concat(self.config[key]);\n                }\n                else if (typeof userConfig[key] === \"undefined\")\n                    self.config[key] = pluginConf[key];\n            }\n        }\n        if (!userConfig.altInputClass) {\n            self.config.altInputClass =\n                getInputElem().className + \" \" + self.config.altInputClass;\n        }\n        triggerEvent(\"onParseConfig\");\n    }\n    function getInputElem() {\n        return self.config.wrap\n            ? element.querySelector(\"[data-input]\")\n            : element;\n    }\n    function setupLocale() {\n        if (typeof self.config.locale !== \"object\" &&\n            typeof flatpickr.l10ns[self.config.locale] === \"undefined\")\n            self.config.errorHandler(new Error(\"flatpickr: invalid locale \" + self.config.locale));\n        self.l10n = __assign(__assign({}, flatpickr.l10ns.default), (typeof self.config.locale === \"object\"\n            ? self.config.locale\n            : self.config.locale !== \"default\"\n                ? flatpickr.l10ns[self.config.locale]\n                : undefined));\n        formatting_1.tokenRegex.D = \"(\" + self.l10n.weekdays.shorthand.join(\"|\") + \")\";\n        formatting_1.tokenRegex.l = \"(\" + self.l10n.weekdays.longhand.join(\"|\") + \")\";\n        formatting_1.tokenRegex.M = \"(\" + self.l10n.months.shorthand.join(\"|\") + \")\";\n        formatting_1.tokenRegex.F = \"(\" + self.l10n.months.longhand.join(\"|\") + \")\";\n        formatting_1.tokenRegex.K = \"(\" + self.l10n.amPM[0] + \"|\" + self.l10n.amPM[1] + \"|\" + self.l10n.amPM[0].toLowerCase() + \"|\" + self.l10n.amPM[1].toLowerCase() + \")\";\n        var userConfig = __assign(__assign({}, instanceConfig), JSON.parse(JSON.stringify(element.dataset || {})));\n        if (userConfig.time_24hr === undefined &&\n            flatpickr.defaultConfig.time_24hr === undefined) {\n            self.config.time_24hr = self.l10n.time_24hr;\n        }\n        self.formatDate = (0, dates_1.createDateFormatter)(self);\n        self.parseDate = (0, dates_1.createDateParser)({ config: self.config, l10n: self.l10n });\n    }\n    function positionCalendar(customPositionElement) {\n        if (typeof self.config.position === \"function\") {\n            return void self.config.position(self, customPositionElement);\n        }\n        if (self.calendarContainer === undefined)\n            return;\n        triggerEvent(\"onPreCalendarPosition\");\n        var positionElement = customPositionElement || self._positionElement;\n        var calendarHeight = Array.prototype.reduce.call(self.calendarContainer.children, (function (acc, child) { return acc + child.offsetHeight; }), 0), calendarWidth = self.calendarContainer.offsetWidth, configPos = self.config.position.split(\" \"), configPosVertical = configPos[0], configPosHorizontal = configPos.length > 1 ? configPos[1] : null, inputBounds = positionElement.getBoundingClientRect(), distanceFromBottom = window.innerHeight - inputBounds.bottom, showOnTop = configPosVertical === \"above\" ||\n            (configPosVertical !== \"below\" &&\n                distanceFromBottom < calendarHeight &&\n                inputBounds.top > calendarHeight);\n        var top = window.pageYOffset +\n            inputBounds.top +\n            (!showOnTop ? positionElement.offsetHeight + 2 : -calendarHeight - 2);\n        (0, dom_1.toggleClass)(self.calendarContainer, \"arrowTop\", !showOnTop);\n        (0, dom_1.toggleClass)(self.calendarContainer, \"arrowBottom\", showOnTop);\n        if (self.config.inline)\n            return;\n        var left = window.pageXOffset + inputBounds.left;\n        var isCenter = false;\n        var isRight = false;\n        if (configPosHorizontal === \"center\") {\n            left -= (calendarWidth - inputBounds.width) / 2;\n            isCenter = true;\n        }\n        else if (configPosHorizontal === \"right\") {\n            left -= calendarWidth - inputBounds.width;\n            isRight = true;\n        }\n        (0, dom_1.toggleClass)(self.calendarContainer, \"arrowLeft\", !isCenter && !isRight);\n        (0, dom_1.toggleClass)(self.calendarContainer, \"arrowCenter\", isCenter);\n        (0, dom_1.toggleClass)(self.calendarContainer, \"arrowRight\", isRight);\n        var right = window.document.body.offsetWidth -\n            (window.pageXOffset + inputBounds.right);\n        var rightMost = left + calendarWidth > window.document.body.offsetWidth;\n        var centerMost = right + calendarWidth > window.document.body.offsetWidth;\n        (0, dom_1.toggleClass)(self.calendarContainer, \"rightMost\", rightMost);\n        if (self.config.static)\n            return;\n        self.calendarContainer.style.top = top + \"px\";\n        if (!rightMost) {\n            self.calendarContainer.style.left = left + \"px\";\n            self.calendarContainer.style.right = \"auto\";\n        }\n        else if (!centerMost) {\n            self.calendarContainer.style.left = \"auto\";\n            self.calendarContainer.style.right = right + \"px\";\n        }\n        else {\n            var doc = getDocumentStyleSheet();\n            if (doc === undefined)\n                return;\n            var bodyWidth = window.document.body.offsetWidth;\n            var centerLeft = Math.max(0, bodyWidth / 2 - calendarWidth / 2);\n            var centerBefore = \".flatpickr-calendar.centerMost:before\";\n            var centerAfter = \".flatpickr-calendar.centerMost:after\";\n            var centerIndex = doc.cssRules.length;\n            var centerStyle = \"{left:\" + inputBounds.left + \"px;right:auto;}\";\n            (0, dom_1.toggleClass)(self.calendarContainer, \"rightMost\", false);\n            (0, dom_1.toggleClass)(self.calendarContainer, \"centerMost\", true);\n            doc.insertRule(centerBefore + \",\" + centerAfter + centerStyle, centerIndex);\n            self.calendarContainer.style.left = centerLeft + \"px\";\n            self.calendarContainer.style.right = \"auto\";\n        }\n    }\n    function getDocumentStyleSheet() {\n        var editableSheet = null;\n        for (var i = 0; i < document.styleSheets.length; i++) {\n            var sheet = document.styleSheets[i];\n            if (!sheet.cssRules)\n                continue;\n            try {\n                sheet.cssRules;\n            }\n            catch (err) {\n                continue;\n            }\n            editableSheet = sheet;\n            break;\n        }\n        return editableSheet != null ? editableSheet : createStyleSheet();\n    }\n    function createStyleSheet() {\n        var style = document.createElement(\"style\");\n        document.head.appendChild(style);\n        return style.sheet;\n    }\n    function redraw() {\n        if (self.config.noCalendar || self.isMobile)\n            return;\n        buildMonthSwitch();\n        updateNavigationCurrentMonth();\n        buildDays();\n    }\n    function focusAndClose() {\n        self._input.focus();\n        if (window.navigator.userAgent.indexOf(\"MSIE\") !== -1 ||\n            navigator.msMaxTouchPoints !== undefined) {\n            setTimeout(self.close, 0);\n        }\n        else {\n            self.close();\n        }\n    }\n    function selectDate(e) {\n        e.preventDefault();\n        e.stopPropagation();\n        var isSelectable = function (day) {\n            return day.classList &&\n                day.classList.contains(\"flatpickr-day\") &&\n                !day.classList.contains(\"flatpickr-disabled\") &&\n                !day.classList.contains(\"notAllowed\");\n        };\n        var t = (0, dom_1.findParent)((0, dom_1.getEventTarget)(e), isSelectable);\n        if (t === undefined)\n            return;\n        var target = t;\n        var selectedDate = (self.latestSelectedDateObj = new Date(target.dateObj.getTime()));\n        var shouldChangeMonth = (selectedDate.getMonth() < self.currentMonth ||\n            selectedDate.getMonth() >\n                self.currentMonth + self.config.showMonths - 1) &&\n            self.config.mode !== \"range\";\n        self.selectedDateElem = target;\n        if (self.config.mode === \"single\")\n            self.selectedDates = [selectedDate];\n        else if (self.config.mode === \"multiple\") {\n            var selectedIndex = isDateSelected(selectedDate);\n            if (selectedIndex)\n                self.selectedDates.splice(parseInt(selectedIndex), 1);\n            else\n                self.selectedDates.push(selectedDate);\n        }\n        else if (self.config.mode === \"range\") {\n            if (self.selectedDates.length === 2) {\n                self.clear(false, false);\n            }\n            self.latestSelectedDateObj = selectedDate;\n            self.selectedDates.push(selectedDate);\n            if ((0, dates_1.compareDates)(selectedDate, self.selectedDates[0], true) !== 0)\n                self.selectedDates.sort(function (a, b) { return a.getTime() - b.getTime(); });\n        }\n        setHoursFromInputs();\n        if (shouldChangeMonth) {\n            var isNewYear = self.currentYear !== selectedDate.getFullYear();\n            self.currentYear = selectedDate.getFullYear();\n            self.currentMonth = selectedDate.getMonth();\n            if (isNewYear) {\n                triggerEvent(\"onYearChange\");\n                buildMonthSwitch();\n            }\n            triggerEvent(\"onMonthChange\");\n        }\n        updateNavigationCurrentMonth();\n        buildDays();\n        updateValue();\n        if (!shouldChangeMonth &&\n            self.config.mode !== \"range\" &&\n            self.config.showMonths === 1)\n            focusOnDayElem(target);\n        else if (self.selectedDateElem !== undefined &&\n            self.hourElement === undefined) {\n            self.selectedDateElem && self.selectedDateElem.focus();\n        }\n        if (self.hourElement !== undefined)\n            self.hourElement !== undefined && self.hourElement.focus();\n        if (self.config.closeOnSelect) {\n            var single = self.config.mode === \"single\" && !self.config.enableTime;\n            var range = self.config.mode === \"range\" &&\n                self.selectedDates.length === 2 &&\n                !self.config.enableTime;\n            if (single || range) {\n                focusAndClose();\n            }\n        }\n        triggerChange();\n    }\n    var CALLBACKS = {\n        locale: [setupLocale, updateWeekdays],\n        showMonths: [buildMonths, setCalendarWidth, buildWeekdays],\n        minDate: [jumpToDate],\n        maxDate: [jumpToDate],\n        positionElement: [updatePositionElement],\n        clickOpens: [\n            function () {\n                if (self.config.clickOpens === true) {\n                    bind(self._input, \"focus\", self.open);\n                    bind(self._input, \"click\", self.open);\n                }\n                else {\n                    self._input.removeEventListener(\"focus\", self.open);\n                    self._input.removeEventListener(\"click\", self.open);\n                }\n            },\n        ],\n    };\n    function set(option, value) {\n        if (option !== null && typeof option === \"object\") {\n            Object.assign(self.config, option);\n            for (var key in option) {\n                if (CALLBACKS[key] !== undefined)\n                    CALLBACKS[key].forEach(function (x) { return x(); });\n            }\n        }\n        else {\n            self.config[option] = value;\n            if (CALLBACKS[option] !== undefined)\n                CALLBACKS[option].forEach(function (x) { return x(); });\n            else if (options_1.HOOKS.indexOf(option) > -1)\n                self.config[option] = (0, utils_1.arrayify)(value);\n        }\n        self.redraw();\n        updateValue(true);\n    }\n    function setSelectedDate(inputDate, format) {\n        var dates = [];\n        if (inputDate instanceof Array)\n            dates = inputDate.map(function (d) { return self.parseDate(d, format); });\n        else if (inputDate instanceof Date || typeof inputDate === \"number\")\n            dates = [self.parseDate(inputDate, format)];\n        else if (typeof inputDate === \"string\") {\n            switch (self.config.mode) {\n                case \"single\":\n                case \"time\":\n                    dates = [self.parseDate(inputDate, format)];\n                    break;\n                case \"multiple\":\n                    dates = inputDate\n                        .split(self.config.conjunction)\n                        .map(function (date) { return self.parseDate(date, format); });\n                    break;\n                case \"range\":\n                    dates = inputDate\n                        .split(self.l10n.rangeSeparator)\n                        .map(function (date) { return self.parseDate(date, format); });\n                    break;\n                default:\n                    break;\n            }\n        }\n        else\n            self.config.errorHandler(new Error(\"Invalid date supplied: \" + JSON.stringify(inputDate)));\n        self.selectedDates = (self.config.allowInvalidPreload\n            ? dates\n            : dates.filter(function (d) { return d instanceof Date && isEnabled(d, false); }));\n        if (self.config.mode === \"range\")\n            self.selectedDates.sort(function (a, b) { return a.getTime() - b.getTime(); });\n    }\n    function setDate(date, triggerChange, format) {\n        if (triggerChange === void 0) {\n            triggerChange = false;\n        }\n        if (format === void 0) {\n            format = self.config.dateFormat;\n        }\n        if ((date !== 0 && !date) || (date instanceof Array && date.length === 0))\n            return self.clear(triggerChange);\n        setSelectedDate(date, format);\n        self.latestSelectedDateObj =\n            self.selectedDates[self.selectedDates.length - 1];\n        self.redraw();\n        jumpToDate(undefined, triggerChange);\n        setHoursFromDate();\n        if (self.selectedDates.length === 0) {\n            self.clear(false);\n        }\n        updateValue(triggerChange);\n        if (triggerChange)\n            triggerEvent(\"onChange\");\n    }\n    function parseDateRules(arr) {\n        return arr\n            .slice()\n            .map(function (rule) {\n            if (typeof rule === \"string\" ||\n                typeof rule === \"number\" ||\n                rule instanceof Date) {\n                return self.parseDate(rule, undefined, true);\n            }\n            else if (rule &&\n                typeof rule === \"object\" &&\n                rule.from &&\n                rule.to)\n                return {\n                    from: self.parseDate(rule.from, undefined),\n                    to: self.parseDate(rule.to, undefined),\n                };\n            return rule;\n        })\n            .filter(function (x) { return x; });\n    }\n    function setupDates() {\n        self.selectedDates = [];\n        self.now = self.parseDate(self.config.now) || new Date();\n        var preloadedDate = self.config.defaultDate ||\n            ((self.input.nodeName === \"INPUT\" ||\n                self.input.nodeName === \"TEXTAREA\") &&\n                self.input.placeholder &&\n                self.input.value === self.input.placeholder\n                ? null\n                : self.input.value);\n        if (preloadedDate)\n            setSelectedDate(preloadedDate, self.config.dateFormat);\n        self._initialDate =\n            self.selectedDates.length > 0\n                ? self.selectedDates[0]\n                : self.config.minDate &&\n                    self.config.minDate.getTime() > self.now.getTime()\n                    ? self.config.minDate\n                    : self.config.maxDate &&\n                        self.config.maxDate.getTime() < self.now.getTime()\n                        ? self.config.maxDate\n                        : self.now;\n        self.currentYear = self._initialDate.getFullYear();\n        self.currentMonth = self._initialDate.getMonth();\n        if (self.selectedDates.length > 0)\n            self.latestSelectedDateObj = self.selectedDates[0];\n        if (self.config.minTime !== undefined)\n            self.config.minTime = self.parseDate(self.config.minTime, \"H:i\");\n        if (self.config.maxTime !== undefined)\n            self.config.maxTime = self.parseDate(self.config.maxTime, \"H:i\");\n        self.minDateHasTime =\n            !!self.config.minDate &&\n                (self.config.minDate.getHours() > 0 ||\n                    self.config.minDate.getMinutes() > 0 ||\n                    self.config.minDate.getSeconds() > 0);\n        self.maxDateHasTime =\n            !!self.config.maxDate &&\n                (self.config.maxDate.getHours() > 0 ||\n                    self.config.maxDate.getMinutes() > 0 ||\n                    self.config.maxDate.getSeconds() > 0);\n    }\n    function setupInputs() {\n        self.input = getInputElem();\n        if (!self.input) {\n            self.config.errorHandler(new Error(\"Invalid input element specified\"));\n            return;\n        }\n        self.input._type = self.input.type;\n        self.input.type = \"text\";\n        self.input.classList.add(\"flatpickr-input\");\n        self._input = self.input;\n        if (self.config.altInput) {\n            self.altInput = (0, dom_1.createElement)(self.input.nodeName, self.config.altInputClass);\n            self._input = self.altInput;\n            self.altInput.placeholder = self.input.placeholder;\n            self.altInput.disabled = self.input.disabled;\n            self.altInput.required = self.input.required;\n            self.altInput.tabIndex = self.input.tabIndex;\n            self.altInput.type = \"text\";\n            self.input.setAttribute(\"type\", \"hidden\");\n            if (!self.config.static && self.input.parentNode)\n                self.input.parentNode.insertBefore(self.altInput, self.input.nextSibling);\n        }\n        if (!self.config.allowInput)\n            self._input.setAttribute(\"readonly\", \"readonly\");\n        updatePositionElement();\n    }\n    function updatePositionElement() {\n        self._positionElement = self.config.positionElement || self._input;\n    }\n    function setupMobile() {\n        var inputType = self.config.enableTime\n            ? self.config.noCalendar\n                ? \"time\"\n                : \"datetime-local\"\n            : \"date\";\n        self.mobileInput = (0, dom_1.createElement)(\"input\", self.input.className + \" flatpickr-mobile\");\n        self.mobileInput.tabIndex = 1;\n        self.mobileInput.type = inputType;\n        self.mobileInput.disabled = self.input.disabled;\n        self.mobileInput.required = self.input.required;\n        self.mobileInput.placeholder = self.input.placeholder;\n        self.mobileFormatStr =\n            inputType === \"datetime-local\"\n                ? \"Y-m-d\\\\TH:i:S\"\n                : inputType === \"date\"\n                    ? \"Y-m-d\"\n                    : \"H:i:S\";\n        if (self.selectedDates.length > 0) {\n            self.mobileInput.defaultValue = self.mobileInput.value = self.formatDate(self.selectedDates[0], self.mobileFormatStr);\n        }\n        if (self.config.minDate)\n            self.mobileInput.min = self.formatDate(self.config.minDate, \"Y-m-d\");\n        if (self.config.maxDate)\n            self.mobileInput.max = self.formatDate(self.config.maxDate, \"Y-m-d\");\n        if (self.input.getAttribute(\"step\"))\n            self.mobileInput.step = String(self.input.getAttribute(\"step\"));\n        self.input.type = \"hidden\";\n        if (self.altInput !== undefined)\n            self.altInput.type = \"hidden\";\n        try {\n            if (self.input.parentNode)\n                self.input.parentNode.insertBefore(self.mobileInput, self.input.nextSibling);\n        }\n        catch (_a) { }\n        bind(self.mobileInput, \"change\", function (e) {\n            self.setDate((0, dom_1.getEventTarget)(e).value, false, self.mobileFormatStr);\n            triggerEvent(\"onChange\");\n            triggerEvent(\"onClose\");\n        });\n    }\n    function toggle(e) {\n        if (self.isOpen === true)\n            return self.close();\n        self.open(e);\n    }\n    function triggerEvent(event, data) {\n        if (self.config === undefined)\n            return;\n        var hooks = self.config[event];\n        if (hooks !== undefined && hooks.length > 0) {\n            for (var i = 0; hooks[i] && i < hooks.length; i++)\n                hooks[i](self.selectedDates, self.input.value, self, data);\n        }\n        if (event === \"onChange\") {\n            self.input.dispatchEvent(createEvent(\"change\"));\n            self.input.dispatchEvent(createEvent(\"input\"));\n        }\n    }\n    function createEvent(name) {\n        var e = document.createEvent(\"Event\");\n        e.initEvent(name, true, true);\n        return e;\n    }\n    function isDateSelected(date) {\n        for (var i = 0; i < self.selectedDates.length; i++) {\n            var selectedDate = self.selectedDates[i];\n            if (selectedDate instanceof Date &&\n                (0, dates_1.compareDates)(selectedDate, date) === 0)\n                return \"\" + i;\n        }\n        return false;\n    }\n    function isDateInRange(date) {\n        if (self.config.mode !== \"range\" || self.selectedDates.length < 2)\n            return false;\n        return ((0, dates_1.compareDates)(date, self.selectedDates[0]) >= 0 &&\n            (0, dates_1.compareDates)(date, self.selectedDates[1]) <= 0);\n    }\n    function updateNavigationCurrentMonth() {\n        if (self.config.noCalendar || self.isMobile || !self.monthNav)\n            return;\n        self.yearElements.forEach(function (yearElement, i) {\n            var d = new Date(self.currentYear, self.currentMonth, 1);\n            d.setMonth(self.currentMonth + i);\n            if (self.config.showMonths > 1 ||\n                self.config.monthSelectorType === \"static\") {\n                self.monthElements[i].textContent =\n                    (0, formatting_1.monthToStr)(d.getMonth(), self.config.shorthandCurrentMonth, self.l10n) + \" \";\n            }\n            else {\n                self.monthsDropdownContainer.value = d.getMonth().toString();\n            }\n            yearElement.value = d.getFullYear().toString();\n        });\n        self._hidePrevMonthArrow =\n            self.config.minDate !== undefined &&\n                (self.currentYear === self.config.minDate.getFullYear()\n                    ? self.currentMonth <= self.config.minDate.getMonth()\n                    : self.currentYear < self.config.minDate.getFullYear());\n        self._hideNextMonthArrow =\n            self.config.maxDate !== undefined &&\n                (self.currentYear === self.config.maxDate.getFullYear()\n                    ? self.currentMonth + 1 > self.config.maxDate.getMonth()\n                    : self.currentYear > self.config.maxDate.getFullYear());\n    }\n    function getDateStr(specificFormat) {\n        var format = specificFormat ||\n            (self.config.altInput ? self.config.altFormat : self.config.dateFormat);\n        return self.selectedDates\n            .map(function (dObj) { return self.formatDate(dObj, format); })\n            .filter(function (d, i, arr) {\n            return self.config.mode !== \"range\" ||\n                self.config.enableTime ||\n                arr.indexOf(d) === i;\n        })\n            .join(self.config.mode !== \"range\"\n            ? self.config.conjunction\n            : self.l10n.rangeSeparator);\n    }\n    function updateValue(triggerChange) {\n        if (triggerChange === void 0) {\n            triggerChange = true;\n        }\n        if (self.mobileInput !== undefined && self.mobileFormatStr) {\n            self.mobileInput.value =\n                self.latestSelectedDateObj !== undefined\n                    ? self.formatDate(self.latestSelectedDateObj, self.mobileFormatStr)\n                    : \"\";\n        }\n        self.input.value = getDateStr(self.config.dateFormat);\n        if (self.altInput !== undefined) {\n            self.altInput.value = getDateStr(self.config.altFormat);\n        }\n        if (triggerChange !== false)\n            triggerEvent(\"onValueUpdate\");\n    }\n    function onMonthNavClick(e) {\n        var eventTarget = (0, dom_1.getEventTarget)(e);\n        var isPrevMonth = self.prevMonthNav.contains(eventTarget);\n        var isNextMonth = self.nextMonthNav.contains(eventTarget);\n        if (isPrevMonth || isNextMonth) {\n            changeMonth(isPrevMonth ? -1 : 1);\n        }\n        else if (self.yearElements.indexOf(eventTarget) >= 0) {\n            eventTarget.select();\n        }\n        else if (eventTarget.classList.contains(\"arrowUp\")) {\n            self.changeYear(self.currentYear + 1);\n        }\n        else if (eventTarget.classList.contains(\"arrowDown\")) {\n            self.changeYear(self.currentYear - 1);\n        }\n    }\n    function timeWrapper(e) {\n        e.preventDefault();\n        var isKeyDown = e.type === \"keydown\", eventTarget = (0, dom_1.getEventTarget)(e), input = eventTarget;\n        if (self.amPM !== undefined && eventTarget === self.amPM) {\n            self.amPM.textContent =\n                self.l10n.amPM[(0, utils_1.int)(self.amPM.textContent === self.l10n.amPM[0])];\n        }\n        var min = parseFloat(input.getAttribute(\"min\")), max = parseFloat(input.getAttribute(\"max\")), step = parseFloat(input.getAttribute(\"step\")), curValue = parseInt(input.value, 10), delta = e.delta ||\n            (isKeyDown ? (e.which === 38 ? 1 : -1) : 0);\n        var newValue = curValue + step * delta;\n        if (typeof input.value !== \"undefined\" && input.value.length === 2) {\n            var isHourElem = input === self.hourElement, isMinuteElem = input === self.minuteElement;\n            if (newValue < min) {\n                newValue =\n                    max +\n                        newValue +\n                        (0, utils_1.int)(!isHourElem) +\n                        ((0, utils_1.int)(isHourElem) && (0, utils_1.int)(!self.amPM));\n                if (isMinuteElem)\n                    incrementNumInput(undefined, -1, self.hourElement);\n            }\n            else if (newValue > max) {\n                newValue =\n                    input === self.hourElement ? newValue - max - (0, utils_1.int)(!self.amPM) : min;\n                if (isMinuteElem)\n                    incrementNumInput(undefined, 1, self.hourElement);\n            }\n            if (self.amPM &&\n                isHourElem &&\n                (step === 1\n                    ? newValue + curValue === 23\n                    : Math.abs(newValue - curValue) > step)) {\n                self.amPM.textContent =\n                    self.l10n.amPM[(0, utils_1.int)(self.amPM.textContent === self.l10n.amPM[0])];\n            }\n            input.value = (0, utils_1.pad)(newValue);\n        }\n    }\n    init();\n    return self;\n}\nfunction _flatpickr(nodeList, config) {\n    var nodes = Array.prototype.slice\n        .call(nodeList)\n        .filter(function (x) { return x instanceof HTMLElement; });\n    var instances = [];\n    for (var i = 0; i < nodes.length; i++) {\n        var node = nodes[i];\n        try {\n            if (node.getAttribute(\"data-fp-omit\") !== null)\n                continue;\n            if (node._flatpickr !== undefined) {\n                node._flatpickr.destroy();\n                node._flatpickr = undefined;\n            }\n            node._flatpickr = FlatpickrInstance(node, config || {});\n            instances.push(node._flatpickr);\n        }\n        catch (e) {\n            console.error(e);\n        }\n    }\n    return instances.length === 1 ? instances[0] : instances;\n}\nif (typeof HTMLElement !== \"undefined\" &&\n    typeof HTMLCollection !== \"undefined\" &&\n    typeof NodeList !== \"undefined\") {\n    HTMLCollection.prototype.flatpickr = NodeList.prototype.flatpickr = function (config) {\n        return _flatpickr(this, config);\n    };\n    HTMLElement.prototype.flatpickr = function (config) {\n        return _flatpickr([this], config);\n    };\n}\nvar flatpickr = function (selector, config) {\n    if (typeof selector === \"string\") {\n        return _flatpickr(window.document.querySelectorAll(selector), config);\n    }\n    else if (selector instanceof Node) {\n        return _flatpickr([selector], config);\n    }\n    else {\n        return _flatpickr(selector, config);\n    }\n};\nflatpickr.defaultConfig = {};\nflatpickr.l10ns = {\n    en: __assign({}, default_1.default),\n    default: __assign({}, default_1.default),\n};\nflatpickr.localize = function (l10n) {\n    flatpickr.l10ns.default = __assign(__assign({}, flatpickr.l10ns.default), l10n);\n};\nflatpickr.setDefaults = function (config) {\n    flatpickr.defaultConfig = __assign(__assign({}, flatpickr.defaultConfig), config);\n};\nflatpickr.parseDate = (0, dates_1.createDateParser)({});\nflatpickr.formatDate = (0, dates_1.createDateFormatter)({});\nflatpickr.compareDates = dates_1.compareDates;\nif (typeof jQuery !== \"undefined\" && typeof jQuery.fn !== \"undefined\") {\n    jQuery.fn.flatpickr = function (config) {\n        return _flatpickr(this, config);\n    };\n}\nDate.prototype.fp_incr = function (days) {\n    return new Date(this.getFullYear(), this.getMonth(), this.getDate() + (typeof days === \"string\" ? parseInt(days, 10) : days));\n};\nif (typeof window !== \"undefined\") {\n    window.flatpickr = flatpickr;\n}\nexports.default = flatpickr;\n","type":"js","dependency_paths":[["./types/options","/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/types/options.js"],["./l10n/default","/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/l10n/default.js"],["./utils","/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/utils/index.js"],["./utils/dom","/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/utils/dom.js"],["./utils/dates","/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/utils/dates.js"],["./utils/formatting","/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/utils/formatting.js"],["./utils/polyfills","/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/utils/polyfills.js"]],"dependency_map":[],"exported":[{"type":"named","name":"default"}],"externals":[],"shims":[]},"code":{"source":"/* flatpickr/dist/esm/index.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    var __assign = (this && this.__assign) || function () {\n        __assign = Object.assign || function (t) {\n            for (var s, i = 1, n = arguments.length; i < n; i++) {\n                s = arguments[i];\n                for (var p in s)\n                    if (Object.prototype.hasOwnProperty.call(s, p))\n                        t[p] = s[p];\n            }\n            return t;\n        };\n        return __assign.apply(this, arguments);\n    };\n    var __spreadArrays = (this && this.__spreadArrays) || function () {\n        for (var s = 0, i = 0, il = arguments.length; i < il; i++)\n            s += arguments[i].length;\n        for (var r = Array(s), k = 0, i = 0; i < il; i++)\n            for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n                r[k] = a[j];\n        return r;\n    };\n    const options_1 = require(\"651d495396\") /* ./types/options */;\n    const default_1 = tslib_1.__importDefault(require(\"3bfa124fda\") /* ./l10n/default */);\n    const utils_1 = require(\"15458073ce\") /* ./utils */;\n    const dom_1 = require(\"6b6749c6cf\") /* ./utils/dom */;\n    const dates_1 = require(\"1bb8c967d1\") /* ./utils/dates */;\n    const formatting_1 = require(\"3d14787c35\") /* ./utils/formatting */;\n    require(\"6f45019dc1\") /* ./utils/polyfills */;\n    var DEBOUNCED_CHANGE_MS = 300;\n    function FlatpickrInstance(element, instanceConfig) {\n        var self = {\n            config: __assign(__assign({}, options_1.defaults), flatpickr.defaultConfig),\n            l10n: default_1.default,\n        };\n        self.parseDate = (0, dates_1.createDateParser)({ config: self.config, l10n: self.l10n });\n        self._handlers = [];\n        self.pluginElements = [];\n        self.loadedPlugins = [];\n        self._bind = bind;\n        self._setHoursFromDate = setHoursFromDate;\n        self._positionCalendar = positionCalendar;\n        self.changeMonth = changeMonth;\n        self.changeYear = changeYear;\n        self.clear = clear;\n        self.close = close;\n        self.onMouseOver = onMouseOver;\n        self._createElement = dom_1.createElement;\n        self.createDay = createDay;\n        self.destroy = destroy;\n        self.isEnabled = isEnabled;\n        self.jumpToDate = jumpToDate;\n        self.updateValue = updateValue;\n        self.open = open;\n        self.redraw = redraw;\n        self.set = set;\n        self.setDate = setDate;\n        self.toggle = toggle;\n        function setupHelperFunctions() {\n            self.utils = {\n                getDaysInMonth: function (month, yr) {\n                    if (month === void 0) {\n                        month = self.currentMonth;\n                    }\n                    if (yr === void 0) {\n                        yr = self.currentYear;\n                    }\n                    if (month === 1 && ((yr % 4 === 0 && yr % 100 !== 0) || yr % 400 === 0))\n                        return 29;\n                    return self.l10n.daysInMonth[month];\n                },\n            };\n        }\n        function init() {\n            self.element = self.input = element;\n            self.isOpen = false;\n            parseConfig();\n            setupLocale();\n            setupInputs();\n            setupDates();\n            setupHelperFunctions();\n            if (!self.isMobile)\n                build();\n            bindEvents();\n            if (self.selectedDates.length || self.config.noCalendar) {\n                if (self.config.enableTime) {\n                    setHoursFromDate(self.config.noCalendar ? self.latestSelectedDateObj : undefined);\n                }\n                updateValue(false);\n            }\n            setCalendarWidth();\n            var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);\n            if (!self.isMobile && isSafari) {\n                positionCalendar();\n            }\n            triggerEvent(\"onReady\");\n        }\n        function getClosestActiveElement() {\n            var _a;\n            return (((_a = self.calendarContainer) === null || _a === void 0 ? void 0 : _a.getRootNode())\n                .activeElement || document.activeElement);\n        }\n        function bindToInstance(fn) {\n            return fn.bind(self);\n        }\n        function setCalendarWidth() {\n            var config = self.config;\n            if (config.weekNumbers === false && config.showMonths === 1) {\n                return;\n            }\n            else if (config.noCalendar !== true) {\n                window.requestAnimationFrame(function () {\n                    if (self.calendarContainer !== undefined) {\n                        self.calendarContainer.style.visibility = \"hidden\";\n                        self.calendarContainer.style.display = \"block\";\n                    }\n                    if (self.daysContainer !== undefined) {\n                        var daysWidth = (self.days.offsetWidth + 1) * config.showMonths;\n                        self.daysContainer.style.width = daysWidth + \"px\";\n                        self.calendarContainer.style.width =\n                            daysWidth +\n                                (self.weekWrapper !== undefined\n                                    ? self.weekWrapper.offsetWidth\n                                    : 0) +\n                                \"px\";\n                        self.calendarContainer.style.removeProperty(\"visibility\");\n                        self.calendarContainer.style.removeProperty(\"display\");\n                    }\n                });\n            }\n        }\n        function updateTime(e) {\n            if (self.selectedDates.length === 0) {\n                var defaultDate = self.config.minDate === undefined ||\n                    (0, dates_1.compareDates)(new Date(), self.config.minDate) >= 0\n                    ? new Date()\n                    : new Date(self.config.minDate.getTime());\n                var defaults = (0, dates_1.getDefaultHours)(self.config);\n                defaultDate.setHours(defaults.hours, defaults.minutes, defaults.seconds, defaultDate.getMilliseconds());\n                self.selectedDates = [defaultDate];\n                self.latestSelectedDateObj = defaultDate;\n            }\n            if (e !== undefined && e.type !== \"blur\") {\n                timeWrapper(e);\n            }\n            var prevValue = self._input.value;\n            setHoursFromInputs();\n            updateValue();\n            if (self._input.value !== prevValue) {\n                self._debouncedChange();\n            }\n        }\n        function ampm2military(hour, amPM) {\n            return (hour % 12) + 12 * (0, utils_1.int)(amPM === self.l10n.amPM[1]);\n        }\n        function military2ampm(hour) {\n            switch (hour % 24) {\n                case 0:\n                case 12:\n                    return 12;\n                default:\n                    return hour % 12;\n            }\n        }\n        function setHoursFromInputs() {\n            if (self.hourElement === undefined || self.minuteElement === undefined)\n                return;\n            var hours = (parseInt(self.hourElement.value.slice(-2), 10) || 0) % 24, minutes = (parseInt(self.minuteElement.value, 10) || 0) % 60, seconds = self.secondElement !== undefined\n                ? (parseInt(self.secondElement.value, 10) || 0) % 60\n                : 0;\n            if (self.amPM !== undefined) {\n                hours = ampm2military(hours, self.amPM.textContent);\n            }\n            var limitMinHours = self.config.minTime !== undefined ||\n                (self.config.minDate &&\n                    self.minDateHasTime &&\n                    self.latestSelectedDateObj &&\n                    (0, dates_1.compareDates)(self.latestSelectedDateObj, self.config.minDate, true) ===\n                        0);\n            var limitMaxHours = self.config.maxTime !== undefined ||\n                (self.config.maxDate &&\n                    self.maxDateHasTime &&\n                    self.latestSelectedDateObj &&\n                    (0, dates_1.compareDates)(self.latestSelectedDateObj, self.config.maxDate, true) ===\n                        0);\n            if (self.config.maxTime !== undefined &&\n                self.config.minTime !== undefined &&\n                self.config.minTime > self.config.maxTime) {\n                var minBound = (0, dates_1.calculateSecondsSinceMidnight)(self.config.minTime.getHours(), self.config.minTime.getMinutes(), self.config.minTime.getSeconds());\n                var maxBound = (0, dates_1.calculateSecondsSinceMidnight)(self.config.maxTime.getHours(), self.config.maxTime.getMinutes(), self.config.maxTime.getSeconds());\n                var currentTime = (0, dates_1.calculateSecondsSinceMidnight)(hours, minutes, seconds);\n                if (currentTime > maxBound && currentTime < minBound) {\n                    var result = (0, dates_1.parseSeconds)(minBound);\n                    hours = result[0];\n                    minutes = result[1];\n                    seconds = result[2];\n                }\n            }\n            else {\n                if (limitMaxHours) {\n                    var maxTime = self.config.maxTime !== undefined\n                        ? self.config.maxTime\n                        : self.config.maxDate;\n                    hours = Math.min(hours, maxTime.getHours());\n                    if (hours === maxTime.getHours())\n                        minutes = Math.min(minutes, maxTime.getMinutes());\n                    if (minutes === maxTime.getMinutes())\n                        seconds = Math.min(seconds, maxTime.getSeconds());\n                }\n                if (limitMinHours) {\n                    var minTime = self.config.minTime !== undefined\n                        ? self.config.minTime\n                        : self.config.minDate;\n                    hours = Math.max(hours, minTime.getHours());\n                    if (hours === minTime.getHours() && minutes < minTime.getMinutes())\n                        minutes = minTime.getMinutes();\n                    if (minutes === minTime.getMinutes())\n                        seconds = Math.max(seconds, minTime.getSeconds());\n                }\n            }\n            setHours(hours, minutes, seconds);\n        }\n        function setHoursFromDate(dateObj) {\n            var date = dateObj || self.latestSelectedDateObj;\n            if (date && date instanceof Date) {\n                setHours(date.getHours(), date.getMinutes(), date.getSeconds());\n            }\n        }\n        function setHours(hours, minutes, seconds) {\n            if (self.latestSelectedDateObj !== undefined) {\n                self.latestSelectedDateObj.setHours(hours % 24, minutes, seconds || 0, 0);\n            }\n            if (!self.hourElement || !self.minuteElement || self.isMobile)\n                return;\n            self.hourElement.value = (0, utils_1.pad)(!self.config.time_24hr\n                ? ((12 + hours) % 12) + 12 * (0, utils_1.int)(hours % 12 === 0)\n                : hours);\n            self.minuteElement.value = (0, utils_1.pad)(minutes);\n            if (self.amPM !== undefined)\n                self.amPM.textContent = self.l10n.amPM[(0, utils_1.int)(hours >= 12)];\n            if (self.secondElement !== undefined)\n                self.secondElement.value = (0, utils_1.pad)(seconds);\n        }\n        function onYearInput(event) {\n            var eventTarget = (0, dom_1.getEventTarget)(event);\n            var year = parseInt(eventTarget.value) + (event.delta || 0);\n            if (year / 1000 > 1 ||\n                (event.key === \"Enter\" && !/[^\\d]/.test(year.toString()))) {\n                changeYear(year);\n            }\n        }\n        function bind(element, event, handler, options) {\n            if (event instanceof Array)\n                return event.forEach(function (ev) { return bind(element, ev, handler, options); });\n            if (element instanceof Array)\n                return element.forEach(function (el) { return bind(el, event, handler, options); });\n            element.addEventListener(event, handler, options);\n            self._handlers.push({\n                remove: function () { return element.removeEventListener(event, handler, options); },\n            });\n        }\n        function triggerChange() {\n            triggerEvent(\"onChange\");\n        }\n        function bindEvents() {\n            if (self.config.wrap) {\n                [\"open\", \"close\", \"toggle\", \"clear\"].forEach(function (evt) {\n                    Array.prototype.forEach.call(self.element.querySelectorAll(\"[data-\" + evt + \"]\"), function (el) {\n                        return bind(el, \"click\", self[evt]);\n                    });\n                });\n            }\n            if (self.isMobile) {\n                setupMobile();\n                return;\n            }\n            var debouncedResize = (0, utils_1.debounce)(onResize, 50);\n            self._debouncedChange = (0, utils_1.debounce)(triggerChange, DEBOUNCED_CHANGE_MS);\n            if (self.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent))\n                bind(self.daysContainer, \"mouseover\", function (e) {\n                    if (self.config.mode === \"range\")\n                        onMouseOver((0, dom_1.getEventTarget)(e));\n                });\n            bind(self._input, \"keydown\", onKeyDown);\n            if (self.calendarContainer !== undefined) {\n                bind(self.calendarContainer, \"keydown\", onKeyDown);\n            }\n            if (!self.config.inline && !self.config.static)\n                bind(window, \"resize\", debouncedResize);\n            if (window.ontouchstart !== undefined)\n                bind(window.document, \"touchstart\", documentClick);\n            else\n                bind(window.document, \"mousedown\", documentClick);\n            bind(window.document, \"focus\", documentClick, { capture: true });\n            if (self.config.clickOpens === true) {\n                bind(self._input, \"focus\", self.open);\n                bind(self._input, \"click\", self.open);\n            }\n            if (self.daysContainer !== undefined) {\n                bind(self.monthNav, \"click\", onMonthNavClick);\n                bind(self.monthNav, [\"keyup\", \"increment\"], onYearInput);\n                bind(self.daysContainer, \"click\", selectDate);\n            }\n            if (self.timeContainer !== undefined &&\n                self.minuteElement !== undefined &&\n                self.hourElement !== undefined) {\n                var selText = function (e) {\n                    return (0, dom_1.getEventTarget)(e).select();\n                };\n                bind(self.timeContainer, [\"increment\"], updateTime);\n                bind(self.timeContainer, \"blur\", updateTime, { capture: true });\n                bind(self.timeContainer, \"click\", timeIncrement);\n                bind([self.hourElement, self.minuteElement], [\"focus\", \"click\"], selText);\n                if (self.secondElement !== undefined)\n                    bind(self.secondElement, \"focus\", function () { return self.secondElement && self.secondElement.select(); });\n                if (self.amPM !== undefined) {\n                    bind(self.amPM, \"click\", function (e) {\n                        updateTime(e);\n                    });\n                }\n            }\n            if (self.config.allowInput) {\n                bind(self._input, \"blur\", onBlur);\n            }\n        }\n        function jumpToDate(jumpDate, triggerChange) {\n            var jumpTo = jumpDate !== undefined\n                ? self.parseDate(jumpDate)\n                : self.latestSelectedDateObj ||\n                    (self.config.minDate && self.config.minDate > self.now\n                        ? self.config.minDate\n                        : self.config.maxDate && self.config.maxDate < self.now\n                            ? self.config.maxDate\n                            : self.now);\n            var oldYear = self.currentYear;\n            var oldMonth = self.currentMonth;\n            try {\n                if (jumpTo !== undefined) {\n                    self.currentYear = jumpTo.getFullYear();\n                    self.currentMonth = jumpTo.getMonth();\n                }\n            }\n            catch (e) {\n                e.message = \"Invalid date supplied: \" + jumpTo;\n                self.config.errorHandler(e);\n            }\n            if (triggerChange && self.currentYear !== oldYear) {\n                triggerEvent(\"onYearChange\");\n                buildMonthSwitch();\n            }\n            if (triggerChange &&\n                (self.currentYear !== oldYear || self.currentMonth !== oldMonth)) {\n                triggerEvent(\"onMonthChange\");\n            }\n            self.redraw();\n        }\n        function timeIncrement(e) {\n            var eventTarget = (0, dom_1.getEventTarget)(e);\n            if (~eventTarget.className.indexOf(\"arrow\"))\n                incrementNumInput(e, eventTarget.classList.contains(\"arrowUp\") ? 1 : -1);\n        }\n        function incrementNumInput(e, delta, inputElem) {\n            var target = e && (0, dom_1.getEventTarget)(e);\n            var input = inputElem ||\n                (target && target.parentNode && target.parentNode.firstChild);\n            var event = createEvent(\"increment\");\n            event.delta = delta;\n            input && input.dispatchEvent(event);\n        }\n        function build() {\n            var fragment = window.document.createDocumentFragment();\n            self.calendarContainer = (0, dom_1.createElement)(\"div\", \"flatpickr-calendar\");\n            self.calendarContainer.tabIndex = -1;\n            if (!self.config.noCalendar) {\n                fragment.appendChild(buildMonthNav());\n                self.innerContainer = (0, dom_1.createElement)(\"div\", \"flatpickr-innerContainer\");\n                if (self.config.weekNumbers) {\n                    var _a = buildWeeks(), weekWrapper = _a.weekWrapper, weekNumbers = _a.weekNumbers;\n                    self.innerContainer.appendChild(weekWrapper);\n                    self.weekNumbers = weekNumbers;\n                    self.weekWrapper = weekWrapper;\n                }\n                self.rContainer = (0, dom_1.createElement)(\"div\", \"flatpickr-rContainer\");\n                self.rContainer.appendChild(buildWeekdays());\n                if (!self.daysContainer) {\n                    self.daysContainer = (0, dom_1.createElement)(\"div\", \"flatpickr-days\");\n                    self.daysContainer.tabIndex = -1;\n                }\n                buildDays();\n                self.rContainer.appendChild(self.daysContainer);\n                self.innerContainer.appendChild(self.rContainer);\n                fragment.appendChild(self.innerContainer);\n            }\n            if (self.config.enableTime) {\n                fragment.appendChild(buildTime());\n            }\n            (0, dom_1.toggleClass)(self.calendarContainer, \"rangeMode\", self.config.mode === \"range\");\n            (0, dom_1.toggleClass)(self.calendarContainer, \"animate\", self.config.animate === true);\n            (0, dom_1.toggleClass)(self.calendarContainer, \"multiMonth\", self.config.showMonths > 1);\n            self.calendarContainer.appendChild(fragment);\n            var customAppend = self.config.appendTo !== undefined &&\n                self.config.appendTo.nodeType !== undefined;\n            if (self.config.inline || self.config.static) {\n                self.calendarContainer.classList.add(self.config.inline ? \"inline\" : \"static\");\n                if (self.config.inline) {\n                    if (!customAppend && self.element.parentNode)\n                        self.element.parentNode.insertBefore(self.calendarContainer, self._input.nextSibling);\n                    else if (self.config.appendTo !== undefined)\n                        self.config.appendTo.appendChild(self.calendarContainer);\n                }\n                if (self.config.static) {\n                    var wrapper = (0, dom_1.createElement)(\"div\", \"flatpickr-wrapper\");\n                    if (self.element.parentNode)\n                        self.element.parentNode.insertBefore(wrapper, self.element);\n                    wrapper.appendChild(self.element);\n                    if (self.altInput)\n                        wrapper.appendChild(self.altInput);\n                    wrapper.appendChild(self.calendarContainer);\n                }\n            }\n            if (!self.config.static && !self.config.inline)\n                (self.config.appendTo !== undefined\n                    ? self.config.appendTo\n                    : window.document.body).appendChild(self.calendarContainer);\n        }\n        function createDay(className, date, _dayNumber, i) {\n            var dateIsEnabled = isEnabled(date, true), dayElement = (0, dom_1.createElement)(\"span\", className, date.getDate().toString());\n            dayElement.dateObj = date;\n            dayElement.$i = i;\n            dayElement.setAttribute(\"aria-label\", self.formatDate(date, self.config.ariaDateFormat));\n            if (className.indexOf(\"hidden\") === -1 &&\n                (0, dates_1.compareDates)(date, self.now) === 0) {\n                self.todayDateElem = dayElement;\n                dayElement.classList.add(\"today\");\n                dayElement.setAttribute(\"aria-current\", \"date\");\n            }\n            if (dateIsEnabled) {\n                dayElement.tabIndex = -1;\n                if (isDateSelected(date)) {\n                    dayElement.classList.add(\"selected\");\n                    self.selectedDateElem = dayElement;\n                    if (self.config.mode === \"range\") {\n                        (0, dom_1.toggleClass)(dayElement, \"startRange\", self.selectedDates[0] &&\n                            (0, dates_1.compareDates)(date, self.selectedDates[0], true) === 0);\n                        (0, dom_1.toggleClass)(dayElement, \"endRange\", self.selectedDates[1] &&\n                            (0, dates_1.compareDates)(date, self.selectedDates[1], true) === 0);\n                        if (className === \"nextMonthDay\")\n                            dayElement.classList.add(\"inRange\");\n                    }\n                }\n            }\n            else {\n                dayElement.classList.add(\"flatpickr-disabled\");\n            }\n            if (self.config.mode === \"range\") {\n                if (isDateInRange(date) && !isDateSelected(date))\n                    dayElement.classList.add(\"inRange\");\n            }\n            if (self.weekNumbers &&\n                self.config.showMonths === 1 &&\n                className !== \"prevMonthDay\" &&\n                i % 7 === 6) {\n                self.weekNumbers.insertAdjacentHTML(\"beforeend\", \"<span class='flatpickr-day'>\" + self.config.getWeek(date) + \"</span>\");\n            }\n            triggerEvent(\"onDayCreate\", dayElement);\n            return dayElement;\n        }\n        function focusOnDayElem(targetNode) {\n            targetNode.focus();\n            if (self.config.mode === \"range\")\n                onMouseOver(targetNode);\n        }\n        function getFirstAvailableDay(delta) {\n            var startMonth = delta > 0 ? 0 : self.config.showMonths - 1;\n            var endMonth = delta > 0 ? self.config.showMonths : -1;\n            for (var m = startMonth; m != endMonth; m += delta) {\n                var month = self.daysContainer.children[m];\n                var startIndex = delta > 0 ? 0 : month.children.length - 1;\n                var endIndex = delta > 0 ? month.children.length : -1;\n                for (var i = startIndex; i != endIndex; i += delta) {\n                    var c = month.children[i];\n                    if (c.className.indexOf(\"hidden\") === -1 && isEnabled(c.dateObj))\n                        return c;\n                }\n            }\n            return undefined;\n        }\n        function getNextAvailableDay(current, delta) {\n            var givenMonth = current.className.indexOf(\"Month\") === -1\n                ? current.dateObj.getMonth()\n                : self.currentMonth;\n            var endMonth = delta > 0 ? self.config.showMonths : -1;\n            var loopDelta = delta > 0 ? 1 : -1;\n            for (var m = givenMonth - self.currentMonth; m != endMonth; m += loopDelta) {\n                var month = self.daysContainer.children[m];\n                var startIndex = givenMonth - self.currentMonth === m\n                    ? current.$i + delta\n                    : delta < 0\n                        ? month.children.length - 1\n                        : 0;\n                var numMonthDays = month.children.length;\n                for (var i = startIndex; i >= 0 && i < numMonthDays && i != (delta > 0 ? numMonthDays : -1); i += loopDelta) {\n                    var c = month.children[i];\n                    if (c.className.indexOf(\"hidden\") === -1 &&\n                        isEnabled(c.dateObj) &&\n                        Math.abs(current.$i - i) >= Math.abs(delta))\n                        return focusOnDayElem(c);\n                }\n            }\n            self.changeMonth(loopDelta);\n            focusOnDay(getFirstAvailableDay(loopDelta), 0);\n            return undefined;\n        }\n        function focusOnDay(current, offset) {\n            var activeElement = getClosestActiveElement();\n            var dayFocused = isInView(activeElement || document.body);\n            var startElem = current !== undefined\n                ? current\n                : dayFocused\n                    ? activeElement\n                    : self.selectedDateElem !== undefined && isInView(self.selectedDateElem)\n                        ? self.selectedDateElem\n                        : self.todayDateElem !== undefined && isInView(self.todayDateElem)\n                            ? self.todayDateElem\n                            : getFirstAvailableDay(offset > 0 ? 1 : -1);\n            if (startElem === undefined) {\n                self._input.focus();\n            }\n            else if (!dayFocused) {\n                focusOnDayElem(startElem);\n            }\n            else {\n                getNextAvailableDay(startElem, offset);\n            }\n        }\n        function buildMonthDays(year, month) {\n            var firstOfMonth = (new Date(year, month, 1).getDay() - self.l10n.firstDayOfWeek + 7) % 7;\n            var prevMonthDays = self.utils.getDaysInMonth((month - 1 + 12) % 12, year);\n            var daysInMonth = self.utils.getDaysInMonth(month, year), days = window.document.createDocumentFragment(), isMultiMonth = self.config.showMonths > 1, prevMonthDayClass = isMultiMonth ? \"prevMonthDay hidden\" : \"prevMonthDay\", nextMonthDayClass = isMultiMonth ? \"nextMonthDay hidden\" : \"nextMonthDay\";\n            var dayNumber = prevMonthDays + 1 - firstOfMonth, dayIndex = 0;\n            for (; dayNumber <= prevMonthDays; dayNumber++, dayIndex++) {\n                days.appendChild(createDay(\"flatpickr-day \" + prevMonthDayClass, new Date(year, month - 1, dayNumber), dayNumber, dayIndex));\n            }\n            for (dayNumber = 1; dayNumber <= daysInMonth; dayNumber++, dayIndex++) {\n                days.appendChild(createDay(\"flatpickr-day\", new Date(year, month, dayNumber), dayNumber, dayIndex));\n            }\n            for (var dayNum = daysInMonth + 1; dayNum <= 42 - firstOfMonth &&\n                (self.config.showMonths === 1 || dayIndex % 7 !== 0); dayNum++, dayIndex++) {\n                days.appendChild(createDay(\"flatpickr-day \" + nextMonthDayClass, new Date(year, month + 1, dayNum % daysInMonth), dayNum, dayIndex));\n            }\n            var dayContainer = (0, dom_1.createElement)(\"div\", \"dayContainer\");\n            dayContainer.appendChild(days);\n            return dayContainer;\n        }\n        function buildDays() {\n            if (self.daysContainer === undefined) {\n                return;\n            }\n            (0, dom_1.clearNode)(self.daysContainer);\n            if (self.weekNumbers)\n                (0, dom_1.clearNode)(self.weekNumbers);\n            var frag = document.createDocumentFragment();\n            for (var i = 0; i < self.config.showMonths; i++) {\n                var d = new Date(self.currentYear, self.currentMonth, 1);\n                d.setMonth(self.currentMonth + i);\n                frag.appendChild(buildMonthDays(d.getFullYear(), d.getMonth()));\n            }\n            self.daysContainer.appendChild(frag);\n            self.days = self.daysContainer.firstChild;\n            if (self.config.mode === \"range\" && self.selectedDates.length === 1) {\n                onMouseOver();\n            }\n        }\n        function buildMonthSwitch() {\n            if (self.config.showMonths > 1 ||\n                self.config.monthSelectorType !== \"dropdown\")\n                return;\n            var shouldBuildMonth = function (month) {\n                if (self.config.minDate !== undefined &&\n                    self.currentYear === self.config.minDate.getFullYear() &&\n                    month < self.config.minDate.getMonth()) {\n                    return false;\n                }\n                return !(self.config.maxDate !== undefined &&\n                    self.currentYear === self.config.maxDate.getFullYear() &&\n                    month > self.config.maxDate.getMonth());\n            };\n            self.monthsDropdownContainer.tabIndex = -1;\n            self.monthsDropdownContainer.innerHTML = \"\";\n            for (var i = 0; i < 12; i++) {\n                if (!shouldBuildMonth(i))\n                    continue;\n                var month = (0, dom_1.createElement)(\"option\", \"flatpickr-monthDropdown-month\");\n                month.value = new Date(self.currentYear, i).getMonth().toString();\n                month.textContent = (0, formatting_1.monthToStr)(i, self.config.shorthandCurrentMonth, self.l10n);\n                month.tabIndex = -1;\n                if (self.currentMonth === i) {\n                    month.selected = true;\n                }\n                self.monthsDropdownContainer.appendChild(month);\n            }\n        }\n        function buildMonth() {\n            var container = (0, dom_1.createElement)(\"div\", \"flatpickr-month\");\n            var monthNavFragment = window.document.createDocumentFragment();\n            var monthElement;\n            if (self.config.showMonths > 1 ||\n                self.config.monthSelectorType === \"static\") {\n                monthElement = (0, dom_1.createElement)(\"span\", \"cur-month\");\n            }\n            else {\n                self.monthsDropdownContainer = (0, dom_1.createElement)(\"select\", \"flatpickr-monthDropdown-months\");\n                self.monthsDropdownContainer.setAttribute(\"aria-label\", self.l10n.monthAriaLabel);\n                bind(self.monthsDropdownContainer, \"change\", function (e) {\n                    var target = (0, dom_1.getEventTarget)(e);\n                    var selectedMonth = parseInt(target.value, 10);\n                    self.changeMonth(selectedMonth - self.currentMonth);\n                    triggerEvent(\"onMonthChange\");\n                });\n                buildMonthSwitch();\n                monthElement = self.monthsDropdownContainer;\n            }\n            var yearInput = (0, dom_1.createNumberInput)(\"cur-year\", { tabindex: \"-1\" });\n            var yearElement = yearInput.getElementsByTagName(\"input\")[0];\n            yearElement.setAttribute(\"aria-label\", self.l10n.yearAriaLabel);\n            if (self.config.minDate) {\n                yearElement.setAttribute(\"min\", self.config.minDate.getFullYear().toString());\n            }\n            if (self.config.maxDate) {\n                yearElement.setAttribute(\"max\", self.config.maxDate.getFullYear().toString());\n                yearElement.disabled =\n                    !!self.config.minDate &&\n                        self.config.minDate.getFullYear() === self.config.maxDate.getFullYear();\n            }\n            var currentMonth = (0, dom_1.createElement)(\"div\", \"flatpickr-current-month\");\n            currentMonth.appendChild(monthElement);\n            currentMonth.appendChild(yearInput);\n            monthNavFragment.appendChild(currentMonth);\n            container.appendChild(monthNavFragment);\n            return {\n                container: container,\n                yearElement: yearElement,\n                monthElement: monthElement,\n            };\n        }\n        function buildMonths() {\n            (0, dom_1.clearNode)(self.monthNav);\n            self.monthNav.appendChild(self.prevMonthNav);\n            if (self.config.showMonths) {\n                self.yearElements = [];\n                self.monthElements = [];\n            }\n            for (var m = self.config.showMonths; m--;) {\n                var month = buildMonth();\n                self.yearElements.push(month.yearElement);\n                self.monthElements.push(month.monthElement);\n                self.monthNav.appendChild(month.container);\n            }\n            self.monthNav.appendChild(self.nextMonthNav);\n        }\n        function buildMonthNav() {\n            self.monthNav = (0, dom_1.createElement)(\"div\", \"flatpickr-months\");\n            self.yearElements = [];\n            self.monthElements = [];\n            self.prevMonthNav = (0, dom_1.createElement)(\"span\", \"flatpickr-prev-month\");\n            self.prevMonthNav.innerHTML = self.config.prevArrow;\n            self.nextMonthNav = (0, dom_1.createElement)(\"span\", \"flatpickr-next-month\");\n            self.nextMonthNav.innerHTML = self.config.nextArrow;\n            buildMonths();\n            Object.defineProperty(self, \"_hidePrevMonthArrow\", {\n                get: function () { return self.__hidePrevMonthArrow; },\n                set: function (bool) {\n                    if (self.__hidePrevMonthArrow !== bool) {\n                        (0, dom_1.toggleClass)(self.prevMonthNav, \"flatpickr-disabled\", bool);\n                        self.__hidePrevMonthArrow = bool;\n                    }\n                },\n            });\n            Object.defineProperty(self, \"_hideNextMonthArrow\", {\n                get: function () { return self.__hideNextMonthArrow; },\n                set: function (bool) {\n                    if (self.__hideNextMonthArrow !== bool) {\n                        (0, dom_1.toggleClass)(self.nextMonthNav, \"flatpickr-disabled\", bool);\n                        self.__hideNextMonthArrow = bool;\n                    }\n                },\n            });\n            self.currentYearElement = self.yearElements[0];\n            updateNavigationCurrentMonth();\n            return self.monthNav;\n        }\n        function buildTime() {\n            self.calendarContainer.classList.add(\"hasTime\");\n            if (self.config.noCalendar)\n                self.calendarContainer.classList.add(\"noCalendar\");\n            var defaults = (0, dates_1.getDefaultHours)(self.config);\n            self.timeContainer = (0, dom_1.createElement)(\"div\", \"flatpickr-time\");\n            self.timeContainer.tabIndex = -1;\n            var separator = (0, dom_1.createElement)(\"span\", \"flatpickr-time-separator\", \":\");\n            var hourInput = (0, dom_1.createNumberInput)(\"flatpickr-hour\", {\n                \"aria-label\": self.l10n.hourAriaLabel,\n            });\n            self.hourElement = hourInput.getElementsByTagName(\"input\")[0];\n            var minuteInput = (0, dom_1.createNumberInput)(\"flatpickr-minute\", {\n                \"aria-label\": self.l10n.minuteAriaLabel,\n            });\n            self.minuteElement = minuteInput.getElementsByTagName(\"input\")[0];\n            self.hourElement.tabIndex = self.minuteElement.tabIndex = -1;\n            self.hourElement.value = (0, utils_1.pad)(self.latestSelectedDateObj\n                ? self.latestSelectedDateObj.getHours()\n                : self.config.time_24hr\n                    ? defaults.hours\n                    : military2ampm(defaults.hours));\n            self.minuteElement.value = (0, utils_1.pad)(self.latestSelectedDateObj\n                ? self.latestSelectedDateObj.getMinutes()\n                : defaults.minutes);\n            self.hourElement.setAttribute(\"step\", self.config.hourIncrement.toString());\n            self.minuteElement.setAttribute(\"step\", self.config.minuteIncrement.toString());\n            self.hourElement.setAttribute(\"min\", self.config.time_24hr ? \"0\" : \"1\");\n            self.hourElement.setAttribute(\"max\", self.config.time_24hr ? \"23\" : \"12\");\n            self.hourElement.setAttribute(\"maxlength\", \"2\");\n            self.minuteElement.setAttribute(\"min\", \"0\");\n            self.minuteElement.setAttribute(\"max\", \"59\");\n            self.minuteElement.setAttribute(\"maxlength\", \"2\");\n            self.timeContainer.appendChild(hourInput);\n            self.timeContainer.appendChild(separator);\n            self.timeContainer.appendChild(minuteInput);\n            if (self.config.time_24hr)\n                self.timeContainer.classList.add(\"time24hr\");\n            if (self.config.enableSeconds) {\n                self.timeContainer.classList.add(\"hasSeconds\");\n                var secondInput = (0, dom_1.createNumberInput)(\"flatpickr-second\");\n                self.secondElement = secondInput.getElementsByTagName(\"input\")[0];\n                self.secondElement.value = (0, utils_1.pad)(self.latestSelectedDateObj\n                    ? self.latestSelectedDateObj.getSeconds()\n                    : defaults.seconds);\n                self.secondElement.setAttribute(\"step\", self.minuteElement.getAttribute(\"step\"));\n                self.secondElement.setAttribute(\"min\", \"0\");\n                self.secondElement.setAttribute(\"max\", \"59\");\n                self.secondElement.setAttribute(\"maxlength\", \"2\");\n                self.timeContainer.appendChild((0, dom_1.createElement)(\"span\", \"flatpickr-time-separator\", \":\"));\n                self.timeContainer.appendChild(secondInput);\n            }\n            if (!self.config.time_24hr) {\n                self.amPM = (0, dom_1.createElement)(\"span\", \"flatpickr-am-pm\", self.l10n.amPM[(0, utils_1.int)((self.latestSelectedDateObj\n                    ? self.hourElement.value\n                    : self.config.defaultHour) > 11)]);\n                self.amPM.title = self.l10n.toggleTitle;\n                self.amPM.tabIndex = -1;\n                self.timeContainer.appendChild(self.amPM);\n            }\n            return self.timeContainer;\n        }\n        function buildWeekdays() {\n            if (!self.weekdayContainer)\n                self.weekdayContainer = (0, dom_1.createElement)(\"div\", \"flatpickr-weekdays\");\n            else\n                (0, dom_1.clearNode)(self.weekdayContainer);\n            for (var i = self.config.showMonths; i--;) {\n                var container = (0, dom_1.createElement)(\"div\", \"flatpickr-weekdaycontainer\");\n                self.weekdayContainer.appendChild(container);\n            }\n            updateWeekdays();\n            return self.weekdayContainer;\n        }\n        function updateWeekdays() {\n            if (!self.weekdayContainer) {\n                return;\n            }\n            var firstDayOfWeek = self.l10n.firstDayOfWeek;\n            var weekdays = __spreadArrays(self.l10n.weekdays.shorthand);\n            if (firstDayOfWeek > 0 && firstDayOfWeek < weekdays.length) {\n                weekdays = __spreadArrays(weekdays.splice(firstDayOfWeek, weekdays.length), weekdays.splice(0, firstDayOfWeek));\n            }\n            for (var i = self.config.showMonths; i--;) {\n                self.weekdayContainer.children[i].innerHTML = \"\\n      <span class='flatpickr-weekday'>\\n        \" + weekdays.join(\"</span><span class='flatpickr-weekday'>\") + \"\\n      </span>\\n      \";\n            }\n        }\n        function buildWeeks() {\n            self.calendarContainer.classList.add(\"hasWeeks\");\n            var weekWrapper = (0, dom_1.createElement)(\"div\", \"flatpickr-weekwrapper\");\n            weekWrapper.appendChild((0, dom_1.createElement)(\"span\", \"flatpickr-weekday\", self.l10n.weekAbbreviation));\n            var weekNumbers = (0, dom_1.createElement)(\"div\", \"flatpickr-weeks\");\n            weekWrapper.appendChild(weekNumbers);\n            return {\n                weekWrapper: weekWrapper,\n                weekNumbers: weekNumbers,\n            };\n        }\n        function changeMonth(value, isOffset) {\n            if (isOffset === void 0) {\n                isOffset = true;\n            }\n            var delta = isOffset ? value : value - self.currentMonth;\n            if ((delta < 0 && self._hidePrevMonthArrow === true) ||\n                (delta > 0 && self._hideNextMonthArrow === true))\n                return;\n            self.currentMonth += delta;\n            if (self.currentMonth < 0 || self.currentMonth > 11) {\n                self.currentYear += self.currentMonth > 11 ? 1 : -1;\n                self.currentMonth = (self.currentMonth + 12) % 12;\n                triggerEvent(\"onYearChange\");\n                buildMonthSwitch();\n            }\n            buildDays();\n            triggerEvent(\"onMonthChange\");\n            updateNavigationCurrentMonth();\n        }\n        function clear(triggerChangeEvent, toInitial) {\n            if (triggerChangeEvent === void 0) {\n                triggerChangeEvent = true;\n            }\n            if (toInitial === void 0) {\n                toInitial = true;\n            }\n            self.input.value = \"\";\n            if (self.altInput !== undefined)\n                self.altInput.value = \"\";\n            if (self.mobileInput !== undefined)\n                self.mobileInput.value = \"\";\n            self.selectedDates = [];\n            self.latestSelectedDateObj = undefined;\n            if (toInitial === true) {\n                self.currentYear = self._initialDate.getFullYear();\n                self.currentMonth = self._initialDate.getMonth();\n            }\n            if (self.config.enableTime === true) {\n                var _a = (0, dates_1.getDefaultHours)(self.config), hours = _a.hours, minutes = _a.minutes, seconds = _a.seconds;\n                setHours(hours, minutes, seconds);\n            }\n            self.redraw();\n            if (triggerChangeEvent)\n                triggerEvent(\"onChange\");\n        }\n        function close() {\n            self.isOpen = false;\n            if (!self.isMobile) {\n                if (self.calendarContainer !== undefined) {\n                    self.calendarContainer.classList.remove(\"open\");\n                }\n                if (self._input !== undefined) {\n                    self._input.classList.remove(\"active\");\n                }\n            }\n            triggerEvent(\"onClose\");\n        }\n        function destroy() {\n            if (self.config !== undefined)\n                triggerEvent(\"onDestroy\");\n            for (var i = self._handlers.length; i--;) {\n                self._handlers[i].remove();\n            }\n            self._handlers = [];\n            if (self.mobileInput) {\n                if (self.mobileInput.parentNode)\n                    self.mobileInput.parentNode.removeChild(self.mobileInput);\n                self.mobileInput = undefined;\n            }\n            else if (self.calendarContainer && self.calendarContainer.parentNode) {\n                if (self.config.static && self.calendarContainer.parentNode) {\n                    var wrapper = self.calendarContainer.parentNode;\n                    wrapper.lastChild && wrapper.removeChild(wrapper.lastChild);\n                    if (wrapper.parentNode) {\n                        while (wrapper.firstChild)\n                            wrapper.parentNode.insertBefore(wrapper.firstChild, wrapper);\n                        wrapper.parentNode.removeChild(wrapper);\n                    }\n                }\n                else\n                    self.calendarContainer.parentNode.removeChild(self.calendarContainer);\n            }\n            if (self.altInput) {\n                self.input.type = \"text\";\n                if (self.altInput.parentNode)\n                    self.altInput.parentNode.removeChild(self.altInput);\n                delete self.altInput;\n            }\n            if (self.input) {\n                self.input.type = self.input._type;\n                self.input.classList.remove(\"flatpickr-input\");\n                self.input.removeAttribute(\"readonly\");\n            }\n            [\n                \"_showTimeInput\",\n                \"latestSelectedDateObj\",\n                \"_hideNextMonthArrow\",\n                \"_hidePrevMonthArrow\",\n                \"__hideNextMonthArrow\",\n                \"__hidePrevMonthArrow\",\n                \"isMobile\",\n                \"isOpen\",\n                \"selectedDateElem\",\n                \"minDateHasTime\",\n                \"maxDateHasTime\",\n                \"days\",\n                \"daysContainer\",\n                \"_input\",\n                \"_positionElement\",\n                \"innerContainer\",\n                \"rContainer\",\n                \"monthNav\",\n                \"todayDateElem\",\n                \"calendarContainer\",\n                \"weekdayContainer\",\n                \"prevMonthNav\",\n                \"nextMonthNav\",\n                \"monthsDropdownContainer\",\n                \"currentMonthElement\",\n                \"currentYearElement\",\n                \"navigationCurrentMonth\",\n                \"selectedDateElem\",\n                \"config\",\n            ].forEach(function (k) {\n                try {\n                    delete self[k];\n                }\n                catch (_) { }\n            });\n        }\n        function isCalendarElem(elem) {\n            return self.calendarContainer.contains(elem);\n        }\n        function documentClick(e) {\n            if (self.isOpen && !self.config.inline) {\n                var eventTarget_1 = (0, dom_1.getEventTarget)(e);\n                var isCalendarElement = isCalendarElem(eventTarget_1);\n                var isInput = eventTarget_1 === self.input ||\n                    eventTarget_1 === self.altInput ||\n                    self.element.contains(eventTarget_1) ||\n                    (e.path &&\n                        e.path.indexOf &&\n                        (~e.path.indexOf(self.input) ||\n                            ~e.path.indexOf(self.altInput)));\n                var lostFocus = !isInput &&\n                    !isCalendarElement &&\n                    !isCalendarElem(e.relatedTarget);\n                var isIgnored = !self.config.ignoredFocusElements.some(function (elem) {\n                    return elem.contains(eventTarget_1);\n                });\n                if (lostFocus && isIgnored) {\n                    if (self.config.allowInput) {\n                        self.setDate(self._input.value, false, self.config.altInput\n                            ? self.config.altFormat\n                            : self.config.dateFormat);\n                    }\n                    if (self.timeContainer !== undefined &&\n                        self.minuteElement !== undefined &&\n                        self.hourElement !== undefined &&\n                        self.input.value !== \"\" &&\n                        self.input.value !== undefined) {\n                        updateTime();\n                    }\n                    self.close();\n                    if (self.config &&\n                        self.config.mode === \"range\" &&\n                        self.selectedDates.length === 1)\n                        self.clear(false);\n                }\n            }\n        }\n        function changeYear(newYear) {\n            if (!newYear ||\n                (self.config.minDate && newYear < self.config.minDate.getFullYear()) ||\n                (self.config.maxDate && newYear > self.config.maxDate.getFullYear()))\n                return;\n            var newYearNum = newYear, isNewYear = self.currentYear !== newYearNum;\n            self.currentYear = newYearNum || self.currentYear;\n            if (self.config.maxDate &&\n                self.currentYear === self.config.maxDate.getFullYear()) {\n                self.currentMonth = Math.min(self.config.maxDate.getMonth(), self.currentMonth);\n            }\n            else if (self.config.minDate &&\n                self.currentYear === self.config.minDate.getFullYear()) {\n                self.currentMonth = Math.max(self.config.minDate.getMonth(), self.currentMonth);\n            }\n            if (isNewYear) {\n                self.redraw();\n                triggerEvent(\"onYearChange\");\n                buildMonthSwitch();\n            }\n        }\n        function isEnabled(date, timeless) {\n            var _a;\n            if (timeless === void 0) {\n                timeless = true;\n            }\n            var dateToCheck = self.parseDate(date, undefined, timeless);\n            if ((self.config.minDate &&\n                dateToCheck &&\n                (0, dates_1.compareDates)(dateToCheck, self.config.minDate, timeless !== undefined ? timeless : !self.minDateHasTime) < 0) ||\n                (self.config.maxDate &&\n                    dateToCheck &&\n                    (0, dates_1.compareDates)(dateToCheck, self.config.maxDate, timeless !== undefined ? timeless : !self.maxDateHasTime) > 0))\n                return false;\n            if (!self.config.enable && self.config.disable.length === 0)\n                return true;\n            if (dateToCheck === undefined)\n                return false;\n            var bool = !!self.config.enable, array = (_a = self.config.enable) !== null && _a !== void 0 ? _a : self.config.disable;\n            for (var i = 0, d = void 0; i < array.length; i++) {\n                d = array[i];\n                if (typeof d === \"function\" &&\n                    d(dateToCheck))\n                    return bool;\n                else if (d instanceof Date &&\n                    dateToCheck !== undefined &&\n                    d.getTime() === dateToCheck.getTime())\n                    return bool;\n                else if (typeof d === \"string\") {\n                    var parsed = self.parseDate(d, undefined, true);\n                    return parsed && parsed.getTime() === dateToCheck.getTime()\n                        ? bool\n                        : !bool;\n                }\n                else if (typeof d === \"object\" &&\n                    dateToCheck !== undefined &&\n                    d.from &&\n                    d.to &&\n                    dateToCheck.getTime() >= d.from.getTime() &&\n                    dateToCheck.getTime() <= d.to.getTime())\n                    return bool;\n            }\n            return !bool;\n        }\n        function isInView(elem) {\n            if (self.daysContainer !== undefined)\n                return (elem.className.indexOf(\"hidden\") === -1 &&\n                    elem.className.indexOf(\"flatpickr-disabled\") === -1 &&\n                    self.daysContainer.contains(elem));\n            return false;\n        }\n        function onBlur(e) {\n            var isInput = e.target === self._input;\n            var valueChanged = self._input.value.trimEnd() !== getDateStr();\n            if (isInput &&\n                valueChanged &&\n                !(e.relatedTarget && isCalendarElem(e.relatedTarget))) {\n                self.setDate(self._input.value, true, e.target === self.altInput\n                    ? self.config.altFormat\n                    : self.config.dateFormat);\n            }\n        }\n        function onKeyDown(e) {\n            var eventTarget = (0, dom_1.getEventTarget)(e);\n            var isInput = self.config.wrap\n                ? element.contains(eventTarget)\n                : eventTarget === self._input;\n            var allowInput = self.config.allowInput;\n            var allowKeydown = self.isOpen && (!allowInput || !isInput);\n            var allowInlineKeydown = self.config.inline && isInput && !allowInput;\n            if (e.keyCode === 13 && isInput) {\n                if (allowInput) {\n                    self.setDate(self._input.value, true, eventTarget === self.altInput\n                        ? self.config.altFormat\n                        : self.config.dateFormat);\n                    self.close();\n                    return eventTarget.blur();\n                }\n                else {\n                    self.open();\n                }\n            }\n            else if (isCalendarElem(eventTarget) ||\n                allowKeydown ||\n                allowInlineKeydown) {\n                var isTimeObj = !!self.timeContainer &&\n                    self.timeContainer.contains(eventTarget);\n                switch (e.keyCode) {\n                    case 13:\n                        if (isTimeObj) {\n                            e.preventDefault();\n                            updateTime();\n                            focusAndClose();\n                        }\n                        else\n                            selectDate(e);\n                        break;\n                    case 27:\n                        e.preventDefault();\n                        focusAndClose();\n                        break;\n                    case 8:\n                    case 46:\n                        if (isInput && !self.config.allowInput) {\n                            e.preventDefault();\n                            self.clear();\n                        }\n                        break;\n                    case 37:\n                    case 39:\n                        if (!isTimeObj && !isInput) {\n                            e.preventDefault();\n                            var activeElement = getClosestActiveElement();\n                            if (self.daysContainer !== undefined &&\n                                (allowInput === false ||\n                                    (activeElement && isInView(activeElement)))) {\n                                var delta_1 = e.keyCode === 39 ? 1 : -1;\n                                if (!e.ctrlKey)\n                                    focusOnDay(undefined, delta_1);\n                                else {\n                                    e.stopPropagation();\n                                    changeMonth(delta_1);\n                                    focusOnDay(getFirstAvailableDay(1), 0);\n                                }\n                            }\n                        }\n                        else if (self.hourElement)\n                            self.hourElement.focus();\n                        break;\n                    case 38:\n                    case 40:\n                        e.preventDefault();\n                        var delta = e.keyCode === 40 ? 1 : -1;\n                        if ((self.daysContainer &&\n                            eventTarget.$i !== undefined) ||\n                            eventTarget === self.input ||\n                            eventTarget === self.altInput) {\n                            if (e.ctrlKey) {\n                                e.stopPropagation();\n                                changeYear(self.currentYear - delta);\n                                focusOnDay(getFirstAvailableDay(1), 0);\n                            }\n                            else if (!isTimeObj)\n                                focusOnDay(undefined, delta * 7);\n                        }\n                        else if (eventTarget === self.currentYearElement) {\n                            changeYear(self.currentYear - delta);\n                        }\n                        else if (self.config.enableTime) {\n                            if (!isTimeObj && self.hourElement)\n                                self.hourElement.focus();\n                            updateTime(e);\n                            self._debouncedChange();\n                        }\n                        break;\n                    case 9:\n                        if (isTimeObj) {\n                            var elems = [\n                                self.hourElement,\n                                self.minuteElement,\n                                self.secondElement,\n                                self.amPM,\n                            ]\n                                .concat(self.pluginElements)\n                                .filter(function (x) { return x; });\n                            var i = elems.indexOf(eventTarget);\n                            if (i !== -1) {\n                                var target = elems[i + (e.shiftKey ? -1 : 1)];\n                                e.preventDefault();\n                                (target || self._input).focus();\n                            }\n                        }\n                        else if (!self.config.noCalendar &&\n                            self.daysContainer &&\n                            self.daysContainer.contains(eventTarget) &&\n                            e.shiftKey) {\n                            e.preventDefault();\n                            self._input.focus();\n                        }\n                        break;\n                    default:\n                        break;\n                }\n            }\n            if (self.amPM !== undefined && eventTarget === self.amPM) {\n                switch (e.key) {\n                    case self.l10n.amPM[0].charAt(0):\n                    case self.l10n.amPM[0].charAt(0).toLowerCase():\n                        self.amPM.textContent = self.l10n.amPM[0];\n                        setHoursFromInputs();\n                        updateValue();\n                        break;\n                    case self.l10n.amPM[1].charAt(0):\n                    case self.l10n.amPM[1].charAt(0).toLowerCase():\n                        self.amPM.textContent = self.l10n.amPM[1];\n                        setHoursFromInputs();\n                        updateValue();\n                        break;\n                }\n            }\n            if (isInput || isCalendarElem(eventTarget)) {\n                triggerEvent(\"onKeyDown\", e);\n            }\n        }\n        function onMouseOver(elem, cellClass) {\n            if (cellClass === void 0) {\n                cellClass = \"flatpickr-day\";\n            }\n            if (self.selectedDates.length !== 1 ||\n                (elem &&\n                    (!elem.classList.contains(cellClass) ||\n                        elem.classList.contains(\"flatpickr-disabled\"))))\n                return;\n            var hoverDate = elem\n                ? elem.dateObj.getTime()\n                : self.days.firstElementChild.dateObj.getTime(), initialDate = self.parseDate(self.selectedDates[0], undefined, true).getTime(), rangeStartDate = Math.min(hoverDate, self.selectedDates[0].getTime()), rangeEndDate = Math.max(hoverDate, self.selectedDates[0].getTime());\n            var containsDisabled = false;\n            var minRange = 0, maxRange = 0;\n            for (var t = rangeStartDate; t < rangeEndDate; t += dates_1.duration.DAY) {\n                if (!isEnabled(new Date(t), true)) {\n                    containsDisabled =\n                        containsDisabled || (t > rangeStartDate && t < rangeEndDate);\n                    if (t < initialDate && (!minRange || t > minRange))\n                        minRange = t;\n                    else if (t > initialDate && (!maxRange || t < maxRange))\n                        maxRange = t;\n                }\n            }\n            var hoverableCells = Array.from(self.rContainer.querySelectorAll(\"*:nth-child(-n+\" + self.config.showMonths + \") > .\" + cellClass));\n            hoverableCells.forEach(function (dayElem) {\n                var date = dayElem.dateObj;\n                var timestamp = date.getTime();\n                var outOfRange = (minRange > 0 && timestamp < minRange) ||\n                    (maxRange > 0 && timestamp > maxRange);\n                if (outOfRange) {\n                    dayElem.classList.add(\"notAllowed\");\n                    [\"inRange\", \"startRange\", \"endRange\"].forEach(function (c) {\n                        dayElem.classList.remove(c);\n                    });\n                    return;\n                }\n                else if (containsDisabled && !outOfRange)\n                    return;\n                [\"startRange\", \"inRange\", \"endRange\", \"notAllowed\"].forEach(function (c) {\n                    dayElem.classList.remove(c);\n                });\n                if (elem !== undefined) {\n                    elem.classList.add(hoverDate <= self.selectedDates[0].getTime()\n                        ? \"startRange\"\n                        : \"endRange\");\n                    if (initialDate < hoverDate && timestamp === initialDate)\n                        dayElem.classList.add(\"startRange\");\n                    else if (initialDate > hoverDate && timestamp === initialDate)\n                        dayElem.classList.add(\"endRange\");\n                    if (timestamp >= minRange &&\n                        (maxRange === 0 || timestamp <= maxRange) &&\n                        (0, dates_1.isBetween)(timestamp, initialDate, hoverDate))\n                        dayElem.classList.add(\"inRange\");\n                }\n            });\n        }\n        function onResize() {\n            if (self.isOpen && !self.config.static && !self.config.inline)\n                positionCalendar();\n        }\n        function open(e, positionElement) {\n            if (positionElement === void 0) {\n                positionElement = self._positionElement;\n            }\n            if (self.isMobile === true) {\n                if (e) {\n                    e.preventDefault();\n                    var eventTarget = (0, dom_1.getEventTarget)(e);\n                    if (eventTarget) {\n                        eventTarget.blur();\n                    }\n                }\n                if (self.mobileInput !== undefined) {\n                    self.mobileInput.focus();\n                    self.mobileInput.click();\n                }\n                triggerEvent(\"onOpen\");\n                return;\n            }\n            else if (self._input.disabled || self.config.inline) {\n                return;\n            }\n            var wasOpen = self.isOpen;\n            self.isOpen = true;\n            if (!wasOpen) {\n                self.calendarContainer.classList.add(\"open\");\n                self._input.classList.add(\"active\");\n                triggerEvent(\"onOpen\");\n                positionCalendar(positionElement);\n            }\n            if (self.config.enableTime === true && self.config.noCalendar === true) {\n                if (self.config.allowInput === false &&\n                    (e === undefined ||\n                        !self.timeContainer.contains(e.relatedTarget))) {\n                    setTimeout(function () { return self.hourElement.select(); }, 50);\n                }\n            }\n        }\n        function minMaxDateSetter(type) {\n            return function (date) {\n                var dateObj = (self.config[\"_\" + type + \"Date\"] = self.parseDate(date, self.config.dateFormat));\n                var inverseDateObj = self.config[\"_\" + (type === \"min\" ? \"max\" : \"min\") + \"Date\"];\n                if (dateObj !== undefined) {\n                    self[type === \"min\" ? \"minDateHasTime\" : \"maxDateHasTime\"] =\n                        dateObj.getHours() > 0 ||\n                            dateObj.getMinutes() > 0 ||\n                            dateObj.getSeconds() > 0;\n                }\n                if (self.selectedDates) {\n                    self.selectedDates = self.selectedDates.filter(function (d) { return isEnabled(d); });\n                    if (!self.selectedDates.length && type === \"min\")\n                        setHoursFromDate(dateObj);\n                    updateValue();\n                }\n                if (self.daysContainer) {\n                    redraw();\n                    if (dateObj !== undefined)\n                        self.currentYearElement[type] = dateObj.getFullYear().toString();\n                    else\n                        self.currentYearElement.removeAttribute(type);\n                    self.currentYearElement.disabled =\n                        !!inverseDateObj &&\n                            dateObj !== undefined &&\n                            inverseDateObj.getFullYear() === dateObj.getFullYear();\n                }\n            };\n        }\n        function parseConfig() {\n            var boolOpts = [\n                \"wrap\",\n                \"weekNumbers\",\n                \"allowInput\",\n                \"allowInvalidPreload\",\n                \"clickOpens\",\n                \"time_24hr\",\n                \"enableTime\",\n                \"noCalendar\",\n                \"altInput\",\n                \"shorthandCurrentMonth\",\n                \"inline\",\n                \"static\",\n                \"enableSeconds\",\n                \"disableMobile\",\n            ];\n            var userConfig = __assign(__assign({}, JSON.parse(JSON.stringify(element.dataset || {}))), instanceConfig);\n            var formats = {};\n            self.config.parseDate = userConfig.parseDate;\n            self.config.formatDate = userConfig.formatDate;\n            Object.defineProperty(self.config, \"enable\", {\n                get: function () { return self.config._enable; },\n                set: function (dates) {\n                    self.config._enable = parseDateRules(dates);\n                },\n            });\n            Object.defineProperty(self.config, \"disable\", {\n                get: function () { return self.config._disable; },\n                set: function (dates) {\n                    self.config._disable = parseDateRules(dates);\n                },\n            });\n            var timeMode = userConfig.mode === \"time\";\n            if (!userConfig.dateFormat && (userConfig.enableTime || timeMode)) {\n                var defaultDateFormat = flatpickr.defaultConfig.dateFormat || options_1.defaults.dateFormat;\n                formats.dateFormat =\n                    userConfig.noCalendar || timeMode\n                        ? \"H:i\" + (userConfig.enableSeconds ? \":S\" : \"\")\n                        : defaultDateFormat + \" H:i\" + (userConfig.enableSeconds ? \":S\" : \"\");\n            }\n            if (userConfig.altInput &&\n                (userConfig.enableTime || timeMode) &&\n                !userConfig.altFormat) {\n                var defaultAltFormat = flatpickr.defaultConfig.altFormat || options_1.defaults.altFormat;\n                formats.altFormat =\n                    userConfig.noCalendar || timeMode\n                        ? \"h:i\" + (userConfig.enableSeconds ? \":S K\" : \" K\")\n                        : defaultAltFormat + (\" h:i\" + (userConfig.enableSeconds ? \":S\" : \"\") + \" K\");\n            }\n            Object.defineProperty(self.config, \"minDate\", {\n                get: function () { return self.config._minDate; },\n                set: minMaxDateSetter(\"min\"),\n            });\n            Object.defineProperty(self.config, \"maxDate\", {\n                get: function () { return self.config._maxDate; },\n                set: minMaxDateSetter(\"max\"),\n            });\n            var minMaxTimeSetter = function (type) {\n                return function (val) {\n                    self.config[type === \"min\" ? \"_minTime\" : \"_maxTime\"] = self.parseDate(val, \"H:i:S\");\n                };\n            };\n            Object.defineProperty(self.config, \"minTime\", {\n                get: function () { return self.config._minTime; },\n                set: minMaxTimeSetter(\"min\"),\n            });\n            Object.defineProperty(self.config, \"maxTime\", {\n                get: function () { return self.config._maxTime; },\n                set: minMaxTimeSetter(\"max\"),\n            });\n            if (userConfig.mode === \"time\") {\n                self.config.noCalendar = true;\n                self.config.enableTime = true;\n            }\n            Object.assign(self.config, formats, userConfig);\n            for (var i = 0; i < boolOpts.length; i++)\n                self.config[boolOpts[i]] =\n                    self.config[boolOpts[i]] === true ||\n                        self.config[boolOpts[i]] === \"true\";\n            options_1.HOOKS.filter(function (hook) { return self.config[hook] !== undefined; }).forEach(function (hook) {\n                self.config[hook] = (0, utils_1.arrayify)(self.config[hook] || []).map(bindToInstance);\n            });\n            self.isMobile =\n                !self.config.disableMobile &&\n                    !self.config.inline &&\n                    self.config.mode === \"single\" &&\n                    !self.config.disable.length &&\n                    !self.config.enable &&\n                    !self.config.weekNumbers &&\n                    /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\n            for (var i = 0; i < self.config.plugins.length; i++) {\n                var pluginConf = self.config.plugins[i](self) || {};\n                for (var key in pluginConf) {\n                    if (options_1.HOOKS.indexOf(key) > -1) {\n                        self.config[key] = (0, utils_1.arrayify)(pluginConf[key])\n                            .map(bindToInstance)\n                            .concat(self.config[key]);\n                    }\n                    else if (typeof userConfig[key] === \"undefined\")\n                        self.config[key] = pluginConf[key];\n                }\n            }\n            if (!userConfig.altInputClass) {\n                self.config.altInputClass =\n                    getInputElem().className + \" \" + self.config.altInputClass;\n            }\n            triggerEvent(\"onParseConfig\");\n        }\n        function getInputElem() {\n            return self.config.wrap\n                ? element.querySelector(\"[data-input]\")\n                : element;\n        }\n        function setupLocale() {\n            if (typeof self.config.locale !== \"object\" &&\n                typeof flatpickr.l10ns[self.config.locale] === \"undefined\")\n                self.config.errorHandler(new Error(\"flatpickr: invalid locale \" + self.config.locale));\n            self.l10n = __assign(__assign({}, flatpickr.l10ns.default), (typeof self.config.locale === \"object\"\n                ? self.config.locale\n                : self.config.locale !== \"default\"\n                    ? flatpickr.l10ns[self.config.locale]\n                    : undefined));\n            formatting_1.tokenRegex.D = \"(\" + self.l10n.weekdays.shorthand.join(\"|\") + \")\";\n            formatting_1.tokenRegex.l = \"(\" + self.l10n.weekdays.longhand.join(\"|\") + \")\";\n            formatting_1.tokenRegex.M = \"(\" + self.l10n.months.shorthand.join(\"|\") + \")\";\n            formatting_1.tokenRegex.F = \"(\" + self.l10n.months.longhand.join(\"|\") + \")\";\n            formatting_1.tokenRegex.K = \"(\" + self.l10n.amPM[0] + \"|\" + self.l10n.amPM[1] + \"|\" + self.l10n.amPM[0].toLowerCase() + \"|\" + self.l10n.amPM[1].toLowerCase() + \")\";\n            var userConfig = __assign(__assign({}, instanceConfig), JSON.parse(JSON.stringify(element.dataset || {})));\n            if (userConfig.time_24hr === undefined &&\n                flatpickr.defaultConfig.time_24hr === undefined) {\n                self.config.time_24hr = self.l10n.time_24hr;\n            }\n            self.formatDate = (0, dates_1.createDateFormatter)(self);\n            self.parseDate = (0, dates_1.createDateParser)({ config: self.config, l10n: self.l10n });\n        }\n        function positionCalendar(customPositionElement) {\n            if (typeof self.config.position === \"function\") {\n                return void self.config.position(self, customPositionElement);\n            }\n            if (self.calendarContainer === undefined)\n                return;\n            triggerEvent(\"onPreCalendarPosition\");\n            var positionElement = customPositionElement || self._positionElement;\n            var calendarHeight = Array.prototype.reduce.call(self.calendarContainer.children, (function (acc, child) { return acc + child.offsetHeight; }), 0), calendarWidth = self.calendarContainer.offsetWidth, configPos = self.config.position.split(\" \"), configPosVertical = configPos[0], configPosHorizontal = configPos.length > 1 ? configPos[1] : null, inputBounds = positionElement.getBoundingClientRect(), distanceFromBottom = window.innerHeight - inputBounds.bottom, showOnTop = configPosVertical === \"above\" ||\n                (configPosVertical !== \"below\" &&\n                    distanceFromBottom < calendarHeight &&\n                    inputBounds.top > calendarHeight);\n            var top = window.pageYOffset +\n                inputBounds.top +\n                (!showOnTop ? positionElement.offsetHeight + 2 : -calendarHeight - 2);\n            (0, dom_1.toggleClass)(self.calendarContainer, \"arrowTop\", !showOnTop);\n            (0, dom_1.toggleClass)(self.calendarContainer, \"arrowBottom\", showOnTop);\n            if (self.config.inline)\n                return;\n            var left = window.pageXOffset + inputBounds.left;\n            var isCenter = false;\n            var isRight = false;\n            if (configPosHorizontal === \"center\") {\n                left -= (calendarWidth - inputBounds.width) / 2;\n                isCenter = true;\n            }\n            else if (configPosHorizontal === \"right\") {\n                left -= calendarWidth - inputBounds.width;\n                isRight = true;\n            }\n            (0, dom_1.toggleClass)(self.calendarContainer, \"arrowLeft\", !isCenter && !isRight);\n            (0, dom_1.toggleClass)(self.calendarContainer, \"arrowCenter\", isCenter);\n            (0, dom_1.toggleClass)(self.calendarContainer, \"arrowRight\", isRight);\n            var right = window.document.body.offsetWidth -\n                (window.pageXOffset + inputBounds.right);\n            var rightMost = left + calendarWidth > window.document.body.offsetWidth;\n            var centerMost = right + calendarWidth > window.document.body.offsetWidth;\n            (0, dom_1.toggleClass)(self.calendarContainer, \"rightMost\", rightMost);\n            if (self.config.static)\n                return;\n            self.calendarContainer.style.top = top + \"px\";\n            if (!rightMost) {\n                self.calendarContainer.style.left = left + \"px\";\n                self.calendarContainer.style.right = \"auto\";\n            }\n            else if (!centerMost) {\n                self.calendarContainer.style.left = \"auto\";\n                self.calendarContainer.style.right = right + \"px\";\n            }\n            else {\n                var doc = getDocumentStyleSheet();\n                if (doc === undefined)\n                    return;\n                var bodyWidth = window.document.body.offsetWidth;\n                var centerLeft = Math.max(0, bodyWidth / 2 - calendarWidth / 2);\n                var centerBefore = \".flatpickr-calendar.centerMost:before\";\n                var centerAfter = \".flatpickr-calendar.centerMost:after\";\n                var centerIndex = doc.cssRules.length;\n                var centerStyle = \"{left:\" + inputBounds.left + \"px;right:auto;}\";\n                (0, dom_1.toggleClass)(self.calendarContainer, \"rightMost\", false);\n                (0, dom_1.toggleClass)(self.calendarContainer, \"centerMost\", true);\n                doc.insertRule(centerBefore + \",\" + centerAfter + centerStyle, centerIndex);\n                self.calendarContainer.style.left = centerLeft + \"px\";\n                self.calendarContainer.style.right = \"auto\";\n            }\n        }\n        function getDocumentStyleSheet() {\n            var editableSheet = null;\n            for (var i = 0; i < document.styleSheets.length; i++) {\n                var sheet = document.styleSheets[i];\n                if (!sheet.cssRules)\n                    continue;\n                try {\n                    sheet.cssRules;\n                }\n                catch (err) {\n                    continue;\n                }\n                editableSheet = sheet;\n                break;\n            }\n            return editableSheet != null ? editableSheet : createStyleSheet();\n        }\n        function createStyleSheet() {\n            var style = document.createElement(\"style\");\n            document.head.appendChild(style);\n            return style.sheet;\n        }\n        function redraw() {\n            if (self.config.noCalendar || self.isMobile)\n                return;\n            buildMonthSwitch();\n            updateNavigationCurrentMonth();\n            buildDays();\n        }\n        function focusAndClose() {\n            self._input.focus();\n            if (window.navigator.userAgent.indexOf(\"MSIE\") !== -1 ||\n                navigator.msMaxTouchPoints !== undefined) {\n                setTimeout(self.close, 0);\n            }\n            else {\n                self.close();\n            }\n        }\n        function selectDate(e) {\n            e.preventDefault();\n            e.stopPropagation();\n            var isSelectable = function (day) {\n                return day.classList &&\n                    day.classList.contains(\"flatpickr-day\") &&\n                    !day.classList.contains(\"flatpickr-disabled\") &&\n                    !day.classList.contains(\"notAllowed\");\n            };\n            var t = (0, dom_1.findParent)((0, dom_1.getEventTarget)(e), isSelectable);\n            if (t === undefined)\n                return;\n            var target = t;\n            var selectedDate = (self.latestSelectedDateObj = new Date(target.dateObj.getTime()));\n            var shouldChangeMonth = (selectedDate.getMonth() < self.currentMonth ||\n                selectedDate.getMonth() >\n                    self.currentMonth + self.config.showMonths - 1) &&\n                self.config.mode !== \"range\";\n            self.selectedDateElem = target;\n            if (self.config.mode === \"single\")\n                self.selectedDates = [selectedDate];\n            else if (self.config.mode === \"multiple\") {\n                var selectedIndex = isDateSelected(selectedDate);\n                if (selectedIndex)\n                    self.selectedDates.splice(parseInt(selectedIndex), 1);\n                else\n                    self.selectedDates.push(selectedDate);\n            }\n            else if (self.config.mode === \"range\") {\n                if (self.selectedDates.length === 2) {\n                    self.clear(false, false);\n                }\n                self.latestSelectedDateObj = selectedDate;\n                self.selectedDates.push(selectedDate);\n                if ((0, dates_1.compareDates)(selectedDate, self.selectedDates[0], true) !== 0)\n                    self.selectedDates.sort(function (a, b) { return a.getTime() - b.getTime(); });\n            }\n            setHoursFromInputs();\n            if (shouldChangeMonth) {\n                var isNewYear = self.currentYear !== selectedDate.getFullYear();\n                self.currentYear = selectedDate.getFullYear();\n                self.currentMonth = selectedDate.getMonth();\n                if (isNewYear) {\n                    triggerEvent(\"onYearChange\");\n                    buildMonthSwitch();\n                }\n                triggerEvent(\"onMonthChange\");\n            }\n            updateNavigationCurrentMonth();\n            buildDays();\n            updateValue();\n            if (!shouldChangeMonth &&\n                self.config.mode !== \"range\" &&\n                self.config.showMonths === 1)\n                focusOnDayElem(target);\n            else if (self.selectedDateElem !== undefined &&\n                self.hourElement === undefined) {\n                self.selectedDateElem && self.selectedDateElem.focus();\n            }\n            if (self.hourElement !== undefined)\n                self.hourElement !== undefined && self.hourElement.focus();\n            if (self.config.closeOnSelect) {\n                var single = self.config.mode === \"single\" && !self.config.enableTime;\n                var range = self.config.mode === \"range\" &&\n                    self.selectedDates.length === 2 &&\n                    !self.config.enableTime;\n                if (single || range) {\n                    focusAndClose();\n                }\n            }\n            triggerChange();\n        }\n        var CALLBACKS = {\n            locale: [setupLocale, updateWeekdays],\n            showMonths: [buildMonths, setCalendarWidth, buildWeekdays],\n            minDate: [jumpToDate],\n            maxDate: [jumpToDate],\n            positionElement: [updatePositionElement],\n            clickOpens: [\n                function () {\n                    if (self.config.clickOpens === true) {\n                        bind(self._input, \"focus\", self.open);\n                        bind(self._input, \"click\", self.open);\n                    }\n                    else {\n                        self._input.removeEventListener(\"focus\", self.open);\n                        self._input.removeEventListener(\"click\", self.open);\n                    }\n                },\n            ],\n        };\n        function set(option, value) {\n            if (option !== null && typeof option === \"object\") {\n                Object.assign(self.config, option);\n                for (var key in option) {\n                    if (CALLBACKS[key] !== undefined)\n                        CALLBACKS[key].forEach(function (x) { return x(); });\n                }\n            }\n            else {\n                self.config[option] = value;\n                if (CALLBACKS[option] !== undefined)\n                    CALLBACKS[option].forEach(function (x) { return x(); });\n                else if (options_1.HOOKS.indexOf(option) > -1)\n                    self.config[option] = (0, utils_1.arrayify)(value);\n            }\n            self.redraw();\n            updateValue(true);\n        }\n        function setSelectedDate(inputDate, format) {\n            var dates = [];\n            if (inputDate instanceof Array)\n                dates = inputDate.map(function (d) { return self.parseDate(d, format); });\n            else if (inputDate instanceof Date || typeof inputDate === \"number\")\n                dates = [self.parseDate(inputDate, format)];\n            else if (typeof inputDate === \"string\") {\n                switch (self.config.mode) {\n                    case \"single\":\n                    case \"time\":\n                        dates = [self.parseDate(inputDate, format)];\n                        break;\n                    case \"multiple\":\n                        dates = inputDate\n                            .split(self.config.conjunction)\n                            .map(function (date) { return self.parseDate(date, format); });\n                        break;\n                    case \"range\":\n                        dates = inputDate\n                            .split(self.l10n.rangeSeparator)\n                            .map(function (date) { return self.parseDate(date, format); });\n                        break;\n                    default:\n                        break;\n                }\n            }\n            else\n                self.config.errorHandler(new Error(\"Invalid date supplied: \" + JSON.stringify(inputDate)));\n            self.selectedDates = (self.config.allowInvalidPreload\n                ? dates\n                : dates.filter(function (d) { return d instanceof Date && isEnabled(d, false); }));\n            if (self.config.mode === \"range\")\n                self.selectedDates.sort(function (a, b) { return a.getTime() - b.getTime(); });\n        }\n        function setDate(date, triggerChange, format) {\n            if (triggerChange === void 0) {\n                triggerChange = false;\n            }\n            if (format === void 0) {\n                format = self.config.dateFormat;\n            }\n            if ((date !== 0 && !date) || (date instanceof Array && date.length === 0))\n                return self.clear(triggerChange);\n            setSelectedDate(date, format);\n            self.latestSelectedDateObj =\n                self.selectedDates[self.selectedDates.length - 1];\n            self.redraw();\n            jumpToDate(undefined, triggerChange);\n            setHoursFromDate();\n            if (self.selectedDates.length === 0) {\n                self.clear(false);\n            }\n            updateValue(triggerChange);\n            if (triggerChange)\n                triggerEvent(\"onChange\");\n        }\n        function parseDateRules(arr) {\n            return arr\n                .slice()\n                .map(function (rule) {\n                if (typeof rule === \"string\" ||\n                    typeof rule === \"number\" ||\n                    rule instanceof Date) {\n                    return self.parseDate(rule, undefined, true);\n                }\n                else if (rule &&\n                    typeof rule === \"object\" &&\n                    rule.from &&\n                    rule.to)\n                    return {\n                        from: self.parseDate(rule.from, undefined),\n                        to: self.parseDate(rule.to, undefined),\n                    };\n                return rule;\n            })\n                .filter(function (x) { return x; });\n        }\n        function setupDates() {\n            self.selectedDates = [];\n            self.now = self.parseDate(self.config.now) || new Date();\n            var preloadedDate = self.config.defaultDate ||\n                ((self.input.nodeName === \"INPUT\" ||\n                    self.input.nodeName === \"TEXTAREA\") &&\n                    self.input.placeholder &&\n                    self.input.value === self.input.placeholder\n                    ? null\n                    : self.input.value);\n            if (preloadedDate)\n                setSelectedDate(preloadedDate, self.config.dateFormat);\n            self._initialDate =\n                self.selectedDates.length > 0\n                    ? self.selectedDates[0]\n                    : self.config.minDate &&\n                        self.config.minDate.getTime() > self.now.getTime()\n                        ? self.config.minDate\n                        : self.config.maxDate &&\n                            self.config.maxDate.getTime() < self.now.getTime()\n                            ? self.config.maxDate\n                            : self.now;\n            self.currentYear = self._initialDate.getFullYear();\n            self.currentMonth = self._initialDate.getMonth();\n            if (self.selectedDates.length > 0)\n                self.latestSelectedDateObj = self.selectedDates[0];\n            if (self.config.minTime !== undefined)\n                self.config.minTime = self.parseDate(self.config.minTime, \"H:i\");\n            if (self.config.maxTime !== undefined)\n                self.config.maxTime = self.parseDate(self.config.maxTime, \"H:i\");\n            self.minDateHasTime =\n                !!self.config.minDate &&\n                    (self.config.minDate.getHours() > 0 ||\n                        self.config.minDate.getMinutes() > 0 ||\n                        self.config.minDate.getSeconds() > 0);\n            self.maxDateHasTime =\n                !!self.config.maxDate &&\n                    (self.config.maxDate.getHours() > 0 ||\n                        self.config.maxDate.getMinutes() > 0 ||\n                        self.config.maxDate.getSeconds() > 0);\n        }\n        function setupInputs() {\n            self.input = getInputElem();\n            if (!self.input) {\n                self.config.errorHandler(new Error(\"Invalid input element specified\"));\n                return;\n            }\n            self.input._type = self.input.type;\n            self.input.type = \"text\";\n            self.input.classList.add(\"flatpickr-input\");\n            self._input = self.input;\n            if (self.config.altInput) {\n                self.altInput = (0, dom_1.createElement)(self.input.nodeName, self.config.altInputClass);\n                self._input = self.altInput;\n                self.altInput.placeholder = self.input.placeholder;\n                self.altInput.disabled = self.input.disabled;\n                self.altInput.required = self.input.required;\n                self.altInput.tabIndex = self.input.tabIndex;\n                self.altInput.type = \"text\";\n                self.input.setAttribute(\"type\", \"hidden\");\n                if (!self.config.static && self.input.parentNode)\n                    self.input.parentNode.insertBefore(self.altInput, self.input.nextSibling);\n            }\n            if (!self.config.allowInput)\n                self._input.setAttribute(\"readonly\", \"readonly\");\n            updatePositionElement();\n        }\n        function updatePositionElement() {\n            self._positionElement = self.config.positionElement || self._input;\n        }\n        function setupMobile() {\n            var inputType = self.config.enableTime\n                ? self.config.noCalendar\n                    ? \"time\"\n                    : \"datetime-local\"\n                : \"date\";\n            self.mobileInput = (0, dom_1.createElement)(\"input\", self.input.className + \" flatpickr-mobile\");\n            self.mobileInput.tabIndex = 1;\n            self.mobileInput.type = inputType;\n            self.mobileInput.disabled = self.input.disabled;\n            self.mobileInput.required = self.input.required;\n            self.mobileInput.placeholder = self.input.placeholder;\n            self.mobileFormatStr =\n                inputType === \"datetime-local\"\n                    ? \"Y-m-d\\\\TH:i:S\"\n                    : inputType === \"date\"\n                        ? \"Y-m-d\"\n                        : \"H:i:S\";\n            if (self.selectedDates.length > 0) {\n                self.mobileInput.defaultValue = self.mobileInput.value = self.formatDate(self.selectedDates[0], self.mobileFormatStr);\n            }\n            if (self.config.minDate)\n                self.mobileInput.min = self.formatDate(self.config.minDate, \"Y-m-d\");\n            if (self.config.maxDate)\n                self.mobileInput.max = self.formatDate(self.config.maxDate, \"Y-m-d\");\n            if (self.input.getAttribute(\"step\"))\n                self.mobileInput.step = String(self.input.getAttribute(\"step\"));\n            self.input.type = \"hidden\";\n            if (self.altInput !== undefined)\n                self.altInput.type = \"hidden\";\n            try {\n                if (self.input.parentNode)\n                    self.input.parentNode.insertBefore(self.mobileInput, self.input.nextSibling);\n            }\n            catch (_a) { }\n            bind(self.mobileInput, \"change\", function (e) {\n                self.setDate((0, dom_1.getEventTarget)(e).value, false, self.mobileFormatStr);\n                triggerEvent(\"onChange\");\n                triggerEvent(\"onClose\");\n            });\n        }\n        function toggle(e) {\n            if (self.isOpen === true)\n                return self.close();\n            self.open(e);\n        }\n        function triggerEvent(event, data) {\n            if (self.config === undefined)\n                return;\n            var hooks = self.config[event];\n            if (hooks !== undefined && hooks.length > 0) {\n                for (var i = 0; hooks[i] && i < hooks.length; i++)\n                    hooks[i](self.selectedDates, self.input.value, self, data);\n            }\n            if (event === \"onChange\") {\n                self.input.dispatchEvent(createEvent(\"change\"));\n                self.input.dispatchEvent(createEvent(\"input\"));\n            }\n        }\n        function createEvent(name) {\n            var e = document.createEvent(\"Event\");\n            e.initEvent(name, true, true);\n            return e;\n        }\n        function isDateSelected(date) {\n            for (var i = 0; i < self.selectedDates.length; i++) {\n                var selectedDate = self.selectedDates[i];\n                if (selectedDate instanceof Date &&\n                    (0, dates_1.compareDates)(selectedDate, date) === 0)\n                    return \"\" + i;\n            }\n            return false;\n        }\n        function isDateInRange(date) {\n            if (self.config.mode !== \"range\" || self.selectedDates.length < 2)\n                return false;\n            return ((0, dates_1.compareDates)(date, self.selectedDates[0]) >= 0 &&\n                (0, dates_1.compareDates)(date, self.selectedDates[1]) <= 0);\n        }\n        function updateNavigationCurrentMonth() {\n            if (self.config.noCalendar || self.isMobile || !self.monthNav)\n                return;\n            self.yearElements.forEach(function (yearElement, i) {\n                var d = new Date(self.currentYear, self.currentMonth, 1);\n                d.setMonth(self.currentMonth + i);\n                if (self.config.showMonths > 1 ||\n                    self.config.monthSelectorType === \"static\") {\n                    self.monthElements[i].textContent =\n                        (0, formatting_1.monthToStr)(d.getMonth(), self.config.shorthandCurrentMonth, self.l10n) + \" \";\n                }\n                else {\n                    self.monthsDropdownContainer.value = d.getMonth().toString();\n                }\n                yearElement.value = d.getFullYear().toString();\n            });\n            self._hidePrevMonthArrow =\n                self.config.minDate !== undefined &&\n                    (self.currentYear === self.config.minDate.getFullYear()\n                        ? self.currentMonth <= self.config.minDate.getMonth()\n                        : self.currentYear < self.config.minDate.getFullYear());\n            self._hideNextMonthArrow =\n                self.config.maxDate !== undefined &&\n                    (self.currentYear === self.config.maxDate.getFullYear()\n                        ? self.currentMonth + 1 > self.config.maxDate.getMonth()\n                        : self.currentYear > self.config.maxDate.getFullYear());\n        }\n        function getDateStr(specificFormat) {\n            var format = specificFormat ||\n                (self.config.altInput ? self.config.altFormat : self.config.dateFormat);\n            return self.selectedDates\n                .map(function (dObj) { return self.formatDate(dObj, format); })\n                .filter(function (d, i, arr) {\n                return self.config.mode !== \"range\" ||\n                    self.config.enableTime ||\n                    arr.indexOf(d) === i;\n            })\n                .join(self.config.mode !== \"range\"\n                ? self.config.conjunction\n                : self.l10n.rangeSeparator);\n        }\n        function updateValue(triggerChange) {\n            if (triggerChange === void 0) {\n                triggerChange = true;\n            }\n            if (self.mobileInput !== undefined && self.mobileFormatStr) {\n                self.mobileInput.value =\n                    self.latestSelectedDateObj !== undefined\n                        ? self.formatDate(self.latestSelectedDateObj, self.mobileFormatStr)\n                        : \"\";\n            }\n            self.input.value = getDateStr(self.config.dateFormat);\n            if (self.altInput !== undefined) {\n                self.altInput.value = getDateStr(self.config.altFormat);\n            }\n            if (triggerChange !== false)\n                triggerEvent(\"onValueUpdate\");\n        }\n        function onMonthNavClick(e) {\n            var eventTarget = (0, dom_1.getEventTarget)(e);\n            var isPrevMonth = self.prevMonthNav.contains(eventTarget);\n            var isNextMonth = self.nextMonthNav.contains(eventTarget);\n            if (isPrevMonth || isNextMonth) {\n                changeMonth(isPrevMonth ? -1 : 1);\n            }\n            else if (self.yearElements.indexOf(eventTarget) >= 0) {\n                eventTarget.select();\n            }\n            else if (eventTarget.classList.contains(\"arrowUp\")) {\n                self.changeYear(self.currentYear + 1);\n            }\n            else if (eventTarget.classList.contains(\"arrowDown\")) {\n                self.changeYear(self.currentYear - 1);\n            }\n        }\n        function timeWrapper(e) {\n            e.preventDefault();\n            var isKeyDown = e.type === \"keydown\", eventTarget = (0, dom_1.getEventTarget)(e), input = eventTarget;\n            if (self.amPM !== undefined && eventTarget === self.amPM) {\n                self.amPM.textContent =\n                    self.l10n.amPM[(0, utils_1.int)(self.amPM.textContent === self.l10n.amPM[0])];\n            }\n            var min = parseFloat(input.getAttribute(\"min\")), max = parseFloat(input.getAttribute(\"max\")), step = parseFloat(input.getAttribute(\"step\")), curValue = parseInt(input.value, 10), delta = e.delta ||\n                (isKeyDown ? (e.which === 38 ? 1 : -1) : 0);\n            var newValue = curValue + step * delta;\n            if (typeof input.value !== \"undefined\" && input.value.length === 2) {\n                var isHourElem = input === self.hourElement, isMinuteElem = input === self.minuteElement;\n                if (newValue < min) {\n                    newValue =\n                        max +\n                            newValue +\n                            (0, utils_1.int)(!isHourElem) +\n                            ((0, utils_1.int)(isHourElem) && (0, utils_1.int)(!self.amPM));\n                    if (isMinuteElem)\n                        incrementNumInput(undefined, -1, self.hourElement);\n                }\n                else if (newValue > max) {\n                    newValue =\n                        input === self.hourElement ? newValue - max - (0, utils_1.int)(!self.amPM) : min;\n                    if (isMinuteElem)\n                        incrementNumInput(undefined, 1, self.hourElement);\n                }\n                if (self.amPM &&\n                    isHourElem &&\n                    (step === 1\n                        ? newValue + curValue === 23\n                        : Math.abs(newValue - curValue) > step)) {\n                    self.amPM.textContent =\n                        self.l10n.amPM[(0, utils_1.int)(self.amPM.textContent === self.l10n.amPM[0])];\n                }\n                input.value = (0, utils_1.pad)(newValue);\n            }\n        }\n        init();\n        return self;\n    }\n    function _flatpickr(nodeList, config) {\n        var nodes = Array.prototype.slice\n            .call(nodeList)\n            .filter(function (x) { return x instanceof HTMLElement; });\n        var instances = [];\n        for (var i = 0; i < nodes.length; i++) {\n            var node = nodes[i];\n            try {\n                if (node.getAttribute(\"data-fp-omit\") !== null)\n                    continue;\n                if (node._flatpickr !== undefined) {\n                    node._flatpickr.destroy();\n                    node._flatpickr = undefined;\n                }\n                node._flatpickr = FlatpickrInstance(node, config || {});\n                instances.push(node._flatpickr);\n            }\n            catch (e) {\n                console.error(e);\n            }\n        }\n        return instances.length === 1 ? instances[0] : instances;\n    }\n    if (typeof HTMLElement !== \"undefined\" &&\n        typeof HTMLCollection !== \"undefined\" &&\n        typeof NodeList !== \"undefined\") {\n        HTMLCollection.prototype.flatpickr = NodeList.prototype.flatpickr = function (config) {\n            return _flatpickr(this, config);\n        };\n        HTMLElement.prototype.flatpickr = function (config) {\n            return _flatpickr([this], config);\n        };\n    }\n    var flatpickr = function (selector, config) {\n        if (typeof selector === \"string\") {\n            return _flatpickr(window.document.querySelectorAll(selector), config);\n        }\n        else if (selector instanceof Node) {\n            return _flatpickr([selector], config);\n        }\n        else {\n            return _flatpickr(selector, config);\n        }\n    };\n    flatpickr.defaultConfig = {};\n    flatpickr.l10ns = {\n        en: __assign({}, default_1.default),\n        default: __assign({}, default_1.default),\n    };\n    flatpickr.localize = function (l10n) {\n        flatpickr.l10ns.default = __assign(__assign({}, flatpickr.l10ns.default), l10n);\n    };\n    flatpickr.setDefaults = function (config) {\n        flatpickr.defaultConfig = __assign(__assign({}, flatpickr.defaultConfig), config);\n    };\n    flatpickr.parseDate = (0, dates_1.createDateParser)({});\n    flatpickr.formatDate = (0, dates_1.createDateFormatter)({});\n    flatpickr.compareDates = dates_1.compareDates;\n    if (typeof jQuery !== \"undefined\" && typeof jQuery.fn !== \"undefined\") {\n        jQuery.fn.flatpickr = function (config) {\n            return _flatpickr(this, config);\n        };\n    }\n    Date.prototype.fp_incr = function (days) {\n        return new Date(this.getFullYear(), this.getMonth(), this.getDate() + (typeof days === \"string\" ? parseInt(days, 10) : days));\n    };\n    if (typeof window !== \"undefined\") {\n        window.flatpickr = flatpickr;\n    }\n    exports.default = flatpickr;\n}\n","min_source":"function _(e,t,n,a,i){a();const o=e(\"tslib\");var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},l=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var a=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],r=0,l=o.length;r<l;r++,i++)a[i]=o[r];return a};const c=e(\"651d495396\"),s=o.__importDefault(e(\"3bfa124fda\")),d=e(\"15458073ce\"),u=e(\"6b6749c6cf\"),f=e(\"1bb8c967d1\"),m=e(\"3d14787c35\");e(\"6f45019dc1\");var g=300;function p(e,t){var n={config:r(r({},c.defaults),v.defaultConfig),l10n:s.default};function a(){var e;return(null===(e=n.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function i(e){return e.bind(n)}function o(){var e=n.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==n.calendarContainer&&(n.calendarContainer.style.visibility=\"hidden\",n.calendarContainer.style.display=\"block\"),void 0!==n.daysContainer){var t=(n.days.offsetWidth+1)*e.showMonths;n.daysContainer.style.width=t+\"px\",n.calendarContainer.style.width=t+(void 0!==n.weekWrapper?n.weekWrapper.offsetWidth:0)+\"px\",n.calendarContainer.style.removeProperty(\"visibility\"),n.calendarContainer.style.removeProperty(\"display\")}}))}function p(e){if(0===n.selectedDates.length){var t=void 0===n.config.minDate||(0,f.compareDates)(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),a=(0,f.getDefaultHours)(n.config);t.setHours(a.hours,a.minutes,a.seconds,t.getMilliseconds()),n.selectedDates=[t],n.latestSelectedDateObj=t}void 0!==e&&\"blur\"!==e.type&&function(e){e.preventDefault();var t=\"keydown\"===e.type,a=(0,u.getEventTarget)(e),i=a;void 0!==n.amPM&&a===n.amPM&&(n.amPM.textContent=n.l10n.amPM[(0,d.int)(n.amPM.textContent===n.l10n.amPM[0])]);var o=parseFloat(i.getAttribute(\"min\")),r=parseFloat(i.getAttribute(\"max\")),l=parseFloat(i.getAttribute(\"step\")),c=parseInt(i.value,10),s=e.delta||(t?38===e.which?1:-1:0),f=c+l*s;if(void 0!==i.value&&2===i.value.length){var m=i===n.hourElement,g=i===n.minuteElement;f<o?(f=r+f+(0,d.int)(!m)+((0,d.int)(m)&&(0,d.int)(!n.amPM)),g&&x(void 0,-1,n.hourElement)):f>r&&(f=i===n.hourElement?f-r-(0,d.int)(!n.amPM):o,g&&x(void 0,1,n.hourElement)),n.amPM&&m&&(1===l?f+c===23:Math.abs(f-c)>l)&&(n.amPM.textContent=n.l10n.amPM[(0,d.int)(n.amPM.textContent===n.l10n.amPM[0])]),i.value=(0,d.pad)(f)}}(e);var i=n._input.value;h(),se(),n._input.value!==i&&n._debouncedChange()}function h(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var e,t,a=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(n.minuteElement.value,10)||0)%60,o=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(e=a,t=n.amPM.textContent,a=e%12+12*(0,d.int)(t===n.l10n.amPM[1]));var r=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===(0,f.compareDates)(n.latestSelectedDateObj,n.config.minDate,!0),l=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===(0,f.compareDates)(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var c=(0,f.calculateSecondsSinceMidnight)(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),s=(0,f.calculateSecondsSinceMidnight)(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),u=(0,f.calculateSecondsSinceMidnight)(a,i,o);if(u>s&&u<c){var m=(0,f.parseSeconds)(c);a=m[0],i=m[1],o=m[2]}}else{if(l){var g=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;(a=Math.min(a,g.getHours()))===g.getHours()&&(i=Math.min(i,g.getMinutes())),i===g.getMinutes()&&(o=Math.min(o,g.getSeconds()))}if(r){var p=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;(a=Math.max(a,p.getHours()))===p.getHours()&&i<p.getMinutes()&&(i=p.getMinutes()),i===p.getMinutes()&&(o=Math.max(o,p.getSeconds()))}}C(a,i,o)}}function D(e){var t=e||n.latestSelectedDateObj;t&&t instanceof Date&&C(t.getHours(),t.getMinutes(),t.getSeconds())}function C(e,t,a){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(e%24,t,a||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=(0,d.pad)(n.config.time_24hr?e:(12+e)%12+12*(0,d.int)(e%12==0)),n.minuteElement.value=(0,d.pad)(t),void 0!==n.amPM&&(n.amPM.textContent=n.l10n.amPM[(0,d.int)(e>=12)]),void 0!==n.secondElement&&(n.secondElement.value=(0,d.pad)(a)))}function b(e){var t=(0,u.getEventTarget)(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||\"Enter\"===e.key&&!/[^\\d]/.test(n.toString()))&&R(n)}function M(e,t,a,i){return t instanceof Array?t.forEach((function(t){return M(e,t,a,i)})):e instanceof Array?e.forEach((function(e){return M(e,t,a,i)})):(e.addEventListener(t,a,i),void n._handlers.push({remove:function(){return e.removeEventListener(t,a,i)}}))}function y(){ie(\"onChange\")}function w(e,t){var a=void 0!==e?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),i=n.currentYear,o=n.currentMonth;try{void 0!==a&&(n.currentYear=a.getFullYear(),n.currentMonth=a.getMonth())}catch(e){e.message=\"Invalid date supplied: \"+a,n.config.errorHandler(e)}t&&n.currentYear!==i&&(ie(\"onYearChange\"),N()),!t||n.currentYear===i&&n.currentMonth===o||ie(\"onMonthChange\"),n.redraw()}function E(e){var t=(0,u.getEventTarget)(e);~t.className.indexOf(\"arrow\")&&x(e,t.classList.contains(\"arrowUp\")?1:-1)}function x(e,t,n){var a=e&&(0,u.getEventTarget)(e),i=n||a&&a.parentNode&&a.parentNode.firstChild,o=oe(\"increment\");o.delta=t,i&&i.dispatchEvent(o)}function k(e,t,a,i){var o=W(t,!0),r=(0,u.createElement)(\"span\",e,t.getDate().toString());return r.dateObj=t,r.$i=i,r.setAttribute(\"aria-label\",n.formatDate(t,n.config.ariaDateFormat)),-1===e.indexOf(\"hidden\")&&0===(0,f.compareDates)(t,n.now)&&(n.todayDateElem=r,r.classList.add(\"today\"),r.setAttribute(\"aria-current\",\"date\")),o?(r.tabIndex=-1,re(t)&&(r.classList.add(\"selected\"),n.selectedDateElem=r,\"range\"===n.config.mode&&((0,u.toggleClass)(r,\"startRange\",n.selectedDates[0]&&0===(0,f.compareDates)(t,n.selectedDates[0],!0)),(0,u.toggleClass)(r,\"endRange\",n.selectedDates[1]&&0===(0,f.compareDates)(t,n.selectedDates[1],!0)),\"nextMonthDay\"===e&&r.classList.add(\"inRange\")))):r.classList.add(\"flatpickr-disabled\"),\"range\"===n.config.mode&&function(e){return!(\"range\"!==n.config.mode||n.selectedDates.length<2)&&((0,f.compareDates)(e,n.selectedDates[0])>=0&&(0,f.compareDates)(e,n.selectedDates[1])<=0)}(t)&&!re(t)&&r.classList.add(\"inRange\"),n.weekNumbers&&1===n.config.showMonths&&\"prevMonthDay\"!==e&&i%7==6&&n.weekNumbers.insertAdjacentHTML(\"beforeend\",\"<span class='flatpickr-day'>\"+n.config.getWeek(t)+\"</span>\"),ie(\"onDayCreate\",r),r}function T(e){e.focus(),\"range\"===n.config.mode&&J(e)}function _(e){for(var t=e>0?0:n.config.showMonths-1,a=e>0?n.config.showMonths:-1,i=t;i!=a;i+=e)for(var o=n.daysContainer.children[i],r=e>0?0:o.children.length-1,l=e>0?o.children.length:-1,c=r;c!=l;c+=e){var s=o.children[c];if(-1===s.className.indexOf(\"hidden\")&&W(s.dateObj))return s}}function I(e,t){var i=a(),o=B(i||document.body),r=void 0!==e?e:o?i:void 0!==n.selectedDateElem&&B(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&B(n.todayDateElem)?n.todayDateElem:_(t>0?1:-1);void 0===r?n._input.focus():o?function(e,t){for(var a=-1===e.className.indexOf(\"Month\")?e.dateObj.getMonth():n.currentMonth,i=t>0?n.config.showMonths:-1,o=t>0?1:-1,r=a-n.currentMonth;r!=i;r+=o)for(var l=n.daysContainer.children[r],c=a-n.currentMonth===r?e.$i+t:t<0?l.children.length-1:0,s=l.children.length,d=c;d>=0&&d<s&&d!=(t>0?s:-1);d+=o){var u=l.children[d];if(-1===u.className.indexOf(\"hidden\")&&W(u.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return T(u)}n.changeMonth(o),I(_(o),0)}(r,t):T(r)}function S(e,t){for(var a=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,i=n.utils.getDaysInMonth((t-1+12)%12,e),o=n.utils.getDaysInMonth(t,e),r=window.document.createDocumentFragment(),l=n.config.showMonths>1,c=l?\"prevMonthDay hidden\":\"prevMonthDay\",s=l?\"nextMonthDay hidden\":\"nextMonthDay\",d=i+1-a,f=0;d<=i;d++,f++)r.appendChild(k(\"flatpickr-day \"+c,new Date(e,t-1,d),0,f));for(d=1;d<=o;d++,f++)r.appendChild(k(\"flatpickr-day\",new Date(e,t,d),0,f));for(var m=o+1;m<=42-a&&(1===n.config.showMonths||f%7!=0);m++,f++)r.appendChild(k(\"flatpickr-day \"+s,new Date(e,t+1,m%o),0,f));var g=(0,u.createElement)(\"div\",\"dayContainer\");return g.appendChild(r),g}function O(){if(void 0!==n.daysContainer){(0,u.clearNode)(n.daysContainer),n.weekNumbers&&(0,u.clearNode)(n.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<n.config.showMonths;t++){var a=new Date(n.currentYear,n.currentMonth,1);a.setMonth(n.currentMonth+t),e.appendChild(S(a.getFullYear(),a.getMonth()))}n.daysContainer.appendChild(e),n.days=n.daysContainer.firstChild,\"range\"===n.config.mode&&1===n.selectedDates.length&&J()}}function N(){if(!(n.config.showMonths>1||\"dropdown\"!==n.config.monthSelectorType)){var e=function(e){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&e<n.config.minDate.getMonth())&&!(void 0!==n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()&&e>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML=\"\";for(var t=0;t<12;t++)if(e(t)){var a=(0,u.createElement)(\"option\",\"flatpickr-monthDropdown-month\");a.value=new Date(n.currentYear,t).getMonth().toString(),a.textContent=(0,m.monthToStr)(t,n.config.shorthandCurrentMonth,n.l10n),a.tabIndex=-1,n.currentMonth===t&&(a.selected=!0),n.monthsDropdownContainer.appendChild(a)}}}function A(){var e,t=(0,u.createElement)(\"div\",\"flatpickr-month\"),a=window.document.createDocumentFragment();n.config.showMonths>1||\"static\"===n.config.monthSelectorType?e=(0,u.createElement)(\"span\",\"cur-month\"):(n.monthsDropdownContainer=(0,u.createElement)(\"select\",\"flatpickr-monthDropdown-months\"),n.monthsDropdownContainer.setAttribute(\"aria-label\",n.l10n.monthAriaLabel),M(n.monthsDropdownContainer,\"change\",(function(e){var t=(0,u.getEventTarget)(e),a=parseInt(t.value,10);n.changeMonth(a-n.currentMonth),ie(\"onMonthChange\")})),N(),e=n.monthsDropdownContainer);var i=(0,u.createNumberInput)(\"cur-year\",{tabindex:\"-1\"}),o=i.getElementsByTagName(\"input\")[0];o.setAttribute(\"aria-label\",n.l10n.yearAriaLabel),n.config.minDate&&o.setAttribute(\"min\",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(o.setAttribute(\"max\",n.config.maxDate.getFullYear().toString()),o.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var r=(0,u.createElement)(\"div\",\"flatpickr-current-month\");return r.appendChild(e),r.appendChild(i),a.appendChild(r),t.appendChild(a),{container:t,yearElement:o,monthElement:e}}function P(){(0,u.clearNode)(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var e=n.config.showMonths;e--;){var t=A();n.yearElements.push(t.yearElement),n.monthElements.push(t.monthElement),n.monthNav.appendChild(t.container)}n.monthNav.appendChild(n.nextMonthNav)}function Y(){n.weekdayContainer?(0,u.clearNode)(n.weekdayContainer):n.weekdayContainer=(0,u.createElement)(\"div\",\"flatpickr-weekdays\");for(var e=n.config.showMonths;e--;){var t=(0,u.createElement)(\"div\",\"flatpickr-weekdaycontainer\");n.weekdayContainer.appendChild(t)}return F(),n.weekdayContainer}function F(){if(n.weekdayContainer){var e=n.l10n.firstDayOfWeek,t=l(n.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=l(t.splice(e,t.length),t.splice(0,e)));for(var a=n.config.showMonths;a--;)n.weekdayContainer.children[a].innerHTML=\"\\n      <span class='flatpickr-weekday'>\\n        \"+t.join(\"</span><span class='flatpickr-weekday'>\")+\"\\n      </span>\\n      \"}}function j(e,t){void 0===t&&(t=!0);var a=t?e:e-n.currentMonth;a<0&&!0===n._hidePrevMonthArrow||a>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=a,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,ie(\"onYearChange\"),N()),O(),ie(\"onMonthChange\"),le())}function L(e){return n.calendarContainer.contains(e)}function H(e){if(n.isOpen&&!n.config.inline){var t=(0,u.getEventTarget)(e),a=L(t),i=!(t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput)))&&!a&&!L(e.relatedTarget),o=!n.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&o&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&\"\"!==n.input.value&&void 0!==n.input.value&&p(),n.close(),n.config&&\"range\"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function R(e){if(!(!e||n.config.minDate&&e<n.config.minDate.getFullYear()||n.config.maxDate&&e>n.config.maxDate.getFullYear())){var t=e,a=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),a&&(n.redraw(),ie(\"onYearChange\"),N())}}function W(e,t){var a;void 0===t&&(t=!0);var i=n.parseDate(e,void 0,t);if(n.config.minDate&&i&&(0,f.compareDates)(i,n.config.minDate,void 0!==t?t:!n.minDateHasTime)<0||n.config.maxDate&&i&&(0,f.compareDates)(i,n.config.maxDate,void 0!==t?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===i)return!1;for(var o=!!n.config.enable,r=null!==(a=n.config.enable)&&void 0!==a?a:n.config.disable,l=0,c=void 0;l<r.length;l++){if(\"function\"==typeof(c=r[l])&&c(i))return o;if(c instanceof Date&&void 0!==i&&c.getTime()===i.getTime())return o;if(\"string\"==typeof c){var s=n.parseDate(c,void 0,!0);return s&&s.getTime()===i.getTime()?o:!o}if(\"object\"==typeof c&&void 0!==i&&c.from&&c.to&&i.getTime()>=c.from.getTime()&&i.getTime()<=c.to.getTime())return o}return!o}function B(e){return void 0!==n.daysContainer&&(-1===e.className.indexOf(\"hidden\")&&-1===e.className.indexOf(\"flatpickr-disabled\")&&n.daysContainer.contains(e))}function K(e){var t=e.target===n._input,a=n._input.value.trimEnd()!==ce();!t||!a||e.relatedTarget&&L(e.relatedTarget)||n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function q(t){var i=(0,u.getEventTarget)(t),o=n.config.wrap?e.contains(i):i===n._input,r=n.config.allowInput,l=n.isOpen&&(!r||!o),c=n.config.inline&&o&&!r;if(13===t.keyCode&&o){if(r)return n.setDate(n._input.value,!0,i===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),i.blur();n.open()}else if(L(i)||l||c){var s=!!n.timeContainer&&n.timeContainer.contains(i);switch(t.keyCode){case 13:s?(t.preventDefault(),p(),G()):Z(t);break;case 27:t.preventDefault(),G();break;case 8:case 46:o&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(s||o)n.hourElement&&n.hourElement.focus();else{t.preventDefault();var d=a();if(void 0!==n.daysContainer&&(!1===r||d&&B(d))){var f=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),j(f),I(_(1),0)):I(void 0,f)}}break;case 38:case 40:t.preventDefault();var m=40===t.keyCode?1:-1;n.daysContainer&&void 0!==i.$i||i===n.input||i===n.altInput?t.ctrlKey?(t.stopPropagation(),R(n.currentYear-m),I(_(1),0)):s||I(void 0,7*m):i===n.currentYearElement?R(n.currentYear-m):n.config.enableTime&&(!s&&n.hourElement&&n.hourElement.focus(),p(t),n._debouncedChange());break;case 9:if(s){var g=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter((function(e){return e})),v=g.indexOf(i);if(-1!==v){var D=g[v+(t.shiftKey?-1:1)];t.preventDefault(),(D||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(i)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&i===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],h(),se();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],h(),se()}(o||L(i))&&ie(\"onKeyDown\",t)}function J(e,t){if(void 0===t&&(t=\"flatpickr-day\"),1===n.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains(\"flatpickr-disabled\"))){for(var a=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),i=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),o=Math.min(a,n.selectedDates[0].getTime()),r=Math.max(a,n.selectedDates[0].getTime()),l=!1,c=0,s=0,d=o;d<r;d+=f.duration.DAY)W(new Date(d),!0)||(l=l||d>o&&d<r,d<i&&(!c||d>c)?c=d:d>i&&(!s||d<s)&&(s=d));Array.from(n.rContainer.querySelectorAll(\"*:nth-child(-n+\"+n.config.showMonths+\") > .\"+t)).forEach((function(t){var o=t.dateObj.getTime(),r=c>0&&o<c||s>0&&o>s;if(r)return t.classList.add(\"notAllowed\"),void[\"inRange\",\"startRange\",\"endRange\"].forEach((function(e){t.classList.remove(e)}));l&&!r||([\"startRange\",\"inRange\",\"endRange\",\"notAllowed\"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(a<=n.selectedDates[0].getTime()?\"startRange\":\"endRange\"),i<a&&o===i?t.classList.add(\"startRange\"):i>a&&o===i&&t.classList.add(\"endRange\"),o>=c&&(0===s||o<=s)&&(0,f.isBetween)(o,i,a)&&t.classList.add(\"inRange\")))}))}}function U(){!n.isOpen||n.config.static||n.config.inline||X()}function $(e){return function(t){var a=n.config[\"_\"+e+\"Date\"]=n.parseDate(t,n.config.dateFormat),i=n.config[\"_\"+(\"min\"===e?\"max\":\"min\")+\"Date\"];void 0!==a&&(n[\"min\"===e?\"minDateHasTime\":\"maxDateHasTime\"]=a.getHours()>0||a.getMinutes()>0||a.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter((function(e){return W(e)})),n.selectedDates.length||\"min\"!==e||D(a),se()),n.daysContainer&&(z(),void 0!==a?n.currentYearElement[e]=a.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!i&&void 0!==a&&i.getFullYear()===a.getFullYear())}}function Q(){return n.config.wrap?e.querySelector(\"[data-input]\"):e}function V(){\"object\"!=typeof n.config.locale&&void 0===v.l10ns[n.config.locale]&&n.config.errorHandler(new Error(\"flatpickr: invalid locale \"+n.config.locale)),n.l10n=r(r({},v.l10ns.default),\"object\"==typeof n.config.locale?n.config.locale:\"default\"!==n.config.locale?v.l10ns[n.config.locale]:void 0),m.tokenRegex.D=\"(\"+n.l10n.weekdays.shorthand.join(\"|\")+\")\",m.tokenRegex.l=\"(\"+n.l10n.weekdays.longhand.join(\"|\")+\")\",m.tokenRegex.M=\"(\"+n.l10n.months.shorthand.join(\"|\")+\")\",m.tokenRegex.F=\"(\"+n.l10n.months.longhand.join(\"|\")+\")\",m.tokenRegex.K=\"(\"+n.l10n.amPM[0]+\"|\"+n.l10n.amPM[1]+\"|\"+n.l10n.amPM[0].toLowerCase()+\"|\"+n.l10n.amPM[1].toLowerCase()+\")\",void 0===r(r({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===v.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=(0,f.createDateFormatter)(n),n.parseDate=(0,f.createDateParser)({config:n.config,l10n:n.l10n})}function X(e){if(\"function\"!=typeof n.config.position){if(void 0!==n.calendarContainer){ie(\"onPreCalendarPosition\");var t=e||n._positionElement,a=Array.prototype.reduce.call(n.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),i=n.calendarContainer.offsetWidth,o=n.config.position.split(\" \"),r=o[0],l=o.length>1?o[1]:null,c=t.getBoundingClientRect(),s=window.innerHeight-c.bottom,d=\"above\"===r||\"below\"!==r&&s<a&&c.top>a,f=window.pageYOffset+c.top+(d?-a-2:t.offsetHeight+2);if((0,u.toggleClass)(n.calendarContainer,\"arrowTop\",!d),(0,u.toggleClass)(n.calendarContainer,\"arrowBottom\",d),!n.config.inline){var m=window.pageXOffset+c.left,g=!1,p=!1;\"center\"===l?(m-=(i-c.width)/2,g=!0):\"right\"===l&&(m-=i-c.width,p=!0),(0,u.toggleClass)(n.calendarContainer,\"arrowLeft\",!g&&!p),(0,u.toggleClass)(n.calendarContainer,\"arrowCenter\",g),(0,u.toggleClass)(n.calendarContainer,\"arrowRight\",p);var h=window.document.body.offsetWidth-(window.pageXOffset+c.right),v=m+i>window.document.body.offsetWidth,D=h+i>window.document.body.offsetWidth;if((0,u.toggleClass)(n.calendarContainer,\"rightMost\",v),!n.config.static)if(n.calendarContainer.style.top=f+\"px\",v)if(D){var C=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch(e){continue}e=n;break}}return null!=e?e:(a=document.createElement(\"style\"),document.head.appendChild(a),a.sheet);var a}();if(void 0===C)return;var b=window.document.body.offsetWidth,M=Math.max(0,b/2-i/2),y=C.cssRules.length,w=\"{left:\"+c.left+\"px;right:auto;}\";(0,u.toggleClass)(n.calendarContainer,\"rightMost\",!1),(0,u.toggleClass)(n.calendarContainer,\"centerMost\",!0),C.insertRule(\".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after\"+w,y),n.calendarContainer.style.left=M+\"px\",n.calendarContainer.style.right=\"auto\"}else n.calendarContainer.style.left=\"auto\",n.calendarContainer.style.right=h+\"px\";else n.calendarContainer.style.left=m+\"px\",n.calendarContainer.style.right=\"auto\"}}}else n.config.position(n,e)}function z(){n.config.noCalendar||n.isMobile||(N(),le(),O())}function G(){n._input.focus(),-1!==window.navigator.userAgent.indexOf(\"MSIE\")||void 0!==navigator.msMaxTouchPoints?setTimeout(n.close,0):n.close()}function Z(e){e.preventDefault(),e.stopPropagation();var t=(0,u.findParent)((0,u.getEventTarget)(e),(function(e){return e.classList&&e.classList.contains(\"flatpickr-day\")&&!e.classList.contains(\"flatpickr-disabled\")&&!e.classList.contains(\"notAllowed\")}));if(void 0!==t){var a=t,i=n.latestSelectedDateObj=new Date(a.dateObj.getTime()),o=(i.getMonth()<n.currentMonth||i.getMonth()>n.currentMonth+n.config.showMonths-1)&&\"range\"!==n.config.mode;if(n.selectedDateElem=a,\"single\"===n.config.mode)n.selectedDates=[i];else if(\"multiple\"===n.config.mode){var r=re(i);r?n.selectedDates.splice(parseInt(r),1):n.selectedDates.push(i)}else\"range\"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=i,n.selectedDates.push(i),0!==(0,f.compareDates)(i,n.selectedDates[0],!0)&&n.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(h(),o){var l=n.currentYear!==i.getFullYear();n.currentYear=i.getFullYear(),n.currentMonth=i.getMonth(),l&&(ie(\"onYearChange\"),N()),ie(\"onMonthChange\")}if(le(),O(),se(),o||\"range\"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():T(a),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var c=\"single\"===n.config.mode&&!n.config.enableTime,s=\"range\"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(c||s)&&G()}y()}}n.parseDate=(0,f.createDateParser)({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=M,n._setHoursFromDate=D,n._positionCalendar=X,n.changeMonth=j,n.changeYear=R,n.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);n.input.value=\"\",void 0!==n.altInput&&(n.altInput.value=\"\");void 0!==n.mobileInput&&(n.mobileInput.value=\"\");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){var a=(0,f.getDefaultHours)(n.config);C(a.hours,a.minutes,a.seconds)}n.redraw(),e&&ie(\"onChange\")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove(\"open\"),void 0!==n._input&&n._input.classList.remove(\"active\"));ie(\"onClose\")},n.onMouseOver=J,n._createElement=u.createElement,n.createDay=k,n.destroy=function(){void 0!==n.config&&ie(\"onDestroy\");for(var e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var t=n.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type=\"text\",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove(\"flatpickr-input\"),n.input.removeAttribute(\"readonly\"));[\"_showTimeInput\",\"latestSelectedDateObj\",\"_hideNextMonthArrow\",\"_hidePrevMonthArrow\",\"__hideNextMonthArrow\",\"__hidePrevMonthArrow\",\"isMobile\",\"isOpen\",\"selectedDateElem\",\"minDateHasTime\",\"maxDateHasTime\",\"days\",\"daysContainer\",\"_input\",\"_positionElement\",\"innerContainer\",\"rContainer\",\"monthNav\",\"todayDateElem\",\"calendarContainer\",\"weekdayContainer\",\"prevMonthNav\",\"nextMonthNav\",\"monthsDropdownContainer\",\"currentMonthElement\",\"currentYearElement\",\"navigationCurrentMonth\",\"selectedDateElem\",\"config\"].forEach((function(e){try{delete n[e]}catch(e){}}))},n.isEnabled=W,n.jumpToDate=w,n.updateValue=se,n.open=function(e,t){void 0===t&&(t=n._positionElement);if(!0===n.isMobile){if(e){e.preventDefault();var a=(0,u.getEventTarget)(e);a&&a.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void ie(\"onOpen\")}if(n._input.disabled||n.config.inline)return;var i=n.isOpen;n.isOpen=!0,i||(n.calendarContainer.classList.add(\"open\"),n._input.classList.add(\"active\"),ie(\"onOpen\"),X(t));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==e&&n.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return n.hourElement.select()}),50))},n.redraw=z,n.set=function(e,t){if(null!==e&&\"object\"==typeof e)for(var a in Object.assign(n.config,e),e)void 0!==ee[a]&&ee[a].forEach((function(e){return e()}));else n.config[e]=t,void 0!==ee[e]?ee[e].forEach((function(e){return e()})):c.HOOKS.indexOf(e)>-1&&(n.config[e]=(0,d.arrayify)(t));n.redraw(),se(!0)},n.setDate=function(e,t,a){void 0===t&&(t=!1);void 0===a&&(a=n.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);te(e,a),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),w(void 0,t),D(),0===n.selectedDates.length&&n.clear(!1);se(t),t&&ie(\"onChange\")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};var ee={locale:[V,F],showMonths:[P,o,Y],minDate:[w],maxDate:[w],positionElement:[ae],clickOpens:[function(){!0===n.config.clickOpens?(M(n._input,\"focus\",n.open),M(n._input,\"click\",n.open)):(n._input.removeEventListener(\"focus\",n.open),n._input.removeEventListener(\"click\",n.open))}]};function te(e,t){var a=[];if(e instanceof Array)a=e.map((function(e){return n.parseDate(e,t)}));else if(e instanceof Date||\"number\"==typeof e)a=[n.parseDate(e,t)];else if(\"string\"==typeof e)switch(n.config.mode){case\"single\":case\"time\":a=[n.parseDate(e,t)];break;case\"multiple\":a=e.split(n.config.conjunction).map((function(e){return n.parseDate(e,t)}));break;case\"range\":a=e.split(n.l10n.rangeSeparator).map((function(e){return n.parseDate(e,t)}))}else n.config.errorHandler(new Error(\"Invalid date supplied: \"+JSON.stringify(e)));n.selectedDates=n.config.allowInvalidPreload?a:a.filter((function(e){return e instanceof Date&&W(e,!1)})),\"range\"===n.config.mode&&n.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function ne(e){return e.slice().map((function(e){return\"string\"==typeof e||\"number\"==typeof e||e instanceof Date?n.parseDate(e,void 0,!0):e&&\"object\"==typeof e&&e.from&&e.to?{from:n.parseDate(e.from,void 0),to:n.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ae(){n._positionElement=n.config.positionElement||n._input}function ie(e,t){if(void 0!==n.config){var a=n.config[e];if(void 0!==a&&a.length>0)for(var i=0;a[i]&&i<a.length;i++)a[i](n.selectedDates,n.input.value,n,t);\"onChange\"===e&&(n.input.dispatchEvent(oe(\"change\")),n.input.dispatchEvent(oe(\"input\")))}}function oe(e){var t=document.createEvent(\"Event\");return t.initEvent(e,!0,!0),t}function re(e){for(var t=0;t<n.selectedDates.length;t++){var a=n.selectedDates[t];if(a instanceof Date&&0===(0,f.compareDates)(a,e))return\"\"+t}return!1}function le(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach((function(e,t){var a=new Date(n.currentYear,n.currentMonth,1);a.setMonth(n.currentMonth+t),n.config.showMonths>1||\"static\"===n.config.monthSelectorType?n.monthElements[t].textContent=(0,m.monthToStr)(a.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+\" \":n.monthsDropdownContainer.value=a.getMonth().toString(),e.value=a.getFullYear().toString()})),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=void 0!==n.config.maxDate&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function ce(e){var t=e||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map((function(e){return n.formatDate(e,t)})).filter((function(e,t,a){return\"range\"!==n.config.mode||n.config.enableTime||a.indexOf(e)===t})).join(\"range\"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function se(e){void 0===e&&(e=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):\"\"),n.input.value=ce(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=ce(n.config.altFormat)),!1!==e&&ie(\"onValueUpdate\")}function de(e){var t=(0,u.getEventTarget)(e),a=n.prevMonthNav.contains(t),i=n.nextMonthNav.contains(t);a||i?j(a?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains(\"arrowUp\")?n.changeYear(n.currentYear+1):t.classList.contains(\"arrowDown\")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){var a=[\"wrap\",\"weekNumbers\",\"allowInput\",\"allowInvalidPreload\",\"clickOpens\",\"time_24hr\",\"enableTime\",\"noCalendar\",\"altInput\",\"shorthandCurrentMonth\",\"inline\",\"static\",\"enableSeconds\",\"disableMobile\"],o=r(r({},JSON.parse(JSON.stringify(e.dataset||{}))),t),l={};n.config.parseDate=o.parseDate,n.config.formatDate=o.formatDate,Object.defineProperty(n.config,\"enable\",{get:function(){return n.config._enable},set:function(e){n.config._enable=ne(e)}}),Object.defineProperty(n.config,\"disable\",{get:function(){return n.config._disable},set:function(e){n.config._disable=ne(e)}});var s=\"time\"===o.mode;if(!o.dateFormat&&(o.enableTime||s)){var u=v.defaultConfig.dateFormat||c.defaults.dateFormat;l.dateFormat=o.noCalendar||s?\"H:i\"+(o.enableSeconds?\":S\":\"\"):u+\" H:i\"+(o.enableSeconds?\":S\":\"\")}if(o.altInput&&(o.enableTime||s)&&!o.altFormat){var f=v.defaultConfig.altFormat||c.defaults.altFormat;l.altFormat=o.noCalendar||s?\"h:i\"+(o.enableSeconds?\":S K\":\" K\"):f+\" h:i\"+(o.enableSeconds?\":S\":\"\")+\" K\"}Object.defineProperty(n.config,\"minDate\",{get:function(){return n.config._minDate},set:$(\"min\")}),Object.defineProperty(n.config,\"maxDate\",{get:function(){return n.config._maxDate},set:$(\"max\")});var m=function(e){return function(t){n.config[\"min\"===e?\"_minTime\":\"_maxTime\"]=n.parseDate(t,\"H:i:S\")}};Object.defineProperty(n.config,\"minTime\",{get:function(){return n.config._minTime},set:m(\"min\")}),Object.defineProperty(n.config,\"maxTime\",{get:function(){return n.config._maxTime},set:m(\"max\")}),\"time\"===o.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,l,o);for(var g=0;g<a.length;g++)n.config[a[g]]=!0===n.config[a[g]]||\"true\"===n.config[a[g]];c.HOOKS.filter((function(e){return void 0!==n.config[e]})).forEach((function(e){n.config[e]=(0,d.arrayify)(n.config[e]||[]).map(i)})),n.isMobile=!n.config.disableMobile&&!n.config.inline&&\"single\"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(g=0;g<n.config.plugins.length;g++){var p=n.config.plugins[g](n)||{};for(var h in p)c.HOOKS.indexOf(h)>-1?n.config[h]=(0,d.arrayify)(p[h]).map(i).concat(n.config[h]):void 0===o[h]&&(n.config[h]=p[h])}o.altInputClass||(n.config.altInputClass=Q().className+\" \"+n.config.altInputClass);ie(\"onParseConfig\")}(),V(),function(){if(n.input=Q(),!n.input)return void n.config.errorHandler(new Error(\"Invalid input element specified\"));n.input._type=n.input.type,n.input.type=\"text\",n.input.classList.add(\"flatpickr-input\"),n._input=n.input,n.config.altInput&&(n.altInput=(0,u.createElement)(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type=\"text\",n.input.setAttribute(\"type\",\"hidden\"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute(\"readonly\",\"readonly\");ae()}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var e=n.config.defaultDate||(\"INPUT\"!==n.input.nodeName&&\"TEXTAREA\"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&te(e,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]);void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,\"H:i\"));void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,\"H:i\"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=n.currentMonth),void 0===t&&(t=n.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:n.l10n.daysInMonth[e]}},n.isMobile||function(){var e=window.document.createDocumentFragment();if(n.calendarContainer=(0,u.createElement)(\"div\",\"flatpickr-calendar\"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=(0,u.createElement)(\"div\",\"flatpickr-months\"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=(0,u.createElement)(\"span\",\"flatpickr-prev-month\"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=(0,u.createElement)(\"span\",\"flatpickr-next-month\"),n.nextMonthNav.innerHTML=n.config.nextArrow,P(),Object.defineProperty(n,\"_hidePrevMonthArrow\",{get:function(){return n.__hidePrevMonthArrow},set:function(e){n.__hidePrevMonthArrow!==e&&((0,u.toggleClass)(n.prevMonthNav,\"flatpickr-disabled\",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,\"_hideNextMonthArrow\",{get:function(){return n.__hideNextMonthArrow},set:function(e){n.__hideNextMonthArrow!==e&&((0,u.toggleClass)(n.nextMonthNav,\"flatpickr-disabled\",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],le(),n.monthNav)),n.innerContainer=(0,u.createElement)(\"div\",\"flatpickr-innerContainer\"),n.config.weekNumbers){var t=function(){n.calendarContainer.classList.add(\"hasWeeks\");var e=(0,u.createElement)(\"div\",\"flatpickr-weekwrapper\");e.appendChild((0,u.createElement)(\"span\",\"flatpickr-weekday\",n.l10n.weekAbbreviation));var t=(0,u.createElement)(\"div\",\"flatpickr-weeks\");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),a=t.weekWrapper,i=t.weekNumbers;n.innerContainer.appendChild(a),n.weekNumbers=i,n.weekWrapper=a}n.rContainer=(0,u.createElement)(\"div\",\"flatpickr-rContainer\"),n.rContainer.appendChild(Y()),n.daysContainer||(n.daysContainer=(0,u.createElement)(\"div\",\"flatpickr-days\"),n.daysContainer.tabIndex=-1),O(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add(\"hasTime\"),n.config.noCalendar&&n.calendarContainer.classList.add(\"noCalendar\");var e=(0,f.getDefaultHours)(n.config);n.timeContainer=(0,u.createElement)(\"div\",\"flatpickr-time\"),n.timeContainer.tabIndex=-1;var t=(0,u.createElement)(\"span\",\"flatpickr-time-separator\",\":\"),a=(0,u.createNumberInput)(\"flatpickr-hour\",{\"aria-label\":n.l10n.hourAriaLabel});n.hourElement=a.getElementsByTagName(\"input\")[0];var i=(0,u.createNumberInput)(\"flatpickr-minute\",{\"aria-label\":n.l10n.minuteAriaLabel});n.minuteElement=i.getElementsByTagName(\"input\")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=(0,d.pad)(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=(0,d.pad)(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute(\"step\",n.config.hourIncrement.toString()),n.minuteElement.setAttribute(\"step\",n.config.minuteIncrement.toString()),n.hourElement.setAttribute(\"min\",n.config.time_24hr?\"0\":\"1\"),n.hourElement.setAttribute(\"max\",n.config.time_24hr?\"23\":\"12\"),n.hourElement.setAttribute(\"maxlength\",\"2\"),n.minuteElement.setAttribute(\"min\",\"0\"),n.minuteElement.setAttribute(\"max\",\"59\"),n.minuteElement.setAttribute(\"maxlength\",\"2\"),n.timeContainer.appendChild(a),n.timeContainer.appendChild(t),n.timeContainer.appendChild(i),n.config.time_24hr&&n.timeContainer.classList.add(\"time24hr\");if(n.config.enableSeconds){n.timeContainer.classList.add(\"hasSeconds\");var o=(0,u.createNumberInput)(\"flatpickr-second\");n.secondElement=o.getElementsByTagName(\"input\")[0],n.secondElement.value=(0,d.pad)(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute(\"step\",n.minuteElement.getAttribute(\"step\")),n.secondElement.setAttribute(\"min\",\"0\"),n.secondElement.setAttribute(\"max\",\"59\"),n.secondElement.setAttribute(\"maxlength\",\"2\"),n.timeContainer.appendChild((0,u.createElement)(\"span\",\"flatpickr-time-separator\",\":\")),n.timeContainer.appendChild(o)}n.config.time_24hr||(n.amPM=(0,u.createElement)(\"span\",\"flatpickr-am-pm\",n.l10n.amPM[(0,d.int)((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());(0,u.toggleClass)(n.calendarContainer,\"rangeMode\",\"range\"===n.config.mode),(0,u.toggleClass)(n.calendarContainer,\"animate\",!0===n.config.animate),(0,u.toggleClass)(n.calendarContainer,\"multiMonth\",n.config.showMonths>1),n.calendarContainer.appendChild(e);var o=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?\"inline\":\"static\"),n.config.inline&&(!o&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var r=(0,u.createElement)(\"div\",\"flatpickr-wrapper\");n.element.parentNode&&n.element.parentNode.insertBefore(r,n.element),r.appendChild(n.element),n.altInput&&r.appendChild(n.altInput),r.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&[\"open\",\"close\",\"toggle\",\"clear\"].forEach((function(e){Array.prototype.forEach.call(n.element.querySelectorAll(\"[data-\"+e+\"]\"),(function(t){return M(t,\"click\",n[e])}))}));if(n.isMobile)return void function(){var e=n.config.enableTime?n.config.noCalendar?\"time\":\"datetime-local\":\"date\";n.mobileInput=(0,u.createElement)(\"input\",n.input.className+\" flatpickr-mobile\"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr=\"datetime-local\"===e?\"Y-m-d\\\\TH:i:S\":\"date\"===e?\"Y-m-d\":\"H:i:S\",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,\"Y-m-d\"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,\"Y-m-d\"));n.input.getAttribute(\"step\")&&(n.mobileInput.step=String(n.input.getAttribute(\"step\")));n.input.type=\"hidden\",void 0!==n.altInput&&(n.altInput.type=\"hidden\");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(e){}M(n.mobileInput,\"change\",(function(e){n.setDate((0,u.getEventTarget)(e).value,!1,n.mobileFormatStr),ie(\"onChange\"),ie(\"onClose\")}))}();var e=(0,d.debounce)(U,50);n._debouncedChange=(0,d.debounce)(y,g),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&M(n.daysContainer,\"mouseover\",(function(e){\"range\"===n.config.mode&&J((0,u.getEventTarget)(e))}));M(n._input,\"keydown\",q),void 0!==n.calendarContainer&&M(n.calendarContainer,\"keydown\",q);n.config.inline||n.config.static||M(window,\"resize\",e);void 0!==window.ontouchstart?M(window.document,\"touchstart\",H):M(window.document,\"mousedown\",H);M(window.document,\"focus\",H,{capture:!0}),!0===n.config.clickOpens&&(M(n._input,\"focus\",n.open),M(n._input,\"click\",n.open));void 0!==n.daysContainer&&(M(n.monthNav,\"click\",de),M(n.monthNav,[\"keyup\",\"increment\"],b),M(n.daysContainer,\"click\",Z));if(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){var t=function(e){return(0,u.getEventTarget)(e).select()};M(n.timeContainer,[\"increment\"],p),M(n.timeContainer,\"blur\",p,{capture:!0}),M(n.timeContainer,\"click\",E),M([n.hourElement,n.minuteElement],[\"focus\",\"click\"],t),void 0!==n.secondElement&&M(n.secondElement,\"focus\",(function(){return n.secondElement&&n.secondElement.select()})),void 0!==n.amPM&&M(n.amPM,\"click\",(function(e){p(e)}))}n.config.allowInput&&M(n._input,\"blur\",K)}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&D(n.config.noCalendar?n.latestSelectedDateObj:void 0),se(!1)),o();var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&a&&X(),ie(\"onReady\")}(),n}function h(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),a=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute(\"data-fp-omit\"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=p(o,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}\"undefined\"!=typeof HTMLElement&&\"undefined\"!=typeof HTMLCollection&&\"undefined\"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return h(this,e)},HTMLElement.prototype.flatpickr=function(e){return h([this],e)});var v=function(e,t){return\"string\"==typeof e?h(window.document.querySelectorAll(e),t):e instanceof Node?h([e],t):h(e,t)};v.defaultConfig={},v.l10ns={en:r({},s.default),default:r({},s.default)},v.localize=function(e){v.l10ns.default=r(r({},v.l10ns.default),e)},v.setDefaults=function(e){v.defaultConfig=r(r({},v.defaultConfig),e)},v.parseDate=(0,f.createDateParser)({}),v.formatDate=(0,f.createDateFormatter)({}),v.compareDates=f.compareDates,\"undefined\"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return h(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(\"string\"==typeof e?parseInt(e,10):e))},\"undefined\"!=typeof window&&(window.flatpickr=v),n.default=v}\n//# sourceMappingURL=index.min.js.map","min_map":"{\"version\":3,\"file\":\"index.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tslib_1\",\"__assign\",\"this\",\"Object\",\"assign\",\"t\",\"s\",\"i\",\"n\",\"arguments\",\"length\",\"p\",\"prototype\",\"hasOwnProperty\",\"call\",\"apply\",\"__spreadArrays\",\"il\",\"r\",\"Array\",\"k\",\"a\",\"j\",\"jl\",\"options_1\",\"default_1\",\"__importDefault\",\"utils_1\",\"dom_1\",\"dates_1\",\"formatting_1\",\"DEBOUNCED_CHANGE_MS\",\"FlatpickrInstance\",\"element\",\"instanceConfig\",\"self\",\"config\",\"defaults\",\"flatpickr\",\"defaultConfig\",\"l10n\",\"default\",\"getClosestActiveElement\",\"_a\",\"calendarContainer\",\"getRootNode\",\"activeElement\",\"document\",\"bindToInstance\",\"fn\",\"bind\",\"setCalendarWidth\",\"weekNumbers\",\"showMonths\",\"noCalendar\",\"window\",\"requestAnimationFrame\",\"undefined\",\"style\",\"visibility\",\"display\",\"daysContainer\",\"daysWidth\",\"days\",\"offsetWidth\",\"width\",\"weekWrapper\",\"removeProperty\",\"updateTime\",\"e\",\"selectedDates\",\"defaultDate\",\"minDate\",\"compareDates\",\"Date\",\"getTime\",\"getDefaultHours\",\"setHours\",\"hours\",\"minutes\",\"seconds\",\"getMilliseconds\",\"latestSelectedDateObj\",\"type\",\"preventDefault\",\"isKeyDown\",\"eventTarget\",\"getEventTarget\",\"input\",\"amPM\",\"textContent\",\"int\",\"min\",\"parseFloat\",\"getAttribute\",\"max\",\"step\",\"curValue\",\"parseInt\",\"value\",\"delta\",\"which\",\"newValue\",\"isHourElem\",\"hourElement\",\"isMinuteElem\",\"minuteElement\",\"incrementNumInput\",\"Math\",\"abs\",\"pad\",\"timeWrapper\",\"prevValue\",\"_input\",\"setHoursFromInputs\",\"updateValue\",\"_debouncedChange\",\"hour\",\"slice\",\"secondElement\",\"limitMinHours\",\"minTime\",\"minDateHasTime\",\"limitMaxHours\",\"maxTime\",\"maxDate\",\"maxDateHasTime\",\"minBound\",\"calculateSecondsSinceMidnight\",\"getHours\",\"getMinutes\",\"getSeconds\",\"maxBound\",\"currentTime\",\"result\",\"parseSeconds\",\"setHoursFromDate\",\"dateObj\",\"date\",\"isMobile\",\"time_24hr\",\"onYearInput\",\"event\",\"year\",\"key\",\"test\",\"toString\",\"changeYear\",\"handler\",\"options\",\"forEach\",\"ev\",\"el\",\"addEventListener\",\"_handlers\",\"push\",\"remove\",\"removeEventListener\",\"triggerChange\",\"triggerEvent\",\"jumpToDate\",\"jumpDate\",\"jumpTo\",\"parseDate\",\"now\",\"oldYear\",\"currentYear\",\"oldMonth\",\"currentMonth\",\"getFullYear\",\"getMonth\",\"message\",\"errorHandler\",\"buildMonthSwitch\",\"redraw\",\"timeIncrement\",\"className\",\"indexOf\",\"classList\",\"contains\",\"inputElem\",\"target\",\"parentNode\",\"firstChild\",\"createEvent\",\"dispatchEvent\",\"createDay\",\"_dayNumber\",\"dateIsEnabled\",\"isEnabled\",\"dayElement\",\"createElement\",\"getDate\",\"$i\",\"setAttribute\",\"formatDate\",\"ariaDateFormat\",\"todayDateElem\",\"add\",\"tabIndex\",\"isDateSelected\",\"selectedDateElem\",\"mode\",\"toggleClass\",\"isDateInRange\",\"insertAdjacentHTML\",\"getWeek\",\"focusOnDayElem\",\"targetNode\",\"focus\",\"onMouseOver\",\"getFirstAvailableDay\",\"startMonth\",\"endMonth\",\"m\",\"month\",\"children\",\"startIndex\",\"endIndex\",\"c\",\"focusOnDay\",\"current\",\"offset\",\"dayFocused\",\"isInView\",\"body\",\"startElem\",\"givenMonth\",\"loopDelta\",\"numMonthDays\",\"changeMonth\",\"getNextAvailableDay\",\"buildMonthDays\",\"firstOfMonth\",\"getDay\",\"firstDayOfWeek\",\"prevMonthDays\",\"utils\",\"getDaysInMonth\",\"daysInMonth\",\"createDocumentFragment\",\"isMultiMonth\",\"prevMonthDayClass\",\"nextMonthDayClass\",\"dayNumber\",\"dayIndex\",\"appendChild\",\"dayNum\",\"dayContainer\",\"buildDays\",\"clearNode\",\"frag\",\"d\",\"setMonth\",\"monthSelectorType\",\"shouldBuildMonth\",\"monthsDropdownContainer\",\"innerHTML\",\"monthToStr\",\"shorthandCurrentMonth\",\"selected\",\"buildMonth\",\"monthElement\",\"container\",\"monthNavFragment\",\"monthAriaLabel\",\"selectedMonth\",\"yearInput\",\"createNumberInput\",\"tabindex\",\"yearElement\",\"getElementsByTagName\",\"yearAriaLabel\",\"disabled\",\"buildMonths\",\"monthNav\",\"prevMonthNav\",\"yearElements\",\"monthElements\",\"nextMonthNav\",\"buildWeekdays\",\"weekdayContainer\",\"updateWeekdays\",\"weekdays\",\"shorthand\",\"splice\",\"join\",\"isOffset\",\"_hidePrevMonthArrow\",\"_hideNextMonthArrow\",\"updateNavigationCurrentMonth\",\"isCalendarElem\",\"elem\",\"documentClick\",\"isOpen\",\"inline\",\"eventTarget_1\",\"isCalendarElement\",\"lostFocus\",\"altInput\",\"path\",\"relatedTarget\",\"isIgnored\",\"ignoredFocusElements\",\"some\",\"allowInput\",\"setDate\",\"altFormat\",\"dateFormat\",\"timeContainer\",\"close\",\"clear\",\"newYear\",\"newYearNum\",\"isNewYear\",\"timeless\",\"dateToCheck\",\"enable\",\"disable\",\"bool\",\"array\",\"parsed\",\"from\",\"to\",\"onBlur\",\"isInput\",\"valueChanged\",\"trimEnd\",\"getDateStr\",\"onKeyDown\",\"wrap\",\"allowKeydown\",\"allowInlineKeydown\",\"keyCode\",\"blur\",\"open\",\"isTimeObj\",\"focusAndClose\",\"selectDate\",\"delta_1\",\"ctrlKey\",\"stopPropagation\",\"currentYearElement\",\"enableTime\",\"elems\",\"concat\",\"pluginElements\",\"filter\",\"x\",\"shiftKey\",\"charAt\",\"toLowerCase\",\"cellClass\",\"hoverDate\",\"firstElementChild\",\"initialDate\",\"rangeStartDate\",\"rangeEndDate\",\"containsDisabled\",\"minRange\",\"maxRange\",\"duration\",\"DAY\",\"rContainer\",\"querySelectorAll\",\"dayElem\",\"timestamp\",\"outOfRange\",\"isBetween\",\"onResize\",\"static\",\"positionCalendar\",\"minMaxDateSetter\",\"inverseDateObj\",\"removeAttribute\",\"getInputElem\",\"querySelector\",\"setupLocale\",\"locale\",\"l10ns\",\"Error\",\"tokenRegex\",\"D\",\"l\",\"longhand\",\"M\",\"months\",\"F\",\"K\",\"JSON\",\"parse\",\"stringify\",\"dataset\",\"createDateFormatter\",\"createDateParser\",\"customPositionElement\",\"position\",\"positionElement\",\"_positionElement\",\"calendarHeight\",\"reduce\",\"acc\",\"child\",\"offsetHeight\",\"calendarWidth\",\"configPos\",\"split\",\"configPosVertical\",\"configPosHorizontal\",\"inputBounds\",\"getBoundingClientRect\",\"distanceFromBottom\",\"innerHeight\",\"bottom\",\"showOnTop\",\"top\",\"pageYOffset\",\"left\",\"pageXOffset\",\"isCenter\",\"isRight\",\"right\",\"rightMost\",\"centerMost\",\"doc\",\"editableSheet\",\"styleSheets\",\"sheet\",\"cssRules\",\"err\",\"head\",\"getDocumentStyleSheet\",\"bodyWidth\",\"centerLeft\",\"centerIndex\",\"centerStyle\",\"insertRule\",\"centerBefore\",\"navigator\",\"userAgent\",\"msMaxTouchPoints\",\"setTimeout\",\"findParent\",\"day\",\"selectedDate\",\"shouldChangeMonth\",\"selectedIndex\",\"sort\",\"b\",\"closeOnSelect\",\"single\",\"range\",\"loadedPlugins\",\"_bind\",\"_setHoursFromDate\",\"_positionCalendar\",\"triggerChangeEvent\",\"toInitial\",\"mobileInput\",\"_initialDate\",\"_createElement\",\"destroy\",\"removeChild\",\"wrapper\",\"lastChild\",\"insertBefore\",\"_type\",\"click\",\"wasOpen\",\"select\",\"set\",\"option\",\"CALLBACKS\",\"HOOKS\",\"arrayify\",\"format\",\"setSelectedDate\",\"toggle\",\"updatePositionElement\",\"clickOpens\",\"inputDate\",\"dates\",\"map\",\"conjunction\",\"rangeSeparator\",\"allowInvalidPreload\",\"parseDateRules\",\"arr\",\"rule\",\"data\",\"hooks\",\"name\",\"initEvent\",\"specificFormat\",\"dObj\",\"mobileFormatStr\",\"onMonthNavClick\",\"isPrevMonth\",\"isNextMonth\",\"boolOpts\",\"userConfig\",\"formats\",\"defineProperty\",\"get\",\"_enable\",\"_disable\",\"timeMode\",\"defaultDateFormat\",\"enableSeconds\",\"defaultAltFormat\",\"_minDate\",\"_maxDate\",\"minMaxTimeSetter\",\"val\",\"_minTime\",\"_maxTime\",\"hook\",\"disableMobile\",\"plugins\",\"pluginConf\",\"altInputClass\",\"parseConfig\",\"nodeName\",\"placeholder\",\"required\",\"nextSibling\",\"setupInputs\",\"preloadedDate\",\"setupDates\",\"yr\",\"fragment\",\"prevArrow\",\"nextArrow\",\"__hidePrevMonthArrow\",\"__hideNextMonthArrow\",\"innerContainer\",\"weekAbbreviation\",\"buildWeeks\",\"separator\",\"hourInput\",\"hourAriaLabel\",\"minuteInput\",\"minuteAriaLabel\",\"military2ampm\",\"hourIncrement\",\"minuteIncrement\",\"secondInput\",\"defaultHour\",\"title\",\"toggleTitle\",\"buildTime\",\"animate\",\"customAppend\",\"appendTo\",\"nodeType\",\"build\",\"evt\",\"inputType\",\"defaultValue\",\"String\",\"setupMobile\",\"debouncedResize\",\"debounce\",\"ontouchstart\",\"capture\",\"selText\",\"bindEvents\",\"isSafari\",\"init\",\"_flatpickr\",\"nodeList\",\"nodes\",\"HTMLElement\",\"instances\",\"node\",\"console\",\"error\",\"HTMLCollection\",\"NodeList\",\"selector\",\"Node\",\"en\",\"localize\",\"setDefaults\",\"jQuery\",\"fp_incr\"],\"sources\":[\"0\"],\"mappings\":\"AAAkC,SAASA,EAAE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ACX,oBAAX+f,aAA+C,IAAdA,OAAOvhB,KAC/CuhB,OAAOvhB,GAAGX,UAAY,SAAUF,GAC5B,OAAOqhB,EAAWvjB,KAAMkC,EAC5B,GAEJsC,KAAK9D,UAAU6jB,QAAU,SAAU1gB,GAC/B,OAAO,IAAIW,KAAKxE,KAAKuK,cAAevK,KAAKwK,WAAYxK,KAAK8L,WAA6B,iBAATjI,EAAoBmC,SAASnC,EAAM,IAAMA,GAC3H,EACsB,oBAAXR,SACPA,OAAOjB,UAAYA,GAEvBzC,EAAQ4C,QAAUH,CACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/types/options.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"flatpickr/dist/esm/types/options.js","resolution":"ESM","id":"651d495396","hash":"651d495396ea2fdaf2682ba542eb41b045cfed01c12ab9242b669ebaaa54e658","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.defaults = exports.HOOKS = void 0;\nexports.HOOKS = [\n    \"onChange\",\n    \"onClose\",\n    \"onDayCreate\",\n    \"onDestroy\",\n    \"onKeyDown\",\n    \"onMonthChange\",\n    \"onOpen\",\n    \"onParseConfig\",\n    \"onReady\",\n    \"onValueUpdate\",\n    \"onYearChange\",\n    \"onPreCalendarPosition\",\n];\nexports.defaults = {\n    _disable: [],\n    allowInput: false,\n    allowInvalidPreload: false,\n    altFormat: \"F j, Y\",\n    altInput: false,\n    altInputClass: \"form-control input\",\n    animate: typeof window === \"object\" &&\n        window.navigator.userAgent.indexOf(\"MSIE\") === -1,\n    ariaDateFormat: \"F j, Y\",\n    autoFillDefaultTime: true,\n    clickOpens: true,\n    closeOnSelect: true,\n    conjunction: \", \",\n    dateFormat: \"Y-m-d\",\n    defaultHour: 12,\n    defaultMinute: 0,\n    defaultSeconds: 0,\n    disable: [],\n    disableMobile: false,\n    enableSeconds: false,\n    enableTime: false,\n    errorHandler: function (err) {\n        return typeof console !== \"undefined\" && console.warn(err);\n    },\n    getWeek: function (givenDate) {\n        var date = new Date(givenDate.getTime());\n        date.setHours(0, 0, 0, 0);\n        date.setDate(date.getDate() + 3 - ((date.getDay() + 6) % 7));\n        var week1 = new Date(date.getFullYear(), 0, 4);\n        return (1 +\n            Math.round(((date.getTime() - week1.getTime()) / 86400000 -\n                3 +\n                ((week1.getDay() + 6) % 7)) /\n                7));\n    },\n    hourIncrement: 1,\n    ignoredFocusElements: [],\n    inline: false,\n    locale: \"default\",\n    minuteIncrement: 5,\n    mode: \"single\",\n    monthSelectorType: \"dropdown\",\n    nextArrow: \"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>\",\n    noCalendar: false,\n    now: new Date(),\n    onChange: [],\n    onClose: [],\n    onDayCreate: [],\n    onDestroy: [],\n    onKeyDown: [],\n    onMonthChange: [],\n    onOpen: [],\n    onParseConfig: [],\n    onReady: [],\n    onValueUpdate: [],\n    onYearChange: [],\n    onPreCalendarPosition: [],\n    plugins: [],\n    position: \"auto\",\n    positionElement: undefined,\n    prevArrow: \"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>\",\n    shorthandCurrentMonth: false,\n    showMonths: 1,\n    static: false,\n    time_24hr: false,\n    weekNumbers: false,\n    wrap: false,\n};\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* flatpickr/dist/esm/types/options.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.HOOKS = [\n        \"onChange\",\n        \"onClose\",\n        \"onDayCreate\",\n        \"onDestroy\",\n        \"onKeyDown\",\n        \"onMonthChange\",\n        \"onOpen\",\n        \"onParseConfig\",\n        \"onReady\",\n        \"onValueUpdate\",\n        \"onYearChange\",\n        \"onPreCalendarPosition\",\n    ];\n    exports.defaults = {\n        _disable: [],\n        allowInput: false,\n        allowInvalidPreload: false,\n        altFormat: \"F j, Y\",\n        altInput: false,\n        altInputClass: \"form-control input\",\n        animate: typeof window === \"object\" &&\n            window.navigator.userAgent.indexOf(\"MSIE\") === -1,\n        ariaDateFormat: \"F j, Y\",\n        autoFillDefaultTime: true,\n        clickOpens: true,\n        closeOnSelect: true,\n        conjunction: \", \",\n        dateFormat: \"Y-m-d\",\n        defaultHour: 12,\n        defaultMinute: 0,\n        defaultSeconds: 0,\n        disable: [],\n        disableMobile: false,\n        enableSeconds: false,\n        enableTime: false,\n        errorHandler: function (err) {\n            return typeof console !== \"undefined\" && console.warn(err);\n        },\n        getWeek: function (givenDate) {\n            var date = new Date(givenDate.getTime());\n            date.setHours(0, 0, 0, 0);\n            date.setDate(date.getDate() + 3 - ((date.getDay() + 6) % 7));\n            var week1 = new Date(date.getFullYear(), 0, 4);\n            return (1 +\n                Math.round(((date.getTime() - week1.getTime()) / 86400000 -\n                    3 +\n                    ((week1.getDay() + 6) % 7)) /\n                    7));\n        },\n        hourIncrement: 1,\n        ignoredFocusElements: [],\n        inline: false,\n        locale: \"default\",\n        minuteIncrement: 5,\n        mode: \"single\",\n        monthSelectorType: \"dropdown\",\n        nextArrow: \"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>\",\n        noCalendar: false,\n        now: new Date(),\n        onChange: [],\n        onClose: [],\n        onDayCreate: [],\n        onDestroy: [],\n        onKeyDown: [],\n        onMonthChange: [],\n        onOpen: [],\n        onParseConfig: [],\n        onReady: [],\n        onValueUpdate: [],\n        onYearChange: [],\n        onPreCalendarPosition: [],\n        plugins: [],\n        position: \"auto\",\n        positionElement: undefined,\n        prevArrow: \"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>\",\n        shorthandCurrentMonth: false,\n        showMonths: 1,\n        static: false,\n        time_24hr: false,\n        weekNumbers: false,\n        wrap: false,\n    };\n}\n","min_source":"function _(e,n,o,t,a){t(),o.HOOKS=[\"onChange\",\"onClose\",\"onDayCreate\",\"onDestroy\",\"onKeyDown\",\"onMonthChange\",\"onOpen\",\"onParseConfig\",\"onReady\",\"onValueUpdate\",\"onYearChange\",\"onPreCalendarPosition\"],o.defaults={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:\"F j, Y\",altInput:!1,altInputClass:\"form-control input\",animate:\"object\"==typeof window&&-1===window.navigator.userAgent.indexOf(\"MSIE\"),ariaDateFormat:\"F j, Y\",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:\", \",dateFormat:\"Y-m-d\",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return\"undefined\"!=typeof console&&console.warn(e)},getWeek:function(e){var n=new Date(e.getTime());n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);var o=new Date(n.getFullYear(),0,4);return 1+Math.round(((n.getTime()-o.getTime())/864e5-3+(o.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:\"default\",minuteIncrement:5,mode:\"single\",monthSelectorType:\"dropdown\",nextArrow:\"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>\",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:\"auto\",positionElement:void 0,prevArrow:\"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>\",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1}}\n//# sourceMappingURL=options.min.js.map","min_map":"{\"version\":3,\"file\":\"options.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"HOOKS\",\"defaults\",\"_disable\",\"allowInput\",\"allowInvalidPreload\",\"altFormat\",\"altInput\",\"altInputClass\",\"animate\",\"window\",\"navigator\",\"userAgent\",\"indexOf\",\"ariaDateFormat\",\"autoFillDefaultTime\",\"clickOpens\",\"closeOnSelect\",\"conjunction\",\"dateFormat\",\"defaultHour\",\"defaultMinute\",\"defaultSeconds\",\"disable\",\"disableMobile\",\"enableSeconds\",\"enableTime\",\"errorHandler\",\"err\",\"console\",\"warn\",\"getWeek\",\"givenDate\",\"date\",\"Date\",\"getTime\",\"setHours\",\"setDate\",\"getDate\",\"getDay\",\"week1\",\"getFullYear\",\"Math\",\"round\",\"hourIncrement\",\"ignoredFocusElements\",\"inline\",\"locale\",\"minuteIncrement\",\"mode\",\"monthSelectorType\",\"nextArrow\",\"noCalendar\",\"now\",\"onChange\",\"onClose\",\"onDayCreate\",\"onDestroy\",\"onKeyDown\",\"onMonthChange\",\"onOpen\",\"onParseConfig\",\"onReady\",\"onValueUpdate\",\"onYearChange\",\"onPreCalendarPosition\",\"plugins\",\"position\",\"positionElement\",\"undefined\",\"prevArrow\",\"shorthandCurrentMonth\",\"showMonths\",\"static\",\"time_24hr\",\"weekNumbers\",\"wrap\"],\"sources\":[\"0\"],\"mappings\":\"AAA0C,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACvFD,IACAD,EAAQG,MAAQ,CACZ,WACA,UACA,cACA,YACA,YACA,gBACA,SACA,gBACA,UACA,gBACA,eACA,yBAEJH,EAAQI,SAAW,CACfC,SAAU,GACVC,YAAY,EACZC,qBAAqB,EACrBC,UAAW,SACXC,UAAU,EACVC,cAAe,qBACfC,QAA2B,iBAAXC,SACoC,IAAhDA,OAAOC,UAAUC,UAAUC,QAAQ,QACvCC,eAAgB,SAChBC,qBAAqB,EACrBC,YAAY,EACZC,eAAe,EACfC,YAAa,KACbC,WAAY,QACZC,YAAa,GACbC,cAAe,EACfC,eAAgB,EAChBC,QAAS,GACTC,eAAe,EACfC,eAAe,EACfC,YAAY,EACZC,aAAc,SAAUC,GACpB,MAA0B,oBAAZC,SAA2BA,QAAQC,KAAKF,EAC1D,EACAG,QAAS,SAAUC,GACf,IAAIC,EAAO,IAAIC,KAAKF,EAAUG,WAC9BF,EAAKG,SAAS,EAAG,EAAG,EAAG,GACvBH,EAAKI,QAAQJ,EAAKK,UAAY,GAAML,EAAKM,SAAW,GAAK,GACzD,IAAIC,EAAQ,IAAIN,KAAKD,EAAKQ,cAAe,EAAG,GAC5C,OAAQ,EACJC,KAAKC,QAAQV,EAAKE,UAAYK,EAAML,WAAa,MAC7C,GACEK,EAAMD,SAAW,GAAK,GACxB,EACZ,EACAK,cAAe,EACfC,qBAAsB,GACtBC,QAAQ,EACRC,OAAQ,UACRC,gBAAiB,EACjBC,KAAM,SACNC,kBAAmB,WACnBC,UAAW,yOACXC,YAAY,EACZC,IAAK,IAAInB,KACToB,SAAU,GACVC,QAAS,GACTC,YAAa,GACbC,UAAW,GACXC,UAAW,GACXC,cAAe,GACfC,OAAQ,GACRC,cAAe,GACfC,QAAS,GACTC,cAAe,GACfC,aAAc,GACdC,sBAAuB,GACvBC,QAAS,GACTC,SAAU,OACVC,qBAAiBC,EACjBC,UAAW,uOACXC,uBAAuB,EACvBC,WAAY,EACZC,QAAQ,EACRC,WAAW,EACXC,aAAa,EACbC,MAAM,EAEd\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/l10n/default.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"flatpickr/dist/esm/l10n/default.js","resolution":"ESM","id":"3bfa124fda","hash":"3bfa124fdace8d8dc75194928b79a1fdf0cb7403e0cb7efa49246c2edc2149b4","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.english = void 0;\nexports.english = {\n    weekdays: {\n        shorthand: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n        longhand: [\n            \"Sunday\",\n            \"Monday\",\n            \"Tuesday\",\n            \"Wednesday\",\n            \"Thursday\",\n            \"Friday\",\n            \"Saturday\",\n        ],\n    },\n    months: {\n        shorthand: [\n            \"Jan\",\n            \"Feb\",\n            \"Mar\",\n            \"Apr\",\n            \"May\",\n            \"Jun\",\n            \"Jul\",\n            \"Aug\",\n            \"Sep\",\n            \"Oct\",\n            \"Nov\",\n            \"Dec\",\n        ],\n        longhand: [\n            \"January\",\n            \"February\",\n            \"March\",\n            \"April\",\n            \"May\",\n            \"June\",\n            \"July\",\n            \"August\",\n            \"September\",\n            \"October\",\n            \"November\",\n            \"December\",\n        ],\n    },\n    daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n    firstDayOfWeek: 0,\n    ordinal: function (nth) {\n        var s = nth % 100;\n        if (s > 3 && s < 21)\n            return \"th\";\n        switch (s % 10) {\n            case 1:\n                return \"st\";\n            case 2:\n                return \"nd\";\n            case 3:\n                return \"rd\";\n            default:\n                return \"th\";\n        }\n    },\n    rangeSeparator: \" to \",\n    weekAbbreviation: \"Wk\",\n    scrollTitle: \"Scroll to increment\",\n    toggleTitle: \"Click to toggle\",\n    amPM: [\"AM\", \"PM\"],\n    yearAriaLabel: \"Year\",\n    monthAriaLabel: \"Month\",\n    hourAriaLabel: \"Hour\",\n    minuteAriaLabel: \"Minute\",\n    time_24hr: false,\n};\nexports.default = exports.english;\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"default"}],"externals":[],"shims":[]},"code":{"source":"/* flatpickr/dist/esm/l10n/default.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.english = {\n        weekdays: {\n            shorthand: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n            longhand: [\n                \"Sunday\",\n                \"Monday\",\n                \"Tuesday\",\n                \"Wednesday\",\n                \"Thursday\",\n                \"Friday\",\n                \"Saturday\",\n            ],\n        },\n        months: {\n            shorthand: [\n                \"Jan\",\n                \"Feb\",\n                \"Mar\",\n                \"Apr\",\n                \"May\",\n                \"Jun\",\n                \"Jul\",\n                \"Aug\",\n                \"Sep\",\n                \"Oct\",\n                \"Nov\",\n                \"Dec\",\n            ],\n            longhand: [\n                \"January\",\n                \"February\",\n                \"March\",\n                \"April\",\n                \"May\",\n                \"June\",\n                \"July\",\n                \"August\",\n                \"September\",\n                \"October\",\n                \"November\",\n                \"December\",\n            ],\n        },\n        daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n        firstDayOfWeek: 0,\n        ordinal: function (nth) {\n            var s = nth % 100;\n            if (s > 3 && s < 21)\n                return \"th\";\n            switch (s % 10) {\n                case 1:\n                    return \"st\";\n                case 2:\n                    return \"nd\";\n                case 3:\n                    return \"rd\";\n                default:\n                    return \"th\";\n            }\n        },\n        rangeSeparator: \" to \",\n        weekAbbreviation: \"Wk\",\n        scrollTitle: \"Scroll to increment\",\n        toggleTitle: \"Click to toggle\",\n        amPM: [\"AM\", \"PM\"],\n        yearAriaLabel: \"Year\",\n        monthAriaLabel: \"Month\",\n        hourAriaLabel: \"Hour\",\n        minuteAriaLabel: \"Minute\",\n        time_24hr: false,\n    };\n    exports.default = exports.english;\n}\n","min_source":"function _(e,r,a,n,t){n(),a.english={weekdays:{shorthand:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],longhand:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},months:{shorthand:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],longhand:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var r=e%100;if(r>3&&r<21)return\"th\";switch(r%10){case 1:return\"st\";case 2:return\"nd\";case 3:return\"rd\";default:return\"th\"}},rangeSeparator:\" to \",weekAbbreviation:\"Wk\",scrollTitle:\"Scroll to increment\",toggleTitle:\"Click to toggle\",amPM:[\"AM\",\"PM\"],yearAriaLabel:\"Year\",monthAriaLabel:\"Month\",hourAriaLabel:\"Hour\",minuteAriaLabel:\"Minute\",time_24hr:!1},a.default=a.english}\n//# sourceMappingURL=default.min.js.map","min_map":"{\"version\":3,\"file\":\"default.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"english\",\"weekdays\",\"shorthand\",\"longhand\",\"months\",\"daysInMonth\",\"firstDayOfWeek\",\"ordinal\",\"nth\",\"s\",\"rangeSeparator\",\"weekAbbreviation\",\"scrollTitle\",\"toggleTitle\",\"amPM\",\"yearAriaLabel\",\"monthAriaLabel\",\"hourAriaLabel\",\"minuteAriaLabel\",\"time_24hr\",\"default\"],\"sources\":[\"0\"],\"mappings\":\"AAAyC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACtFD,IACAD,EAAQG,QAAU,CACdC,SAAU,CACNC,UAAW,CAAC,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,OACtDC,SAAU,CACN,SACA,SACA,UACA,YACA,WACA,SACA,aAGRC,OAAQ,CACJF,UAAW,CACP,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,OAEJC,SAAU,CACN,UACA,WACA,QACA,QACA,MACA,OACA,OACA,SACA,YACA,UACA,WACA,aAGRE,YAAa,CAAC,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,IAC1DC,eAAgB,EAChBC,QAAS,SAAUC,GACf,IAAIC,EAAID,EAAM,IACd,GAAIC,EAAI,GAAKA,EAAI,GACb,MAAO,KACX,OAAQA,EAAI,IACR,KAAK,EACD,MAAO,KACX,KAAK,EACD,MAAO,KACX,KAAK,EACD,MAAO,KACX,QACI,MAAO,KAEnB,EACAC,eAAgB,OAChBC,iBAAkB,KAClBC,YAAa,sBACbC,YAAa,kBACbC,KAAM,CAAC,KAAM,MACbC,cAAe,OACfC,eAAgB,QAChBC,cAAe,OACfC,gBAAiB,SACjBC,WAAW,GAEftB,EAAQuB,QAAUvB,EAAQG,OAC9B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/utils/index.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"flatpickr/dist/esm/utils/index.js","resolution":"ESM","id":"15458073ce","hash":"15458073ce4c699cb69ddb83cc96ece3ce49192f57cbac163dcc00bac9058588","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.arrayify = exports.int = exports.pad = void 0;\nexports.debounce = debounce;\nvar pad = function (number, length) {\n    if (length === void 0) {\n        length = 2;\n    }\n    return (\"000\" + number).slice(length * -1);\n};\nexports.pad = pad;\nvar int = function (bool) { return (bool === true ? 1 : 0); };\nexports.int = int;\nfunction debounce(fn, wait) {\n    var t;\n    return function () {\n        var _this = this;\n        var args = arguments;\n        clearTimeout(t);\n        t = setTimeout(function () { return fn.apply(_this, args); }, wait);\n    };\n}\nvar arrayify = function (obj) {\n    return obj instanceof Array ? obj : [obj];\n};\nexports.arrayify = arrayify;\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"debounce"}],"externals":[],"shims":[]},"code":{"source":"/* flatpickr/dist/esm/utils/index.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.debounce = debounce;\n    var pad = function (number, length) {\n        if (length === void 0) {\n            length = 2;\n        }\n        return (\"000\" + number).slice(length * -1);\n    };\n    exports.pad = pad;\n    var int = function (bool) { return (bool === true ? 1 : 0); };\n    exports.int = int;\n    function debounce(fn, wait) {\n        var t;\n        return function () {\n            var _this = this;\n            var args = arguments;\n            clearTimeout(t);\n            t = setTimeout(function () { return fn.apply(_this, args); }, wait);\n        };\n    }\n    var arrayify = function (obj) {\n        return obj instanceof Array ? obj : [obj];\n    };\n    exports.arrayify = arrayify;\n}\n","min_source":"function _(n,t,r,i,u){i(),r.debounce=function(n,t){var r;return function(){var i=this,u=arguments;clearTimeout(r),r=setTimeout((function(){return n.apply(i,u)}),t)}};r.pad=function(n,t){return void 0===t&&(t=2),(\"000\"+n).slice(-1*t)};r.int=function(n){return!0===n?1:0};r.arrayify=function(n){return n instanceof Array?n:[n]}}\n//# sourceMappingURL=index.min.js.map","min_map":"{\"version\":3,\"file\":\"index.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"debounce\",\"fn\",\"wait\",\"t\",\"_this\",\"this\",\"args\",\"arguments\",\"clearTimeout\",\"setTimeout\",\"apply\",\"pad\",\"number\",\"length\",\"slice\",\"int\",\"bool\",\"arrayify\",\"obj\",\"Array\"],\"sources\":[\"0\"],\"mappings\":\"AAAwC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACrFD,IACAD,EAAQG,SAUR,SAAkBC,EAAIC,GAClB,IAAIC,EACJ,OAAO,WACH,IAAIC,EAAQC,KACRC,EAAOC,UACXC,aAAaL,GACbA,EAAIM,YAAW,WAAc,OAAOR,EAAGS,MAAMN,EAAOE,EAAO,GAAGJ,EAClE,CACJ,EAXAL,EAAQc,IANE,SAAUC,EAAQC,GAIxB,YAHe,IAAXA,IACAA,EAAS,IAEL,MAAQD,GAAQE,OAAgB,EAAVD,EAClC,EAGAhB,EAAQkB,IADE,SAAUC,GAAQ,OAAiB,IAATA,EAAgB,EAAI,CAAI,EAc5DnB,EAAQoB,SAHO,SAAUC,GACrB,OAAOA,aAAeC,MAAQD,EAAM,CAACA,EACzC,CAEJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/utils/dom.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"flatpickr/dist/esm/utils/dom.js","resolution":"ESM","id":"6b6749c6cf","hash":"6b6749c6cf9ca54de6c175c5eac0811b6b4f68dad029aa9bd9659d8241568ce4","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toggleClass = toggleClass;\nexports.createElement = createElement;\nexports.clearNode = clearNode;\nexports.findParent = findParent;\nexports.createNumberInput = createNumberInput;\nexports.getEventTarget = getEventTarget;\nfunction toggleClass(elem, className, bool) {\n    if (bool === true)\n        return elem.classList.add(className);\n    elem.classList.remove(className);\n}\nfunction createElement(tag, className, content) {\n    var e = window.document.createElement(tag);\n    className = className || \"\";\n    content = content || \"\";\n    e.className = className;\n    if (content !== undefined)\n        e.textContent = content;\n    return e;\n}\nfunction clearNode(node) {\n    while (node.firstChild)\n        node.removeChild(node.firstChild);\n}\nfunction findParent(node, condition) {\n    if (condition(node))\n        return node;\n    else if (node.parentNode)\n        return findParent(node.parentNode, condition);\n    return undefined;\n}\nfunction createNumberInput(inputClassName, opts) {\n    var wrapper = createElement(\"div\", \"numInputWrapper\"), numInput = createElement(\"input\", \"numInput \" + inputClassName), arrowUp = createElement(\"span\", \"arrowUp\"), arrowDown = createElement(\"span\", \"arrowDown\");\n    if (navigator.userAgent.indexOf(\"MSIE 9.0\") === -1) {\n        numInput.type = \"number\";\n    }\n    else {\n        numInput.type = \"text\";\n        numInput.pattern = \"\\\\d*\";\n    }\n    if (opts !== undefined)\n        for (var key in opts)\n            numInput.setAttribute(key, opts[key]);\n    wrapper.appendChild(numInput);\n    wrapper.appendChild(arrowUp);\n    wrapper.appendChild(arrowDown);\n    return wrapper;\n}\nfunction getEventTarget(event) {\n    try {\n        if (typeof event.composedPath === \"function\") {\n            var path = event.composedPath();\n            return path[0];\n        }\n        return event.target;\n    }\n    catch (error) {\n        return event.target;\n    }\n}\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"toggleClass"},{"type":"named","name":"createElement"},{"type":"named","name":"clearNode"},{"type":"named","name":"findParent"},{"type":"named","name":"createNumberInput"},{"type":"named","name":"getEventTarget"}],"externals":[],"shims":[]},"code":{"source":"/* flatpickr/dist/esm/utils/dom.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.toggleClass = toggleClass;\n    exports.createElement = createElement;\n    exports.clearNode = clearNode;\n    exports.findParent = findParent;\n    exports.createNumberInput = createNumberInput;\n    exports.getEventTarget = getEventTarget;\n    function toggleClass(elem, className, bool) {\n        if (bool === true)\n            return elem.classList.add(className);\n        elem.classList.remove(className);\n    }\n    function createElement(tag, className, content) {\n        var e = window.document.createElement(tag);\n        className = className || \"\";\n        content = content || \"\";\n        e.className = className;\n        if (content !== undefined)\n            e.textContent = content;\n        return e;\n    }\n    function clearNode(node) {\n        while (node.firstChild)\n            node.removeChild(node.firstChild);\n    }\n    function findParent(node, condition) {\n        if (condition(node))\n            return node;\n        else if (node.parentNode)\n            return findParent(node.parentNode, condition);\n        return undefined;\n    }\n    function createNumberInput(inputClassName, opts) {\n        var wrapper = createElement(\"div\", \"numInputWrapper\"), numInput = createElement(\"input\", \"numInput \" + inputClassName), arrowUp = createElement(\"span\", \"arrowUp\"), arrowDown = createElement(\"span\", \"arrowDown\");\n        if (navigator.userAgent.indexOf(\"MSIE 9.0\") === -1) {\n            numInput.type = \"number\";\n        }\n        else {\n            numInput.type = \"text\";\n            numInput.pattern = \"\\\\d*\";\n        }\n        if (opts !== undefined)\n            for (var key in opts)\n                numInput.setAttribute(key, opts[key]);\n        wrapper.appendChild(numInput);\n        wrapper.appendChild(arrowUp);\n        wrapper.appendChild(arrowDown);\n        return wrapper;\n    }\n    function getEventTarget(event) {\n        try {\n            if (typeof event.composedPath === \"function\") {\n                var path = event.composedPath();\n                return path[0];\n            }\n            return event.target;\n        }\n        catch (error) {\n            return event.target;\n        }\n    }\n}\n","min_source":"function _(t,e,n,r,a){function i(t,e,n){var r=window.document.createElement(t);return e=e||\"\",n=n||\"\",r.className=e,void 0!==n&&(r.textContent=n),r}r(),n.toggleClass=function(t,e,n){if(!0===n)return t.classList.add(e);t.classList.remove(e)},n.createElement=i,n.clearNode=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},n.findParent=function t(e,n){if(n(e))return e;if(e.parentNode)return t(e.parentNode,n);return},n.createNumberInput=function(t,e){var n=i(\"div\",\"numInputWrapper\"),r=i(\"input\",\"numInput \"+t),a=i(\"span\",\"arrowUp\"),o=i(\"span\",\"arrowDown\");-1===navigator.userAgent.indexOf(\"MSIE 9.0\")?r.type=\"number\":(r.type=\"text\",r.pattern=\"\\\\d*\");if(void 0!==e)for(var u in e)r.setAttribute(u,e[u]);return n.appendChild(r),n.appendChild(a),n.appendChild(o),n},n.getEventTarget=function(t){try{return\"function\"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}}\n//# sourceMappingURL=dom.min.js.map","min_map":"{\"version\":3,\"file\":\"dom.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"createElement\",\"tag\",\"className\",\"content\",\"e\",\"window\",\"document\",\"undefined\",\"textContent\",\"toggleClass\",\"elem\",\"bool\",\"classList\",\"add\",\"remove\",\"clearNode\",\"node\",\"firstChild\",\"removeChild\",\"findParent\",\"condition\",\"parentNode\",\"createNumberInput\",\"inputClassName\",\"opts\",\"wrapper\",\"numInput\",\"arrowUp\",\"arrowDown\",\"navigator\",\"userAgent\",\"indexOf\",\"type\",\"pattern\",\"key\",\"setAttribute\",\"appendChild\",\"getEventTarget\",\"event\",\"composedPath\",\"target\",\"error\"],\"sources\":[\"0\"],\"mappings\":\"AAAsC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAanF,SAASC,EAAcC,EAAKC,EAAWC,GACnC,IAAIC,EAAIC,OAAOC,SAASN,cAAcC,GAMtC,OALAC,EAAYA,GAAa,GACzBC,EAAUA,GAAW,GACrBC,EAAEF,UAAYA,OACEK,IAAZJ,IACAC,EAAEI,YAAcL,GACbC,CACX,CApBAN,IACAD,EAAQY,YAMR,SAAqBC,EAAMR,EAAWS,GAClC,IAAa,IAATA,EACA,OAAOD,EAAKE,UAAUC,IAAIX,GAC9BQ,EAAKE,UAAUE,OAAOZ,EAC1B,EATAL,EAAQG,cAAgBA,EACxBH,EAAQkB,UAkBR,SAAmBC,GACf,KAAOA,EAAKC,YACRD,EAAKE,YAAYF,EAAKC,WAC9B,EApBApB,EAAQsB,WAqBR,SAASA,EAAWH,EAAMI,GACtB,GAAIA,EAAUJ,GACV,OAAOA,EACN,GAAIA,EAAKK,WACV,OAAOF,EAAWH,EAAKK,WAAYD,GACvC,MACJ,EA1BAvB,EAAQyB,kBA2BR,SAA2BC,EAAgBC,GACvC,IAAIC,EAAUzB,EAAc,MAAO,mBAAoB0B,EAAW1B,EAAc,QAAS,YAAcuB,GAAiBI,EAAU3B,EAAc,OAAQ,WAAY4B,EAAY5B,EAAc,OAAQ,cACrJ,IAA7C6B,UAAUC,UAAUC,QAAQ,YAC5BL,EAASM,KAAO,UAGhBN,EAASM,KAAO,OAChBN,EAASO,QAAU,QAEvB,QAAa1B,IAATiB,EACA,IAAK,IAAIU,KAAOV,EACZE,EAASS,aAAaD,EAAKV,EAAKU,IAIxC,OAHAT,EAAQW,YAAYV,GACpBD,EAAQW,YAAYT,GACpBF,EAAQW,YAAYR,GACbH,CACX,EA1CA5B,EAAQwC,eA2CR,SAAwBC,GACpB,IACI,MAAkC,mBAAvBA,EAAMC,aACFD,EAAMC,eACL,GAETD,EAAME,MACjB,CACA,MAAOC,GACH,OAAOH,EAAME,MACjB,CACJ,CACJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/utils/dates.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"flatpickr/dist/esm/utils/dates.js","resolution":"ESM","id":"1bb8c967d1","hash":"1bb8c967d10a6d1b23909403071fa06e41d1d64c38e9fff53a35df75408f4942","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.duration = exports.parseSeconds = exports.calculateSecondsSinceMidnight = exports.isBetween = exports.createDateParser = exports.createDateFormatter = void 0;\nexports.compareDates = compareDates;\nexports.compareTimes = compareTimes;\nexports.getDefaultHours = getDefaultHours;\nconst formatting_1 = require(\"./formatting\");\nconst options_1 = require(\"../types/options\");\nconst default_1 = require(\"../l10n/default\");\nvar createDateFormatter = function (_a) {\n    var _b = _a.config, config = _b === void 0 ? options_1.defaults : _b, _c = _a.l10n, l10n = _c === void 0 ? default_1.english : _c, _d = _a.isMobile, isMobile = _d === void 0 ? false : _d;\n    return function (dateObj, frmt, overrideLocale) {\n        var locale = overrideLocale || l10n;\n        if (config.formatDate !== undefined && !isMobile) {\n            return config.formatDate(dateObj, frmt, locale);\n        }\n        return frmt\n            .split(\"\")\n            .map(function (c, i, arr) {\n            return formatting_1.formats[c] && arr[i - 1] !== \"\\\\\"\n                ? formatting_1.formats[c](dateObj, locale, config)\n                : c !== \"\\\\\"\n                    ? c\n                    : \"\";\n        })\n            .join(\"\");\n    };\n};\nexports.createDateFormatter = createDateFormatter;\nvar createDateParser = function (_a) {\n    var _b = _a.config, config = _b === void 0 ? options_1.defaults : _b, _c = _a.l10n, l10n = _c === void 0 ? default_1.english : _c;\n    return function (date, givenFormat, timeless, customLocale) {\n        if (date !== 0 && !date)\n            return undefined;\n        var locale = customLocale || l10n;\n        var parsedDate;\n        var dateOrig = date;\n        if (date instanceof Date)\n            parsedDate = new Date(date.getTime());\n        else if (typeof date !== \"string\" &&\n            date.toFixed !== undefined)\n            parsedDate = new Date(date);\n        else if (typeof date === \"string\") {\n            var format = givenFormat || (config || options_1.defaults).dateFormat;\n            var datestr = String(date).trim();\n            if (datestr === \"today\") {\n                parsedDate = new Date();\n                timeless = true;\n            }\n            else if (config && config.parseDate) {\n                parsedDate = config.parseDate(date, format);\n            }\n            else if (/Z$/.test(datestr) ||\n                /GMT$/.test(datestr)) {\n                parsedDate = new Date(date);\n            }\n            else {\n                var matched = void 0, ops = [];\n                for (var i = 0, matchIndex = 0, regexStr = \"\"; i < format.length; i++) {\n                    var token = format[i];\n                    var isBackSlash = token === \"\\\\\";\n                    var escaped = format[i - 1] === \"\\\\\" || isBackSlash;\n                    if (formatting_1.tokenRegex[token] && !escaped) {\n                        regexStr += formatting_1.tokenRegex[token];\n                        var match = new RegExp(regexStr).exec(date);\n                        if (match && (matched = true)) {\n                            ops[token !== \"Y\" ? \"push\" : \"unshift\"]({\n                                fn: formatting_1.revFormat[token],\n                                val: match[++matchIndex],\n                            });\n                        }\n                    }\n                    else if (!isBackSlash)\n                        regexStr += \".\";\n                }\n                parsedDate =\n                    !config || !config.noCalendar\n                        ? new Date(new Date().getFullYear(), 0, 1, 0, 0, 0, 0)\n                        : new Date(new Date().setHours(0, 0, 0, 0));\n                ops.forEach(function (_a) {\n                    var fn = _a.fn, val = _a.val;\n                    return (parsedDate = fn(parsedDate, val, locale) || parsedDate);\n                });\n                parsedDate = matched ? parsedDate : undefined;\n            }\n        }\n        if (!(parsedDate instanceof Date && !isNaN(parsedDate.getTime()))) {\n            config.errorHandler(new Error(\"Invalid date provided: \" + dateOrig));\n            return undefined;\n        }\n        if (timeless === true)\n            parsedDate.setHours(0, 0, 0, 0);\n        return parsedDate;\n    };\n};\nexports.createDateParser = createDateParser;\nfunction compareDates(date1, date2, timeless) {\n    if (timeless === void 0) {\n        timeless = true;\n    }\n    if (timeless !== false) {\n        return (new Date(date1.getTime()).setHours(0, 0, 0, 0) -\n            new Date(date2.getTime()).setHours(0, 0, 0, 0));\n    }\n    return date1.getTime() - date2.getTime();\n}\nfunction compareTimes(date1, date2) {\n    return (3600 * (date1.getHours() - date2.getHours()) +\n        60 * (date1.getMinutes() - date2.getMinutes()) +\n        date1.getSeconds() -\n        date2.getSeconds());\n}\nvar isBetween = function (ts, ts1, ts2) {\n    return ts > Math.min(ts1, ts2) && ts < Math.max(ts1, ts2);\n};\nexports.isBetween = isBetween;\nvar calculateSecondsSinceMidnight = function (hours, minutes, seconds) {\n    return hours * 3600 + minutes * 60 + seconds;\n};\nexports.calculateSecondsSinceMidnight = calculateSecondsSinceMidnight;\nvar parseSeconds = function (secondsSinceMidnight) {\n    var hours = Math.floor(secondsSinceMidnight / 3600), minutes = (secondsSinceMidnight - hours * 3600) / 60;\n    return [hours, minutes, secondsSinceMidnight - hours * 3600 - minutes * 60];\n};\nexports.parseSeconds = parseSeconds;\nexports.duration = {\n    DAY: 86400000,\n};\nfunction getDefaultHours(config) {\n    var hours = config.defaultHour;\n    var minutes = config.defaultMinute;\n    var seconds = config.defaultSeconds;\n    if (config.minDate !== undefined) {\n        var minHour = config.minDate.getHours();\n        var minMinutes = config.minDate.getMinutes();\n        var minSeconds = config.minDate.getSeconds();\n        if (hours < minHour) {\n            hours = minHour;\n        }\n        if (hours === minHour && minutes < minMinutes) {\n            minutes = minMinutes;\n        }\n        if (hours === minHour && minutes === minMinutes && seconds < minSeconds)\n            seconds = config.minDate.getSeconds();\n    }\n    if (config.maxDate !== undefined) {\n        var maxHr = config.maxDate.getHours();\n        var maxMinutes = config.maxDate.getMinutes();\n        hours = Math.min(hours, maxHr);\n        if (hours === maxHr)\n            minutes = Math.min(maxMinutes, minutes);\n        if (hours === maxHr && minutes === maxMinutes)\n            seconds = config.maxDate.getSeconds();\n    }\n    return { hours: hours, minutes: minutes, seconds: seconds };\n}\n","type":"js","dependency_paths":[["./formatting","/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/utils/formatting.js"],["../types/options","/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/types/options.js"],["../l10n/default","/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/l10n/default.js"]],"dependency_map":[],"exported":[{"type":"named","name":"compareDates"},{"type":"named","name":"compareTimes"},{"type":"named","name":"getDefaultHours"}],"externals":[],"shims":[]},"code":{"source":"/* flatpickr/dist/esm/utils/dates.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.compareDates = compareDates;\n    exports.compareTimes = compareTimes;\n    exports.getDefaultHours = getDefaultHours;\n    const formatting_1 = require(\"3d14787c35\") /* ./formatting */;\n    const options_1 = require(\"651d495396\") /* ../types/options */;\n    const default_1 = require(\"3bfa124fda\") /* ../l10n/default */;\n    var createDateFormatter = function (_a) {\n        var _b = _a.config, config = _b === void 0 ? options_1.defaults : _b, _c = _a.l10n, l10n = _c === void 0 ? default_1.english : _c, _d = _a.isMobile, isMobile = _d === void 0 ? false : _d;\n        return function (dateObj, frmt, overrideLocale) {\n            var locale = overrideLocale || l10n;\n            if (config.formatDate !== undefined && !isMobile) {\n                return config.formatDate(dateObj, frmt, locale);\n            }\n            return frmt\n                .split(\"\")\n                .map(function (c, i, arr) {\n                return formatting_1.formats[c] && arr[i - 1] !== \"\\\\\"\n                    ? formatting_1.formats[c](dateObj, locale, config)\n                    : c !== \"\\\\\"\n                        ? c\n                        : \"\";\n            })\n                .join(\"\");\n        };\n    };\n    exports.createDateFormatter = createDateFormatter;\n    var createDateParser = function (_a) {\n        var _b = _a.config, config = _b === void 0 ? options_1.defaults : _b, _c = _a.l10n, l10n = _c === void 0 ? default_1.english : _c;\n        return function (date, givenFormat, timeless, customLocale) {\n            if (date !== 0 && !date)\n                return undefined;\n            var locale = customLocale || l10n;\n            var parsedDate;\n            var dateOrig = date;\n            if (date instanceof Date)\n                parsedDate = new Date(date.getTime());\n            else if (typeof date !== \"string\" &&\n                date.toFixed !== undefined)\n                parsedDate = new Date(date);\n            else if (typeof date === \"string\") {\n                var format = givenFormat || (config || options_1.defaults).dateFormat;\n                var datestr = String(date).trim();\n                if (datestr === \"today\") {\n                    parsedDate = new Date();\n                    timeless = true;\n                }\n                else if (config && config.parseDate) {\n                    parsedDate = config.parseDate(date, format);\n                }\n                else if (/Z$/.test(datestr) ||\n                    /GMT$/.test(datestr)) {\n                    parsedDate = new Date(date);\n                }\n                else {\n                    var matched = void 0, ops = [];\n                    for (var i = 0, matchIndex = 0, regexStr = \"\"; i < format.length; i++) {\n                        var token = format[i];\n                        var isBackSlash = token === \"\\\\\";\n                        var escaped = format[i - 1] === \"\\\\\" || isBackSlash;\n                        if (formatting_1.tokenRegex[token] && !escaped) {\n                            regexStr += formatting_1.tokenRegex[token];\n                            var match = new RegExp(regexStr).exec(date);\n                            if (match && (matched = true)) {\n                                ops[token !== \"Y\" ? \"push\" : \"unshift\"]({\n                                    fn: formatting_1.revFormat[token],\n                                    val: match[++matchIndex],\n                                });\n                            }\n                        }\n                        else if (!isBackSlash)\n                            regexStr += \".\";\n                    }\n                    parsedDate =\n                        !config || !config.noCalendar\n                            ? new Date(new Date().getFullYear(), 0, 1, 0, 0, 0, 0)\n                            : new Date(new Date().setHours(0, 0, 0, 0));\n                    ops.forEach(function (_a) {\n                        var fn = _a.fn, val = _a.val;\n                        return (parsedDate = fn(parsedDate, val, locale) || parsedDate);\n                    });\n                    parsedDate = matched ? parsedDate : undefined;\n                }\n            }\n            if (!(parsedDate instanceof Date && !isNaN(parsedDate.getTime()))) {\n                config.errorHandler(new Error(\"Invalid date provided: \" + dateOrig));\n                return undefined;\n            }\n            if (timeless === true)\n                parsedDate.setHours(0, 0, 0, 0);\n            return parsedDate;\n        };\n    };\n    exports.createDateParser = createDateParser;\n    function compareDates(date1, date2, timeless) {\n        if (timeless === void 0) {\n            timeless = true;\n        }\n        if (timeless !== false) {\n            return (new Date(date1.getTime()).setHours(0, 0, 0, 0) -\n                new Date(date2.getTime()).setHours(0, 0, 0, 0));\n        }\n        return date1.getTime() - date2.getTime();\n    }\n    function compareTimes(date1, date2) {\n        return (3600 * (date1.getHours() - date2.getHours()) +\n            60 * (date1.getMinutes() - date2.getMinutes()) +\n            date1.getSeconds() -\n            date2.getSeconds());\n    }\n    var isBetween = function (ts, ts1, ts2) {\n        return ts > Math.min(ts1, ts2) && ts < Math.max(ts1, ts2);\n    };\n    exports.isBetween = isBetween;\n    var calculateSecondsSinceMidnight = function (hours, minutes, seconds) {\n        return hours * 3600 + minutes * 60 + seconds;\n    };\n    exports.calculateSecondsSinceMidnight = calculateSecondsSinceMidnight;\n    var parseSeconds = function (secondsSinceMidnight) {\n        var hours = Math.floor(secondsSinceMidnight / 3600), minutes = (secondsSinceMidnight - hours * 3600) / 60;\n        return [hours, minutes, secondsSinceMidnight - hours * 3600 - minutes * 60];\n    };\n    exports.parseSeconds = parseSeconds;\n    exports.duration = {\n        DAY: 86400000,\n    };\n    function getDefaultHours(config) {\n        var hours = config.defaultHour;\n        var minutes = config.defaultMinute;\n        var seconds = config.defaultSeconds;\n        if (config.minDate !== undefined) {\n            var minHour = config.minDate.getHours();\n            var minMinutes = config.minDate.getMinutes();\n            var minSeconds = config.minDate.getSeconds();\n            if (hours < minHour) {\n                hours = minHour;\n            }\n            if (hours === minHour && minutes < minMinutes) {\n                minutes = minMinutes;\n            }\n            if (hours === minHour && minutes === minMinutes && seconds < minSeconds)\n                seconds = config.minDate.getSeconds();\n        }\n        if (config.maxDate !== undefined) {\n            var maxHr = config.maxDate.getHours();\n            var maxMinutes = config.maxDate.getMinutes();\n            hours = Math.min(hours, maxHr);\n            if (hours === maxHr)\n                minutes = Math.min(maxMinutes, minutes);\n            if (hours === maxHr && minutes === maxMinutes)\n                seconds = config.maxDate.getSeconds();\n        }\n        return { hours: hours, minutes: minutes, seconds: seconds };\n    }\n}\n","min_source":"function _(e,t,n,a,r){a(),n.compareDates=function(e,t,n){void 0===n&&(n=!0);if(!1!==n)return new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0);return e.getTime()-t.getTime()},n.compareTimes=function(e,t){return 3600*(e.getHours()-t.getHours())+60*(e.getMinutes()-t.getMinutes())+e.getSeconds()-t.getSeconds()},n.getDefaultHours=function(e){var t=e.defaultHour,n=e.defaultMinute,a=e.defaultSeconds;if(void 0!==e.minDate){var r=e.minDate.getHours(),i=e.minDate.getMinutes(),o=e.minDate.getSeconds();t<r&&(t=r),t===r&&n<i&&(n=i),t===r&&n===i&&a<o&&(a=e.minDate.getSeconds())}if(void 0!==e.maxDate){var s=e.maxDate.getHours(),u=e.maxDate.getMinutes();(t=Math.min(t,s))===s&&(n=Math.min(u,n)),t===s&&n===u&&(a=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:a}};const i=e(\"3d14787c35\"),o=e(\"651d495396\"),s=e(\"3bfa124fda\");n.createDateFormatter=function(e){var t=e.config,n=void 0===t?o.defaults:t,a=e.l10n,r=void 0===a?s.english:a,u=e.isMobile,f=void 0!==u&&u;return function(e,t,a){var o=a||r;return void 0===n.formatDate||f?t.split(\"\").map((function(t,a,r){return i.formats[t]&&\"\\\\\"!==r[a-1]?i.formats[t](e,o,n):\"\\\\\"!==t?t:\"\"})).join(\"\"):n.formatDate(e,t,o)}};n.createDateParser=function(e){var t=e.config,n=void 0===t?o.defaults:t,a=e.l10n,r=void 0===a?s.english:a;return function(e,t,a,s){if(0===e||e){var u,f=s||r,d=e;if(e instanceof Date)u=new Date(e.getTime());else if(\"string\"!=typeof e&&void 0!==e.toFixed)u=new Date(e);else if(\"string\"==typeof e){var c=t||(n||o.defaults).dateFormat,g=String(e).trim();if(\"today\"===g)u=new Date,a=!0;else if(n&&n.parseDate)u=n.parseDate(e,c);else if(/Z$/.test(g)||/GMT$/.test(g))u=new Date(e);else{for(var m=void 0,l=[],v=0,D=0,h=\"\";v<c.length;v++){var w=c[v],M=\"\\\\\"===w,p=\"\\\\\"===c[v-1]||M;if(i.tokenRegex[w]&&!p){h+=i.tokenRegex[w];var H=new RegExp(h).exec(e);H&&(m=!0)&&l[\"Y\"!==w?\"push\":\"unshift\"]({fn:i.revFormat[w],val:H[++D]})}else M||(h+=\".\")}u=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),l.forEach((function(e){var t=e.fn,n=e.val;return u=t(u,n,f)||u})),u=m?u:void 0}}if(u instanceof Date&&!isNaN(u.getTime()))return!0===a&&u.setHours(0,0,0,0),u;n.errorHandler(new Error(\"Invalid date provided: \"+d))}}};n.isBetween=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)};n.calculateSecondsSinceMidnight=function(e,t,n){return 3600*e+60*t+n};n.parseSeconds=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]},n.duration={DAY:864e5}}\n//# sourceMappingURL=dates.min.js.map","min_map":"{\"version\":3,\"file\":\"dates.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"compareDates\",\"date1\",\"date2\",\"timeless\",\"Date\",\"getTime\",\"setHours\",\"compareTimes\",\"getHours\",\"getMinutes\",\"getSeconds\",\"getDefaultHours\",\"config\",\"hours\",\"defaultHour\",\"minutes\",\"defaultMinute\",\"seconds\",\"defaultSeconds\",\"undefined\",\"minDate\",\"minHour\",\"minMinutes\",\"minSeconds\",\"maxDate\",\"maxHr\",\"maxMinutes\",\"Math\",\"min\",\"formatting_1\",\"options_1\",\"default_1\",\"createDateFormatter\",\"_a\",\"_b\",\"defaults\",\"_c\",\"l10n\",\"english\",\"_d\",\"isMobile\",\"dateObj\",\"frmt\",\"overrideLocale\",\"locale\",\"formatDate\",\"split\",\"map\",\"c\",\"i\",\"arr\",\"formats\",\"join\",\"createDateParser\",\"date\",\"givenFormat\",\"customLocale\",\"parsedDate\",\"dateOrig\",\"toFixed\",\"format\",\"dateFormat\",\"datestr\",\"String\",\"trim\",\"parseDate\",\"test\",\"matched\",\"ops\",\"matchIndex\",\"regexStr\",\"length\",\"token\",\"isBackSlash\",\"escaped\",\"tokenRegex\",\"match\",\"RegExp\",\"exec\",\"fn\",\"revFormat\",\"val\",\"noCalendar\",\"getFullYear\",\"forEach\",\"isNaN\",\"errorHandler\",\"Error\",\"isBetween\",\"ts\",\"ts1\",\"ts2\",\"max\",\"calculateSecondsSinceMidnight\",\"parseSeconds\",\"secondsSinceMidnight\",\"floor\",\"duration\",\"DAY\"],\"sources\":[\"0\"],\"mappings\":\"AAAwC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACrFD,IACAD,EAAQG,aA6FR,SAAsBC,EAAOC,EAAOC,QACf,IAAbA,IACAA,GAAW,GAEf,IAAiB,IAAbA,EACA,OAAQ,IAAIC,KAAKH,EAAMI,WAAWC,SAAS,EAAG,EAAG,EAAG,GAChD,IAAIF,KAAKF,EAAMG,WAAWC,SAAS,EAAG,EAAG,EAAG,GAEpD,OAAOL,EAAMI,UAAYH,EAAMG,SACnC,EArGAR,EAAQU,aAsGR,SAAsBN,EAAOC,GACzB,OAAQ,MAAQD,EAAMO,WAAaN,EAAMM,YACrC,IAAMP,EAAMQ,aAAeP,EAAMO,cACjCR,EAAMS,aACNR,EAAMQ,YACd,EA1GAb,EAAQc,gBA2HR,SAAyBC,GACrB,IAAIC,EAAQD,EAAOE,YACfC,EAAUH,EAAOI,cACjBC,EAAUL,EAAOM,eACrB,QAAuBC,IAAnBP,EAAOQ,QAAuB,CAC9B,IAAIC,EAAUT,EAAOQ,QAAQZ,WACzBc,EAAaV,EAAOQ,QAAQX,aAC5Bc,EAAaX,EAAOQ,QAAQV,aAC5BG,EAAQQ,IACRR,E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,EAAG,EAAG,EAAG,EAAG,GAE5Df,EAAIgB,SAAQ,SAAUnD,GAClB,IAAI8C,EAAK9C,EAAG8C,GAAIE,EAAMhD,EAAGgD,IACzB,OAAQxB,EAAasB,EAAGtB,EAAYwB,EAAKrC,IAAWa,CACxD,IACAA,EAAaU,EAAUV,OAAatC,CACxC,CACJ,CACA,GAAMsC,aAAsBrD,OAASiF,MAAM5B,EAAWpD,WAMtD,OAFiB,IAAbF,GACAsD,EAAWnD,SAAS,EAAG,EAAG,EAAG,GAC1BmD,EALH7C,EAAO0E,aAAa,IAAIC,MAAM,0BAA4B7B,GAtD1C,CA4DxB,CACJ,EAqBA7D,EAAQ2F,UAHQ,SAAUC,EAAIC,EAAKC,GAC/B,OAAOF,EAAK9D,KAAKC,IAAI8D,EAAKC,IAAQF,EAAK9D,KAAKiE,IAAIF,EAAKC,EACzD,EAKA9F,EAAQgG,8BAH4B,SAAUhF,EAAOE,EAASE,GAC1D,OAAe,KAARJ,EAAyB,GAAVE,EAAeE,CACzC,EAMApB,EAAQiG,aAJW,SAAUC,GACzB,IAAIlF,EAAQc,KAAKqE,MAAMD,EAAuB,MAAOhF,GAAWgF,EAA+B,KAARlF,GAAgB,GACvG,MAAO,CAACA,EAAOE,EAASgF,EAA+B,KAARlF,EAAyB,GAAVE,EAClE,EAEAlB,EAAQoG,SAAW,CACfC,IAAK,MA8Bb\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/utils/formatting.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"flatpickr/dist/esm/utils/formatting.js","resolution":"ESM","id":"3d14787c35","hash":"3d14787c358577e1d33b07bb2df280c121a1c99769bb99dc61e06908606a8ef8","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.formats = exports.tokenRegex = exports.revFormat = exports.monthToStr = void 0;\nconst utils_1 = require(\"../utils\");\nvar doNothing = function () { return undefined; };\nvar monthToStr = function (monthNumber, shorthand, locale) { return locale.months[shorthand ? \"shorthand\" : \"longhand\"][monthNumber]; };\nexports.monthToStr = monthToStr;\nexports.revFormat = {\n    D: doNothing,\n    F: function (dateObj, monthName, locale) {\n        dateObj.setMonth(locale.months.longhand.indexOf(monthName));\n    },\n    G: function (dateObj, hour) {\n        dateObj.setHours((dateObj.getHours() >= 12 ? 12 : 0) + parseFloat(hour));\n    },\n    H: function (dateObj, hour) {\n        dateObj.setHours(parseFloat(hour));\n    },\n    J: function (dateObj, day) {\n        dateObj.setDate(parseFloat(day));\n    },\n    K: function (dateObj, amPM, locale) {\n        dateObj.setHours((dateObj.getHours() % 12) +\n            12 * (0, utils_1.int)(new RegExp(locale.amPM[1], \"i\").test(amPM)));\n    },\n    M: function (dateObj, shortMonth, locale) {\n        dateObj.setMonth(locale.months.shorthand.indexOf(shortMonth));\n    },\n    S: function (dateObj, seconds) {\n        dateObj.setSeconds(parseFloat(seconds));\n    },\n    U: function (_, unixSeconds) { return new Date(parseFloat(unixSeconds) * 1000); },\n    W: function (dateObj, weekNum, locale) {\n        var weekNumber = parseInt(weekNum);\n        var date = new Date(dateObj.getFullYear(), 0, 2 + (weekNumber - 1) * 7, 0, 0, 0, 0);\n        date.setDate(date.getDate() - date.getDay() + locale.firstDayOfWeek);\n        return date;\n    },\n    Y: function (dateObj, year) {\n        dateObj.setFullYear(parseFloat(year));\n    },\n    Z: function (_, ISODate) { return new Date(ISODate); },\n    d: function (dateObj, day) {\n        dateObj.setDate(parseFloat(day));\n    },\n    h: function (dateObj, hour) {\n        dateObj.setHours((dateObj.getHours() >= 12 ? 12 : 0) + parseFloat(hour));\n    },\n    i: function (dateObj, minutes) {\n        dateObj.setMinutes(parseFloat(minutes));\n    },\n    j: function (dateObj, day) {\n        dateObj.setDate(parseFloat(day));\n    },\n    l: doNothing,\n    m: function (dateObj, month) {\n        dateObj.setMonth(parseFloat(month) - 1);\n    },\n    n: function (dateObj, month) {\n        dateObj.setMonth(parseFloat(month) - 1);\n    },\n    s: function (dateObj, seconds) {\n        dateObj.setSeconds(parseFloat(seconds));\n    },\n    u: function (_, unixMillSeconds) {\n        return new Date(parseFloat(unixMillSeconds));\n    },\n    w: doNothing,\n    y: function (dateObj, year) {\n        dateObj.setFullYear(2000 + parseFloat(year));\n    },\n};\nexports.tokenRegex = {\n    D: \"\",\n    F: \"\",\n    G: \"(\\\\d\\\\d|\\\\d)\",\n    H: \"(\\\\d\\\\d|\\\\d)\",\n    J: \"(\\\\d\\\\d|\\\\d)\\\\w+\",\n    K: \"\",\n    M: \"\",\n    S: \"(\\\\d\\\\d|\\\\d)\",\n    U: \"(.+)\",\n    W: \"(\\\\d\\\\d|\\\\d)\",\n    Y: \"(\\\\d{4})\",\n    Z: \"(.+)\",\n    d: \"(\\\\d\\\\d|\\\\d)\",\n    h: \"(\\\\d\\\\d|\\\\d)\",\n    i: \"(\\\\d\\\\d|\\\\d)\",\n    j: \"(\\\\d\\\\d|\\\\d)\",\n    l: \"\",\n    m: \"(\\\\d\\\\d|\\\\d)\",\n    n: \"(\\\\d\\\\d|\\\\d)\",\n    s: \"(\\\\d\\\\d|\\\\d)\",\n    u: \"(.+)\",\n    w: \"(\\\\d\\\\d|\\\\d)\",\n    y: \"(\\\\d{2})\",\n};\nexports.formats = {\n    Z: function (date) { return date.toISOString(); },\n    D: function (date, locale, options) {\n        return locale.weekdays.shorthand[exports.formats.w(date, locale, options)];\n    },\n    F: function (date, locale, options) {\n        return (0, exports.monthToStr)(exports.formats.n(date, locale, options) - 1, false, locale);\n    },\n    G: function (date, locale, options) {\n        return (0, utils_1.pad)(exports.formats.h(date, locale, options));\n    },\n    H: function (date) { return (0, utils_1.pad)(date.getHours()); },\n    J: function (date, locale) {\n        return locale.ordinal !== undefined\n            ? date.getDate() + locale.ordinal(date.getDate())\n            : date.getDate();\n    },\n    K: function (date, locale) { return locale.amPM[(0, utils_1.int)(date.getHours() > 11)]; },\n    M: function (date, locale) {\n        return (0, exports.monthToStr)(date.getMonth(), true, locale);\n    },\n    S: function (date) { return (0, utils_1.pad)(date.getSeconds()); },\n    U: function (date) { return date.getTime() / 1000; },\n    W: function (date, _, options) {\n        return options.getWeek(date);\n    },\n    Y: function (date) { return (0, utils_1.pad)(date.getFullYear(), 4); },\n    d: function (date) { return (0, utils_1.pad)(date.getDate()); },\n    h: function (date) { return (date.getHours() % 12 ? date.getHours() % 12 : 12); },\n    i: function (date) { return (0, utils_1.pad)(date.getMinutes()); },\n    j: function (date) { return date.getDate(); },\n    l: function (date, locale) {\n        return locale.weekdays.longhand[date.getDay()];\n    },\n    m: function (date) { return (0, utils_1.pad)(date.getMonth() + 1); },\n    n: function (date) { return date.getMonth() + 1; },\n    s: function (date) { return date.getSeconds(); },\n    u: function (date) { return date.getTime(); },\n    w: function (date) { return date.getDay(); },\n    y: function (date) { return String(date.getFullYear()).substring(2); },\n};\n","type":"js","dependency_paths":[["../utils","/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/utils/index.js"]],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* flatpickr/dist/esm/utils/formatting.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const utils_1 = require(\"15458073ce\") /* ../utils */;\n    var doNothing = function () { return undefined; };\n    var monthToStr = function (monthNumber, shorthand, locale) { return locale.months[shorthand ? \"shorthand\" : \"longhand\"][monthNumber]; };\n    exports.monthToStr = monthToStr;\n    exports.revFormat = {\n        D: doNothing,\n        F: function (dateObj, monthName, locale) {\n            dateObj.setMonth(locale.months.longhand.indexOf(monthName));\n        },\n        G: function (dateObj, hour) {\n            dateObj.setHours((dateObj.getHours() >= 12 ? 12 : 0) + parseFloat(hour));\n        },\n        H: function (dateObj, hour) {\n            dateObj.setHours(parseFloat(hour));\n        },\n        J: function (dateObj, day) {\n            dateObj.setDate(parseFloat(day));\n        },\n        K: function (dateObj, amPM, locale) {\n            dateObj.setHours((dateObj.getHours() % 12) +\n                12 * (0, utils_1.int)(new RegExp(locale.amPM[1], \"i\").test(amPM)));\n        },\n        M: function (dateObj, shortMonth, locale) {\n            dateObj.setMonth(locale.months.shorthand.indexOf(shortMonth));\n        },\n        S: function (dateObj, seconds) {\n            dateObj.setSeconds(parseFloat(seconds));\n        },\n        U: function (_, unixSeconds) { return new Date(parseFloat(unixSeconds) * 1000); },\n        W: function (dateObj, weekNum, locale) {\n            var weekNumber = parseInt(weekNum);\n            var date = new Date(dateObj.getFullYear(), 0, 2 + (weekNumber - 1) * 7, 0, 0, 0, 0);\n            date.setDate(date.getDate() - date.getDay() + locale.firstDayOfWeek);\n            return date;\n        },\n        Y: function (dateObj, year) {\n            dateObj.setFullYear(parseFloat(year));\n        },\n        Z: function (_, ISODate) { return new Date(ISODate); },\n        d: function (dateObj, day) {\n            dateObj.setDate(parseFloat(day));\n        },\n        h: function (dateObj, hour) {\n            dateObj.setHours((dateObj.getHours() >= 12 ? 12 : 0) + parseFloat(hour));\n        },\n        i: function (dateObj, minutes) {\n            dateObj.setMinutes(parseFloat(minutes));\n        },\n        j: function (dateObj, day) {\n            dateObj.setDate(parseFloat(day));\n        },\n        l: doNothing,\n        m: function (dateObj, month) {\n            dateObj.setMonth(parseFloat(month) - 1);\n        },\n        n: function (dateObj, month) {\n            dateObj.setMonth(parseFloat(month) - 1);\n        },\n        s: function (dateObj, seconds) {\n            dateObj.setSeconds(parseFloat(seconds));\n        },\n        u: function (_, unixMillSeconds) {\n            return new Date(parseFloat(unixMillSeconds));\n        },\n        w: doNothing,\n        y: function (dateObj, year) {\n            dateObj.setFullYear(2000 + parseFloat(year));\n        },\n    };\n    exports.tokenRegex = {\n        D: \"\",\n        F: \"\",\n        G: \"(\\\\d\\\\d|\\\\d)\",\n        H: \"(\\\\d\\\\d|\\\\d)\",\n        J: \"(\\\\d\\\\d|\\\\d)\\\\w+\",\n        K: \"\",\n        M: \"\",\n        S: \"(\\\\d\\\\d|\\\\d)\",\n        U: \"(.+)\",\n        W: \"(\\\\d\\\\d|\\\\d)\",\n        Y: \"(\\\\d{4})\",\n        Z: \"(.+)\",\n        d: \"(\\\\d\\\\d|\\\\d)\",\n        h: \"(\\\\d\\\\d|\\\\d)\",\n        i: \"(\\\\d\\\\d|\\\\d)\",\n        j: \"(\\\\d\\\\d|\\\\d)\",\n        l: \"\",\n        m: \"(\\\\d\\\\d|\\\\d)\",\n        n: \"(\\\\d\\\\d|\\\\d)\",\n        s: \"(\\\\d\\\\d|\\\\d)\",\n        u: \"(.+)\",\n        w: \"(\\\\d\\\\d|\\\\d)\",\n        y: \"(\\\\d{2})\",\n    };\n    exports.formats = {\n        Z: function (date) { return date.toISOString(); },\n        D: function (date, locale, options) {\n            return locale.weekdays.shorthand[exports.formats.w(date, locale, options)];\n        },\n        F: function (date, locale, options) {\n            return (0, exports.monthToStr)(exports.formats.n(date, locale, options) - 1, false, locale);\n        },\n        G: function (date, locale, options) {\n            return (0, utils_1.pad)(exports.formats.h(date, locale, options));\n        },\n        H: function (date) { return (0, utils_1.pad)(date.getHours()); },\n        J: function (date, locale) {\n            return locale.ordinal !== undefined\n                ? date.getDate() + locale.ordinal(date.getDate())\n                : date.getDate();\n        },\n        K: function (date, locale) { return locale.amPM[(0, utils_1.int)(date.getHours() > 11)]; },\n        M: function (date, locale) {\n            return (0, exports.monthToStr)(date.getMonth(), true, locale);\n        },\n        S: function (date) { return (0, utils_1.pad)(date.getSeconds()); },\n        U: function (date) { return date.getTime() / 1000; },\n        W: function (date, _, options) {\n            return options.getWeek(date);\n        },\n        Y: function (date) { return (0, utils_1.pad)(date.getFullYear(), 4); },\n        d: function (date) { return (0, utils_1.pad)(date.getDate()); },\n        h: function (date) { return (date.getHours() % 12 ? date.getHours() % 12 : 12); },\n        i: function (date) { return (0, utils_1.pad)(date.getMinutes()); },\n        j: function (date) { return date.getDate(); },\n        l: function (date, locale) {\n            return locale.weekdays.longhand[date.getDay()];\n        },\n        m: function (date) { return (0, utils_1.pad)(date.getMonth() + 1); },\n        n: function (date) { return date.getMonth() + 1; },\n        s: function (date) { return date.getSeconds(); },\n        u: function (date) { return date.getTime(); },\n        w: function (date) { return date.getDay(); },\n        y: function (date) { return String(date.getFullYear()).substring(2); },\n    };\n}\n","min_source":"function _(t,n,e,o,r){o();const u=t(\"15458073ce\");var a=function(){};e.monthToStr=function(t,n,e){return e.months[n?\"shorthand\":\"longhand\"][t]},e.revFormat={D:a,F:function(t,n,e){t.setMonth(e.months.longhand.indexOf(n))},G:function(t,n){t.setHours((t.getHours()>=12?12:0)+parseFloat(n))},H:function(t,n){t.setHours(parseFloat(n))},J:function(t,n){t.setDate(parseFloat(n))},K:function(t,n,e){t.setHours(t.getHours()%12+12*(0,u.int)(new RegExp(e.amPM[1],\"i\").test(n)))},M:function(t,n,e){t.setMonth(e.months.shorthand.indexOf(n))},S:function(t,n){t.setSeconds(parseFloat(n))},U:function(t,n){return new Date(1e3*parseFloat(n))},W:function(t,n,e){var o=parseInt(n),r=new Date(t.getFullYear(),0,2+7*(o-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+e.firstDayOfWeek),r},Y:function(t,n){t.setFullYear(parseFloat(n))},Z:function(t,n){return new Date(n)},d:function(t,n){t.setDate(parseFloat(n))},h:function(t,n){t.setHours((t.getHours()>=12?12:0)+parseFloat(n))},i:function(t,n){t.setMinutes(parseFloat(n))},j:function(t,n){t.setDate(parseFloat(n))},l:a,m:function(t,n){t.setMonth(parseFloat(n)-1)},n:function(t,n){t.setMonth(parseFloat(n)-1)},s:function(t,n){t.setSeconds(parseFloat(n))},u:function(t,n){return new Date(parseFloat(n))},w:a,y:function(t,n){t.setFullYear(2e3+parseFloat(n))}},e.tokenRegex={D:\"\",F:\"\",G:\"(\\\\d\\\\d|\\\\d)\",H:\"(\\\\d\\\\d|\\\\d)\",J:\"(\\\\d\\\\d|\\\\d)\\\\w+\",K:\"\",M:\"\",S:\"(\\\\d\\\\d|\\\\d)\",U:\"(.+)\",W:\"(\\\\d\\\\d|\\\\d)\",Y:\"(\\\\d{4})\",Z:\"(.+)\",d:\"(\\\\d\\\\d|\\\\d)\",h:\"(\\\\d\\\\d|\\\\d)\",i:\"(\\\\d\\\\d|\\\\d)\",j:\"(\\\\d\\\\d|\\\\d)\",l:\"\",m:\"(\\\\d\\\\d|\\\\d)\",n:\"(\\\\d\\\\d|\\\\d)\",s:\"(\\\\d\\\\d|\\\\d)\",u:\"(.+)\",w:\"(\\\\d\\\\d|\\\\d)\",y:\"(\\\\d{2})\"},e.formats={Z:function(t){return t.toISOString()},D:function(t,n,o){return n.weekdays.shorthand[e.formats.w(t,n,o)]},F:function(t,n,o){return(0,e.monthToStr)(e.formats.n(t,n,o)-1,!1,n)},G:function(t,n,o){return(0,u.pad)(e.formats.h(t,n,o))},H:function(t){return(0,u.pad)(t.getHours())},J:function(t,n){return void 0!==n.ordinal?t.getDate()+n.ordinal(t.getDate()):t.getDate()},K:function(t,n){return n.amPM[(0,u.int)(t.getHours()>11)]},M:function(t,n){return(0,e.monthToStr)(t.getMonth(),!0,n)},S:function(t){return(0,u.pad)(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,n,e){return e.getWeek(t)},Y:function(t){return(0,u.pad)(t.getFullYear(),4)},d:function(t){return(0,u.pad)(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return(0,u.pad)(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,n){return n.weekdays.longhand[t.getDay()]},m:function(t){return(0,u.pad)(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}}}\n//# sourceMappingURL=formatting.min.js.map","min_map":"{\"version\":3,\"file\":\"formatting.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"utils_1\",\"doNothing\",\"monthToStr\",\"monthNumber\",\"shorthand\",\"locale\",\"months\",\"revFormat\",\"D\",\"F\",\"dateObj\",\"monthName\",\"setMonth\",\"longhand\",\"indexOf\",\"G\",\"hour\",\"setHours\",\"getHours\",\"parseFloat\",\"H\",\"J\",\"day\",\"setDate\",\"K\",\"amPM\",\"int\",\"RegExp\",\"test\",\"M\",\"shortMonth\",\"S\",\"seconds\",\"setSeconds\",\"U\",\"unixSeconds\",\"Date\",\"W\",\"weekNum\",\"weekNumber\",\"parseInt\",\"date\",\"getFullYear\",\"getDate\",\"getDay\",\"firstDayOfWeek\",\"Y\",\"year\",\"setFullYear\",\"Z\",\"ISODate\",\"d\",\"h\",\"i\",\"minutes\",\"setMinutes\",\"j\",\"l\",\"m\",\"month\",\"n\",\"s\",\"u\",\"unixMillSeconds\",\"w\",\"y\",\"tokenRegex\",\"formats\",\"toISOString\",\"options\",\"weekdays\",\"pad\",\"undefined\",\"ordinal\",\"getMonth\",\"getSeconds\",\"getTime\",\"getWeek\",\"getMinutes\",\"String\",\"substring\"],\"sources\":[\"0\"],\"mappings\":\"AAA6C,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC1FD,IACA,MAAME,EAAUL,EAAQ,cACxB,IAAIM,EAAY,WAAgC,EAEhDJ,EAAQK,WADS,SAAUC,EAAaC,EAAWC,GAAU,OAAOA,EAAOC,OAAOF,EAAY,YAAc,YAAYD,EAAc,EAEtIN,EAAQU,UAAY,CAChBC,EAAGP,EACHQ,EAAG,SAAUC,EAASC,EAAWN,GAC7BK,EAAQE,SAASP,EAAOC,OAAOO,SAASC,QAAQH,GACpD,EACAI,EAAG,SAAUL,EAASM,GAClBN,EAAQO,UAAUP,EAAQQ,YAAc,GAAK,GAAK,GAAKC,WAAWH,GACtE,EACAI,EAAG,SAAUV,EAASM,GAClBN,EAAQO,SAASE,WAAWH,GAChC,EACAK,EAAG,SAAUX,EAASY,GAClBZ,EAAQa,QAAQJ,WAAWG,GAC/B,EACAE,EAAG,SAAUd,EAASe,EAAMpB,GACxBK,EAAQO,SAAUP,EAAQQ,WAAa,GACnC,IAAK,EAAIlB,EAAQ0B,KAAK,IAAIC,OAAOtB,EAAOoB,KA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KiC,YAAY,EAAMrE,EAC1D,EACA0B,EAAG,SAAUU,GAAQ,OAAO,EAAIzC,EAAQuE,KAAK9B,EAAKkC,aAAe,EACjEzC,EAAG,SAAUO,GAAQ,OAAOA,EAAKmC,UAAY,GAAM,EACnDvC,EAAG,SAAUI,EAAM/C,EAAG2E,GAClB,OAAOA,EAAQQ,QAAQpC,EAC3B,EACAK,EAAG,SAAUL,GAAQ,OAAO,EAAIzC,EAAQuE,KAAK9B,EAAKC,cAAe,EAAI,EACrES,EAAG,SAAUV,GAAQ,OAAO,EAAIzC,EAAQuE,KAAK9B,EAAKE,UAAY,EAC9DS,EAAG,SAAUX,GAAQ,OAAQA,EAAKvB,WAAa,GAAKuB,EAAKvB,WAAa,GAAK,EAAK,EAChFmC,EAAG,SAAUZ,GAAQ,OAAO,EAAIzC,EAAQuE,KAAK9B,EAAKqC,aAAe,EACjEtB,EAAG,SAAUf,GAAQ,OAAOA,EAAKE,SAAW,EAC5Cc,EAAG,SAAUhB,EAAMpC,GACf,OAAOA,EAAOiE,SAASzD,SAAS4B,EAAKG,SACzC,EACAc,EAAG,SAAUjB,GAAQ,OAAO,EAAIzC,EAAQuE,KAAK9B,EAAKiC,WAAa,EAAI,EACnEd,EAAG,SAAUnB,GAAQ,OAAOA,EAAKiC,WAAa,CAAG,EACjDb,EAAG,SAAUpB,GAAQ,OAAOA,EAAKkC,YAAc,EAC/Cb,EAAG,SAAUrB,GAAQ,OAAOA,EAAKmC,SAAW,EAC5CZ,EAAG,SAAUvB,GAAQ,OAAOA,EAAKG,QAAU,EAC3CqB,EAAG,SAAUxB,GAAQ,OAAOsC,OAAOtC,EAAKC,eAAesC,UAAU,EAAI,EAE7E\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/flatpickr/dist/esm/utils/polyfills.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"flatpickr/dist/esm/utils/polyfills.js","resolution":"ESM","id":"6f45019dc1","hash":"6f45019dc11436a38b5d4ba114c211679ff30a80891d0055ae934bb456793aaa","source":"\"use strict\";\nif (typeof Object.assign !== \"function\") {\n    Object.assign = function (target) {\n        var args = [];\n        for (var _i = 1; _i < arguments.length; _i++) {\n            args[_i - 1] = arguments[_i];\n        }\n        if (!target) {\n            throw TypeError(\"Cannot convert undefined or null to object\");\n        }\n        var _loop_1 = function (source) {\n            if (source) {\n                Object.keys(source).forEach(function (key) { return (target[key] = source[key]); });\n            }\n        };\n        for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {\n            var source = args_1[_a];\n            _loop_1(source);\n        }\n        return target;\n    };\n}\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* flatpickr/dist/esm/utils/polyfills.js */ function _(require, module, exports, __esModule, __esExport) {\n    if (typeof Object.assign !== \"function\") {\n        Object.assign = function (target) {\n            var args = [];\n            for (var _i = 1; _i < arguments.length; _i++) {\n                args[_i - 1] = arguments[_i];\n            }\n            if (!target) {\n                throw TypeError(\"Cannot convert undefined or null to object\");\n            }\n            var _loop_1 = function (source) {\n                if (source) {\n                    Object.keys(source).forEach(function (key) { return (target[key] = source[key]); });\n                }\n            };\n            for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {\n                var source = args_1[_a];\n                _loop_1(source);\n            }\n            return target;\n        };\n    }\n}\n","min_source":"function _(n,t,o,r,e){\"function\"!=typeof Object.assign&&(Object.assign=function(n){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(!n)throw TypeError(\"Cannot convert undefined or null to object\");for(var r=function(t){t&&Object.keys(t).forEach((function(o){return n[o]=t[o]}))},e=0,c=t;e<c.length;e++){r(c[e])}return n})}\n//# sourceMappingURL=polyfills.min.js.map","min_map":"{\"version\":3,\"file\":\"polyfills.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"Object\",\"assign\",\"target\",\"args\",\"_i\",\"arguments\",\"length\",\"TypeError\",\"_loop_1\",\"source\",\"keys\",\"forEach\",\"key\",\"_a\",\"args_1\"],\"sources\":[\"0\"],\"mappings\":\"AAA4C,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC5D,mBAAlBC,OAAOC,SACdD,OAAOC,OAAS,SAAUC,GAEtB,IADA,IAAIC,EAAO,GACFC,EAAK,EAAGA,EAAKC,UAAUC,OAAQF,IACpCD,EAAKC,EAAK,GAAKC,UAAUD,GAE7B,IAAKF,EACD,MAAMK,UAAU,8CAOpB,IALA,IAAIC,EAAU,SAAUC,GAChBA,GACAT,OAAOU,KAAKD,GAAQE,SAAQ,SAAUC,GAAO,OAAQV,EAAOU,GAAOH,EAAOG,EAAO,GAEzF,EACSC,EAAK,EAAGC,EAASX,EAAMU,EAAKC,EAAOR,OAAQO,IAAM,CAEtDL,EADaM,EAAOD,GAExB,CACA,OAAOX,CACX,EAER\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/datetime_slider.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/datetime_slider.js","canonical":"models/datetime_slider","resolution":"ESM","id":"c97cc0eade","hash":"c97cc0eade105e726c91dd2f899d4b5a770dd28399712de9538a35e3210bc5a4","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DatetimeSlider = exports.DatetimeSliderView = void 0;\n// adapted from bokeh\n// https://github.com/bokeh/bokeh/blob/branch-3.7/bokehjs/src/lib/models/widgets/sliders/date_slider.ts\nconst templating_1 = require(\"@bokehjs/core/util/templating\");\nconst numerical_slider_1 = require(\"@bokehjs/models/widgets/sliders/numerical_slider\");\nconst types_1 = require(\"@bokehjs/core/util/types\");\nclass DatetimeSliderView extends numerical_slider_1.NumericalSliderView {\n    constructor() {\n        super(...arguments);\n        this.behaviour = \"tap\";\n        this.connected = [true, false];\n    }\n    _calc_to() {\n        const spec = super._calc_to();\n        spec.step *= 1000; // step size is in seconds\n        return spec;\n    }\n    _formatter(value, format) {\n        if ((0, types_1.isString)(format)) {\n            return templating_1.DEFAULT_FORMATTERS.datetime(value, format, {});\n        }\n        else {\n            return format.compute(value);\n        }\n    }\n}\nexports.DatetimeSliderView = DatetimeSliderView;\nDatetimeSliderView.__name__ = \"DatetimeSliderView\";\nclass DatetimeSlider extends numerical_slider_1.NumericalSlider {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.DatetimeSlider = DatetimeSlider;\n_a = DatetimeSlider;\nDatetimeSlider.__name__ = \"DatetimeSlider\";\nDatetimeSlider.__module__ = \"panel.models.datetime_slider\";\n(() => {\n    _a.prototype.default_view = DatetimeSliderView;\n    _a.override({\n        step: 60,\n        format: \"%d %b %Y %H:%M:%S\",\n    });\n})();\n//# sourceMappingURL=datetime_slider.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"DatetimeSliderView"},{"type":"named","name":"DatetimeSlider"}],"externals":[],"shims":[]},"code":{"source":"/* models/datetime_slider.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    // adapted from bokeh\n    // https://github.com/bokeh/bokeh/blob/branch-3.7/bokehjs/src/lib/models/widgets/sliders/date_slider.ts\n    const templating_1 = require(\"@bokehjs/core/util/templating\");\n    const numerical_slider_1 = require(\"@bokehjs/models/widgets/sliders/numerical_slider\");\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    class DatetimeSliderView extends numerical_slider_1.NumericalSliderView {\n        constructor() {\n            super(...arguments);\n            this.behaviour = \"tap\";\n            this.connected = [true, false];\n        }\n        _calc_to() {\n            const spec = super._calc_to();\n            spec.step *= 1000; // step size is in seconds\n            return spec;\n        }\n        _formatter(value, format) {\n            if ((0, types_1.isString)(format)) {\n                return templating_1.DEFAULT_FORMATTERS.datetime(value, format, {});\n            }\n            else {\n                return format.compute(value);\n            }\n        }\n    }\n    exports.DatetimeSliderView = DatetimeSliderView;\n    DatetimeSliderView.__name__ = \"DatetimeSliderView\";\n    class DatetimeSlider extends numerical_slider_1.NumericalSlider {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.DatetimeSlider = DatetimeSlider;\n    _a = DatetimeSlider;\n    DatetimeSlider.__name__ = \"DatetimeSlider\";\n    DatetimeSlider.__module__ = \"panel.models.datetime_slider\";\n    (() => {\n        _a.prototype.default_view = DatetimeSliderView;\n        _a.override({\n            step: 60,\n            format: \"%d %b %Y %H:%M:%S\",\n        });\n    })();\n}\n","min_source":"function _(e,t,r,i,s){var o;i();const l=e(\"@bokehjs/core/util/templating\"),a=e(\"@bokehjs/models/widgets/sliders/numerical_slider\"),_=e(\"@bokehjs/core/util/types\");class c extends a.NumericalSliderView{constructor(){super(...arguments),this.behaviour=\"tap\",this.connected=[!0,!1]}_calc_to(){const e=super._calc_to();return e.step*=1e3,e}_formatter(e,t){return(0,_.isString)(t)?l.DEFAULT_FORMATTERS.datetime(e,t,{}):t.compute(e)}}r.DatetimeSliderView=c,c.__name__=\"DatetimeSliderView\";class d extends a.NumericalSlider{constructor(e){super(e)}}r.DatetimeSlider=d,o=d,d.__name__=\"DatetimeSlider\",d.__module__=\"panel.models.datetime_slider\",o.prototype.default_view=c,o.override({step:60,format:\"%d %b %Y %H:%M:%S\"})}\n//# sourceMappingURL=datetime_slider.min.js.map","min_map":"{\"version\":3,\"file\":\"datetime_slider.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"templating_1\",\"numerical_slider_1\",\"types_1\",\"DatetimeSliderView\",\"NumericalSliderView\",\"constructor\",\"super\",\"arguments\",\"this\",\"behaviour\",\"connected\",\"_calc_to\",\"spec\",\"step\",\"_formatter\",\"value\",\"format\",\"isString\",\"DEFAULT_FORMATTERS\",\"datetime\",\"compute\",\"__name__\",\"DatetimeSlider\",\"NumericalSlider\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"override\"],\"sources\":[\"0\"],\"mappings\":\"AAAgC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC7E,IAAIC,EACJF,IAGA,MAAMG,EAAeN,EAAQ,iCACvBO,EAAqBP,EAAQ,oDAC7BQ,EAAUR,EAAQ,4BACxB,MAAMS,UAA2BF,EAAmBG,oBAChD,WAAAC,GACIC,SAASC,WACTC,KAAKC,UAAY,MACjBD,KAAKE,UAAY,EAAC,GAAM,EAC5B,CACA,QAAAC,GACI,MAAMC,EAAON,MAAMK,WAEnB,OADAC,EAAKC,MAAQ,IACND,CACX,CACA,UAAAE,CAAWC,EAAOC,GACd,OAAI,EAAId,EAAQe,UAAUD,GACfhB,EAAakB,mBAAmBC,SAASJ,EAAOC,EAAQ,CAAC,GAGzDA,EAAOI,QAAQL,EAE9B,EAEJnB,EAAQO,mBAAqBA,EAC7BA,EAAmBkB,SAAW,qBAC9B,MAAMC,UAAuBrB,EAAmBsB,gBAC5C,WAAAlB,CAAYmB,GACRlB,MAAMkB,EACV,EAEJ5B,EAAQ0B,eAAiBA,EACzBvB,EAAKuB,EACLA,EAAeD,SAAW,iBAC1BC,EAAeG,WAAa,+BAExB1B,EAAG2B,UAAUC,aAAexB,EAC5BJ,EAAG6B,SAAS,CACRf,KAAM,GACNG,OAAQ,qBAGpB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/deckgl.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/deckgl.js","canonical":"models/deckgl","resolution":"ESM","id":"d58ba73420","hash":"d58ba7342069fb8c12322335f9b3a48f342e5109e9784049f6188298f4c1003b","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DeckGLPlot = exports.DeckGLPlotView = void 0;\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst types_1 = require(\"@bokehjs/core/util/types\");\nconst layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\nconst column_data_source_1 = require(\"@bokehjs/models/sources/column_data_source\");\nconst debounce_1 = require(\"debounce\");\nconst data_1 = require(\"./data\");\nconst layout_1 = require(\"./layout\");\nconst lumagl_1 = require(\"./lumagl\");\nconst tooltips_1 = require(\"./tooltips\");\nfunction extractClasses() {\n    // Get classes for registration from standalone deck.gl\n    const classesDict = {};\n    const deck = window.deck;\n    const classes = Object.keys(deck).filter(x => x.charAt(0) === x.charAt(0).toUpperCase());\n    for (const cls of classes) {\n        classesDict[cls] = deck[cls];\n    }\n    const carto = window.CartoLibrary;\n    const layers = Object.keys(carto.CARTO_LAYERS).filter(x => x.endsWith(\"Layer\"));\n    for (const layer of layers) {\n        classesDict[layer] = carto.CARTO_LAYERS[layer];\n    }\n    return classesDict;\n}\nfunction extractFunctions() {\n    const carto = window.CartoLibrary;\n    const sources = Object.keys(carto.CARTO_SOURCES).filter(x => x.toLowerCase().endsWith(\"source\"));\n    const functionDict = {};\n    for (const src of sources) {\n        functionDict[src] = carto.CARTO_SOURCES[src];\n    }\n    return functionDict;\n}\nclass DeckGLPlotView extends layout_dom_1.LayoutDOMView {\n    constructor() {\n        super(...arguments);\n        this._initialized = false;\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { data, mapbox_api_key, tooltip, configuration, layers, initialViewState, data_sources } = this.model.properties;\n        this.on_change([mapbox_api_key, tooltip, configuration], () => this.rerender_());\n        this.on_change([data, initialViewState], () => this.updateDeck());\n        this.on_change([layers], () => this._update_layers());\n        this.on_change([data_sources], () => this._connect_sources(true));\n        this._layer_map = {};\n        this._connected = [];\n        this._connect_sources();\n    }\n    remove() {\n        this.deckGL?.finalize();\n        super.remove();\n    }\n    _update_layers() {\n        this._layer_map = {};\n        this._update_data(true);\n    }\n    _connect_sources(render = false) {\n        for (const cds of this.model.data_sources) {\n            if (this._connected.indexOf(cds) < 0) {\n                this.on_change(cds.properties.data, () => this._update_data(true));\n                this._connected.push(cds);\n            }\n        }\n        this._update_data(render);\n    }\n    initialize() {\n        super.initialize();\n        const view_timeout = this.model.throttle.view || 200;\n        this._view_cb = (0, debounce_1.debounce)((event) => this._on_viewState_event(event), view_timeout, false);\n        if (window.deck.JSONConverter) {\n            const { CSVLoader, Tiles3DLoader } = window.loaders;\n            window.loaders.registerLoaders([Tiles3DLoader, CSVLoader]);\n            const jsonConverterConfiguration = {\n                classes: extractClasses(),\n                functions: extractFunctions(),\n                // Will be resolved as `<enum-name>.<enum-value>`\n                enumerations: {\n                    COORDINATE_SYSTEM: window.deck.COORDINATE_SYSTEM,\n                    GL: lumagl_1.GL,\n                },\n                // Constants that should be resolved with the provided values by JSON converter\n                constants: {\n                    Tiles3DLoader,\n                },\n            };\n            this.jsonConverter = new window.deck.JSONConverter({\n                configuration: jsonConverterConfiguration,\n            });\n        }\n    }\n    _update_data(render = true) {\n        let n = 0;\n        for (const layer of this.model.layers) {\n            let cds;\n            n += 1;\n            if ((n - 1) in this._layer_map) {\n                cds = this.model.data_sources[this._layer_map[n - 1]];\n            }\n            else if (!(0, types_1.isNumber)(layer.data)) {\n                continue;\n            }\n            else {\n                this._layer_map[n - 1] = layer.data;\n                cds = this.model.data_sources[layer.data];\n            }\n            layer.data = (0, data_1.transform_cds_to_records)(cds);\n        }\n        if (render) {\n            this.updateDeck();\n        }\n    }\n    _on_click_event(event) {\n        const click_state = {\n            coordinate: event.coordinate,\n            lngLat: event.coordinate,\n            index: event.index,\n        };\n        if (event.layer) {\n            click_state.layer = event.layer.id;\n        }\n        this.model.clickState = click_state;\n    }\n    _on_hover_event(event) {\n        if (event.coordinate == null) {\n            return;\n        }\n        const hover_state = {\n            coordinate: event.coordinate,\n            lngLat: event.coordinate,\n            index: event.index,\n        };\n        if (event.layer) {\n            hover_state.layer = event.layer.id;\n        }\n        this.model.hoverState = hover_state;\n    }\n    _on_viewState_event(event) {\n        const view_state = { ...event.viewState };\n        delete view_state.normalize;\n        for (const p in view_state) {\n            if (p.startsWith(\"transition\")) {\n                delete view_state[p];\n            }\n        }\n        const viewport = new window.deck.WebMercatorViewport(view_state);\n        view_state.nw = viewport.unproject([0, 0]);\n        view_state.se = viewport.unproject([viewport.width, viewport.height]);\n        this.model.viewState = view_state;\n    }\n    get child_models() {\n        return [];\n    }\n    getData() {\n        const hover_timeout = this.model.throttle.hover || 100;\n        const hover_cb = (0, debounce_1.debounce)((event) => this._on_hover_event(event), hover_timeout, false);\n        const data = {\n            ...this.model.data,\n            layers: this.model.layers,\n            initialViewState: this.model.initialViewState,\n            onViewStateChange: (event) => this._sync_viewstate(event),\n            onClick: (event) => this._on_click_event(event),\n            onHover: hover_cb,\n        };\n        return data;\n    }\n    _sync_viewstate(event) {\n        if (this._map) {\n            const { longitude, latitude, ...rest } = event.viewState;\n            this._map.jumpTo({ center: [longitude, latitude], ...rest });\n        }\n        this._view_cb(event);\n    }\n    rerender_() {\n        // Can be removed when Bokeh>3.7 (see https://github.com/holoviz/panel/pull/7815)\n        if (this.rerender) {\n            this.rerender();\n        }\n        else {\n            this.render();\n            this.r_after_render();\n        }\n    }\n    updateDeck() {\n        if (!this.deckGL) {\n            this.rerender_();\n            return;\n        }\n        const data = this.getData();\n        if (window.deck.updateDeck) {\n            window.deck.updateDeck(data, this.deckGL);\n        }\n        else {\n            const results = this.jsonConverter.convert(data);\n            this.deckGL.setProps(results);\n        }\n    }\n    createDeck({ mapboxApiKey, container, jsonInput, tooltip }) {\n        let deckgl;\n        try {\n            let configuration;\n            if (this.model.configuration) {\n                configuration = eval(`(${this.model.configuration})`);\n            }\n            else {\n                configuration = null;\n            }\n            this.jsonConverter.mergeConfiguration(configuration);\n            const props = this.jsonConverter.convert(jsonInput);\n            const getTooltip = (0, tooltips_1.makeTooltip)(tooltip, props.layers);\n            if (props.mapStyle === null) {\n                props.map = null;\n            }\n            else if (props.mapStyle.includes(\"carto\")) {\n                this._map = new window.maplibregl.Map({\n                    container,\n                    style: props.mapStyle,\n                    interactive: false,\n                });\n                props.controller = true;\n                props.map = null;\n                delete props.mapStyle;\n            }\n            else {\n                props.map = window.mapboxgl;\n                props.mapboxApiAccessToken = mapboxApiKey;\n            }\n            deckgl = new window.deck.DeckGL({\n                ...props,\n                container,\n                getTooltip,\n                height: \"100%\",\n                width: \"100%\",\n            });\n        }\n        catch (err) {\n            console.error(err);\n        }\n        return deckgl;\n    }\n    render() {\n        super.render();\n        const container = (0, dom_1.div)({ class: \"deckgl\" });\n        (0, layout_1.set_size)(container, this.model, false);\n        const MAPBOX_API_KEY = this.model.mapbox_api_key;\n        const tooltip = this.model.tooltip;\n        const data = this.getData();\n        if (window.deck.createDeck) {\n            this.deckGL = window.deck.createDeck({\n                mapboxApiKey: MAPBOX_API_KEY,\n                container,\n                jsonInput: data,\n                tooltip,\n            });\n        }\n        else {\n            this.deckGL = this.createDeck({\n                mapboxApiKey: MAPBOX_API_KEY,\n                container,\n                jsonInput: data,\n                tooltip,\n            });\n        }\n        this.shadow_el.appendChild(container);\n        this._initialized = false;\n    }\n    resize() {\n        if (this.deckGL == null) {\n            return;\n        }\n        this.deckGL.redraw(true);\n        if (this._map) {\n            this._map.resize();\n        }\n    }\n    after_layout() {\n        super.after_layout();\n        if (!this._initialized) {\n            this.resize();\n        }\n        this._initialized = true;\n    }\n    after_resize() {\n        super.after_resize();\n        this.resize();\n    }\n}\nexports.DeckGLPlotView = DeckGLPlotView;\nDeckGLPlotView.__name__ = \"DeckGLPlotView\";\nclass DeckGLPlot extends layout_dom_1.LayoutDOM {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.DeckGLPlot = DeckGLPlot;\n_a = DeckGLPlot;\nDeckGLPlot.__name__ = \"DeckGLPlot\";\nDeckGLPlot.__module__ = \"panel.models.deckgl\";\n(() => {\n    _a.prototype.default_view = DeckGLPlotView;\n    _a.define(({ Any, List, Str, Ref }) => ({\n        data: [Any],\n        data_sources: [List(Ref(column_data_source_1.ColumnDataSource)), []],\n        clickState: [Any, {}],\n        hoverState: [Any, {}],\n        initialViewState: [Any, {}],\n        layers: [List(Any), []],\n        mapbox_api_key: [Str, \"\"],\n        throttle: [Any, {}],\n        tooltip: [Any, true],\n        configuration: [Str, \"\"],\n        viewState: [Any, {}],\n    }));\n    _a.override({\n        height: 400,\n        width: 600,\n    });\n})();\n//# sourceMappingURL=deckgl.js.map\n","type":"js","dependency_paths":[["debounce","/home/runner/work/panel/panel/panel/node_modules/debounce/index.js"],["./data","/home/runner/work/panel/panel/panel/dist/lib/models/data.js"],["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"],["./lumagl","/home/runner/work/panel/panel/panel/dist/lib/models/lumagl.js"],["./tooltips","/home/runner/work/panel/panel/panel/dist/lib/models/tooltips.js"]],"dependency_map":[],"exported":[{"type":"named","name":"DeckGLPlotView"},{"type":"named","name":"DeckGLPlot"}],"externals":[],"shims":[]},"code":{"source":"/* models/deckgl.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    const layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\n    const column_data_source_1 = require(\"@bokehjs/models/sources/column_data_source\");\n    const debounce_1 = require(\"99a25e6992\") /* debounce */;\n    const data_1 = require(\"be689f0377\") /* ./data */;\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    const lumagl_1 = require(\"16d69e2b49\") /* ./lumagl */;\n    const tooltips_1 = require(\"f8f8ea4284\") /* ./tooltips */;\n    function extractClasses() {\n        // Get classes for registration from standalone deck.gl\n        const classesDict = {};\n        const deck = window.deck;\n        const classes = Object.keys(deck).filter(x => x.charAt(0) === x.charAt(0).toUpperCase());\n        for (const cls of classes) {\n            classesDict[cls] = deck[cls];\n        }\n        const carto = window.CartoLibrary;\n        const layers = Object.keys(carto.CARTO_LAYERS).filter(x => x.endsWith(\"Layer\"));\n        for (const layer of layers) {\n            classesDict[layer] = carto.CARTO_LAYERS[layer];\n        }\n        return classesDict;\n    }\n    function extractFunctions() {\n        const carto = window.CartoLibrary;\n        const sources = Object.keys(carto.CARTO_SOURCES).filter(x => x.toLowerCase().endsWith(\"source\"));\n        const functionDict = {};\n        for (const src of sources) {\n            functionDict[src] = carto.CARTO_SOURCES[src];\n        }\n        return functionDict;\n    }\n    class DeckGLPlotView extends layout_dom_1.LayoutDOMView {\n        constructor() {\n            super(...arguments);\n            this._initialized = false;\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { data, mapbox_api_key, tooltip, configuration, layers, initialViewState, data_sources } = this.model.properties;\n            this.on_change([mapbox_api_key, tooltip, configuration], () => this.rerender_());\n            this.on_change([data, initialViewState], () => this.updateDeck());\n            this.on_change([layers], () => this._update_layers());\n            this.on_change([data_sources], () => this._connect_sources(true));\n            this._layer_map = {};\n            this._connected = [];\n            this._connect_sources();\n        }\n        remove() {\n            this.deckGL?.finalize();\n            super.remove();\n        }\n        _update_layers() {\n            this._layer_map = {};\n            this._update_data(true);\n        }\n        _connect_sources(render = false) {\n            for (const cds of this.model.data_sources) {\n                if (this._connected.indexOf(cds) < 0) {\n                    this.on_change(cds.properties.data, () => this._update_data(true));\n                    this._connected.push(cds);\n                }\n            }\n            this._update_data(render);\n        }\n        initialize() {\n            super.initialize();\n            const view_timeout = this.model.throttle.view || 200;\n            this._view_cb = (0, debounce_1.debounce)((event) => this._on_viewState_event(event), view_timeout, false);\n            if (window.deck.JSONConverter) {\n                const { CSVLoader, Tiles3DLoader } = window.loaders;\n                window.loaders.registerLoaders([Tiles3DLoader, CSVLoader]);\n                const jsonConverterConfiguration = {\n                    classes: extractClasses(),\n                    functions: extractFunctions(),\n                    // Will be resolved as `<enum-name>.<enum-value>`\n                    enumerations: {\n                        COORDINATE_SYSTEM: window.deck.COORDINATE_SYSTEM,\n                        GL: lumagl_1.GL,\n                    },\n                    // Constants that should be resolved with the provided values by JSON converter\n                    constants: {\n                        Tiles3DLoader,\n                    },\n                };\n                this.jsonConverter = new window.deck.JSONConverter({\n                    configuration: jsonConverterConfiguration,\n                });\n            }\n        }\n        _update_data(render = true) {\n            let n = 0;\n            for (const layer of this.model.layers) {\n                let cds;\n                n += 1;\n                if ((n - 1) in this._layer_map) {\n                    cds = this.model.data_sources[this._layer_map[n - 1]];\n                }\n                else if (!(0, types_1.isNumber)(layer.data)) {\n                    continue;\n                }\n                else {\n                    this._layer_map[n - 1] = layer.data;\n                    cds = this.model.data_sources[layer.data];\n                }\n                layer.data = (0, data_1.transform_cds_to_records)(cds);\n            }\n            if (render) {\n                this.updateDeck();\n            }\n        }\n        _on_click_event(event) {\n            const click_state = {\n                coordinate: event.coordinate,\n                lngLat: event.coordinate,\n                index: event.index,\n            };\n            if (event.layer) {\n                click_state.layer = event.layer.id;\n            }\n            this.model.clickState = click_state;\n        }\n        _on_hover_event(event) {\n            if (event.coordinate == null) {\n                return;\n            }\n            const hover_state = {\n                coordinate: event.coordinate,\n                lngLat: event.coordinate,\n                index: event.index,\n            };\n            if (event.layer) {\n                hover_state.layer = event.layer.id;\n            }\n            this.model.hoverState = hover_state;\n        }\n        _on_viewState_event(event) {\n            const view_state = { ...event.viewState };\n            delete view_state.normalize;\n            for (const p in view_state) {\n                if (p.startsWith(\"transition\")) {\n                    delete view_state[p];\n                }\n            }\n            const viewport = new window.deck.WebMercatorViewport(view_state);\n            view_state.nw = viewport.unproject([0, 0]);\n            view_state.se = viewport.unproject([viewport.width, viewport.height]);\n            this.model.viewState = view_state;\n        }\n        get child_models() {\n            return [];\n        }\n        getData() {\n            const hover_timeout = this.model.throttle.hover || 100;\n            const hover_cb = (0, debounce_1.debounce)((event) => this._on_hover_event(event), hover_timeout, false);\n            const data = {\n                ...this.model.data,\n                layers: this.model.layers,\n                initialViewState: this.model.initialViewState,\n                onViewStateChange: (event) => this._sync_viewstate(event),\n                onClick: (event) => this._on_click_event(event),\n                onHover: hover_cb,\n            };\n            return data;\n        }\n        _sync_viewstate(event) {\n            if (this._map) {\n                const { longitude, latitude, ...rest } = event.viewState;\n                this._map.jumpTo({ center: [longitude, latitude], ...rest });\n            }\n            this._view_cb(event);\n        }\n        rerender_() {\n            // Can be removed when Bokeh>3.7 (see https://github.com/holoviz/panel/pull/7815)\n            if (this.rerender) {\n                this.rerender();\n            }\n            else {\n                this.render();\n                this.r_after_render();\n            }\n        }\n        updateDeck() {\n            if (!this.deckGL) {\n                this.rerender_();\n                return;\n            }\n            const data = this.getData();\n            if (window.deck.updateDeck) {\n                window.deck.updateDeck(data, this.deckGL);\n            }\n            else {\n                const results = this.jsonConverter.convert(data);\n                this.deckGL.setProps(results);\n            }\n        }\n        createDeck({ mapboxApiKey, container, jsonInput, tooltip }) {\n            let deckgl;\n            try {\n                let configuration;\n                if (this.model.configuration) {\n                    configuration = eval(`(${this.model.configuration})`);\n                }\n                else {\n                    configuration = null;\n                }\n                this.jsonConverter.mergeConfiguration(configuration);\n                const props = this.jsonConverter.convert(jsonInput);\n                const getTooltip = (0, tooltips_1.makeTooltip)(tooltip, props.layers);\n                if (props.mapStyle === null) {\n                    props.map = null;\n                }\n                else if (props.mapStyle.includes(\"carto\")) {\n                    this._map = new window.maplibregl.Map({\n                        container,\n                        style: props.mapStyle,\n                        interactive: false,\n                    });\n                    props.controller = true;\n                    props.map = null;\n                    delete props.mapStyle;\n                }\n                else {\n                    props.map = window.mapboxgl;\n                    props.mapboxApiAccessToken = mapboxApiKey;\n                }\n                deckgl = new window.deck.DeckGL({\n                    ...props,\n                    container,\n                    getTooltip,\n                    height: \"100%\",\n                    width: \"100%\",\n                });\n            }\n            catch (err) {\n                console.error(err);\n            }\n            return deckgl;\n        }\n        render() {\n            super.render();\n            const container = (0, dom_1.div)({ class: \"deckgl\" });\n            (0, layout_1.set_size)(container, this.model, false);\n            const MAPBOX_API_KEY = this.model.mapbox_api_key;\n            const tooltip = this.model.tooltip;\n            const data = this.getData();\n            if (window.deck.createDeck) {\n                this.deckGL = window.deck.createDeck({\n                    mapboxApiKey: MAPBOX_API_KEY,\n                    container,\n                    jsonInput: data,\n                    tooltip,\n                });\n            }\n            else {\n                this.deckGL = this.createDeck({\n                    mapboxApiKey: MAPBOX_API_KEY,\n                    container,\n                    jsonInput: data,\n                    tooltip,\n                });\n            }\n            this.shadow_el.appendChild(container);\n            this._initialized = false;\n        }\n        resize() {\n            if (this.deckGL == null) {\n                return;\n            }\n            this.deckGL.redraw(true);\n            if (this._map) {\n                this._map.resize();\n            }\n        }\n        after_layout() {\n            super.after_layout();\n            if (!this._initialized) {\n                this.resize();\n            }\n            this._initialized = true;\n        }\n        after_resize() {\n            super.after_resize();\n            this.resize();\n        }\n    }\n    exports.DeckGLPlotView = DeckGLPlotView;\n    DeckGLPlotView.__name__ = \"DeckGLPlotView\";\n    class DeckGLPlot extends layout_dom_1.LayoutDOM {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.DeckGLPlot = DeckGLPlot;\n    _a = DeckGLPlot;\n    DeckGLPlot.__name__ = \"DeckGLPlot\";\n    DeckGLPlot.__module__ = \"panel.models.deckgl\";\n    (() => {\n        _a.prototype.default_view = DeckGLPlotView;\n        _a.define(({ Any, List, Str, Ref }) => ({\n            data: [Any],\n            data_sources: [List(Ref(column_data_source_1.ColumnDataSource)), []],\n            clickState: [Any, {}],\n            hoverState: [Any, {}],\n            initialViewState: [Any, {}],\n            layers: [List(Any), []],\n            mapbox_api_key: [Str, \"\"],\n            throttle: [Any, {}],\n            tooltip: [Any, true],\n            configuration: [Str, \"\"],\n            viewState: [Any, {}],\n        }));\n        _a.override({\n            height: 400,\n            width: 600,\n        });\n    })();\n}\n","min_source":"function _(require,module,exports,__esModule,__esExport){var _a;__esModule();const dom_1=require(\"@bokehjs/core/dom\"),types_1=require(\"@bokehjs/core/util/types\"),layout_dom_1=require(\"@bokehjs/models/layouts/layout_dom\"),column_data_source_1=require(\"@bokehjs/models/sources/column_data_source\"),debounce_1=require(\"99a25e6992\"),data_1=require(\"be689f0377\"),layout_1=require(\"dab42e6dad\"),lumagl_1=require(\"16d69e2b49\"),tooltips_1=require(\"f8f8ea4284\");function extractClasses(){const e={},t=window.deck,o=Object.keys(t).filter((e=>e.charAt(0)===e.charAt(0).toUpperCase()));for(const i of o)e[i]=t[i];const i=window.CartoLibrary,s=Object.keys(i.CARTO_LAYERS).filter((e=>e.endsWith(\"Layer\")));for(const t of s)e[t]=i.CARTO_LAYERS[t];return e}function extractFunctions(){const e=window.CartoLibrary,t=Object.keys(e.CARTO_SOURCES).filter((e=>e.toLowerCase().endsWith(\"source\"))),o={};for(const i of t)o[i]=e.CARTO_SOURCES[i];return o}class DeckGLPlotView extends layout_dom_1.LayoutDOMView{constructor(){super(...arguments),this._initialized=!1}connect_signals(){super.connect_signals();const{data:e,mapbox_api_key:t,tooltip:o,configuration:i,layers:s,initialViewState:r,data_sources:a}=this.model.properties;this.on_change([t,o,i],(()=>this.rerender_())),this.on_change([e,r],(()=>this.updateDeck())),this.on_change([s],(()=>this._update_layers())),this.on_change([a],(()=>this._connect_sources(!0))),this._layer_map={},this._connected=[],this._connect_sources()}remove(){this.deckGL?.finalize(),super.remove()}_update_layers(){this._layer_map={},this._update_data(!0)}_connect_sources(e=!1){for(const e of this.model.data_sources)this._connected.indexOf(e)<0&&(this.on_change(e.properties.data,(()=>this._update_data(!0))),this._connected.push(e));this._update_data(e)}initialize(){super.initialize();const e=this.model.throttle.view||200;if(this._view_cb=(0,debounce_1.debounce)((e=>this._on_viewState_event(e)),e,!1),window.deck.JSONConverter){const{CSVLoader:e,Tiles3DLoader:t}=window.loaders;window.loaders.registerLoaders([t,e]);const o={classes:extractClasses(),functions:extractFunctions(),enumerations:{COORDINATE_SYSTEM:window.deck.COORDINATE_SYSTEM,GL:lumagl_1.GL},constants:{Tiles3DLoader:t}};this.jsonConverter=new window.deck.JSONConverter({configuration:o})}}_update_data(e=!0){let t=0;for(const e of this.model.layers){let o;if(t+=1,t-1 in this._layer_map)o=this.model.data_sources[this._layer_map[t-1]];else{if(!(0,types_1.isNumber)(e.data))continue;this._layer_map[t-1]=e.data,o=this.model.data_sources[e.data]}e.data=(0,data_1.transform_cds_to_records)(o)}e&&this.updateDeck()}_on_click_event(e){const t={coordinate:e.coordinate,lngLat:e.coordinate,index:e.index};e.layer&&(t.layer=e.layer.id),this.model.clickState=t}_on_hover_event(e){if(null==e.coordinate)return;const t={coordinate:e.coordinate,lngLat:e.coordinate,index:e.index};e.layer&&(t.layer=e.layer.id),this.model.hoverState=t}_on_viewState_event(e){const t={...e.viewState};delete t.normalize;for(const e in t)e.startsWith(\"transition\")&&delete t[e];const o=new window.deck.WebMercatorViewport(t);t.nw=o.unproject([0,0]),t.se=o.unproject([o.width,o.height]),this.model.viewState=t}get child_models(){return[]}getData(){const e=this.model.throttle.hover||100,t=(0,debounce_1.debounce)((e=>this._on_hover_event(e)),e,!1);return{...this.model.data,layers:this.model.layers,initialViewState:this.model.initialViewState,onViewStateChange:e=>this._sync_viewstate(e),onClick:e=>this._on_click_event(e),onHover:t}}_sync_viewstate(e){if(this._map){const{longitude:t,latitude:o,...i}=e.viewState;this._map.jumpTo({center:[t,o],...i})}this._view_cb(e)}rerender_(){this.rerender?this.rerender():(this.render(),this.r_after_render())}updateDeck(){if(!this.deckGL)return void this.rerender_();const e=this.getData();if(window.deck.updateDeck)window.deck.updateDeck(e,this.deckGL);else{const t=this.jsonConverter.convert(e);this.deckGL.setProps(t)}}createDeck({mapboxApiKey,container,jsonInput,tooltip}){let deckgl;try{let configuration;configuration=this.model.configuration?eval(`(${this.model.configuration})`):null,this.jsonConverter.mergeConfiguration(configuration);const props=this.jsonConverter.convert(jsonInput),getTooltip=(0,tooltips_1.makeTooltip)(tooltip,props.layers);null===props.mapStyle?props.map=null:props.mapStyle.includes(\"carto\")?(this._map=new window.maplibregl.Map({container,style:props.mapStyle,interactive:!1}),props.controller=!0,props.map=null,delete props.mapStyle):(props.map=window.mapboxgl,props.mapboxApiAccessToken=mapboxApiKey),deckgl=new window.deck.DeckGL({...props,container,getTooltip,height:\"100%\",width:\"100%\"})}catch(e){console.error(e)}return deckgl}render(){super.render();const e=(0,dom_1.div)({class:\"deckgl\"});(0,layout_1.set_size)(e,this.model,!1);const t=this.model.mapbox_api_key,o=this.model.tooltip,i=this.getData();window.deck.createDeck?this.deckGL=window.deck.createDeck({mapboxApiKey:t,container:e,jsonInput:i,tooltip:o}):this.deckGL=this.createDeck({mapboxApiKey:t,container:e,jsonInput:i,tooltip:o}),this.shadow_el.appendChild(e),this._initialized=!1}resize(){null!=this.deckGL&&(this.deckGL.redraw(!0),this._map&&this._map.resize())}after_layout(){super.after_layout(),this._initialized||this.resize(),this._initialized=!0}after_resize(){super.after_resize(),this.resize()}}exports.DeckGLPlotView=DeckGLPlotView,DeckGLPlotView.__name__=\"DeckGLPlotView\";class DeckGLPlot extends layout_dom_1.LayoutDOM{constructor(e){super(e)}}exports.DeckGLPlot=DeckGLPlot,_a=DeckGLPlot,DeckGLPlot.__name__=\"DeckGLPlot\",DeckGLPlot.__module__=\"panel.models.deckgl\",_a.prototype.default_view=DeckGLPlotView,_a.define((({Any:e,List:t,Str:o,Ref:i})=>({data:[e],data_sources:[t(i(column_data_source_1.ColumnDataSource)),[]],clickState:[e,{}],hoverState:[e,{}],initialViewState:[e,{}],layers:[t(e),[]],mapbox_api_key:[o,\"\"],throttle:[e,{}],tooltip:[e,!0],configuration:[o,\"\"],viewState:[e,{}]}))),_a.override({height:400,width:600})}\n//# sourceMappingURL=deckgl.min.js.map","min_map":"{\"version\":3,\"file\":\"deckgl.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"dom_1\",\"types_1\",\"layout_dom_1\",\"column_data_source_1\",\"debounce_1\",\"data_1\",\"layout_1\",\"lumagl_1\",\"tooltips_1\",\"extractClasses\",\"classesDict\",\"deck\",\"window\",\"classes\",\"Object\",\"keys\",\"filter\",\"x\",\"charAt\",\"toUpperCase\",\"cls\",\"carto\",\"CartoLibrary\",\"layers\",\"CARTO_LAYERS\",\"endsWith\",\"layer\",\"extractFunctions\",\"sources\",\"CARTO_SOURCES\",\"toLowerCase\",\"functionDict\",\"src\",\"DeckGLPlotView\",\"LayoutDOMView\",\"constructor\",\"super\",\"arguments\",\"this\",\"_initialized\",\"connect_signals\",\"data\",\"mapbox_api_key\",\"tooltip\",\"configuration\",\"initialViewState\",\"data_sources\",\"model\",\"properties\",\"on_change\",\"rerender_\",\"updateDeck\",\"_update_layers\",\"_connect_sources\",\"_layer_map\",\"_connected\",\"remove\",\"deckGL\",\"finalize\",\"_update_data\",\"render\",\"cds\",\"indexOf\",\"push\",\"initialize\",\"view_timeout\",\"throttle\",\"view\",\"_view_cb\",\"debounce\",\"event\",\"_on_viewState_event\",\"JSONConverter\",\"CSVLoader\",\"Tiles3DLoader\",\"loaders\",\"registerLoaders\",\"jsonConverterConfiguration\",\"functions\",\"enumerations\",\"COORDINATE_SYSTEM\",\"GL\",\"constants\",\"jsonConverter\",\"n\",\"isNumber\",\"transform_cds_to_records\",\"_on_click_event\",\"click_state\",\"coordinate\",\"lngLat\",\"index\",\"id\",\"clickState\",\"_on_hover_event\",\"hover_state\",\"hoverState\",\"view_state\",\"viewState\",\"normalize\",\"p\",\"startsWith\",\"viewport\",\"WebMercatorViewport\",\"nw\",\"unproject\",\"se\",\"width\",\"height\",\"child_models\",\"getData\",\"hover_timeout\",\"hover\",\"hover_cb\",\"onViewStateChange\",\"_sync_viewstate\",\"onClick\",\"onHover\",\"_map\",\"longitude\",\"latitude\",\"rest\",\"jumpTo\",\"center\",\"rerender\",\"r_after_render\",\"results\",\"convert\",\"setProps\",\"createDeck\",\"mapboxApiKey\",\"container\",\"jsonInput\",\"deckgl\",\"eval\",\"mergeConfiguration\",\"props\",\"getTooltip\",\"makeTooltip\",\"mapStyle\",\"map\",\"includes\",\"maplibregl\",\"Map\",\"style\",\"interactive\",\"controller\",\"mapboxgl\",\"mapboxApiAccessToken\",\"DeckGL\",\"err\",\"console\",\"error\",\"div\",\"class\",\"set_size\",\"MAPBOX_API_KEY\",\"shadow_el\",\"appendChild\",\"resize\",\"redraw\",\"after_layout\",\"after_resize\",\"__name__\",\"DeckGLPlot\",\"LayoutDOM\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Any\",\"List\",\"Str\",\"Ref\",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A,WAAWD,SAAW,aACtBC,WAAWG,WAAa,sBAEpBxK,GAAGyK,UAAUC,aAAexI,eAC5BlC,GAAG2K,QAAO,EAAGC,MAAKC,OAAMC,MAAKC,UAAU,CACnCrI,KAAM,CAACkI,GACP7H,aAAc,CAAC8H,EAAKE,EAAI3K,qBAAqB4K,mBAAoB,IACjElF,WAAY,CAAC8E,EAAK,CAAC,GACnB3E,WAAY,CAAC2E,EAAK,CAAC,GACnB9H,iBAAkB,CAAC8H,EAAK,CAAC,GACzBpJ,OAAQ,CAACqJ,EAAKD,GAAM,IACpBjI,eAAgB,CAACmI,EAAK,IACtB3G,SAAU,CAACyG,EAAK,CAAC,GACjBhI,QAAS,CAACgI,GAAK,GACf/H,cAAe,CAACiI,EAAK,IACrB3E,UAAW,CAACyE,EAAK,CAAC,OAEtB5K,GAAGiL,SAAS,CACRpE,OAAQ,IACRD,MAAO,KAGnB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/lumagl.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/lumagl.js","canonical":"models/lumagl","resolution":"ESM","id":"16d69e2b49","hash":"16d69e2b492be0eee1d1e532f8328e5efd92968d4107e0b6caaf3f334a70ec57","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.GL = void 0;\n// luma.gl\n// SPDX-License-Identifier: MIT\n// Copyright (c) vis.gl contributors\n/**\n * Standard WebGL, WebGL2 and extension constants (OpenGL constants)\n * @note (Most) of these constants are also defined on the WebGLRenderingContext interface.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants\n * @privateRemarks Locally called `GLEnum` instead of `GL`, because `babel-plugin-inline-webl-constants`\n *  both depends on and processes this module, but shouldn't replace these declarations.\n */\nvar GLEnum;\n(function (GLEnum) {\n    // Clearing buffers\n    // Constants passed to clear() to clear buffer masks.\n    /** Passed to clear to clear the current depth buffer. */\n    GLEnum[GLEnum[\"DEPTH_BUFFER_BIT\"] = 256] = \"DEPTH_BUFFER_BIT\";\n    /** Passed to clear to clear the current stencil buffer. */\n    GLEnum[GLEnum[\"STENCIL_BUFFER_BIT\"] = 1024] = \"STENCIL_BUFFER_BIT\";\n    /** Passed to clear to clear the current color buffer. */\n    GLEnum[GLEnum[\"COLOR_BUFFER_BIT\"] = 16384] = \"COLOR_BUFFER_BIT\";\n    // Rendering primitives\n    // Constants passed to drawElements() or drawArrays() to specify what kind of primitive to render.\n    /** Passed to drawElements or drawArrays to draw single points. */\n    GLEnum[GLEnum[\"POINTS\"] = 0] = \"POINTS\";\n    /** Passed to drawElements or drawArrays to draw lines. Each vertex connects to the one after it. */\n    GLEnum[GLEnum[\"LINES\"] = 1] = \"LINES\";\n    /** Passed to drawElements or drawArrays to draw lines. Each set of two vertices is treated as a separate line segment. */\n    GLEnum[GLEnum[\"LINE_LOOP\"] = 2] = \"LINE_LOOP\";\n    /** Passed to drawElements or drawArrays to draw a connected group of line segments from the first vertex to the last. */\n    GLEnum[GLEnum[\"LINE_STRIP\"] = 3] = \"LINE_STRIP\";\n    /** Passed to drawElements or drawArrays to draw triangles. Each set of three vertices creates a separate triangle. */\n    GLEnum[GLEnum[\"TRIANGLES\"] = 4] = \"TRIANGLES\";\n    /** Passed to drawElements or drawArrays to draw a connected group of triangles. */\n    GLEnum[GLEnum[\"TRIANGLE_STRIP\"] = 5] = \"TRIANGLE_STRIP\";\n    /** Passed to drawElements or drawArrays to draw a connected group of triangles. Each vertex connects to the previous and the first vertex in the fan. */\n    GLEnum[GLEnum[\"TRIANGLE_FAN\"] = 6] = \"TRIANGLE_FAN\";\n    // Blending modes\n    // Constants passed to blendFunc() or blendFuncSeparate() to specify the blending mode (for both, RBG and alpha, or separately).\n    /** Passed to blendFunc or blendFuncSeparate to turn off a component. */\n    GLEnum[GLEnum[\"ZERO\"] = 0] = \"ZERO\";\n    /** Passed to blendFunc or blendFuncSeparate to turn on a component. */\n    GLEnum[GLEnum[\"ONE\"] = 1] = \"ONE\";\n    /** Passed to blendFunc or blendFuncSeparate to multiply a component by the source elements color. */\n    GLEnum[GLEnum[\"SRC_COLOR\"] = 768] = \"SRC_COLOR\";\n    /** Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the source elements color. */\n    GLEnum[GLEnum[\"ONE_MINUS_SRC_COLOR\"] = 769] = \"ONE_MINUS_SRC_COLOR\";\n    /** Passed to blendFunc or blendFuncSeparate to multiply a component by the source's alpha. */\n    GLEnum[GLEnum[\"SRC_ALPHA\"] = 770] = \"SRC_ALPHA\";\n    /** Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the source's alpha. */\n    GLEnum[GLEnum[\"ONE_MINUS_SRC_ALPHA\"] = 771] = \"ONE_MINUS_SRC_ALPHA\";\n    /** Passed to blendFunc or blendFuncSeparate to multiply a component by the destination's alpha. */\n    GLEnum[GLEnum[\"DST_ALPHA\"] = 772] = \"DST_ALPHA\";\n    /** Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the destination's alpha. */\n    GLEnum[GLEnum[\"ONE_MINUS_DST_ALPHA\"] = 773] = \"ONE_MINUS_DST_ALPHA\";\n    /** Passed to blendFunc or blendFuncSeparate to multiply a component by the destination's color. */\n    GLEnum[GLEnum[\"DST_COLOR\"] = 774] = \"DST_COLOR\";\n    /** Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the destination's color. */\n    GLEnum[GLEnum[\"ONE_MINUS_DST_COLOR\"] = 775] = \"ONE_MINUS_DST_COLOR\";\n    /** Passed to blendFunc or blendFuncSeparate to multiply a component by the minimum of source's alpha or one minus the destination's alpha. */\n    GLEnum[GLEnum[\"SRC_ALPHA_SATURATE\"] = 776] = \"SRC_ALPHA_SATURATE\";\n    /** Passed to blendFunc or blendFuncSeparate to specify a constant color blend function. */\n    GLEnum[GLEnum[\"CONSTANT_COLOR\"] = 32769] = \"CONSTANT_COLOR\";\n    /** Passed to blendFunc or blendFuncSeparate to specify one minus a constant color blend function. */\n    GLEnum[GLEnum[\"ONE_MINUS_CONSTANT_COLOR\"] = 32770] = \"ONE_MINUS_CONSTANT_COLOR\";\n    /** Passed to blendFunc or blendFuncSeparate to specify a constant alpha blend function. */\n    GLEnum[GLEnum[\"CONSTANT_ALPHA\"] = 32771] = \"CONSTANT_ALPHA\";\n    /** Passed to blendFunc or blendFuncSeparate to specify one minus a constant alpha blend function. */\n    GLEnum[GLEnum[\"ONE_MINUS_CONSTANT_ALPHA\"] = 32772] = \"ONE_MINUS_CONSTANT_ALPHA\";\n    // Blending equations\n    // Constants passed to blendEquation() or blendEquationSeparate() to control\n    // how the blending is calculated (for both, RBG and alpha, or separately).\n    /** Passed to blendEquation or blendEquationSeparate to set an addition blend function. */\n    /** Passed to blendEquation or blendEquationSeparate to specify a subtraction blend function (source - destination). */\n    /** Passed to blendEquation or blendEquationSeparate to specify a reverse subtraction blend function (destination - source). */\n    GLEnum[GLEnum[\"FUNC_ADD\"] = 32774] = \"FUNC_ADD\";\n    GLEnum[GLEnum[\"FUNC_SUBTRACT\"] = 32778] = \"FUNC_SUBTRACT\";\n    GLEnum[GLEnum[\"FUNC_REVERSE_SUBTRACT\"] = 32779] = \"FUNC_REVERSE_SUBTRACT\";\n    // Getting GL parameter information\n    // Constants passed to getParameter() to specify what information to return.\n    /** Passed to getParameter to get the current RGB blend function. */\n    GLEnum[GLEnum[\"BLEND_EQUATION\"] = 32777] = \"BLEND_EQUATION\";\n    /** Passed to getParameter to get the current RGB blend function. Same as BLEND_EQUATION */\n    GLEnum[GLEnum[\"BLEND_EQUATION_RGB\"] = 32777] = \"BLEND_EQUATION_RGB\";\n    /** Passed to getParameter to get the current alpha blend function. Same as BLEND_EQUATION */\n    GLEnum[GLEnum[\"BLEND_EQUATION_ALPHA\"] = 34877] = \"BLEND_EQUATION_ALPHA\";\n    /** Passed to getParameter to get the current destination RGB blend function. */\n    GLEnum[GLEnum[\"BLEND_DST_RGB\"] = 32968] = \"BLEND_DST_RGB\";\n    /** Passed to getParameter to get the current destination RGB blend function. */\n    GLEnum[GLEnum[\"BLEND_SRC_RGB\"] = 32969] = \"BLEND_SRC_RGB\";\n    /** Passed to getParameter to get the current destination alpha blend function. */\n    GLEnum[GLEnum[\"BLEND_DST_ALPHA\"] = 32970] = \"BLEND_DST_ALPHA\";\n    /** Passed to getParameter to get the current source alpha blend function. */\n    GLEnum[GLEnum[\"BLEND_SRC_ALPHA\"] = 32971] = \"BLEND_SRC_ALPHA\";\n    /** Passed to getParameter to return a the current blend color. */\n    GLEnum[GLEnum[\"BLEND_COLOR\"] = 32773] = \"BLEND_COLOR\";\n    /** Passed to getParameter to get the array buffer binding. */\n    GLEnum[GLEnum[\"ARRAY_BUFFER_BINDING\"] = 34964] = \"ARRAY_BUFFER_BINDING\";\n    /** Passed to getParameter to get the current element array buffer. */\n    GLEnum[GLEnum[\"ELEMENT_ARRAY_BUFFER_BINDING\"] = 34965] = \"ELEMENT_ARRAY_BUFFER_BINDING\";\n    /** Passed to getParameter to get the current lineWidth (set by the lineWidth method). */\n    GLEnum[GLEnum[\"LINE_WIDTH\"] = 2849] = \"LINE_WIDTH\";\n    /** Passed to getParameter to get the current size of a point drawn with gl.POINTS */\n    GLEnum[GLEnum[\"ALIASED_POINT_SIZE_RANGE\"] = 33901] = \"ALIASED_POINT_SIZE_RANGE\";\n    /** Passed to getParameter to get the range of available widths for a line. Returns a length-2 array with the lo value at 0, and high at 1. */\n    GLEnum[GLEnum[\"ALIASED_LINE_WIDTH_RANGE\"] = 33902] = \"ALIASED_LINE_WIDTH_RANGE\";\n    /** Passed to getParameter to get the current value of cullFace. Should return FRONT, BACK, or FRONT_AND_BACK */\n    GLEnum[GLEnum[\"CULL_FACE_MODE\"] = 2885] = \"CULL_FACE_MODE\";\n    /** Passed to getParameter to determine the current value of frontFace. Should return CW or CCW. */\n    GLEnum[GLEnum[\"FRONT_FACE\"] = 2886] = \"FRONT_FACE\";\n    /** Passed to getParameter to return a length-2 array of floats giving the current depth range. */\n    GLEnum[GLEnum[\"DEPTH_RANGE\"] = 2928] = \"DEPTH_RANGE\";\n    /** Passed to getParameter to determine if the depth write mask is enabled. */\n    GLEnum[GLEnum[\"DEPTH_WRITEMASK\"] = 2930] = \"DEPTH_WRITEMASK\";\n    /** Passed to getParameter to determine the current depth clear value. */\n    GLEnum[GLEnum[\"DEPTH_CLEAR_VALUE\"] = 2931] = \"DEPTH_CLEAR_VALUE\";\n    /** Passed to getParameter to get the current depth function. Returns NEVER, ALWAYS, LESS, EQUAL, LEQUAL, GREATER, GEQUAL, or NOTEQUAL. */\n    GLEnum[GLEnum[\"DEPTH_FUNC\"] = 2932] = \"DEPTH_FUNC\";\n    /** Passed to getParameter to get the value the stencil will be cleared to. */\n    GLEnum[GLEnum[\"STENCIL_CLEAR_VALUE\"] = 2961] = \"STENCIL_CLEAR_VALUE\";\n    /** Passed to getParameter to get the current stencil function. Returns NEVER, ALWAYS, LESS, EQUAL, LEQUAL, GREATER, GEQUAL, or NOTEQUAL. */\n    GLEnum[GLEnum[\"STENCIL_FUNC\"] = 2962] = \"STENCIL_FUNC\";\n    /** Passed to getParameter to get the current stencil fail function. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP. */\n    GLEnum[GLEnum[\"STENCIL_FAIL\"] = 2964] = \"STENCIL_FAIL\";\n    /** Passed to getParameter to get the current stencil fail function should the depth buffer test fail. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP. */\n    GLEnum[GLEnum[\"STENCIL_PASS_DEPTH_FAIL\"] = 2965] = \"STENCIL_PASS_DEPTH_FAIL\";\n    /** Passed to getParameter to get the current stencil fail function should the depth buffer test pass. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP. */\n    GLEnum[GLEnum[\"STENCIL_PASS_DEPTH_PASS\"] = 2966] = \"STENCIL_PASS_DEPTH_PASS\";\n    /** Passed to getParameter to get the reference value used for stencil tests. */\n    GLEnum[GLEnum[\"STENCIL_REF\"] = 2967] = \"STENCIL_REF\";\n    GLEnum[GLEnum[\"STENCIL_VALUE_MASK\"] = 2963] = \"STENCIL_VALUE_MASK\";\n    GLEnum[GLEnum[\"STENCIL_WRITEMASK\"] = 2968] = \"STENCIL_WRITEMASK\";\n    GLEnum[GLEnum[\"STENCIL_BACK_FUNC\"] = 34816] = \"STENCIL_BACK_FUNC\";\n    GLEnum[GLEnum[\"STENCIL_BACK_FAIL\"] = 34817] = \"STENCIL_BACK_FAIL\";\n    GLEnum[GLEnum[\"STENCIL_BACK_PASS_DEPTH_FAIL\"] = 34818] = \"STENCIL_BACK_PASS_DEPTH_FAIL\";\n    GLEnum[GLEnum[\"STENCIL_BACK_PASS_DEPTH_PASS\"] = 34819] = \"STENCIL_BACK_PASS_DEPTH_PASS\";\n    GLEnum[GLEnum[\"STENCIL_BACK_REF\"] = 36003] = \"STENCIL_BACK_REF\";\n    GLEnum[GLEnum[\"STENCIL_BACK_VALUE_MASK\"] = 36004] = \"STENCIL_BACK_VALUE_MASK\";\n    GLEnum[GLEnum[\"STENCIL_BACK_WRITEMASK\"] = 36005] = \"STENCIL_BACK_WRITEMASK\";\n    /** An Int32Array with four elements for the current viewport dimensions. */\n    GLEnum[GLEnum[\"VIEWPORT\"] = 2978] = \"VIEWPORT\";\n    /** An Int32Array with four elements for the current scissor box dimensions. */\n    GLEnum[GLEnum[\"SCISSOR_BOX\"] = 3088] = \"SCISSOR_BOX\";\n    GLEnum[GLEnum[\"COLOR_CLEAR_VALUE\"] = 3106] = \"COLOR_CLEAR_VALUE\";\n    GLEnum[GLEnum[\"COLOR_WRITEMASK\"] = 3107] = \"COLOR_WRITEMASK\";\n    GLEnum[GLEnum[\"UNPACK_ALIGNMENT\"] = 3317] = \"UNPACK_ALIGNMENT\";\n    GLEnum[GLEnum[\"PACK_ALIGNMENT\"] = 3333] = \"PACK_ALIGNMENT\";\n    GLEnum[GLEnum[\"MAX_TEXTURE_SIZE\"] = 3379] = \"MAX_TEXTURE_SIZE\";\n    GLEnum[GLEnum[\"MAX_VIEWPORT_DIMS\"] = 3386] = \"MAX_VIEWPORT_DIMS\";\n    GLEnum[GLEnum[\"SUBPIXEL_BITS\"] = 3408] = \"SUBPIXEL_BITS\";\n    GLEnum[GLEnum[\"RED_BITS\"] = 3410] = \"RED_BITS\";\n    GLEnum[GLEnum[\"GREEN_BITS\"] = 3411] = \"GREEN_BITS\";\n    GLEnum[GLEnum[\"BLUE_BITS\"] = 3412] = \"BLUE_BITS\";\n    GLEnum[GLEnum[\"ALPHA_BITS\"] = 3413] = \"ALPHA_BITS\";\n    GLEnum[GLEnum[\"DEPTH_BITS\"] = 3414] = \"DEPTH_BITS\";\n    GLEnum[GLEnum[\"STENCIL_BITS\"] = 3415] = \"STENCIL_BITS\";\n    GLEnum[GLEnum[\"POLYGON_OFFSET_UNITS\"] = 10752] = \"POLYGON_OFFSET_UNITS\";\n    GLEnum[GLEnum[\"POLYGON_OFFSET_FACTOR\"] = 32824] = \"POLYGON_OFFSET_FACTOR\";\n    GLEnum[GLEnum[\"TEXTURE_BINDING_2D\"] = 32873] = \"TEXTURE_BINDING_2D\";\n    GLEnum[GLEnum[\"SAMPLE_BUFFERS\"] = 32936] = \"SAMPLE_BUFFERS\";\n    GLEnum[GLEnum[\"SAMPLES\"] = 32937] = \"SAMPLES\";\n    GLEnum[GLEnum[\"SAMPLE_COVERAGE_VALUE\"] = 32938] = \"SAMPLE_COVERAGE_VALUE\";\n    GLEnum[GLEnum[\"SAMPLE_COVERAGE_INVERT\"] = 32939] = \"SAMPLE_COVERAGE_INVERT\";\n    GLEnum[GLEnum[\"COMPRESSED_TEXTURE_FORMATS\"] = 34467] = \"COMPRESSED_TEXTURE_FORMATS\";\n    GLEnum[GLEnum[\"VENDOR\"] = 7936] = \"VENDOR\";\n    GLEnum[GLEnum[\"RENDERER\"] = 7937] = \"RENDERER\";\n    GLEnum[GLEnum[\"VERSION\"] = 7938] = \"VERSION\";\n    GLEnum[GLEnum[\"IMPLEMENTATION_COLOR_READ_TYPE\"] = 35738] = \"IMPLEMENTATION_COLOR_READ_TYPE\";\n    GLEnum[GLEnum[\"IMPLEMENTATION_COLOR_READ_FORMAT\"] = 35739] = \"IMPLEMENTATION_COLOR_READ_FORMAT\";\n    GLEnum[GLEnum[\"BROWSER_DEFAULT_WEBGL\"] = 37444] = \"BROWSER_DEFAULT_WEBGL\";\n    // Buffers\n    // Constants passed to bufferData(), bufferSubData(), bindBuffer(), or\n    // getBufferParameter().\n    /** Passed to bufferData as a hint about whether the contents of the buffer are likely to be used often and not change often. */\n    GLEnum[GLEnum[\"STATIC_DRAW\"] = 35044] = \"STATIC_DRAW\";\n    /** Passed to bufferData as a hint about whether the contents of the buffer are likely to not be used often. */\n    GLEnum[GLEnum[\"STREAM_DRAW\"] = 35040] = \"STREAM_DRAW\";\n    /** Passed to bufferData as a hint about whether the contents of the buffer are likely to be used often and change often. */\n    GLEnum[GLEnum[\"DYNAMIC_DRAW\"] = 35048] = \"DYNAMIC_DRAW\";\n    /** Passed to bindBuffer or bufferData to specify the type of buffer being used. */\n    GLEnum[GLEnum[\"ARRAY_BUFFER\"] = 34962] = \"ARRAY_BUFFER\";\n    /** Passed to bindBuffer or bufferData to specify the type of buffer being used. */\n    GLEnum[GLEnum[\"ELEMENT_ARRAY_BUFFER\"] = 34963] = \"ELEMENT_ARRAY_BUFFER\";\n    /** Passed to getBufferParameter to get a buffer's size. */\n    GLEnum[GLEnum[\"BUFFER_SIZE\"] = 34660] = \"BUFFER_SIZE\";\n    /** Passed to getBufferParameter to get the hint for the buffer passed in when it was created. */\n    GLEnum[GLEnum[\"BUFFER_USAGE\"] = 34661] = \"BUFFER_USAGE\";\n    // Vertex attributes\n    // Constants passed to getVertexAttrib().\n    /** Passed to getVertexAttrib to read back the current vertex attribute. */\n    GLEnum[GLEnum[\"CURRENT_VERTEX_ATTRIB\"] = 34342] = \"CURRENT_VERTEX_ATTRIB\";\n    GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_ENABLED\"] = 34338] = \"VERTEX_ATTRIB_ARRAY_ENABLED\";\n    GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_SIZE\"] = 34339] = \"VERTEX_ATTRIB_ARRAY_SIZE\";\n    GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_STRIDE\"] = 34340] = \"VERTEX_ATTRIB_ARRAY_STRIDE\";\n    GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_TYPE\"] = 34341] = \"VERTEX_ATTRIB_ARRAY_TYPE\";\n    GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_NORMALIZED\"] = 34922] = \"VERTEX_ATTRIB_ARRAY_NORMALIZED\";\n    GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_POINTER\"] = 34373] = \"VERTEX_ATTRIB_ARRAY_POINTER\";\n    GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING\"] = 34975] = \"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING\";\n    // Culling\n    // Constants passed to cullFace().\n    /** Passed to enable/disable to turn on/off culling. Can also be used with getParameter to find the current culling method. */\n    GLEnum[GLEnum[\"CULL_FACE\"] = 2884] = \"CULL_FACE\";\n    /** Passed to cullFace to specify that only front faces should be culled. */\n    GLEnum[GLEnum[\"FRONT\"] = 1028] = \"FRONT\";\n    /** Passed to cullFace to specify that only back faces should be culled. */\n    GLEnum[GLEnum[\"BACK\"] = 1029] = \"BACK\";\n    /** Passed to cullFace to specify that front and back faces should be culled. */\n    GLEnum[GLEnum[\"FRONT_AND_BACK\"] = 1032] = \"FRONT_AND_BACK\";\n    // Enabling and disabling\n    // Constants passed to enable() or disable().\n    /** Passed to enable/disable to turn on/off blending. Can also be used with getParameter to find the current blending method. */\n    GLEnum[GLEnum[\"BLEND\"] = 3042] = \"BLEND\";\n    /** Passed to enable/disable to turn on/off the depth test. Can also be used with getParameter to query the depth test. */\n    GLEnum[GLEnum[\"DEPTH_TEST\"] = 2929] = \"DEPTH_TEST\";\n    /** Passed to enable/disable to turn on/off dithering. Can also be used with getParameter to find the current dithering method. */\n    GLEnum[GLEnum[\"DITHER\"] = 3024] = \"DITHER\";\n    /** Passed to enable/disable to turn on/off the polygon offset. Useful for rendering hidden-line images, decals, and or solids with highlighted edges. Can also be used with getParameter to query the scissor test. */\n    GLEnum[GLEnum[\"POLYGON_OFFSET_FILL\"] = 32823] = \"POLYGON_OFFSET_FILL\";\n    /** Passed to enable/disable to turn on/off the alpha to coverage. Used in multi-sampling alpha channels. */\n    GLEnum[GLEnum[\"SAMPLE_ALPHA_TO_COVERAGE\"] = 32926] = \"SAMPLE_ALPHA_TO_COVERAGE\";\n    /** Passed to enable/disable to turn on/off the sample coverage. Used in multi-sampling. */\n    GLEnum[GLEnum[\"SAMPLE_COVERAGE\"] = 32928] = \"SAMPLE_COVERAGE\";\n    /** Passed to enable/disable to turn on/off the scissor test. Can also be used with getParameter to query the scissor test. */\n    GLEnum[GLEnum[\"SCISSOR_TEST\"] = 3089] = \"SCISSOR_TEST\";\n    /** Passed to enable/disable to turn on/off the stencil test. Can also be used with getParameter to query the stencil test. */\n    GLEnum[GLEnum[\"STENCIL_TEST\"] = 2960] = \"STENCIL_TEST\";\n    // Errors\n    // Constants returned from getError().\n    /** Returned from getError(). */\n    GLEnum[GLEnum[\"NO_ERROR\"] = 0] = \"NO_ERROR\";\n    /** Returned from getError(). */\n    GLEnum[GLEnum[\"INVALID_ENUM\"] = 1280] = \"INVALID_ENUM\";\n    /** Returned from getError(). */\n    GLEnum[GLEnum[\"INVALID_VALUE\"] = 1281] = \"INVALID_VALUE\";\n    /** Returned from getError(). */\n    GLEnum[GLEnum[\"INVALID_OPERATION\"] = 1282] = \"INVALID_OPERATION\";\n    /** Returned from getError(). */\n    GLEnum[GLEnum[\"OUT_OF_MEMORY\"] = 1285] = \"OUT_OF_MEMORY\";\n    /** Returned from getError(). */\n    GLEnum[GLEnum[\"CONTEXT_LOST_WEBGL\"] = 37442] = \"CONTEXT_LOST_WEBGL\";\n    // Front face directions\n    // Constants passed to frontFace().\n    /** Passed to frontFace to specify the front face of a polygon is drawn in the clockwise direction */\n    GLEnum[GLEnum[\"CW\"] = 2304] = \"CW\";\n    /** Passed to frontFace to specify the front face of a polygon is drawn in the counter clockwise direction */\n    GLEnum[GLEnum[\"CCW\"] = 2305] = \"CCW\";\n    // Hints\n    // Constants passed to hint()\n    /** There is no preference for this behavior. */\n    GLEnum[GLEnum[\"DONT_CARE\"] = 4352] = \"DONT_CARE\";\n    /** The most efficient behavior should be used. */\n    GLEnum[GLEnum[\"FASTEST\"] = 4353] = \"FASTEST\";\n    /** The most correct or the highest quality option should be used. */\n    GLEnum[GLEnum[\"NICEST\"] = 4354] = \"NICEST\";\n    /** Hint for the quality of filtering when generating mipmap images with WebGLRenderingContext.generateMipmap(). */\n    GLEnum[GLEnum[\"GENERATE_MIPMAP_HINT\"] = 33170] = \"GENERATE_MIPMAP_HINT\";\n    // Data types\n    GLEnum[GLEnum[\"BYTE\"] = 5120] = \"BYTE\";\n    GLEnum[GLEnum[\"UNSIGNED_BYTE\"] = 5121] = \"UNSIGNED_BYTE\";\n    GLEnum[GLEnum[\"SHORT\"] = 5122] = \"SHORT\";\n    GLEnum[GLEnum[\"UNSIGNED_SHORT\"] = 5123] = \"UNSIGNED_SHORT\";\n    GLEnum[GLEnum[\"INT\"] = 5124] = \"INT\";\n    GLEnum[GLEnum[\"UNSIGNED_INT\"] = 5125] = \"UNSIGNED_INT\";\n    GLEnum[GLEnum[\"FLOAT\"] = 5126] = \"FLOAT\";\n    GLEnum[GLEnum[\"DOUBLE\"] = 5130] = \"DOUBLE\";\n    // Pixel formats\n    GLEnum[GLEnum[\"DEPTH_COMPONENT\"] = 6402] = \"DEPTH_COMPONENT\";\n    GLEnum[GLEnum[\"ALPHA\"] = 6406] = \"ALPHA\";\n    GLEnum[GLEnum[\"RGB\"] = 6407] = \"RGB\";\n    GLEnum[GLEnum[\"RGBA\"] = 6408] = \"RGBA\";\n    GLEnum[GLEnum[\"LUMINANCE\"] = 6409] = \"LUMINANCE\";\n    GLEnum[GLEnum[\"LUMINANCE_ALPHA\"] = 6410] = \"LUMINANCE_ALPHA\";\n    // Pixel types\n    // UNSIGNED_BYTE = 0x1401,\n    GLEnum[GLEnum[\"UNSIGNED_SHORT_4_4_4_4\"] = 32819] = \"UNSIGNED_SHORT_4_4_4_4\";\n    GLEnum[GLEnum[\"UNSIGNED_SHORT_5_5_5_1\"] = 32820] = \"UNSIGNED_SHORT_5_5_5_1\";\n    GLEnum[GLEnum[\"UNSIGNED_SHORT_5_6_5\"] = 33635] = \"UNSIGNED_SHORT_5_6_5\";\n    // Shaders\n    // Constants passed to createShader() or getShaderParameter()\n    /** Passed to createShader to define a fragment shader. */\n    GLEnum[GLEnum[\"FRAGMENT_SHADER\"] = 35632] = \"FRAGMENT_SHADER\";\n    /** Passed to createShader to define a vertex shader */\n    GLEnum[GLEnum[\"VERTEX_SHADER\"] = 35633] = \"VERTEX_SHADER\";\n    /** Passed to getShaderParameter to get the status of the compilation. Returns false if the shader was not compiled. You can then query getShaderInfoLog to find the exact error */\n    GLEnum[GLEnum[\"COMPILE_STATUS\"] = 35713] = \"COMPILE_STATUS\";\n    /** Passed to getShaderParameter to determine if a shader was deleted via deleteShader. Returns true if it was, false otherwise. */\n    GLEnum[GLEnum[\"DELETE_STATUS\"] = 35712] = \"DELETE_STATUS\";\n    /** Passed to getProgramParameter after calling linkProgram to determine if a program was linked correctly. Returns false if there were errors. Use getProgramInfoLog to find the exact error. */\n    GLEnum[GLEnum[\"LINK_STATUS\"] = 35714] = \"LINK_STATUS\";\n    /** Passed to getProgramParameter after calling validateProgram to determine if it is valid. Returns false if errors were found. */\n    GLEnum[GLEnum[\"VALIDATE_STATUS\"] = 35715] = \"VALIDATE_STATUS\";\n    /** Passed to getProgramParameter after calling attachShader to determine if the shader was attached correctly. Returns false if errors occurred. */\n    GLEnum[GLEnum[\"ATTACHED_SHADERS\"] = 35717] = \"ATTACHED_SHADERS\";\n    /** Passed to getProgramParameter to get the number of attributes active in a program. */\n    GLEnum[GLEnum[\"ACTIVE_ATTRIBUTES\"] = 35721] = \"ACTIVE_ATTRIBUTES\";\n    /** Passed to getProgramParameter to get the number of uniforms active in a program. */\n    GLEnum[GLEnum[\"ACTIVE_UNIFORMS\"] = 35718] = \"ACTIVE_UNIFORMS\";\n    /** The maximum number of entries possible in the vertex attribute list. */\n    GLEnum[GLEnum[\"MAX_VERTEX_ATTRIBS\"] = 34921] = \"MAX_VERTEX_ATTRIBS\";\n    GLEnum[GLEnum[\"MAX_VERTEX_UNIFORM_VECTORS\"] = 36347] = \"MAX_VERTEX_UNIFORM_VECTORS\";\n    GLEnum[GLEnum[\"MAX_VARYING_VECTORS\"] = 36348] = \"MAX_VARYING_VECTORS\";\n    GLEnum[GLEnum[\"MAX_COMBINED_TEXTURE_IMAGE_UNITS\"] = 35661] = \"MAX_COMBINED_TEXTURE_IMAGE_UNITS\";\n    GLEnum[GLEnum[\"MAX_VERTEX_TEXTURE_IMAGE_UNITS\"] = 35660] = \"MAX_VERTEX_TEXTURE_IMAGE_UNITS\";\n    /** Implementation dependent number of maximum texture units. At least 8. */\n    GLEnum[GLEnum[\"MAX_TEXTURE_IMAGE_UNITS\"] = 34930] = \"MAX_TEXTURE_IMAGE_UNITS\";\n    GLEnum[GLEnum[\"MAX_FRAGMENT_UNIFORM_VECTORS\"] = 36349] = \"MAX_FRAGMENT_UNIFORM_VECTORS\";\n    GLEnum[GLEnum[\"SHADER_TYPE\"] = 35663] = \"SHADER_TYPE\";\n    GLEnum[GLEnum[\"SHADING_LANGUAGE_VERSION\"] = 35724] = \"SHADING_LANGUAGE_VERSION\";\n    GLEnum[GLEnum[\"CURRENT_PROGRAM\"] = 35725] = \"CURRENT_PROGRAM\";\n    // Depth or stencil tests\n    // Constants passed to depthFunc() or stencilFunc().\n    /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will never pass, i.e., nothing will be drawn. */\n    GLEnum[GLEnum[\"NEVER\"] = 512] = \"NEVER\";\n    /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than the stored value. */\n    GLEnum[GLEnum[\"LESS\"] = 513] = \"LESS\";\n    /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is equals to the stored value. */\n    GLEnum[GLEnum[\"EQUAL\"] = 514] = \"EQUAL\";\n    /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than or equal to the stored value. */\n    GLEnum[GLEnum[\"LEQUAL\"] = 515] = \"LEQUAL\";\n    /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than the stored value. */\n    GLEnum[GLEnum[\"GREATER\"] = 516] = \"GREATER\";\n    /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is not equal to the stored value. */\n    GLEnum[GLEnum[\"NOTEQUAL\"] = 517] = \"NOTEQUAL\";\n    /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than or equal to the stored value. */\n    GLEnum[GLEnum[\"GEQUAL\"] = 518] = \"GEQUAL\";\n    /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will always pass, i.e., pixels will be drawn in the order they are drawn. */\n    GLEnum[GLEnum[\"ALWAYS\"] = 519] = \"ALWAYS\";\n    // Stencil actions\n    // Constants passed to stencilOp().\n    GLEnum[GLEnum[\"KEEP\"] = 7680] = \"KEEP\";\n    GLEnum[GLEnum[\"REPLACE\"] = 7681] = \"REPLACE\";\n    GLEnum[GLEnum[\"INCR\"] = 7682] = \"INCR\";\n    GLEnum[GLEnum[\"DECR\"] = 7683] = \"DECR\";\n    GLEnum[GLEnum[\"INVERT\"] = 5386] = \"INVERT\";\n    GLEnum[GLEnum[\"INCR_WRAP\"] = 34055] = \"INCR_WRAP\";\n    GLEnum[GLEnum[\"DECR_WRAP\"] = 34056] = \"DECR_WRAP\";\n    // Textures\n    // Constants passed to texParameteri(),\n    // texParameterf(), bindTexture(), texImage2D(), and others.\n    GLEnum[GLEnum[\"NEAREST\"] = 9728] = \"NEAREST\";\n    GLEnum[GLEnum[\"LINEAR\"] = 9729] = \"LINEAR\";\n    GLEnum[GLEnum[\"NEAREST_MIPMAP_NEAREST\"] = 9984] = \"NEAREST_MIPMAP_NEAREST\";\n    GLEnum[GLEnum[\"LINEAR_MIPMAP_NEAREST\"] = 9985] = \"LINEAR_MIPMAP_NEAREST\";\n    GLEnum[GLEnum[\"NEAREST_MIPMAP_LINEAR\"] = 9986] = \"NEAREST_MIPMAP_LINEAR\";\n    GLEnum[GLEnum[\"LINEAR_MIPMAP_LINEAR\"] = 9987] = \"LINEAR_MIPMAP_LINEAR\";\n    /** The texture magnification function is used when the pixel being textured maps to an area less than or equal to one texture element. It sets the texture magnification function to either GL_NEAREST or GL_LINEAR (see below). GL_NEAREST is generally faster than GL_LINEAR, but it can produce textured images with sharper edges because the transition between texture elements is not as smooth. Default: GL_LINEAR.  */\n    GLEnum[GLEnum[\"TEXTURE_MAG_FILTER\"] = 10240] = \"TEXTURE_MAG_FILTER\";\n    /** The texture minifying function is used whenever the pixel being textured maps to an area greater than one texture element. There are six defined minifying functions. Two of them use the nearest one or nearest four texture elements to compute the texture value. The other four use mipmaps. Default: GL_NEAREST_MIPMAP_LINEAR */\n    GLEnum[GLEnum[\"TEXTURE_MIN_FILTER\"] = 10241] = \"TEXTURE_MIN_FILTER\";\n    /** Sets the wrap parameter for texture coordinate  to either GL_CLAMP_TO_EDGE, GL_MIRRORED_REPEAT, or GL_REPEAT. G */\n    GLEnum[GLEnum[\"TEXTURE_WRAP_S\"] = 10242] = \"TEXTURE_WRAP_S\";\n    /** Sets the wrap parameter for texture coordinate  to either GL_CLAMP_TO_EDGE, GL_MIRRORED_REPEAT, or GL_REPEAT. G */\n    GLEnum[GLEnum[\"TEXTURE_WRAP_T\"] = 10243] = \"TEXTURE_WRAP_T\";\n    GLEnum[GLEnum[\"TEXTURE_2D\"] = 3553] = \"TEXTURE_2D\";\n    GLEnum[GLEnum[\"TEXTURE\"] = 5890] = \"TEXTURE\";\n    GLEnum[GLEnum[\"TEXTURE_CUBE_MAP\"] = 34067] = \"TEXTURE_CUBE_MAP\";\n    GLEnum[GLEnum[\"TEXTURE_BINDING_CUBE_MAP\"] = 34068] = \"TEXTURE_BINDING_CUBE_MAP\";\n    GLEnum[GLEnum[\"TEXTURE_CUBE_MAP_POSITIVE_X\"] = 34069] = \"TEXTURE_CUBE_MAP_POSITIVE_X\";\n    GLEnum[GLEnum[\"TEXTURE_CUBE_MAP_NEGATIVE_X\"] = 34070] = \"TEXTURE_CUBE_MAP_NEGATIVE_X\";\n    GLEnum[GLEnum[\"TEXTURE_CUBE_MAP_POSITIVE_Y\"] = 34071] = \"TEXTURE_CUBE_MAP_POSITIVE_Y\";\n    GLEnum[GLEnum[\"TEXTURE_CUBE_MAP_NEGATIVE_Y\"] = 34072] = \"TEXTURE_CUBE_MAP_NEGATIVE_Y\";\n    GLEnum[GLEnum[\"TEXTURE_CUBE_MAP_POSITIVE_Z\"] = 34073] = \"TEXTURE_CUBE_MAP_POSITIVE_Z\";\n    GLEnum[GLEnum[\"TEXTURE_CUBE_MAP_NEGATIVE_Z\"] = 34074] = \"TEXTURE_CUBE_MAP_NEGATIVE_Z\";\n    GLEnum[GLEnum[\"MAX_CUBE_MAP_TEXTURE_SIZE\"] = 34076] = \"MAX_CUBE_MAP_TEXTURE_SIZE\";\n    // TEXTURE0 - 31 0x84C0 - 0x84DF A texture unit.\n    GLEnum[GLEnum[\"TEXTURE0\"] = 33984] = \"TEXTURE0\";\n    GLEnum[GLEnum[\"ACTIVE_TEXTURE\"] = 34016] = \"ACTIVE_TEXTURE\";\n    GLEnum[GLEnum[\"REPEAT\"] = 10497] = \"REPEAT\";\n    GLEnum[GLEnum[\"CLAMP_TO_EDGE\"] = 33071] = \"CLAMP_TO_EDGE\";\n    GLEnum[GLEnum[\"MIRRORED_REPEAT\"] = 33648] = \"MIRRORED_REPEAT\";\n    // Emulation\n    GLEnum[GLEnum[\"TEXTURE_WIDTH\"] = 4096] = \"TEXTURE_WIDTH\";\n    GLEnum[GLEnum[\"TEXTURE_HEIGHT\"] = 4097] = \"TEXTURE_HEIGHT\";\n    // Uniform types\n    GLEnum[GLEnum[\"FLOAT_VEC2\"] = 35664] = \"FLOAT_VEC2\";\n    GLEnum[GLEnum[\"FLOAT_VEC3\"] = 35665] = \"FLOAT_VEC3\";\n    GLEnum[GLEnum[\"FLOAT_VEC4\"] = 35666] = \"FLOAT_VEC4\";\n    GLEnum[GLEnum[\"INT_VEC2\"] = 35667] = \"INT_VEC2\";\n    GLEnum[GLEnum[\"INT_VEC3\"] = 35668] = \"INT_VEC3\";\n    GLEnum[GLEnum[\"INT_VEC4\"] = 35669] = \"INT_VEC4\";\n    GLEnum[GLEnum[\"BOOL\"] = 35670] = \"BOOL\";\n    GLEnum[GLEnum[\"BOOL_VEC2\"] = 35671] = \"BOOL_VEC2\";\n    GLEnum[GLEnum[\"BOOL_VEC3\"] = 35672] = \"BOOL_VEC3\";\n    GLEnum[GLEnum[\"BOOL_VEC4\"] = 35673] = \"BOOL_VEC4\";\n    GLEnum[GLEnum[\"FLOAT_MAT2\"] = 35674] = \"FLOAT_MAT2\";\n    GLEnum[GLEnum[\"FLOAT_MAT3\"] = 35675] = \"FLOAT_MAT3\";\n    GLEnum[GLEnum[\"FLOAT_MAT4\"] = 35676] = \"FLOAT_MAT4\";\n    GLEnum[GLEnum[\"SAMPLER_2D\"] = 35678] = \"SAMPLER_2D\";\n    GLEnum[GLEnum[\"SAMPLER_CUBE\"] = 35680] = \"SAMPLER_CUBE\";\n    // Shader precision-specified types\n    GLEnum[GLEnum[\"LOW_FLOAT\"] = 36336] = \"LOW_FLOAT\";\n    GLEnum[GLEnum[\"MEDIUM_FLOAT\"] = 36337] = \"MEDIUM_FLOAT\";\n    GLEnum[GLEnum[\"HIGH_FLOAT\"] = 36338] = \"HIGH_FLOAT\";\n    GLEnum[GLEnum[\"LOW_INT\"] = 36339] = \"LOW_INT\";\n    GLEnum[GLEnum[\"MEDIUM_INT\"] = 36340] = \"MEDIUM_INT\";\n    GLEnum[GLEnum[\"HIGH_INT\"] = 36341] = \"HIGH_INT\";\n    // Framebuffers and renderbuffers\n    GLEnum[GLEnum[\"FRAMEBUFFER\"] = 36160] = \"FRAMEBUFFER\";\n    GLEnum[GLEnum[\"RENDERBUFFER\"] = 36161] = \"RENDERBUFFER\";\n    GLEnum[GLEnum[\"RGBA4\"] = 32854] = \"RGBA4\";\n    GLEnum[GLEnum[\"RGB5_A1\"] = 32855] = \"RGB5_A1\";\n    GLEnum[GLEnum[\"RGB565\"] = 36194] = \"RGB565\";\n    GLEnum[GLEnum[\"DEPTH_COMPONENT16\"] = 33189] = \"DEPTH_COMPONENT16\";\n    GLEnum[GLEnum[\"STENCIL_INDEX\"] = 6401] = \"STENCIL_INDEX\";\n    GLEnum[GLEnum[\"STENCIL_INDEX8\"] = 36168] = \"STENCIL_INDEX8\";\n    GLEnum[GLEnum[\"DEPTH_STENCIL\"] = 34041] = \"DEPTH_STENCIL\";\n    GLEnum[GLEnum[\"RENDERBUFFER_WIDTH\"] = 36162] = \"RENDERBUFFER_WIDTH\";\n    GLEnum[GLEnum[\"RENDERBUFFER_HEIGHT\"] = 36163] = \"RENDERBUFFER_HEIGHT\";\n    GLEnum[GLEnum[\"RENDERBUFFER_INTERNAL_FORMAT\"] = 36164] = \"RENDERBUFFER_INTERNAL_FORMAT\";\n    GLEnum[GLEnum[\"RENDERBUFFER_RED_SIZE\"] = 36176] = \"RENDERBUFFER_RED_SIZE\";\n    GLEnum[GLEnum[\"RENDERBUFFER_GREEN_SIZE\"] = 36177] = \"RENDERBUFFER_GREEN_SIZE\";\n    GLEnum[GLEnum[\"RENDERBUFFER_BLUE_SIZE\"] = 36178] = \"RENDERBUFFER_BLUE_SIZE\";\n    GLEnum[GLEnum[\"RENDERBUFFER_ALPHA_SIZE\"] = 36179] = \"RENDERBUFFER_ALPHA_SIZE\";\n    GLEnum[GLEnum[\"RENDERBUFFER_DEPTH_SIZE\"] = 36180] = \"RENDERBUFFER_DEPTH_SIZE\";\n    GLEnum[GLEnum[\"RENDERBUFFER_STENCIL_SIZE\"] = 36181] = \"RENDERBUFFER_STENCIL_SIZE\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE\"] = 36048] = \"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME\"] = 36049] = \"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL\"] = 36050] = \"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE\"] = 36051] = \"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE\";\n    GLEnum[GLEnum[\"COLOR_ATTACHMENT0\"] = 36064] = \"COLOR_ATTACHMENT0\";\n    GLEnum[GLEnum[\"DEPTH_ATTACHMENT\"] = 36096] = \"DEPTH_ATTACHMENT\";\n    GLEnum[GLEnum[\"STENCIL_ATTACHMENT\"] = 36128] = \"STENCIL_ATTACHMENT\";\n    GLEnum[GLEnum[\"DEPTH_STENCIL_ATTACHMENT\"] = 33306] = \"DEPTH_STENCIL_ATTACHMENT\";\n    GLEnum[GLEnum[\"NONE\"] = 0] = \"NONE\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_COMPLETE\"] = 36053] = \"FRAMEBUFFER_COMPLETE\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_INCOMPLETE_ATTACHMENT\"] = 36054] = \"FRAMEBUFFER_INCOMPLETE_ATTACHMENT\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT\"] = 36055] = \"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_INCOMPLETE_DIMENSIONS\"] = 36057] = \"FRAMEBUFFER_INCOMPLETE_DIMENSIONS\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_UNSUPPORTED\"] = 36061] = \"FRAMEBUFFER_UNSUPPORTED\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_BINDING\"] = 36006] = \"FRAMEBUFFER_BINDING\";\n    GLEnum[GLEnum[\"RENDERBUFFER_BINDING\"] = 36007] = \"RENDERBUFFER_BINDING\";\n    GLEnum[GLEnum[\"READ_FRAMEBUFFER\"] = 36008] = \"READ_FRAMEBUFFER\";\n    GLEnum[GLEnum[\"DRAW_FRAMEBUFFER\"] = 36009] = \"DRAW_FRAMEBUFFER\";\n    GLEnum[GLEnum[\"MAX_RENDERBUFFER_SIZE\"] = 34024] = \"MAX_RENDERBUFFER_SIZE\";\n    GLEnum[GLEnum[\"INVALID_FRAMEBUFFER_OPERATION\"] = 1286] = \"INVALID_FRAMEBUFFER_OPERATION\";\n    // Pixel storage modes\n    // Constants passed to pixelStorei().\n    GLEnum[GLEnum[\"UNPACK_FLIP_Y_WEBGL\"] = 37440] = \"UNPACK_FLIP_Y_WEBGL\";\n    GLEnum[GLEnum[\"UNPACK_PREMULTIPLY_ALPHA_WEBGL\"] = 37441] = \"UNPACK_PREMULTIPLY_ALPHA_WEBGL\";\n    GLEnum[GLEnum[\"UNPACK_COLORSPACE_CONVERSION_WEBGL\"] = 37443] = \"UNPACK_COLORSPACE_CONVERSION_WEBGL\";\n    // Additional constants defined WebGL 2\n    // These constants are defined on the WebGL2RenderingContext interface.\n    // All WebGL 1 constants are also available in a WebGL 2 context.\n    // Getting GL parameter information\n    // Constants passed to getParameter()\n    // to specify what information to return.\n    GLEnum[GLEnum[\"READ_BUFFER\"] = 3074] = \"READ_BUFFER\";\n    GLEnum[GLEnum[\"UNPACK_ROW_LENGTH\"] = 3314] = \"UNPACK_ROW_LENGTH\";\n    GLEnum[GLEnum[\"UNPACK_SKIP_ROWS\"] = 3315] = \"UNPACK_SKIP_ROWS\";\n    GLEnum[GLEnum[\"UNPACK_SKIP_PIXELS\"] = 3316] = \"UNPACK_SKIP_PIXELS\";\n    GLEnum[GLEnum[\"PACK_ROW_LENGTH\"] = 3330] = \"PACK_ROW_LENGTH\";\n    GLEnum[GLEnum[\"PACK_SKIP_ROWS\"] = 3331] = \"PACK_SKIP_ROWS\";\n    GLEnum[GLEnum[\"PACK_SKIP_PIXELS\"] = 3332] = \"PACK_SKIP_PIXELS\";\n    GLEnum[GLEnum[\"TEXTURE_BINDING_3D\"] = 32874] = \"TEXTURE_BINDING_3D\";\n    GLEnum[GLEnum[\"UNPACK_SKIP_IMAGES\"] = 32877] = \"UNPACK_SKIP_IMAGES\";\n    GLEnum[GLEnum[\"UNPACK_IMAGE_HEIGHT\"] = 32878] = \"UNPACK_IMAGE_HEIGHT\";\n    GLEnum[GLEnum[\"MAX_3D_TEXTURE_SIZE\"] = 32883] = \"MAX_3D_TEXTURE_SIZE\";\n    GLEnum[GLEnum[\"MAX_ELEMENTS_VERTICES\"] = 33000] = \"MAX_ELEMENTS_VERTICES\";\n    GLEnum[GLEnum[\"MAX_ELEMENTS_INDICES\"] = 33001] = \"MAX_ELEMENTS_INDICES\";\n    GLEnum[GLEnum[\"MAX_TEXTURE_LOD_BIAS\"] = 34045] = \"MAX_TEXTURE_LOD_BIAS\";\n    GLEnum[GLEnum[\"MAX_FRAGMENT_UNIFORM_COMPONENTS\"] = 35657] = \"MAX_FRAGMENT_UNIFORM_COMPONENTS\";\n    GLEnum[GLEnum[\"MAX_VERTEX_UNIFORM_COMPONENTS\"] = 35658] = \"MAX_VERTEX_UNIFORM_COMPONENTS\";\n    GLEnum[GLEnum[\"MAX_ARRAY_TEXTURE_LAYERS\"] = 35071] = \"MAX_ARRAY_TEXTURE_LAYERS\";\n    GLEnum[GLEnum[\"MIN_PROGRAM_TEXEL_OFFSET\"] = 35076] = \"MIN_PROGRAM_TEXEL_OFFSET\";\n    GLEnum[GLEnum[\"MAX_PROGRAM_TEXEL_OFFSET\"] = 35077] = \"MAX_PROGRAM_TEXEL_OFFSET\";\n    GLEnum[GLEnum[\"MAX_VARYING_COMPONENTS\"] = 35659] = \"MAX_VARYING_COMPONENTS\";\n    GLEnum[GLEnum[\"FRAGMENT_SHADER_DERIVATIVE_HINT\"] = 35723] = \"FRAGMENT_SHADER_DERIVATIVE_HINT\";\n    GLEnum[GLEnum[\"RASTERIZER_DISCARD\"] = 35977] = \"RASTERIZER_DISCARD\";\n    GLEnum[GLEnum[\"VERTEX_ARRAY_BINDING\"] = 34229] = \"VERTEX_ARRAY_BINDING\";\n    GLEnum[GLEnum[\"MAX_VERTEX_OUTPUT_COMPONENTS\"] = 37154] = \"MAX_VERTEX_OUTPUT_COMPONENTS\";\n    GLEnum[GLEnum[\"MAX_FRAGMENT_INPUT_COMPONENTS\"] = 37157] = \"MAX_FRAGMENT_INPUT_COMPONENTS\";\n    GLEnum[GLEnum[\"MAX_SERVER_WAIT_TIMEOUT\"] = 37137] = \"MAX_SERVER_WAIT_TIMEOUT\";\n    GLEnum[GLEnum[\"MAX_ELEMENT_INDEX\"] = 36203] = \"MAX_ELEMENT_INDEX\";\n    // Textures\n    // Constants passed to texParameteri(),\n    // texParameterf(), bindTexture(), texImage2D(), and others.\n    GLEnum[GLEnum[\"RED\"] = 6403] = \"RED\";\n    GLEnum[GLEnum[\"RGB8\"] = 32849] = \"RGB8\";\n    GLEnum[GLEnum[\"RGBA8\"] = 32856] = \"RGBA8\";\n    GLEnum[GLEnum[\"RGB10_A2\"] = 32857] = \"RGB10_A2\";\n    GLEnum[GLEnum[\"TEXTURE_3D\"] = 32879] = \"TEXTURE_3D\";\n    /** Sets the wrap parameter for texture coordinate  to either GL_CLAMP_TO_EDGE, GL_MIRRORED_REPEAT, or GL_REPEAT. G */\n    GLEnum[GLEnum[\"TEXTURE_WRAP_R\"] = 32882] = \"TEXTURE_WRAP_R\";\n    GLEnum[GLEnum[\"TEXTURE_MIN_LOD\"] = 33082] = \"TEXTURE_MIN_LOD\";\n    GLEnum[GLEnum[\"TEXTURE_MAX_LOD\"] = 33083] = \"TEXTURE_MAX_LOD\";\n    GLEnum[GLEnum[\"TEXTURE_BASE_LEVEL\"] = 33084] = \"TEXTURE_BASE_LEVEL\";\n    GLEnum[GLEnum[\"TEXTURE_MAX_LEVEL\"] = 33085] = \"TEXTURE_MAX_LEVEL\";\n    GLEnum[GLEnum[\"TEXTURE_COMPARE_MODE\"] = 34892] = \"TEXTURE_COMPARE_MODE\";\n    GLEnum[GLEnum[\"TEXTURE_COMPARE_FUNC\"] = 34893] = \"TEXTURE_COMPARE_FUNC\";\n    GLEnum[GLEnum[\"SRGB\"] = 35904] = \"SRGB\";\n    GLEnum[GLEnum[\"SRGB8\"] = 35905] = \"SRGB8\";\n    GLEnum[GLEnum[\"SRGB8_ALPHA8\"] = 35907] = \"SRGB8_ALPHA8\";\n    GLEnum[GLEnum[\"COMPARE_REF_TO_TEXTURE\"] = 34894] = \"COMPARE_REF_TO_TEXTURE\";\n    GLEnum[GLEnum[\"RGBA32F\"] = 34836] = \"RGBA32F\";\n    GLEnum[GLEnum[\"RGB32F\"] = 34837] = \"RGB32F\";\n    GLEnum[GLEnum[\"RGBA16F\"] = 34842] = \"RGBA16F\";\n    GLEnum[GLEnum[\"RGB16F\"] = 34843] = \"RGB16F\";\n    GLEnum[GLEnum[\"TEXTURE_2D_ARRAY\"] = 35866] = \"TEXTURE_2D_ARRAY\";\n    GLEnum[GLEnum[\"TEXTURE_BINDING_2D_ARRAY\"] = 35869] = \"TEXTURE_BINDING_2D_ARRAY\";\n    GLEnum[GLEnum[\"R11F_G11F_B10F\"] = 35898] = \"R11F_G11F_B10F\";\n    GLEnum[GLEnum[\"RGB9_E5\"] = 35901] = \"RGB9_E5\";\n    GLEnum[GLEnum[\"RGBA32UI\"] = 36208] = \"RGBA32UI\";\n    GLEnum[GLEnum[\"RGB32UI\"] = 36209] = \"RGB32UI\";\n    GLEnum[GLEnum[\"RGBA16UI\"] = 36214] = \"RGBA16UI\";\n    GLEnum[GLEnum[\"RGB16UI\"] = 36215] = \"RGB16UI\";\n    GLEnum[GLEnum[\"RGBA8UI\"] = 36220] = \"RGBA8UI\";\n    GLEnum[GLEnum[\"RGB8UI\"] = 36221] = \"RGB8UI\";\n    GLEnum[GLEnum[\"RGBA32I\"] = 36226] = \"RGBA32I\";\n    GLEnum[GLEnum[\"RGB32I\"] = 36227] = \"RGB32I\";\n    GLEnum[GLEnum[\"RGBA16I\"] = 36232] = \"RGBA16I\";\n    GLEnum[GLEnum[\"RGB16I\"] = 36233] = \"RGB16I\";\n    GLEnum[GLEnum[\"RGBA8I\"] = 36238] = \"RGBA8I\";\n    GLEnum[GLEnum[\"RGB8I\"] = 36239] = \"RGB8I\";\n    GLEnum[GLEnum[\"RED_INTEGER\"] = 36244] = \"RED_INTEGER\";\n    GLEnum[GLEnum[\"RGB_INTEGER\"] = 36248] = \"RGB_INTEGER\";\n    GLEnum[GLEnum[\"RGBA_INTEGER\"] = 36249] = \"RGBA_INTEGER\";\n    GLEnum[GLEnum[\"R8\"] = 33321] = \"R8\";\n    GLEnum[GLEnum[\"RG8\"] = 33323] = \"RG8\";\n    GLEnum[GLEnum[\"R16F\"] = 33325] = \"R16F\";\n    GLEnum[GLEnum[\"R32F\"] = 33326] = \"R32F\";\n    GLEnum[GLEnum[\"RG16F\"] = 33327] = \"RG16F\";\n    GLEnum[GLEnum[\"RG32F\"] = 33328] = \"RG32F\";\n    GLEnum[GLEnum[\"R8I\"] = 33329] = \"R8I\";\n    GLEnum[GLEnum[\"R8UI\"] = 33330] = \"R8UI\";\n    GLEnum[GLEnum[\"R16I\"] = 33331] = \"R16I\";\n    GLEnum[GLEnum[\"R16UI\"] = 33332] = \"R16UI\";\n    GLEnum[GLEnum[\"R32I\"] = 33333] = \"R32I\";\n    GLEnum[GLEnum[\"R32UI\"] = 33334] = \"R32UI\";\n    GLEnum[GLEnum[\"RG8I\"] = 33335] = \"RG8I\";\n    GLEnum[GLEnum[\"RG8UI\"] = 33336] = \"RG8UI\";\n    GLEnum[GLEnum[\"RG16I\"] = 33337] = \"RG16I\";\n    GLEnum[GLEnum[\"RG16UI\"] = 33338] = \"RG16UI\";\n    GLEnum[GLEnum[\"RG32I\"] = 33339] = \"RG32I\";\n    GLEnum[GLEnum[\"RG32UI\"] = 33340] = \"RG32UI\";\n    GLEnum[GLEnum[\"R8_SNORM\"] = 36756] = \"R8_SNORM\";\n    GLEnum[GLEnum[\"RG8_SNORM\"] = 36757] = \"RG8_SNORM\";\n    GLEnum[GLEnum[\"RGB8_SNORM\"] = 36758] = \"RGB8_SNORM\";\n    GLEnum[GLEnum[\"RGBA8_SNORM\"] = 36759] = \"RGBA8_SNORM\";\n    GLEnum[GLEnum[\"RGB10_A2UI\"] = 36975] = \"RGB10_A2UI\";\n    /* covered by extension\n    COMPRESSED_R11_EAC  = 0x9270,\n    COMPRESSED_SIGNED_R11_EAC = 0x9271,\n    COMPRESSED_RG11_EAC = 0x9272,\n    COMPRESSED_SIGNED_RG11_EAC  = 0x9273,\n    COMPRESSED_RGB8_ETC2  = 0x9274,\n    COMPRESSED_SRGB8_ETC2 = 0x9275,\n    COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2  = 0x9276,\n    COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC  = 0x9277,\n    COMPRESSED_RGBA8_ETC2_EAC = 0x9278,\n    COMPRESSED_SRGB8_ALPHA8_ETC2_EAC  = 0x9279,\n    */\n    GLEnum[GLEnum[\"TEXTURE_IMMUTABLE_FORMAT\"] = 37167] = \"TEXTURE_IMMUTABLE_FORMAT\";\n    GLEnum[GLEnum[\"TEXTURE_IMMUTABLE_LEVELS\"] = 33503] = \"TEXTURE_IMMUTABLE_LEVELS\";\n    // Pixel types\n    GLEnum[GLEnum[\"UNSIGNED_INT_2_10_10_10_REV\"] = 33640] = \"UNSIGNED_INT_2_10_10_10_REV\";\n    GLEnum[GLEnum[\"UNSIGNED_INT_10F_11F_11F_REV\"] = 35899] = \"UNSIGNED_INT_10F_11F_11F_REV\";\n    GLEnum[GLEnum[\"UNSIGNED_INT_5_9_9_9_REV\"] = 35902] = \"UNSIGNED_INT_5_9_9_9_REV\";\n    GLEnum[GLEnum[\"FLOAT_32_UNSIGNED_INT_24_8_REV\"] = 36269] = \"FLOAT_32_UNSIGNED_INT_24_8_REV\";\n    GLEnum[GLEnum[\"UNSIGNED_INT_24_8\"] = 34042] = \"UNSIGNED_INT_24_8\";\n    GLEnum[GLEnum[\"HALF_FLOAT\"] = 5131] = \"HALF_FLOAT\";\n    GLEnum[GLEnum[\"RG\"] = 33319] = \"RG\";\n    GLEnum[GLEnum[\"RG_INTEGER\"] = 33320] = \"RG_INTEGER\";\n    GLEnum[GLEnum[\"INT_2_10_10_10_REV\"] = 36255] = \"INT_2_10_10_10_REV\";\n    // Queries\n    GLEnum[GLEnum[\"CURRENT_QUERY\"] = 34917] = \"CURRENT_QUERY\";\n    /** Returns a GLuint containing the query result. */\n    GLEnum[GLEnum[\"QUERY_RESULT\"] = 34918] = \"QUERY_RESULT\";\n    /** Whether query result is available. */\n    GLEnum[GLEnum[\"QUERY_RESULT_AVAILABLE\"] = 34919] = \"QUERY_RESULT_AVAILABLE\";\n    /** Occlusion query (if drawing passed depth test)  */\n    GLEnum[GLEnum[\"ANY_SAMPLES_PASSED\"] = 35887] = \"ANY_SAMPLES_PASSED\";\n    /** Occlusion query less accurate/faster version */\n    GLEnum[GLEnum[\"ANY_SAMPLES_PASSED_CONSERVATIVE\"] = 36202] = \"ANY_SAMPLES_PASSED_CONSERVATIVE\";\n    // Draw buffers\n    GLEnum[GLEnum[\"MAX_DRAW_BUFFERS\"] = 34852] = \"MAX_DRAW_BUFFERS\";\n    GLEnum[GLEnum[\"DRAW_BUFFER0\"] = 34853] = \"DRAW_BUFFER0\";\n    GLEnum[GLEnum[\"DRAW_BUFFER1\"] = 34854] = \"DRAW_BUFFER1\";\n    GLEnum[GLEnum[\"DRAW_BUFFER2\"] = 34855] = \"DRAW_BUFFER2\";\n    GLEnum[GLEnum[\"DRAW_BUFFER3\"] = 34856] = \"DRAW_BUFFER3\";\n    GLEnum[GLEnum[\"DRAW_BUFFER4\"] = 34857] = \"DRAW_BUFFER4\";\n    GLEnum[GLEnum[\"DRAW_BUFFER5\"] = 34858] = \"DRAW_BUFFER5\";\n    GLEnum[GLEnum[\"DRAW_BUFFER6\"] = 34859] = \"DRAW_BUFFER6\";\n    GLEnum[GLEnum[\"DRAW_BUFFER7\"] = 34860] = \"DRAW_BUFFER7\";\n    GLEnum[GLEnum[\"DRAW_BUFFER8\"] = 34861] = \"DRAW_BUFFER8\";\n    GLEnum[GLEnum[\"DRAW_BUFFER9\"] = 34862] = \"DRAW_BUFFER9\";\n    GLEnum[GLEnum[\"DRAW_BUFFER10\"] = 34863] = \"DRAW_BUFFER10\";\n    GLEnum[GLEnum[\"DRAW_BUFFER11\"] = 34864] = \"DRAW_BUFFER11\";\n    GLEnum[GLEnum[\"DRAW_BUFFER12\"] = 34865] = \"DRAW_BUFFER12\";\n    GLEnum[GLEnum[\"DRAW_BUFFER13\"] = 34866] = \"DRAW_BUFFER13\";\n    GLEnum[GLEnum[\"DRAW_BUFFER14\"] = 34867] = \"DRAW_BUFFER14\";\n    GLEnum[GLEnum[\"DRAW_BUFFER15\"] = 34868] = \"DRAW_BUFFER15\";\n    GLEnum[GLEnum[\"MAX_COLOR_ATTACHMENTS\"] = 36063] = \"MAX_COLOR_ATTACHMENTS\";\n    GLEnum[GLEnum[\"COLOR_ATTACHMENT1\"] = 36065] = \"COLOR_ATTACHMENT1\";\n    GLEnum[GLEnum[\"COLOR_ATTACHMENT2\"] = 36066] = \"COLOR_ATTACHMENT2\";\n    GLEnum[GLEnum[\"COLOR_ATTACHMENT3\"] = 36067] = \"COLOR_ATTACHMENT3\";\n    GLEnum[GLEnum[\"COLOR_ATTACHMENT4\"] = 36068] = \"COLOR_ATTACHMENT4\";\n    GLEnum[GLEnum[\"COLOR_ATTACHMENT5\"] = 36069] = \"COLOR_ATTACHMENT5\";\n    GLEnum[GLEnum[\"COLOR_ATTACHMENT6\"] = 36070] = \"COLOR_ATTACHMENT6\";\n    GLEnum[GLEnum[\"COLOR_ATTACHMENT7\"] = 36071] = \"COLOR_ATTACHMENT7\";\n    GLEnum[GLEnum[\"COLOR_ATTACHMENT8\"] = 36072] = \"COLOR_ATTACHMENT8\";\n    GLEnum[GLEnum[\"COLOR_ATTACHMENT9\"] = 36073] = \"COLOR_ATTACHMENT9\";\n    GLEnum[GLEnum[\"COLOR_ATTACHMENT10\"] = 36074] = \"COLOR_ATTACHMENT10\";\n    GLEnum[GLEnum[\"COLOR_ATTACHMENT11\"] = 36075] = \"COLOR_ATTACHMENT11\";\n    GLEnum[GLEnum[\"COLOR_ATTACHMENT12\"] = 36076] = \"COLOR_ATTACHMENT12\";\n    GLEnum[GLEnum[\"COLOR_ATTACHMENT13\"] = 36077] = \"COLOR_ATTACHMENT13\";\n    GLEnum[GLEnum[\"COLOR_ATTACHMENT14\"] = 36078] = \"COLOR_ATTACHMENT14\";\n    GLEnum[GLEnum[\"COLOR_ATTACHMENT15\"] = 36079] = \"COLOR_ATTACHMENT15\";\n    // Samplers\n    GLEnum[GLEnum[\"SAMPLER_3D\"] = 35679] = \"SAMPLER_3D\";\n    GLEnum[GLEnum[\"SAMPLER_2D_SHADOW\"] = 35682] = \"SAMPLER_2D_SHADOW\";\n    GLEnum[GLEnum[\"SAMPLER_2D_ARRAY\"] = 36289] = \"SAMPLER_2D_ARRAY\";\n    GLEnum[GLEnum[\"SAMPLER_2D_ARRAY_SHADOW\"] = 36292] = \"SAMPLER_2D_ARRAY_SHADOW\";\n    GLEnum[GLEnum[\"SAMPLER_CUBE_SHADOW\"] = 36293] = \"SAMPLER_CUBE_SHADOW\";\n    GLEnum[GLEnum[\"INT_SAMPLER_2D\"] = 36298] = \"INT_SAMPLER_2D\";\n    GLEnum[GLEnum[\"INT_SAMPLER_3D\"] = 36299] = \"INT_SAMPLER_3D\";\n    GLEnum[GLEnum[\"INT_SAMPLER_CUBE\"] = 36300] = \"INT_SAMPLER_CUBE\";\n    GLEnum[GLEnum[\"INT_SAMPLER_2D_ARRAY\"] = 36303] = \"INT_SAMPLER_2D_ARRAY\";\n    GLEnum[GLEnum[\"UNSIGNED_INT_SAMPLER_2D\"] = 36306] = \"UNSIGNED_INT_SAMPLER_2D\";\n    GLEnum[GLEnum[\"UNSIGNED_INT_SAMPLER_3D\"] = 36307] = \"UNSIGNED_INT_SAMPLER_3D\";\n    GLEnum[GLEnum[\"UNSIGNED_INT_SAMPLER_CUBE\"] = 36308] = \"UNSIGNED_INT_SAMPLER_CUBE\";\n    GLEnum[GLEnum[\"UNSIGNED_INT_SAMPLER_2D_ARRAY\"] = 36311] = \"UNSIGNED_INT_SAMPLER_2D_ARRAY\";\n    GLEnum[GLEnum[\"MAX_SAMPLES\"] = 36183] = \"MAX_SAMPLES\";\n    GLEnum[GLEnum[\"SAMPLER_BINDING\"] = 35097] = \"SAMPLER_BINDING\";\n    // Buffers\n    GLEnum[GLEnum[\"PIXEL_PACK_BUFFER\"] = 35051] = \"PIXEL_PACK_BUFFER\";\n    GLEnum[GLEnum[\"PIXEL_UNPACK_BUFFER\"] = 35052] = \"PIXEL_UNPACK_BUFFER\";\n    GLEnum[GLEnum[\"PIXEL_PACK_BUFFER_BINDING\"] = 35053] = \"PIXEL_PACK_BUFFER_BINDING\";\n    GLEnum[GLEnum[\"PIXEL_UNPACK_BUFFER_BINDING\"] = 35055] = \"PIXEL_UNPACK_BUFFER_BINDING\";\n    GLEnum[GLEnum[\"COPY_READ_BUFFER\"] = 36662] = \"COPY_READ_BUFFER\";\n    GLEnum[GLEnum[\"COPY_WRITE_BUFFER\"] = 36663] = \"COPY_WRITE_BUFFER\";\n    GLEnum[GLEnum[\"COPY_READ_BUFFER_BINDING\"] = 36662] = \"COPY_READ_BUFFER_BINDING\";\n    GLEnum[GLEnum[\"COPY_WRITE_BUFFER_BINDING\"] = 36663] = \"COPY_WRITE_BUFFER_BINDING\";\n    // Data types\n    GLEnum[GLEnum[\"FLOAT_MAT2x3\"] = 35685] = \"FLOAT_MAT2x3\";\n    GLEnum[GLEnum[\"FLOAT_MAT2x4\"] = 35686] = \"FLOAT_MAT2x4\";\n    GLEnum[GLEnum[\"FLOAT_MAT3x2\"] = 35687] = \"FLOAT_MAT3x2\";\n    GLEnum[GLEnum[\"FLOAT_MAT3x4\"] = 35688] = \"FLOAT_MAT3x4\";\n    GLEnum[GLEnum[\"FLOAT_MAT4x2\"] = 35689] = \"FLOAT_MAT4x2\";\n    GLEnum[GLEnum[\"FLOAT_MAT4x3\"] = 35690] = \"FLOAT_MAT4x3\";\n    GLEnum[GLEnum[\"UNSIGNED_INT_VEC2\"] = 36294] = \"UNSIGNED_INT_VEC2\";\n    GLEnum[GLEnum[\"UNSIGNED_INT_VEC3\"] = 36295] = \"UNSIGNED_INT_VEC3\";\n    GLEnum[GLEnum[\"UNSIGNED_INT_VEC4\"] = 36296] = \"UNSIGNED_INT_VEC4\";\n    GLEnum[GLEnum[\"UNSIGNED_NORMALIZED\"] = 35863] = \"UNSIGNED_NORMALIZED\";\n    GLEnum[GLEnum[\"SIGNED_NORMALIZED\"] = 36764] = \"SIGNED_NORMALIZED\";\n    // Vertex attributes\n    GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_INTEGER\"] = 35069] = \"VERTEX_ATTRIB_ARRAY_INTEGER\";\n    GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_DIVISOR\"] = 35070] = \"VERTEX_ATTRIB_ARRAY_DIVISOR\";\n    // Transform feedback\n    GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_BUFFER_MODE\"] = 35967] = \"TRANSFORM_FEEDBACK_BUFFER_MODE\";\n    GLEnum[GLEnum[\"MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS\"] = 35968] = \"MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS\";\n    GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_VARYINGS\"] = 35971] = \"TRANSFORM_FEEDBACK_VARYINGS\";\n    GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_BUFFER_START\"] = 35972] = \"TRANSFORM_FEEDBACK_BUFFER_START\";\n    GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_BUFFER_SIZE\"] = 35973] = \"TRANSFORM_FEEDBACK_BUFFER_SIZE\";\n    GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN\"] = 35976] = \"TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN\";\n    GLEnum[GLEnum[\"MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS\"] = 35978] = \"MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS\";\n    GLEnum[GLEnum[\"MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS\"] = 35979] = \"MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS\";\n    GLEnum[GLEnum[\"INTERLEAVED_ATTRIBS\"] = 35980] = \"INTERLEAVED_ATTRIBS\";\n    GLEnum[GLEnum[\"SEPARATE_ATTRIBS\"] = 35981] = \"SEPARATE_ATTRIBS\";\n    GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_BUFFER\"] = 35982] = \"TRANSFORM_FEEDBACK_BUFFER\";\n    GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_BUFFER_BINDING\"] = 35983] = \"TRANSFORM_FEEDBACK_BUFFER_BINDING\";\n    GLEnum[GLEnum[\"TRANSFORM_FEEDBACK\"] = 36386] = \"TRANSFORM_FEEDBACK\";\n    GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_PAUSED\"] = 36387] = \"TRANSFORM_FEEDBACK_PAUSED\";\n    GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_ACTIVE\"] = 36388] = \"TRANSFORM_FEEDBACK_ACTIVE\";\n    GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_BINDING\"] = 36389] = \"TRANSFORM_FEEDBACK_BINDING\";\n    // Framebuffers and renderbuffers\n    GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING\"] = 33296] = \"FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE\"] = 33297] = \"FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_RED_SIZE\"] = 33298] = \"FRAMEBUFFER_ATTACHMENT_RED_SIZE\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_GREEN_SIZE\"] = 33299] = \"FRAMEBUFFER_ATTACHMENT_GREEN_SIZE\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_BLUE_SIZE\"] = 33300] = \"FRAMEBUFFER_ATTACHMENT_BLUE_SIZE\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE\"] = 33301] = \"FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE\"] = 33302] = \"FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE\"] = 33303] = \"FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_DEFAULT\"] = 33304] = \"FRAMEBUFFER_DEFAULT\";\n    // DEPTH_STENCIL_ATTACHMENT  = 0x821A,\n    // DEPTH_STENCIL = 0x84F9,\n    GLEnum[GLEnum[\"DEPTH24_STENCIL8\"] = 35056] = \"DEPTH24_STENCIL8\";\n    GLEnum[GLEnum[\"DRAW_FRAMEBUFFER_BINDING\"] = 36006] = \"DRAW_FRAMEBUFFER_BINDING\";\n    GLEnum[GLEnum[\"READ_FRAMEBUFFER_BINDING\"] = 36010] = \"READ_FRAMEBUFFER_BINDING\";\n    GLEnum[GLEnum[\"RENDERBUFFER_SAMPLES\"] = 36011] = \"RENDERBUFFER_SAMPLES\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER\"] = 36052] = \"FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER\";\n    GLEnum[GLEnum[\"FRAMEBUFFER_INCOMPLETE_MULTISAMPLE\"] = 36182] = \"FRAMEBUFFER_INCOMPLETE_MULTISAMPLE\";\n    // Uniforms\n    GLEnum[GLEnum[\"UNIFORM_BUFFER\"] = 35345] = \"UNIFORM_BUFFER\";\n    GLEnum[GLEnum[\"UNIFORM_BUFFER_BINDING\"] = 35368] = \"UNIFORM_BUFFER_BINDING\";\n    GLEnum[GLEnum[\"UNIFORM_BUFFER_START\"] = 35369] = \"UNIFORM_BUFFER_START\";\n    GLEnum[GLEnum[\"UNIFORM_BUFFER_SIZE\"] = 35370] = \"UNIFORM_BUFFER_SIZE\";\n    GLEnum[GLEnum[\"MAX_VERTEX_UNIFORM_BLOCKS\"] = 35371] = \"MAX_VERTEX_UNIFORM_BLOCKS\";\n    GLEnum[GLEnum[\"MAX_FRAGMENT_UNIFORM_BLOCKS\"] = 35373] = \"MAX_FRAGMENT_UNIFORM_BLOCKS\";\n    GLEnum[GLEnum[\"MAX_COMBINED_UNIFORM_BLOCKS\"] = 35374] = \"MAX_COMBINED_UNIFORM_BLOCKS\";\n    GLEnum[GLEnum[\"MAX_UNIFORM_BUFFER_BINDINGS\"] = 35375] = \"MAX_UNIFORM_BUFFER_BINDINGS\";\n    GLEnum[GLEnum[\"MAX_UNIFORM_BLOCK_SIZE\"] = 35376] = \"MAX_UNIFORM_BLOCK_SIZE\";\n    GLEnum[GLEnum[\"MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS\"] = 35377] = \"MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS\";\n    GLEnum[GLEnum[\"MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS\"] = 35379] = \"MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS\";\n    GLEnum[GLEnum[\"UNIFORM_BUFFER_OFFSET_ALIGNMENT\"] = 35380] = \"UNIFORM_BUFFER_OFFSET_ALIGNMENT\";\n    GLEnum[GLEnum[\"ACTIVE_UNIFORM_BLOCKS\"] = 35382] = \"ACTIVE_UNIFORM_BLOCKS\";\n    GLEnum[GLEnum[\"UNIFORM_TYPE\"] = 35383] = \"UNIFORM_TYPE\";\n    GLEnum[GLEnum[\"UNIFORM_SIZE\"] = 35384] = \"UNIFORM_SIZE\";\n    GLEnum[GLEnum[\"UNIFORM_BLOCK_INDEX\"] = 35386] = \"UNIFORM_BLOCK_INDEX\";\n    GLEnum[GLEnum[\"UNIFORM_OFFSET\"] = 35387] = \"UNIFORM_OFFSET\";\n    GLEnum[GLEnum[\"UNIFORM_ARRAY_STRIDE\"] = 35388] = \"UNIFORM_ARRAY_STRIDE\";\n    GLEnum[GLEnum[\"UNIFORM_MATRIX_STRIDE\"] = 35389] = \"UNIFORM_MATRIX_STRIDE\";\n    GLEnum[GLEnum[\"UNIFORM_IS_ROW_MAJOR\"] = 35390] = \"UNIFORM_IS_ROW_MAJOR\";\n    GLEnum[GLEnum[\"UNIFORM_BLOCK_BINDING\"] = 35391] = \"UNIFORM_BLOCK_BINDING\";\n    GLEnum[GLEnum[\"UNIFORM_BLOCK_DATA_SIZE\"] = 35392] = \"UNIFORM_BLOCK_DATA_SIZE\";\n    GLEnum[GLEnum[\"UNIFORM_BLOCK_ACTIVE_UNIFORMS\"] = 35394] = \"UNIFORM_BLOCK_ACTIVE_UNIFORMS\";\n    GLEnum[GLEnum[\"UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES\"] = 35395] = \"UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES\";\n    GLEnum[GLEnum[\"UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER\"] = 35396] = \"UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER\";\n    GLEnum[GLEnum[\"UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER\"] = 35398] = \"UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER\";\n    // Sync objects\n    GLEnum[GLEnum[\"OBJECT_TYPE\"] = 37138] = \"OBJECT_TYPE\";\n    GLEnum[GLEnum[\"SYNC_CONDITION\"] = 37139] = \"SYNC_CONDITION\";\n    GLEnum[GLEnum[\"SYNC_STATUS\"] = 37140] = \"SYNC_STATUS\";\n    GLEnum[GLEnum[\"SYNC_FLAGS\"] = 37141] = \"SYNC_FLAGS\";\n    GLEnum[GLEnum[\"SYNC_FENCE\"] = 37142] = \"SYNC_FENCE\";\n    GLEnum[GLEnum[\"SYNC_GPU_COMMANDS_COMPLETE\"] = 37143] = \"SYNC_GPU_COMMANDS_COMPLETE\";\n    GLEnum[GLEnum[\"UNSIGNALED\"] = 37144] = \"UNSIGNALED\";\n    GLEnum[GLEnum[\"SIGNALED\"] = 37145] = \"SIGNALED\";\n    GLEnum[GLEnum[\"ALREADY_SIGNALED\"] = 37146] = \"ALREADY_SIGNALED\";\n    GLEnum[GLEnum[\"TIMEOUT_EXPIRED\"] = 37147] = \"TIMEOUT_EXPIRED\";\n    GLEnum[GLEnum[\"CONDITION_SATISFIED\"] = 37148] = \"CONDITION_SATISFIED\";\n    GLEnum[GLEnum[\"WAIT_FAILED\"] = 37149] = \"WAIT_FAILED\";\n    GLEnum[GLEnum[\"SYNC_FLUSH_COMMANDS_BIT\"] = 1] = \"SYNC_FLUSH_COMMANDS_BIT\";\n    // Miscellaneous constants\n    GLEnum[GLEnum[\"COLOR\"] = 6144] = \"COLOR\";\n    GLEnum[GLEnum[\"DEPTH\"] = 6145] = \"DEPTH\";\n    GLEnum[GLEnum[\"STENCIL\"] = 6146] = \"STENCIL\";\n    GLEnum[GLEnum[\"MIN\"] = 32775] = \"MIN\";\n    GLEnum[GLEnum[\"MAX\"] = 32776] = \"MAX\";\n    GLEnum[GLEnum[\"DEPTH_COMPONENT24\"] = 33190] = \"DEPTH_COMPONENT24\";\n    GLEnum[GLEnum[\"STREAM_READ\"] = 35041] = \"STREAM_READ\";\n    GLEnum[GLEnum[\"STREAM_COPY\"] = 35042] = \"STREAM_COPY\";\n    GLEnum[GLEnum[\"STATIC_READ\"] = 35045] = \"STATIC_READ\";\n    GLEnum[GLEnum[\"STATIC_COPY\"] = 35046] = \"STATIC_COPY\";\n    GLEnum[GLEnum[\"DYNAMIC_READ\"] = 35049] = \"DYNAMIC_READ\";\n    GLEnum[GLEnum[\"DYNAMIC_COPY\"] = 35050] = \"DYNAMIC_COPY\";\n    GLEnum[GLEnum[\"DEPTH_COMPONENT32F\"] = 36012] = \"DEPTH_COMPONENT32F\";\n    GLEnum[GLEnum[\"DEPTH32F_STENCIL8\"] = 36013] = \"DEPTH32F_STENCIL8\";\n    GLEnum[GLEnum[\"INVALID_INDEX\"] = 4294967295] = \"INVALID_INDEX\";\n    GLEnum[GLEnum[\"TIMEOUT_IGNORED\"] = -1] = \"TIMEOUT_IGNORED\";\n    GLEnum[GLEnum[\"MAX_CLIENT_WAIT_TIMEOUT_WEBGL\"] = 37447] = \"MAX_CLIENT_WAIT_TIMEOUT_WEBGL\";\n    // Constants defined in WebGL extensions\n    // WEBGL_debug_renderer_info\n    /** Passed to getParameter to get the vendor string of the graphics driver. */\n    GLEnum[GLEnum[\"UNMASKED_VENDOR_WEBGL\"] = 37445] = \"UNMASKED_VENDOR_WEBGL\";\n    /** Passed to getParameter to get the renderer string of the graphics driver. */\n    GLEnum[GLEnum[\"UNMASKED_RENDERER_WEBGL\"] = 37446] = \"UNMASKED_RENDERER_WEBGL\";\n    // EXT_texture_filter_anisotropic\n    /** Returns the maximum available anisotropy. */\n    GLEnum[GLEnum[\"MAX_TEXTURE_MAX_ANISOTROPY_EXT\"] = 34047] = \"MAX_TEXTURE_MAX_ANISOTROPY_EXT\";\n    /** Passed to texParameter to set the desired maximum anisotropy for a texture. */\n    GLEnum[GLEnum[\"TEXTURE_MAX_ANISOTROPY_EXT\"] = 34046] = \"TEXTURE_MAX_ANISOTROPY_EXT\";\n    // EXT_texture_norm16 - https://khronos.org/registry/webgl/extensions/EXT_texture_norm16/\n    GLEnum[GLEnum[\"R16_EXT\"] = 33322] = \"R16_EXT\";\n    GLEnum[GLEnum[\"RG16_EXT\"] = 33324] = \"RG16_EXT\";\n    GLEnum[GLEnum[\"RGB16_EXT\"] = 32852] = \"RGB16_EXT\";\n    GLEnum[GLEnum[\"RGBA16_EXT\"] = 32859] = \"RGBA16_EXT\";\n    GLEnum[GLEnum[\"R16_SNORM_EXT\"] = 36760] = \"R16_SNORM_EXT\";\n    GLEnum[GLEnum[\"RG16_SNORM_EXT\"] = 36761] = \"RG16_SNORM_EXT\";\n    GLEnum[GLEnum[\"RGB16_SNORM_EXT\"] = 36762] = \"RGB16_SNORM_EXT\";\n    GLEnum[GLEnum[\"RGBA16_SNORM_EXT\"] = 36763] = \"RGBA16_SNORM_EXT\";\n    // WEBGL_compressed_texture_s3tc (BC1, BC2, BC3)\n    /** A DXT1-compressed image in an RGB image format. */\n    GLEnum[GLEnum[\"COMPRESSED_RGB_S3TC_DXT1_EXT\"] = 33776] = \"COMPRESSED_RGB_S3TC_DXT1_EXT\";\n    /** A DXT1-compressed image in an RGB image format with a simple on/off alpha value. */\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_S3TC_DXT1_EXT\"] = 33777] = \"COMPRESSED_RGBA_S3TC_DXT1_EXT\";\n    /** A DXT3-compressed image in an RGBA image format. Compared to a 32-bit RGBA texture, it offers 4:1 compression. */\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_S3TC_DXT3_EXT\"] = 33778] = \"COMPRESSED_RGBA_S3TC_DXT3_EXT\";\n    /** A DXT5-compressed image in an RGBA image format. It also provides a 4:1 compression, but differs to the DXT3 compression in how the alpha compression is done. */\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_S3TC_DXT5_EXT\"] = 33779] = \"COMPRESSED_RGBA_S3TC_DXT5_EXT\";\n    // WEBGL_compressed_texture_s3tc_srgb (BC1, BC2, BC3 -  SRGB)\n    GLEnum[GLEnum[\"COMPRESSED_SRGB_S3TC_DXT1_EXT\"] = 35916] = \"COMPRESSED_SRGB_S3TC_DXT1_EXT\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT\"] = 35917] = \"COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT\"] = 35918] = \"COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT\"] = 35919] = \"COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT\";\n    // WEBGL_compressed_texture_rgtc (BC4, BC5)\n    GLEnum[GLEnum[\"COMPRESSED_RED_RGTC1_EXT\"] = 36283] = \"COMPRESSED_RED_RGTC1_EXT\";\n    GLEnum[GLEnum[\"COMPRESSED_SIGNED_RED_RGTC1_EXT\"] = 36284] = \"COMPRESSED_SIGNED_RED_RGTC1_EXT\";\n    GLEnum[GLEnum[\"COMPRESSED_RED_GREEN_RGTC2_EXT\"] = 36285] = \"COMPRESSED_RED_GREEN_RGTC2_EXT\";\n    GLEnum[GLEnum[\"COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT\"] = 36286] = \"COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT\";\n    // WEBGL_compressed_texture_bptc (BC6, BC7)\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_BPTC_UNORM_EXT\"] = 36492] = \"COMPRESSED_RGBA_BPTC_UNORM_EXT\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT\"] = 36493] = \"COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT\";\n    GLEnum[GLEnum[\"COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT\"] = 36494] = \"COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT\";\n    GLEnum[GLEnum[\"COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT\"] = 36495] = \"COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT\";\n    // WEBGL_compressed_texture_es3\n    /** One-channel (red) unsigned format compression. */\n    GLEnum[GLEnum[\"COMPRESSED_R11_EAC\"] = 37488] = \"COMPRESSED_R11_EAC\";\n    /** One-channel (red) signed format compression. */\n    GLEnum[GLEnum[\"COMPRESSED_SIGNED_R11_EAC\"] = 37489] = \"COMPRESSED_SIGNED_R11_EAC\";\n    /** Two-channel (red and green) unsigned format compression. */\n    GLEnum[GLEnum[\"COMPRESSED_RG11_EAC\"] = 37490] = \"COMPRESSED_RG11_EAC\";\n    /** Two-channel (red and green) signed format compression. */\n    GLEnum[GLEnum[\"COMPRESSED_SIGNED_RG11_EAC\"] = 37491] = \"COMPRESSED_SIGNED_RG11_EAC\";\n    /** Compresses RGB8 data with no alpha channel. */\n    GLEnum[GLEnum[\"COMPRESSED_RGB8_ETC2\"] = 37492] = \"COMPRESSED_RGB8_ETC2\";\n    /** Compresses RGBA8 data. The RGB part is encoded the same as RGB_ETC2, but the alpha part is encoded separately. */\n    GLEnum[GLEnum[\"COMPRESSED_RGBA8_ETC2_EAC\"] = 37493] = \"COMPRESSED_RGBA8_ETC2_EAC\";\n    /** Compresses sRGB8 data with no alpha channel. */\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_ETC2\"] = 37494] = \"COMPRESSED_SRGB8_ETC2\";\n    /** Compresses sRGBA8 data. The sRGB part is encoded the same as SRGB_ETC2, but the alpha part is encoded separately. */\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ETC2_EAC\"] = 37495] = \"COMPRESSED_SRGB8_ALPHA8_ETC2_EAC\";\n    /** Similar to RGB8_ETC, but with ability to punch through the alpha channel, which means to make it completely opaque or transparent. */\n    GLEnum[GLEnum[\"COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2\"] = 37496] = \"COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2\";\n    /** Similar to SRGB8_ETC, but with ability to punch through the alpha channel, which means to make it completely opaque or transparent. */\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2\"] = 37497] = \"COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2\";\n    // WEBGL_compressed_texture_pvrtc\n    /** RGB compression in 4-bit mode. One block for each 4×4 pixels. */\n    GLEnum[GLEnum[\"COMPRESSED_RGB_PVRTC_4BPPV1_IMG\"] = 35840] = \"COMPRESSED_RGB_PVRTC_4BPPV1_IMG\";\n    /** RGBA compression in 4-bit mode. One block for each 4×4 pixels. */\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_PVRTC_4BPPV1_IMG\"] = 35842] = \"COMPRESSED_RGBA_PVRTC_4BPPV1_IMG\";\n    /** RGB compression in 2-bit mode. One block for each 8×4 pixels. */\n    GLEnum[GLEnum[\"COMPRESSED_RGB_PVRTC_2BPPV1_IMG\"] = 35841] = \"COMPRESSED_RGB_PVRTC_2BPPV1_IMG\";\n    /** RGBA compression in 2-bit mode. One block for each 8×4 pixels. */\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_PVRTC_2BPPV1_IMG\"] = 35843] = \"COMPRESSED_RGBA_PVRTC_2BPPV1_IMG\";\n    // WEBGL_compressed_texture_etc1\n    /** Compresses 24-bit RGB data with no alpha channel. */\n    GLEnum[GLEnum[\"COMPRESSED_RGB_ETC1_WEBGL\"] = 36196] = \"COMPRESSED_RGB_ETC1_WEBGL\";\n    // WEBGL_compressed_texture_atc\n    GLEnum[GLEnum[\"COMPRESSED_RGB_ATC_WEBGL\"] = 35986] = \"COMPRESSED_RGB_ATC_WEBGL\";\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL\"] = 35986] = \"COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL\";\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL\"] = 34798] = \"COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL\";\n    // WEBGL_compressed_texture_astc\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_4x4_KHR\"] = 37808] = \"COMPRESSED_RGBA_ASTC_4x4_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_5x4_KHR\"] = 37809] = \"COMPRESSED_RGBA_ASTC_5x4_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_5x5_KHR\"] = 37810] = \"COMPRESSED_RGBA_ASTC_5x5_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_6x5_KHR\"] = 37811] = \"COMPRESSED_RGBA_ASTC_6x5_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_6x6_KHR\"] = 37812] = \"COMPRESSED_RGBA_ASTC_6x6_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_8x5_KHR\"] = 37813] = \"COMPRESSED_RGBA_ASTC_8x5_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_8x6_KHR\"] = 37814] = \"COMPRESSED_RGBA_ASTC_8x6_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_8x8_KHR\"] = 37815] = \"COMPRESSED_RGBA_ASTC_8x8_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_10x5_KHR\"] = 37816] = \"COMPRESSED_RGBA_ASTC_10x5_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_10x6_KHR\"] = 37817] = \"COMPRESSED_RGBA_ASTC_10x6_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_10x8_KHR\"] = 37818] = \"COMPRESSED_RGBA_ASTC_10x8_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_10x10_KHR\"] = 37819] = \"COMPRESSED_RGBA_ASTC_10x10_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_12x10_KHR\"] = 37820] = \"COMPRESSED_RGBA_ASTC_12x10_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_12x12_KHR\"] = 37821] = \"COMPRESSED_RGBA_ASTC_12x12_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR\"] = 37840] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR\"] = 37841] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR\"] = 37842] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR\"] = 37843] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR\"] = 37844] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR\"] = 37845] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR\"] = 37846] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR\"] = 37847] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR\"] = 37848] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR\"] = 37849] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR\"] = 37850] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR\"] = 37851] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR\"] = 37852] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR\";\n    GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR\"] = 37853] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR\";\n    // EXT_disjoint_timer_query\n    /** The number of bits used to hold the query result for the given target. */\n    GLEnum[GLEnum[\"QUERY_COUNTER_BITS_EXT\"] = 34916] = \"QUERY_COUNTER_BITS_EXT\";\n    /** The currently active query. */\n    GLEnum[GLEnum[\"CURRENT_QUERY_EXT\"] = 34917] = \"CURRENT_QUERY_EXT\";\n    /** The query result. */\n    GLEnum[GLEnum[\"QUERY_RESULT_EXT\"] = 34918] = \"QUERY_RESULT_EXT\";\n    /** A Boolean indicating whether or not a query result is available. */\n    GLEnum[GLEnum[\"QUERY_RESULT_AVAILABLE_EXT\"] = 34919] = \"QUERY_RESULT_AVAILABLE_EXT\";\n    /** Elapsed time (in nanoseconds). */\n    GLEnum[GLEnum[\"TIME_ELAPSED_EXT\"] = 35007] = \"TIME_ELAPSED_EXT\";\n    /** The current time. */\n    GLEnum[GLEnum[\"TIMESTAMP_EXT\"] = 36392] = \"TIMESTAMP_EXT\";\n    /** A Boolean indicating whether or not the GPU performed any disjoint operation (lost context) */\n    GLEnum[GLEnum[\"GPU_DISJOINT_EXT\"] = 36795] = \"GPU_DISJOINT_EXT\";\n    // KHR_parallel_shader_compile https://registry.khronos.org/webgl/extensions/KHR_parallel_shader_compile\n    /** a non-blocking poll operation, so that compile/link status availability can be queried without potentially incurring stalls */\n    GLEnum[GLEnum[\"COMPLETION_STATUS_KHR\"] = 37297] = \"COMPLETION_STATUS_KHR\";\n    // EXT_depth_clamp https://registry.khronos.org/webgl/extensions/EXT_depth_clamp/\n    /** Disables depth clipping */\n    GLEnum[GLEnum[\"DEPTH_CLAMP_EXT\"] = 34383] = \"DEPTH_CLAMP_EXT\";\n    // WEBGL_provoking_vertex https://registry.khronos.org/webgl/extensions/WEBGL_provoking_vertex/\n    /** Values of first vertex in primitive are used for flat shading */\n    GLEnum[GLEnum[\"FIRST_VERTEX_CONVENTION_WEBGL\"] = 36429] = \"FIRST_VERTEX_CONVENTION_WEBGL\";\n    /** Values of first vertex in primitive are used for flat shading */\n    GLEnum[GLEnum[\"LAST_VERTEX_CONVENTION_WEBGL\"] = 36430] = \"LAST_VERTEX_CONVENTION_WEBGL\";\n    /** Controls which vertex in primitive is used for flat shading */\n    GLEnum[GLEnum[\"PROVOKING_VERTEX_WEBL\"] = 36431] = \"PROVOKING_VERTEX_WEBL\";\n    // WEBGL_polygon_mode https://registry.khronos.org/webgl/extensions/WEBGL_polygon_mode/\n    GLEnum[GLEnum[\"POLYGON_MODE_WEBGL\"] = 2880] = \"POLYGON_MODE_WEBGL\";\n    GLEnum[GLEnum[\"POLYGON_OFFSET_LINE_WEBGL\"] = 10754] = \"POLYGON_OFFSET_LINE_WEBGL\";\n    GLEnum[GLEnum[\"LINE_WEBGL\"] = 6913] = \"LINE_WEBGL\";\n    GLEnum[GLEnum[\"FILL_WEBGL\"] = 6914] = \"FILL_WEBGL\";\n    // WEBGL_clip_cull_distance https://registry.khronos.org/webgl/extensions/WEBGL_clip_cull_distance/\n    /** Max clip distances */\n    GLEnum[GLEnum[\"MAX_CLIP_DISTANCES_WEBGL\"] = 3378] = \"MAX_CLIP_DISTANCES_WEBGL\";\n    /** Max cull distances */\n    GLEnum[GLEnum[\"MAX_CULL_DISTANCES_WEBGL\"] = 33529] = \"MAX_CULL_DISTANCES_WEBGL\";\n    /** Max clip and cull distances */\n    GLEnum[GLEnum[\"MAX_COMBINED_CLIP_AND_CULL_DISTANCES_WEBGL\"] = 33530] = \"MAX_COMBINED_CLIP_AND_CULL_DISTANCES_WEBGL\";\n    /** Enable gl_ClipDistance[0] and gl_CullDistance[0] */\n    GLEnum[GLEnum[\"CLIP_DISTANCE0_WEBGL\"] = 12288] = \"CLIP_DISTANCE0_WEBGL\";\n    /** Enable gl_ClipDistance[1] and gl_CullDistance[1] */\n    GLEnum[GLEnum[\"CLIP_DISTANCE1_WEBGL\"] = 12289] = \"CLIP_DISTANCE1_WEBGL\";\n    /** Enable gl_ClipDistance[2] and gl_CullDistance[2] */\n    GLEnum[GLEnum[\"CLIP_DISTANCE2_WEBGL\"] = 12290] = \"CLIP_DISTANCE2_WEBGL\";\n    /** Enable gl_ClipDistance[3] and gl_CullDistance[3] */\n    GLEnum[GLEnum[\"CLIP_DISTANCE3_WEBGL\"] = 12291] = \"CLIP_DISTANCE3_WEBGL\";\n    /** Enable gl_ClipDistance[4] and gl_CullDistance[4] */\n    GLEnum[GLEnum[\"CLIP_DISTANCE4_WEBGL\"] = 12292] = \"CLIP_DISTANCE4_WEBGL\";\n    /** Enable gl_ClipDistance[5] and gl_CullDistance[5] */\n    GLEnum[GLEnum[\"CLIP_DISTANCE5_WEBGL\"] = 12293] = \"CLIP_DISTANCE5_WEBGL\";\n    /** Enable gl_ClipDistance[6] and gl_CullDistance[6] */\n    GLEnum[GLEnum[\"CLIP_DISTANCE6_WEBGL\"] = 12294] = \"CLIP_DISTANCE6_WEBGL\";\n    /** Enable gl_ClipDistance[7] and gl_CullDistance[7] */\n    GLEnum[GLEnum[\"CLIP_DISTANCE7_WEBGL\"] = 12295] = \"CLIP_DISTANCE7_WEBGL\";\n    /** EXT_polygon_offset_clamp https://registry.khronos.org/webgl/extensions/EXT_polygon_offset_clamp/ */\n    GLEnum[GLEnum[\"POLYGON_OFFSET_CLAMP_EXT\"] = 36379] = \"POLYGON_OFFSET_CLAMP_EXT\";\n    /** EXT_clip_control https://registry.khronos.org/webgl/extensions/EXT_clip_control/ */\n    GLEnum[GLEnum[\"LOWER_LEFT_EXT\"] = 36001] = \"LOWER_LEFT_EXT\";\n    GLEnum[GLEnum[\"UPPER_LEFT_EXT\"] = 36002] = \"UPPER_LEFT_EXT\";\n    GLEnum[GLEnum[\"NEGATIVE_ONE_TO_ONE_EXT\"] = 37726] = \"NEGATIVE_ONE_TO_ONE_EXT\";\n    GLEnum[GLEnum[\"ZERO_TO_ONE_EXT\"] = 37727] = \"ZERO_TO_ONE_EXT\";\n    GLEnum[GLEnum[\"CLIP_ORIGIN_EXT\"] = 37724] = \"CLIP_ORIGIN_EXT\";\n    GLEnum[GLEnum[\"CLIP_DEPTH_MODE_EXT\"] = 37725] = \"CLIP_DEPTH_MODE_EXT\";\n    /** WEBGL_blend_func_extended https://registry.khronos.org/webgl/extensions/WEBGL_blend_func_extended/ */\n    GLEnum[GLEnum[\"SRC1_COLOR_WEBGL\"] = 35065] = \"SRC1_COLOR_WEBGL\";\n    GLEnum[GLEnum[\"SRC1_ALPHA_WEBGL\"] = 34185] = \"SRC1_ALPHA_WEBGL\";\n    GLEnum[GLEnum[\"ONE_MINUS_SRC1_COLOR_WEBGL\"] = 35066] = \"ONE_MINUS_SRC1_COLOR_WEBGL\";\n    GLEnum[GLEnum[\"ONE_MINUS_SRC1_ALPHA_WEBGL\"] = 35067] = \"ONE_MINUS_SRC1_ALPHA_WEBGL\";\n    GLEnum[GLEnum[\"MAX_DUAL_SOURCE_DRAW_BUFFERS_WEBGL\"] = 35068] = \"MAX_DUAL_SOURCE_DRAW_BUFFERS_WEBGL\";\n    /** EXT_texture_mirror_clamp_to_edge https://registry.khronos.org/webgl/extensions/EXT_texture_mirror_clamp_to_edge/ */\n    GLEnum[GLEnum[\"MIRROR_CLAMP_TO_EDGE_EXT\"] = 34627] = \"MIRROR_CLAMP_TO_EDGE_EXT\";\n})(GLEnum || (exports.GL = GLEnum = {}));\n//# sourceMappingURL=lumagl.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* models/lumagl.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    // luma.gl\n    // SPDX-License-Identifier: MIT\n    // Copyright (c) vis.gl contributors\n    /**\n     * Standard WebGL, WebGL2 and extension constants (OpenGL constants)\n     * @note (Most) of these constants are also defined on the WebGLRenderingContext interface.\n     * @see https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants\n     * @privateRemarks Locally called `GLEnum` instead of `GL`, because `babel-plugin-inline-webl-constants`\n     *  both depends on and processes this module, but shouldn't replace these declarations.\n     */\n    var GLEnum;\n    (function (GLEnum) {\n        // Clearing buffers\n        // Constants passed to clear() to clear buffer masks.\n        /** Passed to clear to clear the current depth buffer. */\n        GLEnum[GLEnum[\"DEPTH_BUFFER_BIT\"] = 256] = \"DEPTH_BUFFER_BIT\";\n        /** Passed to clear to clear the current stencil buffer. */\n        GLEnum[GLEnum[\"STENCIL_BUFFER_BIT\"] = 1024] = \"STENCIL_BUFFER_BIT\";\n        /** Passed to clear to clear the current color buffer. */\n        GLEnum[GLEnum[\"COLOR_BUFFER_BIT\"] = 16384] = \"COLOR_BUFFER_BIT\";\n        // Rendering primitives\n        // Constants passed to drawElements() or drawArrays() to specify what kind of primitive to render.\n        /** Passed to drawElements or drawArrays to draw single points. */\n        GLEnum[GLEnum[\"POINTS\"] = 0] = \"POINTS\";\n        /** Passed to drawElements or drawArrays to draw lines. Each vertex connects to the one after it. */\n        GLEnum[GLEnum[\"LINES\"] = 1] = \"LINES\";\n        /** Passed to drawElements or drawArrays to draw lines. Each set of two vertices is treated as a separate line segment. */\n        GLEnum[GLEnum[\"LINE_LOOP\"] = 2] = \"LINE_LOOP\";\n        /** Passed to drawElements or drawArrays to draw a connected group of line segments from the first vertex to the last. */\n        GLEnum[GLEnum[\"LINE_STRIP\"] = 3] = \"LINE_STRIP\";\n        /** Passed to drawElements or drawArrays to draw triangles. Each set of three vertices creates a separate triangle. */\n        GLEnum[GLEnum[\"TRIANGLES\"] = 4] = \"TRIANGLES\";\n        /** Passed to drawElements or drawArrays to draw a connected group of triangles. */\n        GLEnum[GLEnum[\"TRIANGLE_STRIP\"] = 5] = \"TRIANGLE_STRIP\";\n        /** Passed to drawElements or drawArrays to draw a connected group of triangles. Each vertex connects to the previous and the first vertex in the fan. */\n        GLEnum[GLEnum[\"TRIANGLE_FAN\"] = 6] = \"TRIANGLE_FAN\";\n        // Blending modes\n        // Constants passed to blendFunc() or blendFuncSeparate() to specify the blending mode (for both, RBG and alpha, or separately).\n        /** Passed to blendFunc or blendFuncSeparate to turn off a component. */\n        GLEnum[GLEnum[\"ZERO\"] = 0] = \"ZERO\";\n        /** Passed to blendFunc or blendFuncSeparate to turn on a component. */\n        GLEnum[GLEnum[\"ONE\"] = 1] = \"ONE\";\n        /** Passed to blendFunc or blendFuncSeparate to multiply a component by the source elements color. */\n        GLEnum[GLEnum[\"SRC_COLOR\"] = 768] = \"SRC_COLOR\";\n        /** Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the source elements color. */\n        GLEnum[GLEnum[\"ONE_MINUS_SRC_COLOR\"] = 769] = \"ONE_MINUS_SRC_COLOR\";\n        /** Passed to blendFunc or blendFuncSeparate to multiply a component by the source's alpha. */\n        GLEnum[GLEnum[\"SRC_ALPHA\"] = 770] = \"SRC_ALPHA\";\n        /** Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the source's alpha. */\n        GLEnum[GLEnum[\"ONE_MINUS_SRC_ALPHA\"] = 771] = \"ONE_MINUS_SRC_ALPHA\";\n        /** Passed to blendFunc or blendFuncSeparate to multiply a component by the destination's alpha. */\n        GLEnum[GLEnum[\"DST_ALPHA\"] = 772] = \"DST_ALPHA\";\n        /** Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the destination's alpha. */\n        GLEnum[GLEnum[\"ONE_MINUS_DST_ALPHA\"] = 773] = \"ONE_MINUS_DST_ALPHA\";\n        /** Passed to blendFunc or blendFuncSeparate to multiply a component by the destination's color. */\n        GLEnum[GLEnum[\"DST_COLOR\"] = 774] = \"DST_COLOR\";\n        /** Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the destination's color. */\n        GLEnum[GLEnum[\"ONE_MINUS_DST_COLOR\"] = 775] = \"ONE_MINUS_DST_COLOR\";\n        /** Passed to blendFunc or blendFuncSeparate to multiply a component by the minimum of source's alpha or one minus the destination's alpha. */\n        GLEnum[GLEnum[\"SRC_ALPHA_SATURATE\"] = 776] = \"SRC_ALPHA_SATURATE\";\n        /** Passed to blendFunc or blendFuncSeparate to specify a constant color blend function. */\n        GLEnum[GLEnum[\"CONSTANT_COLOR\"] = 32769] = \"CONSTANT_COLOR\";\n        /** Passed to blendFunc or blendFuncSeparate to specify one minus a constant color blend function. */\n        GLEnum[GLEnum[\"ONE_MINUS_CONSTANT_COLOR\"] = 32770] = \"ONE_MINUS_CONSTANT_COLOR\";\n        /** Passed to blendFunc or blendFuncSeparate to specify a constant alpha blend function. */\n        GLEnum[GLEnum[\"CONSTANT_ALPHA\"] = 32771] = \"CONSTANT_ALPHA\";\n        /** Passed to blendFunc or blendFuncSeparate to specify one minus a constant alpha blend function. */\n        GLEnum[GLEnum[\"ONE_MINUS_CONSTANT_ALPHA\"] = 32772] = \"ONE_MINUS_CONSTANT_ALPHA\";\n        // Blending equations\n        // Constants passed to blendEquation() or blendEquationSeparate() to control\n        // how the blending is calculated (for both, RBG and alpha, or separately).\n        /** Passed to blendEquation or blendEquationSeparate to set an addition blend function. */\n        /** Passed to blendEquation or blendEquationSeparate to specify a subtraction blend function (source - destination). */\n        /** Passed to blendEquation or blendEquationSeparate to specify a reverse subtraction blend function (destination - source). */\n        GLEnum[GLEnum[\"FUNC_ADD\"] = 32774] = \"FUNC_ADD\";\n        GLEnum[GLEnum[\"FUNC_SUBTRACT\"] = 32778] = \"FUNC_SUBTRACT\";\n        GLEnum[GLEnum[\"FUNC_REVERSE_SUBTRACT\"] = 32779] = \"FUNC_REVERSE_SUBTRACT\";\n        // Getting GL parameter information\n        // Constants passed to getParameter() to specify what information to return.\n        /** Passed to getParameter to get the current RGB blend function. */\n        GLEnum[GLEnum[\"BLEND_EQUATION\"] = 32777] = \"BLEND_EQUATION\";\n        /** Passed to getParameter to get the current RGB blend function. Same as BLEND_EQUATION */\n        GLEnum[GLEnum[\"BLEND_EQUATION_RGB\"] = 32777] = \"BLEND_EQUATION_RGB\";\n        /** Passed to getParameter to get the current alpha blend function. Same as BLEND_EQUATION */\n        GLEnum[GLEnum[\"BLEND_EQUATION_ALPHA\"] = 34877] = \"BLEND_EQUATION_ALPHA\";\n        /** Passed to getParameter to get the current destination RGB blend function. */\n        GLEnum[GLEnum[\"BLEND_DST_RGB\"] = 32968] = \"BLEND_DST_RGB\";\n        /** Passed to getParameter to get the current destination RGB blend function. */\n        GLEnum[GLEnum[\"BLEND_SRC_RGB\"] = 32969] = \"BLEND_SRC_RGB\";\n        /** Passed to getParameter to get the current destination alpha blend function. */\n        GLEnum[GLEnum[\"BLEND_DST_ALPHA\"] = 32970] = \"BLEND_DST_ALPHA\";\n        /** Passed to getParameter to get the current source alpha blend function. */\n        GLEnum[GLEnum[\"BLEND_SRC_ALPHA\"] = 32971] = \"BLEND_SRC_ALPHA\";\n        /** Passed to getParameter to return a the current blend color. */\n        GLEnum[GLEnum[\"BLEND_COLOR\"] = 32773] = \"BLEND_COLOR\";\n        /** Passed to getParameter to get the array buffer binding. */\n        GLEnum[GLEnum[\"ARRAY_BUFFER_BINDING\"] = 34964] = \"ARRAY_BUFFER_BINDING\";\n        /** Passed to getParameter to get the current element array buffer. */\n        GLEnum[GLEnum[\"ELEMENT_ARRAY_BUFFER_BINDING\"] = 34965] = \"ELEMENT_ARRAY_BUFFER_BINDING\";\n        /** Passed to getParameter to get the current lineWidth (set by the lineWidth method). */\n        GLEnum[GLEnum[\"LINE_WIDTH\"] = 2849] = \"LINE_WIDTH\";\n        /** Passed to getParameter to get the current size of a point drawn with gl.POINTS */\n        GLEnum[GLEnum[\"ALIASED_POINT_SIZE_RANGE\"] = 33901] = \"ALIASED_POINT_SIZE_RANGE\";\n        /** Passed to getParameter to get the range of available widths for a line. Returns a length-2 array with the lo value at 0, and high at 1. */\n        GLEnum[GLEnum[\"ALIASED_LINE_WIDTH_RANGE\"] = 33902] = \"ALIASED_LINE_WIDTH_RANGE\";\n        /** Passed to getParameter to get the current value of cullFace. Should return FRONT, BACK, or FRONT_AND_BACK */\n        GLEnum[GLEnum[\"CULL_FACE_MODE\"] = 2885] = \"CULL_FACE_MODE\";\n        /** Passed to getParameter to determine the current value of frontFace. Should return CW or CCW. */\n        GLEnum[GLEnum[\"FRONT_FACE\"] = 2886] = \"FRONT_FACE\";\n        /** Passed to getParameter to return a length-2 array of floats giving the current depth range. */\n        GLEnum[GLEnum[\"DEPTH_RANGE\"] = 2928] = \"DEPTH_RANGE\";\n        /** Passed to getParameter to determine if the depth write mask is enabled. */\n        GLEnum[GLEnum[\"DEPTH_WRITEMASK\"] = 2930] = \"DEPTH_WRITEMASK\";\n        /** Passed to getParameter to determine the current depth clear value. */\n        GLEnum[GLEnum[\"DEPTH_CLEAR_VALUE\"] = 2931] = \"DEPTH_CLEAR_VALUE\";\n        /** Passed to getParameter to get the current depth function. Returns NEVER, ALWAYS, LESS, EQUAL, LEQUAL, GREATER, GEQUAL, or NOTEQUAL. */\n        GLEnum[GLEnum[\"DEPTH_FUNC\"] = 2932] = \"DEPTH_FUNC\";\n        /** Passed to getParameter to get the value the stencil will be cleared to. */\n        GLEnum[GLEnum[\"STENCIL_CLEAR_VALUE\"] = 2961] = \"STENCIL_CLEAR_VALUE\";\n        /** Passed to getParameter to get the current stencil function. Returns NEVER, ALWAYS, LESS, EQUAL, LEQUAL, GREATER, GEQUAL, or NOTEQUAL. */\n        GLEnum[GLEnum[\"STENCIL_FUNC\"] = 2962] = \"STENCIL_FUNC\";\n        /** Passed to getParameter to get the current stencil fail function. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP. */\n        GLEnum[GLEnum[\"STENCIL_FAIL\"] = 2964] = \"STENCIL_FAIL\";\n        /** Passed to getParameter to get the current stencil fail function should the depth buffer test fail. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP. */\n        GLEnum[GLEnum[\"STENCIL_PASS_DEPTH_FAIL\"] = 2965] = \"STENCIL_PASS_DEPTH_FAIL\";\n        /** Passed to getParameter to get the current stencil fail function should the depth buffer test pass. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP. */\n        GLEnum[GLEnum[\"STENCIL_PASS_DEPTH_PASS\"] = 2966] = \"STENCIL_PASS_DEPTH_PASS\";\n        /** Passed to getParameter to get the reference value used for stencil tests. */\n        GLEnum[GLEnum[\"STENCIL_REF\"] = 2967] = \"STENCIL_REF\";\n        GLEnum[GLEnum[\"STENCIL_VALUE_MASK\"] = 2963] = \"STENCIL_VALUE_MASK\";\n        GLEnum[GLEnum[\"STENCIL_WRITEMASK\"] = 2968] = \"STENCIL_WRITEMASK\";\n        GLEnum[GLEnum[\"STENCIL_BACK_FUNC\"] = 34816] = \"STENCIL_BACK_FUNC\";\n        GLEnum[GLEnum[\"STENCIL_BACK_FAIL\"] = 34817] = \"STENCIL_BACK_FAIL\";\n        GLEnum[GLEnum[\"STENCIL_BACK_PASS_DEPTH_FAIL\"] = 34818] = \"STENCIL_BACK_PASS_DEPTH_FAIL\";\n        GLEnum[GLEnum[\"STENCIL_BACK_PASS_DEPTH_PASS\"] = 34819] = \"STENCIL_BACK_PASS_DEPTH_PASS\";\n        GLEnum[GLEnum[\"STENCIL_BACK_REF\"] = 36003] = \"STENCIL_BACK_REF\";\n        GLEnum[GLEnum[\"STENCIL_BACK_VALUE_MASK\"] = 36004] = \"STENCIL_BACK_VALUE_MASK\";\n        GLEnum[GLEnum[\"STENCIL_BACK_WRITEMASK\"] = 36005] = \"STENCIL_BACK_WRITEMASK\";\n        /** An Int32Array with four elements for the current viewport dimensions. */\n        GLEnum[GLEnum[\"VIEWPORT\"] = 2978] = \"VIEWPORT\";\n        /** An Int32Array with four elements for the current scissor box dimensions. */\n        GLEnum[GLEnum[\"SCISSOR_BOX\"] = 3088] = \"SCISSOR_BOX\";\n        GLEnum[GLEnum[\"COLOR_CLEAR_VALUE\"] = 3106] = \"COLOR_CLEAR_VALUE\";\n        GLEnum[GLEnum[\"COLOR_WRITEMASK\"] = 3107] = \"COLOR_WRITEMASK\";\n        GLEnum[GLEnum[\"UNPACK_ALIGNMENT\"] = 3317] = \"UNPACK_ALIGNMENT\";\n        GLEnum[GLEnum[\"PACK_ALIGNMENT\"] = 3333] = \"PACK_ALIGNMENT\";\n        GLEnum[GLEnum[\"MAX_TEXTURE_SIZE\"] = 3379] = \"MAX_TEXTURE_SIZE\";\n        GLEnum[GLEnum[\"MAX_VIEWPORT_DIMS\"] = 3386] = \"MAX_VIEWPORT_DIMS\";\n        GLEnum[GLEnum[\"SUBPIXEL_BITS\"] = 3408] = \"SUBPIXEL_BITS\";\n        GLEnum[GLEnum[\"RED_BITS\"] = 3410] = \"RED_BITS\";\n        GLEnum[GLEnum[\"GREEN_BITS\"] = 3411] = \"GREEN_BITS\";\n        GLEnum[GLEnum[\"BLUE_BITS\"] = 3412] = \"BLUE_BITS\";\n        GLEnum[GLEnum[\"ALPHA_BITS\"] = 3413] = \"ALPHA_BITS\";\n        GLEnum[GLEnum[\"DEPTH_BITS\"] = 3414] = \"DEPTH_BITS\";\n        GLEnum[GLEnum[\"STENCIL_BITS\"] = 3415] = \"STENCIL_BITS\";\n        GLEnum[GLEnum[\"POLYGON_OFFSET_UNITS\"] = 10752] = \"POLYGON_OFFSET_UNITS\";\n        GLEnum[GLEnum[\"POLYGON_OFFSET_FACTOR\"] = 32824] = \"POLYGON_OFFSET_FACTOR\";\n        GLEnum[GLEnum[\"TEXTURE_BINDING_2D\"] = 32873] = \"TEXTURE_BINDING_2D\";\n        GLEnum[GLEnum[\"SAMPLE_BUFFERS\"] = 32936] = \"SAMPLE_BUFFERS\";\n        GLEnum[GLEnum[\"SAMPLES\"] = 32937] = \"SAMPLES\";\n        GLEnum[GLEnum[\"SAMPLE_COVERAGE_VALUE\"] = 32938] = \"SAMPLE_COVERAGE_VALUE\";\n        GLEnum[GLEnum[\"SAMPLE_COVERAGE_INVERT\"] = 32939] = \"SAMPLE_COVERAGE_INVERT\";\n        GLEnum[GLEnum[\"COMPRESSED_TEXTURE_FORMATS\"] = 34467] = \"COMPRESSED_TEXTURE_FORMATS\";\n        GLEnum[GLEnum[\"VENDOR\"] = 7936] = \"VENDOR\";\n        GLEnum[GLEnum[\"RENDERER\"] = 7937] = \"RENDERER\";\n        GLEnum[GLEnum[\"VERSION\"] = 7938] = \"VERSION\";\n        GLEnum[GLEnum[\"IMPLEMENTATION_COLOR_READ_TYPE\"] = 35738] = \"IMPLEMENTATION_COLOR_READ_TYPE\";\n        GLEnum[GLEnum[\"IMPLEMENTATION_COLOR_READ_FORMAT\"] = 35739] = \"IMPLEMENTATION_COLOR_READ_FORMAT\";\n        GLEnum[GLEnum[\"BROWSER_DEFAULT_WEBGL\"] = 37444] = \"BROWSER_DEFAULT_WEBGL\";\n        // Buffers\n        // Constants passed to bufferData(), bufferSubData(), bindBuffer(), or\n        // getBufferParameter().\n        /** Passed to bufferData as a hint about whether the contents of the buffer are likely to be used often and not change often. */\n        GLEnum[GLEnum[\"STATIC_DRAW\"] = 35044] = \"STATIC_DRAW\";\n        /** Passed to bufferData as a hint about whether the contents of the buffer are likely to not be used often. */\n        GLEnum[GLEnum[\"STREAM_DRAW\"] = 35040] = \"STREAM_DRAW\";\n        /** Passed to bufferData as a hint about whether the contents of the buffer are likely to be used often and change often. */\n        GLEnum[GLEnum[\"DYNAMIC_DRAW\"] = 35048] = \"DYNAMIC_DRAW\";\n        /** Passed to bindBuffer or bufferData to specify the type of buffer being used. */\n        GLEnum[GLEnum[\"ARRAY_BUFFER\"] = 34962] = \"ARRAY_BUFFER\";\n        /** Passed to bindBuffer or bufferData to specify the type of buffer being used. */\n        GLEnum[GLEnum[\"ELEMENT_ARRAY_BUFFER\"] = 34963] = \"ELEMENT_ARRAY_BUFFER\";\n        /** Passed to getBufferParameter to get a buffer's size. */\n        GLEnum[GLEnum[\"BUFFER_SIZE\"] = 34660] = \"BUFFER_SIZE\";\n        /** Passed to getBufferParameter to get the hint for the buffer passed in when it was created. */\n        GLEnum[GLEnum[\"BUFFER_USAGE\"] = 34661] = \"BUFFER_USAGE\";\n        // Vertex attributes\n        // Constants passed to getVertexAttrib().\n        /** Passed to getVertexAttrib to read back the current vertex attribute. */\n        GLEnum[GLEnum[\"CURRENT_VERTEX_ATTRIB\"] = 34342] = \"CURRENT_VERTEX_ATTRIB\";\n        GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_ENABLED\"] = 34338] = \"VERTEX_ATTRIB_ARRAY_ENABLED\";\n        GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_SIZE\"] = 34339] = \"VERTEX_ATTRIB_ARRAY_SIZE\";\n        GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_STRIDE\"] = 34340] = \"VERTEX_ATTRIB_ARRAY_STRIDE\";\n        GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_TYPE\"] = 34341] = \"VERTEX_ATTRIB_ARRAY_TYPE\";\n        GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_NORMALIZED\"] = 34922] = \"VERTEX_ATTRIB_ARRAY_NORMALIZED\";\n        GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_POINTER\"] = 34373] = \"VERTEX_ATTRIB_ARRAY_POINTER\";\n        GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING\"] = 34975] = \"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING\";\n        // Culling\n        // Constants passed to cullFace().\n        /** Passed to enable/disable to turn on/off culling. Can also be used with getParameter to find the current culling method. */\n        GLEnum[GLEnum[\"CULL_FACE\"] = 2884] = \"CULL_FACE\";\n        /** Passed to cullFace to specify that only front faces should be culled. */\n        GLEnum[GLEnum[\"FRONT\"] = 1028] = \"FRONT\";\n        /** Passed to cullFace to specify that only back faces should be culled. */\n        GLEnum[GLEnum[\"BACK\"] = 1029] = \"BACK\";\n        /** Passed to cullFace to specify that front and back faces should be culled. */\n        GLEnum[GLEnum[\"FRONT_AND_BACK\"] = 1032] = \"FRONT_AND_BACK\";\n        // Enabling and disabling\n        // Constants passed to enable() or disable().\n        /** Passed to enable/disable to turn on/off blending. Can also be used with getParameter to find the current blending method. */\n        GLEnum[GLEnum[\"BLEND\"] = 3042] = \"BLEND\";\n        /** Passed to enable/disable to turn on/off the depth test. Can also be used with getParameter to query the depth test. */\n        GLEnum[GLEnum[\"DEPTH_TEST\"] = 2929] = \"DEPTH_TEST\";\n        /** Passed to enable/disable to turn on/off dithering. Can also be used with getParameter to find the current dithering method. */\n        GLEnum[GLEnum[\"DITHER\"] = 3024] = \"DITHER\";\n        /** Passed to enable/disable to turn on/off the polygon offset. Useful for rendering hidden-line images, decals, and or solids with highlighted edges. Can also be used with getParameter to query the scissor test. */\n        GLEnum[GLEnum[\"POLYGON_OFFSET_FILL\"] = 32823] = \"POLYGON_OFFSET_FILL\";\n        /** Passed to enable/disable to turn on/off the alpha to coverage. Used in multi-sampling alpha channels. */\n        GLEnum[GLEnum[\"SAMPLE_ALPHA_TO_COVERAGE\"] = 32926] = \"SAMPLE_ALPHA_TO_COVERAGE\";\n        /** Passed to enable/disable to turn on/off the sample coverage. Used in multi-sampling. */\n        GLEnum[GLEnum[\"SAMPLE_COVERAGE\"] = 32928] = \"SAMPLE_COVERAGE\";\n        /** Passed to enable/disable to turn on/off the scissor test. Can also be used with getParameter to query the scissor test. */\n        GLEnum[GLEnum[\"SCISSOR_TEST\"] = 3089] = \"SCISSOR_TEST\";\n        /** Passed to enable/disable to turn on/off the stencil test. Can also be used with getParameter to query the stencil test. */\n        GLEnum[GLEnum[\"STENCIL_TEST\"] = 2960] = \"STENCIL_TEST\";\n        // Errors\n        // Constants returned from getError().\n        /** Returned from getError(). */\n        GLEnum[GLEnum[\"NO_ERROR\"] = 0] = \"NO_ERROR\";\n        /** Returned from getError(). */\n        GLEnum[GLEnum[\"INVALID_ENUM\"] = 1280] = \"INVALID_ENUM\";\n        /** Returned from getError(). */\n        GLEnum[GLEnum[\"INVALID_VALUE\"] = 1281] = \"INVALID_VALUE\";\n        /** Returned from getError(). */\n        GLEnum[GLEnum[\"INVALID_OPERATION\"] = 1282] = \"INVALID_OPERATION\";\n        /** Returned from getError(). */\n        GLEnum[GLEnum[\"OUT_OF_MEMORY\"] = 1285] = \"OUT_OF_MEMORY\";\n        /** Returned from getError(). */\n        GLEnum[GLEnum[\"CONTEXT_LOST_WEBGL\"] = 37442] = \"CONTEXT_LOST_WEBGL\";\n        // Front face directions\n        // Constants passed to frontFace().\n        /** Passed to frontFace to specify the front face of a polygon is drawn in the clockwise direction */\n        GLEnum[GLEnum[\"CW\"] = 2304] = \"CW\";\n        /** Passed to frontFace to specify the front face of a polygon is drawn in the counter clockwise direction */\n        GLEnum[GLEnum[\"CCW\"] = 2305] = \"CCW\";\n        // Hints\n        // Constants passed to hint()\n        /** There is no preference for this behavior. */\n        GLEnum[GLEnum[\"DONT_CARE\"] = 4352] = \"DONT_CARE\";\n        /** The most efficient behavior should be used. */\n        GLEnum[GLEnum[\"FASTEST\"] = 4353] = \"FASTEST\";\n        /** The most correct or the highest quality option should be used. */\n        GLEnum[GLEnum[\"NICEST\"] = 4354] = \"NICEST\";\n        /** Hint for the quality of filtering when generating mipmap images with WebGLRenderingContext.generateMipmap(). */\n        GLEnum[GLEnum[\"GENERATE_MIPMAP_HINT\"] = 33170] = \"GENERATE_MIPMAP_HINT\";\n        // Data types\n        GLEnum[GLEnum[\"BYTE\"] = 5120] = \"BYTE\";\n        GLEnum[GLEnum[\"UNSIGNED_BYTE\"] = 5121] = \"UNSIGNED_BYTE\";\n        GLEnum[GLEnum[\"SHORT\"] = 5122] = \"SHORT\";\n        GLEnum[GLEnum[\"UNSIGNED_SHORT\"] = 5123] = \"UNSIGNED_SHORT\";\n        GLEnum[GLEnum[\"INT\"] = 5124] = \"INT\";\n        GLEnum[GLEnum[\"UNSIGNED_INT\"] = 5125] = \"UNSIGNED_INT\";\n        GLEnum[GLEnum[\"FLOAT\"] = 5126] = \"FLOAT\";\n        GLEnum[GLEnum[\"DOUBLE\"] = 5130] = \"DOUBLE\";\n        // Pixel formats\n        GLEnum[GLEnum[\"DEPTH_COMPONENT\"] = 6402] = \"DEPTH_COMPONENT\";\n        GLEnum[GLEnum[\"ALPHA\"] = 6406] = \"ALPHA\";\n        GLEnum[GLEnum[\"RGB\"] = 6407] = \"RGB\";\n        GLEnum[GLEnum[\"RGBA\"] = 6408] = \"RGBA\";\n        GLEnum[GLEnum[\"LUMINANCE\"] = 6409] = \"LUMINANCE\";\n        GLEnum[GLEnum[\"LUMINANCE_ALPHA\"] = 6410] = \"LUMINANCE_ALPHA\";\n        // Pixel types\n        // UNSIGNED_BYTE = 0x1401,\n        GLEnum[GLEnum[\"UNSIGNED_SHORT_4_4_4_4\"] = 32819] = \"UNSIGNED_SHORT_4_4_4_4\";\n        GLEnum[GLEnum[\"UNSIGNED_SHORT_5_5_5_1\"] = 32820] = \"UNSIGNED_SHORT_5_5_5_1\";\n        GLEnum[GLEnum[\"UNSIGNED_SHORT_5_6_5\"] = 33635] = \"UNSIGNED_SHORT_5_6_5\";\n        // Shaders\n        // Constants passed to createShader() or getShaderParameter()\n        /** Passed to createShader to define a fragment shader. */\n        GLEnum[GLEnum[\"FRAGMENT_SHADER\"] = 35632] = \"FRAGMENT_SHADER\";\n        /** Passed to createShader to define a vertex shader */\n        GLEnum[GLEnum[\"VERTEX_SHADER\"] = 35633] = \"VERTEX_SHADER\";\n        /** Passed to getShaderParameter to get the status of the compilation. Returns false if the shader was not compiled. You can then query getShaderInfoLog to find the exact error */\n        GLEnum[GLEnum[\"COMPILE_STATUS\"] = 35713] = \"COMPILE_STATUS\";\n        /** Passed to getShaderParameter to determine if a shader was deleted via deleteShader. Returns true if it was, false otherwise. */\n        GLEnum[GLEnum[\"DELETE_STATUS\"] = 35712] = \"DELETE_STATUS\";\n        /** Passed to getProgramParameter after calling linkProgram to determine if a program was linked correctly. Returns false if there were errors. Use getProgramInfoLog to find the exact error. */\n        GLEnum[GLEnum[\"LINK_STATUS\"] = 35714] = \"LINK_STATUS\";\n        /** Passed to getProgramParameter after calling validateProgram to determine if it is valid. Returns false if errors were found. */\n        GLEnum[GLEnum[\"VALIDATE_STATUS\"] = 35715] = \"VALIDATE_STATUS\";\n        /** Passed to getProgramParameter after calling attachShader to determine if the shader was attached correctly. Returns false if errors occurred. */\n        GLEnum[GLEnum[\"ATTACHED_SHADERS\"] = 35717] = \"ATTACHED_SHADERS\";\n        /** Passed to getProgramParameter to get the number of attributes active in a program. */\n        GLEnum[GLEnum[\"ACTIVE_ATTRIBUTES\"] = 35721] = \"ACTIVE_ATTRIBUTES\";\n        /** Passed to getProgramParameter to get the number of uniforms active in a program. */\n        GLEnum[GLEnum[\"ACTIVE_UNIFORMS\"] = 35718] = \"ACTIVE_UNIFORMS\";\n        /** The maximum number of entries possible in the vertex attribute list. */\n        GLEnum[GLEnum[\"MAX_VERTEX_ATTRIBS\"] = 34921] = \"MAX_VERTEX_ATTRIBS\";\n        GLEnum[GLEnum[\"MAX_VERTEX_UNIFORM_VECTORS\"] = 36347] = \"MAX_VERTEX_UNIFORM_VECTORS\";\n        GLEnum[GLEnum[\"MAX_VARYING_VECTORS\"] = 36348] = \"MAX_VARYING_VECTORS\";\n        GLEnum[GLEnum[\"MAX_COMBINED_TEXTURE_IMAGE_UNITS\"] = 35661] = \"MAX_COMBINED_TEXTURE_IMAGE_UNITS\";\n        GLEnum[GLEnum[\"MAX_VERTEX_TEXTURE_IMAGE_UNITS\"] = 35660] = \"MAX_VERTEX_TEXTURE_IMAGE_UNITS\";\n        /** Implementation dependent number of maximum texture units. At least 8. */\n        GLEnum[GLEnum[\"MAX_TEXTURE_IMAGE_UNITS\"] = 34930] = \"MAX_TEXTURE_IMAGE_UNITS\";\n        GLEnum[GLEnum[\"MAX_FRAGMENT_UNIFORM_VECTORS\"] = 36349] = \"MAX_FRAGMENT_UNIFORM_VECTORS\";\n        GLEnum[GLEnum[\"SHADER_TYPE\"] = 35663] = \"SHADER_TYPE\";\n        GLEnum[GLEnum[\"SHADING_LANGUAGE_VERSION\"] = 35724] = \"SHADING_LANGUAGE_VERSION\";\n        GLEnum[GLEnum[\"CURRENT_PROGRAM\"] = 35725] = \"CURRENT_PROGRAM\";\n        // Depth or stencil tests\n        // Constants passed to depthFunc() or stencilFunc().\n        /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will never pass, i.e., nothing will be drawn. */\n        GLEnum[GLEnum[\"NEVER\"] = 512] = \"NEVER\";\n        /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than the stored value. */\n        GLEnum[GLEnum[\"LESS\"] = 513] = \"LESS\";\n        /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is equals to the stored value. */\n        GLEnum[GLEnum[\"EQUAL\"] = 514] = \"EQUAL\";\n        /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than or equal to the stored value. */\n        GLEnum[GLEnum[\"LEQUAL\"] = 515] = \"LEQUAL\";\n        /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than the stored value. */\n        GLEnum[GLEnum[\"GREATER\"] = 516] = \"GREATER\";\n        /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is not equal to the stored value. */\n        GLEnum[GLEnum[\"NOTEQUAL\"] = 517] = \"NOTEQUAL\";\n        /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than or equal to the stored value. */\n        GLEnum[GLEnum[\"GEQUAL\"] = 518] = \"GEQUAL\";\n        /** Passed to depthFunction or stencilFunction to specify depth or stencil tests will always pass, i.e., pixels will be drawn in the order they are drawn. */\n        GLEnum[GLEnum[\"ALWAYS\"] = 519] = \"ALWAYS\";\n        // Stencil actions\n        // Constants passed to stencilOp().\n        GLEnum[GLEnum[\"KEEP\"] = 7680] = \"KEEP\";\n        GLEnum[GLEnum[\"REPLACE\"] = 7681] = \"REPLACE\";\n        GLEnum[GLEnum[\"INCR\"] = 7682] = \"INCR\";\n        GLEnum[GLEnum[\"DECR\"] = 7683] = \"DECR\";\n        GLEnum[GLEnum[\"INVERT\"] = 5386] = \"INVERT\";\n        GLEnum[GLEnum[\"INCR_WRAP\"] = 34055] = \"INCR_WRAP\";\n        GLEnum[GLEnum[\"DECR_WRAP\"] = 34056] = \"DECR_WRAP\";\n        // Textures\n        // Constants passed to texParameteri(),\n        // texParameterf(), bindTexture(), texImage2D(), and others.\n        GLEnum[GLEnum[\"NEAREST\"] = 9728] = \"NEAREST\";\n        GLEnum[GLEnum[\"LINEAR\"] = 9729] = \"LINEAR\";\n        GLEnum[GLEnum[\"NEAREST_MIPMAP_NEAREST\"] = 9984] = \"NEAREST_MIPMAP_NEAREST\";\n        GLEnum[GLEnum[\"LINEAR_MIPMAP_NEAREST\"] = 9985] = \"LINEAR_MIPMAP_NEAREST\";\n        GLEnum[GLEnum[\"NEAREST_MIPMAP_LINEAR\"] = 9986] = \"NEAREST_MIPMAP_LINEAR\";\n        GLEnum[GLEnum[\"LINEAR_MIPMAP_LINEAR\"] = 9987] = \"LINEAR_MIPMAP_LINEAR\";\n        /** The texture magnification function is used when the pixel being textured maps to an area less than or equal to one texture element. It sets the texture magnification function to either GL_NEAREST or GL_LINEAR (see below). GL_NEAREST is generally faster than GL_LINEAR, but it can produce textured images with sharper edges because the transition between texture elements is not as smooth. Default: GL_LINEAR.  */\n        GLEnum[GLEnum[\"TEXTURE_MAG_FILTER\"] = 10240] = \"TEXTURE_MAG_FILTER\";\n        /** The texture minifying function is used whenever the pixel being textured maps to an area greater than one texture element. There are six defined minifying functions. Two of them use the nearest one or nearest four texture elements to compute the texture value. The other four use mipmaps. Default: GL_NEAREST_MIPMAP_LINEAR */\n        GLEnum[GLEnum[\"TEXTURE_MIN_FILTER\"] = 10241] = \"TEXTURE_MIN_FILTER\";\n        /** Sets the wrap parameter for texture coordinate  to either GL_CLAMP_TO_EDGE, GL_MIRRORED_REPEAT, or GL_REPEAT. G */\n        GLEnum[GLEnum[\"TEXTURE_WRAP_S\"] = 10242] = \"TEXTURE_WRAP_S\";\n        /** Sets the wrap parameter for texture coordinate  to either GL_CLAMP_TO_EDGE, GL_MIRRORED_REPEAT, or GL_REPEAT. G */\n        GLEnum[GLEnum[\"TEXTURE_WRAP_T\"] = 10243] = \"TEXTURE_WRAP_T\";\n        GLEnum[GLEnum[\"TEXTURE_2D\"] = 3553] = \"TEXTURE_2D\";\n        GLEnum[GLEnum[\"TEXTURE\"] = 5890] = \"TEXTURE\";\n        GLEnum[GLEnum[\"TEXTURE_CUBE_MAP\"] = 34067] = \"TEXTURE_CUBE_MAP\";\n        GLEnum[GLEnum[\"TEXTURE_BINDING_CUBE_MAP\"] = 34068] = \"TEXTURE_BINDING_CUBE_MAP\";\n        GLEnum[GLEnum[\"TEXTURE_CUBE_MAP_POSITIVE_X\"] = 34069] = \"TEXTURE_CUBE_MAP_POSITIVE_X\";\n        GLEnum[GLEnum[\"TEXTURE_CUBE_MAP_NEGATIVE_X\"] = 34070] = \"TEXTURE_CUBE_MAP_NEGATIVE_X\";\n        GLEnum[GLEnum[\"TEXTURE_CUBE_MAP_POSITIVE_Y\"] = 34071] = \"TEXTURE_CUBE_MAP_POSITIVE_Y\";\n        GLEnum[GLEnum[\"TEXTURE_CUBE_MAP_NEGATIVE_Y\"] = 34072] = \"TEXTURE_CUBE_MAP_NEGATIVE_Y\";\n        GLEnum[GLEnum[\"TEXTURE_CUBE_MAP_POSITIVE_Z\"] = 34073] = \"TEXTURE_CUBE_MAP_POSITIVE_Z\";\n        GLEnum[GLEnum[\"TEXTURE_CUBE_MAP_NEGATIVE_Z\"] = 34074] = \"TEXTURE_CUBE_MAP_NEGATIVE_Z\";\n        GLEnum[GLEnum[\"MAX_CUBE_MAP_TEXTURE_SIZE\"] = 34076] = \"MAX_CUBE_MAP_TEXTURE_SIZE\";\n        // TEXTURE0 - 31 0x84C0 - 0x84DF A texture unit.\n        GLEnum[GLEnum[\"TEXTURE0\"] = 33984] = \"TEXTURE0\";\n        GLEnum[GLEnum[\"ACTIVE_TEXTURE\"] = 34016] = \"ACTIVE_TEXTURE\";\n        GLEnum[GLEnum[\"REPEAT\"] = 10497] = \"REPEAT\";\n        GLEnum[GLEnum[\"CLAMP_TO_EDGE\"] = 33071] = \"CLAMP_TO_EDGE\";\n        GLEnum[GLEnum[\"MIRRORED_REPEAT\"] = 33648] = \"MIRRORED_REPEAT\";\n        // Emulation\n        GLEnum[GLEnum[\"TEXTURE_WIDTH\"] = 4096] = \"TEXTURE_WIDTH\";\n        GLEnum[GLEnum[\"TEXTURE_HEIGHT\"] = 4097] = \"TEXTURE_HEIGHT\";\n        // Uniform types\n        GLEnum[GLEnum[\"FLOAT_VEC2\"] = 35664] = \"FLOAT_VEC2\";\n        GLEnum[GLEnum[\"FLOAT_VEC3\"] = 35665] = \"FLOAT_VEC3\";\n        GLEnum[GLEnum[\"FLOAT_VEC4\"] = 35666] = \"FLOAT_VEC4\";\n        GLEnum[GLEnum[\"INT_VEC2\"] = 35667] = \"INT_VEC2\";\n        GLEnum[GLEnum[\"INT_VEC3\"] = 35668] = \"INT_VEC3\";\n        GLEnum[GLEnum[\"INT_VEC4\"] = 35669] = \"INT_VEC4\";\n        GLEnum[GLEnum[\"BOOL\"] = 35670] = \"BOOL\";\n        GLEnum[GLEnum[\"BOOL_VEC2\"] = 35671] = \"BOOL_VEC2\";\n        GLEnum[GLEnum[\"BOOL_VEC3\"] = 35672] = \"BOOL_VEC3\";\n        GLEnum[GLEnum[\"BOOL_VEC4\"] = 35673] = \"BOOL_VEC4\";\n        GLEnum[GLEnum[\"FLOAT_MAT2\"] = 35674] = \"FLOAT_MAT2\";\n        GLEnum[GLEnum[\"FLOAT_MAT3\"] = 35675] = \"FLOAT_MAT3\";\n        GLEnum[GLEnum[\"FLOAT_MAT4\"] = 35676] = \"FLOAT_MAT4\";\n        GLEnum[GLEnum[\"SAMPLER_2D\"] = 35678] = \"SAMPLER_2D\";\n        GLEnum[GLEnum[\"SAMPLER_CUBE\"] = 35680] = \"SAMPLER_CUBE\";\n        // Shader precision-specified types\n        GLEnum[GLEnum[\"LOW_FLOAT\"] = 36336] = \"LOW_FLOAT\";\n        GLEnum[GLEnum[\"MEDIUM_FLOAT\"] = 36337] = \"MEDIUM_FLOAT\";\n        GLEnum[GLEnum[\"HIGH_FLOAT\"] = 36338] = \"HIGH_FLOAT\";\n        GLEnum[GLEnum[\"LOW_INT\"] = 36339] = \"LOW_INT\";\n        GLEnum[GLEnum[\"MEDIUM_INT\"] = 36340] = \"MEDIUM_INT\";\n        GLEnum[GLEnum[\"HIGH_INT\"] = 36341] = \"HIGH_INT\";\n        // Framebuffers and renderbuffers\n        GLEnum[GLEnum[\"FRAMEBUFFER\"] = 36160] = \"FRAMEBUFFER\";\n        GLEnum[GLEnum[\"RENDERBUFFER\"] = 36161] = \"RENDERBUFFER\";\n        GLEnum[GLEnum[\"RGBA4\"] = 32854] = \"RGBA4\";\n        GLEnum[GLEnum[\"RGB5_A1\"] = 32855] = \"RGB5_A1\";\n        GLEnum[GLEnum[\"RGB565\"] = 36194] = \"RGB565\";\n        GLEnum[GLEnum[\"DEPTH_COMPONENT16\"] = 33189] = \"DEPTH_COMPONENT16\";\n        GLEnum[GLEnum[\"STENCIL_INDEX\"] = 6401] = \"STENCIL_INDEX\";\n        GLEnum[GLEnum[\"STENCIL_INDEX8\"] = 36168] = \"STENCIL_INDEX8\";\n        GLEnum[GLEnum[\"DEPTH_STENCIL\"] = 34041] = \"DEPTH_STENCIL\";\n        GLEnum[GLEnum[\"RENDERBUFFER_WIDTH\"] = 36162] = \"RENDERBUFFER_WIDTH\";\n        GLEnum[GLEnum[\"RENDERBUFFER_HEIGHT\"] = 36163] = \"RENDERBUFFER_HEIGHT\";\n        GLEnum[GLEnum[\"RENDERBUFFER_INTERNAL_FORMAT\"] = 36164] = \"RENDERBUFFER_INTERNAL_FORMAT\";\n        GLEnum[GLEnum[\"RENDERBUFFER_RED_SIZE\"] = 36176] = \"RENDERBUFFER_RED_SIZE\";\n        GLEnum[GLEnum[\"RENDERBUFFER_GREEN_SIZE\"] = 36177] = \"RENDERBUFFER_GREEN_SIZE\";\n        GLEnum[GLEnum[\"RENDERBUFFER_BLUE_SIZE\"] = 36178] = \"RENDERBUFFER_BLUE_SIZE\";\n        GLEnum[GLEnum[\"RENDERBUFFER_ALPHA_SIZE\"] = 36179] = \"RENDERBUFFER_ALPHA_SIZE\";\n        GLEnum[GLEnum[\"RENDERBUFFER_DEPTH_SIZE\"] = 36180] = \"RENDERBUFFER_DEPTH_SIZE\";\n        GLEnum[GLEnum[\"RENDERBUFFER_STENCIL_SIZE\"] = 36181] = \"RENDERBUFFER_STENCIL_SIZE\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE\"] = 36048] = \"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME\"] = 36049] = \"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL\"] = 36050] = \"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE\"] = 36051] = \"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE\";\n        GLEnum[GLEnum[\"COLOR_ATTACHMENT0\"] = 36064] = \"COLOR_ATTACHMENT0\";\n        GLEnum[GLEnum[\"DEPTH_ATTACHMENT\"] = 36096] = \"DEPTH_ATTACHMENT\";\n        GLEnum[GLEnum[\"STENCIL_ATTACHMENT\"] = 36128] = \"STENCIL_ATTACHMENT\";\n        GLEnum[GLEnum[\"DEPTH_STENCIL_ATTACHMENT\"] = 33306] = \"DEPTH_STENCIL_ATTACHMENT\";\n        GLEnum[GLEnum[\"NONE\"] = 0] = \"NONE\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_COMPLETE\"] = 36053] = \"FRAMEBUFFER_COMPLETE\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_INCOMPLETE_ATTACHMENT\"] = 36054] = \"FRAMEBUFFER_INCOMPLETE_ATTACHMENT\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT\"] = 36055] = \"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_INCOMPLETE_DIMENSIONS\"] = 36057] = \"FRAMEBUFFER_INCOMPLETE_DIMENSIONS\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_UNSUPPORTED\"] = 36061] = \"FRAMEBUFFER_UNSUPPORTED\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_BINDING\"] = 36006] = \"FRAMEBUFFER_BINDING\";\n        GLEnum[GLEnum[\"RENDERBUFFER_BINDING\"] = 36007] = \"RENDERBUFFER_BINDING\";\n        GLEnum[GLEnum[\"READ_FRAMEBUFFER\"] = 36008] = \"READ_FRAMEBUFFER\";\n        GLEnum[GLEnum[\"DRAW_FRAMEBUFFER\"] = 36009] = \"DRAW_FRAMEBUFFER\";\n        GLEnum[GLEnum[\"MAX_RENDERBUFFER_SIZE\"] = 34024] = \"MAX_RENDERBUFFER_SIZE\";\n        GLEnum[GLEnum[\"INVALID_FRAMEBUFFER_OPERATION\"] = 1286] = \"INVALID_FRAMEBUFFER_OPERATION\";\n        // Pixel storage modes\n        // Constants passed to pixelStorei().\n        GLEnum[GLEnum[\"UNPACK_FLIP_Y_WEBGL\"] = 37440] = \"UNPACK_FLIP_Y_WEBGL\";\n        GLEnum[GLEnum[\"UNPACK_PREMULTIPLY_ALPHA_WEBGL\"] = 37441] = \"UNPACK_PREMULTIPLY_ALPHA_WEBGL\";\n        GLEnum[GLEnum[\"UNPACK_COLORSPACE_CONVERSION_WEBGL\"] = 37443] = \"UNPACK_COLORSPACE_CONVERSION_WEBGL\";\n        // Additional constants defined WebGL 2\n        // These constants are defined on the WebGL2RenderingContext interface.\n        // All WebGL 1 constants are also available in a WebGL 2 context.\n        // Getting GL parameter information\n        // Constants passed to getParameter()\n        // to specify what information to return.\n        GLEnum[GLEnum[\"READ_BUFFER\"] = 3074] = \"READ_BUFFER\";\n        GLEnum[GLEnum[\"UNPACK_ROW_LENGTH\"] = 3314] = \"UNPACK_ROW_LENGTH\";\n        GLEnum[GLEnum[\"UNPACK_SKIP_ROWS\"] = 3315] = \"UNPACK_SKIP_ROWS\";\n        GLEnum[GLEnum[\"UNPACK_SKIP_PIXELS\"] = 3316] = \"UNPACK_SKIP_PIXELS\";\n        GLEnum[GLEnum[\"PACK_ROW_LENGTH\"] = 3330] = \"PACK_ROW_LENGTH\";\n        GLEnum[GLEnum[\"PACK_SKIP_ROWS\"] = 3331] = \"PACK_SKIP_ROWS\";\n        GLEnum[GLEnum[\"PACK_SKIP_PIXELS\"] = 3332] = \"PACK_SKIP_PIXELS\";\n        GLEnum[GLEnum[\"TEXTURE_BINDING_3D\"] = 32874] = \"TEXTURE_BINDING_3D\";\n        GLEnum[GLEnum[\"UNPACK_SKIP_IMAGES\"] = 32877] = \"UNPACK_SKIP_IMAGES\";\n        GLEnum[GLEnum[\"UNPACK_IMAGE_HEIGHT\"] = 32878] = \"UNPACK_IMAGE_HEIGHT\";\n        GLEnum[GLEnum[\"MAX_3D_TEXTURE_SIZE\"] = 32883] = \"MAX_3D_TEXTURE_SIZE\";\n        GLEnum[GLEnum[\"MAX_ELEMENTS_VERTICES\"] = 33000] = \"MAX_ELEMENTS_VERTICES\";\n        GLEnum[GLEnum[\"MAX_ELEMENTS_INDICES\"] = 33001] = \"MAX_ELEMENTS_INDICES\";\n        GLEnum[GLEnum[\"MAX_TEXTURE_LOD_BIAS\"] = 34045] = \"MAX_TEXTURE_LOD_BIAS\";\n        GLEnum[GLEnum[\"MAX_FRAGMENT_UNIFORM_COMPONENTS\"] = 35657] = \"MAX_FRAGMENT_UNIFORM_COMPONENTS\";\n        GLEnum[GLEnum[\"MAX_VERTEX_UNIFORM_COMPONENTS\"] = 35658] = \"MAX_VERTEX_UNIFORM_COMPONENTS\";\n        GLEnum[GLEnum[\"MAX_ARRAY_TEXTURE_LAYERS\"] = 35071] = \"MAX_ARRAY_TEXTURE_LAYERS\";\n        GLEnum[GLEnum[\"MIN_PROGRAM_TEXEL_OFFSET\"] = 35076] = \"MIN_PROGRAM_TEXEL_OFFSET\";\n        GLEnum[GLEnum[\"MAX_PROGRAM_TEXEL_OFFSET\"] = 35077] = \"MAX_PROGRAM_TEXEL_OFFSET\";\n        GLEnum[GLEnum[\"MAX_VARYING_COMPONENTS\"] = 35659] = \"MAX_VARYING_COMPONENTS\";\n        GLEnum[GLEnum[\"FRAGMENT_SHADER_DERIVATIVE_HINT\"] = 35723] = \"FRAGMENT_SHADER_DERIVATIVE_HINT\";\n        GLEnum[GLEnum[\"RASTERIZER_DISCARD\"] = 35977] = \"RASTERIZER_DISCARD\";\n        GLEnum[GLEnum[\"VERTEX_ARRAY_BINDING\"] = 34229] = \"VERTEX_ARRAY_BINDING\";\n        GLEnum[GLEnum[\"MAX_VERTEX_OUTPUT_COMPONENTS\"] = 37154] = \"MAX_VERTEX_OUTPUT_COMPONENTS\";\n        GLEnum[GLEnum[\"MAX_FRAGMENT_INPUT_COMPONENTS\"] = 37157] = \"MAX_FRAGMENT_INPUT_COMPONENTS\";\n        GLEnum[GLEnum[\"MAX_SERVER_WAIT_TIMEOUT\"] = 37137] = \"MAX_SERVER_WAIT_TIMEOUT\";\n        GLEnum[GLEnum[\"MAX_ELEMENT_INDEX\"] = 36203] = \"MAX_ELEMENT_INDEX\";\n        // Textures\n        // Constants passed to texParameteri(),\n        // texParameterf(), bindTexture(), texImage2D(), and others.\n        GLEnum[GLEnum[\"RED\"] = 6403] = \"RED\";\n        GLEnum[GLEnum[\"RGB8\"] = 32849] = \"RGB8\";\n        GLEnum[GLEnum[\"RGBA8\"] = 32856] = \"RGBA8\";\n        GLEnum[GLEnum[\"RGB10_A2\"] = 32857] = \"RGB10_A2\";\n        GLEnum[GLEnum[\"TEXTURE_3D\"] = 32879] = \"TEXTURE_3D\";\n        /** Sets the wrap parameter for texture coordinate  to either GL_CLAMP_TO_EDGE, GL_MIRRORED_REPEAT, or GL_REPEAT. G */\n        GLEnum[GLEnum[\"TEXTURE_WRAP_R\"] = 32882] = \"TEXTURE_WRAP_R\";\n        GLEnum[GLEnum[\"TEXTURE_MIN_LOD\"] = 33082] = \"TEXTURE_MIN_LOD\";\n        GLEnum[GLEnum[\"TEXTURE_MAX_LOD\"] = 33083] = \"TEXTURE_MAX_LOD\";\n        GLEnum[GLEnum[\"TEXTURE_BASE_LEVEL\"] = 33084] = \"TEXTURE_BASE_LEVEL\";\n        GLEnum[GLEnum[\"TEXTURE_MAX_LEVEL\"] = 33085] = \"TEXTURE_MAX_LEVEL\";\n        GLEnum[GLEnum[\"TEXTURE_COMPARE_MODE\"] = 34892] = \"TEXTURE_COMPARE_MODE\";\n        GLEnum[GLEnum[\"TEXTURE_COMPARE_FUNC\"] = 34893] = \"TEXTURE_COMPARE_FUNC\";\n        GLEnum[GLEnum[\"SRGB\"] = 35904] = \"SRGB\";\n        GLEnum[GLEnum[\"SRGB8\"] = 35905] = \"SRGB8\";\n        GLEnum[GLEnum[\"SRGB8_ALPHA8\"] = 35907] = \"SRGB8_ALPHA8\";\n        GLEnum[GLEnum[\"COMPARE_REF_TO_TEXTURE\"] = 34894] = \"COMPARE_REF_TO_TEXTURE\";\n        GLEnum[GLEnum[\"RGBA32F\"] = 34836] = \"RGBA32F\";\n        GLEnum[GLEnum[\"RGB32F\"] = 34837] = \"RGB32F\";\n        GLEnum[GLEnum[\"RGBA16F\"] = 34842] = \"RGBA16F\";\n        GLEnum[GLEnum[\"RGB16F\"] = 34843] = \"RGB16F\";\n        GLEnum[GLEnum[\"TEXTURE_2D_ARRAY\"] = 35866] = \"TEXTURE_2D_ARRAY\";\n        GLEnum[GLEnum[\"TEXTURE_BINDING_2D_ARRAY\"] = 35869] = \"TEXTURE_BINDING_2D_ARRAY\";\n        GLEnum[GLEnum[\"R11F_G11F_B10F\"] = 35898] = \"R11F_G11F_B10F\";\n        GLEnum[GLEnum[\"RGB9_E5\"] = 35901] = \"RGB9_E5\";\n        GLEnum[GLEnum[\"RGBA32UI\"] = 36208] = \"RGBA32UI\";\n        GLEnum[GLEnum[\"RGB32UI\"] = 36209] = \"RGB32UI\";\n        GLEnum[GLEnum[\"RGBA16UI\"] = 36214] = \"RGBA16UI\";\n        GLEnum[GLEnum[\"RGB16UI\"] = 36215] = \"RGB16UI\";\n        GLEnum[GLEnum[\"RGBA8UI\"] = 36220] = \"RGBA8UI\";\n        GLEnum[GLEnum[\"RGB8UI\"] = 36221] = \"RGB8UI\";\n        GLEnum[GLEnum[\"RGBA32I\"] = 36226] = \"RGBA32I\";\n        GLEnum[GLEnum[\"RGB32I\"] = 36227] = \"RGB32I\";\n        GLEnum[GLEnum[\"RGBA16I\"] = 36232] = \"RGBA16I\";\n        GLEnum[GLEnum[\"RGB16I\"] = 36233] = \"RGB16I\";\n        GLEnum[GLEnum[\"RGBA8I\"] = 36238] = \"RGBA8I\";\n        GLEnum[GLEnum[\"RGB8I\"] = 36239] = \"RGB8I\";\n        GLEnum[GLEnum[\"RED_INTEGER\"] = 36244] = \"RED_INTEGER\";\n        GLEnum[GLEnum[\"RGB_INTEGER\"] = 36248] = \"RGB_INTEGER\";\n        GLEnum[GLEnum[\"RGBA_INTEGER\"] = 36249] = \"RGBA_INTEGER\";\n        GLEnum[GLEnum[\"R8\"] = 33321] = \"R8\";\n        GLEnum[GLEnum[\"RG8\"] = 33323] = \"RG8\";\n        GLEnum[GLEnum[\"R16F\"] = 33325] = \"R16F\";\n        GLEnum[GLEnum[\"R32F\"] = 33326] = \"R32F\";\n        GLEnum[GLEnum[\"RG16F\"] = 33327] = \"RG16F\";\n        GLEnum[GLEnum[\"RG32F\"] = 33328] = \"RG32F\";\n        GLEnum[GLEnum[\"R8I\"] = 33329] = \"R8I\";\n        GLEnum[GLEnum[\"R8UI\"] = 33330] = \"R8UI\";\n        GLEnum[GLEnum[\"R16I\"] = 33331] = \"R16I\";\n        GLEnum[GLEnum[\"R16UI\"] = 33332] = \"R16UI\";\n        GLEnum[GLEnum[\"R32I\"] = 33333] = \"R32I\";\n        GLEnum[GLEnum[\"R32UI\"] = 33334] = \"R32UI\";\n        GLEnum[GLEnum[\"RG8I\"] = 33335] = \"RG8I\";\n        GLEnum[GLEnum[\"RG8UI\"] = 33336] = \"RG8UI\";\n        GLEnum[GLEnum[\"RG16I\"] = 33337] = \"RG16I\";\n        GLEnum[GLEnum[\"RG16UI\"] = 33338] = \"RG16UI\";\n        GLEnum[GLEnum[\"RG32I\"] = 33339] = \"RG32I\";\n        GLEnum[GLEnum[\"RG32UI\"] = 33340] = \"RG32UI\";\n        GLEnum[GLEnum[\"R8_SNORM\"] = 36756] = \"R8_SNORM\";\n        GLEnum[GLEnum[\"RG8_SNORM\"] = 36757] = \"RG8_SNORM\";\n        GLEnum[GLEnum[\"RGB8_SNORM\"] = 36758] = \"RGB8_SNORM\";\n        GLEnum[GLEnum[\"RGBA8_SNORM\"] = 36759] = \"RGBA8_SNORM\";\n        GLEnum[GLEnum[\"RGB10_A2UI\"] = 36975] = \"RGB10_A2UI\";\n        /* covered by extension\n        COMPRESSED_R11_EAC  = 0x9270,\n        COMPRESSED_SIGNED_R11_EAC = 0x9271,\n        COMPRESSED_RG11_EAC = 0x9272,\n        COMPRESSED_SIGNED_RG11_EAC  = 0x9273,\n        COMPRESSED_RGB8_ETC2  = 0x9274,\n        COMPRESSED_SRGB8_ETC2 = 0x9275,\n        COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2  = 0x9276,\n        COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC  = 0x9277,\n        COMPRESSED_RGBA8_ETC2_EAC = 0x9278,\n        COMPRESSED_SRGB8_ALPHA8_ETC2_EAC  = 0x9279,\n        */\n        GLEnum[GLEnum[\"TEXTURE_IMMUTABLE_FORMAT\"] = 37167] = \"TEXTURE_IMMUTABLE_FORMAT\";\n        GLEnum[GLEnum[\"TEXTURE_IMMUTABLE_LEVELS\"] = 33503] = \"TEXTURE_IMMUTABLE_LEVELS\";\n        // Pixel types\n        GLEnum[GLEnum[\"UNSIGNED_INT_2_10_10_10_REV\"] = 33640] = \"UNSIGNED_INT_2_10_10_10_REV\";\n        GLEnum[GLEnum[\"UNSIGNED_INT_10F_11F_11F_REV\"] = 35899] = \"UNSIGNED_INT_10F_11F_11F_REV\";\n        GLEnum[GLEnum[\"UNSIGNED_INT_5_9_9_9_REV\"] = 35902] = \"UNSIGNED_INT_5_9_9_9_REV\";\n        GLEnum[GLEnum[\"FLOAT_32_UNSIGNED_INT_24_8_REV\"] = 36269] = \"FLOAT_32_UNSIGNED_INT_24_8_REV\";\n        GLEnum[GLEnum[\"UNSIGNED_INT_24_8\"] = 34042] = \"UNSIGNED_INT_24_8\";\n        GLEnum[GLEnum[\"HALF_FLOAT\"] = 5131] = \"HALF_FLOAT\";\n        GLEnum[GLEnum[\"RG\"] = 33319] = \"RG\";\n        GLEnum[GLEnum[\"RG_INTEGER\"] = 33320] = \"RG_INTEGER\";\n        GLEnum[GLEnum[\"INT_2_10_10_10_REV\"] = 36255] = \"INT_2_10_10_10_REV\";\n        // Queries\n        GLEnum[GLEnum[\"CURRENT_QUERY\"] = 34917] = \"CURRENT_QUERY\";\n        /** Returns a GLuint containing the query result. */\n        GLEnum[GLEnum[\"QUERY_RESULT\"] = 34918] = \"QUERY_RESULT\";\n        /** Whether query result is available. */\n        GLEnum[GLEnum[\"QUERY_RESULT_AVAILABLE\"] = 34919] = \"QUERY_RESULT_AVAILABLE\";\n        /** Occlusion query (if drawing passed depth test)  */\n        GLEnum[GLEnum[\"ANY_SAMPLES_PASSED\"] = 35887] = \"ANY_SAMPLES_PASSED\";\n        /** Occlusion query less accurate/faster version */\n        GLEnum[GLEnum[\"ANY_SAMPLES_PASSED_CONSERVATIVE\"] = 36202] = \"ANY_SAMPLES_PASSED_CONSERVATIVE\";\n        // Draw buffers\n        GLEnum[GLEnum[\"MAX_DRAW_BUFFERS\"] = 34852] = \"MAX_DRAW_BUFFERS\";\n        GLEnum[GLEnum[\"DRAW_BUFFER0\"] = 34853] = \"DRAW_BUFFER0\";\n        GLEnum[GLEnum[\"DRAW_BUFFER1\"] = 34854] = \"DRAW_BUFFER1\";\n        GLEnum[GLEnum[\"DRAW_BUFFER2\"] = 34855] = \"DRAW_BUFFER2\";\n        GLEnum[GLEnum[\"DRAW_BUFFER3\"] = 34856] = \"DRAW_BUFFER3\";\n        GLEnum[GLEnum[\"DRAW_BUFFER4\"] = 34857] = \"DRAW_BUFFER4\";\n        GLEnum[GLEnum[\"DRAW_BUFFER5\"] = 34858] = \"DRAW_BUFFER5\";\n        GLEnum[GLEnum[\"DRAW_BUFFER6\"] = 34859] = \"DRAW_BUFFER6\";\n        GLEnum[GLEnum[\"DRAW_BUFFER7\"] = 34860] = \"DRAW_BUFFER7\";\n        GLEnum[GLEnum[\"DRAW_BUFFER8\"] = 34861] = \"DRAW_BUFFER8\";\n        GLEnum[GLEnum[\"DRAW_BUFFER9\"] = 34862] = \"DRAW_BUFFER9\";\n        GLEnum[GLEnum[\"DRAW_BUFFER10\"] = 34863] = \"DRAW_BUFFER10\";\n        GLEnum[GLEnum[\"DRAW_BUFFER11\"] = 34864] = \"DRAW_BUFFER11\";\n        GLEnum[GLEnum[\"DRAW_BUFFER12\"] = 34865] = \"DRAW_BUFFER12\";\n        GLEnum[GLEnum[\"DRAW_BUFFER13\"] = 34866] = \"DRAW_BUFFER13\";\n        GLEnum[GLEnum[\"DRAW_BUFFER14\"] = 34867] = \"DRAW_BUFFER14\";\n        GLEnum[GLEnum[\"DRAW_BUFFER15\"] = 34868] = \"DRAW_BUFFER15\";\n        GLEnum[GLEnum[\"MAX_COLOR_ATTACHMENTS\"] = 36063] = \"MAX_COLOR_ATTACHMENTS\";\n        GLEnum[GLEnum[\"COLOR_ATTACHMENT1\"] = 36065] = \"COLOR_ATTACHMENT1\";\n        GLEnum[GLEnum[\"COLOR_ATTACHMENT2\"] = 36066] = \"COLOR_ATTACHMENT2\";\n        GLEnum[GLEnum[\"COLOR_ATTACHMENT3\"] = 36067] = \"COLOR_ATTACHMENT3\";\n        GLEnum[GLEnum[\"COLOR_ATTACHMENT4\"] = 36068] = \"COLOR_ATTACHMENT4\";\n        GLEnum[GLEnum[\"COLOR_ATTACHMENT5\"] = 36069] = \"COLOR_ATTACHMENT5\";\n        GLEnum[GLEnum[\"COLOR_ATTACHMENT6\"] = 36070] = \"COLOR_ATTACHMENT6\";\n        GLEnum[GLEnum[\"COLOR_ATTACHMENT7\"] = 36071] = \"COLOR_ATTACHMENT7\";\n        GLEnum[GLEnum[\"COLOR_ATTACHMENT8\"] = 36072] = \"COLOR_ATTACHMENT8\";\n        GLEnum[GLEnum[\"COLOR_ATTACHMENT9\"] = 36073] = \"COLOR_ATTACHMENT9\";\n        GLEnum[GLEnum[\"COLOR_ATTACHMENT10\"] = 36074] = \"COLOR_ATTACHMENT10\";\n        GLEnum[GLEnum[\"COLOR_ATTACHMENT11\"] = 36075] = \"COLOR_ATTACHMENT11\";\n        GLEnum[GLEnum[\"COLOR_ATTACHMENT12\"] = 36076] = \"COLOR_ATTACHMENT12\";\n        GLEnum[GLEnum[\"COLOR_ATTACHMENT13\"] = 36077] = \"COLOR_ATTACHMENT13\";\n        GLEnum[GLEnum[\"COLOR_ATTACHMENT14\"] = 36078] = \"COLOR_ATTACHMENT14\";\n        GLEnum[GLEnum[\"COLOR_ATTACHMENT15\"] = 36079] = \"COLOR_ATTACHMENT15\";\n        // Samplers\n        GLEnum[GLEnum[\"SAMPLER_3D\"] = 35679] = \"SAMPLER_3D\";\n        GLEnum[GLEnum[\"SAMPLER_2D_SHADOW\"] = 35682] = \"SAMPLER_2D_SHADOW\";\n        GLEnum[GLEnum[\"SAMPLER_2D_ARRAY\"] = 36289] = \"SAMPLER_2D_ARRAY\";\n        GLEnum[GLEnum[\"SAMPLER_2D_ARRAY_SHADOW\"] = 36292] = \"SAMPLER_2D_ARRAY_SHADOW\";\n        GLEnum[GLEnum[\"SAMPLER_CUBE_SHADOW\"] = 36293] = \"SAMPLER_CUBE_SHADOW\";\n        GLEnum[GLEnum[\"INT_SAMPLER_2D\"] = 36298] = \"INT_SAMPLER_2D\";\n        GLEnum[GLEnum[\"INT_SAMPLER_3D\"] = 36299] = \"INT_SAMPLER_3D\";\n        GLEnum[GLEnum[\"INT_SAMPLER_CUBE\"] = 36300] = \"INT_SAMPLER_CUBE\";\n        GLEnum[GLEnum[\"INT_SAMPLER_2D_ARRAY\"] = 36303] = \"INT_SAMPLER_2D_ARRAY\";\n        GLEnum[GLEnum[\"UNSIGNED_INT_SAMPLER_2D\"] = 36306] = \"UNSIGNED_INT_SAMPLER_2D\";\n        GLEnum[GLEnum[\"UNSIGNED_INT_SAMPLER_3D\"] = 36307] = \"UNSIGNED_INT_SAMPLER_3D\";\n        GLEnum[GLEnum[\"UNSIGNED_INT_SAMPLER_CUBE\"] = 36308] = \"UNSIGNED_INT_SAMPLER_CUBE\";\n        GLEnum[GLEnum[\"UNSIGNED_INT_SAMPLER_2D_ARRAY\"] = 36311] = \"UNSIGNED_INT_SAMPLER_2D_ARRAY\";\n        GLEnum[GLEnum[\"MAX_SAMPLES\"] = 36183] = \"MAX_SAMPLES\";\n        GLEnum[GLEnum[\"SAMPLER_BINDING\"] = 35097] = \"SAMPLER_BINDING\";\n        // Buffers\n        GLEnum[GLEnum[\"PIXEL_PACK_BUFFER\"] = 35051] = \"PIXEL_PACK_BUFFER\";\n        GLEnum[GLEnum[\"PIXEL_UNPACK_BUFFER\"] = 35052] = \"PIXEL_UNPACK_BUFFER\";\n        GLEnum[GLEnum[\"PIXEL_PACK_BUFFER_BINDING\"] = 35053] = \"PIXEL_PACK_BUFFER_BINDING\";\n        GLEnum[GLEnum[\"PIXEL_UNPACK_BUFFER_BINDING\"] = 35055] = \"PIXEL_UNPACK_BUFFER_BINDING\";\n        GLEnum[GLEnum[\"COPY_READ_BUFFER\"] = 36662] = \"COPY_READ_BUFFER\";\n        GLEnum[GLEnum[\"COPY_WRITE_BUFFER\"] = 36663] = \"COPY_WRITE_BUFFER\";\n        GLEnum[GLEnum[\"COPY_READ_BUFFER_BINDING\"] = 36662] = \"COPY_READ_BUFFER_BINDING\";\n        GLEnum[GLEnum[\"COPY_WRITE_BUFFER_BINDING\"] = 36663] = \"COPY_WRITE_BUFFER_BINDING\";\n        // Data types\n        GLEnum[GLEnum[\"FLOAT_MAT2x3\"] = 35685] = \"FLOAT_MAT2x3\";\n        GLEnum[GLEnum[\"FLOAT_MAT2x4\"] = 35686] = \"FLOAT_MAT2x4\";\n        GLEnum[GLEnum[\"FLOAT_MAT3x2\"] = 35687] = \"FLOAT_MAT3x2\";\n        GLEnum[GLEnum[\"FLOAT_MAT3x4\"] = 35688] = \"FLOAT_MAT3x4\";\n        GLEnum[GLEnum[\"FLOAT_MAT4x2\"] = 35689] = \"FLOAT_MAT4x2\";\n        GLEnum[GLEnum[\"FLOAT_MAT4x3\"] = 35690] = \"FLOAT_MAT4x3\";\n        GLEnum[GLEnum[\"UNSIGNED_INT_VEC2\"] = 36294] = \"UNSIGNED_INT_VEC2\";\n        GLEnum[GLEnum[\"UNSIGNED_INT_VEC3\"] = 36295] = \"UNSIGNED_INT_VEC3\";\n        GLEnum[GLEnum[\"UNSIGNED_INT_VEC4\"] = 36296] = \"UNSIGNED_INT_VEC4\";\n        GLEnum[GLEnum[\"UNSIGNED_NORMALIZED\"] = 35863] = \"UNSIGNED_NORMALIZED\";\n        GLEnum[GLEnum[\"SIGNED_NORMALIZED\"] = 36764] = \"SIGNED_NORMALIZED\";\n        // Vertex attributes\n        GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_INTEGER\"] = 35069] = \"VERTEX_ATTRIB_ARRAY_INTEGER\";\n        GLEnum[GLEnum[\"VERTEX_ATTRIB_ARRAY_DIVISOR\"] = 35070] = \"VERTEX_ATTRIB_ARRAY_DIVISOR\";\n        // Transform feedback\n        GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_BUFFER_MODE\"] = 35967] = \"TRANSFORM_FEEDBACK_BUFFER_MODE\";\n        GLEnum[GLEnum[\"MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS\"] = 35968] = \"MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS\";\n        GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_VARYINGS\"] = 35971] = \"TRANSFORM_FEEDBACK_VARYINGS\";\n        GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_BUFFER_START\"] = 35972] = \"TRANSFORM_FEEDBACK_BUFFER_START\";\n        GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_BUFFER_SIZE\"] = 35973] = \"TRANSFORM_FEEDBACK_BUFFER_SIZE\";\n        GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN\"] = 35976] = \"TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN\";\n        GLEnum[GLEnum[\"MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS\"] = 35978] = \"MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS\";\n        GLEnum[GLEnum[\"MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS\"] = 35979] = \"MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS\";\n        GLEnum[GLEnum[\"INTERLEAVED_ATTRIBS\"] = 35980] = \"INTERLEAVED_ATTRIBS\";\n        GLEnum[GLEnum[\"SEPARATE_ATTRIBS\"] = 35981] = \"SEPARATE_ATTRIBS\";\n        GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_BUFFER\"] = 35982] = \"TRANSFORM_FEEDBACK_BUFFER\";\n        GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_BUFFER_BINDING\"] = 35983] = \"TRANSFORM_FEEDBACK_BUFFER_BINDING\";\n        GLEnum[GLEnum[\"TRANSFORM_FEEDBACK\"] = 36386] = \"TRANSFORM_FEEDBACK\";\n        GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_PAUSED\"] = 36387] = \"TRANSFORM_FEEDBACK_PAUSED\";\n        GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_ACTIVE\"] = 36388] = \"TRANSFORM_FEEDBACK_ACTIVE\";\n        GLEnum[GLEnum[\"TRANSFORM_FEEDBACK_BINDING\"] = 36389] = \"TRANSFORM_FEEDBACK_BINDING\";\n        // Framebuffers and renderbuffers\n        GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING\"] = 33296] = \"FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE\"] = 33297] = \"FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_RED_SIZE\"] = 33298] = \"FRAMEBUFFER_ATTACHMENT_RED_SIZE\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_GREEN_SIZE\"] = 33299] = \"FRAMEBUFFER_ATTACHMENT_GREEN_SIZE\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_BLUE_SIZE\"] = 33300] = \"FRAMEBUFFER_ATTACHMENT_BLUE_SIZE\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE\"] = 33301] = \"FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE\"] = 33302] = \"FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE\"] = 33303] = \"FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_DEFAULT\"] = 33304] = \"FRAMEBUFFER_DEFAULT\";\n        // DEPTH_STENCIL_ATTACHMENT  = 0x821A,\n        // DEPTH_STENCIL = 0x84F9,\n        GLEnum[GLEnum[\"DEPTH24_STENCIL8\"] = 35056] = \"DEPTH24_STENCIL8\";\n        GLEnum[GLEnum[\"DRAW_FRAMEBUFFER_BINDING\"] = 36006] = \"DRAW_FRAMEBUFFER_BINDING\";\n        GLEnum[GLEnum[\"READ_FRAMEBUFFER_BINDING\"] = 36010] = \"READ_FRAMEBUFFER_BINDING\";\n        GLEnum[GLEnum[\"RENDERBUFFER_SAMPLES\"] = 36011] = \"RENDERBUFFER_SAMPLES\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER\"] = 36052] = \"FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER\";\n        GLEnum[GLEnum[\"FRAMEBUFFER_INCOMPLETE_MULTISAMPLE\"] = 36182] = \"FRAMEBUFFER_INCOMPLETE_MULTISAMPLE\";\n        // Uniforms\n        GLEnum[GLEnum[\"UNIFORM_BUFFER\"] = 35345] = \"UNIFORM_BUFFER\";\n        GLEnum[GLEnum[\"UNIFORM_BUFFER_BINDING\"] = 35368] = \"UNIFORM_BUFFER_BINDING\";\n        GLEnum[GLEnum[\"UNIFORM_BUFFER_START\"] = 35369] = \"UNIFORM_BUFFER_START\";\n        GLEnum[GLEnum[\"UNIFORM_BUFFER_SIZE\"] = 35370] = \"UNIFORM_BUFFER_SIZE\";\n        GLEnum[GLEnum[\"MAX_VERTEX_UNIFORM_BLOCKS\"] = 35371] = \"MAX_VERTEX_UNIFORM_BLOCKS\";\n        GLEnum[GLEnum[\"MAX_FRAGMENT_UNIFORM_BLOCKS\"] = 35373] = \"MAX_FRAGMENT_UNIFORM_BLOCKS\";\n        GLEnum[GLEnum[\"MAX_COMBINED_UNIFORM_BLOCKS\"] = 35374] = \"MAX_COMBINED_UNIFORM_BLOCKS\";\n        GLEnum[GLEnum[\"MAX_UNIFORM_BUFFER_BINDINGS\"] = 35375] = \"MAX_UNIFORM_BUFFER_BINDINGS\";\n        GLEnum[GLEnum[\"MAX_UNIFORM_BLOCK_SIZE\"] = 35376] = \"MAX_UNIFORM_BLOCK_SIZE\";\n        GLEnum[GLEnum[\"MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS\"] = 35377] = \"MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS\";\n        GLEnum[GLEnum[\"MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS\"] = 35379] = \"MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS\";\n        GLEnum[GLEnum[\"UNIFORM_BUFFER_OFFSET_ALIGNMENT\"] = 35380] = \"UNIFORM_BUFFER_OFFSET_ALIGNMENT\";\n        GLEnum[GLEnum[\"ACTIVE_UNIFORM_BLOCKS\"] = 35382] = \"ACTIVE_UNIFORM_BLOCKS\";\n        GLEnum[GLEnum[\"UNIFORM_TYPE\"] = 35383] = \"UNIFORM_TYPE\";\n        GLEnum[GLEnum[\"UNIFORM_SIZE\"] = 35384] = \"UNIFORM_SIZE\";\n        GLEnum[GLEnum[\"UNIFORM_BLOCK_INDEX\"] = 35386] = \"UNIFORM_BLOCK_INDEX\";\n        GLEnum[GLEnum[\"UNIFORM_OFFSET\"] = 35387] = \"UNIFORM_OFFSET\";\n        GLEnum[GLEnum[\"UNIFORM_ARRAY_STRIDE\"] = 35388] = \"UNIFORM_ARRAY_STRIDE\";\n        GLEnum[GLEnum[\"UNIFORM_MATRIX_STRIDE\"] = 35389] = \"UNIFORM_MATRIX_STRIDE\";\n        GLEnum[GLEnum[\"UNIFORM_IS_ROW_MAJOR\"] = 35390] = \"UNIFORM_IS_ROW_MAJOR\";\n        GLEnum[GLEnum[\"UNIFORM_BLOCK_BINDING\"] = 35391] = \"UNIFORM_BLOCK_BINDING\";\n        GLEnum[GLEnum[\"UNIFORM_BLOCK_DATA_SIZE\"] = 35392] = \"UNIFORM_BLOCK_DATA_SIZE\";\n        GLEnum[GLEnum[\"UNIFORM_BLOCK_ACTIVE_UNIFORMS\"] = 35394] = \"UNIFORM_BLOCK_ACTIVE_UNIFORMS\";\n        GLEnum[GLEnum[\"UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES\"] = 35395] = \"UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES\";\n        GLEnum[GLEnum[\"UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER\"] = 35396] = \"UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER\";\n        GLEnum[GLEnum[\"UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER\"] = 35398] = \"UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER\";\n        // Sync objects\n        GLEnum[GLEnum[\"OBJECT_TYPE\"] = 37138] = \"OBJECT_TYPE\";\n        GLEnum[GLEnum[\"SYNC_CONDITION\"] = 37139] = \"SYNC_CONDITION\";\n        GLEnum[GLEnum[\"SYNC_STATUS\"] = 37140] = \"SYNC_STATUS\";\n        GLEnum[GLEnum[\"SYNC_FLAGS\"] = 37141] = \"SYNC_FLAGS\";\n        GLEnum[GLEnum[\"SYNC_FENCE\"] = 37142] = \"SYNC_FENCE\";\n        GLEnum[GLEnum[\"SYNC_GPU_COMMANDS_COMPLETE\"] = 37143] = \"SYNC_GPU_COMMANDS_COMPLETE\";\n        GLEnum[GLEnum[\"UNSIGNALED\"] = 37144] = \"UNSIGNALED\";\n        GLEnum[GLEnum[\"SIGNALED\"] = 37145] = \"SIGNALED\";\n        GLEnum[GLEnum[\"ALREADY_SIGNALED\"] = 37146] = \"ALREADY_SIGNALED\";\n        GLEnum[GLEnum[\"TIMEOUT_EXPIRED\"] = 37147] = \"TIMEOUT_EXPIRED\";\n        GLEnum[GLEnum[\"CONDITION_SATISFIED\"] = 37148] = \"CONDITION_SATISFIED\";\n        GLEnum[GLEnum[\"WAIT_FAILED\"] = 37149] = \"WAIT_FAILED\";\n        GLEnum[GLEnum[\"SYNC_FLUSH_COMMANDS_BIT\"] = 1] = \"SYNC_FLUSH_COMMANDS_BIT\";\n        // Miscellaneous constants\n        GLEnum[GLEnum[\"COLOR\"] = 6144] = \"COLOR\";\n        GLEnum[GLEnum[\"DEPTH\"] = 6145] = \"DEPTH\";\n        GLEnum[GLEnum[\"STENCIL\"] = 6146] = \"STENCIL\";\n        GLEnum[GLEnum[\"MIN\"] = 32775] = \"MIN\";\n        GLEnum[GLEnum[\"MAX\"] = 32776] = \"MAX\";\n        GLEnum[GLEnum[\"DEPTH_COMPONENT24\"] = 33190] = \"DEPTH_COMPONENT24\";\n        GLEnum[GLEnum[\"STREAM_READ\"] = 35041] = \"STREAM_READ\";\n        GLEnum[GLEnum[\"STREAM_COPY\"] = 35042] = \"STREAM_COPY\";\n        GLEnum[GLEnum[\"STATIC_READ\"] = 35045] = \"STATIC_READ\";\n        GLEnum[GLEnum[\"STATIC_COPY\"] = 35046] = \"STATIC_COPY\";\n        GLEnum[GLEnum[\"DYNAMIC_READ\"] = 35049] = \"DYNAMIC_READ\";\n        GLEnum[GLEnum[\"DYNAMIC_COPY\"] = 35050] = \"DYNAMIC_COPY\";\n        GLEnum[GLEnum[\"DEPTH_COMPONENT32F\"] = 36012] = \"DEPTH_COMPONENT32F\";\n        GLEnum[GLEnum[\"DEPTH32F_STENCIL8\"] = 36013] = \"DEPTH32F_STENCIL8\";\n        GLEnum[GLEnum[\"INVALID_INDEX\"] = 4294967295] = \"INVALID_INDEX\";\n        GLEnum[GLEnum[\"TIMEOUT_IGNORED\"] = -1] = \"TIMEOUT_IGNORED\";\n        GLEnum[GLEnum[\"MAX_CLIENT_WAIT_TIMEOUT_WEBGL\"] = 37447] = \"MAX_CLIENT_WAIT_TIMEOUT_WEBGL\";\n        // Constants defined in WebGL extensions\n        // WEBGL_debug_renderer_info\n        /** Passed to getParameter to get the vendor string of the graphics driver. */\n        GLEnum[GLEnum[\"UNMASKED_VENDOR_WEBGL\"] = 37445] = \"UNMASKED_VENDOR_WEBGL\";\n        /** Passed to getParameter to get the renderer string of the graphics driver. */\n        GLEnum[GLEnum[\"UNMASKED_RENDERER_WEBGL\"] = 37446] = \"UNMASKED_RENDERER_WEBGL\";\n        // EXT_texture_filter_anisotropic\n        /** Returns the maximum available anisotropy. */\n        GLEnum[GLEnum[\"MAX_TEXTURE_MAX_ANISOTROPY_EXT\"] = 34047] = \"MAX_TEXTURE_MAX_ANISOTROPY_EXT\";\n        /** Passed to texParameter to set the desired maximum anisotropy for a texture. */\n        GLEnum[GLEnum[\"TEXTURE_MAX_ANISOTROPY_EXT\"] = 34046] = \"TEXTURE_MAX_ANISOTROPY_EXT\";\n        // EXT_texture_norm16 - https://khronos.org/registry/webgl/extensions/EXT_texture_norm16/\n        GLEnum[GLEnum[\"R16_EXT\"] = 33322] = \"R16_EXT\";\n        GLEnum[GLEnum[\"RG16_EXT\"] = 33324] = \"RG16_EXT\";\n        GLEnum[GLEnum[\"RGB16_EXT\"] = 32852] = \"RGB16_EXT\";\n        GLEnum[GLEnum[\"RGBA16_EXT\"] = 32859] = \"RGBA16_EXT\";\n        GLEnum[GLEnum[\"R16_SNORM_EXT\"] = 36760] = \"R16_SNORM_EXT\";\n        GLEnum[GLEnum[\"RG16_SNORM_EXT\"] = 36761] = \"RG16_SNORM_EXT\";\n        GLEnum[GLEnum[\"RGB16_SNORM_EXT\"] = 36762] = \"RGB16_SNORM_EXT\";\n        GLEnum[GLEnum[\"RGBA16_SNORM_EXT\"] = 36763] = \"RGBA16_SNORM_EXT\";\n        // WEBGL_compressed_texture_s3tc (BC1, BC2, BC3)\n        /** A DXT1-compressed image in an RGB image format. */\n        GLEnum[GLEnum[\"COMPRESSED_RGB_S3TC_DXT1_EXT\"] = 33776] = \"COMPRESSED_RGB_S3TC_DXT1_EXT\";\n        /** A DXT1-compressed image in an RGB image format with a simple on/off alpha value. */\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_S3TC_DXT1_EXT\"] = 33777] = \"COMPRESSED_RGBA_S3TC_DXT1_EXT\";\n        /** A DXT3-compressed image in an RGBA image format. Compared to a 32-bit RGBA texture, it offers 4:1 compression. */\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_S3TC_DXT3_EXT\"] = 33778] = \"COMPRESSED_RGBA_S3TC_DXT3_EXT\";\n        /** A DXT5-compressed image in an RGBA image format. It also provides a 4:1 compression, but differs to the DXT3 compression in how the alpha compression is done. */\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_S3TC_DXT5_EXT\"] = 33779] = \"COMPRESSED_RGBA_S3TC_DXT5_EXT\";\n        // WEBGL_compressed_texture_s3tc_srgb (BC1, BC2, BC3 -  SRGB)\n        GLEnum[GLEnum[\"COMPRESSED_SRGB_S3TC_DXT1_EXT\"] = 35916] = \"COMPRESSED_SRGB_S3TC_DXT1_EXT\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT\"] = 35917] = \"COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT\"] = 35918] = \"COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT\"] = 35919] = \"COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT\";\n        // WEBGL_compressed_texture_rgtc (BC4, BC5)\n        GLEnum[GLEnum[\"COMPRESSED_RED_RGTC1_EXT\"] = 36283] = \"COMPRESSED_RED_RGTC1_EXT\";\n        GLEnum[GLEnum[\"COMPRESSED_SIGNED_RED_RGTC1_EXT\"] = 36284] = \"COMPRESSED_SIGNED_RED_RGTC1_EXT\";\n        GLEnum[GLEnum[\"COMPRESSED_RED_GREEN_RGTC2_EXT\"] = 36285] = \"COMPRESSED_RED_GREEN_RGTC2_EXT\";\n        GLEnum[GLEnum[\"COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT\"] = 36286] = \"COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT\";\n        // WEBGL_compressed_texture_bptc (BC6, BC7)\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_BPTC_UNORM_EXT\"] = 36492] = \"COMPRESSED_RGBA_BPTC_UNORM_EXT\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT\"] = 36493] = \"COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT\";\n        GLEnum[GLEnum[\"COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT\"] = 36494] = \"COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT\";\n        GLEnum[GLEnum[\"COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT\"] = 36495] = \"COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT\";\n        // WEBGL_compressed_texture_es3\n        /** One-channel (red) unsigned format compression. */\n        GLEnum[GLEnum[\"COMPRESSED_R11_EAC\"] = 37488] = \"COMPRESSED_R11_EAC\";\n        /** One-channel (red) signed format compression. */\n        GLEnum[GLEnum[\"COMPRESSED_SIGNED_R11_EAC\"] = 37489] = \"COMPRESSED_SIGNED_R11_EAC\";\n        /** Two-channel (red and green) unsigned format compression. */\n        GLEnum[GLEnum[\"COMPRESSED_RG11_EAC\"] = 37490] = \"COMPRESSED_RG11_EAC\";\n        /** Two-channel (red and green) signed format compression. */\n        GLEnum[GLEnum[\"COMPRESSED_SIGNED_RG11_EAC\"] = 37491] = \"COMPRESSED_SIGNED_RG11_EAC\";\n        /** Compresses RGB8 data with no alpha channel. */\n        GLEnum[GLEnum[\"COMPRESSED_RGB8_ETC2\"] = 37492] = \"COMPRESSED_RGB8_ETC2\";\n        /** Compresses RGBA8 data. The RGB part is encoded the same as RGB_ETC2, but the alpha part is encoded separately. */\n        GLEnum[GLEnum[\"COMPRESSED_RGBA8_ETC2_EAC\"] = 37493] = \"COMPRESSED_RGBA8_ETC2_EAC\";\n        /** Compresses sRGB8 data with no alpha channel. */\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_ETC2\"] = 37494] = \"COMPRESSED_SRGB8_ETC2\";\n        /** Compresses sRGBA8 data. The sRGB part is encoded the same as SRGB_ETC2, but the alpha part is encoded separately. */\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ETC2_EAC\"] = 37495] = \"COMPRESSED_SRGB8_ALPHA8_ETC2_EAC\";\n        /** Similar to RGB8_ETC, but with ability to punch through the alpha channel, which means to make it completely opaque or transparent. */\n        GLEnum[GLEnum[\"COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2\"] = 37496] = \"COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2\";\n        /** Similar to SRGB8_ETC, but with ability to punch through the alpha channel, which means to make it completely opaque or transparent. */\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2\"] = 37497] = \"COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2\";\n        // WEBGL_compressed_texture_pvrtc\n        /** RGB compression in 4-bit mode. One block for each 4×4 pixels. */\n        GLEnum[GLEnum[\"COMPRESSED_RGB_PVRTC_4BPPV1_IMG\"] = 35840] = \"COMPRESSED_RGB_PVRTC_4BPPV1_IMG\";\n        /** RGBA compression in 4-bit mode. One block for each 4×4 pixels. */\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_PVRTC_4BPPV1_IMG\"] = 35842] = \"COMPRESSED_RGBA_PVRTC_4BPPV1_IMG\";\n        /** RGB compression in 2-bit mode. One block for each 8×4 pixels. */\n        GLEnum[GLEnum[\"COMPRESSED_RGB_PVRTC_2BPPV1_IMG\"] = 35841] = \"COMPRESSED_RGB_PVRTC_2BPPV1_IMG\";\n        /** RGBA compression in 2-bit mode. One block for each 8×4 pixels. */\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_PVRTC_2BPPV1_IMG\"] = 35843] = \"COMPRESSED_RGBA_PVRTC_2BPPV1_IMG\";\n        // WEBGL_compressed_texture_etc1\n        /** Compresses 24-bit RGB data with no alpha channel. */\n        GLEnum[GLEnum[\"COMPRESSED_RGB_ETC1_WEBGL\"] = 36196] = \"COMPRESSED_RGB_ETC1_WEBGL\";\n        // WEBGL_compressed_texture_atc\n        GLEnum[GLEnum[\"COMPRESSED_RGB_ATC_WEBGL\"] = 35986] = \"COMPRESSED_RGB_ATC_WEBGL\";\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL\"] = 35986] = \"COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL\";\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL\"] = 34798] = \"COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL\";\n        // WEBGL_compressed_texture_astc\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_4x4_KHR\"] = 37808] = \"COMPRESSED_RGBA_ASTC_4x4_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_5x4_KHR\"] = 37809] = \"COMPRESSED_RGBA_ASTC_5x4_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_5x5_KHR\"] = 37810] = \"COMPRESSED_RGBA_ASTC_5x5_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_6x5_KHR\"] = 37811] = \"COMPRESSED_RGBA_ASTC_6x5_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_6x6_KHR\"] = 37812] = \"COMPRESSED_RGBA_ASTC_6x6_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_8x5_KHR\"] = 37813] = \"COMPRESSED_RGBA_ASTC_8x5_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_8x6_KHR\"] = 37814] = \"COMPRESSED_RGBA_ASTC_8x6_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_8x8_KHR\"] = 37815] = \"COMPRESSED_RGBA_ASTC_8x8_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_10x5_KHR\"] = 37816] = \"COMPRESSED_RGBA_ASTC_10x5_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_10x6_KHR\"] = 37817] = \"COMPRESSED_RGBA_ASTC_10x6_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_10x8_KHR\"] = 37818] = \"COMPRESSED_RGBA_ASTC_10x8_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_10x10_KHR\"] = 37819] = \"COMPRESSED_RGBA_ASTC_10x10_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_12x10_KHR\"] = 37820] = \"COMPRESSED_RGBA_ASTC_12x10_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_RGBA_ASTC_12x12_KHR\"] = 37821] = \"COMPRESSED_RGBA_ASTC_12x12_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR\"] = 37840] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR\"] = 37841] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR\"] = 37842] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR\"] = 37843] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR\"] = 37844] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR\"] = 37845] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR\"] = 37846] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR\"] = 37847] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR\"] = 37848] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR\"] = 37849] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR\"] = 37850] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR\"] = 37851] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR\"] = 37852] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR\";\n        GLEnum[GLEnum[\"COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR\"] = 37853] = \"COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR\";\n        // EXT_disjoint_timer_query\n        /** The number of bits used to hold the query result for the given target. */\n        GLEnum[GLEnum[\"QUERY_COUNTER_BITS_EXT\"] = 34916] = \"QUERY_COUNTER_BITS_EXT\";\n        /** The currently active query. */\n        GLEnum[GLEnum[\"CURRENT_QUERY_EXT\"] = 34917] = \"CURRENT_QUERY_EXT\";\n        /** The query result. */\n        GLEnum[GLEnum[\"QUERY_RESULT_EXT\"] = 34918] = \"QUERY_RESULT_EXT\";\n        /** A Boolean indicating whether or not a query result is available. */\n        GLEnum[GLEnum[\"QUERY_RESULT_AVAILABLE_EXT\"] = 34919] = \"QUERY_RESULT_AVAILABLE_EXT\";\n        /** Elapsed time (in nanoseconds). */\n        GLEnum[GLEnum[\"TIME_ELAPSED_EXT\"] = 35007] = \"TIME_ELAPSED_EXT\";\n        /** The current time. */\n        GLEnum[GLEnum[\"TIMESTAMP_EXT\"] = 36392] = \"TIMESTAMP_EXT\";\n        /** A Boolean indicating whether or not the GPU performed any disjoint operation (lost context) */\n        GLEnum[GLEnum[\"GPU_DISJOINT_EXT\"] = 36795] = \"GPU_DISJOINT_EXT\";\n        // KHR_parallel_shader_compile https://registry.khronos.org/webgl/extensions/KHR_parallel_shader_compile\n        /** a non-blocking poll operation, so that compile/link status availability can be queried without potentially incurring stalls */\n        GLEnum[GLEnum[\"COMPLETION_STATUS_KHR\"] = 37297] = \"COMPLETION_STATUS_KHR\";\n        // EXT_depth_clamp https://registry.khronos.org/webgl/extensions/EXT_depth_clamp/\n        /** Disables depth clipping */\n        GLEnum[GLEnum[\"DEPTH_CLAMP_EXT\"] = 34383] = \"DEPTH_CLAMP_EXT\";\n        // WEBGL_provoking_vertex https://registry.khronos.org/webgl/extensions/WEBGL_provoking_vertex/\n        /** Values of first vertex in primitive are used for flat shading */\n        GLEnum[GLEnum[\"FIRST_VERTEX_CONVENTION_WEBGL\"] = 36429] = \"FIRST_VERTEX_CONVENTION_WEBGL\";\n        /** Values of first vertex in primitive are used for flat shading */\n        GLEnum[GLEnum[\"LAST_VERTEX_CONVENTION_WEBGL\"] = 36430] = \"LAST_VERTEX_CONVENTION_WEBGL\";\n        /** Controls which vertex in primitive is used for flat shading */\n        GLEnum[GLEnum[\"PROVOKING_VERTEX_WEBL\"] = 36431] = \"PROVOKING_VERTEX_WEBL\";\n        // WEBGL_polygon_mode https://registry.khronos.org/webgl/extensions/WEBGL_polygon_mode/\n        GLEnum[GLEnum[\"POLYGON_MODE_WEBGL\"] = 2880] = \"POLYGON_MODE_WEBGL\";\n        GLEnum[GLEnum[\"POLYGON_OFFSET_LINE_WEBGL\"] = 10754] = \"POLYGON_OFFSET_LINE_WEBGL\";\n        GLEnum[GLEnum[\"LINE_WEBGL\"] = 6913] = \"LINE_WEBGL\";\n        GLEnum[GLEnum[\"FILL_WEBGL\"] = 6914] = \"FILL_WEBGL\";\n        // WEBGL_clip_cull_distance https://registry.khronos.org/webgl/extensions/WEBGL_clip_cull_distance/\n        /** Max clip distances */\n        GLEnum[GLEnum[\"MAX_CLIP_DISTANCES_WEBGL\"] = 3378] = \"MAX_CLIP_DISTANCES_WEBGL\";\n        /** Max cull distances */\n        GLEnum[GLEnum[\"MAX_CULL_DISTANCES_WEBGL\"] = 33529] = \"MAX_CULL_DISTANCES_WEBGL\";\n        /** Max clip and cull distances */\n        GLEnum[GLEnum[\"MAX_COMBINED_CLIP_AND_CULL_DISTANCES_WEBGL\"] = 33530] = \"MAX_COMBINED_CLIP_AND_CULL_DISTANCES_WEBGL\";\n        /** Enable gl_ClipDistance[0] and gl_CullDistance[0] */\n        GLEnum[GLEnum[\"CLIP_DISTANCE0_WEBGL\"] = 12288] = \"CLIP_DISTANCE0_WEBGL\";\n        /** Enable gl_ClipDistance[1] and gl_CullDistance[1] */\n        GLEnum[GLEnum[\"CLIP_DISTANCE1_WEBGL\"] = 12289] = \"CLIP_DISTANCE1_WEBGL\";\n        /** Enable gl_ClipDistance[2] and gl_CullDistance[2] */\n        GLEnum[GLEnum[\"CLIP_DISTANCE2_WEBGL\"] = 12290] = \"CLIP_DISTANCE2_WEBGL\";\n        /** Enable gl_ClipDistance[3] and gl_CullDistance[3] */\n        GLEnum[GLEnum[\"CLIP_DISTANCE3_WEBGL\"] = 12291] = \"CLIP_DISTANCE3_WEBGL\";\n        /** Enable gl_ClipDistance[4] and gl_CullDistance[4] */\n        GLEnum[GLEnum[\"CLIP_DISTANCE4_WEBGL\"] = 12292] = \"CLIP_DISTANCE4_WEBGL\";\n        /** Enable gl_ClipDistance[5] and gl_CullDistance[5] */\n        GLEnum[GLEnum[\"CLIP_DISTANCE5_WEBGL\"] = 12293] = \"CLIP_DISTANCE5_WEBGL\";\n        /** Enable gl_ClipDistance[6] and gl_CullDistance[6] */\n        GLEnum[GLEnum[\"CLIP_DISTANCE6_WEBGL\"] = 12294] = \"CLIP_DISTANCE6_WEBGL\";\n        /** Enable gl_ClipDistance[7] and gl_CullDistance[7] */\n        GLEnum[GLEnum[\"CLIP_DISTANCE7_WEBGL\"] = 12295] = \"CLIP_DISTANCE7_WEBGL\";\n        /** EXT_polygon_offset_clamp https://registry.khronos.org/webgl/extensions/EXT_polygon_offset_clamp/ */\n        GLEnum[GLEnum[\"POLYGON_OFFSET_CLAMP_EXT\"] = 36379] = \"POLYGON_OFFSET_CLAMP_EXT\";\n        /** EXT_clip_control https://registry.khronos.org/webgl/extensions/EXT_clip_control/ */\n        GLEnum[GLEnum[\"LOWER_LEFT_EXT\"] = 36001] = \"LOWER_LEFT_EXT\";\n        GLEnum[GLEnum[\"UPPER_LEFT_EXT\"] = 36002] = \"UPPER_LEFT_EXT\";\n        GLEnum[GLEnum[\"NEGATIVE_ONE_TO_ONE_EXT\"] = 37726] = \"NEGATIVE_ONE_TO_ONE_EXT\";\n        GLEnum[GLEnum[\"ZERO_TO_ONE_EXT\"] = 37727] = \"ZERO_TO_ONE_EXT\";\n        GLEnum[GLEnum[\"CLIP_ORIGIN_EXT\"] = 37724] = \"CLIP_ORIGIN_EXT\";\n        GLEnum[GLEnum[\"CLIP_DEPTH_MODE_EXT\"] = 37725] = \"CLIP_DEPTH_MODE_EXT\";\n        /** WEBGL_blend_func_extended https://registry.khronos.org/webgl/extensions/WEBGL_blend_func_extended/ */\n        GLEnum[GLEnum[\"SRC1_COLOR_WEBGL\"] = 35065] = \"SRC1_COLOR_WEBGL\";\n        GLEnum[GLEnum[\"SRC1_ALPHA_WEBGL\"] = 34185] = \"SRC1_ALPHA_WEBGL\";\n        GLEnum[GLEnum[\"ONE_MINUS_SRC1_COLOR_WEBGL\"] = 35066] = \"ONE_MINUS_SRC1_COLOR_WEBGL\";\n        GLEnum[GLEnum[\"ONE_MINUS_SRC1_ALPHA_WEBGL\"] = 35067] = \"ONE_MINUS_SRC1_ALPHA_WEBGL\";\n        GLEnum[GLEnum[\"MAX_DUAL_SOURCE_DRAW_BUFFERS_WEBGL\"] = 35068] = \"MAX_DUAL_SOURCE_DRAW_BUFFERS_WEBGL\";\n        /** EXT_texture_mirror_clamp_to_edge https://registry.khronos.org/webgl/extensions/EXT_texture_mirror_clamp_to_edge/ */\n        GLEnum[GLEnum[\"MIRROR_CLAMP_TO_EDGE_EXT\"] = 34627] = \"MIRROR_CLAMP_TO_EDGE_EXT\";\n    })(GLEnum || (exports.GL = GLEnum = {}));\n}\n","min_source":"function _(_,E,R,T,A){\n// SPDX-License-Identifier: MIT\n// Copyright (c) vis.gl contributors\nvar S;T(),function(_){_[_.DEPTH_BUFFER_BIT=256]=\"DEPTH_BUFFER_BIT\",_[_.STENCIL_BUFFER_BIT=1024]=\"STENCIL_BUFFER_BIT\",_[_.COLOR_BUFFER_BIT=16384]=\"COLOR_BUFFER_BIT\",_[_.POINTS=0]=\"POINTS\",_[_.LINES=1]=\"LINES\",_[_.LINE_LOOP=2]=\"LINE_LOOP\",_[_.LINE_STRIP=3]=\"LINE_STRIP\",_[_.TRIANGLES=4]=\"TRIANGLES\",_[_.TRIANGLE_STRIP=5]=\"TRIANGLE_STRIP\",_[_.TRIANGLE_FAN=6]=\"TRIANGLE_FAN\",_[_.ZERO=0]=\"ZERO\",_[_.ONE=1]=\"ONE\",_[_.SRC_COLOR=768]=\"SRC_COLOR\",_[_.ONE_MINUS_SRC_COLOR=769]=\"ONE_MINUS_SRC_COLOR\",_[_.SRC_ALPHA=770]=\"SRC_ALPHA\",_[_.ONE_MINUS_SRC_ALPHA=771]=\"ONE_MINUS_SRC_ALPHA\",_[_.DST_ALPHA=772]=\"DST_ALPHA\",_[_.ONE_MINUS_DST_ALPHA=773]=\"ONE_MINUS_DST_ALPHA\",_[_.DST_COLOR=774]=\"DST_COLOR\",_[_.ONE_MINUS_DST_COLOR=775]=\"ONE_MINUS_DST_COLOR\",_[_.SRC_ALPHA_SATURATE=776]=\"SRC_ALPHA_SATURATE\",_[_.CONSTANT_COLOR=32769]=\"CONSTANT_COLOR\",_[_.ONE_MINUS_CONSTANT_COLOR=32770]=\"ONE_MINUS_CONSTANT_COLOR\",_[_.CONSTANT_ALPHA=32771]=\"CONSTANT_ALPHA\",_[_.ONE_MINUS_CONSTANT_ALPHA=32772]=\"ONE_MINUS_CONSTANT_ALPHA\",_[_.FUNC_ADD=32774]=\"FUNC_ADD\",_[_.FUNC_SUBTRACT=32778]=\"FUNC_SUBTRACT\",_[_.FUNC_REVERSE_SUBTRACT=32779]=\"FUNC_REVERSE_SUBTRACT\",_[_.BLEND_EQUATION=32777]=\"BLEND_EQUATION\",_[_.BLEND_EQUATION_RGB=32777]=\"BLEND_EQUATION_RGB\",_[_.BLEND_EQUATION_ALPHA=34877]=\"BLEND_EQUATION_ALPHA\",_[_.BLEND_DST_RGB=32968]=\"BLEND_DST_RGB\",_[_.BLEND_SRC_RGB=32969]=\"BLEND_SRC_RGB\",_[_.BLEND_DST_ALPHA=32970]=\"BLEND_DST_ALPHA\",_[_.BLEND_SRC_ALPHA=32971]=\"BLEND_SRC_ALPHA\",_[_.BLEND_COLOR=32773]=\"BLEND_COLOR\",_[_.ARRAY_BUFFER_BINDING=34964]=\"ARRAY_BUFFER_BINDING\",_[_.ELEMENT_ARRAY_BUFFER_BINDING=34965]=\"ELEMENT_ARRAY_BUFFER_BINDING\",_[_.LINE_WIDTH=2849]=\"LINE_WIDTH\",_[_.ALIASED_POINT_SIZE_RANGE=33901]=\"ALIASED_POINT_SIZE_RANGE\",_[_.ALIASED_LINE_WIDTH_RANGE=33902]=\"ALIASED_LINE_WIDTH_RANGE\",_[_.CULL_FACE_MODE=2885]=\"CULL_FACE_MODE\",_[_.FRONT_FACE=2886]=\"FRONT_FACE\",_[_.DEPTH_RANGE=2928]=\"DEPTH_RANGE\",_[_.DEPTH_WRITEMASK=2930]=\"DEPTH_WRITEMASK\",_[_.DEPTH_CLEAR_VALUE=2931]=\"DEPTH_CLEAR_VALUE\",_[_.DEPTH_FUNC=2932]=\"DEPTH_FUNC\",_[_.STENCIL_CLEAR_VALUE=2961]=\"STENCIL_CLEAR_VALUE\",_[_.STENCIL_FUNC=2962]=\"STENCIL_FUNC\",_[_.STENCIL_FAIL=2964]=\"STENCIL_FAIL\",_[_.STENCIL_PASS_DEPTH_FAIL=2965]=\"STENCIL_PASS_DEPTH_FAIL\",_[_.STENCIL_PASS_DEPTH_PASS=2966]=\"STENCIL_PASS_DEPTH_PASS\",_[_.STENCIL_REF=2967]=\"STENCIL_REF\",_[_.STENCIL_VALUE_MASK=2963]=\"STENCIL_VALUE_MASK\",_[_.STENCIL_WRITEMASK=2968]=\"STENCIL_WRITEMASK\",_[_.STENCIL_BACK_FUNC=34816]=\"STENCIL_BACK_FUNC\",_[_.STENCIL_BACK_FAIL=34817]=\"STENCIL_BACK_FAIL\",_[_.STENCIL_BACK_PASS_DEPTH_FAIL=34818]=\"STENCIL_BACK_PASS_DEPTH_FAIL\",_[_.STENCIL_BACK_PASS_DEPTH_PASS=34819]=\"STENCIL_BACK_PASS_DEPTH_PASS\",_[_.STENCIL_BACK_REF=36003]=\"STENCIL_BACK_REF\",_[_.STENCIL_BACK_VALUE_MASK=36004]=\"STENCIL_BACK_VALUE_MASK\",_[_.STENCIL_BACK_WRITEMASK=36005]=\"STENCIL_BACK_WRITEMASK\",_[_.VIEWPORT=2978]=\"VIEWPORT\",_[_.SCISSOR_BOX=3088]=\"SCISSOR_BOX\",_[_.COLOR_CLEAR_VALUE=3106]=\"COLOR_CLEAR_VALUE\",_[_.COLOR_WRITEMASK=3107]=\"COLOR_WRITEMASK\",_[_.UNPACK_ALIGNMENT=3317]=\"UNPACK_ALIGNMENT\",_[_.PACK_ALIGNMENT=3333]=\"PACK_ALIGNMENT\",_[_.MAX_TEXTURE_SIZE=3379]=\"MAX_TEXTURE_SIZE\",_[_.MAX_VIEWPORT_DIMS=3386]=\"MAX_VIEWPORT_DIMS\",_[_.SUBPIXEL_BITS=3408]=\"SUBPIXEL_BITS\",_[_.RED_BITS=3410]=\"RED_BITS\",_[_.GREEN_BITS=3411]=\"GREEN_BITS\",_[_.BLUE_BITS=3412]=\"BLUE_BITS\",_[_.ALPHA_BITS=3413]=\"ALPHA_BITS\",_[_.DEPTH_BITS=3414]=\"DEPTH_BITS\",_[_.STENCIL_BITS=3415]=\"STENCIL_BITS\",_[_.POLYGON_OFFSET_UNITS=10752]=\"POLYGON_OFFSET_UNITS\",_[_.POLYGON_OFFSET_FACTOR=32824]=\"POLYGON_OFFSET_FACTOR\",_[_.TEXTURE_BINDING_2D=32873]=\"TEXTURE_BINDING_2D\",_[_.SAMPLE_BUFFERS=32936]=\"SAMPLE_BUFFERS\",_[_.SAMPLES=32937]=\"SAMPLES\",_[_.SAMPLE_COVERAGE_VALUE=32938]=\"SAMPLE_COVERAGE_VALUE\",_[_.SAMPLE_COVERAGE_INVERT=32939]=\"SAMPLE_COVERAGE_INVERT\",_[_.COMPRESSED_TEXTURE_FORMATS=34467]=\"COMPRESSED_TEXTURE_FORMATS\",_[_.VENDOR=7936]=\"VENDOR\",_[_.RENDERER=7937]=\"RENDERER\",_[_.VERSION=7938]=\"VERSION\",_[_.IMPLEMENTATION_COLOR_READ_TYPE=35738]=\"IMPLEMENTATION_COLOR_READ_TYPE\",_[_.IMPLEMENTATION_COLOR_READ_FORMAT=35739]=\"IMPLEMENTATION_COLOR_READ_FORMAT\",_[_.BROWSER_DEFAULT_WEBGL=37444]=\"BROWSER_DEFAULT_WEBGL\",_[_.STATIC_DRAW=35044]=\"STATIC_DRAW\",_[_.STREAM_DRAW=35040]=\"STREAM_DRAW\",_[_.DYNAMIC_DRAW=35048]=\"DYNAMIC_DRAW\",_[_.ARRAY_BUFFER=34962]=\"ARRAY_BUFFER\",_[_.ELEMENT_ARRAY_BUFFER=34963]=\"ELEMENT_ARRAY_BUFFER\",_[_.BUFFER_SIZE=34660]=\"BUFFER_SIZE\",_[_.BUFFER_USAGE=34661]=\"BUFFER_USAGE\",_[_.CURRENT_VERTEX_ATTRIB=34342]=\"CURRENT_VERTEX_ATTRIB\",_[_.VERTEX_ATTRIB_ARRAY_ENABLED=34338]=\"VERTEX_ATTRIB_ARRAY_ENABLED\",_[_.VERTEX_ATTRIB_ARRAY_SIZE=34339]=\"VERTEX_ATTRIB_ARRAY_SIZE\",_[_.VERTEX_ATTRIB_ARRAY_STRIDE=34340]=\"VERTEX_ATTRIB_ARRAY_STRIDE\",_[_.VERTEX_ATTRIB_ARRAY_TYPE=34341]=\"VERTEX_ATTRIB_ARRAY_TYPE\",_[_.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]=\"VERTEX_ATTRIB_ARRAY_NORMALIZED\",_[_.VERTEX_ATTRIB_ARRAY_POINTER=34373]=\"VERTEX_ATTRIB_ARRAY_POINTER\",_[_.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]=\"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING\",_[_.CULL_FACE=2884]=\"CULL_FACE\",_[_.FRONT=1028]=\"FRONT\",_[_.BACK=1029]=\"BACK\",_[_.FRONT_AND_BACK=1032]=\"FRONT_AND_BACK\",_[_.BLEND=3042]=\"BLEND\",_[_.DEPTH_TEST=2929]=\"DEPTH_TEST\",_[_.DITHER=3024]=\"DITHER\",_[_.POLYGON_OFFSET_FILL=32823]=\"POLYGON_OFFSET_FILL\",_[_.SAMPLE_ALPHA_TO_COVERAGE=32926]=\"SAMPLE_ALPHA_TO_COVERAGE\",_[_.SAMPLE_COVERAGE=32928]=\"SAMPLE_COVERAGE\",_[_.SCISSOR_TEST=3089]=\"SCISSOR_TEST\",_[_.STENCIL_TEST=2960]=\"STENCIL_TEST\",_[_.NO_ERROR=0]=\"NO_ERROR\",_[_.INVALID_ENUM=1280]=\"INVALID_ENUM\",_[_.INVALID_VALUE=1281]=\"INVALID_VALUE\",_[_.INVALID_OPERATION=1282]=\"INVALID_OPERATION\",_[_.OUT_OF_MEMORY=1285]=\"OUT_OF_MEMORY\",_[_.CONTEXT_LOST_WEBGL=37442]=\"CONTEXT_LOST_WEBGL\",_[_.CW=2304]=\"CW\",_[_.CCW=2305]=\"CCW\",_[_.DONT_CARE=4352]=\"DONT_CARE\",_[_.FASTEST=4353]=\"FASTEST\",_[_.NICEST=4354]=\"NICEST\",_[_.GENERATE_MIPMAP_HINT=33170]=\"GENERATE_MIPMAP_HINT\",_[_.BYTE=5120]=\"BYTE\",_[_.UNSIGNED_BYTE=5121]=\"UNSIGNED_BYTE\",_[_.SHORT=5122]=\"SHORT\",_[_.UNSIGNED_SHORT=5123]=\"UNSIGNED_SHORT\",_[_.INT=5124]=\"INT\",_[_.UNSIGNED_INT=5125]=\"UNSIGNED_INT\",_[_.FLOAT=5126]=\"FLOAT\",_[_.DOUBLE=5130]=\"DOUBLE\",_[_.DEPTH_COMPONENT=6402]=\"DEPTH_COMPONENT\",_[_.ALPHA=6406]=\"ALPHA\",_[_.RGB=6407]=\"RGB\",_[_.RGBA=6408]=\"RGBA\",_[_.LUMINANCE=6409]=\"LUMINANCE\",_[_.LUMINANCE_ALPHA=6410]=\"LUMINANCE_ALPHA\",_[_.UNSIGNED_SHORT_4_4_4_4=32819]=\"UNSIGNED_SHORT_4_4_4_4\",_[_.UNSIGNED_SHORT_5_5_5_1=32820]=\"UNSIGNED_SHORT_5_5_5_1\",_[_.UNSIGNED_SHORT_5_6_5=33635]=\"UNSIGNED_SHORT_5_6_5\",_[_.FRAGMENT_SHADER=35632]=\"FRAGMENT_SHADER\",_[_.VERTEX_SHADER=35633]=\"VERTEX_SHADER\",_[_.COMPILE_STATUS=35713]=\"COMPILE_STATUS\",_[_.DELETE_STATUS=35712]=\"DELETE_STATUS\",_[_.LINK_STATUS=35714]=\"LINK_STATUS\",_[_.VALIDATE_STATUS=35715]=\"VALIDATE_STATUS\",_[_.ATTACHED_SHADERS=35717]=\"ATTACHED_SHADERS\",_[_.ACTIVE_ATTRIBUTES=35721]=\"ACTIVE_ATTRIBUTES\",_[_.ACTIVE_UNIFORMS=35718]=\"ACTIVE_UNIFORMS\",_[_.MAX_VERTEX_ATTRIBS=34921]=\"MAX_VERTEX_ATTRIBS\",_[_.MAX_VERTEX_UNIFORM_VECTORS=36347]=\"MAX_VERTEX_UNIFORM_VECTORS\",_[_.MAX_VARYING_VECTORS=36348]=\"MAX_VARYING_VECTORS\",_[_.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]=\"MAX_COMBINED_TEXTURE_IMAGE_UNITS\",_[_.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]=\"MAX_VERTEX_TEXTURE_IMAGE_UNITS\",_[_.MAX_TEXTURE_IMAGE_UNITS=34930]=\"MAX_TEXTURE_IMAGE_UNITS\",_[_.MAX_FRAGMENT_UNIFORM_VECTORS=36349]=\"MAX_FRAGMENT_UNIFORM_VECTORS\",_[_.SHADER_TYPE=35663]=\"SHADER_TYPE\",_[_.SHADING_LANGUAGE_VERSION=35724]=\"SHADING_LANGUAGE_VERSION\",_[_.CURRENT_PROGRAM=35725]=\"CURRENT_PROGRAM\",_[_.NEVER=512]=\"NEVER\",_[_.LESS=513]=\"LESS\",_[_.EQUAL=514]=\"EQUAL\",_[_.LEQUAL=515]=\"LEQUAL\",_[_.GREATER=516]=\"GREATER\",_[_.NOTEQUAL=517]=\"NOTEQUAL\",_[_.GEQUAL=518]=\"GEQUAL\",_[_.ALWAYS=519]=\"ALWAYS\",_[_.KEEP=7680]=\"KEEP\",_[_.REPLACE=7681]=\"REPLACE\",_[_.INCR=7682]=\"INCR\",_[_.DECR=7683]=\"DECR\",_[_.INVERT=5386]=\"INVERT\",_[_.INCR_WRAP=34055]=\"INCR_WRAP\",_[_.DECR_WRAP=34056]=\"DECR_WRAP\",_[_.NEAREST=9728]=\"NEAREST\",_[_.LINEAR=9729]=\"LINEAR\",_[_.NEAREST_MIPMAP_NEAREST=9984]=\"NEAREST_MIPMAP_NEAREST\",_[_.LINEAR_MIPMAP_NEAREST=9985]=\"LINEAR_MIPMAP_NEAREST\",_[_.NEAREST_MIPMAP_LINEAR=9986]=\"NEAREST_MIPMAP_LINEAR\",_[_.LINEAR_MIPMAP_LINEAR=9987]=\"LINEAR_MIPMAP_LINEAR\",_[_.TEXTURE_MAG_FILTER=10240]=\"TEXTURE_MAG_FILTER\",_[_.TEXTURE_MIN_FILTER=10241]=\"TEXTURE_MIN_FILTER\",_[_.TEXTURE_WRAP_S=10242]=\"TEXTURE_WRAP_S\",_[_.TEXTURE_WRAP_T=10243]=\"TEXTURE_WRAP_T\",_[_.TEXTURE_2D=3553]=\"TEXTURE_2D\",_[_.TEXTURE=5890]=\"TEXTURE\",_[_.TEXTURE_CUBE_MAP=34067]=\"TEXTURE_CUBE_MAP\",_[_.TEXTURE_BINDING_CUBE_MAP=34068]=\"TEXTURE_BINDING_CUBE_MAP\",_[_.TEXTURE_CUBE_MAP_POSITIVE_X=34069]=\"TEXTURE_CUBE_MAP_POSITIVE_X\",_[_.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]=\"TEXTURE_CUBE_MAP_NEGATIVE_X\",_[_.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]=\"TEXTURE_CUBE_MAP_POSITIVE_Y\",_[_.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]=\"TEXTURE_CUBE_MAP_NEGATIVE_Y\",_[_.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]=\"TEXTURE_CUBE_MAP_POSITIVE_Z\",_[_.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]=\"TEXTURE_CUBE_MAP_NEGATIVE_Z\",_[_.MAX_CUBE_MAP_TEXTURE_SIZE=34076]=\"MAX_CUBE_MAP_TEXTURE_SIZE\",_[_.TEXTURE0=33984]=\"TEXTURE0\",_[_.ACTIVE_TEXTURE=34016]=\"ACTIVE_TEXTURE\",_[_.REPEAT=10497]=\"REPEAT\",_[_.CLAMP_TO_EDGE=33071]=\"CLAMP_TO_EDGE\",_[_.MIRRORED_REPEAT=33648]=\"MIRRORED_REPEAT\",_[_.TEXTURE_WIDTH=4096]=\"TEXTURE_WIDTH\",_[_.TEXTURE_HEIGHT=4097]=\"TEXTURE_HEIGHT\",_[_.FLOAT_VEC2=35664]=\"FLOAT_VEC2\",_[_.FLOAT_VEC3=35665]=\"FLOAT_VEC3\",_[_.FLOAT_VEC4=35666]=\"FLOAT_VEC4\",_[_.INT_VEC2=35667]=\"INT_VEC2\",_[_.INT_VEC3=35668]=\"INT_VEC3\",_[_.INT_VEC4=35669]=\"INT_VEC4\",_[_.BOOL=35670]=\"BOOL\",_[_.BOOL_VEC2=35671]=\"BOOL_VEC2\",_[_.BOOL_VEC3=35672]=\"BOOL_VEC3\",_[_.BOOL_VEC4=35673]=\"BOOL_VEC4\",_[_.FLOAT_MAT2=35674]=\"FLOAT_MAT2\",_[_.FLOAT_MAT3=35675]=\"FLOAT_MAT3\",_[_.FLOAT_MAT4=35676]=\"FLOAT_MAT4\",_[_.SAMPLER_2D=35678]=\"SAMPLER_2D\",_[_.SAMPLER_CUBE=35680]=\"SAMPLER_CUBE\",_[_.LOW_FLOAT=36336]=\"LOW_FLOAT\",_[_.MEDIUM_FLOAT=36337]=\"MEDIUM_FLOAT\",_[_.HIGH_FLOAT=36338]=\"HIGH_FLOAT\",_[_.LOW_INT=36339]=\"LOW_INT\",_[_.MEDIUM_INT=36340]=\"MEDIUM_INT\",_[_.HIGH_INT=36341]=\"HIGH_INT\",_[_.FRAMEBUFFER=36160]=\"FRAMEBUFFER\",_[_.RENDERBUFFER=36161]=\"RENDERBUFFER\",_[_.RGBA4=32854]=\"RGBA4\",_[_.RGB5_A1=32855]=\"RGB5_A1\",_[_.RGB565=36194]=\"RGB565\",_[_.DEPTH_COMPONENT16=33189]=\"DEPTH_COMPONENT16\",_[_.STENCIL_INDEX=6401]=\"STENCIL_INDEX\",_[_.STENCIL_INDEX8=36168]=\"STENCIL_INDEX8\",_[_.DEPTH_STENCIL=34041]=\"DEPTH_STENCIL\",_[_.RENDERBUFFER_WIDTH=36162]=\"RENDERBUFFER_WIDTH\",_[_.RENDERBUFFER_HEIGHT=36163]=\"RENDERBUFFER_HEIGHT\",_[_.RENDERBUFFER_INTERNAL_FORMAT=36164]=\"RENDERBUFFER_INTERNAL_FORMAT\",_[_.RENDERBUFFER_RED_SIZE=36176]=\"RENDERBUFFER_RED_SIZE\",_[_.RENDERBUFFER_GREEN_SIZE=36177]=\"RENDERBUFFER_GREEN_SIZE\",_[_.RENDERBUFFER_BLUE_SIZE=36178]=\"RENDERBUFFER_BLUE_SIZE\",_[_.RENDERBUFFER_ALPHA_SIZE=36179]=\"RENDERBUFFER_ALPHA_SIZE\",_[_.RENDERBUFFER_DEPTH_SIZE=36180]=\"RENDERBUFFER_DEPTH_SIZE\",_[_.RENDERBUFFER_STENCIL_SIZE=36181]=\"RENDERBUFFER_STENCIL_SIZE\",_[_.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]=\"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE\",_[_.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]=\"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME\",_[_.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]=\"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL\",_[_.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]=\"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE\",_[_.COLOR_ATTACHMENT0=36064]=\"COLOR_ATTACHMENT0\",_[_.DEPTH_ATTACHMENT=36096]=\"DEPTH_ATTACHMENT\",_[_.STENCIL_ATTACHMENT=36128]=\"STENCIL_ATTACHMENT\",_[_.DEPTH_STENCIL_ATTACHMENT=33306]=\"DEPTH_STENCIL_ATTACHMENT\",_[_.NONE=0]=\"NONE\",_[_.FRAMEBUFFER_COMPLETE=36053]=\"FRAMEBUFFER_COMPLETE\",_[_.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]=\"FRAMEBUFFER_INCOMPLETE_ATTACHMENT\",_[_.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]=\"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT\",_[_.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]=\"FRAMEBUFFER_INCOMPLETE_DIMENSIONS\",_[_.FRAMEBUFFER_UNSUPPORTED=36061]=\"FRAMEBUFFER_UNSUPPORTED\",_[_.FRAMEBUFFER_BINDING=36006]=\"FRAMEBUFFER_BINDING\",_[_.RENDERBUFFER_BINDING=36007]=\"RENDERBUFFER_BINDING\",_[_.READ_FRAMEBUFFER=36008]=\"READ_FRAMEBUFFER\",_[_.DRAW_FRAMEBUFFER=36009]=\"DRAW_FRAMEBUFFER\",_[_.MAX_RENDERBUFFER_SIZE=34024]=\"MAX_RENDERBUFFER_SIZE\",_[_.INVALID_FRAMEBUFFER_OPERATION=1286]=\"INVALID_FRAMEBUFFER_OPERATION\",_[_.UNPACK_FLIP_Y_WEBGL=37440]=\"UNPACK_FLIP_Y_WEBGL\",_[_.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]=\"UNPACK_PREMULTIPLY_ALPHA_WEBGL\",_[_.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]=\"UNPACK_COLORSPACE_CONVERSION_WEBGL\",_[_.READ_BUFFER=3074]=\"READ_BUFFER\",_[_.UNPACK_ROW_LENGTH=3314]=\"UNPACK_ROW_LENGTH\",_[_.UNPACK_SKIP_ROWS=3315]=\"UNPACK_SKIP_ROWS\",_[_.UNPACK_SKIP_PIXELS=3316]=\"UNPACK_SKIP_PIXELS\",_[_.PACK_ROW_LENGTH=3330]=\"PACK_ROW_LENGTH\",_[_.PACK_SKIP_ROWS=3331]=\"PACK_SKIP_ROWS\",_[_.PACK_SKIP_PIXELS=3332]=\"PACK_SKIP_PIXELS\",_[_.TEXTURE_BINDING_3D=32874]=\"TEXTURE_BINDING_3D\",_[_.UNPACK_SKIP_IMAGES=32877]=\"UNPACK_SKIP_IMAGES\",_[_.UNPACK_IMAGE_HEIGHT=32878]=\"UNPACK_IMAGE_HEIGHT\",_[_.MAX_3D_TEXTURE_SIZE=32883]=\"MAX_3D_TEXTURE_SIZE\",_[_.MAX_ELEMENTS_VERTICES=33e3]=\"MAX_ELEMENTS_VERTICES\",_[_.MAX_ELEMENTS_INDICES=33001]=\"MAX_ELEMENTS_INDICES\",_[_.MAX_TEXTURE_LOD_BIAS=34045]=\"MAX_TEXTURE_LOD_BIAS\",_[_.MAX_FRAGMENT_UNIFORM_COMPONENTS=35657]=\"MAX_FRAGMENT_UNIFORM_COMPONENTS\",_[_.MAX_VERTEX_UNIFORM_COMPONENTS=35658]=\"MAX_VERTEX_UNIFORM_COMPONENTS\",_[_.MAX_ARRAY_TEXTURE_LAYERS=35071]=\"MAX_ARRAY_TEXTURE_LAYERS\",_[_.MIN_PROGRAM_TEXEL_OFFSET=35076]=\"MIN_PROGRAM_TEXEL_OFFSET\",_[_.MAX_PROGRAM_TEXEL_OFFSET=35077]=\"MAX_PROGRAM_TEXEL_OFFSET\",_[_.MAX_VARYING_COMPONENTS=35659]=\"MAX_VARYING_COMPONENTS\",_[_.FRAGMENT_SHADER_DERIVATIVE_HINT=35723]=\"FRAGMENT_SHADER_DERIVATIVE_HINT\",_[_.RASTERIZER_DISCARD=35977]=\"RASTERIZER_DISCARD\",_[_.VERTEX_ARRAY_BINDING=34229]=\"VERTEX_ARRAY_BINDING\",_[_.MAX_VERTEX_OUTPUT_COMPONENTS=37154]=\"MAX_VERTEX_OUTPUT_COMPONENTS\",_[_.MAX_FRAGMENT_INPUT_COMPONENTS=37157]=\"MAX_FRAGMENT_INPUT_COMPONENTS\",_[_.MAX_SERVER_WAIT_TIMEOUT=37137]=\"MAX_SERVER_WAIT_TIMEOUT\",_[_.MAX_ELEMENT_INDEX=36203]=\"MAX_ELEMENT_INDEX\",_[_.RED=6403]=\"RED\",_[_.RGB8=32849]=\"RGB8\",_[_.RGBA8=32856]=\"RGBA8\",_[_.RGB10_A2=32857]=\"RGB10_A2\",_[_.TEXTURE_3D=32879]=\"TEXTURE_3D\",_[_.TEXTURE_WRAP_R=32882]=\"TEXTURE_WRAP_R\",_[_.TEXTURE_MIN_LOD=33082]=\"TEXTURE_MIN_LOD\",_[_.TEXTURE_MAX_LOD=33083]=\"TEXTURE_MAX_LOD\",_[_.TEXTURE_BASE_LEVEL=33084]=\"TEXTURE_BASE_LEVEL\",_[_.TEXTURE_MAX_LEVEL=33085]=\"TEXTURE_MAX_LEVEL\",_[_.TEXTURE_COMPARE_MODE=34892]=\"TEXTURE_COMPARE_MODE\",_[_.TEXTURE_COMPARE_FUNC=34893]=\"TEXTURE_COMPARE_FUNC\",_[_.SRGB=35904]=\"SRGB\",_[_.SRGB8=35905]=\"SRGB8\",_[_.SRGB8_ALPHA8=35907]=\"SRGB8_ALPHA8\",_[_.COMPARE_REF_TO_TEXTURE=34894]=\"COMPARE_REF_TO_TEXTURE\",_[_.RGBA32F=34836]=\"RGBA32F\",_[_.RGB32F=34837]=\"RGB32F\",_[_.RGBA16F=34842]=\"RGBA16F\",_[_.RGB16F=34843]=\"RGB16F\",_[_.TEXTURE_2D_ARRAY=35866]=\"TEXTURE_2D_ARRAY\",_[_.TEXTURE_BINDING_2D_ARRAY=35869]=\"TEXTURE_BINDING_2D_ARRAY\",_[_.R11F_G11F_B10F=35898]=\"R11F_G11F_B10F\",_[_.RGB9_E5=35901]=\"RGB9_E5\",_[_.RGBA32UI=36208]=\"RGBA32UI\",_[_.RGB32UI=36209]=\"RGB32UI\",_[_.RGBA16UI=36214]=\"RGBA16UI\",_[_.RGB16UI=36215]=\"RGB16UI\",_[_.RGBA8UI=36220]=\"RGBA8UI\",_[_.RGB8UI=36221]=\"RGB8UI\",_[_.RGBA32I=36226]=\"RGBA32I\",_[_.RGB32I=36227]=\"RGB32I\",_[_.RGBA16I=36232]=\"RGBA16I\",_[_.RGB16I=36233]=\"RGB16I\",_[_.RGBA8I=36238]=\"RGBA8I\",_[_.RGB8I=36239]=\"RGB8I\",_[_.RED_INTEGER=36244]=\"RED_INTEGER\",_[_.RGB_INTEGER=36248]=\"RGB_INTEGER\",_[_.RGBA_INTEGER=36249]=\"RGBA_INTEGER\",_[_.R8=33321]=\"R8\",_[_.RG8=33323]=\"RG8\",_[_.R16F=33325]=\"R16F\",_[_.R32F=33326]=\"R32F\",_[_.RG16F=33327]=\"RG16F\",_[_.RG32F=33328]=\"RG32F\",_[_.R8I=33329]=\"R8I\",_[_.R8UI=33330]=\"R8UI\",_[_.R16I=33331]=\"R16I\",_[_.R16UI=33332]=\"R16UI\",_[_.R32I=33333]=\"R32I\",_[_.R32UI=33334]=\"R32UI\",_[_.RG8I=33335]=\"RG8I\",_[_.RG8UI=33336]=\"RG8UI\",_[_.RG16I=33337]=\"RG16I\",_[_.RG16UI=33338]=\"RG16UI\",_[_.RG32I=33339]=\"RG32I\",_[_.RG32UI=33340]=\"RG32UI\",_[_.R8_SNORM=36756]=\"R8_SNORM\",_[_.RG8_SNORM=36757]=\"RG8_SNORM\",_[_.RGB8_SNORM=36758]=\"RGB8_SNORM\",_[_.RGBA8_SNORM=36759]=\"RGBA8_SNORM\",_[_.RGB10_A2UI=36975]=\"RGB10_A2UI\",_[_.TEXTURE_IMMUTABLE_FORMAT=37167]=\"TEXTURE_IMMUTABLE_FORMAT\",_[_.TEXTURE_IMMUTABLE_LEVELS=33503]=\"TEXTURE_IMMUTABLE_LEVELS\",_[_.UNSIGNED_INT_2_10_10_10_REV=33640]=\"UNSIGNED_INT_2_10_10_10_REV\",_[_.UNSIGNED_INT_10F_11F_11F_REV=35899]=\"UNSIGNED_INT_10F_11F_11F_REV\",_[_.UNSIGNED_INT_5_9_9_9_REV=35902]=\"UNSIGNED_INT_5_9_9_9_REV\",_[_.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]=\"FLOAT_32_UNSIGNED_INT_24_8_REV\",_[_.UNSIGNED_INT_24_8=34042]=\"UNSIGNED_INT_24_8\",_[_.HALF_FLOAT=5131]=\"HALF_FLOAT\",_[_.RG=33319]=\"RG\",_[_.RG_INTEGER=33320]=\"RG_INTEGER\",_[_.INT_2_10_10_10_REV=36255]=\"INT_2_10_10_10_REV\",_[_.CURRENT_QUERY=34917]=\"CURRENT_QUERY\",_[_.QUERY_RESULT=34918]=\"QUERY_RESULT\",_[_.QUERY_RESULT_AVAILABLE=34919]=\"QUERY_RESULT_AVAILABLE\",_[_.ANY_SAMPLES_PASSED=35887]=\"ANY_SAMPLES_PASSED\",_[_.ANY_SAMPLES_PASSED_CONSERVATIVE=36202]=\"ANY_SAMPLES_PASSED_CONSERVATIVE\",_[_.MAX_DRAW_BUFFERS=34852]=\"MAX_DRAW_BUFFERS\",_[_.DRAW_BUFFER0=34853]=\"DRAW_BUFFER0\",_[_.DRAW_BUFFER1=34854]=\"DRAW_BUFFER1\",_[_.DRAW_BUFFER2=34855]=\"DRAW_BUFFER2\",_[_.DRAW_BUFFER3=34856]=\"DRAW_BUFFER3\",_[_.DRAW_BUFFER4=34857]=\"DRAW_BUFFER4\",_[_.DRAW_BUFFER5=34858]=\"DRAW_BUFFER5\",_[_.DRAW_BUFFER6=34859]=\"DRAW_BUFFER6\",_[_.DRAW_BUFFER7=34860]=\"DRAW_BUFFER7\",_[_.DRAW_BUFFER8=34861]=\"DRAW_BUFFER8\",_[_.DRAW_BUFFER9=34862]=\"DRAW_BUFFER9\",_[_.DRAW_BUFFER10=34863]=\"DRAW_BUFFER10\",_[_.DRAW_BUFFER11=34864]=\"DRAW_BUFFER11\",_[_.DRAW_BUFFER12=34865]=\"DRAW_BUFFER12\",_[_.DRAW_BUFFER13=34866]=\"DRAW_BUFFER13\",_[_.DRAW_BUFFER14=34867]=\"DRAW_BUFFER14\",_[_.DRAW_BUFFER15=34868]=\"DRAW_BUFFER15\",_[_.MAX_COLOR_ATTACHMENTS=36063]=\"MAX_COLOR_ATTACHMENTS\",_[_.COLOR_ATTACHMENT1=36065]=\"COLOR_ATTACHMENT1\",_[_.COLOR_ATTACHMENT2=36066]=\"COLOR_ATTACHMENT2\",_[_.COLOR_ATTACHMENT3=36067]=\"COLOR_ATTACHMENT3\",_[_.COLOR_ATTACHMENT4=36068]=\"COLOR_ATTACHMENT4\",_[_.COLOR_ATTACHMENT5=36069]=\"COLOR_ATTACHMENT5\",_[_.COLOR_ATTACHMENT6=36070]=\"COLOR_ATTACHMENT6\",_[_.COLOR_ATTACHMENT7=36071]=\"COLOR_ATTACHMENT7\",_[_.COLOR_ATTACHMENT8=36072]=\"COLOR_ATTACHMENT8\",_[_.COLOR_ATTACHMENT9=36073]=\"COLOR_ATTACHMENT9\",_[_.COLOR_ATTACHMENT10=36074]=\"COLOR_ATTACHMENT10\",_[_.COLOR_ATTACHMENT11=36075]=\"COLOR_ATTACHMENT11\",_[_.COLOR_ATTACHMENT12=36076]=\"COLOR_ATTACHMENT12\",_[_.COLOR_ATTACHMENT13=36077]=\"COLOR_ATTACHMENT13\",_[_.COLOR_ATTACHMENT14=36078]=\"COLOR_ATTACHMENT14\",_[_.COLOR_ATTACHMENT15=36079]=\"COLOR_ATTACHMENT15\",_[_.SAMPLER_3D=35679]=\"SAMPLER_3D\",_[_.SAMPLER_2D_SHADOW=35682]=\"SAMPLER_2D_SHADOW\",_[_.SAMPLER_2D_ARRAY=36289]=\"SAMPLER_2D_ARRAY\",_[_.SAMPLER_2D_ARRAY_SHADOW=36292]=\"SAMPLER_2D_ARRAY_SHADOW\",_[_.SAMPLER_CUBE_SHADOW=36293]=\"SAMPLER_CUBE_SHADOW\",_[_.INT_SAMPLER_2D=36298]=\"INT_SAMPLER_2D\",_[_.INT_SAMPLER_3D=36299]=\"INT_SAMPLER_3D\",_[_.INT_SAMPLER_CUBE=36300]=\"INT_SAMPLER_CUBE\",_[_.INT_SAMPLER_2D_ARRAY=36303]=\"INT_SAMPLER_2D_ARRAY\",_[_.UNSIGNED_INT_SAMPLER_2D=36306]=\"UNSIGNED_INT_SAMPLER_2D\",_[_.UNSIGNED_INT_SAMPLER_3D=36307]=\"UNSIGNED_INT_SAMPLER_3D\",_[_.UNSIGNED_INT_SAMPLER_CUBE=36308]=\"UNSIGNED_INT_SAMPLER_CUBE\",_[_.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]=\"UNSIGNED_INT_SAMPLER_2D_ARRAY\",_[_.MAX_SAMPLES=36183]=\"MAX_SAMPLES\",_[_.SAMPLER_BINDING=35097]=\"SAMPLER_BINDING\",_[_.PIXEL_PACK_BUFFER=35051]=\"PIXEL_PACK_BUFFER\",_[_.PIXEL_UNPACK_BUFFER=35052]=\"PIXEL_UNPACK_BUFFER\",_[_.PIXEL_PACK_BUFFER_BINDING=35053]=\"PIXEL_PACK_BUFFER_BINDING\",_[_.PIXEL_UNPACK_BUFFER_BINDING=35055]=\"PIXEL_UNPACK_BUFFER_BINDING\",_[_.COPY_READ_BUFFER=36662]=\"COPY_READ_BUFFER\",_[_.COPY_WRITE_BUFFER=36663]=\"COPY_WRITE_BUFFER\",_[_.COPY_READ_BUFFER_BINDING=36662]=\"COPY_READ_BUFFER_BINDING\",_[_.COPY_WRITE_BUFFER_BINDING=36663]=\"COPY_WRITE_BUFFER_BINDING\",_[_.FLOAT_MAT2x3=35685]=\"FLOAT_MAT2x3\",_[_.FLOAT_MAT2x4=35686]=\"FLOAT_MAT2x4\",_[_.FLOAT_MAT3x2=35687]=\"FLOAT_MAT3x2\",_[_.FLOAT_MAT3x4=35688]=\"FLOAT_MAT3x4\",_[_.FLOAT_MAT4x2=35689]=\"FLOAT_MAT4x2\",_[_.FLOAT_MAT4x3=35690]=\"FLOAT_MAT4x3\",_[_.UNSIGNED_INT_VEC2=36294]=\"UNSIGNED_INT_VEC2\",_[_.UNSIGNED_INT_VEC3=36295]=\"UNSIGNED_INT_VEC3\",_[_.UNSIGNED_INT_VEC4=36296]=\"UNSIGNED_INT_VEC4\",_[_.UNSIGNED_NORMALIZED=35863]=\"UNSIGNED_NORMALIZED\",_[_.SIGNED_NORMALIZED=36764]=\"SIGNED_NORMALIZED\",_[_.VERTEX_ATTRIB_ARRAY_INTEGER=35069]=\"VERTEX_ATTRIB_ARRAY_INTEGER\",_[_.VERTEX_ATTRIB_ARRAY_DIVISOR=35070]=\"VERTEX_ATTRIB_ARRAY_DIVISOR\",_[_.TRANSFORM_FEEDBACK_BUFFER_MODE=35967]=\"TRANSFORM_FEEDBACK_BUFFER_MODE\",_[_.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS=35968]=\"MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS\",_[_.TRANSFORM_FEEDBACK_VARYINGS=35971]=\"TRANSFORM_FEEDBACK_VARYINGS\",_[_.TRANSFORM_FEEDBACK_BUFFER_START=35972]=\"TRANSFORM_FEEDBACK_BUFFER_START\",_[_.TRANSFORM_FEEDBACK_BUFFER_SIZE=35973]=\"TRANSFORM_FEEDBACK_BUFFER_SIZE\",_[_.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN=35976]=\"TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN\",_[_.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS=35978]=\"MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS\",_[_.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS=35979]=\"MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS\",_[_.INTERLEAVED_ATTRIBS=35980]=\"INTERLEAVED_ATTRIBS\",_[_.SEPARATE_ATTRIBS=35981]=\"SEPARATE_ATTRIBS\",_[_.TRANSFORM_FEEDBACK_BUFFER=35982]=\"TRANSFORM_FEEDBACK_BUFFER\",_[_.TRANSFORM_FEEDBACK_BUFFER_BINDING=35983]=\"TRANSFORM_FEEDBACK_BUFFER_BINDING\",_[_.TRANSFORM_FEEDBACK=36386]=\"TRANSFORM_FEEDBACK\",_[_.TRANSFORM_FEEDBACK_PAUSED=36387]=\"TRANSFORM_FEEDBACK_PAUSED\",_[_.TRANSFORM_FEEDBACK_ACTIVE=36388]=\"TRANSFORM_FEEDBACK_ACTIVE\",_[_.TRANSFORM_FEEDBACK_BINDING=36389]=\"TRANSFORM_FEEDBACK_BINDING\",_[_.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING=33296]=\"FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING\",_[_.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE=33297]=\"FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE\",_[_.FRAMEBUFFER_ATTACHMENT_RED_SIZE=33298]=\"FRAMEBUFFER_ATTACHMENT_RED_SIZE\",_[_.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE=33299]=\"FRAMEBUFFER_ATTACHMENT_GREEN_SIZE\",_[_.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE=33300]=\"FRAMEBUFFER_ATTACHMENT_BLUE_SIZE\",_[_.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE=33301]=\"FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE\",_[_.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE=33302]=\"FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE\",_[_.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE=33303]=\"FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE\",_[_.FRAMEBUFFER_DEFAULT=33304]=\"FRAMEBUFFER_DEFAULT\",_[_.DEPTH24_STENCIL8=35056]=\"DEPTH24_STENCIL8\",_[_.DRAW_FRAMEBUFFER_BINDING=36006]=\"DRAW_FRAMEBUFFER_BINDING\",_[_.READ_FRAMEBUFFER_BINDING=36010]=\"READ_FRAMEBUFFER_BINDING\",_[_.RENDERBUFFER_SAMPLES=36011]=\"RENDERBUFFER_SAMPLES\",_[_.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER=36052]=\"FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER\",_[_.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE=36182]=\"FRAMEBUFFER_INCOMPLETE_MULTISAMPLE\",_[_.UNIFORM_BUFFER=35345]=\"UNIFORM_BUFFER\",_[_.UNIFORM_BUFFER_BINDING=35368]=\"UNIFORM_BUFFER_BINDING\",_[_.UNIFORM_BUFFER_START=35369]=\"UNIFORM_BUFFER_START\",_[_.UNIFORM_BUFFER_SIZE=35370]=\"UNIFORM_BUFFER_SIZE\",_[_.MAX_VERTEX_UNIFORM_BLOCKS=35371]=\"MAX_VERTEX_UNIFORM_BLOCKS\",_[_.MAX_FRAGMENT_UNIFORM_BLOCKS=35373]=\"MAX_FRAGMENT_UNIFORM_BLOCKS\",_[_.MAX_COMBINED_UNIFORM_BLOCKS=35374]=\"MAX_COMBINED_UNIFORM_BLOCKS\",_[_.MAX_UNIFORM_BUFFER_BINDINGS=35375]=\"MAX_UNIFORM_BUFFER_BINDINGS\",_[_.MAX_UNIFORM_BLOCK_SIZE=35376]=\"MAX_UNIFORM_BLOCK_SIZE\",_[_.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS=35377]=\"MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS\",_[_.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS=35379]=\"MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS\",_[_.UNIFORM_BUFFER_OFFSET_ALIGNMENT=35380]=\"UNIFORM_BUFFER_OFFSET_ALIGNMENT\",_[_.ACTIVE_UNIFORM_BLOCKS=35382]=\"ACTIVE_UNIFORM_BLOCKS\",_[_.UNIFORM_TYPE=35383]=\"UNIFORM_TYPE\",_[_.UNIFORM_SIZE=35384]=\"UNIFORM_SIZE\",_[_.UNIFORM_BLOCK_INDEX=35386]=\"UNIFORM_BLOCK_INDEX\",_[_.UNIFORM_OFFSET=35387]=\"UNIFORM_OFFSET\",_[_.UNIFORM_ARRAY_STRIDE=35388]=\"UNIFORM_ARRAY_STRIDE\",_[_.UNIFORM_MATRIX_STRIDE=35389]=\"UNIFORM_MATRIX_STRIDE\",_[_.UNIFORM_IS_ROW_MAJOR=35390]=\"UNIFORM_IS_ROW_MAJOR\",_[_.UNIFORM_BLOCK_BINDING=35391]=\"UNIFORM_BLOCK_BINDING\",_[_.UNIFORM_BLOCK_DATA_SIZE=35392]=\"UNIFORM_BLOCK_DATA_SIZE\",_[_.UNIFORM_BLOCK_ACTIVE_UNIFORMS=35394]=\"UNIFORM_BLOCK_ACTIVE_UNIFORMS\",_[_.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES=35395]=\"UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES\",_[_.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER=35396]=\"UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER\",_[_.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER=35398]=\"UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER\",_[_.OBJECT_TYPE=37138]=\"OBJECT_TYPE\",_[_.SYNC_CONDITION=37139]=\"SYNC_CONDITION\",_[_.SYNC_STATUS=37140]=\"SYNC_STATUS\",_[_.SYNC_FLAGS=37141]=\"SYNC_FLAGS\",_[_.SYNC_FENCE=37142]=\"SYNC_FENCE\",_[_.SYNC_GPU_COMMANDS_COMPLETE=37143]=\"SYNC_GPU_COMMANDS_COMPLETE\",_[_.UNSIGNALED=37144]=\"UNSIGNALED\",_[_.SIGNALED=37145]=\"SIGNALED\",_[_.ALREADY_SIGNALED=37146]=\"ALREADY_SIGNALED\",_[_.TIMEOUT_EXPIRED=37147]=\"TIMEOUT_EXPIRED\",_[_.CONDITION_SATISFIED=37148]=\"CONDITION_SATISFIED\",_[_.WAIT_FAILED=37149]=\"WAIT_FAILED\",_[_.SYNC_FLUSH_COMMANDS_BIT=1]=\"SYNC_FLUSH_COMMANDS_BIT\",_[_.COLOR=6144]=\"COLOR\",_[_.DEPTH=6145]=\"DEPTH\",_[_.STENCIL=6146]=\"STENCIL\",_[_.MIN=32775]=\"MIN\",_[_.MAX=32776]=\"MAX\",_[_.DEPTH_COMPONENT24=33190]=\"DEPTH_COMPONENT24\",_[_.STREAM_READ=35041]=\"STREAM_READ\",_[_.STREAM_COPY=35042]=\"STREAM_COPY\",_[_.STATIC_READ=35045]=\"STATIC_READ\",_[_.STATIC_COPY=35046]=\"STATIC_COPY\",_[_.DYNAMIC_READ=35049]=\"DYNAMIC_READ\",_[_.DYNAMIC_COPY=35050]=\"DYNAMIC_COPY\",_[_.DEPTH_COMPONENT32F=36012]=\"DEPTH_COMPONENT32F\",_[_.DEPTH32F_STENCIL8=36013]=\"DEPTH32F_STENCIL8\",_[_.INVALID_INDEX=4294967295]=\"INVALID_INDEX\",_[_.TIMEOUT_IGNORED=-1]=\"TIMEOUT_IGNORED\",_[_.MAX_CLIENT_WAIT_TIMEOUT_WEBGL=37447]=\"MAX_CLIENT_WAIT_TIMEOUT_WEBGL\",_[_.UNMASKED_VENDOR_WEBGL=37445]=\"UNMASKED_VENDOR_WEBGL\",_[_.UNMASKED_RENDERER_WEBGL=37446]=\"UNMASKED_RENDERER_WEBGL\",_[_.MAX_TEXTURE_MAX_ANISOTROPY_EXT=34047]=\"MAX_TEXTURE_MAX_ANISOTROPY_EXT\",_[_.TEXTURE_MAX_ANISOTROPY_EXT=34046]=\"TEXTURE_MAX_ANISOTROPY_EXT\",_[_.R16_EXT=33322]=\"R16_EXT\",_[_.RG16_EXT=33324]=\"RG16_EXT\",_[_.RGB16_EXT=32852]=\"RGB16_EXT\",_[_.RGBA16_EXT=32859]=\"RGBA16_EXT\",_[_.R16_SNORM_EXT=36760]=\"R16_SNORM_EXT\",_[_.RG16_SNORM_EXT=36761]=\"RG16_SNORM_EXT\",_[_.RGB16_SNORM_EXT=36762]=\"RGB16_SNORM_EXT\",_[_.RGBA16_SNORM_EXT=36763]=\"RGBA16_SNORM_EXT\",_[_.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]=\"COMPRESSED_RGB_S3TC_DXT1_EXT\",_[_.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]=\"COMPRESSED_RGBA_S3TC_DXT1_EXT\",_[_.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]=\"COMPRESSED_RGBA_S3TC_DXT3_EXT\",_[_.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]=\"COMPRESSED_RGBA_S3TC_DXT5_EXT\",_[_.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]=\"COMPRESSED_SRGB_S3TC_DXT1_EXT\",_[_.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]=\"COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT\",_[_.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]=\"COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT\",_[_.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]=\"COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT\",_[_.COMPRESSED_RED_RGTC1_EXT=36283]=\"COMPRESSED_RED_RGTC1_EXT\",_[_.COMPRESSED_SIGNED_RED_RGTC1_EXT=36284]=\"COMPRESSED_SIGNED_RED_RGTC1_EXT\",_[_.COMPRESSED_RED_GREEN_RGTC2_EXT=36285]=\"COMPRESSED_RED_GREEN_RGTC2_EXT\",_[_.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT=36286]=\"COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT\",_[_.COMPRESSED_RGBA_BPTC_UNORM_EXT=36492]=\"COMPRESSED_RGBA_BPTC_UNORM_EXT\",_[_.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT=36493]=\"COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT\",_[_.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT=36494]=\"COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT\",_[_.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT=36495]=\"COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT\",_[_.COMPRESSED_R11_EAC=37488]=\"COMPRESSED_R11_EAC\",_[_.COMPRESSED_SIGNED_R11_EAC=37489]=\"COMPRESSED_SIGNED_R11_EAC\",_[_.COMPRESSED_RG11_EAC=37490]=\"COMPRESSED_RG11_EAC\",_[_.COMPRESSED_SIGNED_RG11_EAC=37491]=\"COMPRESSED_SIGNED_RG11_EAC\",_[_.COMPRESSED_RGB8_ETC2=37492]=\"COMPRESSED_RGB8_ETC2\",_[_.COMPRESSED_RGBA8_ETC2_EAC=37493]=\"COMPRESSED_RGBA8_ETC2_EAC\",_[_.COMPRESSED_SRGB8_ETC2=37494]=\"COMPRESSED_SRGB8_ETC2\",_[_.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37495]=\"COMPRESSED_SRGB8_ALPHA8_ETC2_EAC\",_[_.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37496]=\"COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2\",_[_.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37497]=\"COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2\",_[_.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]=\"COMPRESSED_RGB_PVRTC_4BPPV1_IMG\",_[_.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]=\"COMPRESSED_RGBA_PVRTC_4BPPV1_IMG\",_[_.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]=\"COMPRESSED_RGB_PVRTC_2BPPV1_IMG\",_[_.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]=\"COMPRESSED_RGBA_PVRTC_2BPPV1_IMG\",_[_.COMPRESSED_RGB_ETC1_WEBGL=36196]=\"COMPRESSED_RGB_ETC1_WEBGL\",_[_.COMPRESSED_RGB_ATC_WEBGL=35986]=\"COMPRESSED_RGB_ATC_WEBGL\",_[_.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]=\"COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL\",_[_.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]=\"COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL\",_[_.COMPRESSED_RGBA_ASTC_4x4_KHR=37808]=\"COMPRESSED_RGBA_ASTC_4x4_KHR\",_[_.COMPRESSED_RGBA_ASTC_5x4_KHR=37809]=\"COMPRESSED_RGBA_ASTC_5x4_KHR\",_[_.COMPRESSED_RGBA_ASTC_5x5_KHR=37810]=\"COMPRESSED_RGBA_ASTC_5x5_KHR\",_[_.COMPRESSED_RGBA_ASTC_6x5_KHR=37811]=\"COMPRESSED_RGBA_ASTC_6x5_KHR\",_[_.COMPRESSED_RGBA_ASTC_6x6_KHR=37812]=\"COMPRESSED_RGBA_ASTC_6x6_KHR\",_[_.COMPRESSED_RGBA_ASTC_8x5_KHR=37813]=\"COMPRESSED_RGBA_ASTC_8x5_KHR\",_[_.COMPRESSED_RGBA_ASTC_8x6_KHR=37814]=\"COMPRESSED_RGBA_ASTC_8x6_KHR\",_[_.COMPRESSED_RGBA_ASTC_8x8_KHR=37815]=\"COMPRESSED_RGBA_ASTC_8x8_KHR\",_[_.COMPRESSED_RGBA_ASTC_10x5_KHR=37816]=\"COMPRESSED_RGBA_ASTC_10x5_KHR\",_[_.COMPRESSED_RGBA_ASTC_10x6_KHR=37817]=\"COMPRESSED_RGBA_ASTC_10x6_KHR\",_[_.COMPRESSED_RGBA_ASTC_10x8_KHR=37818]=\"COMPRESSED_RGBA_ASTC_10x8_KHR\",_[_.COMPRESSED_RGBA_ASTC_10x10_KHR=37819]=\"COMPRESSED_RGBA_ASTC_10x10_KHR\",_[_.COMPRESSED_RGBA_ASTC_12x10_KHR=37820]=\"COMPRESSED_RGBA_ASTC_12x10_KHR\",_[_.COMPRESSED_RGBA_ASTC_12x12_KHR=37821]=\"COMPRESSED_RGBA_ASTC_12x12_KHR\",_[_.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR=37840]=\"COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR\",_[_.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR=37841]=\"COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR\",_[_.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR=37842]=\"COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR\",_[_.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR=37843]=\"COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR\",_[_.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR=37844]=\"COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR\",_[_.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR=37845]=\"COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR\",_[_.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR=37846]=\"COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR\",_[_.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR=37847]=\"COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR\",_[_.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR=37848]=\"COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR\",_[_.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR=37849]=\"COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR\",_[_.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR=37850]=\"COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR\",_[_.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR=37851]=\"COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR\",_[_.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR=37852]=\"COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR\",_[_.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR=37853]=\"COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR\",_[_.QUERY_COUNTER_BITS_EXT=34916]=\"QUERY_COUNTER_BITS_EXT\",_[_.CURRENT_QUERY_EXT=34917]=\"CURRENT_QUERY_EXT\",_[_.QUERY_RESULT_EXT=34918]=\"QUERY_RESULT_EXT\",_[_.QUERY_RESULT_AVAILABLE_EXT=34919]=\"QUERY_RESULT_AVAILABLE_EXT\",_[_.TIME_ELAPSED_EXT=35007]=\"TIME_ELAPSED_EXT\",_[_.TIMESTAMP_EXT=36392]=\"TIMESTAMP_EXT\",_[_.GPU_DISJOINT_EXT=36795]=\"GPU_DISJOINT_EXT\",_[_.COMPLETION_STATUS_KHR=37297]=\"COMPLETION_STATUS_KHR\",_[_.DEPTH_CLAMP_EXT=34383]=\"DEPTH_CLAMP_EXT\",_[_.FIRST_VERTEX_CONVENTION_WEBGL=36429]=\"FIRST_VERTEX_CONVENTION_WEBGL\",_[_.LAST_VERTEX_CONVENTION_WEBGL=36430]=\"LAST_VERTEX_CONVENTION_WEBGL\",_[_.PROVOKING_VERTEX_WEBL=36431]=\"PROVOKING_VERTEX_WEBL\",_[_.POLYGON_MODE_WEBGL=2880]=\"POLYGON_MODE_WEBGL\",_[_.POLYGON_OFFSET_LINE_WEBGL=10754]=\"POLYGON_OFFSET_LINE_WEBGL\",_[_.LINE_WEBGL=6913]=\"LINE_WEBGL\",_[_.FILL_WEBGL=6914]=\"FILL_WEBGL\",_[_.MAX_CLIP_DISTANCES_WEBGL=3378]=\"MAX_CLIP_DISTANCES_WEBGL\",_[_.MAX_CULL_DISTANCES_WEBGL=33529]=\"MAX_CULL_DISTANCES_WEBGL\",_[_.MAX_COMBINED_CLIP_AND_CULL_DISTANCES_WEBGL=33530]=\"MAX_COMBINED_CLIP_AND_CULL_DISTANCES_WEBGL\",_[_.CLIP_DISTANCE0_WEBGL=12288]=\"CLIP_DISTANCE0_WEBGL\",_[_.CLIP_DISTANCE1_WEBGL=12289]=\"CLIP_DISTANCE1_WEBGL\",_[_.CLIP_DISTANCE2_WEBGL=12290]=\"CLIP_DISTANCE2_WEBGL\",_[_.CLIP_DISTANCE3_WEBGL=12291]=\"CLIP_DISTANCE3_WEBGL\",_[_.CLIP_DISTANCE4_WEBGL=12292]=\"CLIP_DISTANCE4_WEBGL\",_[_.CLIP_DISTANCE5_WEBGL=12293]=\"CLIP_DISTANCE5_WEBGL\",_[_.CLIP_DISTANCE6_WEBGL=12294]=\"CLIP_DISTANCE6_WEBGL\",_[_.CLIP_DISTANCE7_WEBGL=12295]=\"CLIP_DISTANCE7_WEBGL\",_[_.POLYGON_OFFSET_CLAMP_EXT=36379]=\"POLYGON_OFFSET_CLAMP_EXT\",_[_.LOWER_LEFT_EXT=36001]=\"LOWER_LEFT_EXT\",_[_.UPPER_LEFT_EXT=36002]=\"UPPER_LEFT_EXT\",_[_.NEGATIVE_ONE_TO_ONE_EXT=37726]=\"NEGATIVE_ONE_TO_ONE_EXT\",_[_.ZERO_TO_ONE_EXT=37727]=\"ZERO_TO_ONE_EXT\",_[_.CLIP_ORIGIN_EXT=37724]=\"CLIP_ORIGIN_EXT\",_[_.CLIP_DEPTH_MODE_EXT=37725]=\"CLIP_DEPTH_MODE_EXT\",_[_.SRC1_COLOR_WEBGL=35065]=\"SRC1_COLOR_WEBGL\",_[_.SRC1_ALPHA_WEBGL=34185]=\"SRC1_ALPHA_WEBGL\",_[_.ONE_MINUS_SRC1_COLOR_WEBGL=35066]=\"ONE_MINUS_SRC1_COLOR_WEBGL\",_[_.ONE_MINUS_SRC1_ALPHA_WEBGL=35067]=\"ONE_MINUS_SRC1_ALPHA_WEBGL\",_[_.MAX_DUAL_SOURCE_DRAW_BUFFERS_WEBGL=35068]=\"MAX_DUAL_SOURCE_DRAW_BUFFERS_WEBGL\",_[_.MIRROR_CLAMP_TO_EDGE_EXT=34627]=\"MIRROR_CLAMP_TO_EDGE_EXT\"}(S||(R.GL=S={}))}\n//# sourceMappingURL=lumagl.min.js.map","min_map":"{\"version\":3,\"file\":\"lumagl.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"GLEnum\",\"GL\"],\"sources\":[\"0\"],\"mappings\":\"AAAuB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC;;;AAYpE,IAAIC,EAXJF,IAYA,SAAWE,GAIPA,EAAOA,EAAyB,iBAAI,KAAO,mBAE3CA,EAAOA,EAA2B,mBAAI,MAAQ,qBAE9CA,EAAOA,EAAyB,iBAAI,OAAS,mBAI7CA,EAAOA,EAAe,OAAI,GAAK,SAE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OAAS,2BAErDA,EAAOA,EAAmD,2CAAI,OAAS,6CAEvEA,EAAOA,EAA6B,qBAAI,OAAS,uBAEjDA,EAAOA,EAA6B,qBAAI,OAAS,uBAEjDA,EAAOA,EAA6B,qBAAI,OAAS,uBAEjDA,EAAOA,EAA6B,qBAAI,OAAS,uBAEjDA,EAAOA,EAA6B,qBAAI,OAAS,uBAEjDA,EAAOA,EAA6B,qBAAI,OAAS,uBAEjDA,EAAOA,EAA6B,qBAAI,OAAS,uBAEjDA,EAAOA,EAA6B,qBAAI,OAAS,uBAEjDA,EAAOA,EAAiC,yBAAI,OAAS,2BAErDA,EAAOA,EAAuB,eAAI,OAAS,iBAC3CA,EAAOA,EAAuB,eAAI,OAAS,iBAC3CA,EAAOA,EAAgC,wBAAI,OAAS,0BACpDA,EAAOA,EAAwB,gBAAI,OAAS,kBAC5CA,EAAOA,EAAwB,gBAAI,OAAS,kBAC5CA,EAAOA,EAA4B,oBAAI,OAAS,sBAEhDA,EAAOA,EAAyB,iBAAI,OAAS,mBAC7CA,EAAOA,EAAyB,iBAAI,OAAS,mBAC7CA,EAAOA,EAAmC,2BAAI,OAAS,6BACvDA,EAAOA,EAAmC,2BAAI,OAAS,6BACvDA,EAAOA,EAA2C,mCAAI,OAAS,qCAE/DA,EAAOA,EAAiC,yBAAI,OAAS,0BACxD,CAh5BD,CAg5BGA,IAAWH,EAAQI,GAAKD,EAAS,CAAC,GACzC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/tooltips.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/tooltips.js","canonical":"models/tooltips","resolution":"ESM","id":"f8f8ea4284","hash":"f8f8ea4284f2f7aae83746030d6a5c86c7657d3613945c1fce2b2bda53048c97","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getTooltipDefault = getTooltipDefault;\nexports.tabularize = tabularize;\nexports.toText = toText;\nexports.substituteIn = substituteIn;\nexports.makeTooltip = makeTooltip;\n/*\nThis file was adapted from https://github.com/uber/deck.gl/ the LICENSE\nbelow is preserved to comply with the original license.\n\nCopyright (c) 2015 - 2017 Uber Technologies, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n*/\nconst types_1 = require(\"@bokehjs/core/util/types\");\n/* global document */\nlet lastPickedObject;\nlet lastTooltip;\nconst DEFAULT_STYLE = {\n    fontFamily: '\"Helvetica Neue\", Helvetica, Arial, sans-serif',\n    display: \"flex\",\n    flex: \"wrap\",\n    maxWidth: \"500px\",\n    flexDirection: \"column\",\n    zIndex: 2,\n};\nfunction getDiv() {\n    return document.createElement(\"div\");\n}\nfunction getTooltipDefault(pickedInfo) {\n    if (!pickedInfo.picked) {\n        return null;\n    }\n    if (pickedInfo.object === lastPickedObject) {\n        return lastTooltip;\n    }\n    const tooltip = {\n        html: tabularize(pickedInfo.object),\n        style: DEFAULT_STYLE,\n    };\n    lastTooltip = tooltip;\n    lastPickedObject = pickedInfo.object;\n    return tooltip;\n}\nconst EXCLUDES = new Set([\"position\", \"index\"]);\nfunction tabularize(json) {\n    // Turns a JSON object of picked info into HTML for a tooltip\n    const dataTable = getDiv();\n    // Creates rows of two columns for the tooltip\n    for (const key in json) {\n        if (EXCLUDES.has(key)) {\n            continue; // eslint-disable-line\n        }\n        const header = getDiv();\n        header.className = \"header\";\n        header.textContent = key;\n        const valueElement = getDiv();\n        valueElement.className = \"value\";\n        valueElement.textContent = toText(json[key]);\n        const row = getDiv();\n        setStyles(row, header, valueElement);\n        row.appendChild(header);\n        row.appendChild(valueElement);\n        dataTable.appendChild(row);\n    }\n    return dataTable.innerHTML;\n}\nfunction setStyles(row, header, value) {\n    // Set default tooltip style\n    Object.assign(header.style, {\n        fontWeight: 700,\n        marginRight: \"10px\",\n        flex: \"1 1 0%\",\n    });\n    Object.assign(value.style, {\n        flex: \"none\",\n        maxWidth: \"250px\",\n        overflow: \"hidden\",\n        whiteSpace: \"nowrap\",\n        textOverflow: \"ellipsis\",\n    });\n    Object.assign(row.style, {\n        display: \"flex\",\n        flexDirection: \"row\",\n        justifyContent: \"space-between\",\n        alignItems: \"stretch\",\n    });\n}\nfunction toText(jsonValue) {\n    // Set contents of table value, trimming for certain types of data\n    let text;\n    if (Array.isArray(jsonValue) && jsonValue.length > 4) {\n        text = `Array<${jsonValue.length}>`;\n    }\n    else if ((0, types_1.isString)(jsonValue)) {\n        text = jsonValue;\n    }\n    else if ((0, types_1.isNumber)(jsonValue)) {\n        text = String(jsonValue);\n    }\n    else {\n        try {\n            text = JSON.stringify(jsonValue);\n        }\n        catch (err) {\n            text = \"<Non-Serializable Object>\";\n        }\n    }\n    const MAX_LENGTH = 50;\n    if (text.length > MAX_LENGTH) {\n        text = text.slice(0, MAX_LENGTH);\n    }\n    return text;\n}\nfunction substituteIn(template, json) {\n    let output = template;\n    for (const key in json) {\n        if ((0, types_1.isPlainObject)(json[key])) {\n            for (const subkey in json[key]) {\n                output = output.replace(`{${key}.${subkey}}`, json[key][subkey]);\n            }\n        }\n        output = output.replace(`{${key}}`, json[key]);\n    }\n    return output;\n}\nfunction makeTooltip(tooltips, layers) {\n    /*\n     * If explicitly no tooltip passed by user, return null\n     * If a JSON object passed, return a tooltip based on that object\n     *   We expect the user has passed a string template that will take pickedInfo keywords\n     * If a boolean passed, return the default tooltip\n     */\n    if (!tooltips) {\n        return null;\n    }\n    let per_layer = false;\n    const layer_tooltips = {};\n    for (let i = 0; i < layers.length; i++) {\n        const layer = layers[i];\n        const layer_id = layer.id;\n        if (!(0, types_1.isBoolean)(tooltips) && (i.toString() in tooltips || layer_id in tooltips)) {\n            layer_tooltips[layer_id] = layer_id in tooltips ? tooltips[layer_id] : tooltips[i.toString()];\n            per_layer = true;\n        }\n    }\n    if (tooltips.html || tooltips.text || per_layer) {\n        return (pickedInfo) => {\n            if (!pickedInfo.picked) {\n                return null;\n            }\n            const tooltip = (per_layer) ? layer_tooltips[pickedInfo.layer.id] : tooltips;\n            if (tooltip == null) {\n                return;\n            }\n            else if ((0, types_1.isBoolean)(tooltip)) {\n                return tooltip ? getTooltipDefault(pickedInfo) : null;\n            }\n            const formattedTooltip = {\n                style: tooltip.style || DEFAULT_STYLE,\n            };\n            if (tooltip.html) {\n                formattedTooltip.html = substituteIn(tooltip.html, pickedInfo.object);\n            }\n            else {\n                formattedTooltip.text = substituteIn(tooltip.text, pickedInfo.object);\n            }\n            return formattedTooltip;\n        };\n    }\n    return getTooltipDefault;\n}\n//# sourceMappingURL=tooltips.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"getTooltipDefault"},{"type":"named","name":"tabularize"},{"type":"named","name":"toText"},{"type":"named","name":"substituteIn"},{"type":"named","name":"makeTooltip"}],"externals":[],"shims":[]},"code":{"source":"/* models/tooltips.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.getTooltipDefault = getTooltipDefault;\n    exports.tabularize = tabularize;\n    exports.toText = toText;\n    exports.substituteIn = substituteIn;\n    exports.makeTooltip = makeTooltip;\n    /*\n    This file was adapted from https://github.com/uber/deck.gl/ the LICENSE\n    below is preserved to comply with the original license.\n    \n    Copyright (c) 2015 - 2017 Uber Technologies, Inc.\n    \n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n    \n    The above copyright notice and this permission notice shall be included in\n    all copies or substantial portions of the Software.\n    \n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n    THE SOFTWARE.\n    */\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    /* global document */\n    let lastPickedObject;\n    let lastTooltip;\n    const DEFAULT_STYLE = {\n        fontFamily: '\"Helvetica Neue\", Helvetica, Arial, sans-serif',\n        display: \"flex\",\n        flex: \"wrap\",\n        maxWidth: \"500px\",\n        flexDirection: \"column\",\n        zIndex: 2,\n    };\n    function getDiv() {\n        return document.createElement(\"div\");\n    }\n    function getTooltipDefault(pickedInfo) {\n        if (!pickedInfo.picked) {\n            return null;\n        }\n        if (pickedInfo.object === lastPickedObject) {\n            return lastTooltip;\n        }\n        const tooltip = {\n            html: tabularize(pickedInfo.object),\n            style: DEFAULT_STYLE,\n        };\n        lastTooltip = tooltip;\n        lastPickedObject = pickedInfo.object;\n        return tooltip;\n    }\n    const EXCLUDES = new Set([\"position\", \"index\"]);\n    function tabularize(json) {\n        // Turns a JSON object of picked info into HTML for a tooltip\n        const dataTable = getDiv();\n        // Creates rows of two columns for the tooltip\n        for (const key in json) {\n            if (EXCLUDES.has(key)) {\n                continue; // eslint-disable-line\n            }\n            const header = getDiv();\n            header.className = \"header\";\n            header.textContent = key;\n            const valueElement = getDiv();\n            valueElement.className = \"value\";\n            valueElement.textContent = toText(json[key]);\n            const row = getDiv();\n            setStyles(row, header, valueElement);\n            row.appendChild(header);\n            row.appendChild(valueElement);\n            dataTable.appendChild(row);\n        }\n        return dataTable.innerHTML;\n    }\n    function setStyles(row, header, value) {\n        // Set default tooltip style\n        Object.assign(header.style, {\n            fontWeight: 700,\n            marginRight: \"10px\",\n            flex: \"1 1 0%\",\n        });\n        Object.assign(value.style, {\n            flex: \"none\",\n            maxWidth: \"250px\",\n            overflow: \"hidden\",\n            whiteSpace: \"nowrap\",\n            textOverflow: \"ellipsis\",\n        });\n        Object.assign(row.style, {\n            display: \"flex\",\n            flexDirection: \"row\",\n            justifyContent: \"space-between\",\n            alignItems: \"stretch\",\n        });\n    }\n    function toText(jsonValue) {\n        // Set contents of table value, trimming for certain types of data\n        let text;\n        if (Array.isArray(jsonValue) && jsonValue.length > 4) {\n            text = `Array<${jsonValue.length}>`;\n        }\n        else if ((0, types_1.isString)(jsonValue)) {\n            text = jsonValue;\n        }\n        else if ((0, types_1.isNumber)(jsonValue)) {\n            text = String(jsonValue);\n        }\n        else {\n            try {\n                text = JSON.stringify(jsonValue);\n            }\n            catch (err) {\n                text = \"<Non-Serializable Object>\";\n            }\n        }\n        const MAX_LENGTH = 50;\n        if (text.length > MAX_LENGTH) {\n            text = text.slice(0, MAX_LENGTH);\n        }\n        return text;\n    }\n    function substituteIn(template, json) {\n        let output = template;\n        for (const key in json) {\n            if ((0, types_1.isPlainObject)(json[key])) {\n                for (const subkey in json[key]) {\n                    output = output.replace(`{${key}.${subkey}}`, json[key][subkey]);\n                }\n            }\n            output = output.replace(`{${key}}`, json[key]);\n        }\n        return output;\n    }\n    function makeTooltip(tooltips, layers) {\n        /*\n         * If explicitly no tooltip passed by user, return null\n         * If a JSON object passed, return a tooltip based on that object\n         *   We expect the user has passed a string template that will take pickedInfo keywords\n         * If a boolean passed, return the default tooltip\n         */\n        if (!tooltips) {\n            return null;\n        }\n        let per_layer = false;\n        const layer_tooltips = {};\n        for (let i = 0; i < layers.length; i++) {\n            const layer = layers[i];\n            const layer_id = layer.id;\n            if (!(0, types_1.isBoolean)(tooltips) && (i.toString() in tooltips || layer_id in tooltips)) {\n                layer_tooltips[layer_id] = layer_id in tooltips ? tooltips[layer_id] : tooltips[i.toString()];\n                per_layer = true;\n            }\n        }\n        if (tooltips.html || tooltips.text || per_layer) {\n            return (pickedInfo) => {\n                if (!pickedInfo.picked) {\n                    return null;\n                }\n                const tooltip = (per_layer) ? layer_tooltips[pickedInfo.layer.id] : tooltips;\n                if (tooltip == null) {\n                    return;\n                }\n                else if ((0, types_1.isBoolean)(tooltip)) {\n                    return tooltip ? getTooltipDefault(pickedInfo) : null;\n                }\n                const formattedTooltip = {\n                    style: tooltip.style || DEFAULT_STYLE,\n                };\n                if (tooltip.html) {\n                    formattedTooltip.html = substituteIn(tooltip.html, pickedInfo.object);\n                }\n                else {\n                    formattedTooltip.text = substituteIn(tooltip.text, pickedInfo.object);\n                }\n                return formattedTooltip;\n            };\n        }\n        return getTooltipDefault;\n    }\n}\n","min_source":"function _(t,e,n,i,l){i(),n.getTooltipDefault=f,n.tabularize=p,n.toText=d,n.substituteIn=x,n.makeTooltip=function(t,e){if(!t)return null;let n=!1;const i={};for(let l=0;l<e.length;l++){const o=e[l].id;(0,r.isBoolean)(t)||!(l.toString()in t)&&!(o in t)||(i[o]=o in t?t[o]:t[l.toString()],n=!0)}if(t.html||t.text||n)return e=>{if(!e.picked)return null;const l=n?i[e.layer.id]:t;if(null==l)return;if((0,r.isBoolean)(l))return l?f(e):null;const o={style:l.style||c};return l.html?o.html=x(l.html,e.object):o.text=x(l.text,e.object),o};return f};\n/*\n    This file was adapted from https://github.com/uber/deck.gl/ the LICENSE\n    below is preserved to comply with the original license.\n    \n    Copyright (c) 2015 - 2017 Uber Technologies, Inc.\n    \n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n    \n    The above copyright notice and this permission notice shall be included in\n    all copies or substantial portions of the Software.\n    \n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n    THE SOFTWARE.\n    */\nconst r=t(\"@bokehjs/core/util/types\");let o,s;const c={fontFamily:'\"Helvetica Neue\", Helvetica, Arial, sans-serif',display:\"flex\",flex:\"wrap\",maxWidth:\"500px\",flexDirection:\"column\",zIndex:2};function a(){return document.createElement(\"div\")}function f(t){if(!t.picked)return null;if(t.object===o)return s;const e={html:p(t.object),style:c};return s=e,o=t.object,e}const u=new Set([\"position\",\"index\"]);function p(t){const e=a();for(const n in t){if(u.has(n))continue;const i=a();i.className=\"header\",i.textContent=n;const l=a();l.className=\"value\",l.textContent=d(t[n]);const r=a();h(r,i,l),r.appendChild(i),r.appendChild(l),e.appendChild(r)}return e.innerHTML}function h(t,e,n){Object.assign(e.style,{fontWeight:700,marginRight:\"10px\",flex:\"1 1 0%\"}),Object.assign(n.style,{flex:\"none\",maxWidth:\"250px\",overflow:\"hidden\",whiteSpace:\"nowrap\",textOverflow:\"ellipsis\"}),Object.assign(t.style,{display:\"flex\",flexDirection:\"row\",justifyContent:\"space-between\",alignItems:\"stretch\"})}function d(t){let e;if(Array.isArray(t)&&t.length>4)e=`Array<${t.length}>`;else if((0,r.isString)(t))e=t;else if((0,r.isNumber)(t))e=String(t);else try{e=JSON.stringify(t)}catch(t){e=\"<Non-Serializable Object>\"}return e.length>50&&(e=e.slice(0,50)),e}function x(t,e){let n=t;for(const t in e){if((0,r.isPlainObject)(e[t]))for(const i in e[t])n=n.replace(`{${t}.${i}}`,e[t][i]);n=n.replace(`{${t}}`,e[t])}return n}}\n//# sourceMappingURL=tooltips.min.js.map","min_map":"{\"version\":3,\"file\":\"tooltips.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"getTooltipDefault\",\"tabularize\",\"toText\",\"substituteIn\",\"makeTooltip\",\"tooltips\",\"layers\",\"per_layer\",\"layer_tooltips\",\"i\",\"length\",\"layer_id\",\"id\",\"types_1\",\"isBoolean\",\"toString\",\"html\",\"text\",\"pickedInfo\",\"picked\",\"tooltip\",\"layer\",\"formattedTooltip\",\"style\",\"DEFAULT_STYLE\",\"object\",\"lastPickedObject\",\"lastTooltip\",\"fontFamily\",\"display\",\"flex\",\"maxWidth\",\"flexDirection\",\"zIndex\",\"getDiv\",\"document\",\"createElement\",\"EXCLUDES\",\"Set\",\"json\",\"dataTable\",\"key\",\"has\",\"header\",\"className\",\"textContent\",\"valueElement\",\"row\",\"setStyles\",\"appendChild\",\"innerHTML\",\"value\",\"Object\",\"assign\",\"fontWeight\",\"marginRight\",\"overflow\",\"whiteSpace\",\"textOverflow\",\"justifyContent\",\"alignItems\",\"jsonValue\",\"Array\",\"isArray\",\"isString\",\"isNumber\",\"String\",\"JSON\",\"stringify\",\"err\",\"slice\",\"template\",\"output\",\"isPlainObject\",\"subkey\",\"replace\"],\"sources\":[\"0\"],\"mapp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KAEfO,EAAOA,EAAKqD,MAAM,EAFH,KAIZrD,CACX,CACA,SAASd,EAAaoE,EAAUhC,GAC5B,IAAIiC,EAASD,EACb,IAAK,MAAM9B,KAAOF,EAAM,CACpB,IAAI,EAAI1B,EAAQ4D,eAAelC,EAAKE,IAChC,IAAK,MAAMiC,KAAUnC,EAAKE,GACtB+B,EAASA,EAAOG,QAAQ,IAAIlC,KAAOiC,KAAWnC,EAAKE,GAAKiC,IAGhEF,EAASA,EAAOG,QAAQ,IAAIlC,KAAQF,EAAKE,GAC7C,CACA,OAAO+B,CACX,CA+CJ\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/discrete_player.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/discrete_player.js","canonical":"models/discrete_player","resolution":"ESM","id":"0dca2cd4f6","hash":"0dca2cd4f6035909951391a3e63f2e3482685218f49597d020fd2c6da6736d2e","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DiscretePlayer = exports.DiscretePlayerView = void 0;\nconst player_1 = require(\"./player\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst pretty_1 = require(\"@bokehjs/core/util/pretty\");\nclass DiscretePlayerView extends player_1.PlayerView {\n    append_value_to_title_el() {\n        let label = this.model.options[this.model.value];\n        if (typeof label !== \"string\") {\n            label = (0, pretty_1.to_string)(label);\n        }\n        this.titleEl.appendChild((0, dom_1.span)({ class: \"pn-player-value\" }, label));\n    }\n}\nexports.DiscretePlayerView = DiscretePlayerView;\nDiscretePlayerView.__name__ = \"DiscretePlayerView\";\nclass DiscretePlayer extends player_1.Player {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.DiscretePlayer = DiscretePlayer;\n_a = DiscretePlayer;\nDiscretePlayer.__name__ = \"DiscretePlayer\";\nDiscretePlayer.__module__ = \"panel.models.widgets\";\n(() => {\n    _a.prototype.default_view = DiscretePlayerView;\n    _a.define(({ List, Any }) => ({\n        options: [List(Any), []],\n    }));\n    _a.override({ width: 400 });\n})();\n//# sourceMappingURL=discrete_player.js.map\n","type":"js","dependency_paths":[["./player","/home/runner/work/panel/panel/panel/dist/lib/models/player.js"]],"dependency_map":[],"exported":[{"type":"named","name":"DiscretePlayerView"},{"type":"named","name":"DiscretePlayer"}],"externals":[],"shims":[]},"code":{"source":"/* models/discrete_player.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const player_1 = require(\"96e805ccb5\") /* ./player */;\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const pretty_1 = require(\"@bokehjs/core/util/pretty\");\n    class DiscretePlayerView extends player_1.PlayerView {\n        append_value_to_title_el() {\n            let label = this.model.options[this.model.value];\n            if (typeof label !== \"string\") {\n                label = (0, pretty_1.to_string)(label);\n            }\n            this.titleEl.appendChild((0, dom_1.span)({ class: \"pn-player-value\" }, label));\n        }\n    }\n    exports.DiscretePlayerView = DiscretePlayerView;\n    DiscretePlayerView.__name__ = \"DiscretePlayerView\";\n    class DiscretePlayer extends player_1.Player {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.DiscretePlayer = DiscretePlayer;\n    _a = DiscretePlayer;\n    DiscretePlayer.__name__ = \"DiscretePlayer\";\n    DiscretePlayer.__module__ = \"panel.models.widgets\";\n    (() => {\n        _a.prototype.default_view = DiscretePlayerView;\n        _a.define(({ List, Any }) => ({\n            options: [List(Any), []],\n        }));\n        _a.override({ width: 400 });\n    })();\n}\n","min_source":"function _(e,t,s,l,i){var o;l();const r=e(\"96e805ccb5\"),a=e(\"@bokehjs/core/dom\"),n=e(\"@bokehjs/core/util/pretty\");class _ extends r.PlayerView{append_value_to_title_el(){let e=this.model.options[this.model.value];\"string\"!=typeof e&&(e=(0,n.to_string)(e)),this.titleEl.appendChild((0,a.span)({class:\"pn-player-value\"},e))}}s.DiscretePlayerView=_,_.__name__=\"DiscretePlayerView\";class c extends r.Player{constructor(e){super(e)}}s.DiscretePlayer=c,o=c,c.__name__=\"DiscretePlayer\",c.__module__=\"panel.models.widgets\",o.prototype.default_view=_,o.define((({List:e,Any:t})=>({options:[e(t),[]]}))),o.override({width:400})}\n//# sourceMappingURL=discrete_player.min.js.map","min_map":"{\"version\":3,\"file\":\"discrete_player.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"player_1\",\"dom_1\",\"pretty_1\",\"DiscretePlayerView\",\"PlayerView\",\"append_value_to_title_el\",\"label\",\"this\",\"model\",\"options\",\"value\",\"to_string\",\"titleEl\",\"appendChild\",\"span\",\"class\",\"__name__\",\"DiscretePlayer\",\"Player\",\"constructor\",\"attrs\",\"super\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"List\",\"Any\",\"override\",\"width\"],\"sources\":[\"0\"],\"mappings\":\"AAAgC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC7E,IAAIC,EACJF,IACA,MAAMG,EAAWN,EAAQ,cACnBO,EAAQP,EAAQ,qBAChBQ,EAAWR,EAAQ,6BACzB,MAAMS,UAA2BH,EAASI,WACtC,wBAAAC,GACI,IAAIC,EAAQC,KAAKC,MAAMC,QAAQF,KAAKC,MAAME,OACrB,iBAAVJ,IACPA,GAAQ,EAAIJ,EAASS,WAAWL,IAEpCC,KAAKK,QAAQC,aAAY,EAAIZ,EAAMa,MAAM,CAAEC,MAAO,mBAAqBT,GAC3E,EAEJV,EAAQO,mBAAqBA,EAC7BA,EAAmBa,SAAW,qBAC9B,MAAMC,UAAuBjB,EAASkB,OAClC,WAAAC,CAAYC,GACRC,MAAMD,EACV,EAEJxB,EAAQqB,eAAiBA,EACzBlB,EAAKkB,EACLA,EAAeD,SAAW,iBAC1BC,EAAeK,WAAa,uBAExBvB,EAAGwB,UAAUC,aAAerB,EAC5BJ,EAAG0B,QAAO,EAAGC,OAAMC,UAAU,CACzBlB,QAAS,CAACiB,EAAKC,GAAM,QAEzB5B,EAAG6B,SAAS,CAAEC,MAAO,KAE7B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/player.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/player.js","canonical":"models/player","resolution":"ESM","id":"96e805ccb5","hash":"96e805ccb5065f8c9adb25dca81b43f2a151e4022d248e641970165d391dcc85","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Player = exports.LoopPolicy = exports.PlayerView = void 0;\nconst kinds_1 = require(\"@bokehjs/core/kinds\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst widget_1 = require(\"@bokehjs/models/widgets/widget\");\nconst pretty_1 = require(\"@bokehjs/core/util/pretty\");\nconst SVG_STRINGS = {\n    slower: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-minus\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M5 12l14 0\" /></svg>',\n    first: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-track-prev-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M20.341 4.247l-8 7a1 1 0 0 0 0 1.506l8 7c.647 .565 1.659 .106 1.659 -.753v-14c0 -.86 -1.012 -1.318 -1.659 -.753z\" stroke-width=\"0\" fill=\"currentColor\" /><path d=\"M9.341 4.247l-8 7a1 1 0 0 0 0 1.506l8 7c.647 .565 1.659 .106 1.659 -.753v-14c0 -.86 -1.012 -1.318 -1.659 -.753z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',\n    previous: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-skip-back-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M19.496 4.136l-12 7a1 1 0 0 0 0 1.728l12 7a1 1 0 0 0 1.504 -.864v-14a1 1 0 0 0 -1.504 -.864z\" stroke-width=\"0\" fill=\"currentColor\" /><path d=\"M4 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',\n    reverse: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-play-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"transform: scaleX(-1);\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',\n    pause: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-pause-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M9 4h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h2a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2z\" stroke-width=\"0\" fill=\"currentColor\" /><path d=\"M17 4h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h2a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',\n    play: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-play-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',\n    next: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-skip-forward-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M3 5v14a1 1 0 0 0 1.504 .864l12 -7a1 1 0 0 0 0 -1.728l-12 -7a1 1 0 0 0 -1.504 .864z\" stroke-width=\"0\" fill=\"currentColor\" /><path d=\"M20 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',\n    last: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-track-next-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M2 5v14c0 .86 1.012 1.318 1.659 .753l8 -7a1 1 0 0 0 0 -1.506l-8 -7c-.647 -.565 -1.659 -.106 -1.659 .753z\" stroke-width=\"0\" fill=\"currentColor\" /><path d=\"M13 5v14c0 .86 1.012 1.318 1.659 .753l8 -7a1 1 0 0 0 0 -1.506l-8 -7c-.647 -.565 -1.659 -.106 -1.659 .753z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',\n    faster: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-plus\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M12 5l0 14\" /><path d=\"M5 12l14 0\" /></svg>',\n};\nfunction press(btn_list) {\n    btn_list.forEach((btn) => btn.style.borderStyle = \"inset\");\n}\nfunction unpress(btn_list) {\n    btn_list.forEach((btn) => btn.style.borderStyle = \"outset\");\n}\nclass PlayerView extends widget_1.WidgetView {\n    constructor() {\n        super(...arguments);\n        this._changing = false;\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { title, value_align, direction, value, loop_policy, disabled, show_loop_controls, show_value, scale_buttons, visible_buttons, visible_loop_options } = this.model.properties;\n        this.on_change(title, () => this.update_title_and_value());\n        this.on_change(value_align, () => this.set_value_align());\n        this.on_change(direction, () => this.set_direction());\n        this.on_change(value, () => this.update_value());\n        this.on_change(loop_policy, () => this.set_loop_state(this.model.loop_policy));\n        this.on_change(disabled, () => this.toggle_disable());\n        this.on_change(show_loop_controls, () => {\n            if (this.model.show_loop_controls && this.loop_state.parentNode != this.groupEl) {\n                this.groupEl.appendChild(this.loop_state);\n            }\n            else if (!this.model.show_loop_controls && this.loop_state.parentNode == this.groupEl) {\n                this.groupEl.removeChild(this.loop_state);\n            }\n        });\n        this.on_change(show_value, () => this.update_title_and_value());\n        this.on_change(scale_buttons, () => this.update_css());\n        this.on_change(visible_buttons, () => this.update_css());\n        this.on_change(visible_loop_options, () => this.update_css());\n    }\n    toggle_disable() {\n        this.sliderEl.disabled = this.model.disabled;\n        for (const el of this.buttonEl.children) {\n            const anyEl = el;\n            anyEl.disabled = this.model.disabled;\n        }\n        for (const el of this.loop_state.children) {\n            if (el.tagName == \"input\") {\n                const anyEl = el;\n                anyEl.disabled = this.model.disabled;\n            }\n        }\n    }\n    get_height() {\n        return 250;\n    }\n    update_css() {\n        const button_style_small = `text-align: center; flex-grow: 1; margin: 2px; transform: scale(${this.model.scale_buttons}); max-width: 50px;`;\n        const button_style = `text-align: center; flex-grow: 2; margin: 2px; transform: scale(${this.model.scale_buttons}); max-width: 50px;`;\n        const buttons = {\n            slower: this.slower,\n            first: this.first,\n            previous: this.previous,\n            reverse: this.reverse,\n            pause: this.pause,\n            play: this.play,\n            next: this.next,\n            last: this.last,\n            faster: this.faster,\n        };\n        for (const [name, button] of Object.entries(buttons)) {\n            if (button) {\n                if (this.model.visible_buttons.includes(name)) {\n                    button.style.display = \"\"; // Reset to default display\n                    if (name === \"slower\" || name === \"faster\") {\n                        button.style.cssText += button_style_small;\n                    }\n                    else {\n                        button.style.cssText += button_style;\n                    }\n                }\n                else {\n                    button.style.display = \"none\"; // Hide the button completely\n                }\n            }\n        }\n        for (const el of this.loop_state.children) {\n            if (el.tagName.toLowerCase() == \"input\") {\n                const anyEl = el;\n                if (this.model.visible_loop_options.includes(anyEl.value)) {\n                    anyEl.style.display = \"\";\n                }\n                else {\n                    anyEl.style.display = \"none\";\n                }\n            }\n            else if (el.tagName.toLowerCase() == \"label\") {\n                const anyEl = el;\n                if (this.model.visible_loop_options.includes(anyEl.innerHTML.toLowerCase())) {\n                    anyEl.style.display = \"\";\n                }\n                else {\n                    anyEl.style.display = \"none\";\n                }\n            }\n        }\n    }\n    update_value() {\n        if (this.sliderEl != null) {\n            this.sliderEl.min = String(this.model.start);\n            this.sliderEl.max = String(this.model.end);\n            this.sliderEl.value = String(this.model.value);\n        }\n    }\n    render() {\n        super.render();\n        // Layout to group the elements\n        this.groupEl = (0, dom_1.div)();\n        this.groupEl.style.display = \"flex\";\n        this.groupEl.style.flexDirection = \"column\";\n        // Display Value\n        this.titleEl = (0, dom_1.div)();\n        this.titleEl.classList.add(\"pn-player-title\");\n        this.titleEl.style.padding = \"0 5px 0 5px\";\n        this.update_title_and_value();\n        this.set_value_align();\n        // Slider\n        this.sliderEl = document.createElement(\"input\");\n        this.sliderEl.style.width = \"100%\";\n        this.sliderEl.setAttribute(\"type\", \"range\");\n        this.sliderEl.value = String(this.model.value);\n        this.sliderEl.min = String(this.model.start);\n        this.sliderEl.max = String(this.model.end);\n        this.sliderEl.addEventListener(\"input\", (ev) => {\n            this.set_frame(parseInt(ev.target.value), false);\n        });\n        this.sliderEl.addEventListener(\"change\", (ev) => {\n            this.set_frame(parseInt(ev.target.value));\n        });\n        // Buttons\n        const button_div = (0, dom_1.div)();\n        this.buttonEl = button_div;\n        button_div.style.cssText = \"margin: 0 auto; display: flex; padding: 5px; align-items: stretch; justify-content: center; width: 100%;\";\n        this.slower = document.createElement(\"button\");\n        this.slower.classList.add(\"slower\");\n        this.slower.innerHTML = SVG_STRINGS.slower;\n        this.slower.onclick = () => this.slower_speed();\n        button_div.appendChild(this.slower);\n        this.first = document.createElement(\"button\");\n        this.first.classList.add(\"first\");\n        this.first.innerHTML = SVG_STRINGS.first;\n        this.first.onclick = () => this.first_frame();\n        button_div.appendChild(this.first);\n        this.previous = document.createElement(\"button\");\n        this.previous.classList.add(\"previous\");\n        this.previous.innerHTML = SVG_STRINGS.previous;\n        this.previous.onclick = () => this.previous_frame();\n        button_div.appendChild(this.previous);\n        this.reverse = document.createElement(\"button\");\n        this.reverse.classList.add(\"reverse\");\n        this.reverse.innerHTML = SVG_STRINGS.reverse;\n        this.reverse.onclick = () => this.reverse_animation();\n        button_div.appendChild(this.reverse);\n        this.pause = document.createElement(\"button\");\n        this.pause.classList.add(\"pause\");\n        this.pause.innerHTML = SVG_STRINGS.pause;\n        this.pause.onclick = () => this.pause_animation();\n        button_div.appendChild(this.pause);\n        this.play = document.createElement(\"button\");\n        this.play.classList.add(\"play\");\n        this.play.innerHTML = SVG_STRINGS.play;\n        this.play.onclick = () => this.play_animation();\n        button_div.appendChild(this.play);\n        this.next = document.createElement(\"button\");\n        this.next.classList.add(\"next\");\n        this.next.innerHTML = SVG_STRINGS.next;\n        this.next.onclick = () => this.next_frame();\n        button_div.appendChild(this.next);\n        this.last = document.createElement(\"button\");\n        this.last.classList.add(\"last\");\n        this.last.innerHTML = SVG_STRINGS.last;\n        this.last.onclick = () => this.last_frame();\n        button_div.appendChild(this.last);\n        this.faster = document.createElement(\"button\");\n        this.faster.classList.add(\"faster\");\n        this.faster.innerHTML = SVG_STRINGS.faster;\n        this.faster.onclick = () => this.faster_speed();\n        button_div.appendChild(this.faster);\n        // toggle\n        this._toggle_reverse = () => {\n            unpress([this.pause, this.play]);\n            press([this.reverse]);\n        };\n        this._toogle_pause = () => {\n            unpress([this.reverse, this.play]);\n            press([this.pause]);\n        };\n        this._toggle_play = () => {\n            unpress([this.reverse, this.pause]);\n            press([this.play]);\n        };\n        // Loop control\n        this.loop_state = document.createElement(\"form\");\n        this.loop_state.style.cssText = \"margin: 0 auto; display: table\";\n        const once = document.createElement(\"input\");\n        once.classList.add(\"once\");\n        once.type = \"radio\";\n        once.value = \"once\";\n        once.name = \"state\";\n        const once_label = document.createElement(\"label\");\n        once_label.innerHTML = \"Once\";\n        once_label.classList.add(\"once-label\");\n        once_label.style.cssText = \"padding: 0 10px 0 5px; user-select:none;\";\n        const loop = document.createElement(\"input\");\n        loop.classList.add(\"loop\");\n        loop.setAttribute(\"type\", \"radio\");\n        loop.setAttribute(\"value\", \"loop\");\n        loop.setAttribute(\"name\", \"state\");\n        const loop_label = document.createElement(\"label\");\n        loop_label.classList.add(\"loop-label\");\n        loop_label.innerHTML = \"Loop\";\n        loop_label.style.cssText = \"padding: 0 10px 0 5px; user-select:none;\";\n        const reflect = document.createElement(\"input\");\n        reflect.classList.add(\"reflect\");\n        reflect.setAttribute(\"type\", \"radio\");\n        reflect.setAttribute(\"value\", \"reflect\");\n        reflect.setAttribute(\"name\", \"state\");\n        const reflect_label = document.createElement(\"label\");\n        loop_label.classList.add(\"reflect-label\");\n        reflect_label.innerHTML = \"Reflect\";\n        reflect_label.style.cssText = \"padding: 0 10px 0 5px; user-select:none;\";\n        if (this.model.loop_policy == \"once\") {\n            once.checked = true;\n        }\n        else if (this.model.loop_policy == \"loop\") {\n            loop.checked = true;\n        }\n        else {\n            reflect.checked = true;\n        }\n        // Compose everything\n        this.loop_state.appendChild(once);\n        this.loop_state.appendChild(once_label);\n        this.loop_state.appendChild(loop);\n        this.loop_state.appendChild(loop_label);\n        this.loop_state.appendChild(reflect);\n        this.loop_state.appendChild(reflect_label);\n        this.groupEl.appendChild(this.titleEl);\n        this.groupEl.appendChild(this.sliderEl);\n        this.groupEl.appendChild(button_div);\n        if (this.model.show_loop_controls) {\n            this.groupEl.appendChild(this.loop_state);\n        }\n        this.toggle_disable();\n        this.update_css();\n        this.shadow_el.appendChild(this.groupEl);\n        this.set_direction();\n    }\n    set_frame(frame, throttled = true) {\n        this.model.value = frame;\n        this.update_title_and_value();\n        if (throttled) {\n            this.model.value_throttled = frame;\n        }\n        if (this.sliderEl.value != String(frame)) {\n            this.sliderEl.value = String(frame);\n        }\n    }\n    get_loop_state() {\n        const button_group = this.loop_state.state;\n        for (let i = 0; i < button_group.length; i++) {\n            const button = button_group[i];\n            if (button.checked) {\n                return button.value;\n            }\n        }\n        return \"once\";\n    }\n    update_title_and_value() {\n        (0, dom_1.empty)(this.titleEl);\n        const hide_header = this.model.title == null || (this.model.title.length == 0 && !this.model.show_value);\n        this.titleEl.style.display = hide_header ? \"none\" : \"\";\n        if (!hide_header) {\n            this.titleEl.style.visibility = \"visible\";\n            const { title } = this.model;\n            if (title != null && title.length > 0) {\n                if (this.contains_tex_string(title)) {\n                    this.titleEl.innerHTML = `${this.process_tex(title)}`;\n                    if (this.model.show_value) {\n                        this.titleEl.innerHTML += \": \";\n                    }\n                }\n                else {\n                    this.titleEl.textContent = `${title}`;\n                    if (this.model.show_value) {\n                        this.titleEl.textContent += \": \";\n                    }\n                }\n            }\n            if (this.model.show_value) {\n                this.append_value_to_title_el();\n            }\n        }\n        else {\n            this.titleEl.style.visibility = \"hidden\";\n        }\n    }\n    append_value_to_title_el() {\n        this.titleEl.appendChild((0, dom_1.span)({ class: \"pn-player-value\" }, (0, pretty_1.to_string)(this.model.value)));\n    }\n    set_value_align() {\n        switch (this.model.value_align) {\n            case \"start\":\n                this.titleEl.style.textAlign = \"left\";\n                break;\n            case \"center\":\n                this.titleEl.style.textAlign = \"center\";\n                break;\n            case \"end\":\n                this.titleEl.style.textAlign = \"right\";\n                break;\n        }\n    }\n    set_loop_state(state) {\n        const button_group = this.loop_state.state;\n        for (let i = 0; i < button_group.length; i++) {\n            const button = button_group[i];\n            if (button.value == state) {\n                button.checked = true;\n            }\n        }\n    }\n    next_frame() {\n        this.set_frame(Math.min(this.model.end, this.model.value + this.model.step));\n    }\n    previous_frame() {\n        this.set_frame(Math.max(this.model.start, this.model.value - this.model.step));\n    }\n    first_frame() {\n        this.set_frame(this.model.start);\n    }\n    last_frame() {\n        this.set_frame(this.model.end);\n    }\n    updateSpeedButton(button, interval, originalSVG) {\n        const fps = 1000 / interval;\n        button.innerHTML = `${fps.toFixed(1)}<br>fps`;\n        setTimeout(() => {\n            button.innerHTML = originalSVG;\n        }, this.model.preview_duration); // Show for 1.5 seconds\n    }\n    slower_speed() {\n        this.model.interval = Math.round(this.model.interval / 0.7);\n        this.updateSpeedButton(this.slower, this.model.interval, SVG_STRINGS.slower);\n        if (this.model.direction > 0) {\n            this.play_animation();\n        }\n        else if (this.model.direction < 0) {\n            this.reverse_animation();\n        }\n    }\n    faster_speed() {\n        this.model.interval = Math.round(this.model.interval * 0.7);\n        this.updateSpeedButton(this.faster, this.model.interval, SVG_STRINGS.faster);\n        if (this.model.direction > 0) {\n            this.play_animation();\n        }\n        else if (this.model.direction < 0) {\n            this.reverse_animation();\n        }\n    }\n    anim_step_forward() {\n        if (this.model.value < this.model.end) {\n            this.next_frame();\n        }\n        else {\n            const loop_state = this.get_loop_state();\n            if (loop_state == \"loop\") {\n                this.first_frame();\n            }\n            else if (loop_state == \"reflect\") {\n                this.last_frame();\n                this.reverse_animation();\n            }\n            else {\n                this.pause_animation();\n                this.last_frame();\n            }\n        }\n    }\n    anim_step_reverse() {\n        if (this.model.value > this.model.start) {\n            this.previous_frame();\n        }\n        else {\n            const loop_state = this.get_loop_state();\n            if (loop_state == \"loop\") {\n                this.last_frame();\n            }\n            else if (loop_state == \"reflect\") {\n                this.first_frame();\n                this.play_animation();\n            }\n            else {\n                this.pause_animation();\n                this.first_frame();\n            }\n        }\n    }\n    set_direction() {\n        if (this._changing) {\n            return;\n        }\n        else if (this.model.direction === 0) {\n            this.pause_animation();\n        }\n        else if (this.model.direction === 1) {\n            this.play_animation();\n        }\n        else if (this.model.direction === -1) {\n            this.reverse_animation();\n        }\n    }\n    pause_animation() {\n        this._toogle_pause();\n        this._changing = true;\n        this.model.direction = 0;\n        this._changing = false;\n        if (this.timer) {\n            clearInterval(this.timer);\n            this.timer = null;\n        }\n    }\n    play_animation() {\n        this.pause_animation();\n        this._toggle_play();\n        this._changing = true;\n        this.model.direction = 1;\n        this._changing = false;\n        if (!this.timer) {\n            this.timer = setInterval(() => this.anim_step_forward(), this.model.interval);\n        }\n    }\n    reverse_animation() {\n        this.pause_animation();\n        this._toggle_reverse();\n        this._changing = true;\n        this.model.direction = -1;\n        this._changing = false;\n        if (!this.timer) {\n            this.timer = setInterval(() => this.anim_step_reverse(), this.model.interval);\n        }\n    }\n}\nexports.PlayerView = PlayerView;\nPlayerView.__name__ = \"PlayerView\";\nexports.LoopPolicy = (0, kinds_1.Enum)(\"once\", \"loop\", \"reflect\");\nclass Player extends widget_1.Widget {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.Player = Player;\n_a = Player;\nPlayer.__name__ = \"Player\";\nPlayer.__module__ = \"panel.models.widgets\";\n(() => {\n    _a.prototype.default_view = PlayerView;\n    _a.define(({ Bool, Int, Float, List, Str }) => ({\n        direction: [Int, 0],\n        interval: [Int, 500],\n        start: [Int, 0],\n        end: [Int, 10],\n        step: [Int, 1],\n        loop_policy: [exports.LoopPolicy, \"once\"],\n        title: [Str, \"\"],\n        value: [Int, 0],\n        value_align: [Str, \"start\"],\n        value_throttled: [Int, 0],\n        preview_duration: [Int, 1500],\n        show_loop_controls: [Bool, true],\n        show_value: [Bool, true],\n        button_scale: [Float, 1],\n        scale_buttons: [Float, 1],\n        visible_buttons: [List(Str), [\"slower\", \"first\", \"previous\", \"reverse\", \"pause\", \"play\", \"next\", \"last\", \"faster\"]],\n        visible_loop_options: [List(Str), [\"once\", \"loop\", \"reflect\"]],\n    }));\n    _a.override({ width: 400 });\n})();\n//# sourceMappingURL=player.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"PlayerView"},{"type":"named","name":"Player"}],"externals":[],"shims":[]},"code":{"source":"/* models/player.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const kinds_1 = require(\"@bokehjs/core/kinds\");\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const widget_1 = require(\"@bokehjs/models/widgets/widget\");\n    const pretty_1 = require(\"@bokehjs/core/util/pretty\");\n    const SVG_STRINGS = {\n        slower: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-minus\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M5 12l14 0\" /></svg>',\n        first: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-track-prev-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M20.341 4.247l-8 7a1 1 0 0 0 0 1.506l8 7c.647 .565 1.659 .106 1.659 -.753v-14c0 -.86 -1.012 -1.318 -1.659 -.753z\" stroke-width=\"0\" fill=\"currentColor\" /><path d=\"M9.341 4.247l-8 7a1 1 0 0 0 0 1.506l8 7c.647 .565 1.659 .106 1.659 -.753v-14c0 -.86 -1.012 -1.318 -1.659 -.753z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',\n        previous: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-skip-back-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M19.496 4.136l-12 7a1 1 0 0 0 0 1.728l12 7a1 1 0 0 0 1.504 -.864v-14a1 1 0 0 0 -1.504 -.864z\" stroke-width=\"0\" fill=\"currentColor\" /><path d=\"M4 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',\n        reverse: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-play-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"transform: scaleX(-1);\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',\n        pause: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-pause-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M9 4h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h2a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2z\" stroke-width=\"0\" fill=\"currentColor\" /><path d=\"M17 4h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h2a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',\n        play: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-play-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',\n        next: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-skip-forward-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M3 5v14a1 1 0 0 0 1.504 .864l12 -7a1 1 0 0 0 0 -1.728l-12 -7a1 1 0 0 0 -1.504 .864z\" stroke-width=\"0\" fill=\"currentColor\" /><path d=\"M20 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',\n        last: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-track-next-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M2 5v14c0 .86 1.012 1.318 1.659 .753l8 -7a1 1 0 0 0 0 -1.506l-8 -7c-.647 -.565 -1.659 -.106 -1.659 .753z\" stroke-width=\"0\" fill=\"currentColor\" /><path d=\"M13 5v14c0 .86 1.012 1.318 1.659 .753l8 -7a1 1 0 0 0 0 -1.506l-8 -7c-.647 -.565 -1.659 -.106 -1.659 .753z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',\n        faster: '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-plus\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M12 5l0 14\" /><path d=\"M5 12l14 0\" /></svg>',\n    };\n    function press(btn_list) {\n        btn_list.forEach((btn) => btn.style.borderStyle = \"inset\");\n    }\n    function unpress(btn_list) {\n        btn_list.forEach((btn) => btn.style.borderStyle = \"outset\");\n    }\n    class PlayerView extends widget_1.WidgetView {\n        constructor() {\n            super(...arguments);\n            this._changing = false;\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { title, value_align, direction, value, loop_policy, disabled, show_loop_controls, show_value, scale_buttons, visible_buttons, visible_loop_options } = this.model.properties;\n            this.on_change(title, () => this.update_title_and_value());\n            this.on_change(value_align, () => this.set_value_align());\n            this.on_change(direction, () => this.set_direction());\n            this.on_change(value, () => this.update_value());\n            this.on_change(loop_policy, () => this.set_loop_state(this.model.loop_policy));\n            this.on_change(disabled, () => this.toggle_disable());\n            this.on_change(show_loop_controls, () => {\n                if (this.model.show_loop_controls && this.loop_state.parentNode != this.groupEl) {\n                    this.groupEl.appendChild(this.loop_state);\n                }\n                else if (!this.model.show_loop_controls && this.loop_state.parentNode == this.groupEl) {\n                    this.groupEl.removeChild(this.loop_state);\n                }\n            });\n            this.on_change(show_value, () => this.update_title_and_value());\n            this.on_change(scale_buttons, () => this.update_css());\n            this.on_change(visible_buttons, () => this.update_css());\n            this.on_change(visible_loop_options, () => this.update_css());\n        }\n        toggle_disable() {\n            this.sliderEl.disabled = this.model.disabled;\n            for (const el of this.buttonEl.children) {\n                const anyEl = el;\n                anyEl.disabled = this.model.disabled;\n            }\n            for (const el of this.loop_state.children) {\n                if (el.tagName == \"input\") {\n                    const anyEl = el;\n                    anyEl.disabled = this.model.disabled;\n                }\n            }\n        }\n        get_height() {\n            return 250;\n        }\n        update_css() {\n            const button_style_small = `text-align: center; flex-grow: 1; margin: 2px; transform: scale(${this.model.scale_buttons}); max-width: 50px;`;\n            const button_style = `text-align: center; flex-grow: 2; margin: 2px; transform: scale(${this.model.scale_buttons}); max-width: 50px;`;\n            const buttons = {\n                slower: this.slower,\n                first: this.first,\n                previous: this.previous,\n                reverse: this.reverse,\n                pause: this.pause,\n                play: this.play,\n                next: this.next,\n                last: this.last,\n                faster: this.faster,\n            };\n            for (const [name, button] of Object.entries(buttons)) {\n                if (button) {\n                    if (this.model.visible_buttons.includes(name)) {\n                        button.style.display = \"\"; // Reset to default display\n                        if (name === \"slower\" || name === \"faster\") {\n                            button.style.cssText += button_style_small;\n                        }\n                        else {\n                            button.style.cssText += button_style;\n                        }\n                    }\n                    else {\n                        button.style.display = \"none\"; // Hide the button completely\n                    }\n                }\n            }\n            for (const el of this.loop_state.children) {\n                if (el.tagName.toLowerCase() == \"input\") {\n                    const anyEl = el;\n                    if (this.model.visible_loop_options.includes(anyEl.value)) {\n                        anyEl.style.display = \"\";\n                    }\n                    else {\n                        anyEl.style.display = \"none\";\n                    }\n                }\n                else if (el.tagName.toLowerCase() == \"label\") {\n                    const anyEl = el;\n                    if (this.model.visible_loop_options.includes(anyEl.innerHTML.toLowerCase())) {\n                        anyEl.style.display = \"\";\n                    }\n                    else {\n                        anyEl.style.display = \"none\";\n                    }\n                }\n            }\n        }\n        update_value() {\n            if (this.sliderEl != null) {\n                this.sliderEl.min = String(this.model.start);\n                this.sliderEl.max = String(this.model.end);\n                this.sliderEl.value = String(this.model.value);\n            }\n        }\n        render() {\n            super.render();\n            // Layout to group the elements\n            this.groupEl = (0, dom_1.div)();\n            this.groupEl.style.display = \"flex\";\n            this.groupEl.style.flexDirection = \"column\";\n            // Display Value\n            this.titleEl = (0, dom_1.div)();\n            this.titleEl.classList.add(\"pn-player-title\");\n            this.titleEl.style.padding = \"0 5px 0 5px\";\n            this.update_title_and_value();\n            this.set_value_align();\n            // Slider\n            this.sliderEl = document.createElement(\"input\");\n            this.sliderEl.style.width = \"100%\";\n            this.sliderEl.setAttribute(\"type\", \"range\");\n            this.sliderEl.value = String(this.model.value);\n            this.sliderEl.min = String(this.model.start);\n            this.sliderEl.max = String(this.model.end);\n            this.sliderEl.addEventListener(\"input\", (ev) => {\n                this.set_frame(parseInt(ev.target.value), false);\n            });\n            this.sliderEl.addEventListener(\"change\", (ev) => {\n                this.set_frame(parseInt(ev.target.value));\n            });\n            // Buttons\n            const button_div = (0, dom_1.div)();\n            this.buttonEl = button_div;\n            button_div.style.cssText = \"margin: 0 auto; display: flex; padding: 5px; align-items: stretch; justify-content: center; width: 100%;\";\n            this.slower = document.createElement(\"button\");\n            this.slower.classList.add(\"slower\");\n            this.slower.innerHTML = SVG_STRINGS.slower;\n            this.slower.onclick = () => this.slower_speed();\n            button_div.appendChild(this.slower);\n            this.first = document.createElement(\"button\");\n            this.first.classList.add(\"first\");\n            this.first.innerHTML = SVG_STRINGS.first;\n            this.first.onclick = () => this.first_frame();\n            button_div.appendChild(this.first);\n            this.previous = document.createElement(\"button\");\n            this.previous.classList.add(\"previous\");\n            this.previous.innerHTML = SVG_STRINGS.previous;\n            this.previous.onclick = () => this.previous_frame();\n            button_div.appendChild(this.previous);\n            this.reverse = document.createElement(\"button\");\n            this.reverse.classList.add(\"reverse\");\n            this.reverse.innerHTML = SVG_STRINGS.reverse;\n            this.reverse.onclick = () => this.reverse_animation();\n            button_div.appendChild(this.reverse);\n            this.pause = document.createElement(\"button\");\n            this.pause.classList.add(\"pause\");\n            this.pause.innerHTML = SVG_STRINGS.pause;\n            this.pause.onclick = () => this.pause_animation();\n            button_div.appendChild(this.pause);\n            this.play = document.createElement(\"button\");\n            this.play.classList.add(\"play\");\n            this.play.innerHTML = SVG_STRINGS.play;\n            this.play.onclick = () => this.play_animation();\n            button_div.appendChild(this.play);\n            this.next = document.createElement(\"button\");\n            this.next.classList.add(\"next\");\n            this.next.innerHTML = SVG_STRINGS.next;\n            this.next.onclick = () => this.next_frame();\n            button_div.appendChild(this.next);\n            this.last = document.createElement(\"button\");\n            this.last.classList.add(\"last\");\n            this.last.innerHTML = SVG_STRINGS.last;\n            this.last.onclick = () => this.last_frame();\n            button_div.appendChild(this.last);\n            this.faster = document.createElement(\"button\");\n            this.faster.classList.add(\"faster\");\n            this.faster.innerHTML = SVG_STRINGS.faster;\n            this.faster.onclick = () => this.faster_speed();\n            button_div.appendChild(this.faster);\n            // toggle\n            this._toggle_reverse = () => {\n                unpress([this.pause, this.play]);\n                press([this.reverse]);\n            };\n            this._toogle_pause = () => {\n                unpress([this.reverse, this.play]);\n                press([this.pause]);\n            };\n            this._toggle_play = () => {\n                unpress([this.reverse, this.pause]);\n                press([this.play]);\n            };\n            // Loop control\n            this.loop_state = document.createElement(\"form\");\n            this.loop_state.style.cssText = \"margin: 0 auto; display: table\";\n            const once = document.createElement(\"input\");\n            once.classList.add(\"once\");\n            once.type = \"radio\";\n            once.value = \"once\";\n            once.name = \"state\";\n            const once_label = document.createElement(\"label\");\n            once_label.innerHTML = \"Once\";\n            once_label.classList.add(\"once-label\");\n            once_label.style.cssText = \"padding: 0 10px 0 5px; user-select:none;\";\n            const loop = document.createElement(\"input\");\n            loop.classList.add(\"loop\");\n            loop.setAttribute(\"type\", \"radio\");\n            loop.setAttribute(\"value\", \"loop\");\n            loop.setAttribute(\"name\", \"state\");\n            const loop_label = document.createElement(\"label\");\n            loop_label.classList.add(\"loop-label\");\n            loop_label.innerHTML = \"Loop\";\n            loop_label.style.cssText = \"padding: 0 10px 0 5px; user-select:none;\";\n            const reflect = document.createElement(\"input\");\n            reflect.classList.add(\"reflect\");\n            reflect.setAttribute(\"type\", \"radio\");\n            reflect.setAttribute(\"value\", \"reflect\");\n            reflect.setAttribute(\"name\", \"state\");\n            const reflect_label = document.createElement(\"label\");\n            loop_label.classList.add(\"reflect-label\");\n            reflect_label.innerHTML = \"Reflect\";\n            reflect_label.style.cssText = \"padding: 0 10px 0 5px; user-select:none;\";\n            if (this.model.loop_policy == \"once\") {\n                once.checked = true;\n            }\n            else if (this.model.loop_policy == \"loop\") {\n                loop.checked = true;\n            }\n            else {\n                reflect.checked = true;\n            }\n            // Compose everything\n            this.loop_state.appendChild(once);\n            this.loop_state.appendChild(once_label);\n            this.loop_state.appendChild(loop);\n            this.loop_state.appendChild(loop_label);\n            this.loop_state.appendChild(reflect);\n            this.loop_state.appendChild(reflect_label);\n            this.groupEl.appendChild(this.titleEl);\n            this.groupEl.appendChild(this.sliderEl);\n            this.groupEl.appendChild(button_div);\n            if (this.model.show_loop_controls) {\n                this.groupEl.appendChild(this.loop_state);\n            }\n            this.toggle_disable();\n            this.update_css();\n            this.shadow_el.appendChild(this.groupEl);\n            this.set_direction();\n        }\n        set_frame(frame, throttled = true) {\n            this.model.value = frame;\n            this.update_title_and_value();\n            if (throttled) {\n                this.model.value_throttled = frame;\n            }\n            if (this.sliderEl.value != String(frame)) {\n                this.sliderEl.value = String(frame);\n            }\n        }\n        get_loop_state() {\n            const button_group = this.loop_state.state;\n            for (let i = 0; i < button_group.length; i++) {\n                const button = button_group[i];\n                if (button.checked) {\n                    return button.value;\n                }\n            }\n            return \"once\";\n        }\n        update_title_and_value() {\n            (0, dom_1.empty)(this.titleEl);\n            const hide_header = this.model.title == null || (this.model.title.length == 0 && !this.model.show_value);\n            this.titleEl.style.display = hide_header ? \"none\" : \"\";\n            if (!hide_header) {\n                this.titleEl.style.visibility = \"visible\";\n                const { title } = this.model;\n                if (title != null && title.length > 0) {\n                    if (this.contains_tex_string(title)) {\n                        this.titleEl.innerHTML = `${this.process_tex(title)}`;\n                        if (this.model.show_value) {\n                            this.titleEl.innerHTML += \": \";\n                        }\n                    }\n                    else {\n                        this.titleEl.textContent = `${title}`;\n                        if (this.model.show_value) {\n                            this.titleEl.textContent += \": \";\n                        }\n                    }\n                }\n                if (this.model.show_value) {\n                    this.append_value_to_title_el();\n                }\n            }\n            else {\n                this.titleEl.style.visibility = \"hidden\";\n            }\n        }\n        append_value_to_title_el() {\n            this.titleEl.appendChild((0, dom_1.span)({ class: \"pn-player-value\" }, (0, pretty_1.to_string)(this.model.value)));\n        }\n        set_value_align() {\n            switch (this.model.value_align) {\n                case \"start\":\n                    this.titleEl.style.textAlign = \"left\";\n                    break;\n                case \"center\":\n                    this.titleEl.style.textAlign = \"center\";\n                    break;\n                case \"end\":\n                    this.titleEl.style.textAlign = \"right\";\n                    break;\n            }\n        }\n        set_loop_state(state) {\n            const button_group = this.loop_state.state;\n            for (let i = 0; i < button_group.length; i++) {\n                const button = button_group[i];\n                if (button.value == state) {\n                    button.checked = true;\n                }\n            }\n        }\n        next_frame() {\n            this.set_frame(Math.min(this.model.end, this.model.value + this.model.step));\n        }\n        previous_frame() {\n            this.set_frame(Math.max(this.model.start, this.model.value - this.model.step));\n        }\n        first_frame() {\n            this.set_frame(this.model.start);\n        }\n        last_frame() {\n            this.set_frame(this.model.end);\n        }\n        updateSpeedButton(button, interval, originalSVG) {\n            const fps = 1000 / interval;\n            button.innerHTML = `${fps.toFixed(1)}<br>fps`;\n            setTimeout(() => {\n                button.innerHTML = originalSVG;\n            }, this.model.preview_duration); // Show for 1.5 seconds\n        }\n        slower_speed() {\n            this.model.interval = Math.round(this.model.interval / 0.7);\n            this.updateSpeedButton(this.slower, this.model.interval, SVG_STRINGS.slower);\n            if (this.model.direction > 0) {\n                this.play_animation();\n            }\n            else if (this.model.direction < 0) {\n                this.reverse_animation();\n            }\n        }\n        faster_speed() {\n            this.model.interval = Math.round(this.model.interval * 0.7);\n            this.updateSpeedButton(this.faster, this.model.interval, SVG_STRINGS.faster);\n            if (this.model.direction > 0) {\n                this.play_animation();\n            }\n            else if (this.model.direction < 0) {\n                this.reverse_animation();\n            }\n        }\n        anim_step_forward() {\n            if (this.model.value < this.model.end) {\n                this.next_frame();\n            }\n            else {\n                const loop_state = this.get_loop_state();\n                if (loop_state == \"loop\") {\n                    this.first_frame();\n                }\n                else if (loop_state == \"reflect\") {\n                    this.last_frame();\n                    this.reverse_animation();\n                }\n                else {\n                    this.pause_animation();\n                    this.last_frame();\n                }\n            }\n        }\n        anim_step_reverse() {\n            if (this.model.value > this.model.start) {\n                this.previous_frame();\n            }\n            else {\n                const loop_state = this.get_loop_state();\n                if (loop_state == \"loop\") {\n                    this.last_frame();\n                }\n                else if (loop_state == \"reflect\") {\n                    this.first_frame();\n                    this.play_animation();\n                }\n                else {\n                    this.pause_animation();\n                    this.first_frame();\n                }\n            }\n        }\n        set_direction() {\n            if (this._changing) {\n                return;\n            }\n            else if (this.model.direction === 0) {\n                this.pause_animation();\n            }\n            else if (this.model.direction === 1) {\n                this.play_animation();\n            }\n            else if (this.model.direction === -1) {\n                this.reverse_animation();\n            }\n        }\n        pause_animation() {\n            this._toogle_pause();\n            this._changing = true;\n            this.model.direction = 0;\n            this._changing = false;\n            if (this.timer) {\n                clearInterval(this.timer);\n                this.timer = null;\n            }\n        }\n        play_animation() {\n            this.pause_animation();\n            this._toggle_play();\n            this._changing = true;\n            this.model.direction = 1;\n            this._changing = false;\n            if (!this.timer) {\n                this.timer = setInterval(() => this.anim_step_forward(), this.model.interval);\n            }\n        }\n        reverse_animation() {\n            this.pause_animation();\n            this._toggle_reverse();\n            this._changing = true;\n            this.model.direction = -1;\n            this._changing = false;\n            if (!this.timer) {\n                this.timer = setInterval(() => this.anim_step_reverse(), this.model.interval);\n            }\n        }\n    }\n    exports.PlayerView = PlayerView;\n    PlayerView.__name__ = \"PlayerView\";\n    exports.LoopPolicy = (0, kinds_1.Enum)(\"once\", \"loop\", \"reflect\");\n    class Player extends widget_1.Widget {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.Player = Player;\n    _a = Player;\n    Player.__name__ = \"Player\";\n    Player.__module__ = \"panel.models.widgets\";\n    (() => {\n        _a.prototype.default_view = PlayerView;\n        _a.define(({ Bool, Int, Float, List, Str }) => ({\n            direction: [Int, 0],\n            interval: [Int, 500],\n            start: [Int, 0],\n            end: [Int, 10],\n            step: [Int, 1],\n            loop_policy: [exports.LoopPolicy, \"once\"],\n            title: [Str, \"\"],\n            value: [Int, 0],\n            value_align: [Str, \"start\"],\n            value_throttled: [Int, 0],\n            preview_duration: [Int, 1500],\n            show_loop_controls: [Bool, true],\n            show_value: [Bool, true],\n            button_scale: [Float, 1],\n            scale_buttons: [Float, 1],\n            visible_buttons: [List(Str), [\"slower\", \"first\", \"previous\", \"reverse\", \"pause\", \"play\", \"next\", \"last\", \"faster\"]],\n            visible_loop_options: [List(Str), [\"once\", \"loop\", \"reflect\"]],\n        }));\n        _a.override({ width: 400 });\n    })();\n}\n","min_source":"function _(t,e,s,i,l){var o;i();const n=t(\"@bokehjs/core/kinds\"),a=t(\"@bokehjs/core/dom\"),r=t(\"@bokehjs/models/widgets/widget\"),h=t(\"@bokehjs/core/util/pretty\"),d='<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-minus\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M5 12l14 0\" /></svg>',p='<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-track-prev-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M20.341 4.247l-8 7a1 1 0 0 0 0 1.506l8 7c.647 .565 1.659 .106 1.659 -.753v-14c0 -.86 -1.012 -1.318 -1.659 -.753z\" stroke-width=\"0\" fill=\"currentColor\" /><path d=\"M9.341 4.247l-8 7a1 1 0 0 0 0 1.506l8 7c.647 .565 1.659 .106 1.659 -.753v-14c0 -.86 -1.012 -1.318 -1.659 -.753z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',c='<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-skip-back-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M19.496 4.136l-12 7a1 1 0 0 0 0 1.728l12 7a1 1 0 0 0 1.504 -.864v-14a1 1 0 0 0 -1.504 -.864z\" stroke-width=\"0\" fill=\"currentColor\" /><path d=\"M4 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',u='<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-play-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"transform: scaleX(-1);\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',_='<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-pause-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M9 4h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h2a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2z\" stroke-width=\"0\" fill=\"currentColor\" /><path d=\"M17 4h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h2a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',m='<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-play-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',v='<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-skip-forward-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M3 5v14a1 1 0 0 0 1.504 .864l12 -7a1 1 0 0 0 0 -1.728l-12 -7a1 1 0 0 0 -1.504 .864z\" stroke-width=\"0\" fill=\"currentColor\" /><path d=\"M20 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',g='<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-player-track-next-filled\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M2 5v14c0 .86 1.012 1.318 1.659 .753l8 -7a1 1 0 0 0 0 -1.506l-8 -7c-.647 -.565 -1.659 -.106 -1.659 .753z\" stroke-width=\"0\" fill=\"currentColor\" /><path d=\"M13 5v14c0 .86 1.012 1.318 1.659 .753l8 -7a1 1 0 0 0 0 -1.506l-8 -7c-.647 -.565 -1.659 -.106 -1.659 .753z\" stroke-width=\"0\" fill=\"currentColor\" /></svg>',f='<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-plus\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M12 5l0 14\" /><path d=\"M5 12l14 0\" /></svg>';function w(t){t.forEach((t=>t.style.borderStyle=\"inset\"))}function y(t){t.forEach((t=>t.style.borderStyle=\"outset\"))}class b extends r.WidgetView{constructor(){super(...arguments),this._changing=!1}connect_signals(){super.connect_signals();const{title:t,value_align:e,direction:s,value:i,loop_policy:l,disabled:o,show_loop_controls:n,show_value:a,scale_buttons:r,visible_buttons:h,visible_loop_options:d}=this.model.properties;this.on_change(t,(()=>this.update_title_and_value())),this.on_change(e,(()=>this.set_value_align())),this.on_change(s,(()=>this.set_direction())),this.on_change(i,(()=>this.update_value())),this.on_change(l,(()=>this.set_loop_state(this.model.loop_policy))),this.on_change(o,(()=>this.toggle_disable())),this.on_change(n,(()=>{this.model.show_loop_controls&&this.loop_state.parentNode!=this.groupEl?this.groupEl.appendChild(this.loop_state):this.model.show_loop_controls||this.loop_state.parentNode!=this.groupEl||this.groupEl.removeChild(this.loop_state)})),this.on_change(a,(()=>this.update_title_and_value())),this.on_change(r,(()=>this.update_css())),this.on_change(h,(()=>this.update_css())),this.on_change(d,(()=>this.update_css()))}toggle_disable(){this.sliderEl.disabled=this.model.disabled;for(const t of this.buttonEl.children){t.disabled=this.model.disabled}for(const t of this.loop_state.children)if(\"input\"==t.tagName){t.disabled=this.model.disabled}}get_height(){return 250}update_css(){const t=`text-align: center; flex-grow: 1; margin: 2px; transform: scale(${this.model.scale_buttons}); max-width: 50px;`,e=`text-align: center; flex-grow: 2; margin: 2px; transform: scale(${this.model.scale_buttons}); max-width: 50px;`,s={slower:this.slower,first:this.first,previous:this.previous,reverse:this.reverse,pause:this.pause,play:this.play,next:this.next,last:this.last,faster:this.faster};for(const[i,l]of Object.entries(s))l&&(this.model.visible_buttons.includes(i)?(l.style.display=\"\",l.style.cssText+=\"slower\"===i||\"faster\"===i?t:e):l.style.display=\"none\");for(const t of this.loop_state.children)if(\"input\"==t.tagName.toLowerCase()){const e=t;this.model.visible_loop_options.includes(e.value)?e.style.display=\"\":e.style.display=\"none\"}else if(\"label\"==t.tagName.toLowerCase()){const e=t;this.model.visible_loop_options.includes(e.innerHTML.toLowerCase())?e.style.display=\"\":e.style.display=\"none\"}}update_value(){null!=this.sliderEl&&(this.sliderEl.min=String(this.model.start),this.sliderEl.max=String(this.model.end),this.sliderEl.value=String(this.model.value))}render(){super.render(),this.groupEl=(0,a.div)(),this.groupEl.style.display=\"flex\",this.groupEl.style.flexDirection=\"column\",this.titleEl=(0,a.div)(),this.titleEl.classList.add(\"pn-player-title\"),this.titleEl.style.padding=\"0 5px 0 5px\",this.update_title_and_value(),this.set_value_align(),this.sliderEl=document.createElement(\"input\"),this.sliderEl.style.width=\"100%\",this.sliderEl.setAttribute(\"type\",\"range\"),this.sliderEl.value=String(this.model.value),this.sliderEl.min=String(this.model.start),this.sliderEl.max=String(this.model.end),this.sliderEl.addEventListener(\"input\",(t=>{this.set_frame(parseInt(t.target.value),!1)})),this.sliderEl.addEventListener(\"change\",(t=>{this.set_frame(parseInt(t.target.value))}));const t=(0,a.div)();this.buttonEl=t,t.style.cssText=\"margin: 0 auto; display: flex; padding: 5px; align-items: stretch; justify-content: center; width: 100%;\",this.slower=document.createElement(\"button\"),this.slower.classList.add(\"slower\"),this.slower.innerHTML=d,this.slower.onclick=()=>this.slower_speed(),t.appendChild(this.slower),this.first=document.createElement(\"button\"),this.first.classList.add(\"first\"),this.first.innerHTML=p,this.first.onclick=()=>this.first_frame(),t.appendChild(this.first),this.previous=document.createElement(\"button\"),this.previous.classList.add(\"previous\"),this.previous.innerHTML=c,this.previous.onclick=()=>this.previous_frame(),t.appendChild(this.previous),this.reverse=document.createElement(\"button\"),this.reverse.classList.add(\"reverse\"),this.reverse.innerHTML=u,this.reverse.onclick=()=>this.reverse_animation(),t.appendChild(this.reverse),this.pause=document.createElement(\"button\"),this.pause.classList.add(\"pause\"),this.pause.innerHTML=_,this.pause.onclick=()=>this.pause_animation(),t.appendChild(this.pause),this.play=document.createElement(\"button\"),this.play.classList.add(\"play\"),this.play.innerHTML=m,this.play.onclick=()=>this.play_animation(),t.appendChild(this.play),this.next=document.createElement(\"button\"),this.next.classList.add(\"next\"),this.next.innerHTML=v,this.next.onclick=()=>this.next_frame(),t.appendChild(this.next),this.last=document.createElement(\"button\"),this.last.classList.add(\"last\"),this.last.innerHTML=g,this.last.onclick=()=>this.last_frame(),t.appendChild(this.last),this.faster=document.createElement(\"button\"),this.faster.classList.add(\"faster\"),this.faster.innerHTML=f,this.faster.onclick=()=>this.faster_speed(),t.appendChild(this.faster),this._toggle_reverse=()=>{y([this.pause,this.play]),w([this.reverse])},this._toogle_pause=()=>{y([this.reverse,this.play]),w([this.pause])},this._toggle_play=()=>{y([this.reverse,this.pause]),w([this.play])},this.loop_state=document.createElement(\"form\"),this.loop_state.style.cssText=\"margin: 0 auto; display: table\";const e=document.createElement(\"input\");e.classList.add(\"once\"),e.type=\"radio\",e.value=\"once\",e.name=\"state\";const s=document.createElement(\"label\");s.innerHTML=\"Once\",s.classList.add(\"once-label\"),s.style.cssText=\"padding: 0 10px 0 5px; user-select:none;\";const i=document.createElement(\"input\");i.classList.add(\"loop\"),i.setAttribute(\"type\",\"radio\"),i.setAttribute(\"value\",\"loop\"),i.setAttribute(\"name\",\"state\");const l=document.createElement(\"label\");l.classList.add(\"loop-label\"),l.innerHTML=\"Loop\",l.style.cssText=\"padding: 0 10px 0 5px; user-select:none;\";const o=document.createElement(\"input\");o.classList.add(\"reflect\"),o.setAttribute(\"type\",\"radio\"),o.setAttribute(\"value\",\"reflect\"),o.setAttribute(\"name\",\"state\");const n=document.createElement(\"label\");l.classList.add(\"reflect-label\"),n.innerHTML=\"Reflect\",n.style.cssText=\"padding: 0 10px 0 5px; user-select:none;\",\"once\"==this.model.loop_policy?e.checked=!0:\"loop\"==this.model.loop_policy?i.checked=!0:o.checked=!0,this.loop_state.appendChild(e),this.loop_state.appendChild(s),this.loop_state.appendChild(i),this.loop_state.appendChild(l),this.loop_state.appendChild(o),this.loop_state.appendChild(n),this.groupEl.appendChild(this.titleEl),this.groupEl.appendChild(this.sliderEl),this.groupEl.appendChild(t),this.model.show_loop_controls&&this.groupEl.appendChild(this.loop_state),this.toggle_disable(),this.update_css(),this.shadow_el.appendChild(this.groupEl),this.set_direction()}set_frame(t,e=!0){this.model.value=t,this.update_title_and_value(),e&&(this.model.value_throttled=t),this.sliderEl.value!=String(t)&&(this.sliderEl.value=String(t))}get_loop_state(){const t=this.loop_state.state;for(let e=0;e<t.length;e++){const s=t[e];if(s.checked)return s.value}return\"once\"}update_title_and_value(){(0,a.empty)(this.titleEl);const t=null==this.model.title||0==this.model.title.length&&!this.model.show_value;if(this.titleEl.style.display=t?\"none\":\"\",t)this.titleEl.style.visibility=\"hidden\";else{this.titleEl.style.visibility=\"visible\";const{title:t}=this.model;null!=t&&t.length>0&&(this.contains_tex_string(t)?(this.titleEl.innerHTML=`${this.process_tex(t)}`,this.model.show_value&&(this.titleEl.innerHTML+=\": \")):(this.titleEl.textContent=`${t}`,this.model.show_value&&(this.titleEl.textContent+=\": \"))),this.model.show_value&&this.append_value_to_title_el()}}append_value_to_title_el(){this.titleEl.appendChild((0,a.span)({class:\"pn-player-value\"},(0,h.to_string)(this.model.value)))}set_value_align(){switch(this.model.value_align){case\"start\":this.titleEl.style.textAlign=\"left\";break;case\"center\":this.titleEl.style.textAlign=\"center\";break;case\"end\":this.titleEl.style.textAlign=\"right\"}}set_loop_state(t){const e=this.loop_state.state;for(let s=0;s<e.length;s++){const i=e[s];i.value==t&&(i.checked=!0)}}next_frame(){this.set_frame(Math.min(this.model.end,this.model.value+this.model.step))}previous_frame(){this.set_frame(Math.max(this.model.start,this.model.value-this.model.step))}first_frame(){this.set_frame(this.model.start)}last_frame(){this.set_frame(this.model.end)}updateSpeedButton(t,e,s){const i=1e3/e;t.innerHTML=`${i.toFixed(1)}<br>fps`,setTimeout((()=>{t.innerHTML=s}),this.model.preview_duration)}slower_speed(){this.model.interval=Math.round(this.model.interval/.7),this.updateSpeedButton(this.slower,this.model.interval,d),this.model.direction>0?this.play_animation():this.model.direction<0&&this.reverse_animation()}faster_speed(){this.model.interval=Math.round(.7*this.model.interval),this.updateSpeedButton(this.faster,this.model.interval,f),this.model.direction>0?this.play_animation():this.model.direction<0&&this.reverse_animation()}anim_step_forward(){if(this.model.value<this.model.end)this.next_frame();else{const t=this.get_loop_state();\"loop\"==t?this.first_frame():\"reflect\"==t?(this.last_frame(),this.reverse_animation()):(this.pause_animation(),this.last_frame())}}anim_step_reverse(){if(this.model.value>this.model.start)this.previous_frame();else{const t=this.get_loop_state();\"loop\"==t?this.last_frame():\"reflect\"==t?(this.first_frame(),this.play_animation()):(this.pause_animation(),this.first_frame())}}set_direction(){this._changing||(0===this.model.direction?this.pause_animation():1===this.model.direction?this.play_animation():-1===this.model.direction&&this.reverse_animation())}pause_animation(){this._toogle_pause(),this._changing=!0,this.model.direction=0,this._changing=!1,this.timer&&(clearInterval(this.timer),this.timer=null)}play_animation(){this.pause_animation(),this._toggle_play(),this._changing=!0,this.model.direction=1,this._changing=!1,this.timer||(this.timer=setInterval((()=>this.anim_step_forward()),this.model.interval))}reverse_animation(){this.pause_animation(),this._toggle_reverse(),this._changing=!0,this.model.direction=-1,this._changing=!1,this.timer||(this.timer=setInterval((()=>this.anim_step_reverse()),this.model.interval))}}s.PlayerView=b,b.__name__=\"PlayerView\",s.LoopPolicy=(0,n.Enum)(\"once\",\"loop\",\"reflect\");class k extends r.Widget{constructor(t){super(t)}}s.Player=k,o=k,k.__name__=\"Player\",k.__module__=\"panel.models.widgets\",o.prototype.default_view=b,o.define((({Bool:t,Int:e,Float:i,List:l,Str:o})=>({direction:[e,0],interval:[e,500],start:[e,0],end:[e,10],step:[e,1],loop_policy:[s.LoopPolicy,\"once\"],title:[o,\"\"],value:[e,0],value_align:[o,\"start\"],value_throttled:[e,0],preview_duration:[e,1500],show_loop_controls:[t,!0],show_value:[t,!0],button_scale:[i,1],scale_buttons:[i,1],visible_buttons:[l(o),[\"slower\",\"first\",\"previous\",\"reverse\",\"pause\",\"play\",\"next\",\"last\",\"faster\"]],visible_loop_options:[l(o),[\"once\",\"loop\",\"reflect\"]]}))),o.override({width:400})}\n//# sourceMappingURL=player.min.js.map","min_map":"{\"version\":3,\"file\":\"player.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"kinds_1\",\"dom_1\",\"widget_1\",\"pretty_1\",\"SVG_STRINGS\",\"press\",\"btn_list\",\"forEach\",\"btn\",\"style\",\"borderStyle\",\"unpress\",\"PlayerView\",\"WidgetView\",\"constructor\",\"super\",\"arguments\",\"this\",\"_changing\",\"connect_signals\",\"title\",\"value_align\",\"direction\",\"value\",\"loop_policy\",\"disabled\",\"show_loop_controls\",\"show_value\",\"scale_buttons\",\"visible_buttons\",\"visible_loop_options\",\"model\",\"properties\",\"on_change\",\"update_title_and_value\",\"set_value_align\",\"set_direction\",\"update_value\",\"set_loop_state\",\"toggle_disable\",\"loop_state\",\"parentNode\",\"groupEl\",\"appendChild\",\"removeChild\",\"update_css\",\"sliderEl\",\"el\",\"buttonEl\",\"children\",\"tagName\",\"get_height\",\"button_style_small\",\"button_style\",\"buttons\",\"slower\",\"first\",\"previous\",\"reverse\",\"pause\",\"play\",\"next\",\"last\",\"faster\",\"name\",\"button\",\"Object\",\"entries\",\"includes\",\"display\",\"cssText\",\"toLowerCase\",\"anyEl\",\"innerHTML\",\"min\",\"String\",\"start\",\"max\",\"end\",\"render\",\"div\",\"flexDirection\",\"titleEl\",\"classList\",\"add\",\"padding\",\"document\",\"createElement\",\"width\",\"setAttribute\",\"addEventListener\",\"ev\",\"set_frame\",\"parseInt\",\"target\",\"button_div\",\"onclick\",\"slower_speed\",\"first_frame\",\"previous_frame\",\"reverse_animation\",\"pause_animation\",\"play_animation\",\"next_frame\",\"last_frame\",\"faster_speed\",\"_toggle_reverse\",\"_toogle_pause\",\"_toggle_play\",\"once\",\"type\",\"once_label\",\"loop\",\"loop_label\",\"reflect\",\"reflect_label\",\"checked\",\"shadow_el\",\"frame\",\"throttled\",\"value_throttled\",\"get_loop_state\",\"button_group\",\"state\",\"i\",\"length\",\"empty\",\"hide_header\",\"visibility\",\"contains_tex_string\",\"process_tex\",\"textContent\",\"append_value_to_title_el\",\"span\",\"class\",\"to_string\",\"textAlign\",\"Math\",\"step\",\"updateSpeedButton\",\"interval\",\"originalSVG\",\"fps\",\"toFixed\",\"setTimeout\",\"preview_duration\",\"round\",\"anim_step_forward\",\"anim_step_reverse\",\"timer\",\"clearInterval\",\"setInterval\",\"__name__\",\"LoopPolicy\",\"Enum\",\"Player\",\"Widget\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Bool\",\"Int\",\"Float\",\"List\",\"Str\",\"button_scale\",\"override\"],\"sources\":[\"0\"],\"mappings\":\"AAAuB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACpE,IAAIC,EACJF,IACA,MAAMG,EAAUN,EAAQ,uBAClBO,EAAQP,EAAQ,qBAChBQ,EAAWR,EAAQ,kCACnBS,EAAWT,EAAQ,6BACnBU,EACM,mTADNA,EAEK,knBAFLA,EAGQ,ykBAHRA,EAIO,6cAJPA,EAKK,yiBALLA,EAMI,8aANJA,EAOI,okBAPJA,EAQI,omBARJA,EASM,yUAEZ,SAASC,EAAMC,GACXA,EAASC,SAASC,GAAQA,EAAIC,MAAMC,YAAc,SACtD,CACA,SAASC,EAAQL,GACbA,EAASC,SAASC,GAAQA,EAAIC,MAAMC,YAAc,UACtD,CACA,MAAME,UAAmBV,EAASW,WAC9B,WAAAC,GACIC,SAASC,WACTC,KAAKC,WAAY,CACrB,CACA,eAAAC,GACIJ,MAAMI,kBACN,MAAMC,MAAEA,EAAKC,YAAEA,EAAWC,UAAEA,EAASC,MAAEA,EAAKC,YAAEA,EAAWC,SAAEA,EAAQC,mBAAEA,EAAkBC,WAAEA,EAAUC,cAAEA,EAAaC,gBAAEA,EAAeC,qBAAEA,GAAyBb,KAAKc,MAAMC,WACzKf,KAAKgB,UAAUb,GAAO,IAAMH,KAAKiB,2BACjCjB,KAAKgB,UAAUZ,GAAa,IAAMJ,KAAKkB,oBACvClB,KAAKgB,UAAUX,GAAW,IAAML,KAAKmB,kBACrCnB,KAAKgB,UAAUV,GAAO,IAAMN,KAAKoB,iBACjCpB,KAAKgB,UAAUT,GAAa,IAAMP,KAAKqB,eAAerB,KAAKc,MAAMP,eACjEP,KAAKgB,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wI,EAAO,GACvBvI,gBAAiB,CAACwI,EAAKC,GAAM,CAAC,SAAU,QAAS,WAAY,UAAW,QAAS,OAAQ,OAAQ,OAAQ,WACzGxI,qBAAsB,CAACuI,EAAKC,GAAM,CAAC,OAAQ,OAAQ,gBAEvDvK,EAAGyK,SAAS,CAAEhF,MAAO,KAE7B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/echarts.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/echarts.js","canonical":"models/echarts","resolution":"ESM","id":"1da56f3c52","hash":"1da56f3c520471c257dcf1c6b7860c87fadab99207f4914d30a64fc9191589ad","source":"\"use strict\";\nvar _a, _b;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ECharts = exports.EChartsView = exports.EChartsEvent = void 0;\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst event_to_object_1 = require(\"./event-to-object\");\nconst layout_1 = require(\"./layout\");\nconst util_1 = require(\"./util\");\nconst mouse_events = [\n    \"click\", \"dblclick\", \"mousedown\", \"mousemove\", \"mouseup\", \"mouseover\", \"mouseout\",\n    \"globalout\", \"contextmenu\",\n];\nconst events = [\n    \"highlight\", \"downplay\", \"selectchanged\", \"legendselectchangedEvent\", \"legendselected\",\n    \"legendunselected\", \"legendselectall\", \"legendinverseselect\", \"legendscroll\", \"datazoom\",\n    \"datarangeselected\", \"timelineplaychanged\", \"restore\", \"dataviewchanged\", \"magictypechanged\",\n    \"geoselectchanged\", \"geoselected\", \"geounselected\", \"axisareaselected\", \"brush\", \"brushEnd\",\n    \"rushselected\", \"globalcursortaken\", \"rendered\", \"finished\",\n];\nconst all_events = mouse_events.concat(events);\nclass EChartsEvent extends bokeh_events_1.ModelEvent {\n    constructor(type, data, query) {\n        super();\n        this.type = type;\n        this.data = data;\n        this.query = query;\n    }\n    get event_values() {\n        return { model: this.origin, type: this.type, data: this.data, query: this.query };\n    }\n}\nexports.EChartsEvent = EChartsEvent;\n_a = EChartsEvent;\nEChartsEvent.__name__ = \"EChartsEvent\";\n(() => {\n    _a.prototype.event_name = \"echarts_event\";\n})();\nclass EChartsView extends layout_1.HTMLBoxView {\n    constructor() {\n        super(...arguments);\n        this._callbacks = [];\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { width, height, renderer, theme, event_config, js_events, data } = this.model.properties;\n        this.on_change(data, () => this._plot());\n        this.on_change([width, height], () => this._resize());\n        this.on_change([theme, renderer], () => {\n            this.render();\n            this._chart.resize();\n        });\n        this.on_change([event_config, js_events], () => this._subscribe());\n    }\n    render() {\n        if (this._chart != null) {\n            try {\n                window.echarts.dispose(this._chart);\n            }\n            catch (e) { }\n        }\n        super.render();\n        this.container = (0, dom_1.div)({ style: { height: \"100%\", width: \"100%\" } });\n        const config = { width: this.model.width, height: this.model.height, renderer: this.model.renderer };\n        this._chart = window.echarts.init(this.container, this.model.theme, config);\n        this._plot();\n        this._subscribe();\n        this.shadow_el.append(this.container);\n    }\n    remove() {\n        super.remove();\n        if (this._chart != null) {\n            window.echarts.dispose(this._chart);\n        }\n    }\n    after_layout() {\n        super.after_layout();\n        if (this._chart != null) {\n            this._chart.resize();\n        }\n    }\n    _plot() {\n        if (window.echarts == null) {\n            return;\n        }\n        const data = (0, util_1.transformJsPlaceholders)(this.model.data);\n        this._chart.setOption(data, this.model.options);\n    }\n    _resize() {\n        this._chart.resize({ width: this.model.width, height: this.model.height });\n    }\n    _subscribe() {\n        if (window.echarts == null) {\n            return;\n        }\n        for (const [event_type, callback] of this._callbacks) {\n            this._chart.off(event_type, callback);\n        }\n        this._callbacks = [];\n        for (const event_type in this.model.event_config) {\n            if (!all_events.includes(event_type)) {\n                console.warn(`Could not subscribe to unknown Echarts event: ${event_type}.`);\n                continue;\n            }\n            const queries = this.model.event_config[event_type];\n            for (const query of queries) {\n                const callback = (event) => {\n                    const processed = { ...event };\n                    processed.event = (0, event_to_object_1.serializeEvent)(event.event?.event);\n                    const serialized = JSON.parse(JSON.stringify(processed));\n                    this.model.trigger_event(new EChartsEvent(event_type, serialized, query));\n                };\n                if (query == null) {\n                    this._chart.on(event_type, query, callback);\n                }\n                else {\n                    this._chart.on(event_type, callback);\n                }\n                this._callbacks.push([event_type, callback]);\n            }\n        }\n        for (const event_type in this.model.js_events) {\n            if (!all_events.includes(event_type)) {\n                console.warn(`Could not subscribe to unknown Echarts event: ${event_type}.`);\n                continue;\n            }\n            const handlers = this.model.js_events[event_type];\n            for (const handler of handlers) {\n                const callback = (event) => {\n                    handler.callback.execute(this._chart, event);\n                };\n                if (\"query\" in handler) {\n                    this._chart.on(event_type, handler.query, callback);\n                }\n                else {\n                    this._chart.on(event_type, callback);\n                }\n                this._callbacks.push([event_type, callback]);\n            }\n        }\n    }\n}\nexports.EChartsView = EChartsView;\nEChartsView.__name__ = \"EChartsView\";\nclass ECharts extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.ECharts = ECharts;\n_b = ECharts;\nECharts.__name__ = \"ECharts\";\nECharts.__module__ = \"panel.models.echarts\";\n(() => {\n    _b.prototype.default_view = EChartsView;\n    _b.define(({ Any, Str }) => ({\n        data: [Any, {}],\n        options: [Any, {}],\n        event_config: [Any, {}],\n        js_events: [Any, {}],\n        theme: [Str, \"default\"],\n        renderer: [Str, \"canvas\"],\n    }));\n})();\n//# sourceMappingURL=echarts.js.map\n","type":"js","dependency_paths":[["./event-to-object","/home/runner/work/panel/panel/panel/dist/lib/models/event-to-object.js"],["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"],["./util","/home/runner/work/panel/panel/panel/dist/lib/models/util.js"]],"dependency_map":[],"exported":[{"type":"named","name":"EChartsEvent"},{"type":"named","name":"EChartsView"},{"type":"named","name":"ECharts"}],"externals":[],"shims":[]},"code":{"source":"/* models/echarts.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a, _b;\n    __esModule();\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const event_to_object_1 = require(\"a572dba9cd\") /* ./event-to-object */;\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    const util_1 = require(\"a3669a897a\") /* ./util */;\n    const mouse_events = [\n        \"click\", \"dblclick\", \"mousedown\", \"mousemove\", \"mouseup\", \"mouseover\", \"mouseout\",\n        \"globalout\", \"contextmenu\",\n    ];\n    const events = [\n        \"highlight\", \"downplay\", \"selectchanged\", \"legendselectchangedEvent\", \"legendselected\",\n        \"legendunselected\", \"legendselectall\", \"legendinverseselect\", \"legendscroll\", \"datazoom\",\n        \"datarangeselected\", \"timelineplaychanged\", \"restore\", \"dataviewchanged\", \"magictypechanged\",\n        \"geoselectchanged\", \"geoselected\", \"geounselected\", \"axisareaselected\", \"brush\", \"brushEnd\",\n        \"rushselected\", \"globalcursortaken\", \"rendered\", \"finished\",\n    ];\n    const all_events = mouse_events.concat(events);\n    class EChartsEvent extends bokeh_events_1.ModelEvent {\n        constructor(type, data, query) {\n            super();\n            this.type = type;\n            this.data = data;\n            this.query = query;\n        }\n        get event_values() {\n            return { model: this.origin, type: this.type, data: this.data, query: this.query };\n        }\n    }\n    exports.EChartsEvent = EChartsEvent;\n    _a = EChartsEvent;\n    EChartsEvent.__name__ = \"EChartsEvent\";\n    (() => {\n        _a.prototype.event_name = \"echarts_event\";\n    })();\n    class EChartsView extends layout_1.HTMLBoxView {\n        constructor() {\n            super(...arguments);\n            this._callbacks = [];\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { width, height, renderer, theme, event_config, js_events, data } = this.model.properties;\n            this.on_change(data, () => this._plot());\n            this.on_change([width, height], () => this._resize());\n            this.on_change([theme, renderer], () => {\n                this.render();\n                this._chart.resize();\n            });\n            this.on_change([event_config, js_events], () => this._subscribe());\n        }\n        render() {\n            if (this._chart != null) {\n                try {\n                    window.echarts.dispose(this._chart);\n                }\n                catch (e) { }\n            }\n            super.render();\n            this.container = (0, dom_1.div)({ style: { height: \"100%\", width: \"100%\" } });\n            const config = { width: this.model.width, height: this.model.height, renderer: this.model.renderer };\n            this._chart = window.echarts.init(this.container, this.model.theme, config);\n            this._plot();\n            this._subscribe();\n            this.shadow_el.append(this.container);\n        }\n        remove() {\n            super.remove();\n            if (this._chart != null) {\n                window.echarts.dispose(this._chart);\n            }\n        }\n        after_layout() {\n            super.after_layout();\n            if (this._chart != null) {\n                this._chart.resize();\n            }\n        }\n        _plot() {\n            if (window.echarts == null) {\n                return;\n            }\n            const data = (0, util_1.transformJsPlaceholders)(this.model.data);\n            this._chart.setOption(data, this.model.options);\n        }\n        _resize() {\n            this._chart.resize({ width: this.model.width, height: this.model.height });\n        }\n        _subscribe() {\n            if (window.echarts == null) {\n                return;\n            }\n            for (const [event_type, callback] of this._callbacks) {\n                this._chart.off(event_type, callback);\n            }\n            this._callbacks = [];\n            for (const event_type in this.model.event_config) {\n                if (!all_events.includes(event_type)) {\n                    console.warn(`Could not subscribe to unknown Echarts event: ${event_type}.`);\n                    continue;\n                }\n                const queries = this.model.event_config[event_type];\n                for (const query of queries) {\n                    const callback = (event) => {\n                        const processed = { ...event };\n                        processed.event = (0, event_to_object_1.serializeEvent)(event.event?.event);\n                        const serialized = JSON.parse(JSON.stringify(processed));\n                        this.model.trigger_event(new EChartsEvent(event_type, serialized, query));\n                    };\n                    if (query == null) {\n                        this._chart.on(event_type, query, callback);\n                    }\n                    else {\n                        this._chart.on(event_type, callback);\n                    }\n                    this._callbacks.push([event_type, callback]);\n                }\n            }\n            for (const event_type in this.model.js_events) {\n                if (!all_events.includes(event_type)) {\n                    console.warn(`Could not subscribe to unknown Echarts event: ${event_type}.`);\n                    continue;\n                }\n                const handlers = this.model.js_events[event_type];\n                for (const handler of handlers) {\n                    const callback = (event) => {\n                        handler.callback.execute(this._chart, event);\n                    };\n                    if (\"query\" in handler) {\n                        this._chart.on(event_type, handler.query, callback);\n                    }\n                    else {\n                        this._chart.on(event_type, callback);\n                    }\n                    this._callbacks.push([event_type, callback]);\n                }\n            }\n        }\n    }\n    exports.EChartsView = EChartsView;\n    EChartsView.__name__ = \"EChartsView\";\n    class ECharts extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.ECharts = ECharts;\n    _b = ECharts;\n    ECharts.__name__ = \"ECharts\";\n    ECharts.__module__ = \"panel.models.echarts\";\n    (() => {\n        _b.prototype.default_view = EChartsView;\n        _b.define(({ Any, Str }) => ({\n            data: [Any, {}],\n            options: [Any, {}],\n            event_config: [Any, {}],\n            js_events: [Any, {}],\n            theme: [Str, \"default\"],\n            renderer: [Str, \"canvas\"],\n        }));\n    })();\n}\n","min_source":"function _(e,t,s,n,o){var i,h;n();const r=e(\"@bokehjs/core/bokeh_events\"),c=e(\"@bokehjs/core/dom\"),a=e(\"a572dba9cd\"),l=e(\"dab42e6dad\"),d=e(\"a3669a897a\"),_=[\"click\",\"dblclick\",\"mousedown\",\"mousemove\",\"mouseup\",\"mouseover\",\"mouseout\",\"globalout\",\"contextmenu\"].concat([\"highlight\",\"downplay\",\"selectchanged\",\"legendselectchangedEvent\",\"legendselected\",\"legendunselected\",\"legendselectall\",\"legendinverseselect\",\"legendscroll\",\"datazoom\",\"datarangeselected\",\"timelineplaychanged\",\"restore\",\"dataviewchanged\",\"magictypechanged\",\"geoselectchanged\",\"geoselected\",\"geounselected\",\"axisareaselected\",\"brush\",\"brushEnd\",\"rushselected\",\"globalcursortaken\",\"rendered\",\"finished\"]);class u extends r.ModelEvent{constructor(e,t,s){super(),this.type=e,this.data=t,this.query=s}get event_values(){return{model:this.origin,type:this.type,data:this.data,query:this.query}}}s.EChartsEvent=u,i=u,u.__name__=\"EChartsEvent\",i.prototype.event_name=\"echarts_event\";class g extends l.HTMLBoxView{constructor(){super(...arguments),this._callbacks=[]}connect_signals(){super.connect_signals();const{width:e,height:t,renderer:s,theme:n,event_config:o,js_events:i,data:h}=this.model.properties;this.on_change(h,(()=>this._plot())),this.on_change([e,t],(()=>this._resize())),this.on_change([n,s],(()=>{this.render(),this._chart.resize()})),this.on_change([o,i],(()=>this._subscribe()))}render(){if(null!=this._chart)try{window.echarts.dispose(this._chart)}catch(e){}super.render(),this.container=(0,c.div)({style:{height:\"100%\",width:\"100%\"}});const e={width:this.model.width,height:this.model.height,renderer:this.model.renderer};this._chart=window.echarts.init(this.container,this.model.theme,e),this._plot(),this._subscribe(),this.shadow_el.append(this.container)}remove(){super.remove(),null!=this._chart&&window.echarts.dispose(this._chart)}after_layout(){super.after_layout(),null!=this._chart&&this._chart.resize()}_plot(){if(null==window.echarts)return;const e=(0,d.transformJsPlaceholders)(this.model.data);this._chart.setOption(e,this.model.options)}_resize(){this._chart.resize({width:this.model.width,height:this.model.height})}_subscribe(){if(null!=window.echarts){for(const[e,t]of this._callbacks)this._chart.off(e,t);this._callbacks=[];for(const e in this.model.event_config){if(!_.includes(e)){console.warn(`Could not subscribe to unknown Echarts event: ${e}.`);continue}const t=this.model.event_config[e];for(const s of t){const t=t=>{const n={...t};n.event=(0,a.serializeEvent)(t.event?.event);const o=JSON.parse(JSON.stringify(n));this.model.trigger_event(new u(e,o,s))};null==s?this._chart.on(e,s,t):this._chart.on(e,t),this._callbacks.push([e,t])}}for(const e in this.model.js_events){if(!_.includes(e)){console.warn(`Could not subscribe to unknown Echarts event: ${e}.`);continue}const t=this.model.js_events[e];for(const s of t){const t=e=>{s.callback.execute(this._chart,e)};\"query\"in s?this._chart.on(e,s.query,t):this._chart.on(e,t),this._callbacks.push([e,t])}}}}}s.EChartsView=g,g.__name__=\"EChartsView\";class m extends l.HTMLBox{constructor(e){super(e)}}s.ECharts=m,h=m,m.__name__=\"ECharts\",m.__module__=\"panel.models.echarts\",h.prototype.default_view=g,h.define((({Any:e,Str:t})=>({data:[e,{}],options:[e,{}],event_config:[e,{}],js_events:[e,{}],theme:[t,\"default\"],renderer:[t,\"canvas\"]})))}\n//# sourceMappingURL=echarts.min.js.map","min_map":"{\"version\":3,\"file\":\"echarts.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"_b\",\"bokeh_events_1\",\"dom_1\",\"event_to_object_1\",\"layout_1\",\"util_1\",\"all_events\",\"concat\",\"EChartsEvent\",\"ModelEvent\",\"constructor\",\"type\",\"data\",\"query\",\"super\",\"this\",\"event_values\",\"model\",\"origin\",\"__name__\",\"prototype\",\"event_name\",\"EChartsView\",\"HTMLBoxView\",\"arguments\",\"_callbacks\",\"connect_signals\",\"width\",\"height\",\"renderer\",\"theme\",\"event_config\",\"js_events\",\"properties\",\"on_change\",\"_plot\",\"_resize\",\"render\",\"_chart\",\"resize\",\"_subscribe\",\"window\",\"echarts\",\"dispose\",\"e\",\"container\",\"div\",\"style\",\"config\",\"init\",\"shadow_el\",\"append\",\"remove\",\"after_layout\",\"transformJsPlaceholders\",\"setOption\",\"options\",\"event_type\",\"callback\",\"off\",\"includes\",\"console\",\"warn\",\"queries\",\"event\",\"processed\",\"serializeEvent\",\"serialized\",\"JSON\",\"parse\",\"stringify\",\"trigger_event\",\"on\",\"push\",\"handlers\",\"handler\",\"execute\",\"ECharts\",\"HTMLBox\",\"attrs\",\"__module__\",\"default_view\",\"define\",\"Any\",\"Str\"],\"sources\":[\"0\"],\"mappings\":\"AAAwB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACrE,IAAIC,EAAIC,EACRH,IACA,MAAMI,EAAiBP,EAAQ,8BACzBQ,EAAQR,EAAQ,qBAChBS,EAAoBT,EAAQ,cAC5BU,EAAWV,EAAQ,cACnBW,EAASX,EAAQ,cAYjBY,EAXe,CACjB,QAAS,WAAY,YAAa,YAAa,UAAW,YAAa,WACvE,YAAa,eASeC,OAPjB,CACX,YAAa,WAAY,gBAAiB,2BAA4B,iBACtE,mBAAoB,kBAAmB,sBAAuB,eAAgB,WAC9E,oBAAqB,sBAAuB,UAAW,kBAAmB,mBAC1E,mBAAoB,cAAe,gBAAiB,mBAAoB,QAAS,WACjF,eAAgB,oBAAqB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AGf,EAAYC,GAE/B3C,KAAKU,WAAWgD,KAAK,CAAChB,EAAYC,GACtC,CACJ,CACA,IAAK,MAAMD,KAAc1C,KAAKE,MAAMe,UAAW,CAC3C,IAAK1B,EAAWsD,SAASH,GAAa,CAClCI,QAAQC,KAAK,iDAAiDL,MAC9D,QACJ,CACA,MAAMiB,EAAW3D,KAAKE,MAAMe,UAAUyB,GACtC,IAAK,MAAMkB,KAAWD,EAAU,CAC5B,MAAMhB,EAAYM,IACdW,EAAQjB,SAASkB,QAAQ7D,KAAKuB,OAAQ0B,EAAM,EAE5C,UAAWW,EACX5D,KAAKuB,OAAOkC,GAAGf,EAAYkB,EAAQ9D,MAAO6C,GAG1C3C,KAAKuB,OAAOkC,GAAGf,EAAYC,GAE/B3C,KAAKU,WAAWgD,KAAK,CAAChB,EAAYC,GACtC,CACJ,CA7CA,CA8CJ,EAEJ9D,EAAQ0B,YAAcA,EACtBA,EAAYH,SAAW,cACvB,MAAM0D,UAAgBzE,EAAS0E,QAC3B,WAAApE,CAAYqE,GACRjE,MAAMiE,EACV,EAEJnF,EAAQiF,QAAUA,EAClB7E,EAAK6E,EACLA,EAAQ1D,SAAW,UACnB0D,EAAQG,WAAa,uBAEjBhF,EAAGoB,UAAU6D,aAAe3D,EAC5BtB,EAAGkF,QAAO,EAAGC,MAAKC,UAAU,CACxBxE,KAAM,CAACuE,EAAK,CAAC,GACb3B,QAAS,CAAC2B,EAAK,CAAC,GAChBpD,aAAc,CAACoD,EAAK,CAAC,GACrBnD,UAAW,CAACmD,EAAK,CAAC,GAClBrD,MAAO,CAACsD,EAAK,WACbvD,SAAU,CAACuD,EAAK,aAG5B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/feed.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/feed.js","canonical":"models/feed","resolution":"ESM","id":"f9c84aaf3d","hash":"f9c84aaf3dcada6345d338067b006a521985425c026d136096b3f768a31b922d","source":"\"use strict\";\nvar _a, _b;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Feed = exports.FeedView = exports.ScrollLatestEvent = void 0;\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n        r = Reflect.decorate(decorators, target, key, desc);\n    else\n        for (var i = decorators.length - 1; i >= 0; i--)\n            if (d = decorators[i])\n                r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ScrollLatestEvent_1;\nconst column_1 = require(\"./column\");\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nconst build_views_1 = require(\"@bokehjs/core/build_views\");\nconst column_2 = require(\"@bokehjs/models/layouts/column\");\nlet ScrollLatestEvent = (_a = class ScrollLatestEvent extends bokeh_events_1.ModelEvent {\n        constructor(model, rerender, scroll_limit) {\n            super();\n            this.model = model;\n            this.rerender = rerender;\n            this.scroll_limit = scroll_limit;\n            this.origin = model;\n            this.rerender = rerender;\n            this.scroll_limit = scroll_limit;\n        }\n        get event_values() {\n            return { model: this.origin, rerender: this.rerender, scroll_limit: this.scroll_limit };\n        }\n        static from_values(values) {\n            const { model, rerender, scroll_limit } = values;\n            return new ScrollLatestEvent_1(model, rerender, scroll_limit);\n        }\n    },\n    (() => {\n        ScrollLatestEvent_1 = _a;\n    })(),\n    _a.__name__ = \"ScrollLatestEvent\",\n    _a);\nexports.ScrollLatestEvent = ScrollLatestEvent;\nexports.ScrollLatestEvent = ScrollLatestEvent = ScrollLatestEvent_1 = __decorate([\n    (0, bokeh_events_1.server_event)(\"scroll_latest_event\")\n], ScrollLatestEvent);\nclass FeedView extends column_1.ColumnView {\n    constructor() {\n        super(...arguments);\n        this._rendered = false;\n        this._reference = null;\n        this._reference_view = null;\n    }\n    initialize() {\n        super.initialize();\n        this._sync = true;\n        this._intersection_observer = new IntersectionObserver((entries) => {\n            const visible = [...this.model.visible_children];\n            const nodes = this.node_map;\n            for (const entry of entries) {\n                const id = nodes.get(entry.target)?.id;\n                if (entry.isIntersecting) {\n                    if (!visible.includes(id)) {\n                        visible.push(id);\n                    }\n                }\n                else if (visible.includes(id)) {\n                    visible.splice(visible.indexOf(id), 1);\n                }\n            }\n            if (this._sync) {\n                this.model.visible_children = visible;\n            }\n            if (visible.length > 0) {\n                const refs = this.child_models.map((model) => model.id);\n                const indices = visible.map((ref) => refs.indexOf(ref));\n                this._last_visible = this.child_views[Math.min(...indices)];\n            }\n            else {\n                this._last_visible = null;\n            }\n        }, {\n            root: this.el,\n            threshold: 0.01,\n        });\n    }\n    connect_signals() {\n        super.connect_signals();\n        this.model.on_event(ScrollLatestEvent, (event) => {\n            this.scroll_to_latest(event.scroll_limit);\n            if (event.rerender) {\n                this._rendered = false;\n            }\n        });\n    }\n    get node_map() {\n        const nodes = new Map();\n        for (const view of this.child_views) {\n            nodes.set(view.el, view.model);\n        }\n        return nodes;\n    }\n    async update_children() {\n        const last = this._last_visible;\n        const scroll_top = this.el.scrollTop;\n        this._reference_view = last;\n        this._reference = last?.el.offsetTop || 0;\n        this._sync = false;\n        const created = await this.build_child_views();\n        const created_children = new Set(created);\n        const createdLength = created.length;\n        const views_length = this.child_views.length;\n        // Check whether we simply have to prepend or append items\n        // instead of removing and reordering them\n        const is_prepended = created.every((view, index) => view === this.child_views[index]);\n        const is_appended = created.every((view, index) => view === this.child_views[views_length - createdLength + index]);\n        const reorder = !(is_prepended || is_appended);\n        if (reorder) {\n            // First remove and then either reattach existing elements or render and\n            // attach new elements, so that the order of children is consistent, while\n            // avoiding expensive re-rendering of existing views.\n            for (const child_view of this.child_views) {\n                child_view.el.remove();\n            }\n        }\n        const prepend = [];\n        for (const child_view of this.child_views) {\n            const is_new = created_children.has(child_view);\n            const target = this.shadow_el;\n            if (reorder) {\n                if (is_new) {\n                    child_view.render_to(target);\n                }\n                else {\n                    target.append(child_view.el);\n                }\n            }\n            else {\n                if (is_new) {\n                    child_view.render();\n                    child_view.r_after_render();\n                    if (is_appended) {\n                        target.append(child_view.el);\n                    }\n                    else if (is_prepended) {\n                        prepend.push(child_view.el);\n                    }\n                }\n            }\n        }\n        if (is_prepended) {\n            this.shadow_el.prepend(...prepend);\n        }\n        this.r_after_render();\n        this._update_children();\n        this.invalidate_layout();\n        this._sync = true;\n        // Ensure we adjust the scroll position in case we prepended items\n        if (is_prepended) {\n            requestAnimationFrame(() => {\n                const after_offset = this._reference_view?.el.offsetTop || 0;\n                const offset = (after_offset - (this._reference || 0));\n                this.el.scrollTo({ top: scroll_top + offset, behavior: \"smooth\" });\n            });\n        }\n    }\n    async build_child_views() {\n        const { created, removed } = await (0, build_views_1.build_views)(this._child_views, this.child_models, { parent: this });\n        const visible = this.model.visible_children;\n        for (const view of removed) {\n            if (visible.includes(view.model.id)) {\n                visible.splice(visible.indexOf(view.model.id), 1);\n            }\n            this._resize_observer.unobserve(view.el);\n            this._intersection_observer.unobserve(view.el);\n        }\n        this.model.visible_children = [...visible];\n        for (const view of created) {\n            this._resize_observer.observe(view.el, { box: \"border-box\" });\n            this._intersection_observer.observe(view.el);\n        }\n        return created;\n    }\n    _update_layout() {\n        super._update_layout();\n        this.style.append(\":host > div\", { max_height: \"unset\" });\n    }\n    render() {\n        this._rendered = false;\n        super.render();\n    }\n    trigger_auto_scroll() { }\n    after_render() {\n        column_2.ColumnView.prototype.after_render.call(this);\n        requestAnimationFrame(() => {\n            if (this.model.scroll_position) {\n                this.scroll_to_position();\n            }\n            if (this.model.view_latest && !this._rendered) {\n                this.scroll_to_latest();\n            }\n            this.toggle_scroll_button();\n            this._rendered = true;\n        });\n    }\n}\nexports.FeedView = FeedView;\nFeedView.__name__ = \"FeedView\";\nclass Feed extends column_1.Column {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.Feed = Feed;\n_b = Feed;\nFeed.__name__ = \"Feed\";\nFeed.__module__ = \"panel.models.feed\";\n(() => {\n    _b.prototype.default_view = FeedView;\n    _b.define(({ List, Str }) => ({\n        visible_children: [List(Str), []],\n    }));\n})();\n//# sourceMappingURL=feed.js.map\n","type":"js","dependency_paths":[["./column","/home/runner/work/panel/panel/panel/dist/lib/models/column.js"]],"dependency_map":[],"exported":[{"type":"named","name":"FeedView"},{"type":"named","name":"Feed"}],"externals":[],"shims":[]},"code":{"source":"/* models/feed.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a, _b;\n    __esModule();\n    var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n        if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n            r = Reflect.decorate(decorators, target, key, desc);\n        else\n            for (var i = decorators.length - 1; i >= 0; i--)\n                if (d = decorators[i])\n                    r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n        return c > 3 && r && Object.defineProperty(target, key, r), r;\n    };\n    var ScrollLatestEvent_1;\n    const column_1 = require(\"b273e5b2fb\") /* ./column */;\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    const build_views_1 = require(\"@bokehjs/core/build_views\");\n    const column_2 = require(\"@bokehjs/models/layouts/column\");\n    let ScrollLatestEvent = (_a = class ScrollLatestEvent extends bokeh_events_1.ModelEvent {\n        constructor(model, rerender, scroll_limit) {\n            super();\n            this.model = model;\n            this.rerender = rerender;\n            this.scroll_limit = scroll_limit;\n            this.origin = model;\n            this.rerender = rerender;\n            this.scroll_limit = scroll_limit;\n        }\n        get event_values() {\n            return { model: this.origin, rerender: this.rerender, scroll_limit: this.scroll_limit };\n        }\n        static from_values(values) {\n            const { model, rerender, scroll_limit } = values;\n            return new ScrollLatestEvent_1(model, rerender, scroll_limit);\n        }\n    },\n        (() => {\n            ScrollLatestEvent_1 = _a;\n        })(),\n        _a.__name__ = \"ScrollLatestEvent\",\n        _a);\n    exports.ScrollLatestEvent = ScrollLatestEvent;\n    exports.ScrollLatestEvent = ScrollLatestEvent = ScrollLatestEvent_1 = __decorate([\n        (0, bokeh_events_1.server_event)(\"scroll_latest_event\")\n    ], ScrollLatestEvent);\n    class FeedView extends column_1.ColumnView {\n        constructor() {\n            super(...arguments);\n            this._rendered = false;\n            this._reference = null;\n            this._reference_view = null;\n        }\n        initialize() {\n            super.initialize();\n            this._sync = true;\n            this._intersection_observer = new IntersectionObserver((entries) => {\n                const visible = [...this.model.visible_children];\n                const nodes = this.node_map;\n                for (const entry of entries) {\n                    const id = nodes.get(entry.target)?.id;\n                    if (entry.isIntersecting) {\n                        if (!visible.includes(id)) {\n                            visible.push(id);\n                        }\n                    }\n                    else if (visible.includes(id)) {\n                        visible.splice(visible.indexOf(id), 1);\n                    }\n                }\n                if (this._sync) {\n                    this.model.visible_children = visible;\n                }\n                if (visible.length > 0) {\n                    const refs = this.child_models.map((model) => model.id);\n                    const indices = visible.map((ref) => refs.indexOf(ref));\n                    this._last_visible = this.child_views[Math.min(...indices)];\n                }\n                else {\n                    this._last_visible = null;\n                }\n            }, {\n                root: this.el,\n                threshold: 0.01,\n            });\n        }\n        connect_signals() {\n            super.connect_signals();\n            this.model.on_event(ScrollLatestEvent, (event) => {\n                this.scroll_to_latest(event.scroll_limit);\n                if (event.rerender) {\n                    this._rendered = false;\n                }\n            });\n        }\n        get node_map() {\n            const nodes = new Map();\n            for (const view of this.child_views) {\n                nodes.set(view.el, view.model);\n            }\n            return nodes;\n        }\n        async update_children() {\n            const last = this._last_visible;\n            const scroll_top = this.el.scrollTop;\n            this._reference_view = last;\n            this._reference = last?.el.offsetTop || 0;\n            this._sync = false;\n            const created = await this.build_child_views();\n            const created_children = new Set(created);\n            const createdLength = created.length;\n            const views_length = this.child_views.length;\n            // Check whether we simply have to prepend or append items\n            // instead of removing and reordering them\n            const is_prepended = created.every((view, index) => view === this.child_views[index]);\n            const is_appended = created.every((view, index) => view === this.child_views[views_length - createdLength + index]);\n            const reorder = !(is_prepended || is_appended);\n            if (reorder) {\n                // First remove and then either reattach existing elements or render and\n                // attach new elements, so that the order of children is consistent, while\n                // avoiding expensive re-rendering of existing views.\n                for (const child_view of this.child_views) {\n                    child_view.el.remove();\n                }\n            }\n            const prepend = [];\n            for (const child_view of this.child_views) {\n                const is_new = created_children.has(child_view);\n                const target = this.shadow_el;\n                if (reorder) {\n                    if (is_new) {\n                        child_view.render_to(target);\n                    }\n                    else {\n                        target.append(child_view.el);\n                    }\n                }\n                else {\n                    if (is_new) {\n                        child_view.render();\n                        child_view.r_after_render();\n                        if (is_appended) {\n                            target.append(child_view.el);\n                        }\n                        else if (is_prepended) {\n                            prepend.push(child_view.el);\n                        }\n                    }\n                }\n            }\n            if (is_prepended) {\n                this.shadow_el.prepend(...prepend);\n            }\n            this.r_after_render();\n            this._update_children();\n            this.invalidate_layout();\n            this._sync = true;\n            // Ensure we adjust the scroll position in case we prepended items\n            if (is_prepended) {\n                requestAnimationFrame(() => {\n                    const after_offset = this._reference_view?.el.offsetTop || 0;\n                    const offset = (after_offset - (this._reference || 0));\n                    this.el.scrollTo({ top: scroll_top + offset, behavior: \"smooth\" });\n                });\n            }\n        }\n        async build_child_views() {\n            const { created, removed } = await (0, build_views_1.build_views)(this._child_views, this.child_models, { parent: this });\n            const visible = this.model.visible_children;\n            for (const view of removed) {\n                if (visible.includes(view.model.id)) {\n                    visible.splice(visible.indexOf(view.model.id), 1);\n                }\n                this._resize_observer.unobserve(view.el);\n                this._intersection_observer.unobserve(view.el);\n            }\n            this.model.visible_children = [...visible];\n            for (const view of created) {\n                this._resize_observer.observe(view.el, { box: \"border-box\" });\n                this._intersection_observer.observe(view.el);\n            }\n            return created;\n        }\n        _update_layout() {\n            super._update_layout();\n            this.style.append(\":host > div\", { max_height: \"unset\" });\n        }\n        render() {\n            this._rendered = false;\n            super.render();\n        }\n        trigger_auto_scroll() { }\n        after_render() {\n            column_2.ColumnView.prototype.after_render.call(this);\n            requestAnimationFrame(() => {\n                if (this.model.scroll_position) {\n                    this.scroll_to_position();\n                }\n                if (this.model.view_latest && !this._rendered) {\n                    this.scroll_to_latest();\n                }\n                this.toggle_scroll_button();\n                this._rendered = true;\n            });\n        }\n    }\n    exports.FeedView = FeedView;\n    FeedView.__name__ = \"FeedView\";\n    class Feed extends column_1.Column {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.Feed = Feed;\n    _b = Feed;\n    Feed.__name__ = \"Feed\";\n    Feed.__module__ = \"panel.models.feed\";\n    (() => {\n        _b.prototype.default_view = FeedView;\n        _b.define(({ List, Str }) => ({\n            visible_children: [List(Str), []],\n        }));\n    })();\n}\n","min_source":"function _(e,t,s,i,r){var l,o;i();var n,_=this&&this.__decorate||function(e,t,s,i){var r,l=arguments.length,o=l<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,i);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(o=(l<3?r(o):l>3?r(t,s,o):r(t,s))||o);return l>3&&o&&Object.defineProperty(t,s,o),o};const c=e(\"b273e5b2fb\"),h=e(\"@bokehjs/core/bokeh_events\"),d=e(\"@bokehjs/core/build_views\"),a=e(\"@bokehjs/models/layouts/column\");let v=(l=class extends h.ModelEvent{constructor(e,t,s){super(),this.model=e,this.rerender=t,this.scroll_limit=s,this.origin=e,this.rerender=t,this.scroll_limit=s}get event_values(){return{model:this.origin,rerender:this.rerender,scroll_limit:this.scroll_limit}}static from_values(e){const{model:t,rerender:s,scroll_limit:i}=e;return new n(t,s,i)}},n=l,l.__name__=\"ScrollLatestEvent\",l);s.ScrollLatestEvent=v,s.ScrollLatestEvent=v=n=_([(0,h.server_event)(\"scroll_latest_event\")],v);class u extends c.ColumnView{constructor(){super(...arguments),this._rendered=!1,this._reference=null,this._reference_view=null}initialize(){super.initialize(),this._sync=!0,this._intersection_observer=new IntersectionObserver((e=>{const t=[...this.model.visible_children],s=this.node_map;for(const i of e){const e=s.get(i.target)?.id;i.isIntersecting?t.includes(e)||t.push(e):t.includes(e)&&t.splice(t.indexOf(e),1)}if(this._sync&&(this.model.visible_children=t),t.length>0){const e=this.child_models.map((e=>e.id)),s=t.map((t=>e.indexOf(t)));this._last_visible=this.child_views[Math.min(...s)]}else this._last_visible=null}),{root:this.el,threshold:.01})}connect_signals(){super.connect_signals(),this.model.on_event(v,(e=>{this.scroll_to_latest(e.scroll_limit),e.rerender&&(this._rendered=!1)}))}get node_map(){const e=new Map;for(const t of this.child_views)e.set(t.el,t.model);return e}async update_children(){const e=this._last_visible,t=this.el.scrollTop;this._reference_view=e,this._reference=e?.el.offsetTop||0,this._sync=!1;const s=await this.build_child_views(),i=new Set(s),r=s.length,l=this.child_views.length,o=s.every(((e,t)=>e===this.child_views[t])),n=s.every(((e,t)=>e===this.child_views[l-r+t])),_=!(o||n);if(_)for(const e of this.child_views)e.el.remove();const c=[];for(const e of this.child_views){const t=i.has(e),s=this.shadow_el;_?t?e.render_to(s):s.append(e.el):t&&(e.render(),e.r_after_render(),n?s.append(e.el):o&&c.push(e.el))}o&&this.shadow_el.prepend(...c),this.r_after_render(),this._update_children(),this.invalidate_layout(),this._sync=!0,o&&requestAnimationFrame((()=>{const e=(this._reference_view?.el.offsetTop||0)-(this._reference||0);this.el.scrollTo({top:t+e,behavior:\"smooth\"})}))}async build_child_views(){const{created:e,removed:t}=await(0,d.build_views)(this._child_views,this.child_models,{parent:this}),s=this.model.visible_children;for(const e of t)s.includes(e.model.id)&&s.splice(s.indexOf(e.model.id),1),this._resize_observer.unobserve(e.el),this._intersection_observer.unobserve(e.el);this.model.visible_children=[...s];for(const t of e)this._resize_observer.observe(t.el,{box:\"border-box\"}),this._intersection_observer.observe(t.el);return e}_update_layout(){super._update_layout(),this.style.append(\":host > div\",{max_height:\"unset\"})}render(){this._rendered=!1,super.render()}trigger_auto_scroll(){}after_render(){a.ColumnView.prototype.after_render.call(this),requestAnimationFrame((()=>{this.model.scroll_position&&this.scroll_to_position(),this.model.view_latest&&!this._rendered&&this.scroll_to_latest(),this.toggle_scroll_button(),this._rendered=!0}))}}s.FeedView=u,u.__name__=\"FeedView\";class f extends c.Column{constructor(e){super(e)}}s.Feed=f,o=f,f.__name__=\"Feed\",f.__module__=\"panel.models.feed\",o.prototype.default_view=u,o.define((({List:e,Str:t})=>({visible_children:[e(t),[]]})))}\n//# sourceMappingURL=feed.min.js.map","min_map":"{\"version\":3,\"file\":\"feed.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"_b\",\"ScrollLatestEvent_1\",\"__decorate\",\"this\",\"decorators\",\"target\",\"key\",\"desc\",\"d\",\"c\",\"arguments\",\"length\",\"r\",\"Object\",\"getOwnPropertyDescriptor\",\"Reflect\",\"decorate\",\"i\",\"defineProperty\",\"column_1\",\"bokeh_events_1\",\"build_views_1\",\"column_2\",\"ScrollLatestEvent\",\"ModelEvent\",\"constructor\",\"model\",\"rerender\",\"scroll_limit\",\"super\",\"origin\",\"event_values\",\"from_values\",\"values\",\"__name__\",\"server_event\",\"FeedView\",\"ColumnView\",\"_rendered\",\"_reference\",\"_reference_view\",\"initialize\",\"_sync\",\"_intersection_observer\",\"IntersectionObserver\",\"entries\",\"visible\",\"visible_children\",\"nodes\",\"node_map\",\"entry\",\"id\",\"get\",\"isIntersecting\",\"includes\",\"push\",\"splice\",\"indexOf\",\"refs\",\"child_models\",\"map\",\"indices\",\"ref\",\"_last_visible\",\"child_views\",\"Math\",\"min\",\"root\",\"el\",\"threshold\",\"connect_signals\",\"on_event\",\"event\",\"scroll_to_latest\",\"Map\",\"view\",\"set\",\"update_children\",\"last\",\"scroll_top\",\"scrollTop\",\"offsetTop\",\"created\",\"build_child_views\",\"created_children\",\"Set\",\"createdLength\",\"views_length\",\"is_prepended\",\"every\",\"index\",\"is_appended\",\"reorder\",\"child_view\",\"remove\",\"prepend\",\"is_new\",\"has\",\"shadow_el\",\"render_to\",\"append\",\"render\",\"r_after_render\",\"_update_children\",\"invalidate_layout\",\"requestAnimationFrame\",\"offset\",\"scrollTo\",\"top\",\"behavior\",\"removed\",\"build_views\",\"_child_views\",\"parent\",\"_resize_observer\",\"unobserve\",\"observe\",\"box\",\"_update_layout\",\"style\",\"max_height\",\"trigger_auto_scroll\",\"after_render\",\"prototype\",\"call\",\"scroll_position\",\"scroll_to_position\",\"view_latest\",\"toggle_scroll_button\",\"Feed\",\"Column\",\"attrs\",\"__module__\",\"default_view\",\"define\",\"List\",\"Str\"],\"sources\":[\"0\"],\"mappings\":\"AAAqB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAClE,IAAIC,EAAIC,EACRH,IACA,IAUII,EAVAC,EAAcC,MAAQA,KAAKD,YAAe,SAAUE,EAAYC,EAAQC,EAAKC,GAC7E,IAA2HC,EAAvHC,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIJ,EAAkB,OAATE,EAAgBA,EAAOM,OAAOC,yBAAyBT,EAAQC,GAAOC,EACrH,GAAuB,iBAAZQ,SAAoD,mBAArBA,QAAQC,SAC9CJ,EAAIG,QAAQC,SAASZ,EAAYC,EAAQC,EAAKC,QAE9C,IAAK,IAAIU,EAAIb,EAAWO,OAAS,EAAGM,GAAK,EAAGA,KACpCT,EAAIJ,EAAWa,MACfL,GAAKH,EAAI,EAAID,EAAEI,GAAKH,EAAI,EAAID,EAAEH,EAAQC,EAAKM,GAAKJ,EAAEH,EAAQC,KAASM,GAC/E,OAAOH,EAAI,GAAKG,GAAKC,OAAOK,eAAeb,EAAQC,EAAKM,GAAIA,CAChE,EAEA,MAAMO,EAAWzB,EAAQ,cACnB0B,EAAiB1B,EAAQ,8BACzB2B,EAAgB3B,EAAQ,6BACxB4B,EAAW5B,EAAQ,kCACzB,IAAI6B,GAAqBxB,EAAK,cAAgCqB,EAAeI,WACzE,WAAAC,CAAYC,EAAOC,EAAUC,GACzBC,QACA1B,K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L3H,KAAKuB,MAAMqG,cAAgB5H,KAAKmC,WAChCnC,KAAKsE,mBAETtE,KAAK6H,uBACL7H,KAAKmC,WAAY,CAAI,GAE7B,EAEJ1C,EAAQwC,SAAWA,EACnBA,EAASF,SAAW,WACpB,MAAM+F,UAAa9G,EAAS+G,OACxB,WAAAzG,CAAY0G,GACRtG,MAAMsG,EACV,EAEJvI,EAAQqI,KAAOA,EACfjI,EAAKiI,EACLA,EAAK/F,SAAW,OAChB+F,EAAKG,WAAa,oBAEdpI,EAAG2H,UAAUU,aAAejG,EAC5BpC,EAAGsI,QAAO,EAAGC,OAAMC,UAAU,CACzBzF,iBAAkB,CAACwF,EAAKC,GAAM,OAG1C\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/file_download.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/file_download.js","canonical":"models/file_download","resolution":"ESM","id":"84a13dddfb","hash":"84a13dddfb11b94fdf37167f16e2c85735460b19365ae63c136bc1ff5ccab1e7","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.FileDownload = exports.FileDownloadView = void 0;\nconst tslib_1 = require(\"tslib\");\nconst build_views_1 = require(\"@bokehjs/core/build_views\");\nconst enums_1 = require(\"@bokehjs/core/enums\");\nconst input_widget_1 = require(\"@bokehjs/models/widgets/input_widget\");\nconst icon_1 = require(\"@bokehjs/models/ui/icons/icon\");\nconst buttons_css_1 = tslib_1.__importStar(require(\"@bokehjs/styles/buttons.css\")), buttons = buttons_css_1;\nconst dom_1 = require(\"@bokehjs/core/dom\");\nfunction dataURItoBlob(dataURI) {\n    // convert base64 to raw binary data held in a string\n    const byteString = atob(dataURI.split(\",\")[1]);\n    // separate out the mime component\n    const mimeString = dataURI.split(\",\")[0].split(\":\")[1].split(\";\")[0];\n    // write the bytes of the string to an ArrayBuffer\n    const ab = new ArrayBuffer(byteString.length);\n    const ia = new Uint8Array(ab);\n    for (let i = 0; i < byteString.length; i++) {\n        ia[i] = byteString.charCodeAt(i);\n    }\n    // write the ArrayBuffer to a blob, and you're done\n    const bb = new Blob([ab], { type: mimeString });\n    return bb;\n}\nclass FileDownloadView extends input_widget_1.InputWidgetView {\n    constructor() {\n        super(...arguments);\n        this._downloadable = false;\n        this._prev_href = \"\";\n        this._prev_download = \"\";\n    }\n    *children() {\n        yield* super.children();\n        if (this.icon_view != null) {\n            yield this.icon_view;\n        }\n    }\n    *controls() {\n        yield this.anchor_el;\n        yield this.button_el;\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { button_type, filename, _transfers, label } = this.model.properties;\n        this.on_change(button_type, () => this._update_button_style());\n        this.on_change(filename, () => this._update_download());\n        this.on_change(_transfers, () => this._handle_click());\n        this.on_change(label, () => this._update_label());\n    }\n    remove() {\n        if (this.icon_view != null) {\n            this.icon_view.remove();\n        }\n        super.remove();\n    }\n    async lazy_initialize() {\n        await super.lazy_initialize();\n        const { icon } = this.model;\n        if (icon != null) {\n            this.icon_view = await (0, build_views_1.build_view)(icon, { parent: this });\n        }\n    }\n    _render_input() {\n        // Create an anchor HTML element that is styled as a bokeh button.\n        // When its 'href' and 'download' attributes are set, it's a downloadable link:\n        // * A click triggers a download\n        // * A right click allows to \"Save as\" the file\n        // There are three main cases:\n        // 1. embed=True: The widget is a download link\n        // 2. auto=False: The widget is first a button and becomes a download link after the first click\n        // 3. auto=True: The widget is a button, i.e right click to \"Save as...\" won't work\n        this.anchor_el = document.createElement(\"a\");\n        this.button_el = (0, dom_1.button)({\n            disabled: this.model.disabled,\n        });\n        if (this.icon_view != null) {\n            const separator = this.model.label != \"\" ? (0, dom_1.nbsp)() : (0, dom_1.text)(\"\");\n            this.anchor_el.appendChild(this.icon_view.el);\n            this.anchor_el.appendChild(separator);\n            this.icon_view.render();\n        }\n        this.label_el = document.createTextNode(this.model.label);\n        this.anchor_el.appendChild(this.label_el);\n        this._update_button_style();\n        // Changing the disabled property calls render() so it needs to be handled here.\n        // This callback is inherited from ControlView in bokehjs.\n        if (this.model.disabled) {\n            this.anchor_el.setAttribute(\"disabled\", \"\");\n            this._downloadable = false;\n        }\n        else {\n            this.anchor_el.removeAttribute(\"disabled\");\n            // auto=False + toggle Disabled ==> Needs to reset the link as it was.\n            if (this._prev_download) {\n                this.anchor_el.download = this._prev_download;\n            }\n            if (this._prev_href) {\n                this.anchor_el.href = this._prev_href;\n            }\n            if (this.anchor_el.download && this.anchor_el.download) {\n                this._downloadable = true;\n            }\n        }\n        // If embedded the button is just a download link.\n        // Otherwise clicks will be handled by the code itself, allowing for more interactivity.\n        if (this.model.embed) {\n            this._make_link_downloadable();\n        }\n        else {\n            // Add a \"click\" listener, note that it's not going to\n            // handle right clicks (they won't increment 'clicks')\n            this._click_listener = this._increment_clicks.bind(this);\n            this.anchor_el.addEventListener(\"click\", this._click_listener);\n        }\n        this.button_el.appendChild(this.anchor_el);\n        this.input_el = (0, dom_1.input)(); // HACK: So this.input_el.id = \"input\" can be set in Bokeh 3.4\n        return this.button_el;\n    }\n    render() {\n        super.render();\n        this.group_el.style.display = \"flex\";\n        this.group_el.style.alignItems = \"stretch\";\n    }\n    stylesheets() {\n        return [...super.stylesheets(), buttons_css_1.default];\n    }\n    _increment_clicks() {\n        this.model.clicks = this.model.clicks + 1;\n    }\n    _handle_click() {\n        // When auto=False the button becomes a link which no longer\n        // requires being updated.\n        if ((!this.model.auto && this._downloadable) || this.anchor_el.hasAttribute(\"disabled\")) {\n            return;\n        }\n        this._make_link_downloadable();\n        if (!this.model.embed && this.model.auto) {\n            // Temporarily removing the event listener to emulate a click\n            // event on the anchor link which will trigger a download.\n            this.anchor_el.removeEventListener(\"click\", this._click_listener);\n            this.anchor_el.click();\n            // In this case #3 the widget is not a link so these attributes are removed.\n            this.anchor_el.removeAttribute(\"href\");\n            this.anchor_el.removeAttribute(\"download\");\n            this.anchor_el.addEventListener(\"click\", this._click_listener);\n        }\n        // Store the current state for handling changes of the disabled property.\n        this._prev_href = this.anchor_el.getAttribute(\"href\");\n        this._prev_download = this.anchor_el.getAttribute(\"download\");\n    }\n    _make_link_downloadable() {\n        this._update_href();\n        this._update_download();\n        if (this.anchor_el.download && this.anchor_el.href) {\n            this._downloadable = true;\n        }\n    }\n    _update_href() {\n        if (this.model.data) {\n            const blob = dataURItoBlob(this.model.data);\n            this.anchor_el.href = URL.createObjectURL(blob);\n        }\n    }\n    _update_download() {\n        if (this.model.filename) {\n            this.anchor_el.download = this.model.filename;\n        }\n    }\n    _update_label() {\n        this.label_el.data = this.model.label;\n    }\n    _update_button_style() {\n        const btn_type = buttons[`btn_${this.model.button_type}`];\n        if (!this.button_el.hasAttribute(\"class\")) { // When the widget is rendered.\n            this.button_el.classList.add(buttons.btn);\n            this.button_el.classList.add(btn_type);\n        }\n        else { // When the button type is changed.\n            const prev_button_type = this.anchor_el.classList.item(1);\n            if (prev_button_type) {\n                this.button_el.classList.replace(prev_button_type, btn_type);\n            }\n        }\n    }\n}\nexports.FileDownloadView = FileDownloadView;\nFileDownloadView.__name__ = \"FileDownloadView\";\nclass FileDownload extends input_widget_1.InputWidget {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.FileDownload = FileDownload;\n_a = FileDownload;\nFileDownload.__name__ = \"FileDownload\";\nFileDownload.__module__ = \"panel.models.widgets\";\n(() => {\n    _a.prototype.default_view = FileDownloadView;\n    _a.define(({ Bool, Int, Nullable, Ref, Str }) => ({\n        auto: [Bool, false],\n        clicks: [Int, 0],\n        data: [Nullable(Str), null],\n        embed: [Bool, false],\n        icon: [Nullable(Ref(icon_1.Icon)), null],\n        label: [Str, \"Download\"],\n        filename: [Nullable(Str), null],\n        button_type: [enums_1.ButtonType, \"default\"], // TODO (bev)\n        _transfers: [Int, 0],\n    }));\n    _a.override({\n        title: \"\",\n    });\n})();\n//# sourceMappingURL=file_download.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"FileDownloadView"},{"type":"named","name":"FileDownload"}],"externals":[],"shims":[]},"code":{"source":"/* models/file_download.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const build_views_1 = require(\"@bokehjs/core/build_views\");\n    const enums_1 = require(\"@bokehjs/core/enums\");\n    const input_widget_1 = require(\"@bokehjs/models/widgets/input_widget\");\n    const icon_1 = require(\"@bokehjs/models/ui/icons/icon\");\n    const buttons_css_1 = tslib_1.__importStar(require(\"@bokehjs/styles/buttons.css\")), buttons = buttons_css_1;\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    function dataURItoBlob(dataURI) {\n        // convert base64 to raw binary data held in a string\n        const byteString = atob(dataURI.split(\",\")[1]);\n        // separate out the mime component\n        const mimeString = dataURI.split(\",\")[0].split(\":\")[1].split(\";\")[0];\n        // write the bytes of the string to an ArrayBuffer\n        const ab = new ArrayBuffer(byteString.length);\n        const ia = new Uint8Array(ab);\n        for (let i = 0; i < byteString.length; i++) {\n            ia[i] = byteString.charCodeAt(i);\n        }\n        // write the ArrayBuffer to a blob, and you're done\n        const bb = new Blob([ab], { type: mimeString });\n        return bb;\n    }\n    class FileDownloadView extends input_widget_1.InputWidgetView {\n        constructor() {\n            super(...arguments);\n            this._downloadable = false;\n            this._prev_href = \"\";\n            this._prev_download = \"\";\n        }\n        *children() {\n            yield* super.children();\n            if (this.icon_view != null) {\n                yield this.icon_view;\n            }\n        }\n        *controls() {\n            yield this.anchor_el;\n            yield this.button_el;\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { button_type, filename, _transfers, label } = this.model.properties;\n            this.on_change(button_type, () => this._update_button_style());\n            this.on_change(filename, () => this._update_download());\n            this.on_change(_transfers, () => this._handle_click());\n            this.on_change(label, () => this._update_label());\n        }\n        remove() {\n            if (this.icon_view != null) {\n                this.icon_view.remove();\n            }\n            super.remove();\n        }\n        async lazy_initialize() {\n            await super.lazy_initialize();\n            const { icon } = this.model;\n            if (icon != null) {\n                this.icon_view = await (0, build_views_1.build_view)(icon, { parent: this });\n            }\n        }\n        _render_input() {\n            // Create an anchor HTML element that is styled as a bokeh button.\n            // When its 'href' and 'download' attributes are set, it's a downloadable link:\n            // * A click triggers a download\n            // * A right click allows to \"Save as\" the file\n            // There are three main cases:\n            // 1. embed=True: The widget is a download link\n            // 2. auto=False: The widget is first a button and becomes a download link after the first click\n            // 3. auto=True: The widget is a button, i.e right click to \"Save as...\" won't work\n            this.anchor_el = document.createElement(\"a\");\n            this.button_el = (0, dom_1.button)({\n                disabled: this.model.disabled,\n            });\n            if (this.icon_view != null) {\n                const separator = this.model.label != \"\" ? (0, dom_1.nbsp)() : (0, dom_1.text)(\"\");\n                this.anchor_el.appendChild(this.icon_view.el);\n                this.anchor_el.appendChild(separator);\n                this.icon_view.render();\n            }\n            this.label_el = document.createTextNode(this.model.label);\n            this.anchor_el.appendChild(this.label_el);\n            this._update_button_style();\n            // Changing the disabled property calls render() so it needs to be handled here.\n            // This callback is inherited from ControlView in bokehjs.\n            if (this.model.disabled) {\n                this.anchor_el.setAttribute(\"disabled\", \"\");\n                this._downloadable = false;\n            }\n            else {\n                this.anchor_el.removeAttribute(\"disabled\");\n                // auto=False + toggle Disabled ==> Needs to reset the link as it was.\n                if (this._prev_download) {\n                    this.anchor_el.download = this._prev_download;\n                }\n                if (this._prev_href) {\n                    this.anchor_el.href = this._prev_href;\n                }\n                if (this.anchor_el.download && this.anchor_el.download) {\n                    this._downloadable = true;\n                }\n            }\n            // If embedded the button is just a download link.\n            // Otherwise clicks will be handled by the code itself, allowing for more interactivity.\n            if (this.model.embed) {\n                this._make_link_downloadable();\n            }\n            else {\n                // Add a \"click\" listener, note that it's not going to\n                // handle right clicks (they won't increment 'clicks')\n                this._click_listener = this._increment_clicks.bind(this);\n                this.anchor_el.addEventListener(\"click\", this._click_listener);\n            }\n            this.button_el.appendChild(this.anchor_el);\n            this.input_el = (0, dom_1.input)(); // HACK: So this.input_el.id = \"input\" can be set in Bokeh 3.4\n            return this.button_el;\n        }\n        render() {\n            super.render();\n            this.group_el.style.display = \"flex\";\n            this.group_el.style.alignItems = \"stretch\";\n        }\n        stylesheets() {\n            return [...super.stylesheets(), buttons_css_1.default];\n        }\n        _increment_clicks() {\n            this.model.clicks = this.model.clicks + 1;\n        }\n        _handle_click() {\n            // When auto=False the button becomes a link which no longer\n            // requires being updated.\n            if ((!this.model.auto && this._downloadable) || this.anchor_el.hasAttribute(\"disabled\")) {\n                return;\n            }\n            this._make_link_downloadable();\n            if (!this.model.embed && this.model.auto) {\n                // Temporarily removing the event listener to emulate a click\n                // event on the anchor link which will trigger a download.\n                this.anchor_el.removeEventListener(\"click\", this._click_listener);\n                this.anchor_el.click();\n                // In this case #3 the widget is not a link so these attributes are removed.\n                this.anchor_el.removeAttribute(\"href\");\n                this.anchor_el.removeAttribute(\"download\");\n                this.anchor_el.addEventListener(\"click\", this._click_listener);\n            }\n            // Store the current state for handling changes of the disabled property.\n            this._prev_href = this.anchor_el.getAttribute(\"href\");\n            this._prev_download = this.anchor_el.getAttribute(\"download\");\n        }\n        _make_link_downloadable() {\n            this._update_href();\n            this._update_download();\n            if (this.anchor_el.download && this.anchor_el.href) {\n                this._downloadable = true;\n            }\n        }\n        _update_href() {\n            if (this.model.data) {\n                const blob = dataURItoBlob(this.model.data);\n                this.anchor_el.href = URL.createObjectURL(blob);\n            }\n        }\n        _update_download() {\n            if (this.model.filename) {\n                this.anchor_el.download = this.model.filename;\n            }\n        }\n        _update_label() {\n            this.label_el.data = this.model.label;\n        }\n        _update_button_style() {\n            const btn_type = buttons[`btn_${this.model.button_type}`];\n            if (!this.button_el.hasAttribute(\"class\")) { // When the widget is rendered.\n                this.button_el.classList.add(buttons.btn);\n                this.button_el.classList.add(btn_type);\n            }\n            else { // When the button type is changed.\n                const prev_button_type = this.anchor_el.classList.item(1);\n                if (prev_button_type) {\n                    this.button_el.classList.replace(prev_button_type, btn_type);\n                }\n            }\n        }\n    }\n    exports.FileDownloadView = FileDownloadView;\n    FileDownloadView.__name__ = \"FileDownloadView\";\n    class FileDownload extends input_widget_1.InputWidget {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.FileDownload = FileDownload;\n    _a = FileDownload;\n    FileDownload.__name__ = \"FileDownload\";\n    FileDownload.__module__ = \"panel.models.widgets\";\n    (() => {\n        _a.prototype.default_view = FileDownloadView;\n        _a.define(({ Bool, Int, Nullable, Ref, Str }) => ({\n            auto: [Bool, false],\n            clicks: [Int, 0],\n            data: [Nullable(Str), null],\n            embed: [Bool, false],\n            icon: [Nullable(Ref(icon_1.Icon)), null],\n            label: [Str, \"Download\"],\n            filename: [Nullable(Str), null],\n            button_type: [enums_1.ButtonType, \"default\"], // TODO (bev)\n            _transfers: [Int, 0],\n        }));\n        _a.override({\n            title: \"\",\n        });\n    })();\n}\n","min_source":"function _(e,t,i,l,s){var o;l();const n=e(\"tslib\"),a=e(\"@bokehjs/core/build_views\"),h=e(\"@bokehjs/core/enums\"),_=e(\"@bokehjs/models/widgets/input_widget\"),d=e(\"@bokehjs/models/ui/icons/icon\"),r=n.__importStar(e(\"@bokehjs/styles/buttons.css\")),c=r,u=e(\"@bokehjs/core/dom\");class b extends _.InputWidgetView{constructor(){super(...arguments),this._downloadable=!1,this._prev_href=\"\",this._prev_download=\"\"}*children(){yield*super.children(),null!=this.icon_view&&(yield this.icon_view)}*controls(){yield this.anchor_el,yield this.button_el}connect_signals(){super.connect_signals();const{button_type:e,filename:t,_transfers:i,label:l}=this.model.properties;this.on_change(e,(()=>this._update_button_style())),this.on_change(t,(()=>this._update_download())),this.on_change(i,(()=>this._handle_click())),this.on_change(l,(()=>this._update_label()))}remove(){null!=this.icon_view&&this.icon_view.remove(),super.remove()}async lazy_initialize(){await super.lazy_initialize();const{icon:e}=this.model;null!=e&&(this.icon_view=await(0,a.build_view)(e,{parent:this}))}_render_input(){if(this.anchor_el=document.createElement(\"a\"),this.button_el=(0,u.button)({disabled:this.model.disabled}),null!=this.icon_view){const e=\"\"!=this.model.label?(0,u.nbsp)():(0,u.text)(\"\");this.anchor_el.appendChild(this.icon_view.el),this.anchor_el.appendChild(e),this.icon_view.render()}return this.label_el=document.createTextNode(this.model.label),this.anchor_el.appendChild(this.label_el),this._update_button_style(),this.model.disabled?(this.anchor_el.setAttribute(\"disabled\",\"\"),this._downloadable=!1):(this.anchor_el.removeAttribute(\"disabled\"),this._prev_download&&(this.anchor_el.download=this._prev_download),this._prev_href&&(this.anchor_el.href=this._prev_href),this.anchor_el.download&&this.anchor_el.download&&(this._downloadable=!0)),this.model.embed?this._make_link_downloadable():(this._click_listener=this._increment_clicks.bind(this),this.anchor_el.addEventListener(\"click\",this._click_listener)),this.button_el.appendChild(this.anchor_el),this.input_el=(0,u.input)(),this.button_el}render(){super.render(),this.group_el.style.display=\"flex\",this.group_el.style.alignItems=\"stretch\"}stylesheets(){return[...super.stylesheets(),r.default]}_increment_clicks(){this.model.clicks=this.model.clicks+1}_handle_click(){!this.model.auto&&this._downloadable||this.anchor_el.hasAttribute(\"disabled\")||(this._make_link_downloadable(),!this.model.embed&&this.model.auto&&(this.anchor_el.removeEventListener(\"click\",this._click_listener),this.anchor_el.click(),this.anchor_el.removeAttribute(\"href\"),this.anchor_el.removeAttribute(\"download\"),this.anchor_el.addEventListener(\"click\",this._click_listener)),this._prev_href=this.anchor_el.getAttribute(\"href\"),this._prev_download=this.anchor_el.getAttribute(\"download\"))}_make_link_downloadable(){this._update_href(),this._update_download(),this.anchor_el.download&&this.anchor_el.href&&(this._downloadable=!0)}_update_href(){if(this.model.data){const e=function(e){const t=atob(e.split(\",\")[1]),i=e.split(\",\")[0].split(\":\")[1].split(\";\")[0],l=new ArrayBuffer(t.length),s=new Uint8Array(l);for(let e=0;e<t.length;e++)s[e]=t.charCodeAt(e);return new Blob([l],{type:i})}(this.model.data);this.anchor_el.href=URL.createObjectURL(e)}}_update_download(){this.model.filename&&(this.anchor_el.download=this.model.filename)}_update_label(){this.label_el.data=this.model.label}_update_button_style(){const e=c[`btn_${this.model.button_type}`];if(this.button_el.hasAttribute(\"class\")){const t=this.anchor_el.classList.item(1);t&&this.button_el.classList.replace(t,e)}else this.button_el.classList.add(c.btn),this.button_el.classList.add(e)}}i.FileDownloadView=b,b.__name__=\"FileDownloadView\";class p extends _.InputWidget{constructor(e){super(e)}}i.FileDownload=p,o=p,p.__name__=\"FileDownload\",p.__module__=\"panel.models.widgets\",o.prototype.default_view=b,o.define((({Bool:e,Int:t,Nullable:i,Ref:l,Str:s})=>({auto:[e,!1],clicks:[t,0],data:[i(s),null],embed:[e,!1],icon:[i(l(d.Icon)),null],label:[s,\"Download\"],filename:[i(s),null],button_type:[h.ButtonType,\"default\"],_transfers:[t,0]}))),o.override({title:\"\"})}\n//# sourceMappingURL=file_download.min.js.map","min_map":"{\"version\":3,\"file\":\"file_download.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"tslib_1\",\"build_views_1\",\"enums_1\",\"input_widget_1\",\"icon_1\",\"buttons_css_1\",\"__importStar\",\"buttons\",\"dom_1\",\"FileDownloadView\",\"InputWidgetView\",\"constructor\",\"super\",\"arguments\",\"this\",\"_downloadable\",\"_prev_href\",\"_prev_download\",\"children\",\"icon_view\",\"controls\",\"anchor_el\",\"button_el\",\"connect_signals\",\"button_type\",\"filename\",\"_transfers\",\"label\",\"model\",\"properties\",\"on_change\",\"_update_button_style\",\"_update_download\",\"_handle_click\",\"_update_label\",\"remove\",\"lazy_initialize\",\"icon\",\"build_view\",\"parent\",\"_render_input\",\"document\",\"createElement\",\"button\",\"disabled\",\"separator\",\"nbsp\",\"text\",\"appendChild\",\"el\",\"render\",\"label_el\",\"createTextNode\",\"setAttribute\",\"removeAttribute\",\"download\",\"href\",\"embed\",\"_make_link_downloadable\",\"_click_listener\",\"_increment_clicks\",\"bind\",\"addEventListener\",\"input_el\",\"input\",\"group_el\",\"style\",\"display\",\"alignItems\",\"stylesheets\",\"default\",\"clicks\",\"auto\",\"hasAttribute\",\"removeEventListener\",\"click\",\"getAttribute\",\"_update_href\",\"data\",\"blob\",\"dataURI\",\"byteString\",\"atob\",\"split\",\"mimeString\",\"ab\",\"ArrayBuffer\",\"length\",\"ia\",\"Uint8Array\",\"i\",\"charCodeAt\",\"Blob\",\"type\",\"dataURItoBlob\",\"URL\",\"createObjectURL\",\"btn_type\",\"prev_button_type\",\"classList\",\"item\",\"replace\",\"add\",\"btn\",\"__name__\",\"FileDownload\",\"InputWidget\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Bool\",\"Int\",\"Nullable\",\"Ref\",\"Str\",\"Icon\",\"ButtonType\",\"override\",\"title\"],\"sources\":[\"0\"],\"mappings\":\"AAA8B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC3E,IAAIC,EACJF,IACA,MAAMG,EAAUN,EAAQ,SAClBO,EAAgBP,EAAQ,6BACxBQ,EAAUR,EAAQ,uBAClBS,EAAiBT,EAAQ,wCACzBU,EAASV,EAAQ,iCACjBW,EAAgBL,EAAQM,aAAaZ,EAAQ,gCAAiCa,EAAUF,EACxFG,EAAQd,EAAQ,qBAgBtB,MAAMe,UAAyBN,EAAeO,gBAC1C,WAAAC,GACIC,SAASC,WACTC,KAAKC,eAAgB,EACrBD,KAAKE,WAAa,GAClBF,KAAKG,eAAiB,EAC1B,CACA,SAACC,SACUN,MAAMM,WACS,MAAlBJ,KAAKK,kBACCL,KAAKK,UAEnB,CACA,SAACC,SACSN,KAAKO,gBACLP,KAAKQ,SACf,CACA,eAAAC,GACIX,MAAMW,kBACN,MAAMC,YAAEA,EAAWC,SAAEA,EAAQC,WAAEA,EAAUC,MAAEA,GAAUb,KAAKc,MAAMC,WAChEf,KAAKgB,UAAUN,GAAa,IAAMV,KAAKiB,yBACvCjB,KAAKgB,UAAUL,GAAU,IAAMX,KAAKkB,qBACpClB,KAAKgB,UAAUJ,GAAY,IAAMZ,KAAKmB,kBACtCnB,KAAKgB,UAAUH,GAAO,IAAMb,KAAKoB,iBACrC,CACA,MAAAC,GAC0B,MAAlBrB,KAAKK,WACLL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el/dist/lib/models/file_dropper.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/file_dropper.js","canonical":"models/file_dropper","resolution":"ESM","id":"8531319d94","hash":"8531319d94d5232f08e87d96d4aaf4e69bd80521983507298f01be02c7e41f6d","source":"\"use strict\";\nvar _a, _b, _c;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.FileDropper = exports.DropperLayout = exports.FileDropperView = exports.DeleteEvent = exports.UploadEvent = void 0;\nconst tslib_1 = require(\"tslib\");\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst kinds_1 = require(\"@bokehjs/core/kinds\");\nconst input_widget_1 = require(\"@bokehjs/models/widgets/input_widget\");\nconst inputs = tslib_1.__importStar(require(\"@bokehjs/styles/widgets/inputs.css\"));\nconst filedropper_css_1 = tslib_1.__importDefault(require(\"../styles/models/filedropper.css\"));\nclass UploadEvent extends bokeh_events_1.ModelEvent {\n    constructor(data) {\n        super();\n        this.data = data;\n    }\n    get event_values() {\n        return { model: this.origin, data: this.data };\n    }\n}\nexports.UploadEvent = UploadEvent;\n_a = UploadEvent;\nUploadEvent.__name__ = \"UploadEvent\";\n(() => {\n    _a.prototype.event_name = \"upload_event\";\n})();\nclass DeleteEvent extends bokeh_events_1.ModelEvent {\n    constructor(data) {\n        super();\n        this.data = data;\n    }\n    get event_values() {\n        return { model: this.origin, data: this.data };\n    }\n}\nexports.DeleteEvent = DeleteEvent;\n_b = DeleteEvent;\nDeleteEvent.__name__ = \"DeleteEvent\";\n(() => {\n    _b.prototype.event_name = \"delete_event\";\n})();\n// Mapping of file extensions to browser-reported MIME types\n// as it's not yet supported by filepond, see:\n// https://github.com/pqina/filepond-plugin-file-validate-type/issues/13\nconst EXTENSION_TO_MIME_TYPE = {\n    // Images\n    \".png\": \"image/png\",\n    \".jpg\": \"image/jpeg\",\n    \".jpeg\": \"image/jpeg\",\n    \".gif\": \"image/gif\",\n    \".svg\": \"image/svg+xml\",\n    \".webp\": \"image/webp\",\n    \".bmp\": \"image/bmp\",\n    \".ico\": \"image/x-icon\",\n    \".tiff\": \"image/tiff\",\n    \".tif\": \"image/tiff\",\n    \".avif\": \"image/avif\",\n    // Video\n    \".mp4\": \"video/mp4\",\n    \".webm\": \"video/webm\",\n    \".mov\": \"video/quicktime\",\n    \".mkv\": \"video/x-matroska\",\n    \".avi\": \"video/x-msvideo\",\n    \".wmv\": \"video/x-ms-wmv\",\n    \".flv\": \"video/x-flv\",\n    // Audio\n    \".mp3\": \"audio/mpeg\",\n    \".wav\": \"audio/wav\",\n    \".ogg\": \"audio/ogg\",\n    \".oga\": \"audio/ogg\",\n    \".m4a\": \"audio/mp4\",\n    \".aac\": \"audio/aac\",\n    \".flac\": \"audio/flac\",\n    // Text / documents\n    \".txt\": \"text/plain\",\n    \".md\": \"text/markdown\",\n    \".rtf\": \"application/rtf\",\n    \".pdf\": \"application/pdf\",\n    // Structured data (browser-compatible)\n    \".json\": \"application/json\",\n    \".xml\": \"text/xml\",\n    \".csv\": \"text/csv\",\n    \".tsv\": \"text/tab-separated-values\",\n    \".yaml\": \"text/yaml\",\n    \".yml\": \"text/yaml\",\n    // Web / code\n    \".html\": \"text/html\",\n    \".htm\": \"text/html\",\n    \".css\": \"text/css\",\n    \".js\": \"text/javascript\",\n    \".mjs\": \"text/javascript\",\n    \".ts\": \"application/typescript\",\n    \".jsx\": \"text/jsx\",\n    \".tsx\": \"text/tsx\",\n    \".wasm\": \"application/wasm\",\n    // Office documents\n    \".doc\": \"application/msword\",\n    \".docx\": \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n    \".xls\": \"application/vnd.ms-excel\",\n    \".xlsb\": \"application/vnd.ms-excel.sheet.binary.macroenabled.12\",\n    \".xlsx\": \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\n    \".ppt\": \"application/vnd.ms-powerpoint\",\n    \".pptx\": \"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\n    \".odt\": \"application/vnd.oasis.opendocument.text\",\n    \".ods\": \"application/vnd.oasis.opendocument.spreadsheet\",\n    \".odp\": \"application/vnd.oasis.opendocument.presentation\",\n    // Archives\n    \".zip\": \"application/zip\",\n    \".tar\": \"application/x-tar\",\n    \".gz\": \"application/gzip\",\n    \".tgz\": \"application/gzip\",\n    \".bz2\": \"application/x-bzip2\",\n    \".xz\": \"application/x-xz\",\n    \".7z\": \"application/x-7z-compressed\",\n    \".rar\": \"application/vnd.rar\",\n    // Fonts\n    \".ttf\": \"font/ttf\",\n    \".otf\": \"font/otf\",\n    \".woff\": \"font/woff\",\n    \".woff2\": \"font/woff2\",\n    // Executables / binaries\n    \".exe\": \"application/vnd.microsoft.portable-executable\",\n    \".dll\": \"application/vnd.microsoft.portable-executable\",\n    \".bin\": \"application/octet-stream\",\n    \".dmg\": \"application/x-apple-diskimage\",\n    \".pkg\": \"application/octet-stream\",\n    \".deb\": \"application/vnd.debian.binary-package\",\n    \".rpm\": \"application/x-rpm\",\n    // Columnar / big data\n    \".parquet\": \"application/octet-stream\", // browsers do NOT emit application/parquet\n    \".arrow\": \"application/octet-stream\",\n    \".feather\": \"application/octet-stream\",\n    \".orc\": \"application/octet-stream\",\n    // Scientific / numerical\n    \".npy\": \"application/octet-stream\",\n    \".npz\": \"application/octet-stream\",\n    \".mat\": \"application/octet-stream\",\n    \".h5\": \"application/octet-stream\",\n    \".hdf5\": \"application/octet-stream\",\n    \".zarr\": \"application/octet-stream\",\n    // R ecosystem\n    \".rds\": \"application/octet-stream\",\n    \".rda\": \"application/octet-stream\",\n    \".rdata\": \"application/octet-stream\",\n    // Notebooks\n    \".ipynb\": \"application/json\",\n    // ML models / artifacts\n    \".pkl\": \"application/octet-stream\",\n    \".pickle\": \"application/octet-stream\",\n    \".joblib\": \"application/octet-stream\",\n    \".onnx\": \"application/octet-stream\",\n    \".pt\": \"application/octet-stream\",\n    \".pth\": \"application/octet-stream\",\n    \".h5model\": \"application/octet-stream\",\n    // Vector\n    \".shp\": \"application/octet-stream\",\n    \".shx\": \"application/octet-stream\",\n    \".dbf\": \"application/octet-stream\",\n    \".geojson\": \"application/geo+json\",\n    \".gpkg\": \"application/octet-stream\",\n    // Raster\n    \".geotiff\": \"image/tiff\",\n    \".asc\": \"text/plain\",\n};\nclass FileDropperView extends input_widget_1.InputWidgetView {\n    constructor() {\n        super(...arguments);\n        this._file_pond = null;\n        this._transfer_in_process = null;\n    }\n    extensionsToMimeTypes(types) {\n        return types.map(type => {\n            // MIME types, including wildcards like \"image/*\"\n            if (type.includes(\"/\")) {\n                return type;\n            }\n            // Guessing it's an extension\n            if (type.startsWith(\".\")) {\n                const lowerType = type.toLowerCase();\n                return EXTENSION_TO_MIME_TYPE[lowerType] || type;\n            }\n            return type;\n        });\n    }\n    initialize() {\n        super.initialize();\n        const { previews } = this.model;\n        if (previews.includes(\"image\")) {\n            window.FilePond.registerPlugin(window.FilePondPluginImagePreview);\n        }\n        if (previews.includes(\"pdf\")) {\n            window.FilePond.registerPlugin(window.FilePondPluginPdfPreview);\n        }\n        window.FilePond.registerPlugin(window.FilePondPluginFileValidateType);\n        window.FilePond.registerPlugin(window.FilePondPluginFileValidateSize);\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { disabled, layout, max_file_size, max_files, max_total_file_size, multiple } = this.model.properties;\n        this.on_change([disabled, max_file_size, max_files, max_total_file_size, multiple, layout], () => {\n            this._file_pond?.setOptions({\n                acceptedFileTypes: this.extensionsToMimeTypes(this.model.accepted_filetypes),\n                allowMultiple: this.model.multiple,\n                disabled: this.model.disabled,\n                maxFiles: this.model.max_files,\n                maxFileSize: this.model.max_file_size,\n                maxTotalFileSize: this.model.max_total_file_size,\n                stylePanelLayout: this.model.layout,\n            });\n        });\n    }\n    remove() {\n        if (this._file_pond) {\n            this._file_pond.destroy();\n        }\n        super.remove();\n    }\n    stylesheets() {\n        return [...super.stylesheets(), filedropper_css_1.default];\n    }\n    _render_input() {\n        const { multiple, disabled } = this.model;\n        return this.input_el = (0, dom_1.input)({ type: \"file\", class: inputs.input, multiple, disabled });\n    }\n    render() {\n        super.render();\n        this._file_pond = window.FilePond.create(this.input_el, {\n            acceptedFileTypes: this.extensionsToMimeTypes(this.model.accepted_filetypes),\n            allowMultiple: this.model.multiple,\n            credits: false,\n            disabled: this.model.disabled,\n            maxFiles: this.model.max_files,\n            maxFileSize: this.model.max_file_size,\n            maxTotalFileSize: this.model.max_total_file_size,\n            server: {\n                process: (_, file, __, load, error, progress) => {\n                    void this._process_upload(file, load, error, progress);\n                },\n                fetch: null,\n                revert: (id, load) => {\n                    this.model.trigger_event(new DeleteEvent({ name: id }));\n                    load();\n                },\n            },\n            stylePanelLayout: this.model.layout,\n        });\n    }\n    async _process_upload(file, load, error, progress) {\n        const buffer_size = this.model.chunk_size;\n        const chunks = Math.ceil((file.size + 1) / buffer_size); // +1 is for empty files\n        let abort_flag = false;\n        new Promise(async (resolve, reject) => {\n            for (let i = 0; i < chunks; i++) {\n                if (abort_flag) {\n                    reject(file.name);\n                    return;\n                }\n                const start = i * buffer_size;\n                const end = Math.min(start + buffer_size, file.size);\n                this.model.trigger_event(new UploadEvent({\n                    chunk: i + 1,\n                    data: await file.slice(start, end).arrayBuffer(),\n                    name: file._relativePath || file.name,\n                    total_chunks: chunks,\n                    type: file.type,\n                }));\n                progress(true, end, file.size);\n            }\n            load(file.name);\n            resolve(file.name);\n        }).catch(() => error(\"Upload failed.\"));\n        return { abort: () => {\n                abort_flag = true;\n            } };\n    }\n}\nexports.FileDropperView = FileDropperView;\nFileDropperView.__name__ = \"FileDropperView\";\nexports.DropperLayout = (0, kinds_1.Enum)(\"integrated\", \"compact\", \"circle\");\nclass FileDropper extends input_widget_1.InputWidget {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.FileDropper = FileDropper;\n_c = FileDropper;\nFileDropper.__name__ = \"FileDropper\";\nFileDropper.__module__ = \"panel.models.file_dropper\";\n(() => {\n    _c.prototype.default_view = FileDropperView;\n    _c.define(({ Any, List, Bool, Int, Nullable, Str }) => ({\n        accepted_filetypes: [List(Str), []],\n        chunk_size: [Int, 10000000],\n        max_file_size: [Nullable(Str), null],\n        max_files: [Nullable(Int), null],\n        max_total_file_size: [Nullable(Str), null],\n        mime_type: [Any, {}],\n        multiple: [Bool, true],\n        layout: [Nullable(exports.DropperLayout), null],\n        previews: [List(Str), [\"image\", \"pdf\"]],\n    }));\n})();\n//# sourceMappingURL=file_dropper.js.map\n","type":"js","dependency_paths":[["../styles/models/filedropper.css","/home/runner/work/panel/panel/panel/dist/lib/styles/models/filedropper.css.js"]],"dependency_map":[],"exported":[{"type":"named","name":"UploadEvent"},{"type":"named","name":"DeleteEvent"},{"type":"named","name":"FileDropperView"},{"type":"named","name":"FileDropper"}],"externals":[],"shims":[]},"code":{"source":"/* models/file_dropper.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a, _b, _c;\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const kinds_1 = require(\"@bokehjs/core/kinds\");\n    const input_widget_1 = require(\"@bokehjs/models/widgets/input_widget\");\n    const inputs = tslib_1.__importStar(require(\"@bokehjs/styles/widgets/inputs.css\"));\n    const filedropper_css_1 = tslib_1.__importDefault(require(\"c03dd3c931\") /* ../styles/models/filedropper.css */);\n    class UploadEvent extends bokeh_events_1.ModelEvent {\n        constructor(data) {\n            super();\n            this.data = data;\n        }\n        get event_values() {\n            return { model: this.origin, data: this.data };\n        }\n    }\n    exports.UploadEvent = UploadEvent;\n    _a = UploadEvent;\n    UploadEvent.__name__ = \"UploadEvent\";\n    (() => {\n        _a.prototype.event_name = \"upload_event\";\n    })();\n    class DeleteEvent extends bokeh_events_1.ModelEvent {\n        constructor(data) {\n            super();\n            this.data = data;\n        }\n        get event_values() {\n            return { model: this.origin, data: this.data };\n        }\n    }\n    exports.DeleteEvent = DeleteEvent;\n    _b = DeleteEvent;\n    DeleteEvent.__name__ = \"DeleteEvent\";\n    (() => {\n        _b.prototype.event_name = \"delete_event\";\n    })();\n    // Mapping of file extensions to browser-reported MIME types\n    // as it's not yet supported by filepond, see:\n    // https://github.com/pqina/filepond-plugin-file-validate-type/issues/13\n    const EXTENSION_TO_MIME_TYPE = {\n        // Images\n        \".png\": \"image/png\",\n        \".jpg\": \"image/jpeg\",\n        \".jpeg\": \"image/jpeg\",\n        \".gif\": \"image/gif\",\n        \".svg\": \"image/svg+xml\",\n        \".webp\": \"image/webp\",\n        \".bmp\": \"image/bmp\",\n        \".ico\": \"image/x-icon\",\n        \".tiff\": \"image/tiff\",\n        \".tif\": \"image/tiff\",\n        \".avif\": \"image/avif\",\n        // Video\n        \".mp4\": \"video/mp4\",\n        \".webm\": \"video/webm\",\n        \".mov\": \"video/quicktime\",\n        \".mkv\": \"video/x-matroska\",\n        \".avi\": \"video/x-msvideo\",\n        \".wmv\": \"video/x-ms-wmv\",\n        \".flv\": \"video/x-flv\",\n        // Audio\n        \".mp3\": \"audio/mpeg\",\n        \".wav\": \"audio/wav\",\n        \".ogg\": \"audio/ogg\",\n        \".oga\": \"audio/ogg\",\n        \".m4a\": \"audio/mp4\",\n        \".aac\": \"audio/aac\",\n        \".flac\": \"audio/flac\",\n        // Text / documents\n        \".txt\": \"text/plain\",\n        \".md\": \"text/markdown\",\n        \".rtf\": \"application/rtf\",\n        \".pdf\": \"application/pdf\",\n        // Structured data (browser-compatible)\n        \".json\": \"application/json\",\n        \".xml\": \"text/xml\",\n        \".csv\": \"text/csv\",\n        \".tsv\": \"text/tab-separated-values\",\n        \".yaml\": \"text/yaml\",\n        \".yml\": \"text/yaml\",\n        // Web / code\n        \".html\": \"text/html\",\n        \".htm\": \"text/html\",\n        \".css\": \"text/css\",\n        \".js\": \"text/javascript\",\n        \".mjs\": \"text/javascript\",\n        \".ts\": \"application/typescript\",\n        \".jsx\": \"text/jsx\",\n        \".tsx\": \"text/tsx\",\n        \".wasm\": \"application/wasm\",\n        // Office documents\n        \".doc\": \"application/msword\",\n        \".docx\": \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n        \".xls\": \"application/vnd.ms-excel\",\n        \".xlsb\": \"application/vnd.ms-excel.sheet.binary.macroenabled.12\",\n        \".xlsx\": \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\n        \".ppt\": \"application/vnd.ms-powerpoint\",\n        \".pptx\": \"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\n        \".odt\": \"application/vnd.oasis.opendocument.text\",\n        \".ods\": \"application/vnd.oasis.opendocument.spreadsheet\",\n        \".odp\": \"application/vnd.oasis.opendocument.presentation\",\n        // Archives\n        \".zip\": \"application/zip\",\n        \".tar\": \"application/x-tar\",\n        \".gz\": \"application/gzip\",\n        \".tgz\": \"application/gzip\",\n        \".bz2\": \"application/x-bzip2\",\n        \".xz\": \"application/x-xz\",\n        \".7z\": \"application/x-7z-compressed\",\n        \".rar\": \"application/vnd.rar\",\n        // Fonts\n        \".ttf\": \"font/ttf\",\n        \".otf\": \"font/otf\",\n        \".woff\": \"font/woff\",\n        \".woff2\": \"font/woff2\",\n        // Executables / binaries\n        \".exe\": \"application/vnd.microsoft.portable-executable\",\n        \".dll\": \"application/vnd.microsoft.portable-executable\",\n        \".bin\": \"application/octet-stream\",\n        \".dmg\": \"application/x-apple-diskimage\",\n        \".pkg\": \"application/octet-stream\",\n        \".deb\": \"application/vnd.debian.binary-package\",\n        \".rpm\": \"application/x-rpm\",\n        // Columnar / big data\n        \".parquet\": \"application/octet-stream\", // browsers do NOT emit application/parquet\n        \".arrow\": \"application/octet-stream\",\n        \".feather\": \"application/octet-stream\",\n        \".orc\": \"application/octet-stream\",\n        // Scientific / numerical\n        \".npy\": \"application/octet-stream\",\n        \".npz\": \"application/octet-stream\",\n        \".mat\": \"application/octet-stream\",\n        \".h5\": \"application/octet-stream\",\n        \".hdf5\": \"application/octet-stream\",\n        \".zarr\": \"application/octet-stream\",\n        // R ecosystem\n        \".rds\": \"application/octet-stream\",\n        \".rda\": \"application/octet-stream\",\n        \".rdata\": \"application/octet-stream\",\n        // Notebooks\n        \".ipynb\": \"application/json\",\n        // ML models / artifacts\n        \".pkl\": \"application/octet-stream\",\n        \".pickle\": \"application/octet-stream\",\n        \".joblib\": \"application/octet-stream\",\n        \".onnx\": \"application/octet-stream\",\n        \".pt\": \"application/octet-stream\",\n        \".pth\": \"application/octet-stream\",\n        \".h5model\": \"application/octet-stream\",\n        // Vector\n        \".shp\": \"application/octet-stream\",\n        \".shx\": \"application/octet-stream\",\n        \".dbf\": \"application/octet-stream\",\n        \".geojson\": \"application/geo+json\",\n        \".gpkg\": \"application/octet-stream\",\n        // Raster\n        \".geotiff\": \"image/tiff\",\n        \".asc\": \"text/plain\",\n    };\n    class FileDropperView extends input_widget_1.InputWidgetView {\n        constructor() {\n            super(...arguments);\n            this._file_pond = null;\n            this._transfer_in_process = null;\n        }\n        extensionsToMimeTypes(types) {\n            return types.map(type => {\n                // MIME types, including wildcards like \"image/*\"\n                if (type.includes(\"/\")) {\n                    return type;\n                }\n                // Guessing it's an extension\n                if (type.startsWith(\".\")) {\n                    const lowerType = type.toLowerCase();\n                    return EXTENSION_TO_MIME_TYPE[lowerType] || type;\n                }\n                return type;\n            });\n        }\n        initialize() {\n            super.initialize();\n            const { previews } = this.model;\n            if (previews.includes(\"image\")) {\n                window.FilePond.registerPlugin(window.FilePondPluginImagePreview);\n            }\n            if (previews.includes(\"pdf\")) {\n                window.FilePond.registerPlugin(window.FilePondPluginPdfPreview);\n            }\n            window.FilePond.registerPlugin(window.FilePondPluginFileValidateType);\n            window.FilePond.registerPlugin(window.FilePondPluginFileValidateSize);\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { disabled, layout, max_file_size, max_files, max_total_file_size, multiple } = this.model.properties;\n            this.on_change([disabled, max_file_size, max_files, max_total_file_size, multiple, layout], () => {\n                this._file_pond?.setOptions({\n                    acceptedFileTypes: this.extensionsToMimeTypes(this.model.accepted_filetypes),\n                    allowMultiple: this.model.multiple,\n                    disabled: this.model.disabled,\n                    maxFiles: this.model.max_files,\n                    maxFileSize: this.model.max_file_size,\n                    maxTotalFileSize: this.model.max_total_file_size,\n                    stylePanelLayout: this.model.layout,\n                });\n            });\n        }\n        remove() {\n            if (this._file_pond) {\n                this._file_pond.destroy();\n            }\n            super.remove();\n        }\n        stylesheets() {\n            return [...super.stylesheets(), filedropper_css_1.default];\n        }\n        _render_input() {\n            const { multiple, disabled } = this.model;\n            return this.input_el = (0, dom_1.input)({ type: \"file\", class: inputs.input, multiple, disabled });\n        }\n        render() {\n            super.render();\n            this._file_pond = window.FilePond.create(this.input_el, {\n                acceptedFileTypes: this.extensionsToMimeTypes(this.model.accepted_filetypes),\n                allowMultiple: this.model.multiple,\n                credits: false,\n                disabled: this.model.disabled,\n                maxFiles: this.model.max_files,\n                maxFileSize: this.model.max_file_size,\n                maxTotalFileSize: this.model.max_total_file_size,\n                server: {\n                    process: (_, file, __, load, error, progress) => {\n                        void this._process_upload(file, load, error, progress);\n                    },\n                    fetch: null,\n                    revert: (id, load) => {\n                        this.model.trigger_event(new DeleteEvent({ name: id }));\n                        load();\n                    },\n                },\n                stylePanelLayout: this.model.layout,\n            });\n        }\n        async _process_upload(file, load, error, progress) {\n            const buffer_size = this.model.chunk_size;\n            const chunks = Math.ceil((file.size + 1) / buffer_size); // +1 is for empty files\n            let abort_flag = false;\n            new Promise(async (resolve, reject) => {\n                for (let i = 0; i < chunks; i++) {\n                    if (abort_flag) {\n                        reject(file.name);\n                        return;\n                    }\n                    const start = i * buffer_size;\n                    const end = Math.min(start + buffer_size, file.size);\n                    this.model.trigger_event(new UploadEvent({\n                        chunk: i + 1,\n                        data: await file.slice(start, end).arrayBuffer(),\n                        name: file._relativePath || file.name,\n                        total_chunks: chunks,\n                        type: file.type,\n                    }));\n                    progress(true, end, file.size);\n                }\n                load(file.name);\n                resolve(file.name);\n            }).catch(() => error(\"Upload failed.\"));\n            return { abort: () => {\n                    abort_flag = true;\n                } };\n        }\n    }\n    exports.FileDropperView = FileDropperView;\n    FileDropperView.__name__ = \"FileDropperView\";\n    exports.DropperLayout = (0, kinds_1.Enum)(\"integrated\", \"compact\", \"circle\");\n    class FileDropper extends input_widget_1.InputWidget {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.FileDropper = FileDropper;\n    _c = FileDropper;\n    FileDropper.__name__ = \"FileDropper\";\n    FileDropper.__module__ = \"panel.models.file_dropper\";\n    (() => {\n        _c.prototype.default_view = FileDropperView;\n        _c.define(({ Any, List, Bool, Int, Nullable, Str }) => ({\n            accepted_filetypes: [List(Str), []],\n            chunk_size: [Int, 10000000],\n            max_file_size: [Nullable(Str), null],\n            max_files: [Nullable(Int), null],\n            max_total_file_size: [Nullable(Str), null],\n            mime_type: [Any, {}],\n            multiple: [Bool, true],\n            layout: [Nullable(exports.DropperLayout), null],\n            previews: [List(Str), [\"image\", \"pdf\"]],\n        }));\n    })();\n}\n","min_source":"function _(e,t,i,a,o){var l,s,p;a();const n=e(\"tslib\"),c=e(\"@bokehjs/core/bokeh_events\"),r=e(\"@bokehjs/core/dom\"),m=e(\"@bokehjs/core/kinds\"),d=e(\"@bokehjs/models/widgets/input_widget\"),u=n.__importStar(e(\"@bokehjs/styles/widgets/inputs.css\")),_=n.__importDefault(e(\"c03dd3c931\"));class f extends c.ModelEvent{constructor(e){super(),this.data=e}get event_values(){return{model:this.origin,data:this.data}}}i.UploadEvent=f,l=f,f.__name__=\"UploadEvent\",l.prototype.event_name=\"upload_event\";class x extends c.ModelEvent{constructor(e){super(),this.data=e}get event_values(){return{model:this.origin,data:this.data}}}i.DeleteEvent=x,s=x,x.__name__=\"DeleteEvent\",s.prototype.event_name=\"delete_event\";const g={\".png\":\"image/png\",\".jpg\":\"image/jpeg\",\".jpeg\":\"image/jpeg\",\".gif\":\"image/gif\",\".svg\":\"image/svg+xml\",\".webp\":\"image/webp\",\".bmp\":\"image/bmp\",\".ico\":\"image/x-icon\",\".tiff\":\"image/tiff\",\".tif\":\"image/tiff\",\".avif\":\"image/avif\",\".mp4\":\"video/mp4\",\".webm\":\"video/webm\",\".mov\":\"video/quicktime\",\".mkv\":\"video/x-matroska\",\".avi\":\"video/x-msvideo\",\".wmv\":\"video/x-ms-wmv\",\".flv\":\"video/x-flv\",\".mp3\":\"audio/mpeg\",\".wav\":\"audio/wav\",\".ogg\":\"audio/ogg\",\".oga\":\"audio/ogg\",\".m4a\":\"audio/mp4\",\".aac\":\"audio/aac\",\".flac\":\"audio/flac\",\".txt\":\"text/plain\",\".md\":\"text/markdown\",\".rtf\":\"application/rtf\",\".pdf\":\"application/pdf\",\".json\":\"application/json\",\".xml\":\"text/xml\",\".csv\":\"text/csv\",\".tsv\":\"text/tab-separated-values\",\".yaml\":\"text/yaml\",\".yml\":\"text/yaml\",\".html\":\"text/html\",\".htm\":\"text/html\",\".css\":\"text/css\",\".js\":\"text/javascript\",\".mjs\":\"text/javascript\",\".ts\":\"application/typescript\",\".jsx\":\"text/jsx\",\".tsx\":\"text/tsx\",\".wasm\":\"application/wasm\",\".doc\":\"application/msword\",\".docx\":\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\".xls\":\"application/vnd.ms-excel\",\".xlsb\":\"application/vnd.ms-excel.sheet.binary.macroenabled.12\",\".xlsx\":\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\".ppt\":\"application/vnd.ms-powerpoint\",\".pptx\":\"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\".odt\":\"application/vnd.oasis.opendocument.text\",\".ods\":\"application/vnd.oasis.opendocument.spreadsheet\",\".odp\":\"application/vnd.oasis.opendocument.presentation\",\".zip\":\"application/zip\",\".tar\":\"application/x-tar\",\".gz\":\"application/gzip\",\".tgz\":\"application/gzip\",\".bz2\":\"application/x-bzip2\",\".xz\":\"application/x-xz\",\".7z\":\"application/x-7z-compressed\",\".rar\":\"application/vnd.rar\",\".ttf\":\"font/ttf\",\".otf\":\"font/otf\",\".woff\":\"font/woff\",\".woff2\":\"font/woff2\",\".exe\":\"application/vnd.microsoft.portable-executable\",\".dll\":\"application/vnd.microsoft.portable-executable\",\".bin\":\"application/octet-stream\",\".dmg\":\"application/x-apple-diskimage\",\".pkg\":\"application/octet-stream\",\".deb\":\"application/vnd.debian.binary-package\",\".rpm\":\"application/x-rpm\",\".parquet\":\"application/octet-stream\",\".arrow\":\"application/octet-stream\",\".feather\":\"application/octet-stream\",\".orc\":\"application/octet-stream\",\".npy\":\"application/octet-stream\",\".npz\":\"application/octet-stream\",\".mat\":\"application/octet-stream\",\".h5\":\"application/octet-stream\",\".hdf5\":\"application/octet-stream\",\".zarr\":\"application/octet-stream\",\".rds\":\"application/octet-stream\",\".rda\":\"application/octet-stream\",\".rdata\":\"application/octet-stream\",\".ipynb\":\"application/json\",\".pkl\":\"application/octet-stream\",\".pickle\":\"application/octet-stream\",\".joblib\":\"application/octet-stream\",\".onnx\":\"application/octet-stream\",\".pt\":\"application/octet-stream\",\".pth\":\"application/octet-stream\",\".h5model\":\"application/octet-stream\",\".shp\":\"application/octet-stream\",\".shx\":\"application/octet-stream\",\".dbf\":\"application/octet-stream\",\".geojson\":\"application/geo+json\",\".gpkg\":\"application/octet-stream\",\".geotiff\":\"image/tiff\",\".asc\":\"text/plain\"};class h extends d.InputWidgetView{constructor(){super(...arguments),this._file_pond=null,this._transfer_in_process=null}extensionsToMimeTypes(e){return e.map((e=>{if(e.includes(\"/\"))return e;if(e.startsWith(\".\")){const t=e.toLowerCase();return g[t]||e}return e}))}initialize(){super.initialize();const{previews:e}=this.model;e.includes(\"image\")&&window.FilePond.registerPlugin(window.FilePondPluginImagePreview),e.includes(\"pdf\")&&window.FilePond.registerPlugin(window.FilePondPluginPdfPreview),window.FilePond.registerPlugin(window.FilePondPluginFileValidateType),window.FilePond.registerPlugin(window.FilePondPluginFileValidateSize)}connect_signals(){super.connect_signals();const{disabled:e,layout:t,max_file_size:i,max_files:a,max_total_file_size:o,multiple:l}=this.model.properties;this.on_change([e,i,a,o,l,t],(()=>{this._file_pond?.setOptions({acceptedFileTypes:this.extensionsToMimeTypes(this.model.accepted_filetypes),allowMultiple:this.model.multiple,disabled:this.model.disabled,maxFiles:this.model.max_files,maxFileSize:this.model.max_file_size,maxTotalFileSize:this.model.max_total_file_size,stylePanelLayout:this.model.layout})}))}remove(){this._file_pond&&this._file_pond.destroy(),super.remove()}stylesheets(){return[...super.stylesheets(),_.default]}_render_input(){const{multiple:e,disabled:t}=this.model;return this.input_el=(0,r.input)({type:\"file\",class:u.input,multiple:e,disabled:t})}render(){super.render(),this._file_pond=window.FilePond.create(this.input_el,{acceptedFileTypes:this.extensionsToMimeTypes(this.model.accepted_filetypes),allowMultiple:this.model.multiple,credits:!1,disabled:this.model.disabled,maxFiles:this.model.max_files,maxFileSize:this.model.max_file_size,maxTotalFileSize:this.model.max_total_file_size,server:{process:(e,t,i,a,o,l)=>{this._process_upload(t,a,o,l)},fetch:null,revert:(e,t)=>{this.model.trigger_event(new x({name:e})),t()}},stylePanelLayout:this.model.layout})}async _process_upload(e,t,i,a){const o=this.model.chunk_size,l=Math.ceil((e.size+1)/o);let s=!1;return new Promise((async(i,p)=>{for(let t=0;t<l;t++){if(s)return void p(e.name);const i=t*o,n=Math.min(i+o,e.size);this.model.trigger_event(new f({chunk:t+1,data:await e.slice(i,n).arrayBuffer(),name:e._relativePath||e.name,total_chunks:l,type:e.type})),a(!0,n,e.size)}t(e.name),i(e.name)})).catch((()=>i(\"Upload failed.\"))),{abort:()=>{s=!0}}}}i.FileDropperView=h,h.__name__=\"FileDropperView\",i.DropperLayout=(0,m.Enum)(\"integrated\",\"compact\",\"circle\");class v extends d.InputWidget{constructor(e){super(e)}}i.FileDropper=v,p=v,v.__name__=\"FileDropper\",v.__module__=\"panel.models.file_dropper\",p.prototype.default_view=h,p.define((({Any:e,List:t,Bool:a,Int:o,Nullable:l,Str:s})=>({accepted_filetypes:[t(s),[]],chunk_size:[o,1e7],max_file_size:[l(s),null],max_files:[l(o),null],max_total_file_size:[l(s),null],mime_type:[e,{}],multiple:[a,!0],layout:[l(i.DropperLayout),null],previews:[t(s),[\"image\",\"pdf\"]]})))}\n//# sourceMappingURL=file_dropper.min.js.map","min_map":"{\"version\":3,\"file\":\"file_dropper.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"_b\",\"_c\",\"tslib_1\",\"bokeh_events_1\",\"dom_1\",\"kinds_1\",\"input_widget_1\",\"inputs\",\"__importStar\",\"filedropper_css_1\",\"__importDefault\",\"UploadEvent\",\"ModelEvent\",\"constructor\",\"data\",\"super\",\"this\",\"event_values\",\"model\",\"origin\",\"__name__\",\"prototype\",\"event_name\",\"DeleteEvent\",\"EXTENSION_TO_MIME_TYPE\",\"FileDropperView\",\"InputWidgetView\",\"arguments\",\"_file_pond\",\"_transfer_in_process\",\"extensionsToMimeTypes\",\"types\",\"map\",\"type\",\"includes\",\"startsWith\",\"lowerType\",\"toLowerCase\",\"initialize\",\"previews\",\"window\",\"FilePond\",\"registerPlugin\",\"FilePondPluginImagePreview\",\"FilePondPluginPdfPreview\",\"FilePondPluginFileValidateType\",\"FilePondPluginFileValidateSize\",\"connect_signals\",\"disabled\",\"layout\",\"max_file_size\",\"max_files\",\"max_total_file_size\",\"multiple\",\"properties\",\"on_change\",\"setOptions\",\"acceptedFileTypes\",\"accepted_filetypes\",\"allowMultiple\",\"maxFiles\",\"maxFileSize\",\"maxTotalFileSize\",\"stylePanelLayout\",\"remove\",\"destroy\",\"stylesheets\",\"default\",\"_render_input\",\"input_el\",\"input\",\"class\",\"render\",\"create\",\"credits\",\"server\",\"process\",\"file\",\"__\",\"load\",\"error\",\"progress\",\"_process_upload\",\"fetch\",\"revert\",\"id\",\"trigger_event\",\"name\",\"buffer_size\",\"chunk_size\",\"chunks\",\"Math\",\"ceil\",\"size\",\"abort_flag\",\"Promise\",\"async\",\"resolve\",\"reject\",\"i\",\"start\",\"end\",\"min\",\"chunk\",\"slice\",\"arrayBuffer\",\"_relativePath\",\"total_chunks\",\"catch\",\"abort\",\"DropperLayout\",\"Enum\",\"FileDropper\",\"InputWidget\",\"attrs\",\"__module__\",\"default_view\",\"define\",\"Any\",\"List\",\"Bool\",\"Int\",\"Nullable\",\"Str\",\"mime_type\"],\"sources\":[\"0\"],\"mappings\":\"AAA6B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC1E,IAAIC,EAAIC,EAAIC,EACZJ,IACA,MAAMK,EAAUR,EAAQ,SAClBS,EAAiBT,EAAQ,8BACzBU,EAAQV,EAAQ,qBAChBW,EAAUX,EAAQ,uBAClBY,EAAiBZ,EAAQ,wCACzBa,EAASL,EAAQM,aAAad,EAAQ,uCACtCe,EAAoBP,EAAQQ,gBAAgBhB,EAAQ,eAC1D,MAAMiB,UAAoBR,EAAeS,WACrC,WAAAC,CAAYC,GACRC,QACAC,KAAKF,KAAOA,CAChB,CACA,gBAAIG,GACA,MAAO,CAAEC,MAAOF,KAAKG,OAAQL,KAAME,KAAKF,KAC5C,EAEJlB,EAAQe,YAAcA,EACtBZ,EAAKY,EACLA,EAAYS,SAAW,cAEnBrB,EAAGsB,UAAUC,WAAa,eAE9B,MAAMC,UAAoBpB,EAAeS,WACrC,WAAAC,CAAYC,GACRC,QACAC,KAAKF,KAAOA,CAChB,CACA,gBAAIG,GACA,MAAO,CAAEC,MAAOF,KAAKG,OAAQL,KAAME,KAAKF,KAC5C,EAEJlB,EAAQ2B,YAAcA,EACtBvB,EAAKuB,EACLA,EAAYH,SAAW,cAEnBpB,EAAGqB,UAAUC,WAAa,eAK9B,MAAME,EAAyB,CAE3B,OAAQ,YACR,OAAQ,aACR,QAAS,aACT,OAAQ,YACR,OAAQ,gBACR,QAAS,aACT,OAAQ,YACR,OAAQ,eACR,QAAS,aACT,OAAQ,aACR,QAAS,aAET,OAAQ,YACR,QAAS,aACT,OAAQ,kBACR,OAAQ,mBACR,OAAQ,kBACR,OAAQ,iBACR,OAAQ,cAER,OAAQ,aACR,OAAQ,YACR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AAE6B,MAAO,KACRf,GAAa,CAAI,EAE7B,EAEJlG,EAAQ6B,gBAAkBA,EAC1BA,EAAgBL,SAAW,kBAC3BxB,EAAQkH,eAAgB,EAAIzG,EAAQ0G,MAAM,aAAc,UAAW,UACnE,MAAMC,UAAoB1G,EAAe2G,YACrC,WAAApG,CAAYqG,GACRnG,MAAMmG,EACV,EAEJtH,EAAQoH,YAAcA,EACtB/G,EAAK+G,EACLA,EAAY5F,SAAW,cACvB4F,EAAYG,WAAa,4BAErBlH,EAAGoB,UAAU+F,aAAe3F,EAC5BxB,EAAGoH,QAAO,EAAGC,MAAKC,OAAMC,OAAMC,MAAKC,WAAUC,UAAU,CACnDjE,mBAAoB,CAAC6D,EAAKI,GAAM,IAChClC,WAAY,CAACgC,EAAK,KAClBvE,cAAe,CAACwE,EAASC,GAAM,MAC/BxE,UAAW,CAACuE,EAASD,GAAM,MAC3BrE,oBAAqB,CAACsE,EAASC,GAAM,MACrCC,UAAW,CAACN,EAAK,CAAC,GAClBjE,SAAU,CAACmE,GAAM,GACjBvE,OAAQ,CAACyE,EAAS9H,EAAQkH,eAAgB,MAC1CvE,SAAU,CAACgF,EAAKI,GAAM,CAAC,QAAS,WAG5C\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/styles/models/filedropper.css.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"styles/models/filedropper.css.js","canonical":"styles/models/filedropper.css","resolution":"ESM","id":"c03dd3c931","hash":"c03dd3c9311497fb856abc1f41c31e139cbf6528c70a884dfd748a973cafd685","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.input = void 0;\nexports.input = \"bk-input\";\nexports.default = `.bk-input.filepond--root{background-color:var(--panel-surface-color, #f1f1f1);border:unset;}.bk-input.filepond--root .filepond--drop-label{color:var(--panel-on-surface-color, #000);background-color:var(--panel-surface-color, #f1f1f1);}`;\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"default"}],"externals":[],"shims":[]},"code":{"source":"/* styles/models/filedropper.css.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.input = \"bk-input\";\n    exports.default = `.bk-input.filepond--root{background-color:var(--panel-surface-color, #f1f1f1);border:unset;}.bk-input.filepond--root .filepond--drop-label{color:var(--panel-on-surface-color, #000);background-color:var(--panel-surface-color, #f1f1f1);}`;\n}\n","min_source":"function _(o,r,n,l,f){l(),n.input=\"bk-input\",n.default=\".bk-input.filepond--root{background-color:var(--panel-surface-color, #f1f1f1);border:unset;}.bk-input.filepond--root .filepond--drop-label{color:var(--panel-on-surface-color, #000);background-color:var(--panel-surface-color, #f1f1f1);}\"}\n//# sourceMappingURL=filedropper.css.min.js.map","min_map":"{\"version\":3,\"file\":\"filedropper.css.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"input\",\"default\"],\"sources\":[\"0\"],\"mappings\":\"AAAuC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACpFD,IACAD,EAAQG,MAAQ,WAChBH,EAAQI,QAAU,6OACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/ipywidget.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/ipywidget.js","canonical":"models/ipywidget","resolution":"ESM","id":"8a8089cbf3","hash":"8a8089cbf3bbb06273d6a935eb6ccf8129e6d20e9ff17a21a48efd015debe0f7","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.IPyWidget = exports.IPyWidgetView = void 0;\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst layout_1 = require(\"./layout\");\nconst Jupyter = window.Jupyter;\nclass IPyWidgetView extends layout_1.HTMLBoxView {\n    initialize() {\n        super.initialize();\n        let manager;\n        if ((Jupyter != null) && (Jupyter.notebook != null)) {\n            manager = Jupyter.notebook.kernel.widget_manager;\n        }\n        else if (window.PyViz.widget_manager != null) {\n            manager = window.PyViz.widget_manager;\n        }\n        else {\n            console.warn(\"Panel IPyWidget model could not find a WidgetManager\");\n            return;\n        }\n        this.manager = manager;\n        this.ipychildren = [];\n    }\n    remove() {\n        this.ipyview.remove();\n        super.remove();\n    }\n    _ipy_stylesheets() {\n        const stylesheets = [];\n        for (const child of document.head.children) {\n            if (child instanceof HTMLStyleElement) {\n                const raw_css = child.textContent;\n                if (raw_css != null) {\n                    const css = raw_css.replace(/:root/g, \":host\");\n                    stylesheets.push(new dom_1.InlineStyleSheet(css));\n                }\n            }\n        }\n        return stylesheets;\n    }\n    stylesheets() {\n        return [...super.stylesheets(), ...this._ipy_stylesheets()];\n    }\n    render() {\n        super.render();\n        const { spec, state } = this.model.bundle;\n        this.manager.set_state(state).then(async (models) => {\n            const model = models.find((item) => item.model_id == spec.model_id);\n            if (model == null) {\n                return;\n            }\n            const view = await this.manager.create_view(model, { el: this.el });\n            this.ipyview = view;\n            this.ipychildren = [];\n            if (view.children_views) {\n                for (const child of view.children_views.views) {\n                    this.ipychildren.push(await child);\n                }\n            }\n            this.shadow_el.appendChild(this.ipyview.el);\n            this.ipyview.trigger(\"displayed\", this.ipyview);\n            for (const child of this.ipychildren) {\n                child.trigger(\"displayed\", child);\n            }\n            this.invalidate_layout();\n        });\n    }\n}\nexports.IPyWidgetView = IPyWidgetView;\nIPyWidgetView.__name__ = \"IPyWidgetView\";\nclass IPyWidget extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.IPyWidget = IPyWidget;\n_a = IPyWidget;\nIPyWidget.__name__ = \"IPyWidget\";\nIPyWidget.__module__ = \"panel.models.ipywidget\";\n(() => {\n    _a.prototype.default_view = IPyWidgetView;\n    _a.define(({ Any }) => ({\n        bundle: [Any, {}],\n    }));\n})();\n//# sourceMappingURL=ipywidget.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"]],"dependency_map":[],"exported":[{"type":"named","name":"IPyWidgetView"},{"type":"named","name":"IPyWidget"}],"externals":[],"shims":[]},"code":{"source":"/* models/ipywidget.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    const Jupyter = window.Jupyter;\n    class IPyWidgetView extends layout_1.HTMLBoxView {\n        initialize() {\n            super.initialize();\n            let manager;\n            if ((Jupyter != null) && (Jupyter.notebook != null)) {\n                manager = Jupyter.notebook.kernel.widget_manager;\n            }\n            else if (window.PyViz.widget_manager != null) {\n                manager = window.PyViz.widget_manager;\n            }\n            else {\n                console.warn(\"Panel IPyWidget model could not find a WidgetManager\");\n                return;\n            }\n            this.manager = manager;\n            this.ipychildren = [];\n        }\n        remove() {\n            this.ipyview.remove();\n            super.remove();\n        }\n        _ipy_stylesheets() {\n            const stylesheets = [];\n            for (const child of document.head.children) {\n                if (child instanceof HTMLStyleElement) {\n                    const raw_css = child.textContent;\n                    if (raw_css != null) {\n                        const css = raw_css.replace(/:root/g, \":host\");\n                        stylesheets.push(new dom_1.InlineStyleSheet(css));\n                    }\n                }\n            }\n            return stylesheets;\n        }\n        stylesheets() {\n            return [...super.stylesheets(), ...this._ipy_stylesheets()];\n        }\n        render() {\n            super.render();\n            const { spec, state } = this.model.bundle;\n            this.manager.set_state(state).then(async (models) => {\n                const model = models.find((item) => item.model_id == spec.model_id);\n                if (model == null) {\n                    return;\n                }\n                const view = await this.manager.create_view(model, { el: this.el });\n                this.ipyview = view;\n                this.ipychildren = [];\n                if (view.children_views) {\n                    for (const child of view.children_views.views) {\n                        this.ipychildren.push(await child);\n                    }\n                }\n                this.shadow_el.appendChild(this.ipyview.el);\n                this.ipyview.trigger(\"displayed\", this.ipyview);\n                for (const child of this.ipychildren) {\n                    child.trigger(\"displayed\", child);\n                }\n                this.invalidate_layout();\n            });\n        }\n    }\n    exports.IPyWidgetView = IPyWidgetView;\n    IPyWidgetView.__name__ = \"IPyWidgetView\";\n    class IPyWidget extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.IPyWidget = IPyWidget;\n    _a = IPyWidget;\n    IPyWidget.__name__ = \"IPyWidget\";\n    IPyWidget.__module__ = \"panel.models.ipywidget\";\n    (() => {\n        _a.prototype.default_view = IPyWidgetView;\n        _a.define(({ Any }) => ({\n            bundle: [Any, {}],\n        }));\n    })();\n}\n","min_source":"function _(e,i,t,n,s){var o;n();const l=e(\"@bokehjs/core/dom\"),d=e(\"dab42e6dad\"),r=window.Jupyter;class a extends d.HTMLBoxView{initialize(){let e;if(super.initialize(),null!=r&&null!=r.notebook)e=r.notebook.kernel.widget_manager;else{if(null==window.PyViz.widget_manager)return void console.warn(\"Panel IPyWidget model could not find a WidgetManager\");e=window.PyViz.widget_manager}this.manager=e,this.ipychildren=[]}remove(){this.ipyview.remove(),super.remove()}_ipy_stylesheets(){const e=[];for(const i of document.head.children)if(i instanceof HTMLStyleElement){const t=i.textContent;if(null!=t){const i=t.replace(/:root/g,\":host\");e.push(new l.InlineStyleSheet(i))}}return e}stylesheets(){return[...super.stylesheets(),...this._ipy_stylesheets()]}render(){super.render();const{spec:e,state:i}=this.model.bundle;this.manager.set_state(i).then((async i=>{const t=i.find((i=>i.model_id==e.model_id));if(null==t)return;const n=await this.manager.create_view(t,{el:this.el});if(this.ipyview=n,this.ipychildren=[],n.children_views)for(const e of n.children_views.views)this.ipychildren.push(await e);this.shadow_el.appendChild(this.ipyview.el),this.ipyview.trigger(\"displayed\",this.ipyview);for(const e of this.ipychildren)e.trigger(\"displayed\",e);this.invalidate_layout()}))}}t.IPyWidgetView=a,a.__name__=\"IPyWidgetView\";class h extends d.HTMLBox{constructor(e){super(e)}}t.IPyWidget=h,o=h,h.__name__=\"IPyWidget\",h.__module__=\"panel.models.ipywidget\",o.prototype.default_view=a,o.define((({Any:e})=>({bundle:[e,{}]})))}\n//# sourceMappingURL=ipywidget.min.js.map","min_map":"{\"version\":3,\"file\":\"ipywidget.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"dom_1\",\"layout_1\",\"Jupyter\",\"window\",\"IPyWidgetView\",\"HTMLBoxView\",\"initialize\",\"manager\",\"super\",\"notebook\",\"kernel\",\"widget_manager\",\"PyViz\",\"console\",\"warn\",\"this\",\"ipychildren\",\"remove\",\"ipyview\",\"_ipy_stylesheets\",\"stylesheets\",\"child\",\"document\",\"head\",\"children\",\"HTMLStyleElement\",\"raw_css\",\"textContent\",\"css\",\"replace\",\"push\",\"InlineStyleSheet\",\"render\",\"spec\",\"state\",\"model\",\"bundle\",\"set_state\",\"then\",\"async\",\"models\",\"find\",\"item\",\"model_id\",\"view\",\"create_view\",\"el\",\"children_views\",\"views\",\"shadow_el\",\"appendChild\",\"trigger\",\"invalidate_layout\",\"__name__\",\"IPyWidget\",\"HTMLBox\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Any\"],\"sources\":[\"0\"],\"mappings\":\"AAA0B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACvE,IAAIC,EACJF,IACA,MAAMG,EAAQN,EAAQ,qBAChBO,EAAWP,EAAQ,cACnBQ,EAAUC,OAAOD,QACvB,MAAME,UAAsBH,EAASI,YACjC,UAAAC,GAEI,IAAIC,EACJ,GAFAC,MAAMF,aAEU,MAAXJ,GAAyC,MAApBA,EAAQO,SAC9BF,EAAUL,EAAQO,SAASC,OAAOC,mBAEjC,IAAmC,MAA/BR,OAAOS,MAAMD,eAKlB,YADAE,QAAQC,KAAK,wDAHbP,EAAUJ,OAAOS,MAAMD,cAK3B,CACAI,KAAKR,QAAUA,EACfQ,KAAKC,YAAc,EACvB,CACA,MAAAC,GACIF,KAAKG,QAAQD,SACbT,MAAMS,QACV,CACA,gBAAAE,GACI,MAAMC,EAAc,GACpB,IAAK,MAAMC,KAASC,SAASC,KAAKC,SAC9B,GAAIH,aAAiBI,iBA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panel/dist/lib/models/json.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/json.js","canonical":"models/json","resolution":"ESM","id":"245cd3cfde","hash":"245cd3cfdeaab769921efdc6dbe176d61a17fa52b995192ada4ccf1179812601","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.JSON = exports.JSONTheme = exports.JSONView = void 0;\nconst tslib_1 = require(\"tslib\");\nconst kinds_1 = require(\"@bokehjs/core/kinds\");\nconst markup_1 = require(\"@bokehjs/models/widgets/markup\");\nconst json_formatter_js_1 = tslib_1.__importDefault(require(\"json-formatter-js\"));\nconst layout_1 = require(\"./layout\");\nclass JSONView extends layout_1.PanelMarkupView {\n    connect_signals() {\n        super.connect_signals();\n        const { depth, hover_preview, text, theme } = this.model.properties;\n        this.on_change([depth, hover_preview, text, theme], () => this.rerender_());\n    }\n    render() {\n        super.render();\n        const text = this.model.text.replace(/(\\r\\n|\\n|\\r)/gm, \"\");\n        let json;\n        try {\n            json = window.JSON.parse(text);\n        }\n        catch (err) {\n            this.container.innerHTML = `<b>Invalid JSON:</b> ${err}`;\n            return;\n        }\n        const config = { hoverPreviewEnabled: this.model.hover_preview, theme: this.model.theme };\n        const depth = this.model.depth == null ? Infinity : this.model.depth;\n        const formatter = new json_formatter_js_1.default(json, depth, config);\n        const rendered = formatter.render();\n        const style = \"border-radius: 5px; padding: 10px; width: 100%; height: 100%;\";\n        if (this.model.theme == \"dark\") {\n            rendered.style.cssText = `background-color: rgb(30, 30, 30);${style}`;\n        }\n        else {\n            rendered.style.cssText = style;\n        }\n        this.container.append(rendered);\n    }\n}\nexports.JSONView = JSONView;\nJSONView.__name__ = \"JSONView\";\nexports.JSONTheme = (0, kinds_1.Enum)(\"dark\", \"light\");\nclass JSON extends markup_1.Markup {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.JSON = JSON;\n_a = JSON;\nJSON.__name__ = \"JSON\";\nJSON.__module__ = \"panel.models.markup\";\n(() => {\n    _a.prototype.default_view = JSONView;\n    _a.define(({ List, Bool, Int, Nullable, Str }) => ({\n        css: [List(Str), []],\n        depth: [Nullable(Int), 1],\n        hover_preview: [Bool, false],\n        theme: [exports.JSONTheme, \"dark\"],\n    }));\n})();\n//# sourceMappingURL=json.js.map\n","type":"js","dependency_paths":[["json-formatter-js","/home/runner/work/panel/panel/panel/node_modules/json-formatter-js/dist/json-formatter.mjs"],["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"]],"dependency_map":[],"exported":[{"type":"named","name":"JSONView"},{"type":"named","name":"JSON"}],"externals":[],"shims":[]},"code":{"source":"/* models/json.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const kinds_1 = require(\"@bokehjs/core/kinds\");\n    const markup_1 = require(\"@bokehjs/models/widgets/markup\");\n    const json_formatter_js_1 = tslib_1.__importDefault(require(\"ec9d1ffc2e\") /* json-formatter-js */);\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    class JSONView extends layout_1.PanelMarkupView {\n        connect_signals() {\n            super.connect_signals();\n            const { depth, hover_preview, text, theme } = this.model.properties;\n            this.on_change([depth, hover_preview, text, theme], () => this.rerender_());\n        }\n        render() {\n            super.render();\n            const text = this.model.text.replace(/(\\r\\n|\\n|\\r)/gm, \"\");\n            let json;\n            try {\n                json = window.JSON.parse(text);\n            }\n            catch (err) {\n                this.container.innerHTML = `<b>Invalid JSON:</b> ${err}`;\n                return;\n            }\n            const config = { hoverPreviewEnabled: this.model.hover_preview, theme: this.model.theme };\n            const depth = this.model.depth == null ? Infinity : this.model.depth;\n            const formatter = new json_formatter_js_1.default(json, depth, config);\n            const rendered = formatter.render();\n            const style = \"border-radius: 5px; padding: 10px; width: 100%; height: 100%;\";\n            if (this.model.theme == \"dark\") {\n                rendered.style.cssText = `background-color: rgb(30, 30, 30);${style}`;\n            }\n            else {\n                rendered.style.cssText = style;\n            }\n            this.container.append(rendered);\n        }\n    }\n    exports.JSONView = JSONView;\n    JSONView.__name__ = \"JSONView\";\n    exports.JSONTheme = (0, kinds_1.Enum)(\"dark\", \"light\");\n    class JSON extends markup_1.Markup {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.JSON = JSON;\n    _a = JSON;\n    JSON.__name__ = \"JSON\";\n    JSON.__module__ = \"panel.models.markup\";\n    (() => {\n        _a.prototype.default_view = JSONView;\n        _a.define(({ List, Bool, Int, Nullable, Str }) => ({\n            css: [List(Str), []],\n            depth: [Nullable(Int), 1],\n            hover_preview: [Bool, false],\n            theme: [exports.JSONTheme, \"dark\"],\n        }));\n    })();\n}\n","min_source":"function _(e,t,r,s,n){var d;s();const o=e(\"tslib\"),i=e(\"@bokehjs/core/kinds\"),a=e(\"@bokehjs/models/widgets/markup\"),h=o.__importDefault(e(\"ec9d1ffc2e\")),l=e(\"dab42e6dad\");class c extends l.PanelMarkupView{connect_signals(){super.connect_signals();const{depth:e,hover_preview:t,text:r,theme:s}=this.model.properties;this.on_change([e,t,r,s],(()=>this.rerender_()))}render(){super.render();const e=this.model.text.replace(/(\\r\\n|\\n|\\r)/gm,\"\");let t;try{t=window.JSON.parse(e)}catch(e){return void(this.container.innerHTML=`<b>Invalid JSON:</b> ${e}`)}const r={hoverPreviewEnabled:this.model.hover_preview,theme:this.model.theme},s=null==this.model.depth?1/0:this.model.depth,n=new h.default(t,s,r).render(),d=\"border-radius: 5px; padding: 10px; width: 100%; height: 100%;\";\"dark\"==this.model.theme?n.style.cssText=`background-color: rgb(30, 30, 30);${d}`:n.style.cssText=d,this.container.append(n)}}r.JSONView=c,c.__name__=\"JSONView\",r.JSONTheme=(0,i.Enum)(\"dark\",\"light\");class p extends a.Markup{constructor(e){super(e)}}r.JSON=p,d=p,p.__name__=\"JSON\",p.__module__=\"panel.models.markup\",d.prototype.default_view=c,d.define((({List:e,Bool:t,Int:s,Nullable:n,Str:d})=>({css:[e(d),[]],depth:[n(s),1],hover_preview:[t,!1],theme:[r.JSONTheme,\"dark\"]})))}\n//# sourceMappingURL=json.min.js.map","min_map":"{\"version\":3,\"file\":\"json.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"tslib_1\",\"kinds_1\",\"markup_1\",\"json_formatter_js_1\",\"__importDefault\",\"layout_1\",\"JSONView\",\"PanelMarkupView\",\"connect_signals\",\"super\",\"depth\",\"hover_preview\",\"text\",\"theme\",\"this\",\"model\",\"properties\",\"on_change\",\"rerender_\",\"render\",\"replace\",\"json\",\"window\",\"JSON\",\"parse\",\"err\",\"container\",\"innerHTML\",\"config\",\"hoverPreviewEnabled\",\"Infinity\",\"rendered\",\"default\",\"style\",\"cssText\",\"append\",\"__name__\",\"JSONTheme\",\"Enum\",\"Markup\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"List\",\"Bool\",\"Int\",\"Nullable\",\"Str\",\"css\"],\"sources\":[\"0\"],\"mappings\":\"AAAqB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAClE,IAAIC,EACJF,IACA,MAAMG,EAAUN,EAAQ,SAClBO,EAAUP,EAAQ,uBAClBQ,EAAWR,EAAQ,kCACnBS,EAAsBH,EAAQI,gBAAgBV,EAAQ,eACtDW,EAAWX,EAAQ,cACzB,MAAMY,UAAiBD,EAASE,gBAC5B,eAAAC,GACIC,MAAMD,kBACN,MAAME,MAAEA,EAAKC,cAAEA,EAAaC,KAAEA,EAAIC,MAAEA,GAAUC,KAAKC,MAAMC,WACzDF,KAAKG,UAAU,CAACP,EAAOC,EAAeC,EAAMC,IAAQ,IAAMC,KAAKI,aACnE,CACA,MAAAC,GACIV,MAAMU,SACN,MAAMP,EAAOE,KAAKC,MAAMH,KAAKQ,QAAQ,iBAAkB,IACvD,IAAIC,EACJ,IACIA,EAAOC,OAAOC,KAAKC,MAAMZ,EAC7B,CACA,MAAOa,GAEH,YADAX,KAAKY,UAAUC,UAAY,wBAAwBF,IAEvD,CACA,MAAMG,EAAS,CAAEC,oBAAqBf,KAAKC,MAAMJ,cAAeE,MAAOC,KAAKC,MAAMF,OAC5EH,EAA4B,MAApBI,KAAKC,MAAML,MAAgBoB,IAAWhB,KAAKC,MAAML,MAEzDqB,EADY,IAAI5B,EAAoB6B,QAAQX,EAAMX,EAAOkB,GACpCT,SACrBc,EAAQ,gEACU,QAApBnB,KAAKC,MAAMF,MACXkB,EAASE,MAAMC,QAAU,qCAAqCD,IAG9DF,EAASE,MAAMC,QAAUD,EAE7BnB,KAAKY,UAAUS,OAAOJ,EAC1B,EAEJnC,EAAQU,SAAWA,EACnBA,EAAS8B,SAAW,WACpBxC,EAAQyC,WAAY,EAAIpC,EAAQqC,MAAM,OAAQ,SAC9C,MAAMf,UAAarB,EAASqC,OACxB,WAAAC,CAAYC,GACRhC,MAAMgC,EACV,EAEJ7C,EAAQ2B,KAAOA,EACfxB,EAAKwB,EACLA,EAAKa,SAAW,OAChBb,EAAKmB,WAAa,sBAEd3C,EAAG4C,UAAUC,aAAetC,EAC5BP,EAAG8C,QAAO,EAAGC,OAAMC,OAAMC,MAAKC,WAAUC,UAAU,CAC9CC,IAAK,CAACL,EAAKI,GAAM,IACjBxC,MAAO,CAACuC,EAASD,GAAM,GACvBrC,cAAe,CAACoC,GAAM,GACtBlC,MAAO,CAACjB,EAAQyC,UAAW,WAGvC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/json-formatter-js/dist/json-formatter.mjs","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"json-formatter-js/dist/json-formatter.mjs","resolution":"ESM","id":"ec9d1ffc2e","hash":"ec9d1ffc2e779ce12b623d8fd575f084921615a95ce5a4a2e17f22634f2c9de3","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction t(t) { return null === t ? \"null\" : typeof t; }\nfunction r(t) { return !!t && \"object\" == typeof t; }\nfunction e(t) { if (void 0 === t)\n    return \"\"; if (null === t)\n    return \"Object\"; if (\"object\" == typeof t && !t.constructor)\n    return \"Object\"; var r = /function ([^(]*)/.exec(t.constructor.toString()); return r && r.length > 1 ? r[1] : \"\"; }\nfunction n(t, r, e) { return \"null\" === t || \"undefined\" === t ? t : (\"string\" !== t && \"stringifiable\" !== t || (e = '\"' + (e.replace(/\"/g, '\\\\\"') + '\"')), \"function\" === t ? r.toString().replace(/[\\r\\n]/g, \"\").replace(/\\{.*\\}/, \"\") + \"{…}\" : e); }\nfunction o(o) { var i = \"\"; return r(o) ? (i = e(o), Array.isArray(o) && (i += \"[\" + o.length + \"]\")) : i = n(t(o), o, o), i; }\nfunction i(t) { return \"json-formatter-\".concat(t); }\nfunction s(t, r, e) { var n = document.createElement(t); return r && n.classList.add(i(r)), void 0 !== e && (e instanceof Node ? n.appendChild(e) : n.appendChild(document.createTextNode(String(e)))), n; }\n!function (t) { if (t && \"undefined\" != typeof window) {\n    var r = document.createElement(\"style\");\n    r.setAttribute(\"media\", \"screen\"), r.innerHTML = t, document.head.appendChild(r);\n} }('.json-formatter-row {\\n  font-family: monospace;\\n}\\n.json-formatter-row,\\n.json-formatter-row a,\\n.json-formatter-row a:hover {\\n  color: black;\\n  text-decoration: none;\\n}\\n.json-formatter-row .json-formatter-row {\\n  margin-left: 1rem;\\n}\\n.json-formatter-row .json-formatter-children.json-formatter-empty {\\n  opacity: 0.5;\\n  margin-left: 1rem;\\n}\\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\\n  display: none;\\n}\\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\\n  content: \"No properties\";\\n}\\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\\n  content: \"[]\";\\n}\\n.json-formatter-row .json-formatter-string,\\n.json-formatter-row .json-formatter-stringifiable {\\n  color: green;\\n  white-space: pre;\\n  word-wrap: break-word;\\n}\\n.json-formatter-row .json-formatter-number {\\n  color: blue;\\n}\\n.json-formatter-row .json-formatter-boolean {\\n  color: red;\\n}\\n.json-formatter-row .json-formatter-null {\\n  color: #855a00;\\n}\\n.json-formatter-row .json-formatter-undefined {\\n  color: #ca0b69;\\n}\\n.json-formatter-row .json-formatter-function {\\n  color: #FF20ED;\\n}\\n.json-formatter-row .json-formatter-date {\\n  background-color: rgba(0, 0, 0, 0.05);\\n}\\n.json-formatter-row .json-formatter-url {\\n  text-decoration: underline;\\n  color: blue;\\n  cursor: pointer;\\n}\\n.json-formatter-row .json-formatter-bracket {\\n  color: blue;\\n}\\n.json-formatter-row .json-formatter-key {\\n  color: #00008b;\\n  padding-right: 0.2rem;\\n}\\n.json-formatter-row .json-formatter-toggler-link {\\n  cursor: pointer;\\n}\\n.json-formatter-row .json-formatter-toggler {\\n  line-height: 1.2rem;\\n  font-size: 0.7rem;\\n  vertical-align: middle;\\n  opacity: 0.6;\\n  cursor: pointer;\\n  padding-right: 0.2rem;\\n}\\n.json-formatter-row .json-formatter-toggler:after {\\n  display: inline-block;\\n  transition: transform 100ms ease-in;\\n  content: \"►\";\\n}\\n.json-formatter-row > a > .json-formatter-preview-text {\\n  opacity: 0;\\n  transition: opacity 0.15s ease-in;\\n  font-style: italic;\\n}\\n.json-formatter-row:hover > a > .json-formatter-preview-text {\\n  opacity: 0.6;\\n}\\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\\n  transform: rotate(90deg);\\n}\\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\\n  display: inline-block;\\n}\\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\\n  display: none;\\n}\\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\\n  display: block;\\n}\\n.json-formatter-dark.json-formatter-row {\\n  font-family: monospace;\\n}\\n.json-formatter-dark.json-formatter-row,\\n.json-formatter-dark.json-formatter-row a,\\n.json-formatter-dark.json-formatter-row a:hover {\\n  color: white;\\n  text-decoration: none;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-row {\\n  margin-left: 1rem;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\\n  opacity: 0.5;\\n  margin-left: 1rem;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\\n  display: none;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\\n  content: \"No properties\";\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\\n  content: \"[]\";\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-string,\\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\\n  color: #31f031;\\n  white-space: pre;\\n  word-wrap: break-word;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-number {\\n  color: #66c2ff;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\\n  color: #EC4242;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-null {\\n  color: #EEC97D;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\\n  color: #ef8fbe;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-function {\\n  color: #FD48CB;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-date {\\n  background-color: rgba(255, 255, 255, 0.05);\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-url {\\n  text-decoration: underline;\\n  color: #027bff;\\n  cursor: pointer;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\\n  color: #9494ff;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-key {\\n  color: #23a0db;\\n  padding-right: 0.2rem;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\\n  cursor: pointer;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\\n  line-height: 1.2rem;\\n  font-size: 0.7rem;\\n  vertical-align: middle;\\n  opacity: 0.6;\\n  cursor: pointer;\\n  padding-right: 0.2rem;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\\n  display: inline-block;\\n  transition: transform 100ms ease-in;\\n  content: \"►\";\\n}\\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\\n  opacity: 0;\\n  transition: opacity 0.15s ease-in;\\n  font-style: italic;\\n}\\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\\n  opacity: 0.6;\\n}\\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\\n  transform: rotate(90deg);\\n}\\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\\n  display: inline-block;\\n}\\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\\n  display: none;\\n}\\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\\n  display: block;\\n}\\n');\nvar a = /(^\\d{1,4}[\\.|\\\\/|-]\\d{1,2}[\\.|\\\\/|-]\\d{1,4})(\\s*(?:0?[1-9]:[0-5]|1(?=[012])\\d:[0-5])\\d\\s*[ap]m)?$/, f = /\\d{2}:\\d{2}:\\d{2} GMT-\\d{4}/, m = /\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z/, c = /^https?:\\/\\//, l = window.requestAnimationFrame || function (t) { return t(), 0; }, h = { hoverPreviewEnabled: !1, hoverPreviewArrayCount: 100, hoverPreviewFieldCount: 5, animateOpen: !0, animateClose: !0, theme: null, useToJSON: !0, sortPropertiesBy: null, maxArrayItems: 100, exposePath: !1 }, d = function () { function d(t, r, e, n, o, i, s) { void 0 === r && (r = 1), void 0 === e && (e = h), void 0 === i && (i = []), this.json = t, this.open = r, this.config = e, this.key = n, this.displayKey = o, this.path = i, this.arrayRange = s, this._isOpen = null, void 0 === this.config.hoverPreviewEnabled && (this.config.hoverPreviewEnabled = h.hoverPreviewEnabled), void 0 === this.config.hoverPreviewArrayCount && (this.config.hoverPreviewArrayCount = h.hoverPreviewArrayCount), void 0 === this.config.hoverPreviewFieldCount && (this.config.hoverPreviewFieldCount = h.hoverPreviewFieldCount), void 0 === this.config.useToJSON && (this.config.useToJSON = h.useToJSON), void 0 === this.config.maxArrayItems && (this.config.maxArrayItems = h.maxArrayItems), \"\" === this.key && (this.key = '\"\"'), void 0 === this.displayKey && (this.displayKey = this.key); } return Object.defineProperty(d.prototype, \"isOpen\", { get: function () { return null !== this._isOpen ? this._isOpen : this.open > 0; }, set: function (t) { this._isOpen = t; }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"isDate\", { get: function () { return this.json instanceof Date || \"string\" === this.type && (a.test(this.json) || m.test(this.json) || f.test(this.json)); }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"isUrl\", { get: function () { return \"string\" === this.type && c.test(this.json); }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"isArray\", { get: function () { return Array.isArray(this.json); }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"isLargeArray\", { get: function () { return this.isArray && this.json.length > this.config.maxArrayItems; }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"isArrayRange\", { get: function () { return this.isArray && void 0 !== this.arrayRange && 2 == this.arrayRange.length; }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"isObject\", { get: function () { return r(this.json); }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"isEmptyObject\", { get: function () { return !this.keys.length && !this.isArray; }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"isEmpty\", { get: function () { return this.isEmptyObject || this.keys && !this.keys.length && this.isArray; }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"useToJSON\", { get: function () { return this.config.useToJSON && \"stringifiable\" === this.type; }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"hasKey\", { get: function () { return void 0 !== this.key; }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"constructorName\", { get: function () { return e(this.json); }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"type\", { get: function () { return this.config.useToJSON && this.json && this.json.toJSON ? \"stringifiable\" : t(this.json); }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"keys\", { get: function () { if (this.isObject) {\n        var t = Object.keys(this.json);\n        if (this.isLargeArray) {\n            var r = Math.ceil(this.json.length / this.config.maxArrayItems);\n            t = [];\n            for (var e = 0; e < r; e++) {\n                var n = e * this.config.maxArrayItems, o = Math.min(this.json.length - 1, n + (this.config.maxArrayItems - 1));\n                t.push(\"\".concat(n, \" … \").concat(o));\n            }\n        }\n        return !this.isArray && this.config.sortPropertiesBy ? t.sort(this.config.sortPropertiesBy) : t;\n    } return []; }, enumerable: !1, configurable: !0 }), d.prototype.toggleOpen = function () { this.isOpen = !this.isOpen, this.element && (this.isOpen ? this.appendChildren(this.config.animateOpen) : this.removeChildren(this.config.animateClose), this.element.classList.toggle(i(\"open\"))); }, d.prototype.openAtDepth = function (t) { void 0 === t && (t = 1), t < 0 || (this.open = t, this.isOpen = 0 !== t, this.element && (this.removeChildren(!1), 0 === t ? this.element.classList.remove(i(\"open\")) : (this.appendChildren(this.config.animateOpen), this.element.classList.add(i(\"open\"))))); }, d.prototype.getInlinepreview = function () { var t = this; if (this.isArray)\n    return this.json.length > this.config.hoverPreviewArrayCount ? \"Array[\".concat(this.json.length, \"]\") : \"[\".concat(this.json.map(o).join(\", \"), \"]\"); var r = this.keys, e = r.slice(0, this.config.hoverPreviewFieldCount).map((function (r) { return \"\".concat(r, \":\").concat(o(t.json[r])); })), n = r.length >= this.config.hoverPreviewFieldCount ? \"…\" : \"\"; return \"{\".concat(e.join(\", \")).concat(n, \"}\"); }, d.prototype.render = function () { this.element = s(\"div\", \"row\"); var t = this.isObject ? s(\"a\", \"toggler-link\") : s(\"span\"); if (this.isObject && !this.useToJSON && t.appendChild(s(\"span\", \"toggler\")), this.isArrayRange ? t.appendChild(s(\"span\", \"range\", \"[\".concat(this.displayKey, \"]\"))) : this.hasKey && (t.appendChild(s(\"span\", \"key\", \"\".concat(this.displayKey, \":\"))), this.config.exposePath && (this.element.dataset.path = JSON.stringify(this.path))), this.isObject && !this.useToJSON) {\n    var r = s(\"span\", \"value\"), e = s(\"span\");\n    if (!this.isArrayRange) {\n        var o = s(\"span\", \"constructor-name\", this.constructorName);\n        e.appendChild(o);\n    }\n    if (this.isArray && !this.isArrayRange) {\n        var a = s(\"span\");\n        a.appendChild(s(\"span\", \"bracket\", \"[\")), a.appendChild(s(\"span\", \"number\", this.json.length)), a.appendChild(s(\"span\", \"bracket\", \"]\")), e.appendChild(a);\n    }\n    r.appendChild(e), t.appendChild(r);\n}\nelse {\n    (r = this.isUrl ? s(\"a\") : s(\"span\")).classList.add(i(this.type)), this.isDate && r.classList.add(i(\"date\")), this.isUrl && (r.classList.add(i(\"url\")), r.setAttribute(\"href\", this.json));\n    var f = n(this.type, this.json, this.useToJSON ? this.json.toJSON() : this.json);\n    r.appendChild(document.createTextNode(f)), t.appendChild(r);\n} if (this.isObject && this.config.hoverPreviewEnabled) {\n    var m = s(\"span\", \"preview-text\");\n    m.appendChild(document.createTextNode(this.getInlinepreview())), t.appendChild(m);\n} var c = s(\"div\", \"children\"); return this.isObject && c.classList.add(i(\"object\")), this.isArray && c.classList.add(i(\"array\")), this.isEmpty && c.classList.add(i(\"empty\")), this.config && this.config.theme && this.element.classList.add(i(this.config.theme)), this.isOpen && this.element.classList.add(i(\"open\")), this.element.appendChild(t), this.element.appendChild(c), this.isObject && this.isOpen && this.appendChildren(), this.isObject && !this.useToJSON && t.addEventListener(\"click\", this.toggleOpen.bind(this)), this.element; }, d.prototype.appendChildren = function (t) { var r = this; void 0 === t && (t = !1); var e = this.element.querySelector(\"div.\".concat(i(\"children\"))); if (e && !this.isEmpty) {\n    var n = function (t, n) { var o = r.isLargeArray ? [n * r.config.maxArrayItems, Math.min(r.json.length - 1, n * r.config.maxArrayItems + (r.config.maxArrayItems - 1))] : void 0, i = r.isArrayRange ? (r.arrayRange[0] + n).toString() : t, s = new d(o ? r.json.slice(o[0], o[1] + 1) : r.json[t], r.open - 1, r.config, t, i, o ? r.path : r.path.concat(i), o); e.appendChild(s.render()); };\n    if (t) {\n        var o = 0, s = function () { var t = r.keys[o]; n(t, o), (o += 1) < r.keys.length && (o > 10 ? s() : l(s)); };\n        l(s);\n    }\n    else\n        this.keys.forEach((function (t, r) { return n(t, r); }));\n} }, d.prototype.removeChildren = function (t) { void 0 === t && (t = !1); var r = this.element.querySelector(\"div.\".concat(i(\"children\"))); if (t) {\n    var e = 0, n = function () { r && r.children.length && (r.removeChild(r.children[0]), (e += 1) > 10 ? n() : l(n)); };\n    l(n);\n}\nelse\n    r && (r.innerHTML = \"\"); }, d; }();\nexports.default = d;\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"default"}],"externals":[],"shims":[]},"code":{"source":"/* json-formatter-js/dist/json-formatter.mjs */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    function t(t) { return null === t ? \"null\" : typeof t; }\n    function r(t) { return !!t && \"object\" == typeof t; }\n    function e(t) {\n        if (void 0 === t)\n            return \"\";\n        if (null === t)\n            return \"Object\";\n        if (\"object\" == typeof t && !t.constructor)\n            return \"Object\";\n        var r = /function ([^(]*)/.exec(t.constructor.toString());\n        return r && r.length > 1 ? r[1] : \"\";\n    }\n    function n(t, r, e) { return \"null\" === t || \"undefined\" === t ? t : (\"string\" !== t && \"stringifiable\" !== t || (e = '\"' + (e.replace(/\"/g, '\\\\\"') + '\"')), \"function\" === t ? r.toString().replace(/[\\r\\n]/g, \"\").replace(/\\{.*\\}/, \"\") + \"{…}\" : e); }\n    function o(o) { var i = \"\"; return r(o) ? (i = e(o), Array.isArray(o) && (i += \"[\" + o.length + \"]\")) : i = n(t(o), o, o), i; }\n    function i(t) { return \"json-formatter-\".concat(t); }\n    function s(t, r, e) { var n = document.createElement(t); return r && n.classList.add(i(r)), void 0 !== e && (e instanceof Node ? n.appendChild(e) : n.appendChild(document.createTextNode(String(e)))), n; }\n    !function (t) {\n        if (t && \"undefined\" != typeof window) {\n            var r = document.createElement(\"style\");\n            r.setAttribute(\"media\", \"screen\"), r.innerHTML = t, document.head.appendChild(r);\n        }\n    }('.json-formatter-row {\\n  font-family: monospace;\\n}\\n.json-formatter-row,\\n.json-formatter-row a,\\n.json-formatter-row a:hover {\\n  color: black;\\n  text-decoration: none;\\n}\\n.json-formatter-row .json-formatter-row {\\n  margin-left: 1rem;\\n}\\n.json-formatter-row .json-formatter-children.json-formatter-empty {\\n  opacity: 0.5;\\n  margin-left: 1rem;\\n}\\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\\n  display: none;\\n}\\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\\n  content: \"No properties\";\\n}\\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\\n  content: \"[]\";\\n}\\n.json-formatter-row .json-formatter-string,\\n.json-formatter-row .json-formatter-stringifiable {\\n  color: green;\\n  white-space: pre;\\n  word-wrap: break-word;\\n}\\n.json-formatter-row .json-formatter-number {\\n  color: blue;\\n}\\n.json-formatter-row .json-formatter-boolean {\\n  color: red;\\n}\\n.json-formatter-row .json-formatter-null {\\n  color: #855a00;\\n}\\n.json-formatter-row .json-formatter-undefined {\\n  color: #ca0b69;\\n}\\n.json-formatter-row .json-formatter-function {\\n  color: #FF20ED;\\n}\\n.json-formatter-row .json-formatter-date {\\n  background-color: rgba(0, 0, 0, 0.05);\\n}\\n.json-formatter-row .json-formatter-url {\\n  text-decoration: underline;\\n  color: blue;\\n  cursor: pointer;\\n}\\n.json-formatter-row .json-formatter-bracket {\\n  color: blue;\\n}\\n.json-formatter-row .json-formatter-key {\\n  color: #00008b;\\n  padding-right: 0.2rem;\\n}\\n.json-formatter-row .json-formatter-toggler-link {\\n  cursor: pointer;\\n}\\n.json-formatter-row .json-formatter-toggler {\\n  line-height: 1.2rem;\\n  font-size: 0.7rem;\\n  vertical-align: middle;\\n  opacity: 0.6;\\n  cursor: pointer;\\n  padding-right: 0.2rem;\\n}\\n.json-formatter-row .json-formatter-toggler:after {\\n  display: inline-block;\\n  transition: transform 100ms ease-in;\\n  content: \"►\";\\n}\\n.json-formatter-row > a > .json-formatter-preview-text {\\n  opacity: 0;\\n  transition: opacity 0.15s ease-in;\\n  font-style: italic;\\n}\\n.json-formatter-row:hover > a > .json-formatter-preview-text {\\n  opacity: 0.6;\\n}\\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\\n  transform: rotate(90deg);\\n}\\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\\n  display: inline-block;\\n}\\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\\n  display: none;\\n}\\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\\n  display: block;\\n}\\n.json-formatter-dark.json-formatter-row {\\n  font-family: monospace;\\n}\\n.json-formatter-dark.json-formatter-row,\\n.json-formatter-dark.json-formatter-row a,\\n.json-formatter-dark.json-formatter-row a:hover {\\n  color: white;\\n  text-decoration: none;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-row {\\n  margin-left: 1rem;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\\n  opacity: 0.5;\\n  margin-left: 1rem;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\\n  display: none;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\\n  content: \"No properties\";\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\\n  content: \"[]\";\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-string,\\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\\n  color: #31f031;\\n  white-space: pre;\\n  word-wrap: break-word;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-number {\\n  color: #66c2ff;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\\n  color: #EC4242;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-null {\\n  color: #EEC97D;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\\n  color: #ef8fbe;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-function {\\n  color: #FD48CB;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-date {\\n  background-color: rgba(255, 255, 255, 0.05);\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-url {\\n  text-decoration: underline;\\n  color: #027bff;\\n  cursor: pointer;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\\n  color: #9494ff;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-key {\\n  color: #23a0db;\\n  padding-right: 0.2rem;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\\n  cursor: pointer;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\\n  line-height: 1.2rem;\\n  font-size: 0.7rem;\\n  vertical-align: middle;\\n  opacity: 0.6;\\n  cursor: pointer;\\n  padding-right: 0.2rem;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\\n  display: inline-block;\\n  transition: transform 100ms ease-in;\\n  content: \"►\";\\n}\\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\\n  opacity: 0;\\n  transition: opacity 0.15s ease-in;\\n  font-style: italic;\\n}\\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\\n  opacity: 0.6;\\n}\\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\\n  transform: rotate(90deg);\\n}\\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\\n  display: inline-block;\\n}\\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\\n  display: none;\\n}\\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\\n  display: block;\\n}\\n');\n    var a = /(^\\d{1,4}[\\.|\\\\/|-]\\d{1,2}[\\.|\\\\/|-]\\d{1,4})(\\s*(?:0?[1-9]:[0-5]|1(?=[012])\\d:[0-5])\\d\\s*[ap]m)?$/, f = /\\d{2}:\\d{2}:\\d{2} GMT-\\d{4}/, m = /\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z/, c = /^https?:\\/\\//, l = window.requestAnimationFrame || function (t) { return t(), 0; }, h = { hoverPreviewEnabled: !1, hoverPreviewArrayCount: 100, hoverPreviewFieldCount: 5, animateOpen: !0, animateClose: !0, theme: null, useToJSON: !0, sortPropertiesBy: null, maxArrayItems: 100, exposePath: !1 }, d = function () {\n        function d(t, r, e, n, o, i, s) { void 0 === r && (r = 1), void 0 === e && (e = h), void 0 === i && (i = []), this.json = t, this.open = r, this.config = e, this.key = n, this.displayKey = o, this.path = i, this.arrayRange = s, this._isOpen = null, void 0 === this.config.hoverPreviewEnabled && (this.config.hoverPreviewEnabled = h.hoverPreviewEnabled), void 0 === this.config.hoverPreviewArrayCount && (this.config.hoverPreviewArrayCount = h.hoverPreviewArrayCount), void 0 === this.config.hoverPreviewFieldCount && (this.config.hoverPreviewFieldCount = h.hoverPreviewFieldCount), void 0 === this.config.useToJSON && (this.config.useToJSON = h.useToJSON), void 0 === this.config.maxArrayItems && (this.config.maxArrayItems = h.maxArrayItems), \"\" === this.key && (this.key = '\"\"'), void 0 === this.displayKey && (this.displayKey = this.key); }\n        return Object.defineProperty(d.prototype, \"isOpen\", { get: function () { return null !== this._isOpen ? this._isOpen : this.open > 0; }, set: function (t) { this._isOpen = t; }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"isDate\", { get: function () { return this.json instanceof Date || \"string\" === this.type && (a.test(this.json) || m.test(this.json) || f.test(this.json)); }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"isUrl\", { get: function () { return \"string\" === this.type && c.test(this.json); }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"isArray\", { get: function () { return Array.isArray(this.json); }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"isLargeArray\", { get: function () { return this.isArray && this.json.length > this.config.maxArrayItems; }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"isArrayRange\", { get: function () { return this.isArray && void 0 !== this.arrayRange && 2 == this.arrayRange.length; }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"isObject\", { get: function () { return r(this.json); }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"isEmptyObject\", { get: function () { return !this.keys.length && !this.isArray; }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"isEmpty\", { get: function () { return this.isEmptyObject || this.keys && !this.keys.length && this.isArray; }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"useToJSON\", { get: function () { return this.config.useToJSON && \"stringifiable\" === this.type; }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"hasKey\", { get: function () { return void 0 !== this.key; }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"constructorName\", { get: function () { return e(this.json); }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"type\", { get: function () { return this.config.useToJSON && this.json && this.json.toJSON ? \"stringifiable\" : t(this.json); }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, \"keys\", { get: function () {\n                if (this.isObject) {\n                    var t = Object.keys(this.json);\n                    if (this.isLargeArray) {\n                        var r = Math.ceil(this.json.length / this.config.maxArrayItems);\n                        t = [];\n                        for (var e = 0; e < r; e++) {\n                            var n = e * this.config.maxArrayItems, o = Math.min(this.json.length - 1, n + (this.config.maxArrayItems - 1));\n                            t.push(\"\".concat(n, \" … \").concat(o));\n                        }\n                    }\n                    return !this.isArray && this.config.sortPropertiesBy ? t.sort(this.config.sortPropertiesBy) : t;\n                }\n                return [];\n            }, enumerable: !1, configurable: !0 }), d.prototype.toggleOpen = function () { this.isOpen = !this.isOpen, this.element && (this.isOpen ? this.appendChildren(this.config.animateOpen) : this.removeChildren(this.config.animateClose), this.element.classList.toggle(i(\"open\"))); }, d.prototype.openAtDepth = function (t) { void 0 === t && (t = 1), t < 0 || (this.open = t, this.isOpen = 0 !== t, this.element && (this.removeChildren(!1), 0 === t ? this.element.classList.remove(i(\"open\")) : (this.appendChildren(this.config.animateOpen), this.element.classList.add(i(\"open\"))))); }, d.prototype.getInlinepreview = function () {\n            var t = this;\n            if (this.isArray)\n                return this.json.length > this.config.hoverPreviewArrayCount ? \"Array[\".concat(this.json.length, \"]\") : \"[\".concat(this.json.map(o).join(\", \"), \"]\");\n            var r = this.keys, e = r.slice(0, this.config.hoverPreviewFieldCount).map((function (r) { return \"\".concat(r, \":\").concat(o(t.json[r])); })), n = r.length >= this.config.hoverPreviewFieldCount ? \"…\" : \"\";\n            return \"{\".concat(e.join(\", \")).concat(n, \"}\");\n        }, d.prototype.render = function () {\n            this.element = s(\"div\", \"row\");\n            var t = this.isObject ? s(\"a\", \"toggler-link\") : s(\"span\");\n            if (this.isObject && !this.useToJSON && t.appendChild(s(\"span\", \"toggler\")), this.isArrayRange ? t.appendChild(s(\"span\", \"range\", \"[\".concat(this.displayKey, \"]\"))) : this.hasKey && (t.appendChild(s(\"span\", \"key\", \"\".concat(this.displayKey, \":\"))), this.config.exposePath && (this.element.dataset.path = JSON.stringify(this.path))), this.isObject && !this.useToJSON) {\n                var r = s(\"span\", \"value\"), e = s(\"span\");\n                if (!this.isArrayRange) {\n                    var o = s(\"span\", \"constructor-name\", this.constructorName);\n                    e.appendChild(o);\n                }\n                if (this.isArray && !this.isArrayRange) {\n                    var a = s(\"span\");\n                    a.appendChild(s(\"span\", \"bracket\", \"[\")), a.appendChild(s(\"span\", \"number\", this.json.length)), a.appendChild(s(\"span\", \"bracket\", \"]\")), e.appendChild(a);\n                }\n                r.appendChild(e), t.appendChild(r);\n            }\n            else {\n                (r = this.isUrl ? s(\"a\") : s(\"span\")).classList.add(i(this.type)), this.isDate && r.classList.add(i(\"date\")), this.isUrl && (r.classList.add(i(\"url\")), r.setAttribute(\"href\", this.json));\n                var f = n(this.type, this.json, this.useToJSON ? this.json.toJSON() : this.json);\n                r.appendChild(document.createTextNode(f)), t.appendChild(r);\n            }\n            if (this.isObject && this.config.hoverPreviewEnabled) {\n                var m = s(\"span\", \"preview-text\");\n                m.appendChild(document.createTextNode(this.getInlinepreview())), t.appendChild(m);\n            }\n            var c = s(\"div\", \"children\");\n            return this.isObject && c.classList.add(i(\"object\")), this.isArray && c.classList.add(i(\"array\")), this.isEmpty && c.classList.add(i(\"empty\")), this.config && this.config.theme && this.element.classList.add(i(this.config.theme)), this.isOpen && this.element.classList.add(i(\"open\")), this.element.appendChild(t), this.element.appendChild(c), this.isObject && this.isOpen && this.appendChildren(), this.isObject && !this.useToJSON && t.addEventListener(\"click\", this.toggleOpen.bind(this)), this.element;\n        }, d.prototype.appendChildren = function (t) {\n            var r = this;\n            void 0 === t && (t = !1);\n            var e = this.element.querySelector(\"div.\".concat(i(\"children\")));\n            if (e && !this.isEmpty) {\n                var n = function (t, n) { var o = r.isLargeArray ? [n * r.config.maxArrayItems, Math.min(r.json.length - 1, n * r.config.maxArrayItems + (r.config.maxArrayItems - 1))] : void 0, i = r.isArrayRange ? (r.arrayRange[0] + n).toString() : t, s = new d(o ? r.json.slice(o[0], o[1] + 1) : r.json[t], r.open - 1, r.config, t, i, o ? r.path : r.path.concat(i), o); e.appendChild(s.render()); };\n                if (t) {\n                    var o = 0, s = function () { var t = r.keys[o]; n(t, o), (o += 1) < r.keys.length && (o > 10 ? s() : l(s)); };\n                    l(s);\n                }\n                else\n                    this.keys.forEach((function (t, r) { return n(t, r); }));\n            }\n        }, d.prototype.removeChildren = function (t) {\n            void 0 === t && (t = !1);\n            var r = this.element.querySelector(\"div.\".concat(i(\"children\")));\n            if (t) {\n                var e = 0, n = function () { r && r.children.length && (r.removeChild(r.children[0]), (e += 1) > 10 ? n() : l(n)); };\n                l(n);\n            }\n            else\n                r && (r.innerHTML = \"\");\n        }, d;\n    }();\n    exports.default = d;\n}\n","min_source":"function _(t,r,e,n,o){function i(t){return null===t?\"null\":typeof t}function s(t){return!!t&&\"object\"==typeof t}function a(t){if(void 0===t)return\"\";if(null===t)return\"Object\";if(\"object\"==typeof t&&!t.constructor)return\"Object\";var r=/function ([^(]*)/.exec(t.constructor.toString());return r&&r.length>1?r[1]:\"\"}function f(t,r,e){return\"null\"===t||\"undefined\"===t?t:(\"string\"!==t&&\"stringifiable\"!==t||(e='\"'+e.replace(/\"/g,'\\\\\"')+'\"'),\"function\"===t?r.toString().replace(/[\\r\\n]/g,\"\").replace(/\\{.*\\}/,\"\")+\"{\\u2026}\":e)}function m(t){var r=\"\";return s(t)?(r=a(t),Array.isArray(t)&&(r+=\"[\"+t.length+\"]\")):r=f(i(t),t,t),r}function c(t){return\"json-formatter-\".concat(t)}function l(t,r,e){var n=document.createElement(t);return r&&n.classList.add(c(r)),void 0!==e&&(e instanceof Node?n.appendChild(e):n.appendChild(document.createTextNode(String(e)))),n}n(),function(t){if(t&&\"undefined\"!=typeof window){var r=document.createElement(\"style\");r.setAttribute(\"media\",\"screen\"),r.innerHTML=t,document.head.appendChild(r)}}('.json-formatter-row {\\n  font-family: monospace;\\n}\\n.json-formatter-row,\\n.json-formatter-row a,\\n.json-formatter-row a:hover {\\n  color: black;\\n  text-decoration: none;\\n}\\n.json-formatter-row .json-formatter-row {\\n  margin-left: 1rem;\\n}\\n.json-formatter-row .json-formatter-children.json-formatter-empty {\\n  opacity: 0.5;\\n  margin-left: 1rem;\\n}\\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\\n  display: none;\\n}\\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\\n  content: \"No properties\";\\n}\\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\\n  content: \"[]\";\\n}\\n.json-formatter-row .json-formatter-string,\\n.json-formatter-row .json-formatter-stringifiable {\\n  color: green;\\n  white-space: pre;\\n  word-wrap: break-word;\\n}\\n.json-formatter-row .json-formatter-number {\\n  color: blue;\\n}\\n.json-formatter-row .json-formatter-boolean {\\n  color: red;\\n}\\n.json-formatter-row .json-formatter-null {\\n  color: #855a00;\\n}\\n.json-formatter-row .json-formatter-undefined {\\n  color: #ca0b69;\\n}\\n.json-formatter-row .json-formatter-function {\\n  color: #FF20ED;\\n}\\n.json-formatter-row .json-formatter-date {\\n  background-color: rgba(0, 0, 0, 0.05);\\n}\\n.json-formatter-row .json-formatter-url {\\n  text-decoration: underline;\\n  color: blue;\\n  cursor: pointer;\\n}\\n.json-formatter-row .json-formatter-bracket {\\n  color: blue;\\n}\\n.json-formatter-row .json-formatter-key {\\n  color: #00008b;\\n  padding-right: 0.2rem;\\n}\\n.json-formatter-row .json-formatter-toggler-link {\\n  cursor: pointer;\\n}\\n.json-formatter-row .json-formatter-toggler {\\n  line-height: 1.2rem;\\n  font-size: 0.7rem;\\n  vertical-align: middle;\\n  opacity: 0.6;\\n  cursor: pointer;\\n  padding-right: 0.2rem;\\n}\\n.json-formatter-row .json-formatter-toggler:after {\\n  display: inline-block;\\n  transition: transform 100ms ease-in;\\n  content: \"\\u25ba\";\\n}\\n.json-formatter-row > a > .json-formatter-preview-text {\\n  opacity: 0;\\n  transition: opacity 0.15s ease-in;\\n  font-style: italic;\\n}\\n.json-formatter-row:hover > a > .json-formatter-preview-text {\\n  opacity: 0.6;\\n}\\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\\n  transform: rotate(90deg);\\n}\\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\\n  display: inline-block;\\n}\\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\\n  display: none;\\n}\\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\\n  display: block;\\n}\\n.json-formatter-dark.json-formatter-row {\\n  font-family: monospace;\\n}\\n.json-formatter-dark.json-formatter-row,\\n.json-formatter-dark.json-formatter-row a,\\n.json-formatter-dark.json-formatter-row a:hover {\\n  color: white;\\n  text-decoration: none;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-row {\\n  margin-left: 1rem;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\\n  opacity: 0.5;\\n  margin-left: 1rem;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\\n  display: none;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\\n  content: \"No properties\";\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\\n  content: \"[]\";\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-string,\\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\\n  color: #31f031;\\n  white-space: pre;\\n  word-wrap: break-word;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-number {\\n  color: #66c2ff;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\\n  color: #EC4242;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-null {\\n  color: #EEC97D;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\\n  color: #ef8fbe;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-function {\\n  color: #FD48CB;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-date {\\n  background-color: rgba(255, 255, 255, 0.05);\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-url {\\n  text-decoration: underline;\\n  color: #027bff;\\n  cursor: pointer;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\\n  color: #9494ff;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-key {\\n  color: #23a0db;\\n  padding-right: 0.2rem;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\\n  cursor: pointer;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\\n  line-height: 1.2rem;\\n  font-size: 0.7rem;\\n  vertical-align: middle;\\n  opacity: 0.6;\\n  cursor: pointer;\\n  padding-right: 0.2rem;\\n}\\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\\n  display: inline-block;\\n  transition: transform 100ms ease-in;\\n  content: \"\\u25ba\";\\n}\\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\\n  opacity: 0;\\n  transition: opacity 0.15s ease-in;\\n  font-style: italic;\\n}\\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\\n  opacity: 0.6;\\n}\\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\\n  transform: rotate(90deg);\\n}\\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\\n  display: inline-block;\\n}\\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\\n  display: none;\\n}\\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\\n  display: block;\\n}\\n');var h=/(^\\d{1,4}[\\.|\\\\/|-]\\d{1,2}[\\.|\\\\/|-]\\d{1,4})(\\s*(?:0?[1-9]:[0-5]|1(?=[012])\\d:[0-5])\\d\\s*[ap]m)?$/,d=/\\d{2}:\\d{2}:\\d{2} GMT-\\d{4}/,p=/\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z/,j=/^https?:\\/\\//,u=window.requestAnimationFrame||function(t){return t(),0},y={hoverPreviewEnabled:!1,hoverPreviewArrayCount:100,hoverPreviewFieldCount:5,animateOpen:!0,animateClose:!0,theme:null,useToJSON:!0,sortPropertiesBy:null,maxArrayItems:100,exposePath:!1},g=function(){function t(t,r,e,n,o,i,s){void 0===r&&(r=1),void 0===e&&(e=y),void 0===i&&(i=[]),this.json=t,this.open=r,this.config=e,this.key=n,this.displayKey=o,this.path=i,this.arrayRange=s,this._isOpen=null,void 0===this.config.hoverPreviewEnabled&&(this.config.hoverPreviewEnabled=y.hoverPreviewEnabled),void 0===this.config.hoverPreviewArrayCount&&(this.config.hoverPreviewArrayCount=y.hoverPreviewArrayCount),void 0===this.config.hoverPreviewFieldCount&&(this.config.hoverPreviewFieldCount=y.hoverPreviewFieldCount),void 0===this.config.useToJSON&&(this.config.useToJSON=y.useToJSON),void 0===this.config.maxArrayItems&&(this.config.maxArrayItems=y.maxArrayItems),\"\"===this.key&&(this.key='\"\"'),void 0===this.displayKey&&(this.displayKey=this.key)}return Object.defineProperty(t.prototype,\"isOpen\",{get:function(){return null!==this._isOpen?this._isOpen:this.open>0},set:function(t){this._isOpen=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"isDate\",{get:function(){return this.json instanceof Date||\"string\"===this.type&&(h.test(this.json)||p.test(this.json)||d.test(this.json))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"isUrl\",{get:function(){return\"string\"===this.type&&j.test(this.json)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"isArray\",{get:function(){return Array.isArray(this.json)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"isLargeArray\",{get:function(){return this.isArray&&this.json.length>this.config.maxArrayItems},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"isArrayRange\",{get:function(){return this.isArray&&void 0!==this.arrayRange&&2==this.arrayRange.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"isObject\",{get:function(){return s(this.json)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"isEmptyObject\",{get:function(){return!this.keys.length&&!this.isArray},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"isEmpty\",{get:function(){return this.isEmptyObject||this.keys&&!this.keys.length&&this.isArray},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"useToJSON\",{get:function(){return this.config.useToJSON&&\"stringifiable\"===this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"hasKey\",{get:function(){return void 0!==this.key},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"constructorName\",{get:function(){return a(this.json)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"type\",{get:function(){return this.config.useToJSON&&this.json&&this.json.toJSON?\"stringifiable\":i(this.json)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"keys\",{get:function(){if(this.isObject){var t=Object.keys(this.json);if(this.isLargeArray){var r=Math.ceil(this.json.length/this.config.maxArrayItems);t=[];for(var e=0;e<r;e++){var n=e*this.config.maxArrayItems,o=Math.min(this.json.length-1,n+(this.config.maxArrayItems-1));t.push(\"\".concat(n,\" \\u2026 \").concat(o))}}return!this.isArray&&this.config.sortPropertiesBy?t.sort(this.config.sortPropertiesBy):t}return[]},enumerable:!1,configurable:!0}),t.prototype.toggleOpen=function(){this.isOpen=!this.isOpen,this.element&&(this.isOpen?this.appendChildren(this.config.animateOpen):this.removeChildren(this.config.animateClose),this.element.classList.toggle(c(\"open\")))},t.prototype.openAtDepth=function(t){void 0===t&&(t=1),t<0||(this.open=t,this.isOpen=0!==t,this.element&&(this.removeChildren(!1),0===t?this.element.classList.remove(c(\"open\")):(this.appendChildren(this.config.animateOpen),this.element.classList.add(c(\"open\")))))},t.prototype.getInlinepreview=function(){var t=this;if(this.isArray)return this.json.length>this.config.hoverPreviewArrayCount?\"Array[\".concat(this.json.length,\"]\"):\"[\".concat(this.json.map(m).join(\", \"),\"]\");var r=this.keys,e=r.slice(0,this.config.hoverPreviewFieldCount).map((function(r){return\"\".concat(r,\":\").concat(m(t.json[r]))})),n=r.length>=this.config.hoverPreviewFieldCount?\"\\u2026\":\"\";return\"{\".concat(e.join(\", \")).concat(n,\"}\")},t.prototype.render=function(){this.element=l(\"div\",\"row\");var t=this.isObject?l(\"a\",\"toggler-link\"):l(\"span\");if(this.isObject&&!this.useToJSON&&t.appendChild(l(\"span\",\"toggler\")),this.isArrayRange?t.appendChild(l(\"span\",\"range\",\"[\".concat(this.displayKey,\"]\"))):this.hasKey&&(t.appendChild(l(\"span\",\"key\",\"\".concat(this.displayKey,\":\"))),this.config.exposePath&&(this.element.dataset.path=JSON.stringify(this.path))),this.isObject&&!this.useToJSON){var r=l(\"span\",\"value\"),e=l(\"span\");if(!this.isArrayRange){var n=l(\"span\",\"constructor-name\",this.constructorName);e.appendChild(n)}if(this.isArray&&!this.isArrayRange){var o=l(\"span\");o.appendChild(l(\"span\",\"bracket\",\"[\")),o.appendChild(l(\"span\",\"number\",this.json.length)),o.appendChild(l(\"span\",\"bracket\",\"]\")),e.appendChild(o)}r.appendChild(e),t.appendChild(r)}else{(r=this.isUrl?l(\"a\"):l(\"span\")).classList.add(c(this.type)),this.isDate&&r.classList.add(c(\"date\")),this.isUrl&&(r.classList.add(c(\"url\")),r.setAttribute(\"href\",this.json));var i=f(this.type,this.json,this.useToJSON?this.json.toJSON():this.json);r.appendChild(document.createTextNode(i)),t.appendChild(r)}if(this.isObject&&this.config.hoverPreviewEnabled){var s=l(\"span\",\"preview-text\");s.appendChild(document.createTextNode(this.getInlinepreview())),t.appendChild(s)}var a=l(\"div\",\"children\");return this.isObject&&a.classList.add(c(\"object\")),this.isArray&&a.classList.add(c(\"array\")),this.isEmpty&&a.classList.add(c(\"empty\")),this.config&&this.config.theme&&this.element.classList.add(c(this.config.theme)),this.isOpen&&this.element.classList.add(c(\"open\")),this.element.appendChild(t),this.element.appendChild(a),this.isObject&&this.isOpen&&this.appendChildren(),this.isObject&&!this.useToJSON&&t.addEventListener(\"click\",this.toggleOpen.bind(this)),this.element},t.prototype.appendChildren=function(r){var e=this;void 0===r&&(r=!1);var n=this.element.querySelector(\"div.\".concat(c(\"children\")));if(n&&!this.isEmpty){var o=function(r,o){var i=e.isLargeArray?[o*e.config.maxArrayItems,Math.min(e.json.length-1,o*e.config.maxArrayItems+(e.config.maxArrayItems-1))]:void 0,s=e.isArrayRange?(e.arrayRange[0]+o).toString():r,a=new t(i?e.json.slice(i[0],i[1]+1):e.json[r],e.open-1,e.config,r,s,i?e.path:e.path.concat(s),i);n.appendChild(a.render())};if(r){var i=0,s=function(){var t=e.keys[i];o(t,i),(i+=1)<e.keys.length&&(i>10?s():u(s))};u(s)}else this.keys.forEach((function(t,r){return o(t,r)}))}},t.prototype.removeChildren=function(t){void 0===t&&(t=!1);var r=this.element.querySelector(\"div.\".concat(c(\"children\")));if(t){var e=0,n=function(){r&&r.children.length&&(r.removeChild(r.children[0]),(e+=1)>10?n():u(n))};u(n)}else r&&(r.innerHTML=\"\")},t}();e.default=g}\n//# sourceMappingURL=json-formatter.min.js.map","min_map":"{\"version\":3,\"file\":\"json-formatter.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"t\",\"r\",\"e\",\"constructor\",\"exec\",\"toString\",\"length\",\"n\",\"replace\",\"o\",\"i\",\"Array\",\"isArray\",\"concat\",\"s\",\"document\",\"createElement\",\"classList\",\"add\",\"Node\",\"appendChild\",\"createTextNode\",\"String\",\"window\",\"setAttribute\",\"innerHTML\",\"head\",\"a\",\"f\",\"m\",\"c\",\"l\",\"requestAnimationFrame\",\"h\",\"hoverPreviewEnabled\",\"hoverPreviewArrayCount\",\"hoverPreviewFieldCount\",\"animateOpen\",\"animateClose\",\"theme\",\"useToJSON\",\"sortPropertiesBy\",\"maxArrayItems\",\"exposePath\",\"d\",\"this\",\"json\",\"open\",\"config\",\"key\",\"displayKey\",\"path\",\"arrayRange\",\"_isOpen\",\"Object\",\"defineProperty\",\"prototype\",\"get\",\"set\",\"enumerable\",\"configurable\",\"Date\",\"type\",\"test\",\"keys\",\"isEmptyObject\",\"toJSON\",\"isObject\",\"isLargeArray\",\"Math\",\"ceil\",\"min\",\"push\",\"sort\",\"toggleOpen\",\"isOpen\",\"element\",\"appendChildren\",\"removeChildren\",\"toggle\",\"openAtDepth\",\"remove\",\"getInlinepreview\",\"map\",\"join\",\"slice\",\"render\",\"isArrayRange\",\"hasKey\",\"dataset\",\"JSON\",\"stringify\",\"constructorName\",\"isUrl\",\"isDate\",\"isEmpty\",\"addEventListener\",\"bind\",\"querySelector\",\"forEach\",\"children\",\"removeChild\",\"default\"],\"sources\":[\"0\"],\"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el/dist/lib","base_path":"models/jsoneditor.js","canonical":"models/jsoneditor","resolution":"ESM","id":"5b9fdb9011","hash":"5b9fdb9011fd2018aa0dfcd75b46c1758e79164239a311914318524c308d855d","source":"\"use strict\";\nvar _a, _b;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.JSONEditor = exports.JSONEditorView = exports.JSONEditEvent = void 0;\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nconst layout_1 = require(\"./layout\");\nclass JSONEditEvent extends bokeh_events_1.ModelEvent {\n    constructor(data) {\n        super();\n        this.data = data;\n    }\n    get event_values() {\n        return { model: this.origin, data: this.data };\n    }\n}\nexports.JSONEditEvent = JSONEditEvent;\n_a = JSONEditEvent;\nJSONEditEvent.__name__ = \"JSONEditEvent\";\n(() => {\n    _a.prototype.event_name = \"json_edit\";\n})();\nclass JSONEditorView extends layout_1.HTMLBoxView {\n    connect_signals() {\n        super.connect_signals();\n        const { data, disabled, templates, menu, mode, search, schema } = this.model.properties;\n        this.on_change([data], () => this.editor.update(this.model.data));\n        this.on_change([templates], () => {\n            this.editor.options.templates = this.model.templates;\n        });\n        this.on_change([menu], () => {\n            this.editor.options.mainMenuBar = this.model.menu;\n        });\n        this.on_change([search], () => {\n            this.editor.options.search = this.model.search;\n        });\n        this.on_change([schema], () => {\n            this.editor.options.schema = this.model.schema;\n        });\n        this.on_change([disabled, mode], () => {\n            const mode = this.model.disabled ? \"view\" : this.model.mode;\n            this.editor.setMode(mode);\n        });\n    }\n    stylesheets() {\n        const styles = super.stylesheets();\n        for (const css of this.model.css) {\n            styles.push(new dom_1.ImportedStyleSheet(css));\n        }\n        return styles;\n    }\n    remove() {\n        this.editor?.destroy();\n        super.remove();\n    }\n    render() {\n        super.render();\n        const mode = this.model.disabled ? \"view\" : this.model.mode;\n        this.editor = new window.JSONEditor(this.shadow_el, {\n            mainMenuBar: this.model.menu,\n            mode,\n            onChangeJSON: (json) => {\n                this.model.trigger_event(new JSONEditEvent(json));\n            },\n            onChangeText: (text) => {\n                try {\n                    this.model.trigger_event(new JSONEditEvent(JSON.parse(text)));\n                }\n                catch (e) {\n                    console.warn(e);\n                }\n            },\n            onSelectionChange: (start, end) => {\n                this.model.selection = [start, end];\n            },\n            search: this.model.search,\n            schema: this.model.schema,\n            templates: this.model.templates,\n        });\n        this.editor.set(this.model.data);\n    }\n}\nexports.JSONEditorView = JSONEditorView;\nJSONEditorView.__name__ = \"JSONEditorView\";\nclass JSONEditor extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.JSONEditor = JSONEditor;\n_b = JSONEditor;\nJSONEditor.__name__ = \"JSONEditor\";\nJSONEditor.__module__ = \"panel.models.jsoneditor\";\n(() => {\n    _b.prototype.default_view = JSONEditorView;\n    _b.define(({ Any, List, Bool, Str }) => ({\n        css: [List(Str), []],\n        data: [Any, {}],\n        mode: [Str, \"tree\"],\n        menu: [Bool, true],\n        search: [Bool, true],\n        selection: [List(Any), []],\n        schema: [Any, null],\n        templates: [List(Any), []],\n    }));\n})();\n//# sourceMappingURL=jsoneditor.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"]],"dependency_map":[],"exported":[{"type":"named","name":"JSONEditEvent"},{"type":"named","name":"JSONEditorView"},{"type":"named","name":"JSONEditor"}],"externals":[],"shims":[]},"code":{"source":"/* models/jsoneditor.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a, _b;\n    __esModule();\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    class JSONEditEvent extends bokeh_events_1.ModelEvent {\n        constructor(data) {\n            super();\n            this.data = data;\n        }\n        get event_values() {\n            return { model: this.origin, data: this.data };\n        }\n    }\n    exports.JSONEditEvent = JSONEditEvent;\n    _a = JSONEditEvent;\n    JSONEditEvent.__name__ = \"JSONEditEvent\";\n    (() => {\n        _a.prototype.event_name = \"json_edit\";\n    })();\n    class JSONEditorView extends layout_1.HTMLBoxView {\n        connect_signals() {\n            super.connect_signals();\n            const { data, disabled, templates, menu, mode, search, schema } = this.model.properties;\n            this.on_change([data], () => this.editor.update(this.model.data));\n            this.on_change([templates], () => {\n                this.editor.options.templates = this.model.templates;\n            });\n            this.on_change([menu], () => {\n                this.editor.options.mainMenuBar = this.model.menu;\n            });\n            this.on_change([search], () => {\n                this.editor.options.search = this.model.search;\n            });\n            this.on_change([schema], () => {\n                this.editor.options.schema = this.model.schema;\n            });\n            this.on_change([disabled, mode], () => {\n                const mode = this.model.disabled ? \"view\" : this.model.mode;\n                this.editor.setMode(mode);\n            });\n        }\n        stylesheets() {\n            const styles = super.stylesheets();\n            for (const css of this.model.css) {\n                styles.push(new dom_1.ImportedStyleSheet(css));\n            }\n            return styles;\n        }\n        remove() {\n            this.editor?.destroy();\n            super.remove();\n        }\n        render() {\n            super.render();\n            const mode = this.model.disabled ? \"view\" : this.model.mode;\n            this.editor = new window.JSONEditor(this.shadow_el, {\n                mainMenuBar: this.model.menu,\n                mode,\n                onChangeJSON: (json) => {\n                    this.model.trigger_event(new JSONEditEvent(json));\n                },\n                onChangeText: (text) => {\n                    try {\n                        this.model.trigger_event(new JSONEditEvent(JSON.parse(text)));\n                    }\n                    catch (e) {\n                        console.warn(e);\n                    }\n                },\n                onSelectionChange: (start, end) => {\n                    this.model.selection = [start, end];\n                },\n                search: this.model.search,\n                schema: this.model.schema,\n                templates: this.model.templates,\n            });\n            this.editor.set(this.model.data);\n        }\n    }\n    exports.JSONEditorView = JSONEditorView;\n    JSONEditorView.__name__ = \"JSONEditorView\";\n    class JSONEditor extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.JSONEditor = JSONEditor;\n    _b = JSONEditor;\n    JSONEditor.__name__ = \"JSONEditor\";\n    JSONEditor.__module__ = \"panel.models.jsoneditor\";\n    (() => {\n        _b.prototype.default_view = JSONEditorView;\n        _b.define(({ Any, List, Bool, Str }) => ({\n            css: [List(Str), []],\n            data: [Any, {}],\n            mode: [Str, \"tree\"],\n            menu: [Bool, true],\n            search: [Bool, true],\n            selection: [List(Any), []],\n            schema: [Any, null],\n            templates: [List(Any), []],\n        }));\n    })();\n}\n","min_source":"function _(e,t,s,o,i){var n,d;o();const a=e(\"@bokehjs/core/dom\"),h=e(\"@bokehjs/core/bokeh_events\"),r=e(\"dab42e6dad\");class m extends h.ModelEvent{constructor(e){super(),this.data=e}get event_values(){return{model:this.origin,data:this.data}}}s.JSONEditEvent=m,n=m,m.__name__=\"JSONEditEvent\",n.prototype.event_name=\"json_edit\";class l extends r.HTMLBoxView{connect_signals(){super.connect_signals();const{data:e,disabled:t,templates:s,menu:o,mode:i,search:n,schema:d}=this.model.properties;this.on_change([e],(()=>this.editor.update(this.model.data))),this.on_change([s],(()=>{this.editor.options.templates=this.model.templates})),this.on_change([o],(()=>{this.editor.options.mainMenuBar=this.model.menu})),this.on_change([n],(()=>{this.editor.options.search=this.model.search})),this.on_change([d],(()=>{this.editor.options.schema=this.model.schema})),this.on_change([t,i],(()=>{const e=this.model.disabled?\"view\":this.model.mode;this.editor.setMode(e)}))}stylesheets(){const e=super.stylesheets();for(const t of this.model.css)e.push(new a.ImportedStyleSheet(t));return e}remove(){this.editor?.destroy(),super.remove()}render(){super.render();const e=this.model.disabled?\"view\":this.model.mode;this.editor=new window.JSONEditor(this.shadow_el,{mainMenuBar:this.model.menu,mode:e,onChangeJSON:e=>{this.model.trigger_event(new m(e))},onChangeText:e=>{try{this.model.trigger_event(new m(JSON.parse(e)))}catch(e){console.warn(e)}},onSelectionChange:(e,t)=>{this.model.selection=[e,t]},search:this.model.search,schema:this.model.schema,templates:this.model.templates}),this.editor.set(this.model.data)}}s.JSONEditorView=l,l.__name__=\"JSONEditorView\";class c extends r.HTMLBox{constructor(e){super(e)}}s.JSONEditor=c,d=c,c.__name__=\"JSONEditor\",c.__module__=\"panel.models.jsoneditor\",d.prototype.default_view=l,d.define((({Any:e,List:t,Bool:s,Str:o})=>({css:[t(o),[]],data:[e,{}],mode:[o,\"tree\"],menu:[s,!0],search:[s,!0],selection:[t(e),[]],schema:[e,null],templates:[t(e),[]]})))}\n//# sourceMappingURL=jsoneditor.min.js.map","min_map":"{\"version\":3,\"file\":\"jsoneditor.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"_b\",\"dom_1\",\"bokeh_events_1\",\"layout_1\",\"JSONEditEvent\",\"ModelEvent\",\"constructor\",\"data\",\"super\",\"this\",\"event_values\",\"model\",\"origin\",\"__name__\",\"prototype\",\"event_name\",\"JSONEditorView\",\"HTMLBoxView\",\"connect_signals\",\"disabled\",\"templates\",\"menu\",\"mode\",\"search\",\"schema\",\"properties\",\"on_change\",\"editor\",\"update\",\"options\",\"mainMenuBar\",\"setMode\",\"stylesheets\",\"styles\",\"css\",\"push\",\"ImportedStyleSheet\",\"remove\",\"destroy\",\"render\",\"window\",\"JSONEditor\",\"shadow_el\",\"onChangeJSON\",\"json\",\"trigger_event\",\"onChangeText\",\"text\",\"JSON\",\"parse\",\"e\",\"console\",\"warn\",\"onSelectionChange\",\"start\",\"end\",\"selection\",\"set\",\"HTMLBox\",\"attrs\",\"__module__\",\"default_view\",\"define\",\"Any\",\"List\",\"Bool\",\"Str\"],\"sources\":[\"0\"],\"mappings\":\"AAA2B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACxE,IAAIC,EAAIC,EACRH,IACA,MAAMI,EAAQP,EAAQ,qBAChBQ,EAAiBR,EAAQ,8BACzBS,EAAWT,EAAQ,cACzB,MAAMU,UAAsBF,EAAeG,WACvC,WAAAC,CAAYC,GACRC,QACAC,KAAKF,KAAOA,CAChB,CACA,gBAAIG,GACA,MAAO,CAAEC,MAAOF,KAAKG,OAAQL,KAAME,KAAKF,KAC5C,EAEJX,EAAQQ,cAAgBA,EACxBL,E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,aAAeC,IACXnC,KAAKE,MAAMkC,cAAc,IAAIzC,EAAcwC,GAAM,EAErDE,aAAeC,IACX,IACItC,KAAKE,MAAMkC,cAAc,IAAIzC,EAAc4C,KAAKC,MAAMF,IAC1D,CACA,MAAOG,GACHC,QAAQC,KAAKF,EACjB,GAEJG,kBAAmB,CAACC,EAAOC,KACvB9C,KAAKE,MAAM6C,UAAY,CAACF,EAAOC,EAAI,EAEvChC,OAAQd,KAAKE,MAAMY,OACnBC,OAAQf,KAAKE,MAAMa,OACnBJ,UAAWX,KAAKE,MAAMS,YAE1BX,KAAKkB,OAAO8B,IAAIhD,KAAKE,MAAMJ,KAC/B,EAEJX,EAAQoB,eAAiBA,EACzBA,EAAeH,SAAW,iBAC1B,MAAM4B,UAAmBtC,EAASuD,QAC9B,WAAApD,CAAYqD,GACRnD,MAAMmD,EACV,EAEJ/D,EAAQ6C,WAAaA,EACrBzC,EAAKyC,EACLA,EAAW5B,SAAW,aACtB4B,EAAWmB,WAAa,0BAEpB5D,EAAGc,UAAU+C,aAAe7C,EAC5BhB,EAAG8D,QAAO,EAAGC,MAAKC,OAAMC,OAAMC,UAAU,CACpChC,IAAK,CAAC8B,EAAKE,GAAM,IACjB3D,KAAM,CAACwD,EAAK,CAAC,GACbzC,KAAM,CAAC4C,EAAK,QACZ7C,KAAM,CAAC4C,GAAM,GACb1C,OAAQ,CAAC0C,GAAM,GACfT,UAAW,CAACQ,EAAKD,GAAM,IACvBvC,OAAQ,CAACuC,EAAK,MACd3C,UAAW,CAAC4C,EAAKD,GAAM,OAGnC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/katex.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/katex.js","canonical":"models/katex","resolution":"ESM","id":"f672d71a9f","hash":"f672d71a9ffa70c20842b78711ae371bc46d3a235ed433afe9eedc85dbed438f","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.KaTeX = exports.KaTeXView = void 0;\nconst markup_1 = require(\"@bokehjs/models/widgets/markup\");\nconst layout_1 = require(\"./layout\");\nclass KaTeXView extends layout_1.PanelMarkupView {\n    connect_signals() {\n        super.connect_signals();\n        const { text } = this.model.properties;\n        this.on_change(text, () => this.render());\n    }\n    render() {\n        super.render();\n        this.container.innerHTML = this.model.text;\n        if (!window.renderMathInElement) {\n            return;\n        }\n        window.renderMathInElement(this.shadow_el, {\n            delimiters: [\n                { left: \"$$\", right: \"$$\", display: true },\n                { left: \"\\\\[\", right: \"\\\\]\", display: true },\n                { left: \"$\", right: \"$\", display: false },\n                { left: \"\\\\(\", right: \"\\\\)\", display: false },\n            ],\n        });\n    }\n}\nexports.KaTeXView = KaTeXView;\nKaTeXView.__name__ = \"KaTeXView\";\nclass KaTeX extends markup_1.Markup {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.KaTeX = KaTeX;\n_a = KaTeX;\nKaTeX.__name__ = \"KaTeX\";\nKaTeX.__module__ = \"panel.models.katex\";\n(() => {\n    _a.prototype.default_view = KaTeXView;\n})();\n//# sourceMappingURL=katex.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"]],"dependency_map":[],"exported":[{"type":"named","name":"KaTeXView"},{"type":"named","name":"KaTeX"}],"externals":[],"shims":[]},"code":{"source":"/* models/katex.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const markup_1 = require(\"@bokehjs/models/widgets/markup\");\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    class KaTeXView extends layout_1.PanelMarkupView {\n        connect_signals() {\n            super.connect_signals();\n            const { text } = this.model.properties;\n            this.on_change(text, () => this.render());\n        }\n        render() {\n            super.render();\n            this.container.innerHTML = this.model.text;\n            if (!window.renderMathInElement) {\n                return;\n            }\n            window.renderMathInElement(this.shadow_el, {\n                delimiters: [\n                    { left: \"$$\", right: \"$$\", display: true },\n                    { left: \"\\\\[\", right: \"\\\\]\", display: true },\n                    { left: \"$\", right: \"$\", display: false },\n                    { left: \"\\\\(\", right: \"\\\\)\", display: false },\n                ],\n            });\n        }\n    }\n    exports.KaTeXView = KaTeXView;\n    KaTeXView.__name__ = \"KaTeXView\";\n    class KaTeX extends markup_1.Markup {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.KaTeX = KaTeX;\n    _a = KaTeX;\n    KaTeX.__name__ = \"KaTeX\";\n    KaTeX.__module__ = \"panel.models.katex\";\n    (() => {\n        _a.prototype.default_view = KaTeXView;\n    })();\n}\n","min_source":"function _(e,t,n,s,a){var i;s();const r=e(\"@bokehjs/models/widgets/markup\"),d=e(\"dab42e6dad\");class l extends d.PanelMarkupView{connect_signals(){super.connect_signals();const{text:e}=this.model.properties;this.on_change(e,(()=>this.render()))}render(){super.render(),this.container.innerHTML=this.model.text,window.renderMathInElement&&window.renderMathInElement(this.shadow_el,{delimiters:[{left:\"$$\",right:\"$$\",display:!0},{left:\"\\\\[\",right:\"\\\\]\",display:!0},{left:\"$\",right:\"$\",display:!1},{left:\"\\\\(\",right:\"\\\\)\",display:!1}]})}}n.KaTeXView=l,l.__name__=\"KaTeXView\";class o extends r.Markup{constructor(e){super(e)}}n.KaTeX=o,i=o,o.__name__=\"KaTeX\",o.__module__=\"panel.models.katex\",i.prototype.default_view=l}\n//# sourceMappingURL=katex.min.js.map","min_map":"{\"version\":3,\"file\":\"katex.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"markup_1\",\"layout_1\",\"KaTeXView\",\"PanelMarkupView\",\"connect_signals\",\"super\",\"text\",\"this\",\"model\",\"properties\",\"on_change\",\"render\",\"container\",\"innerHTML\",\"window\",\"renderMathInElement\",\"shadow_el\",\"delimiters\",\"left\",\"right\",\"display\",\"__name__\",\"KaTeX\",\"Markup\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\"],\"sources\":[\"0\"],\"mappings\":\"AAAsB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACnE,IAAIC,EACJF,IACA,MAAMG,EAAWN,EAAQ,kCACnBO,EAAWP,EAAQ,cACzB,MAAMQ,UAAkBD,EAASE,gBAC7B,eAAAC,GACIC,MAAMD,kBACN,MAAME,KAAEA,GAASC,KAAKC,MAAMC,WAC5BF,KAAKG,UAAUJ,GAAM,IAAMC,KAAKI,UACpC,CACA,MAAAA,GACIN,MAAMM,SACNJ,KAAKK,UAAUC,UAAYN,KAAKC,MAAMF,KACjCQ,OAAOC,qBAGZD,OAAOC,oBAAoBR,KAAKS,UAAW,CACvCC,WAAY,CACR,CAAEC,KAAM,KAAMC,MAAO,KAAMC,SAAS,GACpC,CAAEF,KAAM,MAAOC,MAAO,MAAOC,SAAS,GACtC,CAAEF,KAAM,IAAKC,MAAO,IAAKC,SAAS,GAClC,CAAEF,KAAM,MAAOC,MAAO,MAAOC,SAAS,KAGlD,EAEJxB,EAAQM,UAAYA,EACpBA,EAAUmB,SAAW,YACrB,MAAMC,UAActB,EAASuB,OACzB,WAAAC,CAAYC,GACRpB,MAAMoB,EACV,EAEJ7B,EAAQ0B,MAAQA,EAChBvB,EAAKuB,EACLA,EAAMD,SAAW,QACjBC,EAAMI,WAAa,qBAEf3B,EAAG4B,UAAUC,aAAe1B,CAEpC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/location.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/location.js","canonical":"models/location","resolution":"ESM","id":"9012b81346","hash":"9012b813465f42e1ebe7afc052261956b8d0097a9ba31934deaca8f93c1cfa0b","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Location = exports.LocationView = void 0;\nconst view_1 = require(\"@bokehjs/core/view\");\nconst model_1 = require(\"@bokehjs/model\");\nclass LocationView extends view_1.View {\n    constructor() {\n        super(...arguments);\n        this._idle_ready = false;\n        this._pending_url = null;\n        this._idle_connected = false;\n    }\n    initialize() {\n        super.initialize();\n        this.model.pathname = window.location.pathname;\n        this.model.search = window.location.search;\n        this.model.hash = window.location.hash;\n        // Readonly parameters on python side\n        this.model.href = window.location.href;\n        this.model.hostname = window.location.hostname;\n        this.model.protocol = window.location.protocol;\n        this.model.port = window.location.port;\n        this._hash_listener = () => {\n            this.model.hash = window.location.hash;\n        };\n        window.addEventListener(\"hashchange\", this._hash_listener);\n        this._has_finished = true;\n        this.notify_finished();\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { pathname, search, hash, reload } = this.model.properties;\n        this.on_change(pathname, () => this.update(\"pathname\"));\n        this.on_change(search, () => this.update(\"search\"));\n        this.on_change(hash, () => this.update(\"hash\"));\n        this.on_change(reload, () => this.update(\"reload\"));\n    }\n    remove() {\n        super.remove();\n        window.removeEventListener(\"hashchange\", this._hash_listener);\n    }\n    _ensure_idle_gate() {\n        if (this._idle_connected) {\n            return;\n        }\n        this._idle_connected = true;\n        const doc = this.model.document;\n        if (doc.is_idle) {\n            this._idle_ready = true;\n            return;\n        }\n        doc.idle.connect(() => {\n            this._idle_ready = true;\n            if (this._pending_url != null) {\n                const url = this._pending_url;\n                this._pending_url = null;\n                window.history.pushState({}, \"\", url);\n                this.model.href = window.location.href;\n            }\n        });\n    }\n    _set_url_gated(url) {\n        this._ensure_idle_gate();\n        if (this._idle_ready) {\n            window.history.pushState({}, \"\", url);\n            this.model.href = window.location.href;\n        }\n        else {\n            this._pending_url = url;\n        }\n    }\n    update(change) {\n        const url = `${this.model.pathname}${this.model.search}${this.model.hash}`;\n        if (change === \"reload\") {\n            window.history.pushState({}, \"\", url);\n            this.model.href = window.location.href;\n            window.location.reload();\n            return;\n        }\n        if (!this.model.reload) {\n            this._set_url_gated(url);\n            return;\n        }\n        if (change === \"hash\") {\n            window.location.hash = this.model.hash;\n            return;\n        }\n        window.location.href = url;\n    }\n}\nexports.LocationView = LocationView;\nLocationView.__name__ = \"LocationView\";\nclass Location extends model_1.Model {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.Location = Location;\n_a = Location;\nLocation.__name__ = \"Location\";\nLocation.__module__ = \"panel.models.location\";\n(() => {\n    _a.prototype.default_view = LocationView;\n    _a.define(({ Bool, Str }) => ({\n        href: [Str, \"\"],\n        hostname: [Str, \"\"],\n        pathname: [Str, \"\"],\n        protocol: [Str, \"\"],\n        port: [Str, \"\"],\n        search: [Str, \"\"],\n        hash: [Str, \"\"],\n        reload: [Bool, false],\n    }));\n})();\n//# sourceMappingURL=location.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"LocationView"},{"type":"named","name":"Location"}],"externals":[],"shims":[]},"code":{"source":"/* models/location.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const view_1 = require(\"@bokehjs/core/view\");\n    const model_1 = require(\"@bokehjs/model\");\n    class LocationView extends view_1.View {\n        constructor() {\n            super(...arguments);\n            this._idle_ready = false;\n            this._pending_url = null;\n            this._idle_connected = false;\n        }\n        initialize() {\n            super.initialize();\n            this.model.pathname = window.location.pathname;\n            this.model.search = window.location.search;\n            this.model.hash = window.location.hash;\n            // Readonly parameters on python side\n            this.model.href = window.location.href;\n            this.model.hostname = window.location.hostname;\n            this.model.protocol = window.location.protocol;\n            this.model.port = window.location.port;\n            this._hash_listener = () => {\n                this.model.hash = window.location.hash;\n            };\n            window.addEventListener(\"hashchange\", this._hash_listener);\n            this._has_finished = true;\n            this.notify_finished();\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { pathname, search, hash, reload } = this.model.properties;\n            this.on_change(pathname, () => this.update(\"pathname\"));\n            this.on_change(search, () => this.update(\"search\"));\n            this.on_change(hash, () => this.update(\"hash\"));\n            this.on_change(reload, () => this.update(\"reload\"));\n        }\n        remove() {\n            super.remove();\n            window.removeEventListener(\"hashchange\", this._hash_listener);\n        }\n        _ensure_idle_gate() {\n            if (this._idle_connected) {\n                return;\n            }\n            this._idle_connected = true;\n            const doc = this.model.document;\n            if (doc.is_idle) {\n                this._idle_ready = true;\n                return;\n            }\n            doc.idle.connect(() => {\n                this._idle_ready = true;\n                if (this._pending_url != null) {\n                    const url = this._pending_url;\n                    this._pending_url = null;\n                    window.history.pushState({}, \"\", url);\n                    this.model.href = window.location.href;\n                }\n            });\n        }\n        _set_url_gated(url) {\n            this._ensure_idle_gate();\n            if (this._idle_ready) {\n                window.history.pushState({}, \"\", url);\n                this.model.href = window.location.href;\n            }\n            else {\n                this._pending_url = url;\n            }\n        }\n        update(change) {\n            const url = `${this.model.pathname}${this.model.search}${this.model.hash}`;\n            if (change === \"reload\") {\n                window.history.pushState({}, \"\", url);\n                this.model.href = window.location.href;\n                window.location.reload();\n                return;\n            }\n            if (!this.model.reload) {\n                this._set_url_gated(url);\n                return;\n            }\n            if (change === \"hash\") {\n                window.location.hash = this.model.hash;\n                return;\n            }\n            window.location.href = url;\n        }\n    }\n    exports.LocationView = LocationView;\n    LocationView.__name__ = \"LocationView\";\n    class Location extends model_1.Model {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.Location = Location;\n    _a = Location;\n    Location.__name__ = \"Location\";\n    Location.__module__ = \"panel.models.location\";\n    (() => {\n        _a.prototype.default_view = LocationView;\n        _a.define(({ Bool, Str }) => ({\n            href: [Str, \"\"],\n            hostname: [Str, \"\"],\n            pathname: [Str, \"\"],\n            protocol: [Str, \"\"],\n            port: [Str, \"\"],\n            search: [Str, \"\"],\n            hash: [Str, \"\"],\n            reload: [Bool, false],\n        }));\n    })();\n}\n","min_source":"function _(e,o,i,t,h){var n;t();const s=e(\"@bokehjs/core/view\"),a=e(\"@bokehjs/model\");class d extends s.View{constructor(){super(...arguments),this._idle_ready=!1,this._pending_url=null,this._idle_connected=!1}initialize(){super.initialize(),this.model.pathname=window.location.pathname,this.model.search=window.location.search,this.model.hash=window.location.hash,this.model.href=window.location.href,this.model.hostname=window.location.hostname,this.model.protocol=window.location.protocol,this.model.port=window.location.port,this._hash_listener=()=>{this.model.hash=window.location.hash},window.addEventListener(\"hashchange\",this._hash_listener),this._has_finished=!0,this.notify_finished()}connect_signals(){super.connect_signals();const{pathname:e,search:o,hash:i,reload:t}=this.model.properties;this.on_change(e,(()=>this.update(\"pathname\"))),this.on_change(o,(()=>this.update(\"search\"))),this.on_change(i,(()=>this.update(\"hash\"))),this.on_change(t,(()=>this.update(\"reload\")))}remove(){super.remove(),window.removeEventListener(\"hashchange\",this._hash_listener)}_ensure_idle_gate(){if(this._idle_connected)return;this._idle_connected=!0;const e=this.model.document;e.is_idle?this._idle_ready=!0:e.idle.connect((()=>{if(this._idle_ready=!0,null!=this._pending_url){const e=this._pending_url;this._pending_url=null,window.history.pushState({},\"\",e),this.model.href=window.location.href}}))}_set_url_gated(e){this._ensure_idle_gate(),this._idle_ready?(window.history.pushState({},\"\",e),this.model.href=window.location.href):this._pending_url=e}update(e){const o=`${this.model.pathname}${this.model.search}${this.model.hash}`;if(\"reload\"===e)return window.history.pushState({},\"\",o),this.model.href=window.location.href,void window.location.reload();this.model.reload?\"hash\"!==e?window.location.href=o:window.location.hash=this.model.hash:this._set_url_gated(o)}}i.LocationView=d,d.__name__=\"LocationView\";class l extends a.Model{constructor(e){super(e)}}i.Location=l,n=l,l.__name__=\"Location\",l.__module__=\"panel.models.location\",n.prototype.default_view=d,n.define((({Bool:e,Str:o})=>({href:[o,\"\"],hostname:[o,\"\"],pathname:[o,\"\"],protocol:[o,\"\"],port:[o,\"\"],search:[o,\"\"],hash:[o,\"\"],reload:[e,!1]})))}\n//# sourceMappingURL=location.min.js.map","min_map":"{\"version\":3,\"file\":\"location.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"view_1\",\"model_1\",\"LocationView\",\"View\",\"constructor\",\"super\",\"arguments\",\"this\",\"_idle_ready\",\"_pending_url\",\"_idle_connected\",\"initialize\",\"model\",\"pathname\",\"window\",\"location\",\"search\",\"hash\",\"href\",\"hostname\",\"protocol\",\"port\",\"_hash_listener\",\"addEventListener\",\"_has_finished\",\"notify_finished\",\"connect_signals\",\"reload\",\"properties\",\"on_change\",\"update\",\"remove\",\"removeEventListener\",\"_ensure_idle_gate\",\"doc\",\"document\",\"is_idle\",\"idle\",\"connect\",\"url\",\"history\",\"pushState\",\"_set_url_gated\",\"change\",\"__name__\",\"Location\",\"Model\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Bool\",\"Str\"],\"sources\":[\"0\"],\"mappings\":\"AAAyB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACtE,IAAIC,EACJF,IACA,MAAMG,EAASN,EAAQ,sBACjBO,EAAUP,EAAQ,kBACxB,MAAMQ,UAAqBF,EAAOG,KAC9B,WAAAC,GACIC,SAASC,WACTC,KAAKC,aAAc,EACnBD,KAAKE,aAAe,KACpBF,KAAKG,iBAAkB,CAC3B,CACA,UAAAC,GACIN,MAAMM,aACNJ,KAAKK,MAAMC,SAAWC,OAAOC,SAASF,SACtCN,KAAKK,MAAMI,OAASF,OAAOC,SAASC,OACpCT,KAAKK,MAAMK,KAAOH,OAAOC,SAASE,KAElCV,KAAKK,MAAMM,KAAOJ,OAAOC,SAASG,KAClCX,KAAKK,MAAMO,SAAWL,OAAOC,SAASI,SACtCZ,KAAKK,MAAMQ,SAAWN,OAAOC,SAASK,SACtCb,KAAKK,MAAMS,KAAOP,OAAOC,SAASM,KAClCd,KAAKe,eAAiB,KAClBf,KAAKK,MAAMK,KAAOH,OAAOC,SAASE,IAAI,EAE1CH,OAAOS,iBAAiB,aAAchB,KAAKe,gBAC3Cf,KAAKiB,eAAgB,EACrBjB,KAAKkB,iBACT,CACA,eAAAC,GACIrB,MAAMqB,kBACN,MAAMb,SAAEA,EAAQG,OAAEA,EAAMC,KAAEA,EAAIU,OAAEA,GAAWpB,KAAKK,MAAMgB,WACtDrB,KAAKsB,UAAUhB,GAAU,IAAMN,KAAKuB,OAAO,cAC3CvB,KAAKsB,UAAUb,GAAQ,IAAMT,KAAKuB,OAA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1C,MAAM0C,EACV,EAEJnD,EAAQiD,SAAWA,EACnB9C,EAAK8C,EACLA,EAASD,SAAW,WACpBC,EAASG,WAAa,wBAElBjD,EAAGkD,UAAUC,aAAehD,EAC5BH,EAAGoD,QAAO,EAAGC,OAAMC,UAAU,CACzBnC,KAAM,CAACmC,EAAK,IACZlC,SAAU,CAACkC,EAAK,IAChBxC,SAAU,CAACwC,EAAK,IAChBjC,SAAU,CAACiC,EAAK,IAChBhC,KAAM,CAACgC,EAAK,IACZrC,OAAQ,CAACqC,EAAK,IACdpC,KAAM,CAACoC,EAAK,IACZ1B,OAAQ,CAACyB,GAAM,MAG3B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/mathjax.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/mathjax.js","canonical":"models/mathjax","resolution":"ESM","id":"d889a68424","hash":"d889a6842425c179772759b5e874b07c97e8d1912939ae52d5866ff5bf7b3153","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MathJax = exports.MathJaxView = void 0;\nconst markup_1 = require(\"@bokehjs/models/widgets/markup\");\nconst layout_1 = require(\"./layout\");\nclass MathJaxView extends layout_1.PanelMarkupView {\n    connect_signals() {\n        super.connect_signals();\n        const { text } = this.model.properties;\n        this.on_change(text, () => this.rerender_());\n    }\n    render() {\n        super.render();\n        const text = this.model.text;\n        const tex_parts = this.provider.MathJax.find_tex(text);\n        const processed_text = [];\n        let last_index = 0;\n        for (const part of tex_parts) {\n            processed_text.push(text.slice(last_index, part.start.n));\n            processed_text.push(this.provider.MathJax.tex2svg(part.math, { display: part.display }).outerHTML);\n            last_index = part.end.n;\n        }\n        if (last_index < text.length) {\n            processed_text.push(text.slice(last_index));\n        }\n        this.container.innerHTML = processed_text.join(\"\");\n    }\n}\nexports.MathJaxView = MathJaxView;\nMathJaxView.__name__ = \"MathJaxView\";\nclass MathJax extends markup_1.Markup {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.MathJax = MathJax;\n_a = MathJax;\nMathJax.__name__ = \"MathJax\";\nMathJax.__module__ = \"panel.models.mathjax\";\n(() => {\n    _a.prototype.default_view = MathJaxView;\n})();\n//# sourceMappingURL=mathjax.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"]],"dependency_map":[],"exported":[{"type":"named","name":"MathJaxView"},{"type":"named","name":"MathJax"}],"externals":[],"shims":[]},"code":{"source":"/* models/mathjax.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const markup_1 = require(\"@bokehjs/models/widgets/markup\");\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    class MathJaxView extends layout_1.PanelMarkupView {\n        connect_signals() {\n            super.connect_signals();\n            const { text } = this.model.properties;\n            this.on_change(text, () => this.rerender_());\n        }\n        render() {\n            super.render();\n            const text = this.model.text;\n            const tex_parts = this.provider.MathJax.find_tex(text);\n            const processed_text = [];\n            let last_index = 0;\n            for (const part of tex_parts) {\n                processed_text.push(text.slice(last_index, part.start.n));\n                processed_text.push(this.provider.MathJax.tex2svg(part.math, { display: part.display }).outerHTML);\n                last_index = part.end.n;\n            }\n            if (last_index < text.length) {\n                processed_text.push(text.slice(last_index));\n            }\n            this.container.innerHTML = processed_text.join(\"\");\n        }\n    }\n    exports.MathJaxView = MathJaxView;\n    MathJaxView.__name__ = \"MathJaxView\";\n    class MathJax extends markup_1.Markup {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.MathJax = MathJax;\n    _a = MathJax;\n    MathJax.__name__ = \"MathJax\";\n    MathJax.__module__ = \"panel.models.mathjax\";\n    (() => {\n        _a.prototype.default_view = MathJaxView;\n    })();\n}\n","min_source":"function _(e,t,s,a,n){var r;a();const i=e(\"@bokehjs/models/widgets/markup\"),o=e(\"dab42e6dad\");class d extends o.PanelMarkupView{connect_signals(){super.connect_signals();const{text:e}=this.model.properties;this.on_change(e,(()=>this.rerender_()))}render(){super.render();const e=this.model.text,t=this.provider.MathJax.find_tex(e),s=[];let a=0;for(const n of t)s.push(e.slice(a,n.start.n)),s.push(this.provider.MathJax.tex2svg(n.math,{display:n.display}).outerHTML),a=n.end.n;a<e.length&&s.push(e.slice(a)),this.container.innerHTML=s.join(\"\")}}s.MathJaxView=d,d.__name__=\"MathJaxView\";class h extends i.Markup{constructor(e){super(e)}}s.MathJax=h,r=h,h.__name__=\"MathJax\",h.__module__=\"panel.models.mathjax\",r.prototype.default_view=d}\n//# sourceMappingURL=mathjax.min.js.map","min_map":"{\"version\":3,\"file\":\"mathjax.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"markup_1\",\"layout_1\",\"MathJaxView\",\"PanelMarkupView\",\"connect_signals\",\"super\",\"text\",\"this\",\"model\",\"properties\",\"on_change\",\"rerender_\",\"render\",\"tex_parts\",\"provider\",\"MathJax\",\"find_tex\",\"processed_text\",\"last_index\",\"part\",\"push\",\"slice\",\"start\",\"n\",\"tex2svg\",\"math\",\"display\",\"outerHTML\",\"end\",\"length\",\"container\",\"innerHTML\",\"join\",\"__name__\",\"Markup\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\"],\"sources\":[\"0\"],\"mappings\":\"AAAwB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACrE,IAAIC,EACJF,IACA,MAAMG,EAAWN,EAAQ,kCACnBO,EAAWP,EAAQ,cACzB,MAAMQ,UAAoBD,EAASE,gBAC/B,eAAAC,GACIC,MAAMD,kBACN,MAAME,KAAEA,GAASC,KAAKC,MAAMC,WAC5BF,KAAKG,UAAUJ,GAAM,IAAMC,KAAKI,aACpC,CACA,MAAAC,GACIP,MAAMO,SACN,MAAMN,EAAOC,KAAKC,MAAMF,KAClBO,EAAYN,KAAKO,SAASC,QAAQC,SAASV,GAC3CW,EAAiB,GACvB,IAAIC,EAAa,EACjB,IAAK,MAAMC,KAAQN,EACfI,EAAeG,KAAKd,EAAKe,MAAMH,EAAYC,EAAKG,MAAMC,IACtDN,EAAeG,KAAKb,KAAKO,SAASC,QAAQS,QAAQL,EAAKM,KAAM,CAAEC,QAASP,EAAKO,UAAWC,WACxFT,EAAaC,EAAKS,IAAIL,EAEtBL,EAAaZ,EAAKuB,QAClBZ,EAAeG,KAAKd,EAAKe,MAAMH,IAEnCX,KAAKuB,UAAUC,UAAYd,EAAee,KAAK,GACnD,EAEJpC,EAAQM,YAAcA,EACtBA,EAAY+B,SAAW,cACvB,MAAMlB,UAAgBf,EAASkC,OAC3B,WAAAC,CAAYC,GACR/B,MAAM+B,EACV,EAEJxC,EAAQmB,QAAUA,EAClBhB,EAAKgB,EACLA,EAAQkB,SAAW,UACnBlB,EAAQsB,WAAa,uBAEjBtC,EAAGuC,UAAUC,aAAerC,CAEpC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/modal.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/modal.js","canonical":"models/modal","resolution":"ESM","id":"8c62aa80d9","hash":"8c62aa80d950c281c2828a5dfbefbb2cddc39087650722426a3f2276b0119483","source":"\"use strict\";\nvar _a, _b;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Modal = exports.ModalView = exports.ModalDialogEvent = void 0;\nconst tslib_1 = require(\"tslib\");\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n        r = Reflect.decorate(decorators, target, key, desc);\n    else\n        for (var i = decorators.length - 1; i >= 0; i--)\n            if (d = decorators[i])\n                r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ModalDialogEvent_1;\nconst column_1 = require(\"@bokehjs/models/layouts/column\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nconst ui_element_1 = require(\"@bokehjs/models/ui/ui_element\");\nconst types_1 = require(\"@bokehjs/core/util/types\");\nconst layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\nconst modal_css_1 = tslib_1.__importDefault(require(\"../styles/models/modal.css\"));\nlet ModalDialogEvent = (_a = class ModalDialogEvent extends bokeh_events_1.ModelEvent {\n        constructor(model, open) {\n            super();\n            this.model = model;\n            this.open = open;\n            this.open = open;\n            this.origin = model;\n        }\n        get event_values() {\n            return { open: this.open, origin: this.origin };\n        }\n        static from_values(values) {\n            const { open, model } = values;\n            return new ModalDialogEvent_1(model, open);\n        }\n    },\n    (() => {\n        ModalDialogEvent_1 = _a;\n    })(),\n    _a.__name__ = \"ModalDialogEvent\",\n    _a);\nexports.ModalDialogEvent = ModalDialogEvent;\nexports.ModalDialogEvent = ModalDialogEvent = ModalDialogEvent_1 = __decorate([\n    (0, bokeh_events_1.server_event)(\"modal-dialog-event\")\n], ModalDialogEvent);\nclass ModalView extends column_1.ColumnView {\n    connect_signals() {\n        super.connect_signals();\n        const { show_close_button } = this.model.properties;\n        this.on_change([show_close_button], this.update_close_button);\n        this.model.on_event(ModalDialogEvent, (event) => {\n            event.open ? this.modal.show() : this.modal.hide();\n        });\n    }\n    render() {\n        ui_element_1.UIElementView.prototype.render.call(this);\n        this.class_list.add(...this.css_classes());\n        this.create_modal();\n    }\n    stylesheets() {\n        return [...super.stylesheets(), modal_css_1.default];\n    }\n    async update_children() {\n        await layout_dom_1.LayoutDOMView.prototype.update_children.call(this);\n    }\n    create_modal() {\n        const dialog = (0, dom_1.div)({\n            id: \"pnx_dialog\",\n            class: \"dialog-container bk-root\",\n            style: { display: \"none\" },\n        });\n        const dialog_overlay = (0, dom_1.div)({ class: \"dialog-overlay\" });\n        if (this.model.background_close) {\n            dialog_overlay.setAttribute(\"data-a11y-dialog-hide\", \"\");\n        }\n        const { height, width, min_height, min_width, max_height, max_width } = this.model;\n        const content = (0, dom_1.div)({\n            id: \"pnx_dialog_content\",\n            class: \"dialog-content\",\n            role: \"document\",\n            style: {\n                height: (0, types_1.isNumber)(height) ? `${height}px` : height,\n                width: (0, types_1.isNumber)(width) ? `${width}px` : width,\n                min_height: (0, types_1.isNumber)(min_height) ? `${min_height}px` : min_height,\n                min_width: (0, types_1.isNumber)(min_width) ? `${min_width}px` : min_width,\n                max_height: (0, types_1.isNumber)(max_height) ? `${max_height}px` : max_height,\n                max_width: (0, types_1.isNumber)(max_width) ? `${max_width}px` : max_width,\n                overflow: \"auto\",\n            },\n        });\n        for (const child_view of this.child_views) {\n            const target = child_view.rendering_target() ?? content;\n            child_view.render_to(target);\n        }\n        this.close_button = (0, dom_1.button)({\n            id: \"pnx_dialog_close\",\n            \"data-a11y-dialog-hide\": \"\",\n            class: \"pnx-dialog-close\",\n            ariaLabel: \"Close this dialog window\",\n        });\n        this.close_button.innerHTML = \"&#x2715\";\n        dialog.append(dialog_overlay);\n        dialog.append(content);\n        content.append(this.close_button);\n        this.shadow_el.append(dialog);\n        let first_open = false;\n        this.modal = new A11yDialog(dialog);\n        this.update_close_button();\n        this.modal.on(\"show\", () => {\n            this.model.open = true;\n            dialog.style.display = \"\";\n            if (!first_open) {\n                requestAnimationFrame(() => { this.invalidate_layout(); dialog.focus(); });\n                first_open = true;\n            }\n        });\n        this.modal.on(\"hide\", () => {\n            this.model.open = false;\n            dialog.style.display = \"none\";\n        });\n        if (this.model.open) {\n            this.modal.show();\n        }\n    }\n    update_close_button() {\n        if (this.model.show_close_button) {\n            this.close_button.style.display = \"block\";\n        }\n        else {\n            this.close_button.style.display = \"none\";\n        }\n    }\n}\nexports.ModalView = ModalView;\nModalView.__name__ = \"ModalView\";\nclass Modal extends column_1.Column {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.Modal = Modal;\n_b = Modal;\nModal.__name__ = \"Modal\";\nModal.__module__ = \"panel.models.modal\";\n(() => {\n    _b.prototype.default_view = ModalView;\n    _b.define(({ Bool }) => ({\n        open: [Bool, false],\n        show_close_button: [Bool, true],\n        background_close: [Bool, true],\n    }));\n})();\n//# sourceMappingURL=modal.js.map\n","type":"js","dependency_paths":[["../styles/models/modal.css","/home/runner/work/panel/panel/panel/dist/lib/styles/models/modal.css.js"]],"dependency_map":[],"exported":[{"type":"named","name":"ModalView"},{"type":"named","name":"Modal"}],"externals":[],"shims":[]},"code":{"source":"/* models/modal.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a, _b;\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n        if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n            r = Reflect.decorate(decorators, target, key, desc);\n        else\n            for (var i = decorators.length - 1; i >= 0; i--)\n                if (d = decorators[i])\n                    r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n        return c > 3 && r && Object.defineProperty(target, key, r), r;\n    };\n    var ModalDialogEvent_1;\n    const column_1 = require(\"@bokehjs/models/layouts/column\");\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    const ui_element_1 = require(\"@bokehjs/models/ui/ui_element\");\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    const layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\n    const modal_css_1 = tslib_1.__importDefault(require(\"be4b4352c6\") /* ../styles/models/modal.css */);\n    let ModalDialogEvent = (_a = class ModalDialogEvent extends bokeh_events_1.ModelEvent {\n        constructor(model, open) {\n            super();\n            this.model = model;\n            this.open = open;\n            this.open = open;\n            this.origin = model;\n        }\n        get event_values() {\n            return { open: this.open, origin: this.origin };\n        }\n        static from_values(values) {\n            const { open, model } = values;\n            return new ModalDialogEvent_1(model, open);\n        }\n    },\n        (() => {\n            ModalDialogEvent_1 = _a;\n        })(),\n        _a.__name__ = \"ModalDialogEvent\",\n        _a);\n    exports.ModalDialogEvent = ModalDialogEvent;\n    exports.ModalDialogEvent = ModalDialogEvent = ModalDialogEvent_1 = __decorate([\n        (0, bokeh_events_1.server_event)(\"modal-dialog-event\")\n    ], ModalDialogEvent);\n    class ModalView extends column_1.ColumnView {\n        connect_signals() {\n            super.connect_signals();\n            const { show_close_button } = this.model.properties;\n            this.on_change([show_close_button], this.update_close_button);\n            this.model.on_event(ModalDialogEvent, (event) => {\n                event.open ? this.modal.show() : this.modal.hide();\n            });\n        }\n        render() {\n            ui_element_1.UIElementView.prototype.render.call(this);\n            this.class_list.add(...this.css_classes());\n            this.create_modal();\n        }\n        stylesheets() {\n            return [...super.stylesheets(), modal_css_1.default];\n        }\n        async update_children() {\n            await layout_dom_1.LayoutDOMView.prototype.update_children.call(this);\n        }\n        create_modal() {\n            const dialog = (0, dom_1.div)({\n                id: \"pnx_dialog\",\n                class: \"dialog-container bk-root\",\n                style: { display: \"none\" },\n            });\n            const dialog_overlay = (0, dom_1.div)({ class: \"dialog-overlay\" });\n            if (this.model.background_close) {\n                dialog_overlay.setAttribute(\"data-a11y-dialog-hide\", \"\");\n            }\n            const { height, width, min_height, min_width, max_height, max_width } = this.model;\n            const content = (0, dom_1.div)({\n                id: \"pnx_dialog_content\",\n                class: \"dialog-content\",\n                role: \"document\",\n                style: {\n                    height: (0, types_1.isNumber)(height) ? `${height}px` : height,\n                    width: (0, types_1.isNumber)(width) ? `${width}px` : width,\n                    min_height: (0, types_1.isNumber)(min_height) ? `${min_height}px` : min_height,\n                    min_width: (0, types_1.isNumber)(min_width) ? `${min_width}px` : min_width,\n                    max_height: (0, types_1.isNumber)(max_height) ? `${max_height}px` : max_height,\n                    max_width: (0, types_1.isNumber)(max_width) ? `${max_width}px` : max_width,\n                    overflow: \"auto\",\n                },\n            });\n            for (const child_view of this.child_views) {\n                const target = child_view.rendering_target() ?? content;\n                child_view.render_to(target);\n            }\n            this.close_button = (0, dom_1.button)({\n                id: \"pnx_dialog_close\",\n                \"data-a11y-dialog-hide\": \"\",\n                class: \"pnx-dialog-close\",\n                ariaLabel: \"Close this dialog window\",\n            });\n            this.close_button.innerHTML = \"&#x2715\";\n            dialog.append(dialog_overlay);\n            dialog.append(content);\n            content.append(this.close_button);\n            this.shadow_el.append(dialog);\n            let first_open = false;\n            this.modal = new A11yDialog(dialog);\n            this.update_close_button();\n            this.modal.on(\"show\", () => {\n                this.model.open = true;\n                dialog.style.display = \"\";\n                if (!first_open) {\n                    requestAnimationFrame(() => { this.invalidate_layout(); dialog.focus(); });\n                    first_open = true;\n                }\n            });\n            this.modal.on(\"hide\", () => {\n                this.model.open = false;\n                dialog.style.display = \"none\";\n            });\n            if (this.model.open) {\n                this.modal.show();\n            }\n        }\n        update_close_button() {\n            if (this.model.show_close_button) {\n                this.close_button.style.display = \"block\";\n            }\n            else {\n                this.close_button.style.display = \"none\";\n            }\n        }\n    }\n    exports.ModalView = ModalView;\n    ModalView.__name__ = \"ModalView\";\n    class Modal extends column_1.Column {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.Modal = Modal;\n    _b = Modal;\n    Modal.__name__ = \"Modal\";\n    Modal.__module__ = \"panel.models.modal\";\n    (() => {\n        _b.prototype.default_view = ModalView;\n        _b.define(({ Bool }) => ({\n            open: [Bool, false],\n            show_close_button: [Bool, true],\n            background_close: [Bool, true],\n        }));\n    })();\n}\n","min_source":"function _(e,t,o,s,i){var l,n;s();const a=e(\"tslib\");var d,h=this&&this.__decorate||function(e,t,o,s){var i,l=arguments.length,n=l<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,o):s;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,s);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(n=(l<3?i(n):l>3?i(t,o,n):i(t,o))||n);return l>3&&n&&Object.defineProperty(t,o,n),n};const c=e(\"@bokehjs/models/layouts/column\"),r=e(\"@bokehjs/core/dom\"),_=e(\"@bokehjs/core/bokeh_events\"),u=e(\"@bokehjs/models/ui/ui_element\"),p=e(\"@bokehjs/core/util/types\"),m=e(\"@bokehjs/models/layouts/layout_dom\"),b=a.__importDefault(e(\"be4b4352c6\"));let g=(l=class extends _.ModelEvent{constructor(e,t){super(),this.model=e,this.open=t,this.open=t,this.origin=e}get event_values(){return{open:this.open,origin:this.origin}}static from_values(e){const{open:t,model:o}=e;return new d(o,t)}},d=l,l.__name__=\"ModalDialogEvent\",l);o.ModalDialogEvent=g,o.ModalDialogEvent=g=d=h([(0,_.server_event)(\"modal-dialog-event\")],g);class y extends c.ColumnView{connect_signals(){super.connect_signals();const{show_close_button:e}=this.model.properties;this.on_change([e],this.update_close_button),this.model.on_event(g,(e=>{e.open?this.modal.show():this.modal.hide()}))}render(){u.UIElementView.prototype.render.call(this),this.class_list.add(...this.css_classes()),this.create_modal()}stylesheets(){return[...super.stylesheets(),b.default]}async update_children(){await m.LayoutDOMView.prototype.update_children.call(this)}create_modal(){const e=(0,r.div)({id:\"pnx_dialog\",class:\"dialog-container bk-root\",style:{display:\"none\"}}),t=(0,r.div)({class:\"dialog-overlay\"});this.model.background_close&&t.setAttribute(\"data-a11y-dialog-hide\",\"\");const{height:o,width:s,min_height:i,min_width:l,max_height:n,max_width:a}=this.model,d=(0,r.div)({id:\"pnx_dialog_content\",class:\"dialog-content\",role:\"document\",style:{height:(0,p.isNumber)(o)?`${o}px`:o,width:(0,p.isNumber)(s)?`${s}px`:s,min_height:(0,p.isNumber)(i)?`${i}px`:i,min_width:(0,p.isNumber)(l)?`${l}px`:l,max_height:(0,p.isNumber)(n)?`${n}px`:n,max_width:(0,p.isNumber)(a)?`${a}px`:a,overflow:\"auto\"}});for(const e of this.child_views){const t=e.rendering_target()??d;e.render_to(t)}this.close_button=(0,r.button)({id:\"pnx_dialog_close\",\"data-a11y-dialog-hide\":\"\",class:\"pnx-dialog-close\",ariaLabel:\"Close this dialog window\"}),this.close_button.innerHTML=\"&#x2715\",e.append(t),e.append(d),d.append(this.close_button),this.shadow_el.append(e);let h=!1;this.modal=new A11yDialog(e),this.update_close_button(),this.modal.on(\"show\",(()=>{this.model.open=!0,e.style.display=\"\",h||(requestAnimationFrame((()=>{this.invalidate_layout(),e.focus()})),h=!0)})),this.modal.on(\"hide\",(()=>{this.model.open=!1,e.style.display=\"none\"})),this.model.open&&this.modal.show()}update_close_button(){this.model.show_close_button?this.close_button.style.display=\"block\":this.close_button.style.display=\"none\"}}o.ModalView=y,y.__name__=\"ModalView\";class w extends c.Column{constructor(e){super(e)}}o.Modal=w,n=w,w.__name__=\"Modal\",w.__module__=\"panel.models.modal\",n.prototype.default_view=y,n.define((({Bool:e})=>({open:[e,!1],show_close_button:[e,!0],background_close:[e,!0]})))}\n//# sourceMappingURL=modal.min.js.map","min_map":"{\"version\":3,\"file\":\"modal.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"_b\",\"tslib_1\",\"ModalDialogEvent_1\",\"__decorate\",\"this\",\"decorators\",\"target\",\"key\",\"desc\",\"d\",\"c\",\"arguments\",\"length\",\"r\",\"Object\",\"getOwnPropertyDescriptor\",\"Reflect\",\"decorate\",\"i\",\"defineProperty\",\"column_1\",\"dom_1\",\"bokeh_events_1\",\"ui_element_1\",\"types_1\",\"layout_dom_1\",\"modal_css_1\",\"__importDefault\",\"ModalDialogEvent\",\"ModelEvent\",\"constructor\",\"model\",\"open\",\"super\",\"origin\",\"event_values\",\"from_values\",\"values\",\"__name__\",\"server_event\",\"ModalView\",\"ColumnView\",\"connect_signals\",\"show_close_button\",\"properties\",\"on_change\",\"update_close_button\",\"on_event\",\"event\",\"modal\",\"show\",\"hide\",\"render\",\"UIElementView\",\"prototype\",\"call\",\"class_list\",\"add\",\"css_classes\",\"create_modal\",\"stylesheets\",\"default\",\"update_children\",\"LayoutDOMView\",\"dialog\",\"div\",\"id\",\"class\",\"style\",\"display\",\"dialog_overlay\",\"background_close\",\"setAttribute\",\"height\",\"width\",\"min_height\",\"min_width\",\"max_height\",\"max_width\",\"content\",\"role\",\"isNumber\",\"overflow\",\"child_view\",\"child_views\",\"rendering_target\",\"render_to\",\"close_button\",\"button\",\"ariaLabel\",\"innerHTML\",\"append\",\"shadow_el\",\"first_open\",\"A11yDialog\",\"on\",\"requestAnimationFrame\",\"invalidate_layout\",\"focus\",\"Modal\",\"Column\",\"attrs\",\"__module__\",\"default_view\",\"define\",\"Bool\"],\"sources\":[\"0\"],\"mappings\":\"AAAsB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACnE,IAAIC,EAAIC,EACRH,IACA,MAAMI,EAAUP,EAAQ,SACxB,IAUIQ,EAVAC,EAAcC,MAAQA,KAAKD,YAAe,SAAUE,EAAYC,EAAQC,EAAKC,GAC7E,IAA2HC,EAAvHC,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIJ,EAAkB,OAATE,EAAgBA,EAAOM,OAAOC,yBAAyBT,EAAQC,GAAOC,EACrH,GAAuB,iBAAZQ,SAAoD,mBAArBA,QAAQC,SAC9CJ,EAAIG,QAAQC,SAASZ,EAAYC,EAAQC,EAAKC,QAE9C,IAAK,IAAIU,EAAIb,EAAWO,OAAS,EAAGM,GAAK,EAAGA,KACpCT,EAAIJ,EAAWa,MACfL,GAAKH,EAAI,EAAID,EAAEI,GAAKH,EAAI,EAAID,EAAEH,EAAQC,EAAKM,GAAKJ,EAAEH,EAAQC,KAASM,GAC/E,OAAOH,EAAI,GAAKG,GAAKC,OAAOK,eAAeb,EAAQC,EAAKM,GAAIA,CAChE,EAEA,MAAMO,EAAW1B,EAAQ,kCACnB2B,EAAQ3B,EAAQ,qBAChB4B,EAAiB5B,EAAQ,8BACzB6B,EAAe7B,EAAQ,iCACvB8B,EAAU9B,EAAQ,4BAClB+B,EAAe/B,EAAQ,sCACvBgC,EAAczB,EAAQ0B,gBAAgBjC,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AM8C,GAAG,QAAQ,KAClB3F,KAAK2B,MAAMC,MAAO,EAClBgC,EAAOI,MAAMC,QAAU,MAAM,IAE7BjE,KAAK2B,MAAMC,MACX5B,KAAK6C,MAAMC,MAEnB,CACA,mBAAAJ,GACQ1C,KAAK2B,MAAMY,kBACXvC,KAAKmF,aAAanB,MAAMC,QAAU,QAGlCjE,KAAKmF,aAAanB,MAAMC,QAAU,MAE1C,EAEJzE,EAAQ4C,UAAYA,EACpBA,EAAUF,SAAW,YACrB,MAAM6D,UAAc/E,EAASgF,OACzB,WAAAtE,CAAYuE,GACRpE,MAAMoE,EACV,EAEJzG,EAAQuG,MAAQA,EAChBnG,EAAKmG,EACLA,EAAM7D,SAAW,QACjB6D,EAAMG,WAAa,qBAEftG,EAAGsD,UAAUiD,aAAe/D,EAC5BxC,EAAGwG,QAAO,EAAGC,WAAW,CACpBzE,KAAM,CAACyE,GAAM,GACb9D,kBAAmB,CAAC8D,GAAM,GAC1BlC,iBAAkB,CAACkC,GAAM,MAGrC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/styles/models/modal.css.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"styles/models/modal.css.js","canonical":"styles/models/modal.css","resolution":"ESM","id":"be4b4352c6","hash":"be4b4352c6bb7aa68f786ac046dd79533eecbe92e40946e95f8b17e0f581786c","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.panel_models_modal_Modal = void 0;\nexports.panel_models_modal_Modal = \"bk-panel-models-modal-Modal\";\nexports.default = `:host(.bk-panel-models-modal-Modal){width:0;height:0;}.dialog-container,.dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;}.dialog-container{z-index:100002;display:flex;}.dialog-overlay{z-index:100001;background-color:rgba(43, 46, 56, 0.9);}.dialog-content{margin:auto;z-index:100002;position:relative;background-color:white;border-radius:2px;padding:10px;padding-bottom:20px;}@keyframes fade-in{from{opacity:0;}}@keyframes slide-up{from{transform:translateY(10%);}}.dialog-overlay{animation:fade-in 200ms both;}.dialog-content{animation:fade-in 400ms 200ms both, slide-up 400ms 200ms both;}@media (prefers-reduced-motion: reduce){.dialog-overlay,.dialog-content{animation:none;}}.pnx-dialog-close{position:absolute;top:0;right:0;border:0;padding:0;background-color:transparent;font-size:1.5em;width:1.5em;height:1.5em;text-align:center;cursor:pointer;transition:0.15s;border-radius:50%;z-index:100003;}.pnx-dialog-close:hover{background-color:rgba(50, 50, 0, 0.15);}.lm-Widget.p-Widget.lm-TabBar.p-TabBar.lm-DockPanel-tabBar.jp-Activity{z-index:-1;}`;\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"default"}],"externals":[],"shims":[]},"code":{"source":"/* styles/models/modal.css.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.panel_models_modal_Modal = \"bk-panel-models-modal-Modal\";\n    exports.default = `:host(.bk-panel-models-modal-Modal){width:0;height:0;}.dialog-container,.dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;}.dialog-container{z-index:100002;display:flex;}.dialog-overlay{z-index:100001;background-color:rgba(43, 46, 56, 0.9);}.dialog-content{margin:auto;z-index:100002;position:relative;background-color:white;border-radius:2px;padding:10px;padding-bottom:20px;}@keyframes fade-in{from{opacity:0;}}@keyframes slide-up{from{transform:translateY(10%);}}.dialog-overlay{animation:fade-in 200ms both;}.dialog-content{animation:fade-in 400ms 200ms both, slide-up 400ms 200ms both;}@media (prefers-reduced-motion: reduce){.dialog-overlay,.dialog-content{animation:none;}}.pnx-dialog-close{position:absolute;top:0;right:0;border:0;padding:0;background-color:transparent;font-size:1.5em;width:1.5em;height:1.5em;text-align:center;cursor:pointer;transition:0.15s;border-radius:50%;z-index:100003;}.pnx-dialog-close:hover{background-color:rgba(50, 50, 0, 0.15);}.lm-Widget.p-Widget.lm-TabBar.p-TabBar.lm-DockPanel-tabBar.jp-Activity{z-index:-1;}`;\n}\n","min_source":"function _(o,a,e,i,d){i(),e.panel_models_modal_Modal=\"bk-panel-models-modal-Modal\",e.default=\":host(.bk-panel-models-modal-Modal){width:0;height:0;}.dialog-container,.dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;}.dialog-container{z-index:100002;display:flex;}.dialog-overlay{z-index:100001;background-color:rgba(43, 46, 56, 0.9);}.dialog-content{margin:auto;z-index:100002;position:relative;background-color:white;border-radius:2px;padding:10px;padding-bottom:20px;}@keyframes fade-in{from{opacity:0;}}@keyframes slide-up{from{transform:translateY(10%);}}.dialog-overlay{animation:fade-in 200ms both;}.dialog-content{animation:fade-in 400ms 200ms both, slide-up 400ms 200ms both;}@media (prefers-reduced-motion: reduce){.dialog-overlay,.dialog-content{animation:none;}}.pnx-dialog-close{position:absolute;top:0;right:0;border:0;padding:0;background-color:transparent;font-size:1.5em;width:1.5em;height:1.5em;text-align:center;cursor:pointer;transition:0.15s;border-radius:50%;z-index:100003;}.pnx-dialog-close:hover{background-color:rgba(50, 50, 0, 0.15);}.lm-Widget.p-Widget.lm-TabBar.p-TabBar.lm-DockPanel-tabBar.jp-Activity{z-index:-1;}\"}\n//# sourceMappingURL=modal.css.min.js.map","min_map":"{\"version\":3,\"file\":\"modal.css.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"panel_models_modal_Modal\",\"default\"],\"sources\":[\"0\"],\"mappings\":\"AAAiC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC9ED,IACAD,EAAQG,yBAA2B,8BACnCH,EAAQI,QAAU,uiCACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/pdf.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/pdf.js","canonical":"models/pdf","resolution":"ESM","id":"f87ad1873c","hash":"f87ad1873cf89fb16d6d1afe1d54446322111be20dbffbfc973af6204cfbb7cb","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PDF = exports.PDFView = void 0;\nconst markup_1 = require(\"@bokehjs/models/widgets/markup\");\nconst layout_1 = require(\"./layout\");\nconst html_1 = require(\"./html\");\nclass PDFView extends layout_1.PanelMarkupView {\n    connect_signals() {\n        super.connect_signals();\n        const { text, width, height, embed, start_page } = this.model.properties;\n        this.on_change([text, width, height, embed, start_page], () => { this.update(); });\n    }\n    render() {\n        super.render();\n        this.update();\n    }\n    update() {\n        if (this.model.embed) {\n            const blob = this.convert_base64_to_blob();\n            const url = URL.createObjectURL(blob);\n            this.container.innerHTML = `<embed src=\"${url}#page=${this.model.start_page}\" type=\"application/pdf\" width=\"100%\" height=\"100%\"></embed>`;\n        }\n        else {\n            const html = (0, html_1.html_decode)(this.model.text);\n            this.container.innerHTML = html || \"\";\n        }\n    }\n    convert_base64_to_blob() {\n        const byte_characters = atob(this.model.text);\n        const slice_size = 512;\n        const byte_arrays = [];\n        for (let offset = 0; offset < byte_characters.length; offset += slice_size) {\n            const slice = byte_characters.slice(offset, offset + slice_size);\n            const byte_numbers = new Uint8Array(slice.length);\n            for (let i = 0; i < slice.length; i++) {\n                byte_numbers[i] = slice.charCodeAt(i);\n            }\n            byte_arrays.push(byte_numbers);\n        }\n        return new Blob(byte_arrays, { type: \"application/pdf\" });\n    }\n}\nexports.PDFView = PDFView;\nPDFView.__name__ = \"PDFView\";\nclass PDF extends markup_1.Markup {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.PDF = PDF;\n_a = PDF;\nPDF.__name__ = \"PDF\";\nPDF.__module__ = \"panel.models.markup\";\n(() => {\n    _a.prototype.default_view = PDFView;\n    _a.define(({ Int, Bool }) => ({\n        embed: [Bool, false],\n        start_page: [Int, 1],\n    }));\n})();\n//# sourceMappingURL=pdf.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"],["./html","/home/runner/work/panel/panel/panel/dist/lib/models/html.js"]],"dependency_map":[],"exported":[{"type":"named","name":"PDFView"},{"type":"named","name":"PDF"}],"externals":[],"shims":[]},"code":{"source":"/* models/pdf.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const markup_1 = require(\"@bokehjs/models/widgets/markup\");\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    const html_1 = require(\"4c04683fdc\") /* ./html */;\n    class PDFView extends layout_1.PanelMarkupView {\n        connect_signals() {\n            super.connect_signals();\n            const { text, width, height, embed, start_page } = this.model.properties;\n            this.on_change([text, width, height, embed, start_page], () => { this.update(); });\n        }\n        render() {\n            super.render();\n            this.update();\n        }\n        update() {\n            if (this.model.embed) {\n                const blob = this.convert_base64_to_blob();\n                const url = URL.createObjectURL(blob);\n                this.container.innerHTML = `<embed src=\"${url}#page=${this.model.start_page}\" type=\"application/pdf\" width=\"100%\" height=\"100%\"></embed>`;\n            }\n            else {\n                const html = (0, html_1.html_decode)(this.model.text);\n                this.container.innerHTML = html || \"\";\n            }\n        }\n        convert_base64_to_blob() {\n            const byte_characters = atob(this.model.text);\n            const slice_size = 512;\n            const byte_arrays = [];\n            for (let offset = 0; offset < byte_characters.length; offset += slice_size) {\n                const slice = byte_characters.slice(offset, offset + slice_size);\n                const byte_numbers = new Uint8Array(slice.length);\n                for (let i = 0; i < slice.length; i++) {\n                    byte_numbers[i] = slice.charCodeAt(i);\n                }\n                byte_arrays.push(byte_numbers);\n            }\n            return new Blob(byte_arrays, { type: \"application/pdf\" });\n        }\n    }\n    exports.PDFView = PDFView;\n    PDFView.__name__ = \"PDFView\";\n    class PDF extends markup_1.Markup {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.PDF = PDF;\n    _a = PDF;\n    PDF.__name__ = \"PDF\";\n    PDF.__module__ = \"panel.models.markup\";\n    (() => {\n        _a.prototype.default_view = PDFView;\n        _a.define(({ Int, Bool }) => ({\n            embed: [Bool, false],\n            start_page: [Int, 1],\n        }));\n    })();\n}\n","min_source":"function _(e,t,n,s,o){var a;s();const i=e(\"@bokehjs/models/widgets/markup\"),r=e(\"dab42e6dad\"),d=e(\"4c04683fdc\");class c extends r.PanelMarkupView{connect_signals(){super.connect_signals();const{text:e,width:t,height:n,embed:s,start_page:o}=this.model.properties;this.on_change([e,t,n,s,o],(()=>{this.update()}))}render(){super.render(),this.update()}update(){if(this.model.embed){const e=this.convert_base64_to_blob(),t=URL.createObjectURL(e);this.container.innerHTML=`<embed src=\"${t}#page=${this.model.start_page}\" type=\"application/pdf\" width=\"100%\" height=\"100%\"></embed>`}else{const e=(0,d.html_decode)(this.model.text);this.container.innerHTML=e||\"\"}}convert_base64_to_blob(){const e=atob(this.model.text),t=[];for(let n=0;n<e.length;n+=512){const s=e.slice(n,n+512),o=new Uint8Array(s.length);for(let e=0;e<s.length;e++)o[e]=s.charCodeAt(e);t.push(o)}return new Blob(t,{type:\"application/pdf\"})}}n.PDFView=c,c.__name__=\"PDFView\";class l extends i.Markup{constructor(e){super(e)}}n.PDF=l,a=l,l.__name__=\"PDF\",l.__module__=\"panel.models.markup\",a.prototype.default_view=c,a.define((({Int:e,Bool:t})=>({embed:[t,!1],start_page:[e,1]})))}\n//# sourceMappingURL=pdf.min.js.map","min_map":"{\"version\":3,\"file\":\"pdf.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"markup_1\",\"layout_1\",\"html_1\",\"PDFView\",\"PanelMarkupView\",\"connect_signals\",\"super\",\"text\",\"width\",\"height\",\"embed\",\"start_page\",\"this\",\"model\",\"properties\",\"on_change\",\"update\",\"render\",\"blob\",\"convert_base64_to_blob\",\"url\",\"URL\",\"createObjectURL\",\"container\",\"innerHTML\",\"html\",\"html_decode\",\"byte_characters\",\"atob\",\"byte_arrays\",\"offset\",\"length\",\"slice\",\"byte_numbers\",\"Uint8Array\",\"i\",\"charCodeAt\",\"push\",\"Blob\",\"type\",\"__name__\",\"PDF\",\"Markup\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Int\",\"Bool\"],\"sources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MsC,EACV,EAEJhD,EAAQ6C,IAAMA,EACd1C,EAAK0C,EACLA,EAAID,SAAW,MACfC,EAAII,WAAa,sBAEb9C,EAAG+C,UAAUC,aAAe5C,EAC5BJ,EAAGiD,QAAO,EAAGC,MAAKC,WAAW,CACzBxC,MAAO,CAACwC,GAAM,GACdvC,WAAY,CAACsC,EAAK,MAG9B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/perspective.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/perspective.js","canonical":"models/perspective","resolution":"ESM","id":"29a0b0da9a","hash":"29a0b0da9a768bc1d0d69603403204d7af59372f12fde721661e4979762379b1","source":"\"use strict\";\nvar _a, _b;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Perspective = exports.PerspectiveView = exports.PerspectiveClickEvent = void 0;\nconst tslib_1 = require(\"tslib\");\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst column_data_source_1 = require(\"@bokehjs/models/sources/column_data_source\");\nconst layout_1 = require(\"./layout\");\nconst perspective_css_1 = tslib_1.__importDefault(require(\"../styles/models/perspective.css\"));\nconst THEMES = {\n    \"pro-dark\": \"Pro Dark\",\n    pro: \"Pro Light\",\n    vaporwave: \"Vaporwave\",\n    solarized: \"Solarized\",\n    \"solarized-dark\": \"Solarized Dark\",\n    monokai: \"Monokai\",\n};\nconst PLUGINS = {\n    datagrid: \"Datagrid\",\n    d3_x_bar: \"X Bar\",\n    d3_y_bar: \"Y Bar\",\n    d3_xy_line: \"X/Y Line\",\n    d3_y_line: \"Y Line\",\n    d3_y_area: \"Y Area\",\n    d3_y_scatter: \"Y Scatter\",\n    d3_xy_scatter: \"X/Y Scatter\",\n    d3_treemap: \"Treemap\",\n    d3_candlestick: \"Candlestick\",\n    d3_sunburst: \"Sunburst\",\n    d3_heatmap: \"Heatmap\",\n    d3_ohlc: \"OHLC\",\n};\nfunction objectFlip(obj) {\n    const ret = {};\n    Object.keys(obj).forEach(key => {\n        ret[obj[key]] = key;\n    });\n    return ret;\n}\nconst PLUGINS_REVERSE = objectFlip(PLUGINS);\nconst THEMES_REVERSE = objectFlip(THEMES);\nclass PerspectiveClickEvent extends bokeh_events_1.ModelEvent {\n    constructor(config, column_names, row) {\n        super();\n        this.config = config;\n        this.column_names = column_names;\n        this.row = row;\n    }\n    get event_values() {\n        return { model: this.origin, config: this.config, column_names: this.column_names, row: this.row };\n    }\n}\nexports.PerspectiveClickEvent = PerspectiveClickEvent;\n_a = PerspectiveClickEvent;\nPerspectiveClickEvent.__name__ = \"PerspectiveClickEvent\";\n(() => {\n    _a.prototype.event_name = \"perspective-click\";\n})();\nclass PerspectiveView extends layout_1.HTMLBoxView {\n    constructor() {\n        super(...arguments);\n        this._updating = false;\n        this._config_listener = null;\n        this._current_config = null;\n        this._current_plugin = null;\n        this._loaded = false;\n        this._plugin_configs = new Map();\n    }\n    connect_signals() {\n        super.connect_signals();\n        this.connect(this.model.source.properties.data.change, () => this.setData());\n        this.connect(this.model.source.streaming, () => this.stream());\n        this.connect(this.model.source.patching, () => this.patch());\n        const { schema, columns, expressions, split_by, group_by, aggregates, filters, sort, plugin, selectable, editable, theme, title, settings, } = this.model.properties;\n        const not_updating = (fn) => {\n            return () => {\n                if (this._updating) {\n                    return;\n                }\n                fn();\n            };\n        };\n        this.on_change(schema, () => {\n            this.worker.table(this.model.schema).then((table) => {\n                this.table = table;\n                this.table.update(this.data);\n                this.perspective_element.load(this.table);\n            });\n        });\n        this.on_change(columns, not_updating(() => {\n            this.perspective_element.restore({ columns: this.model.columns });\n        }));\n        this.on_change(expressions, not_updating(() => {\n            this.perspective_element.restore({ expressions: this.model.expressions });\n        }));\n        this.on_change(split_by, not_updating(() => {\n            this.perspective_element.restore({ split_by: this.model.split_by });\n        }));\n        this.on_change(group_by, not_updating(() => {\n            this.perspective_element.restore({ group_by: this.model.group_by });\n        }));\n        this.on_change(aggregates, not_updating(() => {\n            this.perspective_element.restore({ aggregates: this.model.aggregates });\n        }));\n        this.on_change(filters, not_updating(() => {\n            this.perspective_element.restore({ filter: this.model.filters });\n        }));\n        this.on_change(settings, not_updating(() => {\n            this.perspective_element.restore({ settings: this.model.settings });\n        }));\n        this.on_change(title, not_updating(() => {\n            this.perspective_element.restore({ title: this.model.title });\n        }));\n        this.on_change(sort, not_updating(() => {\n            this.perspective_element.restore({ sort: this.model.sort });\n        }));\n        this.on_change(plugin, not_updating(() => {\n            this.perspective_element.restore({ plugin: PLUGINS[this.model.plugin], ...settings });\n        }));\n        this.on_change(selectable, not_updating(() => {\n            this.perspective_element.restore({ plugin_config: { ...this._current_config, selectable: this.model.selectable } });\n        }));\n        this.on_change(editable, not_updating(() => {\n            this.perspective_element.restore({ plugin_config: { ...this._current_config, editable: this.model.editable } });\n        }));\n        this.on_change(theme, not_updating(() => {\n            this.perspective_element.restore({ theme: THEMES[this.model.theme] }).catch(() => { });\n        }));\n    }\n    disconnect_signals() {\n        if (this._config_listener != null) {\n            this.perspective_element.removeEventListener(\"perspective-config-update\", this._config_listener);\n        }\n        this._config_listener = null;\n        super.disconnect_signals();\n    }\n    remove() {\n        if (this.perspective_element) {\n            this.perspective_element.delete(() => this.worker.terminate());\n        }\n        super.remove();\n    }\n    stylesheets() {\n        return [...super.stylesheets(), perspective_css_1.default];\n    }\n    render() {\n        super.render();\n        const container = (0, dom_1.div)({\n            class: \"pnx-perspective-viewer\",\n            style: {\n                zIndex: \"0\",\n            },\n        });\n        this._current_plugin = this.model.plugin;\n        (0, layout_1.set_size)(container, this.model);\n        this.shadow_el.appendChild(container);\n        new Promise((resolve, reject) => {\n            const start = Date.now();\n            const timeout = 5000;\n            const interval = 100;\n            const check = () => {\n                if (window.perspective_viewer !== undefined) {\n                    resolve(null);\n                }\n                else if (Date.now() - start > timeout) {\n                    reject(new Error(\"Timed out waiting for window.perspective_viewer\"));\n                }\n                else {\n                    setTimeout(check, interval);\n                }\n            };\n            check();\n        }).then(() => {\n            window.perspective.worker().then((worker) => {\n                this.worker = worker;\n                worker.table(this.model.schema).then((table) => {\n                    this.table = table;\n                    this.table.update(this.data);\n                    container.innerHTML = \"<perspective-viewer style='height:100%; width:100%;'></perspective-viewer>\";\n                    this.perspective_element = container.children[0];\n                    const themesArray = Object.values(THEMES);\n                    const filteredThemes = themesArray.filter(t => t !== this.model.theme);\n                    const orderedThemes = [this.model.theme, ...filteredThemes];\n                    this.perspective_element.resetThemes(orderedThemes).catch(() => { });\n                    this.perspective_element.load(this.table);\n                    const plugin_config = {\n                        ...this.model.plugin_config,\n                        editable: this.model.editable,\n                        selectable: this.model.selectable,\n                    };\n                    this.perspective_element.restore({\n                        aggregates: this.model.aggregates,\n                        columns: this.model.columns,\n                        columns_config: this.model.columns_config,\n                        expressions: this.model.expressions,\n                        filter: this.model.filters,\n                        split_by: this.model.split_by,\n                        group_by: this.model.group_by,\n                        plugin: PLUGINS[this.model.plugin],\n                        plugin_config,\n                        settings: this.model.settings,\n                        sort: this.model.sort,\n                        theme: THEMES[this.model.theme],\n                        title: this.model.title,\n                    }).catch(() => { });\n                    this.perspective_element.save().then((config) => {\n                        this._current_config = config;\n                    });\n                    this._config_listener = () => this.sync_config();\n                    this.perspective_element.addEventListener(\"perspective-config-update\", this._config_listener);\n                    this.perspective_element.addEventListener(\"perspective-click\", (event) => {\n                        this.model.trigger_event(new PerspectiveClickEvent(event.detail.config, event.detail.column_names, event.detail.row));\n                    });\n                    this._loaded = true;\n                });\n            });\n        });\n    }\n    sync_config() {\n        if (this._updating) {\n            return true;\n        }\n        this.perspective_element.save().then((config) => {\n            if (config.plugin !== this._current_plugin) {\n                this._plugin_configs.set(this._current_plugin, {\n                    columns: this._current_config.columns,\n                    columns_config: this._current_config.columns_config,\n                    plugin_config: this._current_config.plugin_config,\n                });\n                if (this._plugin_configs.has(config.plugin)) {\n                    const overrides = this._plugin_configs.get(config.plugin);\n                    this.perspective_element.restore(overrides);\n                    config = { ...config, ...overrides };\n                }\n            }\n            this._current_config = config;\n            this._current_plugin = config.plugin;\n            const props = {};\n            for (let option in config) {\n                let value = config[option];\n                if (value === undefined || (option == \"plugin\" && value === \"debug\") || option == \"version\" || this.model.properties.hasOwnProperty(option) === undefined) {\n                    continue;\n                }\n                if (option === \"filter\") {\n                    option = \"filters\";\n                }\n                else if (option === \"plugin\") {\n                    value = PLUGINS_REVERSE[value];\n                }\n                else if (option === \"theme\") {\n                    value = THEMES_REVERSE[value];\n                }\n                props[option] = value;\n            }\n            this._updating = true;\n            this.model.setv(props);\n            this._updating = false;\n        });\n        return true;\n    }\n    get data() {\n        const data = {};\n        for (const column of this.model.source.columns()) {\n            let array = this.model.source.get_array(column);\n            if (this.model.schema[column] == \"datetime\" && array.includes(-9223372036854776)) {\n                array = array.map((v) => v === -9223372036854776 ? null : v);\n            }\n            data[column] = array;\n        }\n        return data;\n    }\n    setData() {\n        if (!this._loaded) {\n            return;\n        }\n        for (const col of this.model.source.columns()) {\n            if (!(col in this.model.schema)) {\n                return;\n            }\n        }\n        this.table.replace(this.data);\n    }\n    stream() {\n        if (this._loaded) {\n            this.table.replace(this.data);\n        }\n    }\n    patch() {\n        if (this._loaded) {\n            this.table.replace(this.data);\n        }\n    }\n}\nexports.PerspectiveView = PerspectiveView;\nPerspectiveView.__name__ = \"PerspectiveView\";\nclass Perspective extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.Perspective = Perspective;\n_b = Perspective;\nPerspective.__name__ = \"Perspective\";\nPerspective.__module__ = \"panel.models.perspective\";\n(() => {\n    _b.prototype.default_view = PerspectiveView;\n    _b.define(({ Any, List, Bool, Ref, Nullable, Str }) => ({\n        aggregates: [Any, {}],\n        columns: [List(Nullable(Str)), []],\n        columns_config: [Any, {}],\n        expressions: [Any, {}],\n        split_by: [Nullable(List(Str)), null],\n        editable: [Bool, true],\n        filters: [Nullable(List(Any)), null],\n        group_by: [Nullable(List(Str)), null],\n        plugin: [Str],\n        plugin_config: [Any, {}],\n        selectable: [Bool, true],\n        settings: [Bool, true],\n        schema: [Any, {}],\n        sort: [Nullable(List(List(Str))), null],\n        source: [Ref(column_data_source_1.ColumnDataSource)],\n        theme: [Str, \"pro\"],\n        title: [Nullable(Str), null],\n    }));\n})();\n//# sourceMappingURL=perspective.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"],["../styles/models/perspective.css","/home/runner/work/panel/panel/panel/dist/lib/styles/models/perspective.css.js"]],"dependency_map":[],"exported":[{"type":"named","name":"PerspectiveClickEvent"},{"type":"named","name":"PerspectiveView"},{"type":"named","name":"Perspective"}],"externals":[],"shims":[]},"code":{"source":"/* models/perspective.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a, _b;\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const column_data_source_1 = require(\"@bokehjs/models/sources/column_data_source\");\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    const perspective_css_1 = tslib_1.__importDefault(require(\"2e2913ea54\") /* ../styles/models/perspective.css */);\n    const THEMES = {\n        \"pro-dark\": \"Pro Dark\",\n        pro: \"Pro Light\",\n        vaporwave: \"Vaporwave\",\n        solarized: \"Solarized\",\n        \"solarized-dark\": \"Solarized Dark\",\n        monokai: \"Monokai\",\n    };\n    const PLUGINS = {\n        datagrid: \"Datagrid\",\n        d3_x_bar: \"X Bar\",\n        d3_y_bar: \"Y Bar\",\n        d3_xy_line: \"X/Y Line\",\n        d3_y_line: \"Y Line\",\n        d3_y_area: \"Y Area\",\n        d3_y_scatter: \"Y Scatter\",\n        d3_xy_scatter: \"X/Y Scatter\",\n        d3_treemap: \"Treemap\",\n        d3_candlestick: \"Candlestick\",\n        d3_sunburst: \"Sunburst\",\n        d3_heatmap: \"Heatmap\",\n        d3_ohlc: \"OHLC\",\n    };\n    function objectFlip(obj) {\n        const ret = {};\n        Object.keys(obj).forEach(key => {\n            ret[obj[key]] = key;\n        });\n        return ret;\n    }\n    const PLUGINS_REVERSE = objectFlip(PLUGINS);\n    const THEMES_REVERSE = objectFlip(THEMES);\n    class PerspectiveClickEvent extends bokeh_events_1.ModelEvent {\n        constructor(config, column_names, row) {\n            super();\n            this.config = config;\n            this.column_names = column_names;\n            this.row = row;\n        }\n        get event_values() {\n            return { model: this.origin, config: this.config, column_names: this.column_names, row: this.row };\n        }\n    }\n    exports.PerspectiveClickEvent = PerspectiveClickEvent;\n    _a = PerspectiveClickEvent;\n    PerspectiveClickEvent.__name__ = \"PerspectiveClickEvent\";\n    (() => {\n        _a.prototype.event_name = \"perspective-click\";\n    })();\n    class PerspectiveView extends layout_1.HTMLBoxView {\n        constructor() {\n            super(...arguments);\n            this._updating = false;\n            this._config_listener = null;\n            this._current_config = null;\n            this._current_plugin = null;\n            this._loaded = false;\n            this._plugin_configs = new Map();\n        }\n        connect_signals() {\n            super.connect_signals();\n            this.connect(this.model.source.properties.data.change, () => this.setData());\n            this.connect(this.model.source.streaming, () => this.stream());\n            this.connect(this.model.source.patching, () => this.patch());\n            const { schema, columns, expressions, split_by, group_by, aggregates, filters, sort, plugin, selectable, editable, theme, title, settings, } = this.model.properties;\n            const not_updating = (fn) => {\n                return () => {\n                    if (this._updating) {\n                        return;\n                    }\n                    fn();\n                };\n            };\n            this.on_change(schema, () => {\n                this.worker.table(this.model.schema).then((table) => {\n                    this.table = table;\n                    this.table.update(this.data);\n                    this.perspective_element.load(this.table);\n                });\n            });\n            this.on_change(columns, not_updating(() => {\n                this.perspective_element.restore({ columns: this.model.columns });\n            }));\n            this.on_change(expressions, not_updating(() => {\n                this.perspective_element.restore({ expressions: this.model.expressions });\n            }));\n            this.on_change(split_by, not_updating(() => {\n                this.perspective_element.restore({ split_by: this.model.split_by });\n            }));\n            this.on_change(group_by, not_updating(() => {\n                this.perspective_element.restore({ group_by: this.model.group_by });\n            }));\n            this.on_change(aggregates, not_updating(() => {\n                this.perspective_element.restore({ aggregates: this.model.aggregates });\n            }));\n            this.on_change(filters, not_updating(() => {\n                this.perspective_element.restore({ filter: this.model.filters });\n            }));\n            this.on_change(settings, not_updating(() => {\n                this.perspective_element.restore({ settings: this.model.settings });\n            }));\n            this.on_change(title, not_updating(() => {\n                this.perspective_element.restore({ title: this.model.title });\n            }));\n            this.on_change(sort, not_updating(() => {\n                this.perspective_element.restore({ sort: this.model.sort });\n            }));\n            this.on_change(plugin, not_updating(() => {\n                this.perspective_element.restore({ plugin: PLUGINS[this.model.plugin], ...settings });\n            }));\n            this.on_change(selectable, not_updating(() => {\n                this.perspective_element.restore({ plugin_config: { ...this._current_config, selectable: this.model.selectable } });\n            }));\n            this.on_change(editable, not_updating(() => {\n                this.perspective_element.restore({ plugin_config: { ...this._current_config, editable: this.model.editable } });\n            }));\n            this.on_change(theme, not_updating(() => {\n                this.perspective_element.restore({ theme: THEMES[this.model.theme] }).catch(() => { });\n            }));\n        }\n        disconnect_signals() {\n            if (this._config_listener != null) {\n                this.perspective_element.removeEventListener(\"perspective-config-update\", this._config_listener);\n            }\n            this._config_listener = null;\n            super.disconnect_signals();\n        }\n        remove() {\n            if (this.perspective_element) {\n                this.perspective_element.delete(() => this.worker.terminate());\n            }\n            super.remove();\n        }\n        stylesheets() {\n            return [...super.stylesheets(), perspective_css_1.default];\n        }\n        render() {\n            super.render();\n            const container = (0, dom_1.div)({\n                class: \"pnx-perspective-viewer\",\n                style: {\n                    zIndex: \"0\",\n                },\n            });\n            this._current_plugin = this.model.plugin;\n            (0, layout_1.set_size)(container, this.model);\n            this.shadow_el.appendChild(container);\n            new Promise((resolve, reject) => {\n                const start = Date.now();\n                const timeout = 5000;\n                const interval = 100;\n                const check = () => {\n                    if (window.perspective_viewer !== undefined) {\n                        resolve(null);\n                    }\n                    else if (Date.now() - start > timeout) {\n                        reject(new Error(\"Timed out waiting for window.perspective_viewer\"));\n                    }\n                    else {\n                        setTimeout(check, interval);\n                    }\n                };\n                check();\n            }).then(() => {\n                window.perspective.worker().then((worker) => {\n                    this.worker = worker;\n                    worker.table(this.model.schema).then((table) => {\n                        this.table = table;\n                        this.table.update(this.data);\n                        container.innerHTML = \"<perspective-viewer style='height:100%; width:100%;'></perspective-viewer>\";\n                        this.perspective_element = container.children[0];\n                        const themesArray = Object.values(THEMES);\n                        const filteredThemes = themesArray.filter(t => t !== this.model.theme);\n                        const orderedThemes = [this.model.theme, ...filteredThemes];\n                        this.perspective_element.resetThemes(orderedThemes).catch(() => { });\n                        this.perspective_element.load(this.table);\n                        const plugin_config = {\n                            ...this.model.plugin_config,\n                            editable: this.model.editable,\n                            selectable: this.model.selectable,\n                        };\n                        this.perspective_element.restore({\n                            aggregates: this.model.aggregates,\n                            columns: this.model.columns,\n                            columns_config: this.model.columns_config,\n                            expressions: this.model.expressions,\n                            filter: this.model.filters,\n                            split_by: this.model.split_by,\n                            group_by: this.model.group_by,\n                            plugin: PLUGINS[this.model.plugin],\n                            plugin_config,\n                            settings: this.model.settings,\n                            sort: this.model.sort,\n                            theme: THEMES[this.model.theme],\n                            title: this.model.title,\n                        }).catch(() => { });\n                        this.perspective_element.save().then((config) => {\n                            this._current_config = config;\n                        });\n                        this._config_listener = () => this.sync_config();\n                        this.perspective_element.addEventListener(\"perspective-config-update\", this._config_listener);\n                        this.perspective_element.addEventListener(\"perspective-click\", (event) => {\n                            this.model.trigger_event(new PerspectiveClickEvent(event.detail.config, event.detail.column_names, event.detail.row));\n                        });\n                        this._loaded = true;\n                    });\n                });\n            });\n        }\n        sync_config() {\n            if (this._updating) {\n                return true;\n            }\n            this.perspective_element.save().then((config) => {\n                if (config.plugin !== this._current_plugin) {\n                    this._plugin_configs.set(this._current_plugin, {\n                        columns: this._current_config.columns,\n                        columns_config: this._current_config.columns_config,\n                        plugin_config: this._current_config.plugin_config,\n                    });\n                    if (this._plugin_configs.has(config.plugin)) {\n                        const overrides = this._plugin_configs.get(config.plugin);\n                        this.perspective_element.restore(overrides);\n                        config = { ...config, ...overrides };\n                    }\n                }\n                this._current_config = config;\n                this._current_plugin = config.plugin;\n                const props = {};\n                for (let option in config) {\n                    let value = config[option];\n                    if (value === undefined || (option == \"plugin\" && value === \"debug\") || option == \"version\" || this.model.properties.hasOwnProperty(option) === undefined) {\n                        continue;\n                    }\n                    if (option === \"filter\") {\n                        option = \"filters\";\n                    }\n                    else if (option === \"plugin\") {\n                        value = PLUGINS_REVERSE[value];\n                    }\n                    else if (option === \"theme\") {\n                        value = THEMES_REVERSE[value];\n                    }\n                    props[option] = value;\n                }\n                this._updating = true;\n                this.model.setv(props);\n                this._updating = false;\n            });\n            return true;\n        }\n        get data() {\n            const data = {};\n            for (const column of this.model.source.columns()) {\n                let array = this.model.source.get_array(column);\n                if (this.model.schema[column] == \"datetime\" && array.includes(-9223372036854776)) {\n                    array = array.map((v) => v === -9223372036854776 ? null : v);\n                }\n                data[column] = array;\n            }\n            return data;\n        }\n        setData() {\n            if (!this._loaded) {\n                return;\n            }\n            for (const col of this.model.source.columns()) {\n                if (!(col in this.model.schema)) {\n                    return;\n                }\n            }\n            this.table.replace(this.data);\n        }\n        stream() {\n            if (this._loaded) {\n                this.table.replace(this.data);\n            }\n        }\n        patch() {\n            if (this._loaded) {\n                this.table.replace(this.data);\n            }\n        }\n    }\n    exports.PerspectiveView = PerspectiveView;\n    PerspectiveView.__name__ = \"PerspectiveView\";\n    class Perspective extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.Perspective = Perspective;\n    _b = Perspective;\n    Perspective.__name__ = \"Perspective\";\n    Perspective.__module__ = \"panel.models.perspective\";\n    (() => {\n        _b.prototype.default_view = PerspectiveView;\n        _b.define(({ Any, List, Bool, Ref, Nullable, Str }) => ({\n            aggregates: [Any, {}],\n            columns: [List(Nullable(Str)), []],\n            columns_config: [Any, {}],\n            expressions: [Any, {}],\n            split_by: [Nullable(List(Str)), null],\n            editable: [Bool, true],\n            filters: [Nullable(List(Any)), null],\n            group_by: [Nullable(List(Str)), null],\n            plugin: [Str],\n            plugin_config: [Any, {}],\n            selectable: [Bool, true],\n            settings: [Bool, true],\n            schema: [Any, {}],\n            sort: [Nullable(List(List(Str))), null],\n            source: [Ref(column_data_source_1.ColumnDataSource)],\n            theme: [Str, \"pro\"],\n            title: [Nullable(Str), null],\n        }));\n    })();\n}\n","min_source":"function _(e,t,s,i,n){var r,o;i();const l=e(\"tslib\"),c=e(\"@bokehjs/core/bokeh_events\"),h=e(\"@bokehjs/core/dom\"),a=e(\"@bokehjs/models/sources/column_data_source\"),_=e(\"dab42e6dad\"),p=l.__importDefault(e(\"2e2913ea54\")),d={\"pro-dark\":\"Pro Dark\",pro:\"Pro Light\",vaporwave:\"Vaporwave\",solarized:\"Solarized\",\"solarized-dark\":\"Solarized Dark\",monokai:\"Monokai\"},m={datagrid:\"Datagrid\",d3_x_bar:\"X Bar\",d3_y_bar:\"Y Bar\",d3_xy_line:\"X/Y Line\",d3_y_line:\"Y Line\",d3_y_area:\"Y Area\",d3_y_scatter:\"Y Scatter\",d3_xy_scatter:\"X/Y Scatter\",d3_treemap:\"Treemap\",d3_candlestick:\"Candlestick\",d3_sunburst:\"Sunburst\",d3_heatmap:\"Heatmap\",d3_ohlc:\"OHLC\"};function g(e){const t={};return Object.keys(e).forEach((s=>{t[e[s]]=s})),t}const u=g(m),v=g(d);class f extends c.ModelEvent{constructor(e,t,s){super(),this.config=e,this.column_names=t,this.row=s}get event_values(){return{model:this.origin,config:this.config,column_names:this.column_names,row:this.row}}}s.PerspectiveClickEvent=f,r=f,f.__name__=\"PerspectiveClickEvent\",r.prototype.event_name=\"perspective-click\";class b extends _.HTMLBoxView{constructor(){super(...arguments),this._updating=!1,this._config_listener=null,this._current_config=null,this._current_plugin=null,this._loaded=!1,this._plugin_configs=new Map}connect_signals(){super.connect_signals(),this.connect(this.model.source.properties.data.change,(()=>this.setData())),this.connect(this.model.source.streaming,(()=>this.stream())),this.connect(this.model.source.patching,(()=>this.patch()));const{schema:e,columns:t,expressions:s,split_by:i,group_by:n,aggregates:r,filters:o,sort:l,plugin:c,selectable:h,editable:a,theme:_,title:p,settings:g}=this.model.properties,u=e=>()=>{this._updating||e()};this.on_change(e,(()=>{this.worker.table(this.model.schema).then((e=>{this.table=e,this.table.update(this.data),this.perspective_element.load(this.table)}))})),this.on_change(t,u((()=>{this.perspective_element.restore({columns:this.model.columns})}))),this.on_change(s,u((()=>{this.perspective_element.restore({expressions:this.model.expressions})}))),this.on_change(i,u((()=>{this.perspective_element.restore({split_by:this.model.split_by})}))),this.on_change(n,u((()=>{this.perspective_element.restore({group_by:this.model.group_by})}))),this.on_change(r,u((()=>{this.perspective_element.restore({aggregates:this.model.aggregates})}))),this.on_change(o,u((()=>{this.perspective_element.restore({filter:this.model.filters})}))),this.on_change(g,u((()=>{this.perspective_element.restore({settings:this.model.settings})}))),this.on_change(p,u((()=>{this.perspective_element.restore({title:this.model.title})}))),this.on_change(l,u((()=>{this.perspective_element.restore({sort:this.model.sort})}))),this.on_change(c,u((()=>{this.perspective_element.restore({plugin:m[this.model.plugin],...g})}))),this.on_change(h,u((()=>{this.perspective_element.restore({plugin_config:{...this._current_config,selectable:this.model.selectable}})}))),this.on_change(a,u((()=>{this.perspective_element.restore({plugin_config:{...this._current_config,editable:this.model.editable}})}))),this.on_change(_,u((()=>{this.perspective_element.restore({theme:d[this.model.theme]}).catch((()=>{}))})))}disconnect_signals(){null!=this._config_listener&&this.perspective_element.removeEventListener(\"perspective-config-update\",this._config_listener),this._config_listener=null,super.disconnect_signals()}remove(){this.perspective_element&&this.perspective_element.delete((()=>this.worker.terminate())),super.remove()}stylesheets(){return[...super.stylesheets(),p.default]}render(){super.render();const e=(0,h.div)({class:\"pnx-perspective-viewer\",style:{zIndex:\"0\"}});this._current_plugin=this.model.plugin,(0,_.set_size)(e,this.model),this.shadow_el.appendChild(e),new Promise(((e,t)=>{const s=Date.now(),i=()=>{void 0!==window.perspective_viewer?e(null):Date.now()-s>5e3?t(new Error(\"Timed out waiting for window.perspective_viewer\")):setTimeout(i,100)};i()})).then((()=>{window.perspective.worker().then((t=>{this.worker=t,t.table(this.model.schema).then((t=>{this.table=t,this.table.update(this.data),e.innerHTML=\"<perspective-viewer style='height:100%; width:100%;'></perspective-viewer>\",this.perspective_element=e.children[0];const s=Object.values(d).filter((e=>e!==this.model.theme)),i=[this.model.theme,...s];this.perspective_element.resetThemes(i).catch((()=>{})),this.perspective_element.load(this.table);const n={...this.model.plugin_config,editable:this.model.editable,selectable:this.model.selectable};this.perspective_element.restore({aggregates:this.model.aggregates,columns:this.model.columns,columns_config:this.model.columns_config,expressions:this.model.expressions,filter:this.model.filters,split_by:this.model.split_by,group_by:this.model.group_by,plugin:m[this.model.plugin],plugin_config:n,settings:this.model.settings,sort:this.model.sort,theme:d[this.model.theme],title:this.model.title}).catch((()=>{})),this.perspective_element.save().then((e=>{this._current_config=e})),this._config_listener=()=>this.sync_config(),this.perspective_element.addEventListener(\"perspective-config-update\",this._config_listener),this.perspective_element.addEventListener(\"perspective-click\",(e=>{this.model.trigger_event(new f(e.detail.config,e.detail.column_names,e.detail.row))})),this._loaded=!0}))}))}))}sync_config(){return this._updating||this.perspective_element.save().then((e=>{if(e.plugin!==this._current_plugin&&(this._plugin_configs.set(this._current_plugin,{columns:this._current_config.columns,columns_config:this._current_config.columns_config,plugin_config:this._current_config.plugin_config}),this._plugin_configs.has(e.plugin))){const t=this._plugin_configs.get(e.plugin);this.perspective_element.restore(t),e={...e,...t}}this._current_config=e,this._current_plugin=e.plugin;const t={};for(let s in e){let i=e[s];void 0===i||\"plugin\"==s&&\"debug\"===i||\"version\"==s||void 0===this.model.properties.hasOwnProperty(s)||(\"filter\"===s?s=\"filters\":\"plugin\"===s?i=u[i]:\"theme\"===s&&(i=v[i]),t[s]=i)}this._updating=!0,this.model.setv(t),this._updating=!1})),!0}get data(){const e={};for(const t of this.model.source.columns()){let s=this.model.source.get_array(t);\"datetime\"==this.model.schema[t]&&s.includes(-9223372036854776)&&(s=s.map((e=>-9223372036854776===e?null:e))),e[t]=s}return e}setData(){if(this._loaded){for(const e of this.model.source.columns())if(!(e in this.model.schema))return;this.table.replace(this.data)}}stream(){this._loaded&&this.table.replace(this.data)}patch(){this._loaded&&this.table.replace(this.data)}}s.PerspectiveView=b,b.__name__=\"PerspectiveView\";class w extends _.HTMLBox{constructor(e){super(e)}}s.Perspective=w,o=w,w.__name__=\"Perspective\",w.__module__=\"panel.models.perspective\",o.prototype.default_view=b,o.define((({Any:e,List:t,Bool:s,Ref:i,Nullable:n,Str:r})=>({aggregates:[e,{}],columns:[t(n(r)),[]],columns_config:[e,{}],expressions:[e,{}],split_by:[n(t(r)),null],editable:[s,!0],filters:[n(t(e)),null],group_by:[n(t(r)),null],plugin:[r],plugin_config:[e,{}],selectable:[s,!0],settings:[s,!0],schema:[e,{}],sort:[n(t(t(r))),null],source:[i(a.ColumnDataSource)],theme:[r,\"pro\"],title:[n(r),null]})))}\n//# sourceMappingURL=perspective.min.js.map","min_map":"{\"version\":3,\"file\":\"perspective.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"_b\",\"tslib_1\",\"bokeh_events_1\",\"dom_1\",\"column_data_source_1\",\"layout_1\",\"perspective_css_1\",\"__importDefault\",\"THEMES\",\"pro\",\"vaporwave\",\"solarized\",\"monokai\",\"PLUGINS\",\"datagrid\",\"d3_x_bar\",\"d3_y_bar\",\"d3_xy_line\",\"d3_y_line\",\"d3_y_area\",\"d3_y_scatter\",\"d3_xy_scatter\",\"d3_treemap\",\"d3_candlestick\",\"d3_sunburst\",\"d3_heatmap\",\"d3_ohlc\",\"objectFlip\",\"obj\",\"ret\",\"Object\",\"keys\",\"forEach\",\"key\",\"PLUGINS_REVERSE\",\"THEMES_REVERSE\",\"PerspectiveClickEvent\",\"ModelEvent\",\"constructor\",\"config\",\"column_names\",\"row\",\"super\",\"this\",\"event_values\",\"model\",\"origin\",\"__name__\",\"prototype\",\"event_name\",\"PerspectiveView\",\"HTMLBoxView\",\"arguments\",\"_updating\",\"_config_listener\",\"_current_config\",\"_current_plugin\",\"_loaded\",\"_plugin_configs\",\"Map\",\"connect_signals\",\"connect\",\"source\",\"properties\",\"data\",\"change\",\"setData\",\"streaming\",\"stream\",\"patching\",\"patch\",\"schema\",\"columns\",\"expressions\",\"split_by\",\"group_by\",\"aggregates\",\"filters\",\"sort\",\"plugin\",\"selectable\",\"editable\",\"theme\",\"title\",\"settings\",\"not_updating\",\"fn\",\"on_change\",\"worker\",\"table\",\"then\",\"update\",\"perspective_element\",\"load\",\"restore\",\"filter\",\"plugin_config\",\"catch\",\"disconnect_signals\",\"removeEventListener\",\"remove\",\"delete\",\"terminate\",\"stylesheets\",\"default\",\"render\",\"container\",\"div\",\"class\",\"style\",\"zIndex\",\"set_size\",\"shadow_el\",\"appendChild\",\"Promise\",\"resolve\",\"reject\",\"start\",\"Date\",\"now\",\"check\",\"undefined\",\"window\",\"perspective_viewer\",\"Error\",\"setTimeout\",\"perspective\",\"innerHTML\",\"children\",\"filteredThemes\",\"values\",\"t\",\"orderedThemes\",\"resetThemes\",\"columns_config\",\"save\",\"sync_config\",\"addEventListener\",\"event\",\"trigger_event\",\"detail\",\"set\",\"has\",\"overrides\",\"get\",\"props\",\"option\",\"value\",\"hasOwnProperty\",\"setv\",\"column\",\"array\",\"get_array\",\"includes\",\"map\",\"v\",\"col\",\"replace\",\"Perspective\",\"HTMLBox\",\"attrs\",\"__module__\",\"default_view\",\"define\",\"Any\",\"List\",\"Bool\",\"Ref\",\"Nullable\",\"Str\",\"ColumnDataSource\"],\"sources\":[\"0\"],\"mappings\":\"AAA4B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzE,IAAIC,EAAIC,EACRH,IACA,MAAMI,EAAUP,EAAQ,SAClBQ,EAAiBR,EAAQ,8BACzBS,EAAQT,EAAQ,qBAChBU,EAAuBV,EAAQ,8CAC/BW,EAAWX,EAAQ,cACnBY,EAAoBL,EAAQM,gBAAgBb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D7F,WAAY,CAACwF,EAAK,CAAC,GACnB5F,QAAS,CAAC6F,EAAKG,EAASC,IAAO,IAC/BnC,eAAgB,CAAC8B,EAAK,CAAC,GACvB3F,YAAa,CAAC2F,EAAK,CAAC,GACpB1F,SAAU,CAAC8F,EAASH,EAAKI,IAAO,MAChCxF,SAAU,CAACqF,GAAM,GACjBzF,QAAS,CAAC2F,EAASH,EAAKD,IAAO,MAC/BzF,SAAU,CAAC6F,EAASH,EAAKI,IAAO,MAChC1F,OAAQ,CAAC0F,GACTzE,cAAe,CAACoE,EAAK,CAAC,GACtBpF,WAAY,CAACsF,GAAM,GACnBlF,SAAU,CAACkF,GAAM,GACjB/F,OAAQ,CAAC6F,EAAK,CAAC,GACftF,KAAM,CAAC0F,EAASH,EAAKA,EAAKI,KAAQ,MAClC3G,OAAQ,CAACyG,EAAInK,EAAqBsK,mBAClCxF,MAAO,CAACuF,EAAK,OACbtF,MAAO,CAACqF,EAASC,GAAM,SAGnC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/styles/models/perspective.css.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"styles/models/perspective.css.js","canonical":"styles/models/perspective.css","resolution":"ESM","id":"2e2913ea54","hash":"2e2913ea544c1de9baa60f9df93d668b132e4ec6434e15f9b3387c4ef3d6087c","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = `regular-table{padding:0;margin:12px 0 0 12px;scrollbar-color:transparent transparent;scrollbar-width:thin;outline:none;}regular-table:hover{scrollbar-color:rgba(0, 0, 0, 0.3) transparent;}.sub-cell-scroll-enabled regular-table table tbody td,.sub-cell-scroll-enabled regular-table table thead th:not(.rt-group-corner){transform:translate(var(--regular-table--transform-x, 0px));}.sub-cell-scroll-enabled regular-table table tbody{transform:translate(0, var(--regular-table--transform-y, 0px));}.sub-cell-scroll-enabled regular-table table tbody tr:first-child td,.sub-cell-scroll-enabled regular-table table tbody tr:first-child th{clip-path:polygon(0 var(--regular-table--clip-y, 0), 0 200%, 200% 200%, 200% var(--regular-table--clip-y, 0));}.sub-cell-scroll-enabled regular-table table thead th.rt-group-corner{background:var(--plugin--background, white);z-index:1;}.sub-cell-scroll-enabled regular-table table tbody tr td:first-of-type{clip-path:polygon(var(--regular-table--clip-x, 0) 0, var(--regular-table--clip-x, 0) 200%, 200% 200%, 200% 0);}.sub-cell-scroll-enabled regular-table table tbody tr:first-child td:first-of-type{clip-path:polygon(var(--regular-table--clip-x, 0) var(--regular-table--clip-y, 0), var(--regular-table--clip-x, 0) 200%, 200% 200%, 200% var(--regular-table--clip-y, 0));}regular-table{font-family:inherit;}regular-table div[tabindex]{outline:none;}regular-table > div{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;}regular-table th{text-align:center;}regular-table thead tr:not(:last-child) th{overflow:hidden;max-width:0px;}regular-table thead tr:last-child .rt-float,regular-table tbody .rt-float{text-align:right;}regular-table thead .rt-integer,regular-table tbody .rt-integer{text-align:right;}regular-table tbody th{text-align:left;}regular-table span.rt-tree-container{display:flex;align-items:center;height:100%;}regular-table thead .rt-string,regular-table tbody .rt-string,regular-table thead .rt-date,regular-table tbody .rt-date,regular-table thead .rt-datetime,regular-table tbody .rt-datetime{text-align:left;}regular-table thead tr:last-child th{border-bottom:1px solid #eaedef;}regular-table tbody tr:first-child td,regular-table tbody tr:first-child th{border-top:1px solid transparent !important;}regular-table th{position:relative;}regular-table tr th span.rt-tree-group{margin-left:5px;margin-right:15px;border-left:1px solid #eee;height:100%;}regular-table td,regular-table th{white-space:nowrap;font-size:12px;padding-right:5px;padding-left:5px;padding-top:0px;padding-bottom:0px;height:19px;}regular-table tr:hover td{background:#eee;opacity:1;}regular-table tr:hover{color:#333;}regular-table table *{box-sizing:border-box;}regular-table table{position:absolute;overflow:hidden;color:#666;outline:none;}regular-table span.rt-row-header-icon{color:#aaa;padding-right:4px;font-family:var(--button--font-family, 'Material Icons');}regular-table span.rt-column-header-icon{font-size:10px;padding-left:3px;display:inline-block;width:10px;font-family:var(--button--font-family, 'Material Icons');}regular-table span.rt-row-header-icon:hover{color:#1a7da1;text-shadow:0px 0px 3px #1a7da1;}regular-table .rt-selected td{background-color:#eee;}regular-table .rt-cell-clip{overflow:hidden;text-overflow:ellipsis;}regular-table td span.rt-group-name,regular-table th span.rt-group-name{margin-right:-5px;padding-right:5px;padding-left:8px;flex:1;height:100%;}regular-table th span.rt-group-name{text-align:left;}regular-table td th span.rt-group-leaf,regular-table th span.rt-group-leaf{margin-left:16px;height:100%;}regular-table .rt-column-resize{height:100%;width:10px;position:absolute;top:0;right:0;cursor:col-resize;}regular-table a{color:var(--rt-pos-cell--color);}regular-table a:visited{color:var(--active--color);}regular-table::-webkit-scrollbar,regular-table::-webkit-scrollbar-corner{background-color:transparent;height:12px;width:12px;}regular-table::-webkit-scrollbar-thumb{background-clip:content-box;background-color:rgba(0, 0, 0, 0);border-radius:5px;}regular-table::-webkit-scrollbar-thumb:horizontal{border-bottom:2px solid transparent;border-top:2px solid transparent;}regular-table::-webkit-scrollbar-thumb:vertical{border-left:2px solid transparent;border-right:2px solid transparent;}regular-table:hover::-webkit-scrollbar-thumb{background-color:rgba(0, 0, 0, 0.15);}regular-table::-webkit-scrollbar-thumb:hover{background-color:rgba(0, 0, 0, 0.3);}.psp-header-border:not(.psp-is-top):not(.psp-header-leaf){box-shadow:1px 0px var(--inactive--color, #eaedef);}.psp-header-group{box-shadow:0px 10px 0 -9px var(--inactive--color, #eaedef);}.psp-is-top{box-shadow:5px 4px 0px -4px var(--inactive--color, #eaedef);}.psp-is-top.psp-header-group:not(.psp-header-group-corner){box-shadow:5px 4px 0px -4px var(--inactive--color, #eaedef), 0px 10px 0 -9px var(--inactive--color, #eaedef);}.psp-header-border.psp-header-group:not(.psp-is-top):not(\n    .psp-header-group-corner\n  ){box-shadow:1px 0px var(--inactive--color, #eaedef), 0px 10px 0 -9px var(--inactive--color, #eaedef);}.psp-header-leaf.psp-header-border{box-shadow:5px -4px 0px -4px var(--inactive--color, #eaedef);}tr:only-child th{box-shadow:none !important;}regular-table tbody tr:hover th.psp-tree-leaf:not(.psp-row-selected):not(.psp-row-subselected),regular-table tbody tr:hover th.psp-tree-label:not(.psp-row-selected):not(.psp-row-subselected),regular-table tbody tr:hover td:not(.psp-row-selected):not(.psp-row-subselected){border-color:var(--rt-hover--border-color, #c5c9d080) !important;background-color:transparent;box-shadow:0px 1px 0px var(--rt-hover--border-color, #c5c9d080), 0px 3px 0px rgba(0, 0, 0, 0.05), 0px 5px 0px rgba(0, 0, 0, 0.01);}regular-table tbody tr:hover + tr th.psp-tree-leaf:not(.psp-row-selected):not(.psp-row-subselected),regular-table tbody tr:hover + tr th.psp-tree-label:not(.psp-row-selected):not(.psp-row-subselected),regular-table tbody tr:hover + tr td:not(.psp-row-selected):not(.psp-row-subselected){border-top-color:transparent;}regular-table tbody tr th:first-child:not(:empty),regular-table tbody tr th:first-child:empty + th:not(:empty),regular-table tbody tr th:first-child:empty ~ th:empty + th:not(:empty),regular-table tbody tr td:first-child{border-left-width:1px;border-left-color:transparent;}regular-table tbody tr th:last-child,regular-table tbody tr td:last-child{border-right-width:1px;border-right-color:transparent;}regular-table tbody tr:hover{color:#161616;}regular-table tbody tr:hover th:first-child:not(:empty),regular-table tbody tr:hover th:first-child:empty + th:not(:empty),regular-table tbody tr:hover th:first-child:empty ~ th:empty + th:not(:empty),regular-table tbody tr:hover td:first-child{border-left-color:var(--rt-hover--border-color, #c5c9d080) !important;}regular-table tbody tr:hover th:last-child,regular-table tbody tr:hover td:last-child{border-right-color:var(--rt-hover--border-color, #c5c9d080) !important;}perspective-viewer[settings] regular-table .psp-header-leaf{height:36px;vertical-align:top;padding-top:2px;}perspective-viewer[settings] regular-table .psp-header-leaf:not(.psp-header-corner):before{font-family:var(--button--font-family, inherit);content:var(--column-style-open-button--content, var(--config-button-icon--content, '\\u1f527'));position:absolute;width:calc(100% - 8px);left:5px;bottom:0px;color:var(--inactive--color, #b4b7be);}perspective-viewer[settings] regular-table .psp-header-leaf.psp-menu-enabled:not(.psp-header-corner):before{color:inherit;cursor:pointer;}perspective-viewer[settings] regular-table .psp-header-leaf.psp-menu-open:not(.psp-header-corner){pointer-events:none;}perspective-viewer[settings] regular-table .psp-header-leaf.psp-menu-open:not(.psp-header-corner):before{content:var(--column-style-close-button--content, 'X');}perspective-viewer[settings] regular-table .psp-header-leaf.psp-menu-enabled:hover:before{color:#338dcd;}perspective-viewer[settings] regular-table .psp-header-leaf .rt-column-resize{height:18px;}.psp-row-selected,:hover .psp-row-selected,:hover th.psp-tree-leaf.psp-row-selected,:hover th.psp-tree-label.psp-row-selected{color:white !important;background-color:#ea7319 !important;border-color:#ea7319 !important;}.psp-row-selected.psp-tree-label:not(:hover):before{color:white;}.psp-row-subselected,:hover .psp-row-subselected,:hover th.psp-tree-leaf.psp-row-subselected,:hover th.psp-tree-label.psp-row-subselected{background:rgba(234, 115, 25, 0.2) !important;}.psp-error{color:red;}td:focus{outline:#666;outline-style:dotted;outline-width:1px;}perspective-viewer.dragging regular-table{pointer-events:none;}.psp-header-border:last-child{border-right-width:0px;}.psp-header-sort-desc:after{font-family:var(--button--font-family, inherit);font-size:10px;content:var(--sort-order-desc--content, '\\u2193');}.psp-header-sort-asc:after{font-family:var(--button--font-family, inherit);font-size:10px;content:var(--sort-order-asc--content, '\\u2191');}.psp-header-sort-col-desc:after{font-family:var(--button--font-family, inherit);font-size:10px;content:var(--sort-order-col-desc--content, '\\u2190');}.psp-header-sort-col-asc:after{font-family:var(--button--font-family, inherit);font-size:10px;content:var(--sort-order-col-asc--content, '\\u2192');}tbody th:last-of-type{border-right:1px solid #eaedef;overflow:hidden;text-overflow:ellipsis;}tbody th:empty{background-image:linear-gradient(to right, transparent 9px, #eee 10px, transparent 11px);background-repeat:no-repeat;min-width:20px;max-width:20px;pointer-events:none;}.psp-tree-label{max-width:0px;min-width:0px;}.psp-tree-label:before{color:#ccc;font-family:var(--button--font-family, inherit);padding-right:11px;vertical-align:-1px;}.psp-tree-label-expand:before{content:var(--tree-label-expand--content, '+');}.psp-tree-label-collapse:before{content:var(--tree-label-collapse--content, '-');}.psp-tree-label:hover:before{color:#338dcd;text-shadow:0px 0px 5px #338dcd;}regular-table thead tr:last-child th{border-bottom-width:1px;border-bottom-color:var(--inactive--color, #eaedef);}.psp-tree-leaf{padding-left:24px;}.psp-align-right{text-align:right;}.psp-align-left{text-align:left;}.psp-positive:not(:focus){color:var(--rt-pos-cell--color, #338dcd);}.psp-negative:not(:focus){color:var(--rt-neg-cell--color, #ff5942);}regular-table table tbody td{min-width:52px !important;}.psp-is-width-override .rt-column-resize,.rt-column-resize:hover{border:1px dashed #999;border-bottom-width:0px;border-left-width:0px;}.psp-bool-type{font-family:var(--button--font-family, 'Material Icons');}.boolean-editable{cursor:pointer;}regular-table table{user-select:none;color:#161616;border-collapse:separate;}regular-table table th{font-weight:400;}regular-table table td,regular-table table th{border-color:#eaedef;height:23px;}regular-table table .psp-header-group{text-overflow:ellipsis;}regular-table table .psp-header-leaf{border-bottom-width:0px;}regular-table table td,regular-table table th.psp-tree-label,regular-table table th.psp-tree-label,regular-table table th.psp-tree-leaf,regular-table table tbody tr:first-child th{border-style:solid;border-width:0px;border-top-width:1px;}regular-table table tbody th:empty{background-position:0px -10px;}@keyframes pulse_pos{0%{background-color:var(--pulse--background-color-start, rgba(0, 128, 255, 0.5));}100%{background-color:var(--pulse--background-color-end, rgba(0, 128, 255, 0));}}@keyframes pulse_pos2{0%{background-color:var(--pulse--background-color-start, rgba(0, 128, 255, 0.5));}100%{background-color:var(--pulse--background-color-end, rgba(0, 128, 255, 0));}}@keyframes pulse_neg{0%{background-color:var(--pulse--background-color-start, rgba(255, 25, 0, 0.5));}100%{background-color:var(--pulse--background-color-end, rgba(255, 25, 0, 0));}}@keyframes pulse_neg2{0%{background-color:var(--pulse--background-color-start, rgba(255, 25, 0, 0.5));}100%{background-color:var(--pulse--background-color-end, rgba(255, 25, 0, 0));}}`;\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"default"}],"externals":[],"shims":[]},"code":{"source":"/* styles/models/perspective.css.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = `regular-table{padding:0;margin:12px 0 0 12px;scrollbar-color:transparent transparent;scrollbar-width:thin;outline:none;}regular-table:hover{scrollbar-color:rgba(0, 0, 0, 0.3) transparent;}.sub-cell-scroll-enabled regular-table table tbody td,.sub-cell-scroll-enabled regular-table table thead th:not(.rt-group-corner){transform:translate(var(--regular-table--transform-x, 0px));}.sub-cell-scroll-enabled regular-table table tbody{transform:translate(0, var(--regular-table--transform-y, 0px));}.sub-cell-scroll-enabled regular-table table tbody tr:first-child td,.sub-cell-scroll-enabled regular-table table tbody tr:first-child th{clip-path:polygon(0 var(--regular-table--clip-y, 0), 0 200%, 200% 200%, 200% var(--regular-table--clip-y, 0));}.sub-cell-scroll-enabled regular-table table thead th.rt-group-corner{background:var(--plugin--background, white);z-index:1;}.sub-cell-scroll-enabled regular-table table tbody tr td:first-of-type{clip-path:polygon(var(--regular-table--clip-x, 0) 0, var(--regular-table--clip-x, 0) 200%, 200% 200%, 200% 0);}.sub-cell-scroll-enabled regular-table table tbody tr:first-child td:first-of-type{clip-path:polygon(var(--regular-table--clip-x, 0) var(--regular-table--clip-y, 0), var(--regular-table--clip-x, 0) 200%, 200% 200%, 200% var(--regular-table--clip-y, 0));}regular-table{font-family:inherit;}regular-table div[tabindex]{outline:none;}regular-table > div{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;}regular-table th{text-align:center;}regular-table thead tr:not(:last-child) th{overflow:hidden;max-width:0px;}regular-table thead tr:last-child .rt-float,regular-table tbody .rt-float{text-align:right;}regular-table thead .rt-integer,regular-table tbody .rt-integer{text-align:right;}regular-table tbody th{text-align:left;}regular-table span.rt-tree-container{display:flex;align-items:center;height:100%;}regular-table thead .rt-string,regular-table tbody .rt-string,regular-table thead .rt-date,regular-table tbody .rt-date,regular-table thead .rt-datetime,regular-table tbody .rt-datetime{text-align:left;}regular-table thead tr:last-child th{border-bottom:1px solid #eaedef;}regular-table tbody tr:first-child td,regular-table tbody tr:first-child th{border-top:1px solid transparent !important;}regular-table th{position:relative;}regular-table tr th span.rt-tree-group{margin-left:5px;margin-right:15px;border-left:1px solid #eee;height:100%;}regular-table td,regular-table th{white-space:nowrap;font-size:12px;padding-right:5px;padding-left:5px;padding-top:0px;padding-bottom:0px;height:19px;}regular-table tr:hover td{background:#eee;opacity:1;}regular-table tr:hover{color:#333;}regular-table table *{box-sizing:border-box;}regular-table table{position:absolute;overflow:hidden;color:#666;outline:none;}regular-table span.rt-row-header-icon{color:#aaa;padding-right:4px;font-family:var(--button--font-family, 'Material Icons');}regular-table span.rt-column-header-icon{font-size:10px;padding-left:3px;display:inline-block;width:10px;font-family:var(--button--font-family, 'Material Icons');}regular-table span.rt-row-header-icon:hover{color:#1a7da1;text-shadow:0px 0px 3px #1a7da1;}regular-table .rt-selected td{background-color:#eee;}regular-table .rt-cell-clip{overflow:hidden;text-overflow:ellipsis;}regular-table td span.rt-group-name,regular-table th span.rt-group-name{margin-right:-5px;padding-right:5px;padding-left:8px;flex:1;height:100%;}regular-table th span.rt-group-name{text-align:left;}regular-table td th span.rt-group-leaf,regular-table th span.rt-group-leaf{margin-left:16px;height:100%;}regular-table .rt-column-resize{height:100%;width:10px;position:absolute;top:0;right:0;cursor:col-resize;}regular-table a{color:var(--rt-pos-cell--color);}regular-table a:visited{color:var(--active--color);}regular-table::-webkit-scrollbar,regular-table::-webkit-scrollbar-corner{background-color:transparent;height:12px;width:12px;}regular-table::-webkit-scrollbar-thumb{background-clip:content-box;background-color:rgba(0, 0, 0, 0);border-radius:5px;}regular-table::-webkit-scrollbar-thumb:horizontal{border-bottom:2px solid transparent;border-top:2px solid transparent;}regular-table::-webkit-scrollbar-thumb:vertical{border-left:2px solid transparent;border-right:2px solid transparent;}regular-table:hover::-webkit-scrollbar-thumb{background-color:rgba(0, 0, 0, 0.15);}regular-table::-webkit-scrollbar-thumb:hover{background-color:rgba(0, 0, 0, 0.3);}.psp-header-border:not(.psp-is-top):not(.psp-header-leaf){box-shadow:1px 0px var(--inactive--color, #eaedef);}.psp-header-group{box-shadow:0px 10px 0 -9px var(--inactive--color, #eaedef);}.psp-is-top{box-shadow:5px 4px 0px -4px var(--inactive--color, #eaedef);}.psp-is-top.psp-header-group:not(.psp-header-group-corner){box-shadow:5px 4px 0px -4px var(--inactive--color, #eaedef), 0px 10px 0 -9px var(--inactive--color, #eaedef);}.psp-header-border.psp-header-group:not(.psp-is-top):not(\n    .psp-header-group-corner\n  ){box-shadow:1px 0px var(--inactive--color, #eaedef), 0px 10px 0 -9px var(--inactive--color, #eaedef);}.psp-header-leaf.psp-header-border{box-shadow:5px -4px 0px -4px var(--inactive--color, #eaedef);}tr:only-child th{box-shadow:none !important;}regular-table tbody tr:hover th.psp-tree-leaf:not(.psp-row-selected):not(.psp-row-subselected),regular-table tbody tr:hover th.psp-tree-label:not(.psp-row-selected):not(.psp-row-subselected),regular-table tbody tr:hover td:not(.psp-row-selected):not(.psp-row-subselected){border-color:var(--rt-hover--border-color, #c5c9d080) !important;background-color:transparent;box-shadow:0px 1px 0px var(--rt-hover--border-color, #c5c9d080), 0px 3px 0px rgba(0, 0, 0, 0.05), 0px 5px 0px rgba(0, 0, 0, 0.01);}regular-table tbody tr:hover + tr th.psp-tree-leaf:not(.psp-row-selected):not(.psp-row-subselected),regular-table tbody tr:hover + tr th.psp-tree-label:not(.psp-row-selected):not(.psp-row-subselected),regular-table tbody tr:hover + tr td:not(.psp-row-selected):not(.psp-row-subselected){border-top-color:transparent;}regular-table tbody tr th:first-child:not(:empty),regular-table tbody tr th:first-child:empty + th:not(:empty),regular-table tbody tr th:first-child:empty ~ th:empty + th:not(:empty),regular-table tbody tr td:first-child{border-left-width:1px;border-left-color:transparent;}regular-table tbody tr th:last-child,regular-table tbody tr td:last-child{border-right-width:1px;border-right-color:transparent;}regular-table tbody tr:hover{color:#161616;}regular-table tbody tr:hover th:first-child:not(:empty),regular-table tbody tr:hover th:first-child:empty + th:not(:empty),regular-table tbody tr:hover th:first-child:empty ~ th:empty + th:not(:empty),regular-table tbody tr:hover td:first-child{border-left-color:var(--rt-hover--border-color, #c5c9d080) !important;}regular-table tbody tr:hover th:last-child,regular-table tbody tr:hover td:last-child{border-right-color:var(--rt-hover--border-color, #c5c9d080) !important;}perspective-viewer[settings] regular-table .psp-header-leaf{height:36px;vertical-align:top;padding-top:2px;}perspective-viewer[settings] regular-table .psp-header-leaf:not(.psp-header-corner):before{font-family:var(--button--font-family, inherit);content:var(--column-style-open-button--content, var(--config-button-icon--content, '\\u1f527'));position:absolute;width:calc(100% - 8px);left:5px;bottom:0px;color:var(--inactive--color, #b4b7be);}perspective-viewer[settings] regular-table .psp-header-leaf.psp-menu-enabled:not(.psp-header-corner):before{color:inherit;cursor:pointer;}perspective-viewer[settings] regular-table .psp-header-leaf.psp-menu-open:not(.psp-header-corner){pointer-events:none;}perspective-viewer[settings] regular-table .psp-header-leaf.psp-menu-open:not(.psp-header-corner):before{content:var(--column-style-close-button--content, 'X');}perspective-viewer[settings] regular-table .psp-header-leaf.psp-menu-enabled:hover:before{color:#338dcd;}perspective-viewer[settings] regular-table .psp-header-leaf .rt-column-resize{height:18px;}.psp-row-selected,:hover .psp-row-selected,:hover th.psp-tree-leaf.psp-row-selected,:hover th.psp-tree-label.psp-row-selected{color:white !important;background-color:#ea7319 !important;border-color:#ea7319 !important;}.psp-row-selected.psp-tree-label:not(:hover):before{color:white;}.psp-row-subselected,:hover .psp-row-subselected,:hover th.psp-tree-leaf.psp-row-subselected,:hover th.psp-tree-label.psp-row-subselected{background:rgba(234, 115, 25, 0.2) !important;}.psp-error{color:red;}td:focus{outline:#666;outline-style:dotted;outline-width:1px;}perspective-viewer.dragging regular-table{pointer-events:none;}.psp-header-border:last-child{border-right-width:0px;}.psp-header-sort-desc:after{font-family:var(--button--font-family, inherit);font-size:10px;content:var(--sort-order-desc--content, '\\u2193');}.psp-header-sort-asc:after{font-family:var(--button--font-family, inherit);font-size:10px;content:var(--sort-order-asc--content, '\\u2191');}.psp-header-sort-col-desc:after{font-family:var(--button--font-family, inherit);font-size:10px;content:var(--sort-order-col-desc--content, '\\u2190');}.psp-header-sort-col-asc:after{font-family:var(--button--font-family, inherit);font-size:10px;content:var(--sort-order-col-asc--content, '\\u2192');}tbody th:last-of-type{border-right:1px solid #eaedef;overflow:hidden;text-overflow:ellipsis;}tbody th:empty{background-image:linear-gradient(to right, transparent 9px, #eee 10px, transparent 11px);background-repeat:no-repeat;min-width:20px;max-width:20px;pointer-events:none;}.psp-tree-label{max-width:0px;min-width:0px;}.psp-tree-label:before{color:#ccc;font-family:var(--button--font-family, inherit);padding-right:11px;vertical-align:-1px;}.psp-tree-label-expand:before{content:var(--tree-label-expand--content, '+');}.psp-tree-label-collapse:before{content:var(--tree-label-collapse--content, '-');}.psp-tree-label:hover:before{color:#338dcd;text-shadow:0px 0px 5px #338dcd;}regular-table thead tr:last-child th{border-bottom-width:1px;border-bottom-color:var(--inactive--color, #eaedef);}.psp-tree-leaf{padding-left:24px;}.psp-align-right{text-align:right;}.psp-align-left{text-align:left;}.psp-positive:not(:focus){color:var(--rt-pos-cell--color, #338dcd);}.psp-negative:not(:focus){color:var(--rt-neg-cell--color, #ff5942);}regular-table table tbody td{min-width:52px !important;}.psp-is-width-override .rt-column-resize,.rt-column-resize:hover{border:1px dashed #999;border-bottom-width:0px;border-left-width:0px;}.psp-bool-type{font-family:var(--button--font-family, 'Material Icons');}.boolean-editable{cursor:pointer;}regular-table table{user-select:none;color:#161616;border-collapse:separate;}regular-table table th{font-weight:400;}regular-table table td,regular-table table th{border-color:#eaedef;height:23px;}regular-table table .psp-header-group{text-overflow:ellipsis;}regular-table table .psp-header-leaf{border-bottom-width:0px;}regular-table table td,regular-table table th.psp-tree-label,regular-table table th.psp-tree-label,regular-table table th.psp-tree-leaf,regular-table table tbody tr:first-child th{border-style:solid;border-width:0px;border-top-width:1px;}regular-table table tbody th:empty{background-position:0px -10px;}@keyframes pulse_pos{0%{background-color:var(--pulse--background-color-start, rgba(0, 128, 255, 0.5));}100%{background-color:var(--pulse--background-color-end, rgba(0, 128, 255, 0));}}@keyframes pulse_pos2{0%{background-color:var(--pulse--background-color-start, rgba(0, 128, 255, 0.5));}100%{background-color:var(--pulse--background-color-end, rgba(0, 128, 255, 0));}}@keyframes pulse_neg{0%{background-color:var(--pulse--background-color-start, rgba(255, 25, 0, 0.5));}100%{background-color:var(--pulse--background-color-end, rgba(255, 25, 0, 0));}}@keyframes pulse_neg2{0%{background-color:var(--pulse--background-color-start, rgba(255, 25, 0, 0.5));}100%{background-color:var(--pulse--background-color-end, rgba(255, 25, 0, 0));}}`;\n}\n","min_source":"function _(e,r,t,a,o){a(),t.default=\"regular-table{padding:0;margin:12px 0 0 12px;scrollbar-color:transparent transparent;scrollbar-width:thin;outline:none;}regular-table:hover{scrollbar-color:rgba(0, 0, 0, 0.3) transparent;}.sub-cell-scroll-enabled regular-table table tbody td,.sub-cell-scroll-enabled regular-table table thead th:not(.rt-group-corner){transform:translate(var(--regular-table--transform-x, 0px));}.sub-cell-scroll-enabled regular-table table tbody{transform:translate(0, var(--regular-table--transform-y, 0px));}.sub-cell-scroll-enabled regular-table table tbody tr:first-child td,.sub-cell-scroll-enabled regular-table table tbody tr:first-child th{clip-path:polygon(0 var(--regular-table--clip-y, 0), 0 200%, 200% 200%, 200% var(--regular-table--clip-y, 0));}.sub-cell-scroll-enabled regular-table table thead th.rt-group-corner{background:var(--plugin--background, white);z-index:1;}.sub-cell-scroll-enabled regular-table table tbody tr td:first-of-type{clip-path:polygon(var(--regular-table--clip-x, 0) 0, var(--regular-table--clip-x, 0) 200%, 200% 200%, 200% 0);}.sub-cell-scroll-enabled regular-table table tbody tr:first-child td:first-of-type{clip-path:polygon(var(--regular-table--clip-x, 0) var(--regular-table--clip-y, 0), var(--regular-table--clip-x, 0) 200%, 200% 200%, 200% var(--regular-table--clip-y, 0));}regular-table{font-family:inherit;}regular-table div[tabindex]{outline:none;}regular-table > div{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;}regular-table th{text-align:center;}regular-table thead tr:not(:last-child) th{overflow:hidden;max-width:0px;}regular-table thead tr:last-child .rt-float,regular-table tbody .rt-float{text-align:right;}regular-table thead .rt-integer,regular-table tbody .rt-integer{text-align:right;}regular-table tbody th{text-align:left;}regular-table span.rt-tree-container{display:flex;align-items:center;height:100%;}regular-table thead .rt-string,regular-table tbody .rt-string,regular-table thead .rt-date,regular-table tbody .rt-date,regular-table thead .rt-datetime,regular-table tbody .rt-datetime{text-align:left;}regular-table thead tr:last-child th{border-bottom:1px solid #eaedef;}regular-table tbody tr:first-child td,regular-table tbody tr:first-child th{border-top:1px solid transparent !important;}regular-table th{position:relative;}regular-table tr th span.rt-tree-group{margin-left:5px;margin-right:15px;border-left:1px solid #eee;height:100%;}regular-table td,regular-table th{white-space:nowrap;font-size:12px;padding-right:5px;padding-left:5px;padding-top:0px;padding-bottom:0px;height:19px;}regular-table tr:hover td{background:#eee;opacity:1;}regular-table tr:hover{color:#333;}regular-table table *{box-sizing:border-box;}regular-table table{position:absolute;overflow:hidden;color:#666;outline:none;}regular-table span.rt-row-header-icon{color:#aaa;padding-right:4px;font-family:var(--button--font-family, 'Material Icons');}regular-table span.rt-column-header-icon{font-size:10px;padding-left:3px;display:inline-block;width:10px;font-family:var(--button--font-family, 'Material Icons');}regular-table span.rt-row-header-icon:hover{color:#1a7da1;text-shadow:0px 0px 3px #1a7da1;}regular-table .rt-selected td{background-color:#eee;}regular-table .rt-cell-clip{overflow:hidden;text-overflow:ellipsis;}regular-table td span.rt-group-name,regular-table th span.rt-group-name{margin-right:-5px;padding-right:5px;padding-left:8px;flex:1;height:100%;}regular-table th span.rt-group-name{text-align:left;}regular-table td th span.rt-group-leaf,regular-table th span.rt-group-leaf{margin-left:16px;height:100%;}regular-table .rt-column-resize{height:100%;width:10px;position:absolute;top:0;right:0;cursor:col-resize;}regular-table a{color:var(--rt-pos-cell--color);}regular-table a:visited{color:var(--active--color);}regular-table::-webkit-scrollbar,regular-table::-webkit-scrollbar-corner{background-color:transparent;height:12px;width:12px;}regular-table::-webkit-scrollbar-thumb{background-clip:content-box;background-color:rgba(0, 0, 0, 0);border-radius:5px;}regular-table::-webkit-scrollbar-thumb:horizontal{border-bottom:2px solid transparent;border-top:2px solid transparent;}regular-table::-webkit-scrollbar-thumb:vertical{border-left:2px solid transparent;border-right:2px solid transparent;}regular-table:hover::-webkit-scrollbar-thumb{background-color:rgba(0, 0, 0, 0.15);}regular-table::-webkit-scrollbar-thumb:hover{background-color:rgba(0, 0, 0, 0.3);}.psp-header-border:not(.psp-is-top):not(.psp-header-leaf){box-shadow:1px 0px var(--inactive--color, #eaedef);}.psp-header-group{box-shadow:0px 10px 0 -9px var(--inactive--color, #eaedef);}.psp-is-top{box-shadow:5px 4px 0px -4px var(--inactive--color, #eaedef);}.psp-is-top.psp-header-group:not(.psp-header-group-corner){box-shadow:5px 4px 0px -4px var(--inactive--color, #eaedef), 0px 10px 0 -9px var(--inactive--color, #eaedef);}.psp-header-border.psp-header-group:not(.psp-is-top):not(\\n    .psp-header-group-corner\\n  ){box-shadow:1px 0px var(--inactive--color, #eaedef), 0px 10px 0 -9px var(--inactive--color, #eaedef);}.psp-header-leaf.psp-header-border{box-shadow:5px -4px 0px -4px var(--inactive--color, #eaedef);}tr:only-child th{box-shadow:none !important;}regular-table tbody tr:hover th.psp-tree-leaf:not(.psp-row-selected):not(.psp-row-subselected),regular-table tbody tr:hover th.psp-tree-label:not(.psp-row-selected):not(.psp-row-subselected),regular-table tbody tr:hover td:not(.psp-row-selected):not(.psp-row-subselected){border-color:var(--rt-hover--border-color, #c5c9d080) !important;background-color:transparent;box-shadow:0px 1px 0px var(--rt-hover--border-color, #c5c9d080), 0px 3px 0px rgba(0, 0, 0, 0.05), 0px 5px 0px rgba(0, 0, 0, 0.01);}regular-table tbody tr:hover + tr th.psp-tree-leaf:not(.psp-row-selected):not(.psp-row-subselected),regular-table tbody tr:hover + tr th.psp-tree-label:not(.psp-row-selected):not(.psp-row-subselected),regular-table tbody tr:hover + tr td:not(.psp-row-selected):not(.psp-row-subselected){border-top-color:transparent;}regular-table tbody tr th:first-child:not(:empty),regular-table tbody tr th:first-child:empty + th:not(:empty),regular-table tbody tr th:first-child:empty ~ th:empty + th:not(:empty),regular-table tbody tr td:first-child{border-left-width:1px;border-left-color:transparent;}regular-table tbody tr th:last-child,regular-table tbody tr td:last-child{border-right-width:1px;border-right-color:transparent;}regular-table tbody tr:hover{color:#161616;}regular-table tbody tr:hover th:first-child:not(:empty),regular-table tbody tr:hover th:first-child:empty + th:not(:empty),regular-table tbody tr:hover th:first-child:empty ~ th:empty + th:not(:empty),regular-table tbody tr:hover td:first-child{border-left-color:var(--rt-hover--border-color, #c5c9d080) !important;}regular-table tbody tr:hover th:last-child,regular-table tbody tr:hover td:last-child{border-right-color:var(--rt-hover--border-color, #c5c9d080) !important;}perspective-viewer[settings] regular-table .psp-header-leaf{height:36px;vertical-align:top;padding-top:2px;}perspective-viewer[settings] regular-table .psp-header-leaf:not(.psp-header-corner):before{font-family:var(--button--font-family, inherit);content:var(--column-style-open-button--content, var(--config-button-icon--content, '\\u1f527'));position:absolute;width:calc(100% - 8px);left:5px;bottom:0px;color:var(--inactive--color, #b4b7be);}perspective-viewer[settings] regular-table .psp-header-leaf.psp-menu-enabled:not(.psp-header-corner):before{color:inherit;cursor:pointer;}perspective-viewer[settings] regular-table .psp-header-leaf.psp-menu-open:not(.psp-header-corner){pointer-events:none;}perspective-viewer[settings] regular-table .psp-header-leaf.psp-menu-open:not(.psp-header-corner):before{content:var(--column-style-close-button--content, 'X');}perspective-viewer[settings] regular-table .psp-header-leaf.psp-menu-enabled:hover:before{color:#338dcd;}perspective-viewer[settings] regular-table .psp-header-leaf .rt-column-resize{height:18px;}.psp-row-selected,:hover .psp-row-selected,:hover th.psp-tree-leaf.psp-row-selected,:hover th.psp-tree-label.psp-row-selected{color:white !important;background-color:#ea7319 !important;border-color:#ea7319 !important;}.psp-row-selected.psp-tree-label:not(:hover):before{color:white;}.psp-row-subselected,:hover .psp-row-subselected,:hover th.psp-tree-leaf.psp-row-subselected,:hover th.psp-tree-label.psp-row-subselected{background:rgba(234, 115, 25, 0.2) !important;}.psp-error{color:red;}td:focus{outline:#666;outline-style:dotted;outline-width:1px;}perspective-viewer.dragging regular-table{pointer-events:none;}.psp-header-border:last-child{border-right-width:0px;}.psp-header-sort-desc:after{font-family:var(--button--font-family, inherit);font-size:10px;content:var(--sort-order-desc--content, '\\u2193');}.psp-header-sort-asc:after{font-family:var(--button--font-family, inherit);font-size:10px;content:var(--sort-order-asc--content, '\\u2191');}.psp-header-sort-col-desc:after{font-family:var(--button--font-family, inherit);font-size:10px;content:var(--sort-order-col-desc--content, '\\u2190');}.psp-header-sort-col-asc:after{font-family:var(--button--font-family, inherit);font-size:10px;content:var(--sort-order-col-asc--content, '\\u2192');}tbody th:last-of-type{border-right:1px solid #eaedef;overflow:hidden;text-overflow:ellipsis;}tbody th:empty{background-image:linear-gradient(to right, transparent 9px, #eee 10px, transparent 11px);background-repeat:no-repeat;min-width:20px;max-width:20px;pointer-events:none;}.psp-tree-label{max-width:0px;min-width:0px;}.psp-tree-label:before{color:#ccc;font-family:var(--button--font-family, inherit);padding-right:11px;vertical-align:-1px;}.psp-tree-label-expand:before{content:var(--tree-label-expand--content, '+');}.psp-tree-label-collapse:before{content:var(--tree-label-collapse--content, '-');}.psp-tree-label:hover:before{color:#338dcd;text-shadow:0px 0px 5px #338dcd;}regular-table thead tr:last-child th{border-bottom-width:1px;border-bottom-color:var(--inactive--color, #eaedef);}.psp-tree-leaf{padding-left:24px;}.psp-align-right{text-align:right;}.psp-align-left{text-align:left;}.psp-positive:not(:focus){color:var(--rt-pos-cell--color, #338dcd);}.psp-negative:not(:focus){color:var(--rt-neg-cell--color, #ff5942);}regular-table table tbody td{min-width:52px !important;}.psp-is-width-override .rt-column-resize,.rt-column-resize:hover{border:1px dashed #999;border-bottom-width:0px;border-left-width:0px;}.psp-bool-type{font-family:var(--button--font-family, 'Material Icons');}.boolean-editable{cursor:pointer;}regular-table table{user-select:none;color:#161616;border-collapse:separate;}regular-table table th{font-weight:400;}regular-table table td,regular-table table th{border-color:#eaedef;height:23px;}regular-table table .psp-header-group{text-overflow:ellipsis;}regular-table table .psp-header-leaf{border-bottom-width:0px;}regular-table table td,regular-table table th.psp-tree-label,regular-table table th.psp-tree-label,regular-table table th.psp-tree-leaf,regular-table table tbody tr:first-child th{border-style:solid;border-width:0px;border-top-width:1px;}regular-table table tbody th:empty{background-position:0px -10px;}@keyframes pulse_pos{0%{background-color:var(--pulse--background-color-start, rgba(0, 128, 255, 0.5));}100%{background-color:var(--pulse--background-color-end, rgba(0, 128, 255, 0));}}@keyframes pulse_pos2{0%{background-color:var(--pulse--background-color-start, rgba(0, 128, 255, 0.5));}100%{background-color:var(--pulse--background-color-end, rgba(0, 128, 255, 0));}}@keyframes pulse_neg{0%{background-color:var(--pulse--background-color-start, rgba(255, 25, 0, 0.5));}100%{background-color:var(--pulse--background-color-end, rgba(255, 25, 0, 0));}}@keyframes pulse_neg2{0%{background-color:var(--pulse--background-color-start, rgba(255, 25, 0, 0.5));}100%{background-color:var(--pulse--background-color-end, rgba(255, 25, 0, 0));}}\"}\n//# sourceMappingURL=perspective.css.min.js.map","min_map":"{\"version\":3,\"file\":\"perspective.css.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\"],\"sources\":[\"0\"],\"mappings\":\"AAAuC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACpFD,IACAD,EAAQG,QAAU,8pXAGtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/plotly.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/plotly.js","canonical":"models/plotly","resolution":"ESM","id":"7d9124b744","hash":"7d9124b74444e9f83b8090dd82d9d41384813817ab63b7ee47bf70179e0d9fa0","source":"\"use strict\";\nvar _a, _b;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PlotlyPlot = exports.PlotlyPlotView = exports.PlotlyEvent = void 0;\nconst tslib_1 = require(\"tslib\");\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst types_1 = require(\"@bokehjs/core/util/types\");\nconst object_1 = require(\"@bokehjs/core/util/object\");\nconst eq_1 = require(\"@bokehjs/core/util/eq\");\nconst column_data_source_1 = require(\"@bokehjs/models/sources/column_data_source\");\nconst debounce_1 = require(\"debounce\");\nconst layout_1 = require(\"./layout\");\nconst util_1 = require(\"./util\");\nconst plotly_css_1 = tslib_1.__importDefault(require(\"../styles/models/plotly.css\"));\nclass PlotlyEvent extends bokeh_events_1.ModelEvent {\n    constructor(data) {\n        super();\n        this.data = data;\n    }\n    get event_values() {\n        return { model: this.origin, data: this.data };\n    }\n}\nexports.PlotlyEvent = PlotlyEvent;\n_a = PlotlyEvent;\nPlotlyEvent.__name__ = \"PlotlyEvent\";\n(() => {\n    _a.prototype.event_name = \"plotly_event\";\n})();\nconst filterEventData = (gd, eventData, event) => {\n    // Ported from dash-core-components/src/components/Graph.react.js\n    const filteredEventData = Array.isArray(eventData) ? [] : {};\n    if (event === \"click\" || event === \"hover\" || event === \"selected\") {\n        const points = [];\n        if (eventData === undefined || eventData === null) {\n            return null;\n        }\n        const event_obj = eventData.event;\n        if (event_obj !== undefined) {\n            filteredEventData.device_state = {\n                // Keyboard modifiers\n                alt: event_obj.altKey,\n                ctrl: event_obj.ctrlKey,\n                meta: event_obj.metaKey,\n                shift: event_obj.shiftKey,\n                // Mouse buttons\n                button: event_obj.button,\n                buttons: event_obj.buttons,\n            };\n        }\n        let selectorObject;\n        if (eventData.hasOwnProperty(\"range\")) {\n            // Box selection\n            selectorObject = {\n                type: \"box\",\n                selector_state: {\n                    xrange: eventData.range.x,\n                    yrange: eventData.range.y,\n                },\n            };\n        }\n        else if (eventData.hasOwnProperty(\"lassoPoints\")) {\n            // Lasso selection\n            selectorObject = {\n                type: \"lasso\",\n                selector_state: {\n                    xs: eventData.lassoPoints.x,\n                    ys: eventData.lassoPoints.y,\n                },\n            };\n        }\n        else {\n            selectorObject = null;\n        }\n        filteredEventData.selector = selectorObject;\n        /*\n         * remove `data`, `layout`, `xaxis`, etc\n         * objects from the event data since they're so big\n         * and cause JSON stringify circular structure errors.\n         *\n         * also, pull down the `customdata` point from the data array\n         * into the event object\n         */\n        const data = gd.data;\n        for (let i = 0; i < eventData.points.length; i++) {\n            const fullPoint = eventData.points[i];\n            const pointData = {};\n            for (const property in fullPoint) {\n                const val = fullPoint[property];\n                if (fullPoint.hasOwnProperty(property) &&\n                    !Array.isArray(val) && !(0, types_1.isPlainObject)(val) &&\n                    val !== undefined) {\n                    pointData[property] = val;\n                }\n            }\n            if (fullPoint !== undefined && fullPoint !== null) {\n                if (fullPoint.hasOwnProperty(\"curveNumber\") &&\n                    fullPoint.hasOwnProperty(\"pointNumber\") &&\n                    data[fullPoint.curveNumber].hasOwnProperty(\"customdata\")) {\n                    pointData.customdata =\n                        data[fullPoint.curveNumber].customdata[fullPoint.pointNumber];\n                }\n                // specific to histogram. see https://github.com/plotly/plotly.js/pull/2113/\n                if (fullPoint.hasOwnProperty(\"pointNumbers\")) {\n                    pointData.pointNumbers = fullPoint.pointNumbers;\n                }\n            }\n            points[i] = pointData;\n        }\n        filteredEventData.points = points;\n    }\n    else if (event === \"relayout\" || event === \"restyle\") {\n        /*\n         * relayout shouldn't include any big objects\n         * it will usually just contain the ranges of the axes like\n         * \"xaxis.range[0]\": 0.7715822247381828,\n         * \"xaxis.range[1]\": 3.0095292008680063`\n         */\n        for (const property in eventData) {\n            if (eventData.hasOwnProperty(property)) {\n                filteredEventData[property] = eventData[property];\n            }\n        }\n    }\n    if (eventData.hasOwnProperty(\"range\")) {\n        filteredEventData.range = eventData.range;\n    }\n    if (eventData.hasOwnProperty(\"lassoPoints\")) {\n        filteredEventData.lassoPoints = eventData.lassoPoints;\n    }\n    return (0, util_1.convertUndefined)(filteredEventData);\n};\nconst _isHidden = (gd) => {\n    const display = window.getComputedStyle(gd).display;\n    return !display || display === \"none\";\n};\nclass PlotlyPlotView extends layout_1.HTMLBoxView {\n    constructor() {\n        super(...arguments);\n        this._settingViewport = false;\n        this._plotInitialized = false;\n        this._rendered = false;\n        this._reacting = false;\n        this._relayouting = false;\n        this._hoverdata = null;\n        this._end_relayouting = (0, debounce_1.debounce)(() => {\n            this._relayouting = false;\n        }, 2000, false);\n    }\n    initialize() {\n        super.initialize();\n        this._throttled_resize = (0, util_1.throttle)(() => this.resize_layout(), 25);\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { data, data_sources, layout, relayout, restyle, viewport_update_policy, viewport_update_throttle, _render_count, frames, viewport, } = this.model.properties;\n        this.on_change([data, data_sources, layout], () => {\n            const render_count = this.model._render_count;\n            setTimeout(() => {\n                if (this.model._render_count === render_count) {\n                    this.model._render_count += 1;\n                }\n            }, 250);\n        });\n        this.on_change(relayout, () => {\n            if (this.model.relayout == null) {\n                return;\n            }\n            window.Plotly.relayout(this.container, this.model.relayout);\n            this.model.relayout = null;\n        });\n        this.on_change(restyle, () => {\n            if (this.model.restyle == null) {\n                return;\n            }\n            window.Plotly.restyle(this.container, this.model.restyle.data, this.model.restyle.traces);\n            this.model.restyle = null;\n        });\n        this.on_change(viewport_update_policy, () => {\n            this._updateSetViewportFunction();\n        });\n        this.on_change(viewport_update_throttle, () => {\n            this._updateSetViewportFunction();\n        });\n        this.on_change(_render_count, () => {\n            this.plot();\n        });\n        this.on_change(frames, () => {\n            this.plot(true);\n        });\n        this.on_change(viewport, () => {\n            this._updateViewportFromProperty();\n        });\n    }\n    stylesheets() {\n        return [...super.stylesheets(), plotly_css_1.default];\n    }\n    remove() {\n        if (this.container != null) {\n            window.Plotly.purge(this.container);\n        }\n        super.remove();\n    }\n    render() {\n        super.render();\n        this.container = (0, dom_1.div)();\n        (0, layout_1.set_size)(this.container, this.model);\n        this._rendered = false;\n        this.watch_stylesheets();\n        this.plot(true).then(() => {\n            this.shadow_el.appendChild(this.container);\n            this._rendered = true;\n            this.resize_layout();\n            if (this.model.relayout != null) {\n                window.Plotly.relayout(this.container, this.model.relayout);\n            }\n        });\n    }\n    style_redraw() {\n        this.resize_layout();\n    }\n    resize_layout() {\n        if (!this._rendered || this.container == null) {\n            return;\n        }\n        const width = Math.min(this.model.width || this.el.clientWidth, this.model.max_width || Infinity);\n        const height = Math.min(this.model.height || this.el.clientHeight, this.model.max_height || Infinity);\n        window.Plotly.relayout(this.container, { width, height });\n    }\n    after_layout() {\n        super.after_layout();\n        this._throttled_resize();\n    }\n    _trace_data() {\n        const data = [];\n        for (let i = 0; i < this.model.data.length; i++) {\n            data.push(this._get_trace(i, false));\n        }\n        return data;\n    }\n    _layout_data() {\n        const newLayout = (0, util_1.deepCopy)(this.model.layout);\n        if (this._relayouting) {\n            const { layout } = this.container;\n            // For each xaxis* and yaxis* property of layout, if the value has a 'range'\n            // property then use this in newLayout\n            Object.keys(layout).reduce((value, key) => {\n                if (key.slice(1, 5) === \"axis\" && \"range\" in value) {\n                    newLayout[key].range = value.range;\n                }\n            }, {});\n        }\n        return newLayout;\n    }\n    _install_callbacks() {\n        //  - plotly_relayout\n        this.container.on(\"plotly_relayout\", (eventData) => {\n            if (eventData._update_from_property !== true) {\n                this.model.relayout_data = filterEventData(this.container, eventData, \"relayout\");\n                this._updateViewportProperty();\n                this._end_relayouting();\n            }\n        });\n        //  - plotly_relayouting\n        this.container.on(\"plotly_relayouting\", () => {\n            if (this.model.viewport_update_policy !== \"mouseup\") {\n                this._relayouting = true;\n                this._updateViewportProperty();\n            }\n        });\n        //  - plotly_restyle\n        this.container.on(\"plotly_restyle\", (eventData) => {\n            this.model.restyle_data = filterEventData(this.container, eventData, \"restyle\");\n            this._updateViewportProperty();\n        });\n        //  - plotly_click\n        this.container.on(\"plotly_click\", (eventData) => {\n            const data = filterEventData(this.container, eventData, \"click\");\n            this.model.trigger_event(new PlotlyEvent({ type: \"click\", data }));\n        });\n        //  - plotly_doubleclick\n        this.container.on(\"plotly_doubleclick\", (eventData) => {\n            const data = filterEventData(this.container, eventData, \"click\");\n            this.model.trigger_event(new PlotlyEvent({ type: \"doubleclick\", data }));\n        });\n        //  - plotly_hover\n        this.container.on(\"plotly_hover\", (eventData) => {\n            const data = filterEventData(this.container, eventData, \"hover\");\n            this.model.trigger_event(new PlotlyEvent({ type: \"hover\", data }));\n            // Override hoverdata to ensure click event has context\n            // see https://github.com/holoviz/panel/pull/6753\n            this._hoverdata = this.container._hoverdata = eventData.points;\n        });\n        //  - plotly_selected\n        this.container.on(\"plotly_selected\", (eventData) => {\n            if (eventData === undefined || eventData === null) {\n                // filter out the empty events that come from single-click\n                return;\n            }\n            const data = filterEventData(this.container, eventData, \"selected\");\n            this.model.trigger_event(new PlotlyEvent({ type: \"selected\", data }));\n        });\n        //  - plotly_clickannotation\n        this.container.on(\"plotly_clickannotation\", (eventData) => {\n            delete eventData.event;\n            delete eventData.fullAnnotation;\n            this.model.trigger_event(new PlotlyEvent({ type: \"clickannotation\", data: eventData }));\n        });\n        //  - plotly_deselect\n        this.container.on(\"plotly_deselect\", () => {\n            this.model.trigger_event(new PlotlyEvent({ type: \"selected\", data: null }));\n        });\n        //  - plotly_unhover\n        this.container.on(\"plotly_unhover\", () => {\n            // Override hoverdata to ensure click event has context\n            this.container._hoverdata = this._hoverdata;\n            this.model.trigger_event(new PlotlyEvent({ type: \"hover\", data: null }));\n            setTimeout(() => {\n                // Remove hoverdata once events have been processed\n                delete this.container._hoverdata;\n            }, 0);\n        });\n    }\n    async plot(new_plot = false) {\n        if (!window.Plotly || !this.container) {\n            return;\n        }\n        const data = this._trace_data();\n        const newLayout = this._layout_data();\n        this._reacting = true;\n        if (new_plot) {\n            const obj = { data, layout: newLayout, config: this.model.config, frames: this.model.frames };\n            await window.Plotly.newPlot(this.container, obj);\n        }\n        else {\n            await window.Plotly.react(this.container, data, newLayout, this.model.config);\n            if (this.model.frames != null) {\n                await window.Plotly.addFrames(this.container, this.model.frames);\n            }\n        }\n        this._updateSetViewportFunction();\n        this._updateViewportProperty();\n        if (!this._plotInitialized) {\n            this._install_callbacks();\n        }\n        else if (!_isHidden(this.container)) {\n            window.Plotly.Plots.resize(this.container);\n        }\n        this._reacting = false;\n        this._plotInitialized = true;\n    }\n    _get_trace(index, update) {\n        const trace = (0, object_1.clone)(this.model.data[index]);\n        const cds = this.model.data_sources[index];\n        for (const column of cds.columns()) {\n            let array = cds.get_array(column)[0];\n            if (array.shape != null && array.shape.length > 1) {\n                array = (0, util_1.reshape)(array, array.shape);\n            }\n            const prop_path = column.split(\".\");\n            const prop = prop_path[prop_path.length - 1];\n            let prop_parent = trace;\n            for (const k of prop_path.slice(0, -1)) {\n                prop_parent = (prop_parent[k]);\n            }\n            if (update && prop_path.length == 1) {\n                prop_parent[prop] = [array];\n            }\n            else {\n                prop_parent[prop] = array;\n            }\n        }\n        return trace;\n    }\n    _updateViewportFromProperty() {\n        if (!window.Plotly || this._settingViewport || this._reacting || !this.model.viewport) {\n            return;\n        }\n        const fullLayout = this.container._fullLayout;\n        // Call relayout if viewport differs from fullLayout\n        Object.keys(this.model.viewport).reduce((value, key) => {\n            if (!(0, eq_1.is_equal)((0, util_1.get)(fullLayout, key), value)) {\n                const clonedViewport = (0, util_1.deepCopy)(this.model.viewport);\n                clonedViewport._update_from_property = true;\n                this._settingViewport = true;\n                window.Plotly.relayout(this.el, clonedViewport).then(() => {\n                    this._settingViewport = false;\n                });\n                return false;\n            }\n            else {\n                return true;\n            }\n        }, {});\n    }\n    _updateViewportProperty() {\n        const fullLayout = this.container._fullLayout;\n        const viewport = {};\n        // Get range for all xaxis and yaxis properties\n        for (const prop in fullLayout) {\n            if (!fullLayout.hasOwnProperty(prop)) {\n                continue;\n            }\n            const maybe_axis = prop.slice(0, 5);\n            if (maybe_axis === \"xaxis\" || maybe_axis === \"yaxis\") {\n                viewport[`${prop}.range`] = (0, util_1.deepCopy)(fullLayout[prop].range);\n            }\n        }\n        if (!(0, eq_1.is_equal)(viewport, this.model.viewport)) {\n            this._setViewport(viewport);\n        }\n    }\n    _updateSetViewportFunction() {\n        if (this.model.viewport_update_policy === \"continuous\" ||\n            this.model.viewport_update_policy === \"mouseup\") {\n            this._setViewport = (viewport) => {\n                if (!this._settingViewport) {\n                    this._settingViewport = true;\n                    this.model.viewport = viewport;\n                    this._settingViewport = false;\n                }\n            };\n        }\n        else {\n            this._setViewport = (0, util_1.throttle)((viewport) => {\n                if (!this._settingViewport) {\n                    this._settingViewport = true;\n                    this.model.viewport = viewport;\n                    this._settingViewport = false;\n                }\n            }, this.model.viewport_update_throttle);\n        }\n    }\n}\nexports.PlotlyPlotView = PlotlyPlotView;\nPlotlyPlotView.__name__ = \"PlotlyPlotView\";\nclass PlotlyPlot extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.PlotlyPlot = PlotlyPlot;\n_b = PlotlyPlot;\nPlotlyPlot.__name__ = \"PlotlyPlot\";\nPlotlyPlot.__module__ = \"panel.models.plotly\";\n(() => {\n    _b.prototype.default_view = PlotlyPlotView;\n    _b.define(({ List, Any, Nullable, Float, Ref, Str }) => ({\n        data: [List(Any), []],\n        layout: [Any, {}],\n        config: [Any, {}],\n        frames: [Nullable(List(Any)), null],\n        data_sources: [List(Ref(column_data_source_1.ColumnDataSource)), []],\n        relayout: [Nullable(Any), {}],\n        restyle: [Nullable(Any), {}],\n        relayout_data: [Any, {}],\n        restyle_data: [List(Any), []],\n        viewport: [Any, {}],\n        viewport_update_policy: [Str, \"mouseup\"],\n        viewport_update_throttle: [Float, 200],\n        _render_count: [Float, 0],\n    }));\n})();\n//# sourceMappingURL=plotly.js.map\n","type":"js","dependency_paths":[["debounce","/home/runner/work/panel/panel/panel/node_modules/debounce/index.js"],["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"],["./util","/home/runner/work/panel/panel/panel/dist/lib/models/util.js"],["../styles/models/plotly.css","/home/runner/work/panel/panel/panel/dist/lib/styles/models/plotly.css.js"]],"dependency_map":[],"exported":[{"type":"named","name":"PlotlyEvent"},{"type":"named","name":"PlotlyPlotView"},{"type":"named","name":"PlotlyPlot"}],"externals":[],"shims":[]},"code":{"source":"/* models/plotly.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a, _b;\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    const object_1 = require(\"@bokehjs/core/util/object\");\n    const eq_1 = require(\"@bokehjs/core/util/eq\");\n    const column_data_source_1 = require(\"@bokehjs/models/sources/column_data_source\");\n    const debounce_1 = require(\"99a25e6992\") /* debounce */;\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    const util_1 = require(\"a3669a897a\") /* ./util */;\n    const plotly_css_1 = tslib_1.__importDefault(require(\"3d56c75186\") /* ../styles/models/plotly.css */);\n    class PlotlyEvent extends bokeh_events_1.ModelEvent {\n        constructor(data) {\n            super();\n            this.data = data;\n        }\n        get event_values() {\n            return { model: this.origin, data: this.data };\n        }\n    }\n    exports.PlotlyEvent = PlotlyEvent;\n    _a = PlotlyEvent;\n    PlotlyEvent.__name__ = \"PlotlyEvent\";\n    (() => {\n        _a.prototype.event_name = \"plotly_event\";\n    })();\n    const filterEventData = (gd, eventData, event) => {\n        // Ported from dash-core-components/src/components/Graph.react.js\n        const filteredEventData = Array.isArray(eventData) ? [] : {};\n        if (event === \"click\" || event === \"hover\" || event === \"selected\") {\n            const points = [];\n            if (eventData === undefined || eventData === null) {\n                return null;\n            }\n            const event_obj = eventData.event;\n            if (event_obj !== undefined) {\n                filteredEventData.device_state = {\n                    // Keyboard modifiers\n                    alt: event_obj.altKey,\n                    ctrl: event_obj.ctrlKey,\n                    meta: event_obj.metaKey,\n                    shift: event_obj.shiftKey,\n                    // Mouse buttons\n                    button: event_obj.button,\n                    buttons: event_obj.buttons,\n                };\n            }\n            let selectorObject;\n            if (eventData.hasOwnProperty(\"range\")) {\n                // Box selection\n                selectorObject = {\n                    type: \"box\",\n                    selector_state: {\n                        xrange: eventData.range.x,\n                        yrange: eventData.range.y,\n                    },\n                };\n            }\n            else if (eventData.hasOwnProperty(\"lassoPoints\")) {\n                // Lasso selection\n                selectorObject = {\n                    type: \"lasso\",\n                    selector_state: {\n                        xs: eventData.lassoPoints.x,\n                        ys: eventData.lassoPoints.y,\n                    },\n                };\n            }\n            else {\n                selectorObject = null;\n            }\n            filteredEventData.selector = selectorObject;\n            /*\n             * remove `data`, `layout`, `xaxis`, etc\n             * objects from the event data since they're so big\n             * and cause JSON stringify circular structure errors.\n             *\n             * also, pull down the `customdata` point from the data array\n             * into the event object\n             */\n            const data = gd.data;\n            for (let i = 0; i < eventData.points.length; i++) {\n                const fullPoint = eventData.points[i];\n                const pointData = {};\n                for (const property in fullPoint) {\n                    const val = fullPoint[property];\n                    if (fullPoint.hasOwnProperty(property) &&\n                        !Array.isArray(val) && !(0, types_1.isPlainObject)(val) &&\n                        val !== undefined) {\n                        pointData[property] = val;\n                    }\n                }\n                if (fullPoint !== undefined && fullPoint !== null) {\n                    if (fullPoint.hasOwnProperty(\"curveNumber\") &&\n                        fullPoint.hasOwnProperty(\"pointNumber\") &&\n                        data[fullPoint.curveNumber].hasOwnProperty(\"customdata\")) {\n                        pointData.customdata =\n                            data[fullPoint.curveNumber].customdata[fullPoint.pointNumber];\n                    }\n                    // specific to histogram. see https://github.com/plotly/plotly.js/pull/2113/\n                    if (fullPoint.hasOwnProperty(\"pointNumbers\")) {\n                        pointData.pointNumbers = fullPoint.pointNumbers;\n                    }\n                }\n                points[i] = pointData;\n            }\n            filteredEventData.points = points;\n        }\n        else if (event === \"relayout\" || event === \"restyle\") {\n            /*\n             * relayout shouldn't include any big objects\n             * it will usually just contain the ranges of the axes like\n             * \"xaxis.range[0]\": 0.7715822247381828,\n             * \"xaxis.range[1]\": 3.0095292008680063`\n             */\n            for (const property in eventData) {\n                if (eventData.hasOwnProperty(property)) {\n                    filteredEventData[property] = eventData[property];\n                }\n            }\n        }\n        if (eventData.hasOwnProperty(\"range\")) {\n            filteredEventData.range = eventData.range;\n        }\n        if (eventData.hasOwnProperty(\"lassoPoints\")) {\n            filteredEventData.lassoPoints = eventData.lassoPoints;\n        }\n        return (0, util_1.convertUndefined)(filteredEventData);\n    };\n    const _isHidden = (gd) => {\n        const display = window.getComputedStyle(gd).display;\n        return !display || display === \"none\";\n    };\n    class PlotlyPlotView extends layout_1.HTMLBoxView {\n        constructor() {\n            super(...arguments);\n            this._settingViewport = false;\n            this._plotInitialized = false;\n            this._rendered = false;\n            this._reacting = false;\n            this._relayouting = false;\n            this._hoverdata = null;\n            this._end_relayouting = (0, debounce_1.debounce)(() => {\n                this._relayouting = false;\n            }, 2000, false);\n        }\n        initialize() {\n            super.initialize();\n            this._throttled_resize = (0, util_1.throttle)(() => this.resize_layout(), 25);\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { data, data_sources, layout, relayout, restyle, viewport_update_policy, viewport_update_throttle, _render_count, frames, viewport, } = this.model.properties;\n            this.on_change([data, data_sources, layout], () => {\n                const render_count = this.model._render_count;\n                setTimeout(() => {\n                    if (this.model._render_count === render_count) {\n                        this.model._render_count += 1;\n                    }\n                }, 250);\n            });\n            this.on_change(relayout, () => {\n                if (this.model.relayout == null) {\n                    return;\n                }\n                window.Plotly.relayout(this.container, this.model.relayout);\n                this.model.relayout = null;\n            });\n            this.on_change(restyle, () => {\n                if (this.model.restyle == null) {\n                    return;\n                }\n                window.Plotly.restyle(this.container, this.model.restyle.data, this.model.restyle.traces);\n                this.model.restyle = null;\n            });\n            this.on_change(viewport_update_policy, () => {\n                this._updateSetViewportFunction();\n            });\n            this.on_change(viewport_update_throttle, () => {\n                this._updateSetViewportFunction();\n            });\n            this.on_change(_render_count, () => {\n                this.plot();\n            });\n            this.on_change(frames, () => {\n                this.plot(true);\n            });\n            this.on_change(viewport, () => {\n                this._updateViewportFromProperty();\n            });\n        }\n        stylesheets() {\n            return [...super.stylesheets(), plotly_css_1.default];\n        }\n        remove() {\n            if (this.container != null) {\n                window.Plotly.purge(this.container);\n            }\n            super.remove();\n        }\n        render() {\n            super.render();\n            this.container = (0, dom_1.div)();\n            (0, layout_1.set_size)(this.container, this.model);\n            this._rendered = false;\n            this.watch_stylesheets();\n            this.plot(true).then(() => {\n                this.shadow_el.appendChild(this.container);\n                this._rendered = true;\n                this.resize_layout();\n                if (this.model.relayout != null) {\n                    window.Plotly.relayout(this.container, this.model.relayout);\n                }\n            });\n        }\n        style_redraw() {\n            this.resize_layout();\n        }\n        resize_layout() {\n            if (!this._rendered || this.container == null) {\n                return;\n            }\n            const width = Math.min(this.model.width || this.el.clientWidth, this.model.max_width || Infinity);\n            const height = Math.min(this.model.height || this.el.clientHeight, this.model.max_height || Infinity);\n            window.Plotly.relayout(this.container, { width, height });\n        }\n        after_layout() {\n            super.after_layout();\n            this._throttled_resize();\n        }\n        _trace_data() {\n            const data = [];\n            for (let i = 0; i < this.model.data.length; i++) {\n                data.push(this._get_trace(i, false));\n            }\n            return data;\n        }\n        _layout_data() {\n            const newLayout = (0, util_1.deepCopy)(this.model.layout);\n            if (this._relayouting) {\n                const { layout } = this.container;\n                // For each xaxis* and yaxis* property of layout, if the value has a 'range'\n                // property then use this in newLayout\n                Object.keys(layout).reduce((value, key) => {\n                    if (key.slice(1, 5) === \"axis\" && \"range\" in value) {\n                        newLayout[key].range = value.range;\n                    }\n                }, {});\n            }\n            return newLayout;\n        }\n        _install_callbacks() {\n            //  - plotly_relayout\n            this.container.on(\"plotly_relayout\", (eventData) => {\n                if (eventData._update_from_property !== true) {\n                    this.model.relayout_data = filterEventData(this.container, eventData, \"relayout\");\n                    this._updateViewportProperty();\n                    this._end_relayouting();\n                }\n            });\n            //  - plotly_relayouting\n            this.container.on(\"plotly_relayouting\", () => {\n                if (this.model.viewport_update_policy !== \"mouseup\") {\n                    this._relayouting = true;\n                    this._updateViewportProperty();\n                }\n            });\n            //  - plotly_restyle\n            this.container.on(\"plotly_restyle\", (eventData) => {\n                this.model.restyle_data = filterEventData(this.container, eventData, \"restyle\");\n                this._updateViewportProperty();\n            });\n            //  - plotly_click\n            this.container.on(\"plotly_click\", (eventData) => {\n                const data = filterEventData(this.container, eventData, \"click\");\n                this.model.trigger_event(new PlotlyEvent({ type: \"click\", data }));\n            });\n            //  - plotly_doubleclick\n            this.container.on(\"plotly_doubleclick\", (eventData) => {\n                const data = filterEventData(this.container, eventData, \"click\");\n                this.model.trigger_event(new PlotlyEvent({ type: \"doubleclick\", data }));\n            });\n            //  - plotly_hover\n            this.container.on(\"plotly_hover\", (eventData) => {\n                const data = filterEventData(this.container, eventData, \"hover\");\n                this.model.trigger_event(new PlotlyEvent({ type: \"hover\", data }));\n                // Override hoverdata to ensure click event has context\n                // see https://github.com/holoviz/panel/pull/6753\n                this._hoverdata = this.container._hoverdata = eventData.points;\n            });\n            //  - plotly_selected\n            this.container.on(\"plotly_selected\", (eventData) => {\n                if (eventData === undefined || eventData === null) {\n                    // filter out the empty events that come from single-click\n                    return;\n                }\n                const data = filterEventData(this.container, eventData, \"selected\");\n                this.model.trigger_event(new PlotlyEvent({ type: \"selected\", data }));\n            });\n            //  - plotly_clickannotation\n            this.container.on(\"plotly_clickannotation\", (eventData) => {\n                delete eventData.event;\n                delete eventData.fullAnnotation;\n                this.model.trigger_event(new PlotlyEvent({ type: \"clickannotation\", data: eventData }));\n            });\n            //  - plotly_deselect\n            this.container.on(\"plotly_deselect\", () => {\n                this.model.trigger_event(new PlotlyEvent({ type: \"selected\", data: null }));\n            });\n            //  - plotly_unhover\n            this.container.on(\"plotly_unhover\", () => {\n                // Override hoverdata to ensure click event has context\n                this.container._hoverdata = this._hoverdata;\n                this.model.trigger_event(new PlotlyEvent({ type: \"hover\", data: null }));\n                setTimeout(() => {\n                    // Remove hoverdata once events have been processed\n                    delete this.container._hoverdata;\n                }, 0);\n            });\n        }\n        async plot(new_plot = false) {\n            if (!window.Plotly || !this.container) {\n                return;\n            }\n            const data = this._trace_data();\n            const newLayout = this._layout_data();\n            this._reacting = true;\n            if (new_plot) {\n                const obj = { data, layout: newLayout, config: this.model.config, frames: this.model.frames };\n                await window.Plotly.newPlot(this.container, obj);\n            }\n            else {\n                await window.Plotly.react(this.container, data, newLayout, this.model.config);\n                if (this.model.frames != null) {\n                    await window.Plotly.addFrames(this.container, this.model.frames);\n                }\n            }\n            this._updateSetViewportFunction();\n            this._updateViewportProperty();\n            if (!this._plotInitialized) {\n                this._install_callbacks();\n            }\n            else if (!_isHidden(this.container)) {\n                window.Plotly.Plots.resize(this.container);\n            }\n            this._reacting = false;\n            this._plotInitialized = true;\n        }\n        _get_trace(index, update) {\n            const trace = (0, object_1.clone)(this.model.data[index]);\n            const cds = this.model.data_sources[index];\n            for (const column of cds.columns()) {\n                let array = cds.get_array(column)[0];\n                if (array.shape != null && array.shape.length > 1) {\n                    array = (0, util_1.reshape)(array, array.shape);\n                }\n                const prop_path = column.split(\".\");\n                const prop = prop_path[prop_path.length - 1];\n                let prop_parent = trace;\n                for (const k of prop_path.slice(0, -1)) {\n                    prop_parent = (prop_parent[k]);\n                }\n                if (update && prop_path.length == 1) {\n                    prop_parent[prop] = [array];\n                }\n                else {\n                    prop_parent[prop] = array;\n                }\n            }\n            return trace;\n        }\n        _updateViewportFromProperty() {\n            if (!window.Plotly || this._settingViewport || this._reacting || !this.model.viewport) {\n                return;\n            }\n            const fullLayout = this.container._fullLayout;\n            // Call relayout if viewport differs from fullLayout\n            Object.keys(this.model.viewport).reduce((value, key) => {\n                if (!(0, eq_1.is_equal)((0, util_1.get)(fullLayout, key), value)) {\n                    const clonedViewport = (0, util_1.deepCopy)(this.model.viewport);\n                    clonedViewport._update_from_property = true;\n                    this._settingViewport = true;\n                    window.Plotly.relayout(this.el, clonedViewport).then(() => {\n                        this._settingViewport = false;\n                    });\n                    return false;\n                }\n                else {\n                    return true;\n                }\n            }, {});\n        }\n        _updateViewportProperty() {\n            const fullLayout = this.container._fullLayout;\n            const viewport = {};\n            // Get range for all xaxis and yaxis properties\n            for (const prop in fullLayout) {\n                if (!fullLayout.hasOwnProperty(prop)) {\n                    continue;\n                }\n                const maybe_axis = prop.slice(0, 5);\n                if (maybe_axis === \"xaxis\" || maybe_axis === \"yaxis\") {\n                    viewport[`${prop}.range`] = (0, util_1.deepCopy)(fullLayout[prop].range);\n                }\n            }\n            if (!(0, eq_1.is_equal)(viewport, this.model.viewport)) {\n                this._setViewport(viewport);\n            }\n        }\n        _updateSetViewportFunction() {\n            if (this.model.viewport_update_policy === \"continuous\" ||\n                this.model.viewport_update_policy === \"mouseup\") {\n                this._setViewport = (viewport) => {\n                    if (!this._settingViewport) {\n                        this._settingViewport = true;\n                        this.model.viewport = viewport;\n                        this._settingViewport = false;\n                    }\n                };\n            }\n            else {\n                this._setViewport = (0, util_1.throttle)((viewport) => {\n                    if (!this._settingViewport) {\n                        this._settingViewport = true;\n                        this.model.viewport = viewport;\n                        this._settingViewport = false;\n                    }\n                }, this.model.viewport_update_throttle);\n            }\n        }\n    }\n    exports.PlotlyPlotView = PlotlyPlotView;\n    PlotlyPlotView.__name__ = \"PlotlyPlotView\";\n    class PlotlyPlot extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.PlotlyPlot = PlotlyPlot;\n    _b = PlotlyPlot;\n    PlotlyPlot.__name__ = \"PlotlyPlot\";\n    PlotlyPlot.__module__ = \"panel.models.plotly\";\n    (() => {\n        _b.prototype.default_view = PlotlyPlotView;\n        _b.define(({ List, Any, Nullable, Float, Ref, Str }) => ({\n            data: [List(Any), []],\n            layout: [Any, {}],\n            config: [Any, {}],\n            frames: [Nullable(List(Any)), null],\n            data_sources: [List(Ref(column_data_source_1.ColumnDataSource)), []],\n            relayout: [Nullable(Any), {}],\n            restyle: [Nullable(Any), {}],\n            relayout_data: [Any, {}],\n            restyle_data: [List(Any), []],\n            viewport: [Any, {}],\n            viewport_update_policy: [Str, \"mouseup\"],\n            viewport_update_throttle: [Float, 200],\n            _render_count: [Float, 0],\n        }));\n    })();\n}\n","min_source":"function _(t,e,o,i,s){var n,r;i();const l=t(\"tslib\"),a=t(\"@bokehjs/core/bokeh_events\"),h=t(\"@bokehjs/core/dom\"),c=t(\"@bokehjs/core/util/types\"),d=t(\"@bokehjs/core/util/object\"),_=t(\"@bokehjs/core/util/eq\"),u=t(\"@bokehjs/models/sources/column_data_source\"),p=t(\"99a25e6992\"),y=t(\"dab42e6dad\"),w=t(\"a3669a897a\"),m=l.__importDefault(t(\"3d56c75186\"));class g extends a.ModelEvent{constructor(t){super(),this.data=t}get event_values(){return{model:this.origin,data:this.data}}}o.PlotlyEvent=g,n=g,g.__name__=\"PlotlyEvent\",n.prototype.event_name=\"plotly_event\";const v=(t,e,o)=>{const i=Array.isArray(e)?[]:{};if(\"click\"===o||\"hover\"===o||\"selected\"===o){const o=[];if(null==e)return null;const s=e.event;let n;void 0!==s&&(i.device_state={alt:s.altKey,ctrl:s.ctrlKey,meta:s.metaKey,shift:s.shiftKey,button:s.button,buttons:s.buttons}),n=e.hasOwnProperty(\"range\")?{type:\"box\",selector_state:{xrange:e.range.x,yrange:e.range.y}}:e.hasOwnProperty(\"lassoPoints\")?{type:\"lasso\",selector_state:{xs:e.lassoPoints.x,ys:e.lassoPoints.y}}:null,i.selector=n;const r=t.data;for(let t=0;t<e.points.length;t++){const i=e.points[t],s={};for(const t in i){const e=i[t];!i.hasOwnProperty(t)||Array.isArray(e)||(0,c.isPlainObject)(e)||void 0===e||(s[t]=e)}null!=i&&(i.hasOwnProperty(\"curveNumber\")&&i.hasOwnProperty(\"pointNumber\")&&r[i.curveNumber].hasOwnProperty(\"customdata\")&&(s.customdata=r[i.curveNumber].customdata[i.pointNumber]),i.hasOwnProperty(\"pointNumbers\")&&(s.pointNumbers=i.pointNumbers)),o[t]=s}i.points=o}else if(\"relayout\"===o||\"restyle\"===o)for(const t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return e.hasOwnProperty(\"range\")&&(i.range=e.range),e.hasOwnProperty(\"lassoPoints\")&&(i.lassoPoints=e.lassoPoints),(0,w.convertUndefined)(i)};class P extends y.HTMLBoxView{constructor(){super(...arguments),this._settingViewport=!1,this._plotInitialized=!1,this._rendered=!1,this._reacting=!1,this._relayouting=!1,this._hoverdata=null,this._end_relayouting=(0,p.debounce)((()=>{this._relayouting=!1}),2e3,!1)}initialize(){super.initialize(),this._throttled_resize=(0,w.throttle)((()=>this.resize_layout()),25)}connect_signals(){super.connect_signals();const{data:t,data_sources:e,layout:o,relayout:i,restyle:s,viewport_update_policy:n,viewport_update_throttle:r,_render_count:l,frames:a,viewport:h}=this.model.properties;this.on_change([t,e,o],(()=>{const t=this.model._render_count;setTimeout((()=>{this.model._render_count===t&&(this.model._render_count+=1)}),250)})),this.on_change(i,(()=>{null!=this.model.relayout&&(window.Plotly.relayout(this.container,this.model.relayout),this.model.relayout=null)})),this.on_change(s,(()=>{null!=this.model.restyle&&(window.Plotly.restyle(this.container,this.model.restyle.data,this.model.restyle.traces),this.model.restyle=null)})),this.on_change(n,(()=>{this._updateSetViewportFunction()})),this.on_change(r,(()=>{this._updateSetViewportFunction()})),this.on_change(l,(()=>{this.plot()})),this.on_change(a,(()=>{this.plot(!0)})),this.on_change(h,(()=>{this._updateViewportFromProperty()}))}stylesheets(){return[...super.stylesheets(),m.default]}remove(){null!=this.container&&window.Plotly.purge(this.container),super.remove()}render(){super.render(),this.container=(0,h.div)(),(0,y.set_size)(this.container,this.model),this._rendered=!1,this.watch_stylesheets(),this.plot(!0).then((()=>{this.shadow_el.appendChild(this.container),this._rendered=!0,this.resize_layout(),null!=this.model.relayout&&window.Plotly.relayout(this.container,this.model.relayout)}))}style_redraw(){this.resize_layout()}resize_layout(){if(!this._rendered||null==this.container)return;const t=Math.min(this.model.width||this.el.clientWidth,this.model.max_width||1/0),e=Math.min(this.model.height||this.el.clientHeight,this.model.max_height||1/0);window.Plotly.relayout(this.container,{width:t,height:e})}after_layout(){super.after_layout(),this._throttled_resize()}_trace_data(){const t=[];for(let e=0;e<this.model.data.length;e++)t.push(this._get_trace(e,!1));return t}_layout_data(){const t=(0,w.deepCopy)(this.model.layout);if(this._relayouting){const{layout:e}=this.container;Object.keys(e).reduce(((e,o)=>{\"axis\"===o.slice(1,5)&&\"range\"in e&&(t[o].range=e.range)}),{})}return t}_install_callbacks(){this.container.on(\"plotly_relayout\",(t=>{!0!==t._update_from_property&&(this.model.relayout_data=v(this.container,t,\"relayout\"),this._updateViewportProperty(),this._end_relayouting())})),this.container.on(\"plotly_relayouting\",(()=>{\"mouseup\"!==this.model.viewport_update_policy&&(this._relayouting=!0,this._updateViewportProperty())})),this.container.on(\"plotly_restyle\",(t=>{this.model.restyle_data=v(this.container,t,\"restyle\"),this._updateViewportProperty()})),this.container.on(\"plotly_click\",(t=>{const e=v(this.container,t,\"click\");this.model.trigger_event(new g({type:\"click\",data:e}))})),this.container.on(\"plotly_doubleclick\",(t=>{const e=v(this.container,t,\"click\");this.model.trigger_event(new g({type:\"doubleclick\",data:e}))})),this.container.on(\"plotly_hover\",(t=>{const e=v(this.container,t,\"hover\");this.model.trigger_event(new g({type:\"hover\",data:e})),this._hoverdata=this.container._hoverdata=t.points})),this.container.on(\"plotly_selected\",(t=>{if(null==t)return;const e=v(this.container,t,\"selected\");this.model.trigger_event(new g({type:\"selected\",data:e}))})),this.container.on(\"plotly_clickannotation\",(t=>{delete t.event,delete t.fullAnnotation,this.model.trigger_event(new g({type:\"clickannotation\",data:t}))})),this.container.on(\"plotly_deselect\",(()=>{this.model.trigger_event(new g({type:\"selected\",data:null}))})),this.container.on(\"plotly_unhover\",(()=>{this.container._hoverdata=this._hoverdata,this.model.trigger_event(new g({type:\"hover\",data:null})),setTimeout((()=>{delete this.container._hoverdata}),0)}))}async plot(t=!1){if(!window.Plotly||!this.container)return;const e=this._trace_data(),o=this._layout_data();if(this._reacting=!0,t){const t={data:e,layout:o,config:this.model.config,frames:this.model.frames};await window.Plotly.newPlot(this.container,t)}else await window.Plotly.react(this.container,e,o,this.model.config),null!=this.model.frames&&await window.Plotly.addFrames(this.container,this.model.frames);this._updateSetViewportFunction(),this._updateViewportProperty(),this._plotInitialized?(t=>{const e=window.getComputedStyle(t).display;return!e||\"none\"===e})(this.container)||window.Plotly.Plots.resize(this.container):this._install_callbacks(),this._reacting=!1,this._plotInitialized=!0}_get_trace(t,e){const o=(0,d.clone)(this.model.data[t]),i=this.model.data_sources[t];for(const t of i.columns()){let s=i.get_array(t)[0];null!=s.shape&&s.shape.length>1&&(s=(0,w.reshape)(s,s.shape));const n=t.split(\".\"),r=n[n.length-1];let l=o;for(const t of n.slice(0,-1))l=l[t];e&&1==n.length?l[r]=[s]:l[r]=s}return o}_updateViewportFromProperty(){if(!window.Plotly||this._settingViewport||this._reacting||!this.model.viewport)return;const t=this.container._fullLayout;Object.keys(this.model.viewport).reduce(((e,o)=>{if((0,_.is_equal)((0,w.get)(t,o),e))return!0;{const t=(0,w.deepCopy)(this.model.viewport);return t._update_from_property=!0,this._settingViewport=!0,window.Plotly.relayout(this.el,t).then((()=>{this._settingViewport=!1})),!1}}),{})}_updateViewportProperty(){const t=this.container._fullLayout,e={};for(const o in t){if(!t.hasOwnProperty(o))continue;const i=o.slice(0,5);\"xaxis\"!==i&&\"yaxis\"!==i||(e[`${o}.range`]=(0,w.deepCopy)(t[o].range))}(0,_.is_equal)(e,this.model.viewport)||this._setViewport(e)}_updateSetViewportFunction(){\"continuous\"===this.model.viewport_update_policy||\"mouseup\"===this.model.viewport_update_policy?this._setViewport=t=>{this._settingViewport||(this._settingViewport=!0,this.model.viewport=t,this._settingViewport=!1)}:this._setViewport=(0,w.throttle)((t=>{this._settingViewport||(this._settingViewport=!0,this.model.viewport=t,this._settingViewport=!1)}),this.model.viewport_update_throttle)}}o.PlotlyPlotView=P,P.__name__=\"PlotlyPlotView\";class f extends y.HTMLBox{constructor(t){super(t)}}o.PlotlyPlot=f,r=f,f.__name__=\"PlotlyPlot\",f.__module__=\"panel.models.plotly\",r.prototype.default_view=P,r.define((({List:t,Any:e,Nullable:o,Float:i,Ref:s,Str:n})=>({data:[t(e),[]],layout:[e,{}],config:[e,{}],frames:[o(t(e)),null],data_sources:[t(s(u.ColumnDataSource)),[]],relayout:[o(e),{}],restyle:[o(e),{}],relayout_data:[e,{}],restyle_data:[t(e),[]],viewport:[e,{}],viewport_update_policy:[n,\"mouseup\"],viewport_update_throttle:[i,200],_render_count:[i,0]})))}\n//# sourceMappingURL=plotly.min.js.map","min_map":"{\"version\":3,\"file\":\"plotly.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"_b\",\"tslib_1\",\"bokeh_events_1\",\"dom_1\",\"types_1\",\"object_1\",\"eq_1\",\"column_data_source_1\",\"debounce_1\",\"layout_1\",\"util_1\",\"plotly_css_1\",\"__importDefault\",\"PlotlyEvent\",\"ModelEvent\",\"constructor\",\"data\",\"super\",\"this\",\"event_values\",\"model\",\"origin\",\"__name__\",\"prototype\",\"event_name\",\"filterEventData\",\"gd\",\"eventData\",\"event\",\"filteredEventData\",\"Array\",\"isArray\",\"points\",\"event_obj\",\"selectorObject\",\"undefined\",\"device_state\",\"alt\",\"altKey\",\"ctrl\",\"ctrlKey\",\"meta\",\"metaKey\",\"shift\",\"shiftKey\",\"button\",\"buttons\",\"hasOwnProperty\",\"type\",\"selector_state\",\"xrange\",\"range\",\"x\",\"yrange\",\"y\",\"xs\",\"lassoPoints\",\"ys\",\"selector\",\"i\",\"length\",\"fullPoint\",\"pointData\",\"property\",\"val\",\"isPlainObject\",\"curveNumber\",\"customdata\",\"pointNumber\",\"pointNumbers\",\"convertUndefined\",\"PlotlyPlotView\",\"HTMLBoxView\",\"arguments\",\"_settingViewport\",\"_plotInitialized\",\"_rendered\",\"_reacting\",\"_relayouting\",\"_hoverdata\",\"_end_relayouting\",\"debounce\",\"initialize\",\"_throttled_resize\",\"throttle\",\"resize_layout\",\"connect_signals\",\"data_sources\",\"layout\",\"relayout\",\"restyle\",\"viewport_update_policy\",\"viewport_update_throttle\",\"_render_count\",\"frames\",\"viewport\",\"properties\",\"on_change\",\"render_count\",\"setTimeout\",\"window\",\"Plotly\",\"container\",\"traces\",\"_updateSetViewportFunction\",\"plot\",\"_updateViewportFromProperty\",\"stylesheets\",\"default\",\"remove\",\"purge\",\"render\",\"div\",\"set_size\",\"watch_stylesheets\",\"then\",\"shadow_el\",\"appendChild\",\"style_redraw\",\"width\",\"Math\",\"min\",\"el\",\"clientWidth\",\"max_width\",\"Infinity\",\"height\",\"clientHeight\",\"max_height\",\"after_layout\",\"_trace_data\",\"push\",\"_get_trace\",\"_layout_data\",\"newLayout\",\"deepCopy\",\"Object\",\"keys\",\"reduce\",\"value\",\"key\",\"slice\",\"_install_callbacks\",\"on\",\"_update_from_property\",\"relayout_data\",\"_updateViewportProperty\",\"restyle_data\",\"trigger_event\",\"fullAnnotation\",\"new_plot\",\"obj\",\"config\",\"newPlot\",\"react\",\"addFrames\",\"display\",\"getComputedStyle\",\"_isHidden\",\"Plots\",\"resize\",\"index\",\"update\",\"trace\",\"clone\",\"cds\",\"column\",\"columns\",\"array\",\"get_array\",\"shape\",\"reshape\",\"prop_path\",\"split\",\"prop\",\"prop_parent\",\"k\",\"fullLayout\",\"_fullLayout\",\"is_equal\",\"get\",\"clonedViewport\",\"maybe_axis\",\"_setViewport\",\"PlotlyPlot\",\"HTMLBox\",\"attrs\",\"__module__\",\"default_view\",\"define\",\"List\",\"Any\",\"Nullable\",\"Float\",\"Ref\",\"Str\",\"ColumnDataSource\"],\"sources\":[\"0\"],\"mappings\":\"AAAuB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACpE,IAAIC,EAAIC,EACRH,IACA,MAAMI,EAAUP,EAAQ,SAClBQ,EAAiBR,EAAQ,8BACzBS,EAAQT,EAAQ,qBAChBU,EAAUV,EAAQ,4BAClBW,EAAWX,EAAQ,6BACnBY,EAAOZ,EAAQ,yBACfa,EAAuBb,EAAQ,8CAC/Bc,EAAad,EAAQ,cACrBe,EAAWf,EAAQ,cACnBgB,EAAShB,EAAQ,cACjBiB,EAAeV,EAAQW,gBAAgBlB,EAAQ,eACrD,MAAMmB,UAAoBX,EAAeY,WACrC,WAAAC,CAAYC,GACRC,QACAC,KAAKF,KAAOA,CAChB,CACA,gBAAIG,GACA,MAAO,CAAEC,MAAOF,KAAKG,OAAQL,KAAME,KAAKF,KAC5C,EAEJpB,EAAQiB,YAAcA,EACtBd,EAAKc,EACLA,EAAYS,SAAW,cAEnBvB,EAAGwB,UAAUC,WAAa,eAE9B,MAAMC,EAAkB,CAACC,EAAIC,EAAWC,KAEpC,MAAMC,EAAoBC,MAAMC,QAAQJ,GAAa,GAAK,CAAC,EAC3D,GAAc,UAAVC,GAA+B,UAAVA,GAA+B,aAAVA,EAAsB,CAChE,MAAMI,EAAS,GACf,GAAIL,QACA,OAAO,KAEX,MAAMM,EAAYN,EAAUC,MAa5B,IAAIM,OAZcC,IAAdF,IACAJ,EAAkBO,aAAe,CAE7BC,IAAKJ,EAAUK,OACfC,KAAMN,EAAUO,QAChBC,KAAMR,EAAUS,QAChBC,MAAOV,EAAUW,SAEjBC,OAAQZ,EAAUY,OAClBC,QAASb,EAAUa,UAMvBZ,EAFAP,EAAU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lK,SAAW,aACtBkK,EAAWG,WAAa,sBAEpB3L,EAAGuB,UAAUqK,aAAerH,EAC5BvE,EAAG6L,QAAO,EAAGC,OAAMC,MAAKC,WAAUC,QAAOC,MAAKC,UAAU,CACpDnL,KAAM,CAAC8K,EAAKC,GAAM,IAClBvG,OAAQ,CAACuG,EAAK,CAAC,GACfvC,OAAQ,CAACuC,EAAK,CAAC,GACfjG,OAAQ,CAACkG,EAASF,EAAKC,IAAO,MAC9BxG,aAAc,CAACuG,EAAKI,EAAI3L,EAAqB6L,mBAAoB,IACjE3G,SAAU,CAACuG,EAASD,GAAM,CAAC,GAC3BrG,QAAS,CAACsG,EAASD,GAAM,CAAC,GAC1B9C,cAAe,CAAC8C,EAAK,CAAC,GACtB5C,aAAc,CAAC2C,EAAKC,GAAM,IAC1BhG,SAAU,CAACgG,EAAK,CAAC,GACjBpG,uBAAwB,CAACwG,EAAK,WAC9BvG,yBAA0B,CAACqG,EAAO,KAClCpG,cAAe,CAACoG,EAAO,MAGnC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/styles/models/plotly.css.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"styles/models/plotly.css.js","canonical":"styles/models/plotly.css","resolution":"ESM","id":"3d56c75186","hash":"3d56c751864f61f00e4e24121b8c02e36fb3439fe2b32bb1213045f13dd20e5b","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = `.js-plotly-plot .plotly,.js-plotly-plot .plotly div{direction:ltr;font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;}.js-plotly-plot .plotly input,.js-plotly-plot .plotly button{font-family:'Open Sans', verdana, arial, sans-serif;}.js-plotly-plot .plotly input:focus,.js-plotly-plot .plotly button:focus{outline:none;}.js-plotly-plot .plotly a{text-decoration:none;}.js-plotly-plot .plotly a:hover{text-decoration:none;}.js-plotly-plot .plotly .crisp{shape-rendering:crispEdges;}.js-plotly-plot .plotly .user-select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;}.js-plotly-plot .plotly svg{overflow:hidden;}.js-plotly-plot .plotly svg a{fill:#447adb;}.js-plotly-plot .plotly svg a:hover{fill:#3c6dc5;}.js-plotly-plot .plotly .main-svg{position:absolute;top:0;left:0;pointer-events:none;}.js-plotly-plot .plotly .main-svg .draglayer{pointer-events:all;}.js-plotly-plot .plotly .cursor-default{cursor:default;}.js-plotly-plot .plotly .cursor-pointer{cursor:pointer;}.js-plotly-plot .plotly .cursor-crosshair{cursor:crosshair;}.js-plotly-plot .plotly .cursor-move{cursor:move;}.js-plotly-plot .plotly .cursor-col-resize{cursor:col-resize;}.js-plotly-plot .plotly .cursor-row-resize{cursor:row-resize;}.js-plotly-plot .plotly .cursor-ns-resize{cursor:ns-resize;}.js-plotly-plot .plotly .cursor-ew-resize{cursor:ew-resize;}.js-plotly-plot .plotly .cursor-sw-resize{cursor:sw-resize;}.js-plotly-plot .plotly .cursor-s-resize{cursor:s-resize;}.js-plotly-plot .plotly .cursor-se-resize{cursor:se-resize;}.js-plotly-plot .plotly .cursor-w-resize{cursor:w-resize;}.js-plotly-plot .plotly .cursor-e-resize{cursor:e-resize;}.js-plotly-plot .plotly .cursor-nw-resize{cursor:nw-resize;}.js-plotly-plot .plotly .cursor-n-resize{cursor:n-resize;}.js-plotly-plot .plotly .cursor-ne-resize{cursor:ne-resize;}.js-plotly-plot .plotly .cursor-grab{cursor:-webkit-grab;cursor:grab;}.js-plotly-plot .plotly .modebar{position:absolute;top:2px;right:2px;}.js-plotly-plot .plotly .ease-bg{-webkit-transition:background-color 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;}.js-plotly-plot .plotly .modebar--hover > :not(.watermark){opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;}.js-plotly-plot .plotly:hover .modebar--hover .modebar-group{opacity:1;}.js-plotly-plot .plotly .modebar-group{float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;}.js-plotly-plot .plotly .modebar-btn{fill:var(--plotly-icon-color);background-color:unset;border:none;position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;}.js-plotly-plot .plotly .modebar-btn.active{fill:var(--plotly-active-icon-color);}.js-plotly-plot .plotly .modebar-btn svg{position:relative;top:2px;}.js-plotly-plot .plotly .modebar.vertical{display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;}.js-plotly-plot .plotly .modebar.vertical svg{top:-1px;}.js-plotly-plot .plotly .modebar.vertical .modebar-group{display:block;float:none;padding-left:0px;padding-bottom:8px;}.js-plotly-plot .plotly .modebar.vertical .modebar-group .modebar-btn{display:block;text-align:center;}.js-plotly-plot .plotly [data-title]{}.js-plotly-plot .plotly [data-title]:before,.js-plotly-plot .plotly [data-title]:after{position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;}.js-plotly-plot .plotly [data-title]:hover:before,.js-plotly-plot .plotly [data-title]:hover:after{display:block;opacity:1;}.js-plotly-plot .plotly [data-title]:before{content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;}.js-plotly-plot .plotly [data-title]:after{content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;}.js-plotly-plot .plotly .vertical [data-title]:before,.js-plotly-plot .plotly .vertical [data-title]:after{top:0%;right:200%;}.js-plotly-plot .plotly .vertical [data-title]:before{border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;}.plotly-notifier{font-family:'Open Sans', verdana, arial, sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;}.plotly-notifier p{margin:0;}.plotly-notifier .notifier-note{min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140, 151, 175, 0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;}.plotly-notifier .notifier-close{color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;}.plotly-notifier .notifier-close:hover{color:#444;text-decoration:none;cursor:pointer;}`;\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"default"}],"externals":[],"shims":[]},"code":{"source":"/* styles/models/plotly.css.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = `.js-plotly-plot .plotly,.js-plotly-plot .plotly div{direction:ltr;font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;}.js-plotly-plot .plotly input,.js-plotly-plot .plotly button{font-family:'Open Sans', verdana, arial, sans-serif;}.js-plotly-plot .plotly input:focus,.js-plotly-plot .plotly button:focus{outline:none;}.js-plotly-plot .plotly a{text-decoration:none;}.js-plotly-plot .plotly a:hover{text-decoration:none;}.js-plotly-plot .plotly .crisp{shape-rendering:crispEdges;}.js-plotly-plot .plotly .user-select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;}.js-plotly-plot .plotly svg{overflow:hidden;}.js-plotly-plot .plotly svg a{fill:#447adb;}.js-plotly-plot .plotly svg a:hover{fill:#3c6dc5;}.js-plotly-plot .plotly .main-svg{position:absolute;top:0;left:0;pointer-events:none;}.js-plotly-plot .plotly .main-svg .draglayer{pointer-events:all;}.js-plotly-plot .plotly .cursor-default{cursor:default;}.js-plotly-plot .plotly .cursor-pointer{cursor:pointer;}.js-plotly-plot .plotly .cursor-crosshair{cursor:crosshair;}.js-plotly-plot .plotly .cursor-move{cursor:move;}.js-plotly-plot .plotly .cursor-col-resize{cursor:col-resize;}.js-plotly-plot .plotly .cursor-row-resize{cursor:row-resize;}.js-plotly-plot .plotly .cursor-ns-resize{cursor:ns-resize;}.js-plotly-plot .plotly .cursor-ew-resize{cursor:ew-resize;}.js-plotly-plot .plotly .cursor-sw-resize{cursor:sw-resize;}.js-plotly-plot .plotly .cursor-s-resize{cursor:s-resize;}.js-plotly-plot .plotly .cursor-se-resize{cursor:se-resize;}.js-plotly-plot .plotly .cursor-w-resize{cursor:w-resize;}.js-plotly-plot .plotly .cursor-e-resize{cursor:e-resize;}.js-plotly-plot .plotly .cursor-nw-resize{cursor:nw-resize;}.js-plotly-plot .plotly .cursor-n-resize{cursor:n-resize;}.js-plotly-plot .plotly .cursor-ne-resize{cursor:ne-resize;}.js-plotly-plot .plotly .cursor-grab{cursor:-webkit-grab;cursor:grab;}.js-plotly-plot .plotly .modebar{position:absolute;top:2px;right:2px;}.js-plotly-plot .plotly .ease-bg{-webkit-transition:background-color 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;}.js-plotly-plot .plotly .modebar--hover > :not(.watermark){opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;}.js-plotly-plot .plotly:hover .modebar--hover .modebar-group{opacity:1;}.js-plotly-plot .plotly .modebar-group{float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;}.js-plotly-plot .plotly .modebar-btn{fill:var(--plotly-icon-color);background-color:unset;border:none;position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;}.js-plotly-plot .plotly .modebar-btn.active{fill:var(--plotly-active-icon-color);}.js-plotly-plot .plotly .modebar-btn svg{position:relative;top:2px;}.js-plotly-plot .plotly .modebar.vertical{display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;}.js-plotly-plot .plotly .modebar.vertical svg{top:-1px;}.js-plotly-plot .plotly .modebar.vertical .modebar-group{display:block;float:none;padding-left:0px;padding-bottom:8px;}.js-plotly-plot .plotly .modebar.vertical .modebar-group .modebar-btn{display:block;text-align:center;}.js-plotly-plot .plotly [data-title]{}.js-plotly-plot .plotly [data-title]:before,.js-plotly-plot .plotly [data-title]:after{position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;}.js-plotly-plot .plotly [data-title]:hover:before,.js-plotly-plot .plotly [data-title]:hover:after{display:block;opacity:1;}.js-plotly-plot .plotly [data-title]:before{content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;}.js-plotly-plot .plotly [data-title]:after{content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;}.js-plotly-plot .plotly .vertical [data-title]:before,.js-plotly-plot .plotly .vertical [data-title]:after{top:0%;right:200%;}.js-plotly-plot .plotly .vertical [data-title]:before{border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;}.plotly-notifier{font-family:'Open Sans', verdana, arial, sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;}.plotly-notifier p{margin:0;}.plotly-notifier .notifier-note{min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140, 151, 175, 0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;}.plotly-notifier .notifier-close{color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;}.plotly-notifier .notifier-close:hover{color:#444;text-decoration:none;cursor:pointer;}`;\n}\n","min_source":"function _(o,t,l,r,e){r(),l.default=\".js-plotly-plot .plotly,.js-plotly-plot .plotly div{direction:ltr;font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;}.js-plotly-plot .plotly input,.js-plotly-plot .plotly button{font-family:'Open Sans', verdana, arial, sans-serif;}.js-plotly-plot .plotly input:focus,.js-plotly-plot .plotly button:focus{outline:none;}.js-plotly-plot .plotly a{text-decoration:none;}.js-plotly-plot .plotly a:hover{text-decoration:none;}.js-plotly-plot .plotly .crisp{shape-rendering:crispEdges;}.js-plotly-plot .plotly .user-select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;}.js-plotly-plot .plotly svg{overflow:hidden;}.js-plotly-plot .plotly svg a{fill:#447adb;}.js-plotly-plot .plotly svg a:hover{fill:#3c6dc5;}.js-plotly-plot .plotly .main-svg{position:absolute;top:0;left:0;pointer-events:none;}.js-plotly-plot .plotly .main-svg .draglayer{pointer-events:all;}.js-plotly-plot .plotly .cursor-default{cursor:default;}.js-plotly-plot .plotly .cursor-pointer{cursor:pointer;}.js-plotly-plot .plotly .cursor-crosshair{cursor:crosshair;}.js-plotly-plot .plotly .cursor-move{cursor:move;}.js-plotly-plot .plotly .cursor-col-resize{cursor:col-resize;}.js-plotly-plot .plotly .cursor-row-resize{cursor:row-resize;}.js-plotly-plot .plotly .cursor-ns-resize{cursor:ns-resize;}.js-plotly-plot .plotly .cursor-ew-resize{cursor:ew-resize;}.js-plotly-plot .plotly .cursor-sw-resize{cursor:sw-resize;}.js-plotly-plot .plotly .cursor-s-resize{cursor:s-resize;}.js-plotly-plot .plotly .cursor-se-resize{cursor:se-resize;}.js-plotly-plot .plotly .cursor-w-resize{cursor:w-resize;}.js-plotly-plot .plotly .cursor-e-resize{cursor:e-resize;}.js-plotly-plot .plotly .cursor-nw-resize{cursor:nw-resize;}.js-plotly-plot .plotly .cursor-n-resize{cursor:n-resize;}.js-plotly-plot .plotly .cursor-ne-resize{cursor:ne-resize;}.js-plotly-plot .plotly .cursor-grab{cursor:-webkit-grab;cursor:grab;}.js-plotly-plot .plotly .modebar{position:absolute;top:2px;right:2px;}.js-plotly-plot .plotly .ease-bg{-webkit-transition:background-color 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;}.js-plotly-plot .plotly .modebar--hover > :not(.watermark){opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;}.js-plotly-plot .plotly:hover .modebar--hover .modebar-group{opacity:1;}.js-plotly-plot .plotly .modebar-group{float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;}.js-plotly-plot .plotly .modebar-btn{fill:var(--plotly-icon-color);background-color:unset;border:none;position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;}.js-plotly-plot .plotly .modebar-btn.active{fill:var(--plotly-active-icon-color);}.js-plotly-plot .plotly .modebar-btn svg{position:relative;top:2px;}.js-plotly-plot .plotly .modebar.vertical{display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;}.js-plotly-plot .plotly .modebar.vertical svg{top:-1px;}.js-plotly-plot .plotly .modebar.vertical .modebar-group{display:block;float:none;padding-left:0px;padding-bottom:8px;}.js-plotly-plot .plotly .modebar.vertical .modebar-group .modebar-btn{display:block;text-align:center;}.js-plotly-plot .plotly [data-title]{}.js-plotly-plot .plotly [data-title]:before,.js-plotly-plot .plotly [data-title]:after{position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;}.js-plotly-plot .plotly [data-title]:hover:before,.js-plotly-plot .plotly [data-title]:hover:after{display:block;opacity:1;}.js-plotly-plot .plotly [data-title]:before{content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;}.js-plotly-plot .plotly [data-title]:after{content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;}.js-plotly-plot .plotly .vertical [data-title]:before,.js-plotly-plot .plotly .vertical [data-title]:after{top:0%;right:200%;}.js-plotly-plot .plotly .vertical [data-title]:before{border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;}.plotly-notifier{font-family:'Open Sans', verdana, arial, sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;}.plotly-notifier p{margin:0;}.plotly-notifier .notifier-note{min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140, 151, 175, 0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;}.plotly-notifier .notifier-close{color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;}.plotly-notifier .notifier-close:hover{color:#444;text-decoration:none;cursor:pointer;}\"}\n//# sourceMappingURL=plotly.css.min.js.map","min_map":"{\"version\":3,\"file\":\"plotly.css.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\"],\"sources\":[\"0\"],\"mappings\":\"AAAkC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC/ED,IACAD,EAAQG,QAAU,21KACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/progress.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/progress.js","canonical":"models/progress","resolution":"ESM","id":"b1f4d68596","hash":"b1f4d68596ccc3b820326a5d02afc90b49b6fa0723f530bcb83e951c27355c00","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Progress = exports.ProgressView = void 0;\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst layout_1 = require(\"./layout\");\nclass ProgressView extends layout_1.HTMLBoxView {\n    connect_signals() {\n        super.connect_signals();\n        const { width, height, height_policy, width_policy, sizing_mode, active, bar_color, css_classes, value, max, } = this.model.properties;\n        this.on_change([width, height, height_policy, width_policy, sizing_mode], () => this.rerender_());\n        this.on_change([active, bar_color, css_classes], () => this.setCSS());\n        this.on_change(value, () => this.setValue());\n        this.on_change(max, () => this.setMax());\n    }\n    render() {\n        super.render();\n        const style = { ...this.model.styles, display: \"inline-block\" };\n        this.progressEl = document.createElement(\"progress\");\n        this.setValue();\n        this.setMax();\n        // Set styling\n        this.setCSS();\n        for (const prop in style) {\n            this.progressEl.style.setProperty(prop, style[prop]);\n        }\n        this.shadow_el.appendChild(this.progressEl);\n    }\n    stylesheets() {\n        const styles = super.stylesheets();\n        for (const css of this.model.css) {\n            styles.push(new dom_1.ImportedStyleSheet(css));\n        }\n        return styles;\n    }\n    setCSS() {\n        let css = `${this.model.css_classes.join(\" \")} ${this.model.bar_color}`;\n        if (this.model.active) {\n            css = `${css} active`;\n        }\n        this.progressEl.className = css;\n    }\n    setValue() {\n        if (this.model.value == null) {\n            this.progressEl.value = 0;\n        }\n        else if (this.model.value >= 0) {\n            this.progressEl.value = this.model.value;\n        }\n        else if (this.model.value < 0) {\n            this.progressEl.removeAttribute(\"value\");\n        }\n    }\n    setMax() {\n        if (this.model.max != null) {\n            this.progressEl.max = this.model.max;\n        }\n    }\n}\nexports.ProgressView = ProgressView;\nProgressView.__name__ = \"ProgressView\";\nclass Progress extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.Progress = Progress;\n_a = Progress;\nProgress.__name__ = \"Progress\";\nProgress.__module__ = \"panel.models.widgets\";\n(() => {\n    _a.prototype.default_view = ProgressView;\n    _a.define(({ Any, List, Bool, Float, Str }) => ({\n        active: [Bool, true],\n        bar_color: [Str, \"primary\"],\n        css: [List(Str), []],\n        max: [Float, 100],\n        value: [Any, null],\n    }));\n})();\n//# sourceMappingURL=progress.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"]],"dependency_map":[],"exported":[{"type":"named","name":"ProgressView"},{"type":"named","name":"Progress"}],"externals":[],"shims":[]},"code":{"source":"/* models/progress.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    class ProgressView extends layout_1.HTMLBoxView {\n        connect_signals() {\n            super.connect_signals();\n            const { width, height, height_policy, width_policy, sizing_mode, active, bar_color, css_classes, value, max, } = this.model.properties;\n            this.on_change([width, height, height_policy, width_policy, sizing_mode], () => this.rerender_());\n            this.on_change([active, bar_color, css_classes], () => this.setCSS());\n            this.on_change(value, () => this.setValue());\n            this.on_change(max, () => this.setMax());\n        }\n        render() {\n            super.render();\n            const style = { ...this.model.styles, display: \"inline-block\" };\n            this.progressEl = document.createElement(\"progress\");\n            this.setValue();\n            this.setMax();\n            // Set styling\n            this.setCSS();\n            for (const prop in style) {\n                this.progressEl.style.setProperty(prop, style[prop]);\n            }\n            this.shadow_el.appendChild(this.progressEl);\n        }\n        stylesheets() {\n            const styles = super.stylesheets();\n            for (const css of this.model.css) {\n                styles.push(new dom_1.ImportedStyleSheet(css));\n            }\n            return styles;\n        }\n        setCSS() {\n            let css = `${this.model.css_classes.join(\" \")} ${this.model.bar_color}`;\n            if (this.model.active) {\n                css = `${css} active`;\n            }\n            this.progressEl.className = css;\n        }\n        setValue() {\n            if (this.model.value == null) {\n                this.progressEl.value = 0;\n            }\n            else if (this.model.value >= 0) {\n                this.progressEl.value = this.model.value;\n            }\n            else if (this.model.value < 0) {\n                this.progressEl.removeAttribute(\"value\");\n            }\n        }\n        setMax() {\n            if (this.model.max != null) {\n                this.progressEl.max = this.model.max;\n            }\n        }\n    }\n    exports.ProgressView = ProgressView;\n    ProgressView.__name__ = \"ProgressView\";\n    class Progress extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.Progress = Progress;\n    _a = Progress;\n    Progress.__name__ = \"Progress\";\n    Progress.__module__ = \"panel.models.widgets\";\n    (() => {\n        _a.prototype.default_view = ProgressView;\n        _a.define(({ Any, List, Bool, Float, Str }) => ({\n            active: [Bool, true],\n            bar_color: [Str, \"primary\"],\n            css: [List(Str), []],\n            max: [Float, 100],\n            value: [Any, null],\n        }));\n    })();\n}\n","min_source":"function _(e,s,t,o,l){var i;o();const r=e(\"@bokehjs/core/dom\"),a=e(\"dab42e6dad\");class h extends a.HTMLBoxView{connect_signals(){super.connect_signals();const{width:e,height:s,height_policy:t,width_policy:o,sizing_mode:l,active:i,bar_color:r,css_classes:a,value:h,max:n}=this.model.properties;this.on_change([e,s,t,o,l],(()=>this.rerender_())),this.on_change([i,r,a],(()=>this.setCSS())),this.on_change(h,(()=>this.setValue())),this.on_change(n,(()=>this.setMax()))}render(){super.render();const e={...this.model.styles,display:\"inline-block\"};this.progressEl=document.createElement(\"progress\"),this.setValue(),this.setMax(),this.setCSS();for(const s in e)this.progressEl.style.setProperty(s,e[s]);this.shadow_el.appendChild(this.progressEl)}stylesheets(){const e=super.stylesheets();for(const s of this.model.css)e.push(new r.ImportedStyleSheet(s));return e}setCSS(){let e=`${this.model.css_classes.join(\" \")} ${this.model.bar_color}`;this.model.active&&(e=`${e} active`),this.progressEl.className=e}setValue(){null==this.model.value?this.progressEl.value=0:this.model.value>=0?this.progressEl.value=this.model.value:this.model.value<0&&this.progressEl.removeAttribute(\"value\")}setMax(){null!=this.model.max&&(this.progressEl.max=this.model.max)}}t.ProgressView=h,h.__name__=\"ProgressView\";class n extends a.HTMLBox{constructor(e){super(e)}}t.Progress=n,i=n,n.__name__=\"Progress\",n.__module__=\"panel.models.widgets\",i.prototype.default_view=h,i.define((({Any:e,List:s,Bool:t,Float:o,Str:l})=>({active:[t,!0],bar_color:[l,\"primary\"],css:[s(l),[]],max:[o,100],value:[e,null]})))}\n//# sourceMappingURL=progress.min.js.map","min_map":"{\"version\":3,\"file\":\"progress.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"dom_1\",\"layout_1\",\"ProgressView\",\"HTMLBoxView\",\"connect_signals\",\"super\",\"width\",\"height\",\"height_policy\",\"width_policy\",\"sizing_mode\",\"active\",\"bar_color\",\"css_classes\",\"value\",\"max\",\"this\",\"model\",\"properties\",\"on_change\",\"rerender_\",\"setCSS\",\"setValue\",\"setMax\",\"render\",\"style\",\"styles\",\"display\",\"progressEl\",\"document\",\"createElement\",\"prop\",\"setProperty\",\"shadow_el\",\"appendChild\",\"stylesheets\",\"css\",\"push\",\"ImportedStyleSheet\",\"join\",\"className\",\"removeAttribute\",\"__name__\",\"Progress\",\"HTMLBox\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Any\",\"List\",\"Bool\",\"Float\",\"Str\"],\"sources\":[\"0\"],\"mappings\":\"AAAyB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACtE,IAAIC,EACJF,IACA,MAAMG,EAAQN,EAAQ,qBAChBO,EAAWP,EAAQ,cACzB,MAAMQ,UAAqBD,EAASE,YAChC,eAAAC,GACIC,MAAMD,kBACN,MAAME,MAAEA,EAAKC,OAAEA,EAAMC,c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AAKC,MAAMF,IAEzC,EAEJnB,EAAQM,aAAeA,EACvBA,EAAawC,SAAW,eACxB,MAAMC,UAAiB1C,EAAS2C,QAC5B,WAAAC,CAAYC,GACRzC,MAAMyC,EACV,EAEJlD,EAAQ+C,SAAWA,EACnB5C,EAAK4C,EACLA,EAASD,SAAW,WACpBC,EAASI,WAAa,uBAElBhD,EAAGiD,UAAUC,aAAe/C,EAC5BH,EAAGmD,QAAO,EAAGC,MAAKC,OAAMC,OAAMC,QAAOC,UAAU,CAC3C5C,OAAQ,CAAC0C,GAAM,GACfzC,UAAW,CAAC2C,EAAK,WACjBnB,IAAK,CAACgB,EAAKG,GAAM,IACjBxC,IAAK,CAACuC,EAAO,KACbxC,MAAO,CAACqC,EAAK,SAGzB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/quill.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/quill.js","canonical":"models/quill","resolution":"ESM","id":"f6d86c7342","hash":"f6d86c73427c9b31946190965ce88b9cefc02fb614dcc4f9c8554b57711975f4","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.QuillInput = exports.QuillInputView = void 0;\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst layout_1 = require(\"./layout\");\nclass QuillInputView extends layout_1.HTMLBoxView {\n    connect_signals() {\n        super.connect_signals();\n        const { disabled, visible, text, mode, toolbar, placeholder } = this.model.properties;\n        this.on_change(disabled, () => {\n            this.quill.enable(!this.model.disabled);\n        });\n        this.on_change(visible, () => {\n            if (this.model.visible) {\n                this.container.style.visibility = \"visible\";\n            }\n        });\n        this.on_change(text, () => {\n            if (this._editing) {\n                return;\n            }\n            this._editing = true;\n            this.quill.enable(false);\n            this.quill.setContents([]);\n            this.quill.clipboard.dangerouslyPasteHTML(this.model.text);\n            this.quill.enable(!this.model.disabled);\n            this._editing = false;\n        });\n        this.on_change(placeholder, () => {\n            this.quill.root.setAttribute(\"data-placeholder\", this.model.placeholder);\n        });\n        this.on_change([mode, toolbar], () => {\n            this.render();\n            this._layout_toolbar();\n        });\n    }\n    _layout_toolbar() {\n        if (this._toolbar == null) {\n            this.el.style.removeProperty(\"padding-top\");\n        }\n        else {\n            const height = this._toolbar.getBoundingClientRect().height + 1;\n            this.el.style.paddingTop = `${height}px`;\n            this._toolbar.style.marginTop = `${-height}px`;\n        }\n    }\n    render() {\n        super.render();\n        this.container = (0, dom_1.div)({ style: { visibility: \"hidden\" } });\n        this.shadow_el.appendChild(this.container);\n        const theme = (this.model.mode === \"bubble\") ? \"bubble\" : \"snow\";\n        this.watch_stylesheets();\n        this.quill = new window.Quill(this.container, {\n            modules: {\n                toolbar: this.model.toolbar,\n            },\n            readOnly: true,\n            placeholder: this.model.placeholder,\n            theme,\n        });\n        // Apply ShadowDOM patch found at:\n        // https://github.com/quilljs/quill/issues/2961#issuecomment-1775999845\n        const hasShadowRootSelection = !!(document.createElement(\"div\").attachShadow({ mode: \"open\" }).getSelection);\n        // Each browser engine has a different implementation for retrieving the Range\n        const getNativeRange = (rootNode) => {\n            try {\n                if (hasShadowRootSelection) {\n                    // In Chromium, the shadow root has a getSelection function which returns the range\n                    return rootNode.getSelection().getRangeAt(0);\n                }\n                else {\n                    const selection = window.getSelection();\n                    if (selection.getComposedRanges) {\n                        // Webkit range retrieval is done with getComposedRanges (see: https://bugs.webkit.org/show_bug.cgi?id=163921)\n                        return selection.getComposedRanges(rootNode)[0];\n                    }\n                    else {\n                        // Gecko implements the range API properly in Native Shadow: https://developer.mozilla.org/en-US/docs/Web/API/Selection/getRangeAt\n                        return selection.getRangeAt(0);\n                    }\n                }\n            }\n            catch {\n                return null;\n            }\n        };\n        /**\n         * Original implementation uses document.active element which does not work in Native Shadow.\n         * Replace document.activeElement with shadowRoot.activeElement\n         **/\n        this.quill.selection.hasFocus = () => {\n            const rootNode = this.quill.root.getRootNode();\n            return rootNode.activeElement === this.quill.root;\n        };\n        /**\n         * Original implementation uses document.getSelection which does not work in Native Shadow.\n         * Replace document.getSelection with shadow dom equivalent (different for each browser)\n         **/\n        this.quill.selection.getNativeRange = () => {\n            const rootNode = this.quill.root.getRootNode();\n            const range = getNativeRange(rootNode);\n            return !!range ? this.quill.selection.normalizeNative(range) : null;\n        };\n        /**\n         * Original implementation relies on Selection.addRange to programmatically set the range, which does not work\n         * in Webkit with Native Shadow. Selection.addRange works fine in Chromium and Gecko.\n         **/\n        this.quill.selection.setNativeRange = (startNode, startOffset, endNode = undefined, endOffset = undefined, force = false) => {\n            endNode = endNode === undefined ? startNode : endNode;\n            endOffset = endOffset === undefined ? startOffset : endOffset;\n            force = force || false;\n            if (startNode != null && (this.quill.selection.root.parentNode == null || startNode.parentNode == null || endNode.parentNode == null)) {\n                return;\n            }\n            const selection = document.getSelection();\n            if (selection == null) {\n                return;\n            }\n            if (startNode != null) {\n                if (!this.quill.selection.hasFocus()) {\n                    this.quill.selection.root.focus();\n                }\n                const native = (this.quill.selection.getNativeRange() || {}).native;\n                if (native == null || force || startNode !== native.startContainer || startOffset !== native.startOffset || endNode !== native.endContainer || endOffset !== native.endOffset) {\n                    if (startNode.tagName == \"BR\") {\n                        startOffset = Array.prototype.indexOf.call(startNode.parentNode?.childNodes ?? [], startNode);\n                        startNode = startNode.parentNode;\n                    }\n                    if (endNode.tagName == \"BR\") {\n                        endOffset = Array.prototype.indexOf(endNode.parentNode?.childNodes ?? [], endNode);\n                        endNode = endNode.parentNode;\n                    }\n                    selection.setBaseAndExtent(startNode, startOffset, endNode, endOffset);\n                }\n            }\n            else {\n                selection.removeAllRanges();\n                this.quill.selection.root.blur();\n                document.body.focus();\n            }\n        };\n        this._editor = this.shadow_el.querySelector(\".ql-editor\");\n        this._toolbar = this.shadow_el.querySelector(\".ql-toolbar\");\n        const delta = this.quill.clipboard.convert({ html: this.model.text });\n        this.quill.setContents(delta);\n        this.quill.on(\"text-change\", () => {\n            if (this._editing) {\n                return;\n            }\n            this._editing = true;\n            this.model.text = this.quill.getSemanticHTML();\n            this._editing = false;\n        });\n        if (!this.model.disabled) {\n            this.quill.enable(!this.model.disabled);\n        }\n        document.addEventListener(\"selectionchange\", (..._args) => {\n            // Update selection and some other properties\n            this.quill.selection.update();\n        });\n    }\n    style_redraw() {\n        if (this.model.visible) {\n            this.container.style.visibility = \"visible\";\n        }\n        const delta = this.quill.clipboard.convert({ html: this.model.text });\n        this.quill.setContents(delta);\n        this.invalidate_layout();\n    }\n    after_layout() {\n        super.after_layout();\n        this._layout_toolbar();\n    }\n}\nexports.QuillInputView = QuillInputView;\nQuillInputView.__name__ = \"QuillInputView\";\nclass QuillInput extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.QuillInput = QuillInput;\n_a = QuillInput;\nQuillInput.__name__ = \"QuillInput\";\nQuillInput.__module__ = \"panel.models.quill\";\n(() => {\n    _a.prototype.default_view = QuillInputView;\n    _a.define(({ Any, Str }) => ({\n        mode: [Str, \"toolbar\"],\n        placeholder: [Str, \"\"],\n        text: [Str, \"\"],\n        toolbar: [Any, null],\n    }));\n    _a.override({\n        height: 300,\n    });\n})();\n//# sourceMappingURL=quill.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"]],"dependency_map":[],"exported":[{"type":"named","name":"QuillInputView"},{"type":"named","name":"QuillInput"}],"externals":[],"shims":[]},"code":{"source":"/* models/quill.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    class QuillInputView extends layout_1.HTMLBoxView {\n        connect_signals() {\n            super.connect_signals();\n            const { disabled, visible, text, mode, toolbar, placeholder } = this.model.properties;\n            this.on_change(disabled, () => {\n                this.quill.enable(!this.model.disabled);\n            });\n            this.on_change(visible, () => {\n                if (this.model.visible) {\n                    this.container.style.visibility = \"visible\";\n                }\n            });\n            this.on_change(text, () => {\n                if (this._editing) {\n                    return;\n                }\n                this._editing = true;\n                this.quill.enable(false);\n                this.quill.setContents([]);\n                this.quill.clipboard.dangerouslyPasteHTML(this.model.text);\n                this.quill.enable(!this.model.disabled);\n                this._editing = false;\n            });\n            this.on_change(placeholder, () => {\n                this.quill.root.setAttribute(\"data-placeholder\", this.model.placeholder);\n            });\n            this.on_change([mode, toolbar], () => {\n                this.render();\n                this._layout_toolbar();\n            });\n        }\n        _layout_toolbar() {\n            if (this._toolbar == null) {\n                this.el.style.removeProperty(\"padding-top\");\n            }\n            else {\n                const height = this._toolbar.getBoundingClientRect().height + 1;\n                this.el.style.paddingTop = `${height}px`;\n                this._toolbar.style.marginTop = `${-height}px`;\n            }\n        }\n        render() {\n            super.render();\n            this.container = (0, dom_1.div)({ style: { visibility: \"hidden\" } });\n            this.shadow_el.appendChild(this.container);\n            const theme = (this.model.mode === \"bubble\") ? \"bubble\" : \"snow\";\n            this.watch_stylesheets();\n            this.quill = new window.Quill(this.container, {\n                modules: {\n                    toolbar: this.model.toolbar,\n                },\n                readOnly: true,\n                placeholder: this.model.placeholder,\n                theme,\n            });\n            // Apply ShadowDOM patch found at:\n            // https://github.com/quilljs/quill/issues/2961#issuecomment-1775999845\n            const hasShadowRootSelection = !!(document.createElement(\"div\").attachShadow({ mode: \"open\" }).getSelection);\n            // Each browser engine has a different implementation for retrieving the Range\n            const getNativeRange = (rootNode) => {\n                try {\n                    if (hasShadowRootSelection) {\n                        // In Chromium, the shadow root has a getSelection function which returns the range\n                        return rootNode.getSelection().getRangeAt(0);\n                    }\n                    else {\n                        const selection = window.getSelection();\n                        if (selection.getComposedRanges) {\n                            // Webkit range retrieval is done with getComposedRanges (see: https://bugs.webkit.org/show_bug.cgi?id=163921)\n                            return selection.getComposedRanges(rootNode)[0];\n                        }\n                        else {\n                            // Gecko implements the range API properly in Native Shadow: https://developer.mozilla.org/en-US/docs/Web/API/Selection/getRangeAt\n                            return selection.getRangeAt(0);\n                        }\n                    }\n                }\n                catch {\n                    return null;\n                }\n            };\n            /**\n             * Original implementation uses document.active element which does not work in Native Shadow.\n             * Replace document.activeElement with shadowRoot.activeElement\n             **/\n            this.quill.selection.hasFocus = () => {\n                const rootNode = this.quill.root.getRootNode();\n                return rootNode.activeElement === this.quill.root;\n            };\n            /**\n             * Original implementation uses document.getSelection which does not work in Native Shadow.\n             * Replace document.getSelection with shadow dom equivalent (different for each browser)\n             **/\n            this.quill.selection.getNativeRange = () => {\n                const rootNode = this.quill.root.getRootNode();\n                const range = getNativeRange(rootNode);\n                return !!range ? this.quill.selection.normalizeNative(range) : null;\n            };\n            /**\n             * Original implementation relies on Selection.addRange to programmatically set the range, which does not work\n             * in Webkit with Native Shadow. Selection.addRange works fine in Chromium and Gecko.\n             **/\n            this.quill.selection.setNativeRange = (startNode, startOffset, endNode = undefined, endOffset = undefined, force = false) => {\n                endNode = endNode === undefined ? startNode : endNode;\n                endOffset = endOffset === undefined ? startOffset : endOffset;\n                force = force || false;\n                if (startNode != null && (this.quill.selection.root.parentNode == null || startNode.parentNode == null || endNode.parentNode == null)) {\n                    return;\n                }\n                const selection = document.getSelection();\n                if (selection == null) {\n                    return;\n                }\n                if (startNode != null) {\n                    if (!this.quill.selection.hasFocus()) {\n                        this.quill.selection.root.focus();\n                    }\n                    const native = (this.quill.selection.getNativeRange() || {}).native;\n                    if (native == null || force || startNode !== native.startContainer || startOffset !== native.startOffset || endNode !== native.endContainer || endOffset !== native.endOffset) {\n                        if (startNode.tagName == \"BR\") {\n                            startOffset = Array.prototype.indexOf.call(startNode.parentNode?.childNodes ?? [], startNode);\n                            startNode = startNode.parentNode;\n                        }\n                        if (endNode.tagName == \"BR\") {\n                            endOffset = Array.prototype.indexOf(endNode.parentNode?.childNodes ?? [], endNode);\n                            endNode = endNode.parentNode;\n                        }\n                        selection.setBaseAndExtent(startNode, startOffset, endNode, endOffset);\n                    }\n                }\n                else {\n                    selection.removeAllRanges();\n                    this.quill.selection.root.blur();\n                    document.body.focus();\n                }\n            };\n            this._editor = this.shadow_el.querySelector(\".ql-editor\");\n            this._toolbar = this.shadow_el.querySelector(\".ql-toolbar\");\n            const delta = this.quill.clipboard.convert({ html: this.model.text });\n            this.quill.setContents(delta);\n            this.quill.on(\"text-change\", () => {\n                if (this._editing) {\n                    return;\n                }\n                this._editing = true;\n                this.model.text = this.quill.getSemanticHTML();\n                this._editing = false;\n            });\n            if (!this.model.disabled) {\n                this.quill.enable(!this.model.disabled);\n            }\n            document.addEventListener(\"selectionchange\", (..._args) => {\n                // Update selection and some other properties\n                this.quill.selection.update();\n            });\n        }\n        style_redraw() {\n            if (this.model.visible) {\n                this.container.style.visibility = \"visible\";\n            }\n            const delta = this.quill.clipboard.convert({ html: this.model.text });\n            this.quill.setContents(delta);\n            this.invalidate_layout();\n        }\n        after_layout() {\n            super.after_layout();\n            this._layout_toolbar();\n        }\n    }\n    exports.QuillInputView = QuillInputView;\n    QuillInputView.__name__ = \"QuillInputView\";\n    class QuillInput extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.QuillInput = QuillInput;\n    _a = QuillInput;\n    QuillInput.__name__ = \"QuillInput\";\n    QuillInput.__module__ = \"panel.models.quill\";\n    (() => {\n        _a.prototype.default_view = QuillInputView;\n        _a.define(({ Any, Str }) => ({\n            mode: [Str, \"toolbar\"],\n            placeholder: [Str, \"\"],\n            text: [Str, \"\"],\n            toolbar: [Any, null],\n        }));\n        _a.override({\n            height: 300,\n        });\n    })();\n}\n","min_source":"function _(e,t,i,l,o){var s;l();const n=e(\"@bokehjs/core/dom\"),a=e(\"dab42e6dad\");class d extends a.HTMLBoxView{connect_signals(){super.connect_signals();const{disabled:e,visible:t,text:i,mode:l,toolbar:o,placeholder:s}=this.model.properties;this.on_change(e,(()=>{this.quill.enable(!this.model.disabled)})),this.on_change(t,(()=>{this.model.visible&&(this.container.style.visibility=\"visible\")})),this.on_change(i,(()=>{this._editing||(this._editing=!0,this.quill.enable(!1),this.quill.setContents([]),this.quill.clipboard.dangerouslyPasteHTML(this.model.text),this.quill.enable(!this.model.disabled),this._editing=!1)})),this.on_change(s,(()=>{this.quill.root.setAttribute(\"data-placeholder\",this.model.placeholder)})),this.on_change([l,o],(()=>{this.render(),this._layout_toolbar()}))}_layout_toolbar(){if(null==this._toolbar)this.el.style.removeProperty(\"padding-top\");else{const e=this._toolbar.getBoundingClientRect().height+1;this.el.style.paddingTop=`${e}px`,this._toolbar.style.marginTop=-e+\"px\"}}render(){super.render(),this.container=(0,n.div)({style:{visibility:\"hidden\"}}),this.shadow_el.appendChild(this.container);const e=\"bubble\"===this.model.mode?\"bubble\":\"snow\";this.watch_stylesheets(),this.quill=new window.Quill(this.container,{modules:{toolbar:this.model.toolbar},readOnly:!0,placeholder:this.model.placeholder,theme:e});const t=!!document.createElement(\"div\").attachShadow({mode:\"open\"}).getSelection;this.quill.selection.hasFocus=()=>this.quill.root.getRootNode().activeElement===this.quill.root,this.quill.selection.getNativeRange=()=>{const e=(e=>{try{if(t)return e.getSelection().getRangeAt(0);{const t=window.getSelection();return t.getComposedRanges?t.getComposedRanges(e)[0]:t.getRangeAt(0)}}catch{return null}})(this.quill.root.getRootNode());return e?this.quill.selection.normalizeNative(e):null},this.quill.selection.setNativeRange=(e,t,i=void 0,l=void 0,o=!1)=>{if(i=void 0===i?e:i,l=void 0===l?t:l,o=o||!1,null!=e&&(null==this.quill.selection.root.parentNode||null==e.parentNode||null==i.parentNode))return;const s=document.getSelection();if(null!=s)if(null!=e){this.quill.selection.hasFocus()||this.quill.selection.root.focus();const n=(this.quill.selection.getNativeRange()||{}).native;(null==n||o||e!==n.startContainer||t!==n.startOffset||i!==n.endContainer||l!==n.endOffset)&&(\"BR\"==e.tagName&&(t=Array.prototype.indexOf.call(e.parentNode?.childNodes??[],e),e=e.parentNode),\"BR\"==i.tagName&&(l=Array.prototype.indexOf(i.parentNode?.childNodes??[],i),i=i.parentNode),s.setBaseAndExtent(e,t,i,l))}else s.removeAllRanges(),this.quill.selection.root.blur(),document.body.focus()},this._editor=this.shadow_el.querySelector(\".ql-editor\"),this._toolbar=this.shadow_el.querySelector(\".ql-toolbar\");const i=this.quill.clipboard.convert({html:this.model.text});this.quill.setContents(i),this.quill.on(\"text-change\",(()=>{this._editing||(this._editing=!0,this.model.text=this.quill.getSemanticHTML(),this._editing=!1)})),this.model.disabled||this.quill.enable(!this.model.disabled),document.addEventListener(\"selectionchange\",((...e)=>{this.quill.selection.update()}))}style_redraw(){this.model.visible&&(this.container.style.visibility=\"visible\");const e=this.quill.clipboard.convert({html:this.model.text});this.quill.setContents(e),this.invalidate_layout()}after_layout(){super.after_layout(),this._layout_toolbar()}}i.QuillInputView=d,d.__name__=\"QuillInputView\";class h extends a.HTMLBox{constructor(e){super(e)}}i.QuillInput=h,s=h,h.__name__=\"QuillInput\",h.__module__=\"panel.models.quill\",s.prototype.default_view=d,s.define((({Any:e,Str:t})=>({mode:[t,\"toolbar\"],placeholder:[t,\"\"],text:[t,\"\"],toolbar:[e,null]}))),s.override({height:300})}\n//# sourceMappingURL=quill.min.js.map","min_map":"{\"version\":3,\"file\":\"quill.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"dom_1\",\"layout_1\",\"QuillInputView\",\"HTMLBoxView\",\"connect_signals\",\"super\",\"disabled\",\"visible\",\"text\",\"mode\",\"toolbar\",\"placeholder\",\"this\",\"model\",\"properties\",\"on_change\",\"quill\",\"enable\",\"container\",\"style\",\"visibility\",\"_editing\",\"setContents\",\"clipboard\",\"dangerouslyPasteHTML\",\"root\",\"setAttribute\",\"render\",\"_layout_toolbar\",\"_toolbar\",\"el\",\"removeProperty\",\"height\",\"getBoundingClientRect\",\"paddingTop\",\"marginTop\",\"div\",\"shadow_el\",\"appendChild\",\"theme\",\"watch_stylesheets\",\"window\",\"Quill\",\"modules\",\"readOnly\",\"hasShadowRootSelection\",\"document\",\"createElement\",\"attachShadow\",\"selection\",\"hasFocus\",\"getRootNode\",\"activeElement\",\"getNativeRange\",\"range\",\"rootNode\",\"getSelection\",\"getRangeAt\",\"getComposedRanges\",\"normalizeNative\",\"setNativeRange\",\"startNode\",\"startOffset\",\"endNode\",\"undefined\",\"endOffset\",\"force\",\"parentNode\",\"focus\",\"native\",\"startContainer\",\"endContainer\",\"tagName\",\"Array\",\"prototype\",\"indexOf\",\"call\",\"childNodes\",\"setBaseAndExtent\",\"removeAllRanges\",\"blur\",\"body\",\"_editor\",\"querySelector\",\"delta\",\"convert\",\"html\",\"on\",\"getSemanticHTML\",\"addEventListener\",\"_args\",\"update\",\"style_redraw\",\"invalidate_layout\",\"after_layout\",\"__name__\",\"QuillInput\",\"HTMLBox\",\"constructor\",\"attrs\",\"__module__\",\"default_view\",\"define\",\"Any\",\"Str\",\"override\"],\"sources\":[\"0\"],\"mappings\":\"AAAsB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACnE,IAAIC,EACJF,IACA,MAAMG,EAAQN,EAAQ,qBAChBO,EAAWP,EAAQ,cACzB,MAAMQ,UAAuBD,EAASE,YAClC,eAAAC,GACIC,MAAMD,kBACN,MAAME,SAAEA,EAAQC,QAAEA,EAAOC,KAAEA,EAAIC,KAAEA,EAAIC,QAAEA,EAAOC,YAAEA,GAAgBC,KAAKC,MAAMC,WAC3EF,KAAKG,UAAUT,GAAU,KACrBM,KAAKI,MAAMC,QAAQL,KAAKC,MAAMP,SAAS,IAE3CM,KAAKG,UAAUR,GAAS,KAChBK,KAAKC,MAAMN,UACXK,KAAKM,UAAUC,MAAMC,WAAa,UACtC,IAEJR,KAAKG,UAAUP,GAAM,KACbI,KAAKS,WAGTT,KAAKS,UAAW,EAChBT,KAAKI,MAAMC,QAAO,GAClBL,KAAKI,MAAMM,YAAY,IACvBV,KAAKI,MAAMO,UAAUC,qBAAqBZ,KAAKC,MAAML,MACrDI,KAAKI,MAAMC,QAAQL,KAAKC,MAAMP,UAC9BM,KAAKS,UAAW,EAAK,IAEzBT,KAAKG,UAAUJ,GAAa,KACxBC,KAAK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,KAAKC,MAAML,OAC9DI,KAAKI,MAAMM,YAAY8D,GACvBxE,KAAKI,MAAMuE,GAAG,eAAe,KACrB3E,KAAKS,WAGTT,KAAKS,UAAW,EAChBT,KAAKC,MAAML,KAAOI,KAAKI,MAAMwE,kBAC7B5E,KAAKS,UAAW,EAAK,IAEpBT,KAAKC,MAAMP,UACZM,KAAKI,MAAMC,QAAQL,KAAKC,MAAMP,UAElCwC,SAAS2C,iBAAiB,mBAAmB,IAAIC,KAE7C9E,KAAKI,MAAMiC,UAAU0C,QAAQ,GAErC,CACA,YAAAC,GACQhF,KAAKC,MAAMN,UACXK,KAAKM,UAAUC,MAAMC,WAAa,WAEtC,MAAMgE,EAAQxE,KAAKI,MAAMO,UAAU8D,QAAQ,CAAEC,KAAM1E,KAAKC,MAAML,OAC9DI,KAAKI,MAAMM,YAAY8D,GACvBxE,KAAKiF,mBACT,CACA,YAAAC,GACIzF,MAAMyF,eACNlF,KAAKgB,iBACT,EAEJhC,EAAQM,eAAiBA,EACzBA,EAAe6F,SAAW,iBAC1B,MAAMC,UAAmB/F,EAASgG,QAC9B,WAAAC,CAAYC,GACR9F,MAAM8F,EACV,EAEJvG,EAAQoG,WAAaA,EACrBjG,EAAKiG,EACLA,EAAWD,SAAW,aACtBC,EAAWI,WAAa,qBAEpBrG,EAAG2E,UAAU2B,aAAenG,EAC5BH,EAAGuG,QAAO,EAAGC,MAAKC,UAAU,CACxB/F,KAAM,CAAC+F,EAAK,WACZ7F,YAAa,CAAC6F,EAAK,IACnBhG,KAAM,CAACgG,EAAK,IACZ9F,QAAS,CAAC6F,EAAK,UAEnBxG,EAAG0G,SAAS,CACRzE,OAAQ,KAGpB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/radio_button_group.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/radio_button_group.js","canonical":"models/radio_button_group","resolution":"ESM","id":"25e2d7c208","hash":"25e2d7c20809c783a4af5d77b9b125e37ee6e11142ca0d14527419db407c511a","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RadioButtonGroup = exports.RadioButtonGroupView = void 0;\nconst tooltip_1 = require(\"@bokehjs/models/ui/tooltip\");\nconst build_views_1 = require(\"@bokehjs/core/build_views\");\nconst radio_button_group_1 = require(\"@bokehjs/models/widgets/radio_button_group\");\nclass RadioButtonGroupView extends radio_button_group_1.RadioButtonGroupView {\n    *children() {\n        yield* super.children();\n        if (this.tooltip != null) {\n            yield this.tooltip;\n        }\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { tooltip } = this.model.properties;\n        this.on_change(tooltip, () => this.update_tooltip());\n    }\n    async update_tooltip() {\n        if (this.tooltip != null) {\n            this.tooltip.remove();\n        }\n        const { tooltip } = this.model;\n        if (tooltip != null) {\n            this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });\n        }\n    }\n    async lazy_initialize() {\n        await super.lazy_initialize();\n        const { tooltip } = this.model;\n        if (tooltip != null) {\n            this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });\n        }\n    }\n    remove() {\n        this.tooltip?.remove();\n        super.remove();\n    }\n    render() {\n        super.render();\n        const toggle = (visible) => {\n            this.tooltip?.model.setv({\n                visible,\n            });\n        };\n        let timer;\n        this.el.addEventListener(\"mouseenter\", () => {\n            timer = setTimeout(() => toggle(true), this.model.tooltip_delay);\n        });\n        this.el.addEventListener(\"mouseleave\", () => {\n            clearTimeout(timer);\n            toggle(false);\n        });\n    }\n}\nexports.RadioButtonGroupView = RadioButtonGroupView;\nRadioButtonGroupView.__name__ = \"RadioButtonGroupView\";\nclass RadioButtonGroup extends radio_button_group_1.RadioButtonGroup {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.RadioButtonGroup = RadioButtonGroup;\n_a = RadioButtonGroup;\nRadioButtonGroup.__name__ = \"RadioButtonGroup\";\nRadioButtonGroup.__module__ = \"panel.models.widgets\";\n(() => {\n    _a.prototype.default_view = RadioButtonGroupView;\n    _a.define(({ Nullable, Ref, Float }) => ({\n        tooltip: [Nullable(Ref(tooltip_1.Tooltip)), null],\n        tooltip_delay: [Float, 500],\n    }));\n})();\n//# sourceMappingURL=radio_button_group.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"RadioButtonGroupView"},{"type":"named","name":"RadioButtonGroup"}],"externals":[],"shims":[]},"code":{"source":"/* models/radio_button_group.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const tooltip_1 = require(\"@bokehjs/models/ui/tooltip\");\n    const build_views_1 = require(\"@bokehjs/core/build_views\");\n    const radio_button_group_1 = require(\"@bokehjs/models/widgets/radio_button_group\");\n    class RadioButtonGroupView extends radio_button_group_1.RadioButtonGroupView {\n        *children() {\n            yield* super.children();\n            if (this.tooltip != null) {\n                yield this.tooltip;\n            }\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { tooltip } = this.model.properties;\n            this.on_change(tooltip, () => this.update_tooltip());\n        }\n        async update_tooltip() {\n            if (this.tooltip != null) {\n                this.tooltip.remove();\n            }\n            const { tooltip } = this.model;\n            if (tooltip != null) {\n                this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });\n            }\n        }\n        async lazy_initialize() {\n            await super.lazy_initialize();\n            const { tooltip } = this.model;\n            if (tooltip != null) {\n                this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });\n            }\n        }\n        remove() {\n            this.tooltip?.remove();\n            super.remove();\n        }\n        render() {\n            super.render();\n            const toggle = (visible) => {\n                this.tooltip?.model.setv({\n                    visible,\n                });\n            };\n            let timer;\n            this.el.addEventListener(\"mouseenter\", () => {\n                timer = setTimeout(() => toggle(true), this.model.tooltip_delay);\n            });\n            this.el.addEventListener(\"mouseleave\", () => {\n                clearTimeout(timer);\n                toggle(false);\n            });\n        }\n    }\n    exports.RadioButtonGroupView = RadioButtonGroupView;\n    RadioButtonGroupView.__name__ = \"RadioButtonGroupView\";\n    class RadioButtonGroup extends radio_button_group_1.RadioButtonGroup {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.RadioButtonGroup = RadioButtonGroup;\n    _a = RadioButtonGroup;\n    RadioButtonGroup.__name__ = \"RadioButtonGroup\";\n    RadioButtonGroup.__module__ = \"panel.models.widgets\";\n    (() => {\n        _a.prototype.default_view = RadioButtonGroupView;\n        _a.define(({ Nullable, Ref, Float }) => ({\n            tooltip: [Nullable(Ref(tooltip_1.Tooltip)), null],\n            tooltip_delay: [Float, 500],\n        }));\n    })();\n}\n","min_source":"function _(t,o,e,i,l){var s;i();const n=t(\"@bokehjs/models/ui/tooltip\"),a=t(\"@bokehjs/core/build_views\"),p=t(\"@bokehjs/models/widgets/radio_button_group\");class u extends p.RadioButtonGroupView{*children(){yield*super.children(),null!=this.tooltip&&(yield this.tooltip)}connect_signals(){super.connect_signals();const{tooltip:t}=this.model.properties;this.on_change(t,(()=>this.update_tooltip()))}async update_tooltip(){null!=this.tooltip&&this.tooltip.remove();const{tooltip:t}=this.model;null!=t&&(this.tooltip=await(0,a.build_view)(t,{parent:this}))}async lazy_initialize(){await super.lazy_initialize();const{tooltip:t}=this.model;null!=t&&(this.tooltip=await(0,a.build_view)(t,{parent:this}))}remove(){this.tooltip?.remove(),super.remove()}render(){super.render();const t=t=>{this.tooltip?.model.setv({visible:t})};let o;this.el.addEventListener(\"mouseenter\",(()=>{o=setTimeout((()=>t(!0)),this.model.tooltip_delay)})),this.el.addEventListener(\"mouseleave\",(()=>{clearTimeout(o),t(!1)}))}}e.RadioButtonGroupView=u,u.__name__=\"RadioButtonGroupView\";class d extends p.RadioButtonGroup{constructor(t){super(t)}}e.RadioButtonGroup=d,s=d,d.__name__=\"RadioButtonGroup\",d.__module__=\"panel.models.widgets\",s.prototype.default_view=u,s.define((({Nullable:t,Ref:o,Float:e})=>({tooltip:[t(o(n.Tooltip)),null],tooltip_delay:[e,500]})))}\n//# sourceMappingURL=radio_button_group.min.js.map","min_map":"{\"version\":3,\"file\":\"radio_button_group.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"tooltip_1\",\"build_views_1\",\"radio_button_group_1\",\"RadioButtonGroupView\",\"children\",\"super\",\"this\",\"tooltip\",\"connect_signals\",\"model\",\"properties\",\"on_change\",\"update_tooltip\",\"remove\",\"build_view\",\"parent\",\"lazy_initialize\",\"render\",\"toggle\",\"visible\",\"setv\",\"timer\",\"el\",\"addEventListener\",\"setTimeout\",\"tooltip_delay\",\"clearTimeout\",\"__name__\",\"RadioButtonGroup\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Nullable\",\"Ref\",\"Float\",\"Tooltip\"],\"sources\":[\"0\"],\"mappings\":\"AAAmC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAChF,IAAIC,EACJF,IACA,MAAMG,EAAYN,EAAQ,8BACpBO,EAAgBP,EAAQ,6BACxBQ,EAAuBR,EAAQ,8CACrC,MAAMS,UAA6BD,EAAqBC,qBACpD,SAACC,SACUC,MAAMD,WACO,MAAhBE,KAAKC,gBACCD,KAAKC,QAEnB,CACA,eAAAC,GACIH,MAAMG,kBACN,MAAMD,QAAEA,GAAYD,KAAKG,MAAMC,WAC/BJ,KAAKK,UAAUJ,GAAS,IAAMD,KAAKM,kBACvC,CACA,oBAAMA,GACkB,MAAhBN,KAAKC,SACLD,KAAKC,QAAQM,SAEjB,MAAMN,QAAEA,GAAYD,KAAKG,MACV,MAAXF,IACAD,KAAKC,cAAgB,EAAIN,EAAca,YAAYP,EAAS,CAAEQ,OAAQT,OAE9E,CACA,qBAAMU,SACIX,MAAMW,kBACZ,MAAMT,QAAEA,GAAYD,KAAKG,MACV,MAAXF,IACAD,KAAKC,cAAgB,EAAIN,EAAca,YAAYP,EAAS,CAAEQ,OAAQT,OAE9E,CACA,MAAAO,GACIP,KAAKC,SAASM,SACdR,MAAMQ,QACV,CACA,MAAAI,GACIZ,MAAMY,SACN,MAAMC,EAAUC,IACZb,KAAKC,SAASE,MAAMW,KAAK,CACrBD,WACF,EAEN,IAAIE,EACJf,KAAKgB,GAAGC,iBAAiB,cAAc,KACnCF,EAAQG,YAAW,IAAMN,GAAO,IAAOZ,KAAKG,MAAMgB,cAAc,IAEpEnB,KAAKgB,GAAGC,iBAAiB,cAAc,KACnCG,aAAaL,GACbH,GAAO,EAAM,GAErB,EAEJtB,EAAQO,qBAAuBA,EAC/BA,EAAqBwB,SAAW,uBAChC,MAAMC,UAAyB1B,EAAqB0B,iBAChD,WAAAC,CAAYC,GACRzB,MAAMyB,EACV,EAEJlC,EAAQgC,iBAAmBA,EAC3B7B,EAAK6B,EACLA,EAAiBD,SAAW,mBAC5BC,EAAiBG,WAAa,uBAE1BhC,EAAGiC,UAAUC,aAAe9B,EAC5BJ,EAAGmC,QAAO,EAAGC,WAAUC,MAAKC,YAAY,CACpC9B,QAAS,CAAC4B,EAASC,EAAIpC,EAAUsC,UAAW,MAC5Cb,cAAe,CAACY,EAAO,QAGnC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/react_component.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/react_component.js","canonical":"models/react_component","resolution":"ESM","id":"413c9b5023","hash":"413c9b50233bc98bd2d5bc732303c94c465d33eae5980622f6942a34e0d83819","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReactComponent = exports.ReactComponentView = exports.HostedStyleSheet = void 0;\nconst build_views_1 = require(\"@bokehjs/core/build_views\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst array_1 = require(\"@bokehjs/core/util/array\");\nconst assert_1 = require(\"@bokehjs/core/util/assert\");\nconst types_1 = require(\"@bokehjs/core/util/types\");\nconst reactive_esm_1 = require(\"./reactive_esm\");\nclass HostedStyleSheet extends dom_1.InlineStyleSheet {\n    constructor(css, id, persistent = false, host_id = \"\") {\n        super(css, id, persistent);\n        this.persistent = persistent;\n        this.host_id = host_id;\n    }\n    replace(css, styles) {\n        css = css.replace(/:host\\b/g, `#${this.host_id}`);\n        super.replace(css, styles);\n    }\n    prepend(css, styles) {\n        css = css.replace(/:host\\b/g, `#${this.host_id}`);\n        super.prepend(css, styles);\n    }\n    append(css, styles) {\n        css = css.replace(/:host\\b/g, `#${this.host_id}`);\n        super.append(css, styles);\n    }\n}\nexports.HostedStyleSheet = HostedStyleSheet;\nHostedStyleSheet.__name__ = \"HostedStyleSheet\";\nasync function _build_view(view_cls, model, options) {\n    (0, assert_1.assert)(view_cls != null, \"model doesn't implement a view\");\n    const view = new view_cls({ ...options, model });\n    view.initialize();\n    await view.lazy_initialize();\n    return view;\n}\n// Custom build_views implementation which does not eagerly destroy old views\nasync function build_views_no_remove(view_storage, models, options = { parent: null }, cls = (model) => model.default_view) {\n    const to_remove = (0, array_1.difference)([...view_storage.keys()], models);\n    const removed_views = [];\n    for (const model of to_remove) {\n        const view = view_storage.get(model);\n        if (view != null) {\n            view_storage.delete(model);\n            removed_views.push(view);\n        }\n    }\n    const created_views = [];\n    const new_models = models.filter((model) => !view_storage.has(model));\n    for (const model of new_models) {\n        const view = await _build_view(cls(model), model, options);\n        view_storage.set(model, view);\n        created_views.push(view);\n    }\n    for (const view of created_views) {\n        view.connect_signals();\n    }\n    return {\n        created: created_views,\n        removed: removed_views,\n    };\n}\nclass ReactComponentView extends reactive_esm_1.ReactiveESMView {\n    constructor() {\n        super(...arguments);\n        this.model_getter = reactive_esm_1.model_getter;\n        this.model_setter = reactive_esm_1.model_setter;\n        this.react_root = null;\n        this._force_update_callbacks = [];\n        this._scheduled_removals = [];\n    }\n    initialize() {\n        super.initialize();\n        if (!this.use_shadow_dom) {\n            this.display = new HostedStyleSheet(\"\", \"display\", false, this.model.id);\n            this.style = new HostedStyleSheet(\"\", \"style\", false, this.model.id);\n            this.parent_style = new HostedStyleSheet(\"\", \"parent\", true, this.model.id);\n        }\n    }\n    get use_shadow_dom() {\n        return this.model.use_shadow_dom || !(this.parent instanceof ReactComponentView);\n    }\n    render_esm() {\n        if (this.model.compiled === null || this.model.render_module === null) {\n            return;\n        }\n        if (this.model.usesMui) {\n            if (this.model.root_node) {\n                this.style_cache = document.head;\n            }\n            else {\n                this.style_cache = document.createElement(\"head\");\n                this.shadow_el.insertBefore(this.style_cache, this.container);\n            }\n        }\n        this.accessed_properties = [];\n        for (const lf of this._lifecycle_handlers.keys()) {\n            (this._lifecycle_handlers.get(lf) || []).splice(0);\n        }\n        this.model.disconnect_watchers(this);\n        this.model.render_module.then((mod) => {\n            this.react_root = mod.default.render(this.model.id);\n        });\n    }\n    on_force_update(cb) {\n        this._force_update_callbacks.push(cb);\n    }\n    force_update() {\n        for (const cb of this._force_update_callbacks) {\n            cb();\n        }\n    }\n    remove() {\n        this._force_update_callbacks = [];\n        if (this.react_root && this.use_shadow_dom) {\n            super.remove();\n            this.react_root.then((root) => root && root.unmount());\n            for (const view of this._scheduled_removals) {\n                view.remove();\n            }\n            this._scheduled_removals = [];\n        }\n        else {\n            this._applied_stylesheets.forEach((stylesheet) => stylesheet.uninstall());\n            for (const cb of (this._lifecycle_handlers.get(\"remove\") || [])) {\n                cb();\n            }\n            this._child_callbacks.clear();\n            this._child_rendered.clear();\n            this._mounted.clear();\n        }\n    }\n    get root_view() {\n        let root = this;\n        if (this.use_shadow_dom) {\n            return root;\n        }\n        while (root.parent instanceof ReactComponentView) {\n            root = root.parent;\n        }\n        return root;\n    }\n    _apply_stylesheets(stylesheets) {\n        const resolved_stylesheets = stylesheets.map((style) => (0, types_1.isString)(style) ? new dom_1.InlineStyleSheet(style) : style);\n        const styles = this.root_view.shadow_el.querySelectorAll(\"style\");\n        const links = this.root_view.shadow_el.querySelectorAll(\"link\");\n        resolved_stylesheets.forEach((stylesheet) => {\n            if (!this.use_shadow_dom) {\n                if (stylesheet instanceof dom_1.InlineStyleSheet &&\n                    Array.from(styles).some(style => style.innerHTML === stylesheet.css)) {\n                    return;\n                }\n                if (stylesheet instanceof dom_1.ImportedStyleSheet &&\n                    Array.from(links).some(link => link.href === stylesheet.el.href)) {\n                    return;\n                }\n            }\n            this._applied_stylesheets.push(stylesheet);\n            stylesheet.install(this.root_view.shadow_el);\n        });\n    }\n    render() {\n        if (this.react_root) {\n            this.react_root.then((root) => root.unmount());\n        }\n        this._force_update_callbacks = [];\n        super.render();\n    }\n    r_after_render() {\n        // If the DOM node was re-inserted, e.g. due to the parent\n        // children changing order we must force an update in the\n        // React component to ensure anything depending on the DOM\n        // structure (e.g. emotion caches) is updated\n        super.r_after_render();\n        if (this.use_shadow_dom) {\n            this.force_update();\n        }\n    }\n    _update_layout() {\n        super._update_layout();\n        const handlers = (this._lifecycle_handlers.get(\"update_layout\") || []);\n        for (const cb of handlers) {\n            cb();\n        }\n    }\n    async build_child_views() {\n        const build_fn = this.model.use_shadow_dom ? build_views_no_remove : build_views_1.build_views;\n        const { created, removed } = await build_fn(this._child_views, this.child_models, { parent: this });\n        for (const view of removed) {\n            this._resize_observer.unobserve(view.el);\n            if (this.model.use_shadow_dom) {\n                this._child_rendered.delete(view);\n                if (created.length) {\n                    this._scheduled_removals.push(view);\n                }\n                else {\n                    view.remove();\n                }\n            }\n        }\n        for (const view of created) {\n            this._resize_observer.observe(view.el, { box: \"border-box\" });\n        }\n        return created;\n    }\n    async update_children() {\n        const created_children = new Set(await this.build_child_views());\n        const new_views = new Map();\n        for (const child_view of this.child_views) {\n            if (!created_children.has(child_view)) {\n                continue;\n            }\n            const child = this._lookup_child(child_view);\n            if (!child) {\n                continue;\n            }\n            if (new_views.has(child)) {\n                new_views.get(child).push(child_view);\n            }\n            else {\n                new_views.set(child, [child_view]);\n            }\n        }\n        for (const child of this.model.children) {\n            const callbacks = this._child_callbacks.get(child) || [];\n            const new_children = new_views.get(child) || [];\n            if (new_children) {\n                for (const callback of callbacks) {\n                    callback(new_children);\n                }\n            }\n        }\n        this._update_children();\n    }\n    _on_mounted() {\n        this.invalidate_layout();\n    }\n    patch_container(container) {\n        this.el = this.container = container;\n        this._update_stylesheets();\n        this.class_list = new dom_1.ClassList(this.container.classList);\n        this._apply_html_attributes();\n    }\n    after_rendered() {\n        const handlers = (this._lifecycle_handlers.get(\"after_render\") || []);\n        for (const cb of handlers) {\n            cb();\n        }\n        if (!this._rendered) {\n            for (const cb of (this._lifecycle_handlers.get(\"after_layout\") || [])) {\n                cb();\n            }\n        }\n        this._rendered = true;\n    }\n}\nexports.ReactComponentView = ReactComponentView;\nReactComponentView.__name__ = \"ReactComponentView\";\nclass ReactComponent extends reactive_esm_1.ReactiveESM {\n    constructor(attrs) {\n        super(attrs);\n        this.sucrase_transforms = [\"typescript\", \"jsx\"];\n    }\n    get usesMui() {\n        if (this.importmap?.imports) {\n            return Object.keys(this.importmap?.imports).some(k => k.startsWith(\"@mui\"));\n        }\n        return false;\n    }\n    _render_code() {\n        let [import_code, bundle_code] = [\"\", \"\"];\n        const cache_key = (this.bundle === \"url\") ? this.esm : (this.bundle || `${this.class_name}-${this.esm.length}`);\n        if (this.bundle) {\n            bundle_code = `\n  const ns = await view._module_cache.get(\"${cache_key}\")\n  const {React, createRoot} = ns.default`;\n        }\n        else {\n            import_code = `\nimport * as React from \"react\"\nimport { createRoot } from \"react-dom/client\"`;\n        }\n        let init_code = \"\";\n        let render_code = \"\";\n        if (this.usesMui) {\n            if (this.bundle) {\n                bundle_code = `\n  const ns = await view._module_cache.get(\"${cache_key}\")\n  const {CacheProvider, React, createCache, createRoot} = ns.default`;\n            }\n            else {\n                import_code = `\n${import_code}\nimport createCache from \"@emotion/cache\"\nimport { CacheProvider } from \"@emotion/react\"`;\n            }\n            init_code = `\n  if (view.use_shadow_dom) {\n    const css_key = id.replace(\"-\", \"\").replace(/\\d/g, (digit) => String.fromCharCode(digit.charCodeAt(0) + 49)).toLowerCase()\n    view.mui_cache = createCache({\n      key: 'css-'+css_key,\n      prepend: true,\n      container: view.style_cache,\n    })\n  }`;\n            render_code = `\n  if (rendered && ((view.parent?.react_root === undefined) || view.model.use_shadow_dom)) {\n    rendered = React.createElement(CacheProvider, {value: view.mui_cache}, rendered)\n  }`;\n        }\n        return `\n${import_code}\n\nasync function render(id) {\n  const view = Bokeh.index.find_one_by_id(id)\n  if (view == null) {\n    return null\n  }\n\n  ${bundle_code}\n\n  class Child extends React.PureComponent {\n\n    state = {rendered: null}\n\n    constructor(props) {\n      super(props)\n      this.render_callback = null\n      this.containerRef = React.createRef()\n    }\n\n    updateElement() {\n      const childView = this.view\n      const el = childView?.el\n      if (el && this.containerRef.current && !this.containerRef.current.contains(el)) {\n        this.containerRef.current.innerHTML = \"\"\n        this.containerRef.current.appendChild(el)\n      }\n    }\n\n    get view() {\n      const child = this.props.parent.model.data[this.props.name]\n      const model = this.props.id == null ? child : child.find(item => item.id === this.props.id)\n      return this.props.parent.get_child_view(model)\n    }\n\n    get element() {\n      const view = this.view\n      return view == null ? null : view.el\n    }\n\n    get use_shadow_dom() {\n      return this.view?.model.use_shadow_dom || (this.view?.react_root === undefined)\n    }\n\n    componentDidMount() {\n      const view = this.view\n      this.render_callback = (new_views) => {\n        const view = this.view\n        if (!view) {\n          return\n        }\n        this.updateElement()\n        if (new_views.includes(view)) {\n          if (this.use_shadow_dom) {\n            for (const view of this.props.parent._scheduled_removals) { view.remove() }\n            this.props.parent._scheduled_removals = []\n            this.props.parent.rerender_(view)\n            this.props.parent._child_rendered.set(view, true)\n          } else {\n            view.patch_container(this.containerRef.current)\n            view.model.render_module.then(async (mod) => {\n              for (const view of this.props.parent._scheduled_removals) { view.remove() }\n              this.props.parent._scheduled_removals = []\n              this.setState(\n                {rendered: await mod.default.render(view.model.id)},\n                () => {\n                  this.props.parent.notify_mount(this.props.name, view.model.id)\n                  this.view.r_after_render()\n                  this.view.after_rendered()\n                }\n              )\n            })\n          }\n        }\n      }\n      this.props.parent.on_child_render(this.props.name, this.render_callback)\n      if (view == null) { return }\n      for (const rview of this.props.parent._scheduled_removals) { rview.remove() }\n      this.props.parent._scheduled_removals = []\n      if (this.use_shadow_dom) {\n        this.updateElement()\n        this.props.parent.rerender_(view)\n        this.props.parent._child_rendered.set(view, true)\n        this.props.parent.notify_mount(this.props.name, view.model.id)\n      } else {\n        view.patch_container(this.containerRef.current)\n        view.model.render_module.then(async (mod) => {\n          this.setState(\n            {rendered: await mod.default.render(view.model.id)},\n            () => {\n              this.props.parent.notify_mount(this.props.name, view.model.id)\n              this.view.r_after_render()\n              this.view.after_rendered()\n            }\n          )\n        })\n      }\n    }\n\n    componentWillUnmount() {\n      if (this.render_callback) {\n        this.props.parent.remove_on_child_render(this.props.name, this.render_callback)\n      }\n      if (!this.use_shadow_dom && this.view._mounted.has(this.props.name)) {\n        this.view._mounted.get(this.props.name).delete(this.props.id)\n      }\n    }\n\n    componentDidUpdate() {\n      if (this.use_shadow_dom) {\n        this.updateElement()\n      }\n    }\n\n    render() {\n      const child = this.state.rendered\n      const class_name = (this.use_shadow_dom ?\n        \"child-wrapper\" : this.view.model.class_name.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase()\n      )\n      return React.createElement('div', {id: this.view?.model.id, className: class_name, ref: this.containerRef}, child)\n    }\n  }\n\n  function react_getter(target, name) {\n    if (name === \"useMount\") {\n      return (callback) => React.useEffect(() => {\n        target.model_proxy.on('lifecycle:mounted', callback)\n        return () => target.model_proxy.off('lifecycle:mounted', callback)\n      }, [])\n    } if (name == \"useState\") {\n      return (prop) => {\n        const data_model = target.model.data\n        const propPath = prop.split(\".\")\n        let targetModel = data_model\n        let resolvedProp = null\n\n        for (let i = 0; i < propPath.length - 1; i++) {\n          if (targetModel && targetModel.properties && propPath[i] in targetModel.properties) {\n            targetModel = targetModel[propPath[i]]\n          } else {\n            // Stop if any part of the path is missing\n            targetModel = null\n            break\n          }\n        }\n        if (targetModel && targetModel.attributes && propPath[propPath.length - 1] in targetModel.attributes) {\n          resolvedProp = propPath[propPath.length - 1]\n        }\n        if (resolvedProp && targetModel) {\n          const [value, setValue] = React.useState(targetModel.attributes[resolvedProp])\n\n          React.useEffect(() => {\n            const cb = () => {\n              if (target.model.events.includes(resolvedProp)) {\n                targetModel.attributes[resolvedProp] && (setValue((v) => v+1) || targetModel.setv({[resolvedProp]: false}))\n              } else {\n                setValue(targetModel.attributes[resolvedProp])\n              }\n            }\n            react_proxy.on(prop, cb, true)\n            return () => react_proxy.off(prop, cb)\n          }, [])\n\n          React.useEffect(() => {\n            if (!target.model.events.includes(resolvedProp)) {\n              targetModel.setv({ [resolvedProp]: value })\n            }\n          }, [value])\n\n          return [value, setValue]\n        }\n        throw ReferenceError(\"Could not resolve \" + prop + \" on \" + target.model.class_name)\n      }\n    } else if (name === \"get_child\") {\n      return (child) => {\n        const data_model = target.model.data\n        const value = data_model.attributes[child]\n        if (Array.isArray(value)) {\n          const [children_state, set_children] = React.useState(value.map((model) =>\n            React.createElement(Child, { parent: target, name: child, key: model.id, id: model.id })\n          ))\n          React.useEffect(() => {\n            target.on_child_render(child, () => {\n              const current_models = data_model.attributes[child]\n              const previous_models = children_state.map(child => child.props.id)\n              if (current_models.some((model, i) => model.id !== previous_models[i])) {\n                set_children(current_models.map((model, i) => (\n                  React.createElement(Child, { parent: target, name: child, key: model.id, id: model.id })\n                )))\n              }\n            })\n          }, [])\n          return children_state\n        } else {\n          return React.createElement(Child, {parent: target, name: child})\n        }\n      }\n    }\n    return target.model_getter(target, name)\n  }\n\n  const react_proxy = new Proxy(view, {\n    get: react_getter,\n    set: view.model_setter\n  })\n\n  class ErrorBoundary extends React.Component {\n  constructor(props) {\n    super(props)\n    // initialize the error state\n    this.state = { hasError: false }\n  }\n\n  // if an error happened, set the state to true\n  static getDerivedStateFromError(error) {\n    return { hasError: true }\n  }\n\n  componentDidCatch(error) {\n    this.props.view.render_error(error)\n  }\n\n  render() {\n    if (this.state.hasError) {\n      return React.createElement('div')\n    }\n    return React.createElement('div', {className: \"error-wrapper\"}, this.props.children)\n  }\n  }\n\n  class Component extends React.Component {\n\n    constructor(props) {\n      super(props)\n      ${init_code}\n    }\n\n    componentDidMount() {\n      if (!this.props.view.use_shadow_dom) { return }\n      this.props.view.on_force_update(() => {\n        ${init_code}\n        this.forceUpdate()\n      })\n      this.props.view._changing = false\n      this.props.view.after_rendered()\n    }\n\n    render() {\n      let rendered = React.createElement(this.props.view.render_fn, this.props)\n      if (this.props.view.model.dev) {\n        rendered = React.createElement(ErrorBoundary, {view}, rendered)\n      }\n      ${render_code}\n      return rendered\n    }\n  }\n\n  const props = {view, model: react_proxy, data: view.model.data, el: view.container}\n  const rendered = React.createElement(Component, props)\n  if (!view.model.use_shadow_dom && (view.parent?.react_root !== undefined)) {\n    return rendered\n  }\n  if (rendered) {\n    view._changing = true\n    let container\n    if (view.model.root_node) {\n      container = document.querySelector(view.model.root_node)\n      if (container == null) {\n        container = document.createElement(\"div\")\n        container.id = view.model.root_node.replace(\"#\", \"\")\n        document.body.append(container)\n      }\n    } else {\n      container = view.container\n    }\n    const root = createRoot(container)\n    try {\n      root.render(rendered)\n    } catch(e) {\n      view.render_error(e)\n    }\n    return root\n  }\n}\n\nexport default {render}`;\n    }\n    compile() {\n        const compiled = super.compile();\n        if (this.bundle) {\n            return compiled;\n        }\n        else if (compiled === null || !compiled.includes(\"React\")) {\n            return compiled;\n        }\n        return `\nimport * as React from \"react\"\n\n${compiled}`;\n    }\n    get _render_cache_key() {\n        const cache_key = (this.bundle === \"url\") ? this.esm : (this.bundle || `${this.class_name}-${this.esm.length}`);\n        return `react-${this.usesMui}-${cache_key}`;\n    }\n}\nexports.ReactComponent = ReactComponent;\n_a = ReactComponent;\nReactComponent.__name__ = \"ReactComponent\";\nReactComponent.__module__ = \"panel.models.esm\";\n(() => {\n    _a.prototype.default_view = ReactComponentView;\n    _a.define(({ Bool, Nullable, Str }) => ({\n        root_node: [Nullable(Str), null],\n        use_shadow_dom: [Bool, true],\n    }));\n    _a.override({\n        render_policy: \"manual\",\n    });\n})();\n//# sourceMappingURL=react_component.js.map\n","type":"js","dependency_paths":[["./reactive_esm","/home/runner/work/panel/panel/panel/dist/lib/models/reactive_esm.js"]],"dependency_map":[],"exported":[{"type":"named","name":"HostedStyleSheet"},{"type":"named","name":"ReactComponentView"},{"type":"named","name":"ReactComponent"}],"externals":[],"shims":[]},"code":{"source":"/* models/react_component.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const build_views_1 = require(\"@bokehjs/core/build_views\");\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const array_1 = require(\"@bokehjs/core/util/array\");\n    const assert_1 = require(\"@bokehjs/core/util/assert\");\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    const reactive_esm_1 = require(\"e27ba47db3\") /* ./reactive_esm */;\n    class HostedStyleSheet extends dom_1.InlineStyleSheet {\n        constructor(css, id, persistent = false, host_id = \"\") {\n            super(css, id, persistent);\n            this.persistent = persistent;\n            this.host_id = host_id;\n        }\n        replace(css, styles) {\n            css = css.replace(/:host\\b/g, `#${this.host_id}`);\n            super.replace(css, styles);\n        }\n        prepend(css, styles) {\n            css = css.replace(/:host\\b/g, `#${this.host_id}`);\n            super.prepend(css, styles);\n        }\n        append(css, styles) {\n            css = css.replace(/:host\\b/g, `#${this.host_id}`);\n            super.append(css, styles);\n        }\n    }\n    exports.HostedStyleSheet = HostedStyleSheet;\n    HostedStyleSheet.__name__ = \"HostedStyleSheet\";\n    async function _build_view(view_cls, model, options) {\n        (0, assert_1.assert)(view_cls != null, \"model doesn't implement a view\");\n        const view = new view_cls({ ...options, model });\n        view.initialize();\n        await view.lazy_initialize();\n        return view;\n    }\n    // Custom build_views implementation which does not eagerly destroy old views\n    async function build_views_no_remove(view_storage, models, options = { parent: null }, cls = (model) => model.default_view) {\n        const to_remove = (0, array_1.difference)([...view_storage.keys()], models);\n        const removed_views = [];\n        for (const model of to_remove) {\n            const view = view_storage.get(model);\n            if (view != null) {\n                view_storage.delete(model);\n                removed_views.push(view);\n            }\n        }\n        const created_views = [];\n        const new_models = models.filter((model) => !view_storage.has(model));\n        for (const model of new_models) {\n            const view = await _build_view(cls(model), model, options);\n            view_storage.set(model, view);\n            created_views.push(view);\n        }\n        for (const view of created_views) {\n            view.connect_signals();\n        }\n        return {\n            created: created_views,\n            removed: removed_views,\n        };\n    }\n    class ReactComponentView extends reactive_esm_1.ReactiveESMView {\n        constructor() {\n            super(...arguments);\n            this.model_getter = reactive_esm_1.model_getter;\n            this.model_setter = reactive_esm_1.model_setter;\n            this.react_root = null;\n            this._force_update_callbacks = [];\n            this._scheduled_removals = [];\n        }\n        initialize() {\n            super.initialize();\n            if (!this.use_shadow_dom) {\n                this.display = new HostedStyleSheet(\"\", \"display\", false, this.model.id);\n                this.style = new HostedStyleSheet(\"\", \"style\", false, this.model.id);\n                this.parent_style = new HostedStyleSheet(\"\", \"parent\", true, this.model.id);\n            }\n        }\n        get use_shadow_dom() {\n            return this.model.use_shadow_dom || !(this.parent instanceof ReactComponentView);\n        }\n        render_esm() {\n            if (this.model.compiled === null || this.model.render_module === null) {\n                return;\n            }\n            if (this.model.usesMui) {\n                if (this.model.root_node) {\n                    this.style_cache = document.head;\n                }\n                else {\n                    this.style_cache = document.createElement(\"head\");\n                    this.shadow_el.insertBefore(this.style_cache, this.container);\n                }\n            }\n            this.accessed_properties = [];\n            for (const lf of this._lifecycle_handlers.keys()) {\n                (this._lifecycle_handlers.get(lf) || []).splice(0);\n            }\n            this.model.disconnect_watchers(this);\n            this.model.render_module.then((mod) => {\n                this.react_root = mod.default.render(this.model.id);\n            });\n        }\n        on_force_update(cb) {\n            this._force_update_callbacks.push(cb);\n        }\n        force_update() {\n            for (const cb of this._force_update_callbacks) {\n                cb();\n            }\n        }\n        remove() {\n            this._force_update_callbacks = [];\n            if (this.react_root && this.use_shadow_dom) {\n                super.remove();\n                this.react_root.then((root) => root && root.unmount());\n                for (const view of this._scheduled_removals) {\n                    view.remove();\n                }\n                this._scheduled_removals = [];\n            }\n            else {\n                this._applied_stylesheets.forEach((stylesheet) => stylesheet.uninstall());\n                for (const cb of (this._lifecycle_handlers.get(\"remove\") || [])) {\n                    cb();\n                }\n                this._child_callbacks.clear();\n                this._child_rendered.clear();\n                this._mounted.clear();\n            }\n        }\n        get root_view() {\n            let root = this;\n            if (this.use_shadow_dom) {\n                return root;\n            }\n            while (root.parent instanceof ReactComponentView) {\n                root = root.parent;\n            }\n            return root;\n        }\n        _apply_stylesheets(stylesheets) {\n            const resolved_stylesheets = stylesheets.map((style) => (0, types_1.isString)(style) ? new dom_1.InlineStyleSheet(style) : style);\n            const styles = this.root_view.shadow_el.querySelectorAll(\"style\");\n            const links = this.root_view.shadow_el.querySelectorAll(\"link\");\n            resolved_stylesheets.forEach((stylesheet) => {\n                if (!this.use_shadow_dom) {\n                    if (stylesheet instanceof dom_1.InlineStyleSheet &&\n                        Array.from(styles).some(style => style.innerHTML === stylesheet.css)) {\n                        return;\n                    }\n                    if (stylesheet instanceof dom_1.ImportedStyleSheet &&\n                        Array.from(links).some(link => link.href === stylesheet.el.href)) {\n                        return;\n                    }\n                }\n                this._applied_stylesheets.push(stylesheet);\n                stylesheet.install(this.root_view.shadow_el);\n            });\n        }\n        render() {\n            if (this.react_root) {\n                this.react_root.then((root) => root.unmount());\n            }\n            this._force_update_callbacks = [];\n            super.render();\n        }\n        r_after_render() {\n            // If the DOM node was re-inserted, e.g. due to the parent\n            // children changing order we must force an update in the\n            // React component to ensure anything depending on the DOM\n            // structure (e.g. emotion caches) is updated\n            super.r_after_render();\n            if (this.use_shadow_dom) {\n                this.force_update();\n            }\n        }\n        _update_layout() {\n            super._update_layout();\n            const handlers = (this._lifecycle_handlers.get(\"update_layout\") || []);\n            for (const cb of handlers) {\n                cb();\n            }\n        }\n        async build_child_views() {\n            const build_fn = this.model.use_shadow_dom ? build_views_no_remove : build_views_1.build_views;\n            const { created, removed } = await build_fn(this._child_views, this.child_models, { parent: this });\n            for (const view of removed) {\n                this._resize_observer.unobserve(view.el);\n                if (this.model.use_shadow_dom) {\n                    this._child_rendered.delete(view);\n                    if (created.length) {\n                        this._scheduled_removals.push(view);\n                    }\n                    else {\n                        view.remove();\n                    }\n                }\n            }\n            for (const view of created) {\n                this._resize_observer.observe(view.el, { box: \"border-box\" });\n            }\n            return created;\n        }\n        async update_children() {\n            const created_children = new Set(await this.build_child_views());\n            const new_views = new Map();\n            for (const child_view of this.child_views) {\n                if (!created_children.has(child_view)) {\n                    continue;\n                }\n                const child = this._lookup_child(child_view);\n                if (!child) {\n                    continue;\n                }\n                if (new_views.has(child)) {\n                    new_views.get(child).push(child_view);\n                }\n                else {\n                    new_views.set(child, [child_view]);\n                }\n            }\n            for (const child of this.model.children) {\n                const callbacks = this._child_callbacks.get(child) || [];\n                const new_children = new_views.get(child) || [];\n                if (new_children) {\n                    for (const callback of callbacks) {\n                        callback(new_children);\n                    }\n                }\n            }\n            this._update_children();\n        }\n        _on_mounted() {\n            this.invalidate_layout();\n        }\n        patch_container(container) {\n            this.el = this.container = container;\n            this._update_stylesheets();\n            this.class_list = new dom_1.ClassList(this.container.classList);\n            this._apply_html_attributes();\n        }\n        after_rendered() {\n            const handlers = (this._lifecycle_handlers.get(\"after_render\") || []);\n            for (const cb of handlers) {\n                cb();\n            }\n            if (!this._rendered) {\n                for (const cb of (this._lifecycle_handlers.get(\"after_layout\") || [])) {\n                    cb();\n                }\n            }\n            this._rendered = true;\n        }\n    }\n    exports.ReactComponentView = ReactComponentView;\n    ReactComponentView.__name__ = \"ReactComponentView\";\n    class ReactComponent extends reactive_esm_1.ReactiveESM {\n        constructor(attrs) {\n            super(attrs);\n            this.sucrase_transforms = [\"typescript\", \"jsx\"];\n        }\n        get usesMui() {\n            if (this.importmap?.imports) {\n                return Object.keys(this.importmap?.imports).some(k => k.startsWith(\"@mui\"));\n            }\n            return false;\n        }\n        _render_code() {\n            let [import_code, bundle_code] = [\"\", \"\"];\n            const cache_key = (this.bundle === \"url\") ? this.esm : (this.bundle || `${this.class_name}-${this.esm.length}`);\n            if (this.bundle) {\n                bundle_code = `\n  const ns = await view._module_cache.get(\"${cache_key}\")\n  const {React, createRoot} = ns.default`;\n            }\n            else {\n                import_code = `\nimport * as React from \"react\"\nimport { createRoot } from \"react-dom/client\"`;\n            }\n            let init_code = \"\";\n            let render_code = \"\";\n            if (this.usesMui) {\n                if (this.bundle) {\n                    bundle_code = `\n  const ns = await view._module_cache.get(\"${cache_key}\")\n  const {CacheProvider, React, createCache, createRoot} = ns.default`;\n                }\n                else {\n                    import_code = `\n${import_code}\nimport createCache from \"@emotion/cache\"\nimport { CacheProvider } from \"@emotion/react\"`;\n                }\n                init_code = `\n  if (view.use_shadow_dom) {\n    const css_key = id.replace(\"-\", \"\").replace(/\\d/g, (digit) => String.fromCharCode(digit.charCodeAt(0) + 49)).toLowerCase()\n    view.mui_cache = createCache({\n      key: 'css-'+css_key,\n      prepend: true,\n      container: view.style_cache,\n    })\n  }`;\n                render_code = `\n  if (rendered && ((view.parent?.react_root === undefined) || view.model.use_shadow_dom)) {\n    rendered = React.createElement(CacheProvider, {value: view.mui_cache}, rendered)\n  }`;\n            }\n            return `\n${import_code}\n\nasync function render(id) {\n  const view = Bokeh.index.find_one_by_id(id)\n  if (view == null) {\n    return null\n  }\n\n  ${bundle_code}\n\n  class Child extends React.PureComponent {\n\n    state = {rendered: null}\n\n    constructor(props) {\n      super(props)\n      this.render_callback = null\n      this.containerRef = React.createRef()\n    }\n\n    updateElement() {\n      const childView = this.view\n      const el = childView?.el\n      if (el && this.containerRef.current && !this.containerRef.current.contains(el)) {\n        this.containerRef.current.innerHTML = \"\"\n        this.containerRef.current.appendChild(el)\n      }\n    }\n\n    get view() {\n      const child = this.props.parent.model.data[this.props.name]\n      const model = this.props.id == null ? child : child.find(item => item.id === this.props.id)\n      return this.props.parent.get_child_view(model)\n    }\n\n    get element() {\n      const view = this.view\n      return view == null ? null : view.el\n    }\n\n    get use_shadow_dom() {\n      return this.view?.model.use_shadow_dom || (this.view?.react_root === undefined)\n    }\n\n    componentDidMount() {\n      const view = this.view\n      this.render_callback = (new_views) => {\n        const view = this.view\n        if (!view) {\n          return\n        }\n        this.updateElement()\n        if (new_views.includes(view)) {\n          if (this.use_shadow_dom) {\n            for (const view of this.props.parent._scheduled_removals) { view.remove() }\n            this.props.parent._scheduled_removals = []\n            this.props.parent.rerender_(view)\n            this.props.parent._child_rendered.set(view, true)\n          } else {\n            view.patch_container(this.containerRef.current)\n            view.model.render_module.then(async (mod) => {\n              for (const view of this.props.parent._scheduled_removals) { view.remove() }\n              this.props.parent._scheduled_removals = []\n              this.setState(\n                {rendered: await mod.default.render(view.model.id)},\n                () => {\n                  this.props.parent.notify_mount(this.props.name, view.model.id)\n                  this.view.r_after_render()\n                  this.view.after_rendered()\n                }\n              )\n            })\n          }\n        }\n      }\n      this.props.parent.on_child_render(this.props.name, this.render_callback)\n      if (view == null) { return }\n      for (const rview of this.props.parent._scheduled_removals) { rview.remove() }\n      this.props.parent._scheduled_removals = []\n      if (this.use_shadow_dom) {\n        this.updateElement()\n        this.props.parent.rerender_(view)\n        this.props.parent._child_rendered.set(view, true)\n        this.props.parent.notify_mount(this.props.name, view.model.id)\n      } else {\n        view.patch_container(this.containerRef.current)\n        view.model.render_module.then(async (mod) => {\n          this.setState(\n            {rendered: await mod.default.render(view.model.id)},\n            () => {\n              this.props.parent.notify_mount(this.props.name, view.model.id)\n              this.view.r_after_render()\n              this.view.after_rendered()\n            }\n          )\n        })\n      }\n    }\n\n    componentWillUnmount() {\n      if (this.render_callback) {\n        this.props.parent.remove_on_child_render(this.props.name, this.render_callback)\n      }\n      if (!this.use_shadow_dom && this.view._mounted.has(this.props.name)) {\n        this.view._mounted.get(this.props.name).delete(this.props.id)\n      }\n    }\n\n    componentDidUpdate() {\n      if (this.use_shadow_dom) {\n        this.updateElement()\n      }\n    }\n\n    render() {\n      const child = this.state.rendered\n      const class_name = (this.use_shadow_dom ?\n        \"child-wrapper\" : this.view.model.class_name.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase()\n      )\n      return React.createElement('div', {id: this.view?.model.id, className: class_name, ref: this.containerRef}, child)\n    }\n  }\n\n  function react_getter(target, name) {\n    if (name === \"useMount\") {\n      return (callback) => React.useEffect(() => {\n        target.model_proxy.on('lifecycle:mounted', callback)\n        return () => target.model_proxy.off('lifecycle:mounted', callback)\n      }, [])\n    } if (name == \"useState\") {\n      return (prop) => {\n        const data_model = target.model.data\n        const propPath = prop.split(\".\")\n        let targetModel = data_model\n        let resolvedProp = null\n\n        for (let i = 0; i < propPath.length - 1; i++) {\n          if (targetModel && targetModel.properties && propPath[i] in targetModel.properties) {\n            targetModel = targetModel[propPath[i]]\n          } else {\n            // Stop if any part of the path is missing\n            targetModel = null\n            break\n          }\n        }\n        if (targetModel && targetModel.attributes && propPath[propPath.length - 1] in targetModel.attributes) {\n          resolvedProp = propPath[propPath.length - 1]\n        }\n        if (resolvedProp && targetModel) {\n          const [value, setValue] = React.useState(targetModel.attributes[resolvedProp])\n\n          React.useEffect(() => {\n            const cb = () => {\n              if (target.model.events.includes(resolvedProp)) {\n                targetModel.attributes[resolvedProp] && (setValue((v) => v+1) || targetModel.setv({[resolvedProp]: false}))\n              } else {\n                setValue(targetModel.attributes[resolvedProp])\n              }\n            }\n            react_proxy.on(prop, cb, true)\n            return () => react_proxy.off(prop, cb)\n          }, [])\n\n          React.useEffect(() => {\n            if (!target.model.events.includes(resolvedProp)) {\n              targetModel.setv({ [resolvedProp]: value })\n            }\n          }, [value])\n\n          return [value, setValue]\n        }\n        throw ReferenceError(\"Could not resolve \" + prop + \" on \" + target.model.class_name)\n      }\n    } else if (name === \"get_child\") {\n      return (child) => {\n        const data_model = target.model.data\n        const value = data_model.attributes[child]\n        if (Array.isArray(value)) {\n          const [children_state, set_children] = React.useState(value.map((model) =>\n            React.createElement(Child, { parent: target, name: child, key: model.id, id: model.id })\n          ))\n          React.useEffect(() => {\n            target.on_child_render(child, () => {\n              const current_models = data_model.attributes[child]\n              const previous_models = children_state.map(child => child.props.id)\n              if (current_models.some((model, i) => model.id !== previous_models[i])) {\n                set_children(current_models.map((model, i) => (\n                  React.createElement(Child, { parent: target, name: child, key: model.id, id: model.id })\n                )))\n              }\n            })\n          }, [])\n          return children_state\n        } else {\n          return React.createElement(Child, {parent: target, name: child})\n        }\n      }\n    }\n    return target.model_getter(target, name)\n  }\n\n  const react_proxy = new Proxy(view, {\n    get: react_getter,\n    set: view.model_setter\n  })\n\n  class ErrorBoundary extends React.Component {\n  constructor(props) {\n    super(props)\n    // initialize the error state\n    this.state = { hasError: false }\n  }\n\n  // if an error happened, set the state to true\n  static getDerivedStateFromError(error) {\n    return { hasError: true }\n  }\n\n  componentDidCatch(error) {\n    this.props.view.render_error(error)\n  }\n\n  render() {\n    if (this.state.hasError) {\n      return React.createElement('div')\n    }\n    return React.createElement('div', {className: \"error-wrapper\"}, this.props.children)\n  }\n  }\n\n  class Component extends React.Component {\n\n    constructor(props) {\n      super(props)\n      ${init_code}\n    }\n\n    componentDidMount() {\n      if (!this.props.view.use_shadow_dom) { return }\n      this.props.view.on_force_update(() => {\n        ${init_code}\n        this.forceUpdate()\n      })\n      this.props.view._changing = false\n      this.props.view.after_rendered()\n    }\n\n    render() {\n      let rendered = React.createElement(this.props.view.render_fn, this.props)\n      if (this.props.view.model.dev) {\n        rendered = React.createElement(ErrorBoundary, {view}, rendered)\n      }\n      ${render_code}\n      return rendered\n    }\n  }\n\n  const props = {view, model: react_proxy, data: view.model.data, el: view.container}\n  const rendered = React.createElement(Component, props)\n  if (!view.model.use_shadow_dom && (view.parent?.react_root !== undefined)) {\n    return rendered\n  }\n  if (rendered) {\n    view._changing = true\n    let container\n    if (view.model.root_node) {\n      container = document.querySelector(view.model.root_node)\n      if (container == null) {\n        container = document.createElement(\"div\")\n        container.id = view.model.root_node.replace(\"#\", \"\")\n        document.body.append(container)\n      }\n    } else {\n      container = view.container\n    }\n    const root = createRoot(container)\n    try {\n      root.render(rendered)\n    } catch(e) {\n      view.render_error(e)\n    }\n    return root\n  }\n}\n\nexport default {render}`;\n        }\n        compile() {\n            const compiled = super.compile();\n            if (this.bundle) {\n                return compiled;\n            }\n            else if (compiled === null || !compiled.includes(\"React\")) {\n                return compiled;\n            }\n            return `\nimport * as React from \"react\"\n\n${compiled}`;\n        }\n        get _render_cache_key() {\n            const cache_key = (this.bundle === \"url\") ? this.esm : (this.bundle || `${this.class_name}-${this.esm.length}`);\n            return `react-${this.usesMui}-${cache_key}`;\n        }\n    }\n    exports.ReactComponent = ReactComponent;\n    _a = ReactComponent;\n    ReactComponent.__name__ = \"ReactComponent\";\n    ReactComponent.__module__ = \"panel.models.esm\";\n    (() => {\n        _a.prototype.default_view = ReactComponentView;\n        _a.define(({ Bool, Nullable, Str }) => ({\n            root_node: [Nullable(Str), null],\n            use_shadow_dom: [Bool, true],\n        }));\n        _a.override({\n            render_policy: \"manual\",\n        });\n    })();\n}\n","min_source":"function _(e,t,n,r,s){var o;r();const i=e(\"@bokehjs/core/build_views\"),a=e(\"@bokehjs/core/dom\"),d=e(\"@bokehjs/core/util/array\"),l=e(\"@bokehjs/core/util/assert\"),c=e(\"@bokehjs/core/util/types\"),h=e(\"e27ba47db3\");class _ extends a.InlineStyleSheet{constructor(e,t,n=!1,r=\"\"){super(e,t,n),this.persistent=n,this.host_id=r}replace(e,t){e=e.replace(/:host\\b/g,`#${this.host_id}`),super.replace(e,t)}prepend(e,t){e=e.replace(/:host\\b/g,`#${this.host_id}`),super.prepend(e,t)}append(e,t){e=e.replace(/:host\\b/g,`#${this.host_id}`),super.append(e,t)}}async function p(e,t,n){(0,l.assert)(null!=e,\"model doesn't implement a view\");const r=new e({...n,model:t});return r.initialize(),await r.lazy_initialize(),r}async function u(e,t,n={parent:null},r=e=>e.default_view){const s=(0,d.difference)([...e.keys()],t),o=[];for(const t of s){const n=e.get(t);null!=n&&(e.delete(t),o.push(n))}const i=[],a=t.filter((t=>!e.has(t)));for(const t of a){const s=await p(r(t),t,n);e.set(t,s),i.push(s)}for(const e of i)e.connect_signals();return{created:i,removed:o}}n.HostedStyleSheet=_,_.__name__=\"HostedStyleSheet\";class m extends h.ReactiveESMView{constructor(){super(...arguments),this.model_getter=h.model_getter,this.model_setter=h.model_setter,this.react_root=null,this._force_update_callbacks=[],this._scheduled_removals=[]}initialize(){super.initialize(),this.use_shadow_dom||(this.display=new _(\"\",\"display\",!1,this.model.id),this.style=new _(\"\",\"style\",!1,this.model.id),this.parent_style=new _(\"\",\"parent\",!0,this.model.id))}get use_shadow_dom(){return this.model.use_shadow_dom||!(this.parent instanceof m)}render_esm(){if(null!==this.model.compiled&&null!==this.model.render_module){this.model.usesMui&&(this.model.root_node?this.style_cache=document.head:(this.style_cache=document.createElement(\"head\"),this.shadow_el.insertBefore(this.style_cache,this.container))),this.accessed_properties=[];for(const e of this._lifecycle_handlers.keys())(this._lifecycle_handlers.get(e)||[]).splice(0);this.model.disconnect_watchers(this),this.model.render_module.then((e=>{this.react_root=e.default.render(this.model.id)}))}}on_force_update(e){this._force_update_callbacks.push(e)}force_update(){for(const e of this._force_update_callbacks)e()}remove(){if(this._force_update_callbacks=[],this.react_root&&this.use_shadow_dom){super.remove(),this.react_root.then((e=>e&&e.unmount()));for(const e of this._scheduled_removals)e.remove();this._scheduled_removals=[]}else{this._applied_stylesheets.forEach((e=>e.uninstall()));for(const e of this._lifecycle_handlers.get(\"remove\")||[])e();this._child_callbacks.clear(),this._child_rendered.clear(),this._mounted.clear()}}get root_view(){let e=this;if(this.use_shadow_dom)return e;for(;e.parent instanceof m;)e=e.parent;return e}_apply_stylesheets(e){const t=e.map((e=>(0,c.isString)(e)?new a.InlineStyleSheet(e):e)),n=this.root_view.shadow_el.querySelectorAll(\"style\"),r=this.root_view.shadow_el.querySelectorAll(\"link\");t.forEach((e=>{if(!this.use_shadow_dom){if(e instanceof a.InlineStyleSheet&&Array.from(n).some((t=>t.innerHTML===e.css)))return;if(e instanceof a.ImportedStyleSheet&&Array.from(r).some((t=>t.href===e.el.href)))return}this._applied_stylesheets.push(e),e.install(this.root_view.shadow_el)}))}render(){this.react_root&&this.react_root.then((e=>e.unmount())),this._force_update_callbacks=[],super.render()}r_after_render(){super.r_after_render(),this.use_shadow_dom&&this.force_update()}_update_layout(){super._update_layout();const e=this._lifecycle_handlers.get(\"update_layout\")||[];for(const t of e)t()}async build_child_views(){const e=this.model.use_shadow_dom?u:i.build_views,{created:t,removed:n}=await e(this._child_views,this.child_models,{parent:this});for(const e of n)this._resize_observer.unobserve(e.el),this.model.use_shadow_dom&&(this._child_rendered.delete(e),t.length?this._scheduled_removals.push(e):e.remove());for(const e of t)this._resize_observer.observe(e.el,{box:\"border-box\"});return t}async update_children(){const e=new Set(await this.build_child_views()),t=new Map;for(const n of this.child_views){if(!e.has(n))continue;const r=this._lookup_child(n);r&&(t.has(r)?t.get(r).push(n):t.set(r,[n]))}for(const e of this.model.children){const n=this._child_callbacks.get(e)||[],r=t.get(e)||[];if(r)for(const e of n)e(r)}this._update_children()}_on_mounted(){this.invalidate_layout()}patch_container(e){this.el=this.container=e,this._update_stylesheets(),this.class_list=new a.ClassList(this.container.classList),this._apply_html_attributes()}after_rendered(){const e=this._lifecycle_handlers.get(\"after_render\")||[];for(const t of e)t();if(!this._rendered)for(const e of this._lifecycle_handlers.get(\"after_layout\")||[])e();this._rendered=!0}}n.ReactComponentView=m,m.__name__=\"ReactComponentView\";class f extends h.ReactiveESM{constructor(e){super(e),this.sucrase_transforms=[\"typescript\",\"jsx\"]}get usesMui(){return!!this.importmap?.imports&&Object.keys(this.importmap?.imports).some((e=>e.startsWith(\"@mui\")))}_render_code(){let[e,t]=[\"\",\"\"];const n=\"url\"===this.bundle?this.esm:this.bundle||`${this.class_name}-${this.esm.length}`;this.bundle?t=`\\n  const ns = await view._module_cache.get(\"${n}\")\\n  const {React, createRoot} = ns.default`:e='\\nimport * as React from \"react\"\\nimport { createRoot } from \"react-dom/client\"';let r=\"\",s=\"\";return this.usesMui&&(this.bundle?t=`\\n  const ns = await view._module_cache.get(\"${n}\")\\n  const {CacheProvider, React, createCache, createRoot} = ns.default`:e=`\\n${e}\\nimport createCache from \"@emotion/cache\"\\nimport { CacheProvider } from \"@emotion/react\"`,r='\\n  if (view.use_shadow_dom) {\\n    const css_key = id.replace(\"-\", \"\").replace(/d/g, (digit) => String.fromCharCode(digit.charCodeAt(0) + 49)).toLowerCase()\\n    view.mui_cache = createCache({\\n      key: \\'css-\\'+css_key,\\n      prepend: true,\\n      container: view.style_cache,\\n    })\\n  }',s=\"\\n  if (rendered && ((view.parent?.react_root === undefined) || view.model.use_shadow_dom)) {\\n    rendered = React.createElement(CacheProvider, {value: view.mui_cache}, rendered)\\n  }\"),`\\n${e}\\n\\nasync function render(id) {\\n  const view = Bokeh.index.find_one_by_id(id)\\n  if (view == null) {\\n    return null\\n  }\\n\\n  ${t}\\n\\n  class Child extends React.PureComponent {\\n\\n    state = {rendered: null}\\n\\n    constructor(props) {\\n      super(props)\\n      this.render_callback = null\\n      this.containerRef = React.createRef()\\n    }\\n\\n    updateElement() {\\n      const childView = this.view\\n      const el = childView?.el\\n      if (el && this.containerRef.current && !this.containerRef.current.contains(el)) {\\n        this.containerRef.current.innerHTML = \"\"\\n        this.containerRef.current.appendChild(el)\\n      }\\n    }\\n\\n    get view() {\\n      const child = this.props.parent.model.data[this.props.name]\\n      const model = this.props.id == null ? child : child.find(item => item.id === this.props.id)\\n      return this.props.parent.get_child_view(model)\\n    }\\n\\n    get element() {\\n      const view = this.view\\n      return view == null ? null : view.el\\n    }\\n\\n    get use_shadow_dom() {\\n      return this.view?.model.use_shadow_dom || (this.view?.react_root === undefined)\\n    }\\n\\n    componentDidMount() {\\n      const view = this.view\\n      this.render_callback = (new_views) => {\\n        const view = this.view\\n        if (!view) {\\n          return\\n        }\\n        this.updateElement()\\n        if (new_views.includes(view)) {\\n          if (this.use_shadow_dom) {\\n            for (const view of this.props.parent._scheduled_removals) { view.remove() }\\n            this.props.parent._scheduled_removals = []\\n            this.props.parent.rerender_(view)\\n            this.props.parent._child_rendered.set(view, true)\\n          } else {\\n            view.patch_container(this.containerRef.current)\\n            view.model.render_module.then(async (mod) => {\\n              for (const view of this.props.parent._scheduled_removals) { view.remove() }\\n              this.props.parent._scheduled_removals = []\\n              this.setState(\\n                {rendered: await mod.default.render(view.model.id)},\\n                () => {\\n                  this.props.parent.notify_mount(this.props.name, view.model.id)\\n                  this.view.r_after_render()\\n                  this.view.after_rendered()\\n                }\\n              )\\n            })\\n          }\\n        }\\n      }\\n      this.props.parent.on_child_render(this.props.name, this.render_callback)\\n      if (view == null) { return }\\n      for (const rview of this.props.parent._scheduled_removals) { rview.remove() }\\n      this.props.parent._scheduled_removals = []\\n      if (this.use_shadow_dom) {\\n        this.updateElement()\\n        this.props.parent.rerender_(view)\\n        this.props.parent._child_rendered.set(view, true)\\n        this.props.parent.notify_mount(this.props.name, view.model.id)\\n      } else {\\n        view.patch_container(this.containerRef.current)\\n        view.model.render_module.then(async (mod) => {\\n          this.setState(\\n            {rendered: await mod.default.render(view.model.id)},\\n            () => {\\n              this.props.parent.notify_mount(this.props.name, view.model.id)\\n              this.view.r_after_render()\\n              this.view.after_rendered()\\n            }\\n          )\\n        })\\n      }\\n    }\\n\\n    componentWillUnmount() {\\n      if (this.render_callback) {\\n        this.props.parent.remove_on_child_render(this.props.name, this.render_callback)\\n      }\\n      if (!this.use_shadow_dom && this.view._mounted.has(this.props.name)) {\\n        this.view._mounted.get(this.props.name).delete(this.props.id)\\n      }\\n    }\\n\\n    componentDidUpdate() {\\n      if (this.use_shadow_dom) {\\n        this.updateElement()\\n      }\\n    }\\n\\n    render() {\\n      const child = this.state.rendered\\n      const class_name = (this.use_shadow_dom ?\\n        \"child-wrapper\" : this.view.model.class_name.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase()\\n      )\\n      return React.createElement('div', {id: this.view?.model.id, className: class_name, ref: this.containerRef}, child)\\n    }\\n  }\\n\\n  function react_getter(target, name) {\\n    if (name === \"useMount\") {\\n      return (callback) => React.useEffect(() => {\\n        target.model_proxy.on('lifecycle:mounted', callback)\\n        return () => target.model_proxy.off('lifecycle:mounted', callback)\\n      }, [])\\n    } if (name == \"useState\") {\\n      return (prop) => {\\n        const data_model = target.model.data\\n        const propPath = prop.split(\".\")\\n        let targetModel = data_model\\n        let resolvedProp = null\\n\\n        for (let i = 0; i < propPath.length - 1; i++) {\\n          if (targetModel && targetModel.properties && propPath[i] in targetModel.properties) {\\n            targetModel = targetModel[propPath[i]]\\n          } else {\\n            // Stop if any part of the path is missing\\n            targetModel = null\\n            break\\n          }\\n        }\\n        if (targetModel && targetModel.attributes && propPath[propPath.length - 1] in targetModel.attributes) {\\n          resolvedProp = propPath[propPath.length - 1]\\n        }\\n        if (resolvedProp && targetModel) {\\n          const [value, setValue] = React.useState(targetModel.attributes[resolvedProp])\\n\\n          React.useEffect(() => {\\n            const cb = () => {\\n              if (target.model.events.includes(resolvedProp)) {\\n                targetModel.attributes[resolvedProp] && (setValue((v) => v+1) || targetModel.setv({[resolvedProp]: false}))\\n              } else {\\n                setValue(targetModel.attributes[resolvedProp])\\n              }\\n            }\\n            react_proxy.on(prop, cb, true)\\n            return () => react_proxy.off(prop, cb)\\n          }, [])\\n\\n          React.useEffect(() => {\\n            if (!target.model.events.includes(resolvedProp)) {\\n              targetModel.setv({ [resolvedProp]: value })\\n            }\\n          }, [value])\\n\\n          return [value, setValue]\\n        }\\n        throw ReferenceError(\"Could not resolve \" + prop + \" on \" + target.model.class_name)\\n      }\\n    } else if (name === \"get_child\") {\\n      return (child) => {\\n        const data_model = target.model.data\\n        const value = data_model.attributes[child]\\n        if (Array.isArray(value)) {\\n          const [children_state, set_children] = React.useState(value.map((model) =>\\n            React.createElement(Child, { parent: target, name: child, key: model.id, id: model.id })\\n          ))\\n          React.useEffect(() => {\\n            target.on_child_render(child, () => {\\n              const current_models = data_model.attributes[child]\\n              const previous_models = children_state.map(child => child.props.id)\\n              if (current_models.some((model, i) => model.id !== previous_models[i])) {\\n                set_children(current_models.map((model, i) => (\\n                  React.createElement(Child, { parent: target, name: child, key: model.id, id: model.id })\\n                )))\\n              }\\n            })\\n          }, [])\\n          return children_state\\n        } else {\\n          return React.createElement(Child, {parent: target, name: child})\\n        }\\n      }\\n    }\\n    return target.model_getter(target, name)\\n  }\\n\\n  const react_proxy = new Proxy(view, {\\n    get: react_getter,\\n    set: view.model_setter\\n  })\\n\\n  class ErrorBoundary extends React.Component {\\n  constructor(props) {\\n    super(props)\\n    // initialize the error state\\n    this.state = { hasError: false }\\n  }\\n\\n  // if an error happened, set the state to true\\n  static getDerivedStateFromError(error) {\\n    return { hasError: true }\\n  }\\n\\n  componentDidCatch(error) {\\n    this.props.view.render_error(error)\\n  }\\n\\n  render() {\\n    if (this.state.hasError) {\\n      return React.createElement('div')\\n    }\\n    return React.createElement('div', {className: \"error-wrapper\"}, this.props.children)\\n  }\\n  }\\n\\n  class Component extends React.Component {\\n\\n    constructor(props) {\\n      super(props)\\n      ${r}\\n    }\\n\\n    componentDidMount() {\\n      if (!this.props.view.use_shadow_dom) { return }\\n      this.props.view.on_force_update(() => {\\n        ${r}\\n        this.forceUpdate()\\n      })\\n      this.props.view._changing = false\\n      this.props.view.after_rendered()\\n    }\\n\\n    render() {\\n      let rendered = React.createElement(this.props.view.render_fn, this.props)\\n      if (this.props.view.model.dev) {\\n        rendered = React.createElement(ErrorBoundary, {view}, rendered)\\n      }\\n      ${s}\\n      return rendered\\n    }\\n  }\\n\\n  const props = {view, model: react_proxy, data: view.model.data, el: view.container}\\n  const rendered = React.createElement(Component, props)\\n  if (!view.model.use_shadow_dom && (view.parent?.react_root !== undefined)) {\\n    return rendered\\n  }\\n  if (rendered) {\\n    view._changing = true\\n    let container\\n    if (view.model.root_node) {\\n      container = document.querySelector(view.model.root_node)\\n      if (container == null) {\\n        container = document.createElement(\"div\")\\n        container.id = view.model.root_node.replace(\"#\", \"\")\\n        document.body.append(container)\\n      }\\n    } else {\\n      container = view.container\\n    }\\n    const root = createRoot(container)\\n    try {\\n      root.render(rendered)\\n    } catch(e) {\\n      view.render_error(e)\\n    }\\n    return root\\n  }\\n}\\n\\nexport default {render}`}compile(){const e=super.compile();return this.bundle?e:null!==e&&e.includes(\"React\")?`\\nimport * as React from \"react\"\\n\\n${e}`:e}get _render_cache_key(){const e=\"url\"===this.bundle?this.esm:this.bundle||`${this.class_name}-${this.esm.length}`;return`react-${this.usesMui}-${e}`}}n.ReactComponent=f,o=f,f.__name__=\"ReactComponent\",f.__module__=\"panel.models.esm\",o.prototype.default_view=m,o.define((({Bool:e,Nullable:t,Str:n})=>({root_node:[t(n),null],use_shadow_dom:[e,!0]}))),o.override({render_policy:\"manual\"})}\n//# sourceMappingURL=react_component.min.js.map","min_map":"{\"version\":3,\"file\":\"react_component.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"build_views_1\",\"dom_1\",\"array_1\",\"assert_1\",\"types_1\",\"reactive_esm_1\",\"HostedStyleSheet\",\"InlineStyleSheet\",\"constructor\",\"css\",\"id\",\"persistent\",\"host_id\",\"super\",\"this\",\"replace\",\"styles\",\"prepend\",\"append\",\"async\",\"_build_view\",\"view_cls\",\"model\",\"options\",\"assert\",\"view\",\"initialize\",\"lazy_initialize\",\"build_views_no_remove\",\"view_storage\",\"models\",\"parent\",\"cls\",\"default_view\",\"to_remove\",\"difference\",\"keys\",\"removed_views\",\"get\",\"delete\",\"push\",\"created_views\",\"new_models\",\"filter\",\"has\",\"set\",\"connect_signals\",\"created\",\"removed\",\"__name__\",\"ReactComponentView\",\"ReactiveESMView\",\"arguments\",\"model_getter\",\"model_setter\",\"react_root\",\"_force_update_callbacks\",\"_scheduled_removals\",\"use_shadow_dom\",\"display\",\"style\",\"parent_style\",\"render_esm\",\"compiled\",\"render_module\",\"usesMui\",\"root_node\",\"style_cache\",\"document\",\"head\",\"createElement\",\"shadow_el\",\"insertBefore\",\"container\",\"accessed_properties\",\"lf\",\"_lifecycle_handlers\",\"splice\",\"disconnect_watchers\",\"then\",\"mod\",\"default\",\"render\",\"on_force_update\",\"cb\",\"force_update\",\"remove\",\"root\",\"unmount\",\"_applied_stylesheets\",\"forEach\",\"stylesheet\",\"uninstall\",\"_child_callbacks\",\"clear\",\"_child_rendered\",\"_mounted\",\"root_view\",\"_apply_stylesheets\",\"stylesheets\",\"resolved_stylesheets\",\"map\",\"isString\",\"querySelectorAll\",\"links\",\"Array\",\"from\",\"some\",\"innerHTML\",\"ImportedStyleSheet\",\"link\",\"href\",\"el\",\"install\",\"r_after_render\",\"_update_layout\",\"handlers\",\"build_child_views\",\"build_fn\",\"build_views\",\"_child_views\",\"child_models\",\"_resize_observer\",\"unobserve\",\"length\",\"observe\",\"box\",\"update_children\",\"created_children\",\"Set\",\"new_views\",\"Map\",\"child_view\",\"child_views\",\"child\",\"_lookup_child\",\"children\",\"callbacks\",\"new_children\",\"callback\",\"_update_children\",\"_on_mounted\",\"invalidate_layout\",\"patch_container\",\"_update_stylesheets\",\"class_list\",\"ClassList\",\"classList\",\"_apply_html_attributes\",\"after_rendered\",\"_rendered\",\"ReactComponent\",\"ReactiveESM\",\"attrs\",\"sucrase_transforms\",\"importmap\",\"imports\",\"Object\",\"k\",\"startsWith\",\"_render_code\",\"import_code\",\"bundle_code\",\"cache_key\",\"bundle\",\"esm\",\"class_name\",\"init_code\",\"render_code\",\"compile\",\"includes\",\"_render_cache_key\",\"__module__\",\"prototype\",\"define\",\"Bool\",\"Nullable\",\"Str\",\"override\",\"render_policy\"],\"sources\":[\"0\"],\"mappings\":\"AAAgC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC7E,IAAIC,EACJF,IACA,MAAMG,EAAgBN,EAAQ,6BACxBO,EAAQP,EAAQ,qBAChBQ,EAAUR,EAAQ,4BAClBS,EAAWT,EAAQ,6BACnBU,EAAUV,EAAQ,4BAClBW,EAAiBX,EAAQ,cAC/B,MAAMY,UAAyBL,EAAMM,iBACjC,WAAAC,CAAYC,EAAKC,EAAIC,GAAa,EAAOC,EAAU,IAC/CC,MAAMJ,EAAKC,EAAIC,GACfG,KAAKH,WAAaA,EAClBG,KAAKF,QAAUA,CACnB,CACA,OAAAG,CAAQN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GAAsBA,EAAS2G,SAAS,SAG1C,uCAGjB3G,IALqBA,CAMf,CACA,qBAAI4G,GACA,MAAMR,EAA6B,QAAhBrJ,KAAKsJ,OAAoBtJ,KAAKuJ,IAAOvJ,KAAKsJ,QAAU,GAAGtJ,KAAKwJ,cAAcxJ,KAAKuJ,IAAIzC,SACtG,MAAO,SAAS9G,KAAKmD,WAAWkG,GACpC,EAEJvK,EAAQ2J,eAAiBA,EACzBxJ,EAAKwJ,EACLA,EAAetG,SAAW,iBAC1BsG,EAAeqB,WAAa,mBAExB7K,EAAG8K,UAAU5I,aAAeiB,EAC5BnD,EAAG+K,QAAO,EAAGC,OAAMC,WAAUC,UAAU,CACnC/G,UAAW,CAAC8G,EAASC,GAAM,MAC3BvH,eAAgB,CAACqH,GAAM,OAE3BhL,EAAGmL,SAAS,CACRC,cAAe,UAG3B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/reactive_html.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/reactive_html.js","canonical":"models/reactive_html","resolution":"ESM","id":"d5752cda5a","hash":"d5752cda5a929aa549be79309fe32fc6ca93189b4ee29ec02779ffa63ab8ab1a","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReactiveHTML = exports.ReactiveHTMLView = void 0;\nconst preact_1 = require(\"preact\");\nconst hooks_1 = require(\"preact/hooks\");\nconst preact_2 = require(\"htm/preact\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst assert_1 = require(\"@bokehjs/core/util/assert\");\nconst iterator_1 = require(\"@bokehjs/core/util/iterator\");\nconst types_1 = require(\"@bokehjs/core/util/types\");\nconst object_1 = require(\"@bokehjs/core/util/object\");\nconst model_1 = require(\"@bokehjs/model\");\nconst ui_element_1 = require(\"@bokehjs/models/ui/ui_element\");\nconst data_1 = require(\"./data\");\nconst event_to_object_1 = require(\"./event-to-object\");\nconst html_1 = require(\"./html\");\nconst layout_1 = require(\"./layout\");\nconst util_1 = require(\"./util\");\nfunction serialize_attrs(attrs) {\n    const serialized = {};\n    for (const [attr, value] of (0, object_1.entries)(attrs)) {\n        const serialized_value = (() => {\n            if ((0, types_1.isString)(value)) {\n                if (value !== \"\" && (value === \"NaN\" || !isNaN(Number(value)))) {\n                    return Number(value);\n                }\n                else if (value === \"false\" || value === \"true\") {\n                    return value === \"true\" ? true : false;\n                }\n            }\n            return value;\n        })();\n        serialized[attr] = serialized_value;\n    }\n    return serialized;\n}\nfunction escape_regex(string) {\n    return string.replace(/[-\\/\\\\^$*+?.()|[\\]]/g, \"\\\\$&\");\n}\nfunction extract_token(template, str, tokens) {\n    const token_mapping = new Map();\n    for (const match of tokens) {\n        token_mapping.set(`{${match}}`, \"(.*)\");\n    }\n    const token_list = [];\n    let regexp_template = `^${escape_regex(template)}$`;\n    // Find the order of the tokens\n    let i, token_index, token_entry;\n    for (const [m, replacement] of token_mapping) {\n        token_index = template.indexOf(m);\n        // Token found\n        if (token_index > -1) {\n            regexp_template = regexp_template.replace(m, replacement);\n            token_entry = {\n                index: token_index,\n                token: m,\n            };\n            for (i = 0; i < token_list.length && token_list[i].index < token_index; i++) { }\n            // Insert it at index i\n            if (i < token_list.length) {\n                token_list.splice(i, 0, token_entry);\n            }\n            else {\n                token_list.push(token_entry);\n            }\n        }\n    }\n    regexp_template = regexp_template.replace(/\\{[^{}]+\\}/g, \".*\");\n    const match = new RegExp(regexp_template).exec(str);\n    if (match != null) {\n        const result = {};\n        // Find your token entry\n        for (i = 0; i < token_list.length; i++) {\n            result[token_list[i].token.slice(1, -1)] = match[i + 1];\n        }\n        return result;\n    }\n    else {\n        return null;\n    }\n}\nfunction element_lookup(root, el_id) {\n    let el = root.getElementById(el_id);\n    if (el == null) {\n        el = document.getElementById(el_id);\n    }\n    return el;\n}\nclass ReactiveHTMLView extends layout_1.HTMLBoxView {\n    constructor() {\n        super(...arguments);\n        this._changing = false;\n        this._event_listeners = new Map();\n        this._mutation_observers = [];\n        this._script_fns = new Map();\n        this._state = {};\n    }\n    initialize() {\n        super.initialize();\n        this.html = (0, html_1.html_decode)(this.model.html) ?? this.model.html;\n    }\n    _recursive_connect(model, update_children, path) {\n        for (const prop of model) {\n            const subpath = path.length != 0 ? `${path}.${prop.attr}` : prop.attr;\n            const obj = prop.get_value();\n            if (obj == null) {\n                continue;\n            }\n            if (obj instanceof model_1.Model) {\n                this._recursive_connect(obj, true, subpath);\n            }\n            this.on_change(prop, () => {\n                if (update_children) {\n                    for (const [node, attr] of (0, object_1.entries)(this.model.children)) {\n                        if (attr == prop.attr) {\n                            let children = prop.get_value();\n                            if (!(0, types_1.isArray)(children)) {\n                                children = [children];\n                            }\n                            this._render_node(node, children);\n                            return;\n                        }\n                    }\n                }\n                if (!this._changing) {\n                    this._update(subpath);\n                }\n            });\n        }\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { children, events } = this.model.properties;\n        this.on_change(children, async () => {\n            this.html = (0, html_1.html_decode)(this.model.html) ?? this.model.html;\n            await this.build_child_views();\n            this.invalidate_render();\n        });\n        this._recursive_connect(this.model.data, true, \"\");\n        this.on_change(events, () => {\n            this._remove_event_listeners();\n            this._setup_event_listeners();\n        });\n        this.connect_scripts();\n    }\n    connect_scripts() {\n        const { id } = this.model.data;\n        for (const [prop, scripts] of (0, object_1.entries)(this.model.scripts)) {\n            let data_model = this.model.data;\n            let attr;\n            if (prop.includes(\".\")) {\n                const path = prop.split(\".\");\n                attr = path[path.length - 1];\n                for (const p of path.slice(0, -1)) {\n                    const value = data_model.property(p).get_value();\n                    (0, assert_1.assert)(value instanceof model_1.Model);\n                    data_model = value;\n                }\n            }\n            else {\n                attr = prop;\n            }\n            for (const script of scripts) {\n                const decoded_script = (0, html_1.html_decode)(script) ?? script;\n                const script_fn = this._render_script(decoded_script, id);\n                this._script_fns.set(prop, script_fn);\n                if (!(attr in data_model.properties)) {\n                    continue;\n                }\n                const property = data_model.property(attr);\n                const is_event_param = this.model.event_params.includes(prop);\n                this.on_change(property, () => {\n                    if (!this._changing && !(is_event_param && !data_model.property(prop).get_value())) {\n                        this.run_script(prop);\n                        if (is_event_param) {\n                            data_model.setv({ [prop]: false });\n                        }\n                    }\n                });\n            }\n        }\n    }\n    run_script(property, silent = false) {\n        const script_fn = this._script_fns.get(property);\n        if (script_fn === undefined) {\n            if (!silent) {\n                console.warn(`Script '${property}' could not be found.`);\n            }\n            return;\n        }\n        const this_obj = {\n            get_records(property, index) {\n                return this.get_records(property, index);\n            },\n        };\n        for (const name of this._script_fns.keys()) {\n            this_obj[name] = () => this.run_script(name);\n        }\n        return script_fn(this.model, this.model.data, this._state, this, (s) => this.run_script(s), this_obj);\n    }\n    get_records(property_name, index = true) {\n        return (0, data_1.dict_to_records)(this.model.data.property(property_name), index);\n    }\n    disconnect_signals() {\n        super.disconnect_signals();\n        this._remove_event_listeners();\n        this._remove_mutation_observers();\n    }\n    remove() {\n        this.run_script(\"remove\", true);\n        super.remove();\n    }\n    get child_models() {\n        const models = [];\n        for (const [_parent, children] of (0, object_1.entries)(this.model.children)) {\n            for (const model of children) {\n                if (!(0, types_1.isString)(model)) {\n                    models.push(model);\n                }\n            }\n        }\n        return models;\n    }\n    _after_layout() {\n        this.run_script(\"after_layout\", true);\n    }\n    render() {\n        this.empty();\n        this._update_stylesheets();\n        this._update_css_classes();\n        this._apply_styles();\n        this._apply_visible();\n        this.container = (0, dom_1.div)({ style: { display: \"contents\" } });\n        this.shadow_el.append(this.container);\n        this._update();\n        this._render_children();\n        this._setup_mutation_observers();\n        this._setup_event_listeners();\n        this.run_script(\"render\", true);\n    }\n    _send_event(elname, attr, event) {\n        const serialized = (0, util_1.convertUndefined)((0, event_to_object_1.serializeEvent)(event));\n        serialized.type = attr;\n        this.model.trigger_event(new html_1.DOMEvent(elname, serialized));\n    }\n    _render_child(child, el) {\n        if ((0, types_1.isString)(child)) {\n            el.innerHTML = (0, html_1.html_decode)(child) ?? child;\n        }\n        else {\n            const view = this._child_views.get(child);\n            if (view == null) {\n                el.innerHTML = \"\";\n            }\n            else {\n                el.appendChild(view.el);\n                view.render();\n                view.r_after_render();\n            }\n        }\n    }\n    _render_node(node, children) {\n        const { id } = this.model.data;\n        if (this.model.looped.includes(node)) {\n            for (const [child, i] of (0, iterator_1.enumerate)(children)) {\n                const el_id = `${node}-${i}-${id}`;\n                const el = element_lookup(this.shadow_el, el_id);\n                if (el == null) {\n                    console.warn(`DOM node '${el_id}' could not be found. Cannot render children.`);\n                    continue;\n                }\n                this._render_child(child, el);\n            }\n        }\n        else {\n            const el_id = `${node}-${id}`;\n            const el = element_lookup(this.shadow_el, el_id);\n            if (el == null) {\n                console.warn(`DOM node '${el_id}' could not be found. Cannot render children.`);\n                return;\n            }\n            for (const child of children) {\n                this._render_child(child, el);\n            }\n        }\n    }\n    _render_children() {\n        for (const [node, children] of (0, object_1.entries)(this.model.children)) {\n            const computed_children = (() => {\n                if ((0, types_1.isString)(children)) {\n                    const value = this.model.data.property(children).get_value();\n                    if ((0, types_1.isString)(value)) {\n                        return [value];\n                    }\n                    else if ((0, types_1.isArray)(value)) {\n                        return value;\n                    }\n                    else {\n                        (0, assert_1.unreachable)();\n                    }\n                }\n                else {\n                    return children;\n                }\n            })();\n            this._render_node(node, computed_children);\n        }\n    }\n    _render_html(literal, state = {}) {\n        let htm = literal.replace(/[`]/g, \"\\\\$&\");\n        let collected_callbacks = \"\";\n        const methods = [];\n        for (const [el_name, callbacks] of (0, object_1.entries)(this.model.callbacks)) {\n            for (const [cb, method] of callbacks) {\n                let definition;\n                htm = htm.replaceAll(`\\${${method}}`, `$--{${method}}`);\n                if (method.startsWith(\"script(\")) {\n                    const meth = (method\n                        .replace(\"('\", \"_\").replace(\"')\", \"\")\n                        .replace('(\"', \"_\").replace('\")', \"\")\n                        .replace(\"-\", \"_\"));\n                    const script_name = meth.replaceAll(\"script_\", \"\");\n                    htm = htm.replaceAll(method, meth);\n                    definition = `\n          const ${meth} = (event) => {\n            view._state.event = event\n            view.run_script(\"${script_name}\")\n            delete view._state.event\n          }\n          `;\n                }\n                else {\n                    definition = `\n          const ${method} = (event) => {\n            let elname = \"${el_name}\"\n            if (RegExp(\"\\{\\{.*loop\\.index.*\\}\\}\").test(elname)) {\n              const pattern = RegExp(elname.replace(/\\{\\{(.+?)\\}\\}/g, String.fromCharCode(92) + \"d+\"))\n              for (const p of event.path) {\n                if (pattern.exec(p.id) != null) {\n                  elname = p.id.split(\"-\").slice(null, -1).join(\"-\")\n                  break\n                }\n              }\n            }\n            view._send_event(elname, \"${cb}\", event)\n          }\n          `;\n                }\n                if (methods.indexOf(method) > -1) {\n                    continue;\n                }\n                methods.push(method);\n                collected_callbacks += definition;\n            }\n        }\n        htm = htm\n            .replaceAll(\"${model.\", \"$-{model.\")\n            .replaceAll(\"${\", \"${data.\")\n            .replaceAll(\"$-{model.\", \"${model.\")\n            .replaceAll(\"$--{\", \"${\");\n        return new Function(\"view, model, data, state, html, useCallback\", `${collected_callbacks}return html\\`${htm}\\`;`)(this, this.model, this.model.data, state, preact_2.html, hooks_1.useCallback);\n    }\n    _render_script(literal, id) {\n        const scripts = [];\n        for (const elname of this.model.nodes) {\n            const elvar = elname.replace(\"-\", \"_\");\n            if (!literal.includes(elvar)) {\n                continue;\n            }\n            const script = `\n      let ${elvar} = view.shadow_el.getElementById('${elname}-${id}')\n      if (${elvar} == null) {\n        ${elvar} = document.getElementById('${elname}-${id}')\n      }\n      if (${elvar} == null) {\n        console.warn(\"DOM node '${elname}' could not be found. Cannot execute callback.\")\n        return\n      }\n      `;\n            scripts.push(script);\n        }\n        const event = `\n    let event = null\n    if (state.event !== undefined) {\n      event = state.event\n    }\n    `;\n        scripts.push(event);\n        scripts.push(literal);\n        return new Function(\"model, data, state, view, script, self\", scripts.join(\"\\n\"));\n    }\n    _remove_mutation_observers() {\n        for (const observer of this._mutation_observers) {\n            observer.disconnect();\n        }\n        this._mutation_observers = [];\n    }\n    _setup_mutation_observers() {\n        const { id } = this.model.data;\n        for (const name of (0, object_1.keys)(this.model.attrs)) {\n            const el = element_lookup(this.shadow_el, `${name}-${id}`);\n            if (el == null) {\n                console.warn(`DOM node '${name}-${id}' could not be found. Cannot set up MutationObserver.`);\n                continue;\n            }\n            const observer = new MutationObserver(() => {\n                this._update_model(el, name);\n            });\n            observer.observe(el, { attributes: true });\n            this._mutation_observers.push(observer);\n        }\n    }\n    _remove_event_listeners() {\n        const { id } = this.model.data;\n        for (const [node, callbacks] of this._event_listeners) {\n            const el = element_lookup(this.shadow_el, `${node}-${id}`);\n            if (el == null) {\n                continue;\n            }\n            for (const [event_name, event_callback] of callbacks) {\n                el.removeEventListener(event_name, event_callback);\n            }\n        }\n        this._event_listeners.clear();\n    }\n    _setup_event_listeners() {\n        const { id } = this.model.data;\n        const attrs = (0, object_1.dict)(this.model.attrs);\n        for (const [node, node_events] of (0, object_1.entries)(this.model.events)) {\n            const el = element_lookup(this.shadow_el, `${node}-${id}`);\n            if (el == null) {\n                console.warn(`DOM node '${node}-${id}' could not be found. Cannot subscribe to DOM events.`);\n                continue;\n            }\n            for (const [event_name, event_doit] of (0, object_1.entries)(node_events)) {\n                const event_callback = (event) => {\n                    this._send_event(node, event_name, event);\n                    if (attrs.has(node) && event_doit) {\n                        this._update_model(el, node);\n                    }\n                };\n                el.addEventListener(event_name, event_callback);\n                let callbacks = this._event_listeners.get(node);\n                if (callbacks === undefined) {\n                    this._event_listeners.set(node, callbacks = new Map());\n                }\n                callbacks.set(event_name, event_callback);\n            }\n        }\n    }\n    _update(property = null) {\n        if (property == null || this.html.includes(`\\${${property}}`)) {\n            const rendered = this._render_html(this.html);\n            if (rendered == null) {\n                return;\n            }\n            try {\n                this._changing = true;\n                (0, preact_1.render)(rendered, this.container);\n            }\n            finally {\n                this._changing = false;\n            }\n        }\n    }\n    _update_model(el, name) {\n        if (this._changing) {\n            return;\n        }\n        const attr_infos = (0, object_1.dict)(this.model.attrs).get(name) ?? [];\n        const attrs = {};\n        for (const attr_info of attr_infos) {\n            const [attr, tokens, template] = attr_info;\n            let value = attr == \"children\" ? el.innerHTML : el[attr];\n            if (tokens.length === 1 && (`{${tokens[0]}}` === template)) {\n                attrs[tokens[0]] = value;\n            }\n            else if ((0, types_1.isString)(value)) {\n                value = extract_token(template, value, tokens);\n                if (value == null) {\n                    console.warn(`Could not resolve parameters in ${name} element ${attr} attribute value ${value}.`);\n                }\n                else {\n                    for (const [param, param_val] of (0, object_1.entries)(value)) {\n                        if (param_val === undefined) {\n                            console.warn(`Could not resolve ${param} in ${name} element ${attr} attribute value ${value}.`);\n                        }\n                        else {\n                            attrs[param] = param_val;\n                        }\n                    }\n                }\n            }\n        }\n        try {\n            this._changing = true;\n            this.model.data.setv(serialize_attrs(attrs));\n        }\n        catch {\n            console.error(\"Could not serialize\", attrs);\n        }\n        finally {\n            this._changing = false;\n        }\n    }\n}\nexports.ReactiveHTMLView = ReactiveHTMLView;\nReactiveHTMLView.__name__ = \"ReactiveHTMLView\";\nclass ReactiveHTML extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.ReactiveHTML = ReactiveHTML;\n_a = ReactiveHTML;\nReactiveHTML.__name__ = \"ReactiveHTML\";\nReactiveHTML.__module__ = \"panel.models.reactive_html\";\n(() => {\n    _a.prototype.default_view = ReactiveHTMLView;\n    _a.define(({ Bool, Str, List, Dict, Tuple, Or, Ref }) => ({\n        attrs: [Dict(List(Tuple(Str, List(Str), Str))), {}],\n        callbacks: [Dict(List(Tuple(Str, Str))), {}],\n        children: [Dict(Or(List(Or(Ref(ui_element_1.UIElement), Str)), Str)), {}],\n        data: [Ref(model_1.Model)],\n        event_params: [List(Str), []],\n        events: [Dict(Dict(Bool)), {}],\n        html: [Str, \"\"],\n        looped: [List(Str), []],\n        nodes: [List(Str), []],\n        scripts: [Dict(List(Str)), {}],\n    }));\n})();\n//# sourceMappingURL=reactive_html.js.map\n","type":"js","dependency_paths":[["preact","/home/runner/work/panel/panel/panel/node_modules/preact/dist/preact.module.js"],["preact/hooks","/home/runner/work/panel/panel/panel/node_modules/preact/hooks/dist/hooks.module.js"],["htm/preact","/home/runner/work/panel/panel/panel/node_modules/htm/preact/index.module.js"],["./data","/home/runner/work/panel/panel/panel/dist/lib/models/data.js"],["./event-to-object","/home/runner/work/panel/panel/panel/dist/lib/models/event-to-object.js"],["./html","/home/runner/work/panel/panel/panel/dist/lib/models/html.js"],["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"],["./util","/home/runner/work/panel/panel/panel/dist/lib/models/util.js"]],"dependency_map":[],"exported":[{"type":"named","name":"ReactiveHTMLView"},{"type":"named","name":"ReactiveHTML"}],"externals":[],"shims":[]},"code":{"source":"/* models/reactive_html.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const preact_1 = require(\"091628d34a\") /* preact */;\n    const hooks_1 = require(\"9295b344df\") /* preact/hooks */;\n    const preact_2 = require(\"b3f51db71c\") /* htm/preact */;\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const assert_1 = require(\"@bokehjs/core/util/assert\");\n    const iterator_1 = require(\"@bokehjs/core/util/iterator\");\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    const object_1 = require(\"@bokehjs/core/util/object\");\n    const model_1 = require(\"@bokehjs/model\");\n    const ui_element_1 = require(\"@bokehjs/models/ui/ui_element\");\n    const data_1 = require(\"be689f0377\") /* ./data */;\n    const event_to_object_1 = require(\"a572dba9cd\") /* ./event-to-object */;\n    const html_1 = require(\"4c04683fdc\") /* ./html */;\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    const util_1 = require(\"a3669a897a\") /* ./util */;\n    function serialize_attrs(attrs) {\n        const serialized = {};\n        for (const [attr, value] of (0, object_1.entries)(attrs)) {\n            const serialized_value = (() => {\n                if ((0, types_1.isString)(value)) {\n                    if (value !== \"\" && (value === \"NaN\" || !isNaN(Number(value)))) {\n                        return Number(value);\n                    }\n                    else if (value === \"false\" || value === \"true\") {\n                        return value === \"true\" ? true : false;\n                    }\n                }\n                return value;\n            })();\n            serialized[attr] = serialized_value;\n        }\n        return serialized;\n    }\n    function escape_regex(string) {\n        return string.replace(/[-\\/\\\\^$*+?.()|[\\]]/g, \"\\\\$&\");\n    }\n    function extract_token(template, str, tokens) {\n        const token_mapping = new Map();\n        for (const match of tokens) {\n            token_mapping.set(`{${match}}`, \"(.*)\");\n        }\n        const token_list = [];\n        let regexp_template = `^${escape_regex(template)}$`;\n        // Find the order of the tokens\n        let i, token_index, token_entry;\n        for (const [m, replacement] of token_mapping) {\n            token_index = template.indexOf(m);\n            // Token found\n            if (token_index > -1) {\n                regexp_template = regexp_template.replace(m, replacement);\n                token_entry = {\n                    index: token_index,\n                    token: m,\n                };\n                for (i = 0; i < token_list.length && token_list[i].index < token_index; i++) { }\n                // Insert it at index i\n                if (i < token_list.length) {\n                    token_list.splice(i, 0, token_entry);\n                }\n                else {\n                    token_list.push(token_entry);\n                }\n            }\n        }\n        regexp_template = regexp_template.replace(/\\{[^{}]+\\}/g, \".*\");\n        const match = new RegExp(regexp_template).exec(str);\n        if (match != null) {\n            const result = {};\n            // Find your token entry\n            for (i = 0; i < token_list.length; i++) {\n                result[token_list[i].token.slice(1, -1)] = match[i + 1];\n            }\n            return result;\n        }\n        else {\n            return null;\n        }\n    }\n    function element_lookup(root, el_id) {\n        let el = root.getElementById(el_id);\n        if (el == null) {\n            el = document.getElementById(el_id);\n        }\n        return el;\n    }\n    class ReactiveHTMLView extends layout_1.HTMLBoxView {\n        constructor() {\n            super(...arguments);\n            this._changing = false;\n            this._event_listeners = new Map();\n            this._mutation_observers = [];\n            this._script_fns = new Map();\n            this._state = {};\n        }\n        initialize() {\n            super.initialize();\n            this.html = (0, html_1.html_decode)(this.model.html) ?? this.model.html;\n        }\n        _recursive_connect(model, update_children, path) {\n            for (const prop of model) {\n                const subpath = path.length != 0 ? `${path}.${prop.attr}` : prop.attr;\n                const obj = prop.get_value();\n                if (obj == null) {\n                    continue;\n                }\n                if (obj instanceof model_1.Model) {\n                    this._recursive_connect(obj, true, subpath);\n                }\n                this.on_change(prop, () => {\n                    if (update_children) {\n                        for (const [node, attr] of (0, object_1.entries)(this.model.children)) {\n                            if (attr == prop.attr) {\n                                let children = prop.get_value();\n                                if (!(0, types_1.isArray)(children)) {\n                                    children = [children];\n                                }\n                                this._render_node(node, children);\n                                return;\n                            }\n                        }\n                    }\n                    if (!this._changing) {\n                        this._update(subpath);\n                    }\n                });\n            }\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { children, events } = this.model.properties;\n            this.on_change(children, async () => {\n                this.html = (0, html_1.html_decode)(this.model.html) ?? this.model.html;\n                await this.build_child_views();\n                this.invalidate_render();\n            });\n            this._recursive_connect(this.model.data, true, \"\");\n            this.on_change(events, () => {\n                this._remove_event_listeners();\n                this._setup_event_listeners();\n            });\n            this.connect_scripts();\n        }\n        connect_scripts() {\n            const { id } = this.model.data;\n            for (const [prop, scripts] of (0, object_1.entries)(this.model.scripts)) {\n                let data_model = this.model.data;\n                let attr;\n                if (prop.includes(\".\")) {\n                    const path = prop.split(\".\");\n                    attr = path[path.length - 1];\n                    for (const p of path.slice(0, -1)) {\n                        const value = data_model.property(p).get_value();\n                        (0, assert_1.assert)(value instanceof model_1.Model);\n                        data_model = value;\n                    }\n                }\n                else {\n                    attr = prop;\n                }\n                for (const script of scripts) {\n                    const decoded_script = (0, html_1.html_decode)(script) ?? script;\n                    const script_fn = this._render_script(decoded_script, id);\n                    this._script_fns.set(prop, script_fn);\n                    if (!(attr in data_model.properties)) {\n                        continue;\n                    }\n                    const property = data_model.property(attr);\n                    const is_event_param = this.model.event_params.includes(prop);\n                    this.on_change(property, () => {\n                        if (!this._changing && !(is_event_param && !data_model.property(prop).get_value())) {\n                            this.run_script(prop);\n                            if (is_event_param) {\n                                data_model.setv({ [prop]: false });\n                            }\n                        }\n                    });\n                }\n            }\n        }\n        run_script(property, silent = false) {\n            const script_fn = this._script_fns.get(property);\n            if (script_fn === undefined) {\n                if (!silent) {\n                    console.warn(`Script '${property}' could not be found.`);\n                }\n                return;\n            }\n            const this_obj = {\n                get_records(property, index) {\n                    return this.get_records(property, index);\n                },\n            };\n            for (const name of this._script_fns.keys()) {\n                this_obj[name] = () => this.run_script(name);\n            }\n            return script_fn(this.model, this.model.data, this._state, this, (s) => this.run_script(s), this_obj);\n        }\n        get_records(property_name, index = true) {\n            return (0, data_1.dict_to_records)(this.model.data.property(property_name), index);\n        }\n        disconnect_signals() {\n            super.disconnect_signals();\n            this._remove_event_listeners();\n            this._remove_mutation_observers();\n        }\n        remove() {\n            this.run_script(\"remove\", true);\n            super.remove();\n        }\n        get child_models() {\n            const models = [];\n            for (const [_parent, children] of (0, object_1.entries)(this.model.children)) {\n                for (const model of children) {\n                    if (!(0, types_1.isString)(model)) {\n                        models.push(model);\n                    }\n                }\n            }\n            return models;\n        }\n        _after_layout() {\n            this.run_script(\"after_layout\", true);\n        }\n        render() {\n            this.empty();\n            this._update_stylesheets();\n            this._update_css_classes();\n            this._apply_styles();\n            this._apply_visible();\n            this.container = (0, dom_1.div)({ style: { display: \"contents\" } });\n            this.shadow_el.append(this.container);\n            this._update();\n            this._render_children();\n            this._setup_mutation_observers();\n            this._setup_event_listeners();\n            this.run_script(\"render\", true);\n        }\n        _send_event(elname, attr, event) {\n            const serialized = (0, util_1.convertUndefined)((0, event_to_object_1.serializeEvent)(event));\n            serialized.type = attr;\n            this.model.trigger_event(new html_1.DOMEvent(elname, serialized));\n        }\n        _render_child(child, el) {\n            if ((0, types_1.isString)(child)) {\n                el.innerHTML = (0, html_1.html_decode)(child) ?? child;\n            }\n            else {\n                const view = this._child_views.get(child);\n                if (view == null) {\n                    el.innerHTML = \"\";\n                }\n                else {\n                    el.appendChild(view.el);\n                    view.render();\n                    view.r_after_render();\n                }\n            }\n        }\n        _render_node(node, children) {\n            const { id } = this.model.data;\n            if (this.model.looped.includes(node)) {\n                for (const [child, i] of (0, iterator_1.enumerate)(children)) {\n                    const el_id = `${node}-${i}-${id}`;\n                    const el = element_lookup(this.shadow_el, el_id);\n                    if (el == null) {\n                        console.warn(`DOM node '${el_id}' could not be found. Cannot render children.`);\n                        continue;\n                    }\n                    this._render_child(child, el);\n                }\n            }\n            else {\n                const el_id = `${node}-${id}`;\n                const el = element_lookup(this.shadow_el, el_id);\n                if (el == null) {\n                    console.warn(`DOM node '${el_id}' could not be found. Cannot render children.`);\n                    return;\n                }\n                for (const child of children) {\n                    this._render_child(child, el);\n                }\n            }\n        }\n        _render_children() {\n            for (const [node, children] of (0, object_1.entries)(this.model.children)) {\n                const computed_children = (() => {\n                    if ((0, types_1.isString)(children)) {\n                        const value = this.model.data.property(children).get_value();\n                        if ((0, types_1.isString)(value)) {\n                            return [value];\n                        }\n                        else if ((0, types_1.isArray)(value)) {\n                            return value;\n                        }\n                        else {\n                            (0, assert_1.unreachable)();\n                        }\n                    }\n                    else {\n                        return children;\n                    }\n                })();\n                this._render_node(node, computed_children);\n            }\n        }\n        _render_html(literal, state = {}) {\n            let htm = literal.replace(/[`]/g, \"\\\\$&\");\n            let collected_callbacks = \"\";\n            const methods = [];\n            for (const [el_name, callbacks] of (0, object_1.entries)(this.model.callbacks)) {\n                for (const [cb, method] of callbacks) {\n                    let definition;\n                    htm = htm.replaceAll(`\\${${method}}`, `$--{${method}}`);\n                    if (method.startsWith(\"script(\")) {\n                        const meth = (method\n                            .replace(\"('\", \"_\").replace(\"')\", \"\")\n                            .replace('(\"', \"_\").replace('\")', \"\")\n                            .replace(\"-\", \"_\"));\n                        const script_name = meth.replaceAll(\"script_\", \"\");\n                        htm = htm.replaceAll(method, meth);\n                        definition = `\n          const ${meth} = (event) => {\n            view._state.event = event\n            view.run_script(\"${script_name}\")\n            delete view._state.event\n          }\n          `;\n                    }\n                    else {\n                        definition = `\n          const ${method} = (event) => {\n            let elname = \"${el_name}\"\n            if (RegExp(\"\\{\\{.*loop\\.index.*\\}\\}\").test(elname)) {\n              const pattern = RegExp(elname.replace(/\\{\\{(.+?)\\}\\}/g, String.fromCharCode(92) + \"d+\"))\n              for (const p of event.path) {\n                if (pattern.exec(p.id) != null) {\n                  elname = p.id.split(\"-\").slice(null, -1).join(\"-\")\n                  break\n                }\n              }\n            }\n            view._send_event(elname, \"${cb}\", event)\n          }\n          `;\n                    }\n                    if (methods.indexOf(method) > -1) {\n                        continue;\n                    }\n                    methods.push(method);\n                    collected_callbacks += definition;\n                }\n            }\n            htm = htm\n                .replaceAll(\"${model.\", \"$-{model.\")\n                .replaceAll(\"${\", \"${data.\")\n                .replaceAll(\"$-{model.\", \"${model.\")\n                .replaceAll(\"$--{\", \"${\");\n            return new Function(\"view, model, data, state, html, useCallback\", `${collected_callbacks}return html\\`${htm}\\`;`)(this, this.model, this.model.data, state, preact_2.html, hooks_1.useCallback);\n        }\n        _render_script(literal, id) {\n            const scripts = [];\n            for (const elname of this.model.nodes) {\n                const elvar = elname.replace(\"-\", \"_\");\n                if (!literal.includes(elvar)) {\n                    continue;\n                }\n                const script = `\n      let ${elvar} = view.shadow_el.getElementById('${elname}-${id}')\n      if (${elvar} == null) {\n        ${elvar} = document.getElementById('${elname}-${id}')\n      }\n      if (${elvar} == null) {\n        console.warn(\"DOM node '${elname}' could not be found. Cannot execute callback.\")\n        return\n      }\n      `;\n                scripts.push(script);\n            }\n            const event = `\n    let event = null\n    if (state.event !== undefined) {\n      event = state.event\n    }\n    `;\n            scripts.push(event);\n            scripts.push(literal);\n            return new Function(\"model, data, state, view, script, self\", scripts.join(\"\\n\"));\n        }\n        _remove_mutation_observers() {\n            for (const observer of this._mutation_observers) {\n                observer.disconnect();\n            }\n            this._mutation_observers = [];\n        }\n        _setup_mutation_observers() {\n            const { id } = this.model.data;\n            for (const name of (0, object_1.keys)(this.model.attrs)) {\n                const el = element_lookup(this.shadow_el, `${name}-${id}`);\n                if (el == null) {\n                    console.warn(`DOM node '${name}-${id}' could not be found. Cannot set up MutationObserver.`);\n                    continue;\n                }\n                const observer = new MutationObserver(() => {\n                    this._update_model(el, name);\n                });\n                observer.observe(el, { attributes: true });\n                this._mutation_observers.push(observer);\n            }\n        }\n        _remove_event_listeners() {\n            const { id } = this.model.data;\n            for (const [node, callbacks] of this._event_listeners) {\n                const el = element_lookup(this.shadow_el, `${node}-${id}`);\n                if (el == null) {\n                    continue;\n                }\n                for (const [event_name, event_callback] of callbacks) {\n                    el.removeEventListener(event_name, event_callback);\n                }\n            }\n            this._event_listeners.clear();\n        }\n        _setup_event_listeners() {\n            const { id } = this.model.data;\n            const attrs = (0, object_1.dict)(this.model.attrs);\n            for (const [node, node_events] of (0, object_1.entries)(this.model.events)) {\n                const el = element_lookup(this.shadow_el, `${node}-${id}`);\n                if (el == null) {\n                    console.warn(`DOM node '${node}-${id}' could not be found. Cannot subscribe to DOM events.`);\n                    continue;\n                }\n                for (const [event_name, event_doit] of (0, object_1.entries)(node_events)) {\n                    const event_callback = (event) => {\n                        this._send_event(node, event_name, event);\n                        if (attrs.has(node) && event_doit) {\n                            this._update_model(el, node);\n                        }\n                    };\n                    el.addEventListener(event_name, event_callback);\n                    let callbacks = this._event_listeners.get(node);\n                    if (callbacks === undefined) {\n                        this._event_listeners.set(node, callbacks = new Map());\n                    }\n                    callbacks.set(event_name, event_callback);\n                }\n            }\n        }\n        _update(property = null) {\n            if (property == null || this.html.includes(`\\${${property}}`)) {\n                const rendered = this._render_html(this.html);\n                if (rendered == null) {\n                    return;\n                }\n                try {\n                    this._changing = true;\n                    (0, preact_1.render)(rendered, this.container);\n                }\n                finally {\n                    this._changing = false;\n                }\n            }\n        }\n        _update_model(el, name) {\n            if (this._changing) {\n                return;\n            }\n            const attr_infos = (0, object_1.dict)(this.model.attrs).get(name) ?? [];\n            const attrs = {};\n            for (const attr_info of attr_infos) {\n                const [attr, tokens, template] = attr_info;\n                let value = attr == \"children\" ? el.innerHTML : el[attr];\n                if (tokens.length === 1 && (`{${tokens[0]}}` === template)) {\n                    attrs[tokens[0]] = value;\n                }\n                else if ((0, types_1.isString)(value)) {\n                    value = extract_token(template, value, tokens);\n                    if (value == null) {\n                        console.warn(`Could not resolve parameters in ${name} element ${attr} attribute value ${value}.`);\n                    }\n                    else {\n                        for (const [param, param_val] of (0, object_1.entries)(value)) {\n                            if (param_val === undefined) {\n                                console.warn(`Could not resolve ${param} in ${name} element ${attr} attribute value ${value}.`);\n                            }\n                            else {\n                                attrs[param] = param_val;\n                            }\n                        }\n                    }\n                }\n            }\n            try {\n                this._changing = true;\n                this.model.data.setv(serialize_attrs(attrs));\n            }\n            catch {\n                console.error(\"Could not serialize\", attrs);\n            }\n            finally {\n                this._changing = false;\n            }\n        }\n    }\n    exports.ReactiveHTMLView = ReactiveHTMLView;\n    ReactiveHTMLView.__name__ = \"ReactiveHTMLView\";\n    class ReactiveHTML extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.ReactiveHTML = ReactiveHTML;\n    _a = ReactiveHTML;\n    ReactiveHTML.__name__ = \"ReactiveHTML\";\n    ReactiveHTML.__module__ = \"panel.models.reactive_html\";\n    (() => {\n        _a.prototype.default_view = ReactiveHTMLView;\n        _a.define(({ Bool, Str, List, Dict, Tuple, Or, Ref }) => ({\n            attrs: [Dict(List(Tuple(Str, List(Str), Str))), {}],\n            callbacks: [Dict(List(Tuple(Str, Str))), {}],\n            children: [Dict(Or(List(Or(Ref(ui_element_1.UIElement), Str)), Str)), {}],\n            data: [Ref(model_1.Model)],\n            event_params: [List(Str), []],\n            events: [Dict(Dict(Bool)), {}],\n            html: [Str, \"\"],\n            looped: [List(Str), []],\n            nodes: [List(Str), []],\n            scripts: [Dict(List(Str)), {}],\n        }));\n    })();\n}\n","min_source":"function _(e,t,n,s,i){var o;s();const r=e(\"091628d34a\"),l=e(\"9295b344df\"),c=e(\"b3f51db71c\"),a=e(\"@bokehjs/core/dom\"),d=e(\"@bokehjs/core/util/assert\"),_=e(\"@bokehjs/core/util/iterator\"),h=e(\"@bokehjs/core/util/types\"),u=e(\"@bokehjs/core/util/object\"),f=e(\"@bokehjs/model\"),p=e(\"@bokehjs/models/ui/ui_element\"),m=e(\"be689f0377\"),v=e(\"a572dba9cd\"),$=e(\"4c04683fdc\"),g=e(\"dab42e6dad\"),b=e(\"a3669a897a\");function w(e,t,n){const s=new Map;for(const e of n)s.set(`{${e}}`,\"(.*)\");const i=[];let o=`^${r=e,r.replace(/[-\\/\\\\^$*+?.()|[\\]]/g,\"\\\\$&\")}$`;var r;let l,c,a;for(const[t,n]of s)if(c=e.indexOf(t),c>-1){for(o=o.replace(t,n),a={index:c,token:t},l=0;l<i.length&&i[l].index<c;l++);l<i.length?i.splice(l,0,a):i.push(a)}o=o.replace(/\\{[^{}]+\\}/g,\".*\");const d=new RegExp(o).exec(t);if(null!=d){const e={};for(l=0;l<i.length;l++)e[i[l].token.slice(1,-1)]=d[l+1];return e}return null}function y(e,t){let n=e.getElementById(t);return null==n&&(n=document.getElementById(t)),n}class M extends g.HTMLBoxView{constructor(){super(...arguments),this._changing=!1,this._event_listeners=new Map,this._mutation_observers=[],this._script_fns=new Map,this._state={}}initialize(){super.initialize(),this.html=(0,$.html_decode)(this.model.html)??this.model.html}_recursive_connect(e,t,n){for(const s of e){const e=0!=n.length?`${n}.${s.attr}`:s.attr,i=s.get_value();null!=i&&(i instanceof f.Model&&this._recursive_connect(i,!0,e),this.on_change(s,(()=>{if(t)for(const[e,t]of(0,u.entries)(this.model.children))if(t==s.attr){let t=s.get_value();return(0,h.isArray)(t)||(t=[t]),void this._render_node(e,t)}this._changing||this._update(e)})))}}connect_signals(){super.connect_signals();const{children:e,events:t}=this.model.properties;this.on_change(e,(async()=>{this.html=(0,$.html_decode)(this.model.html)??this.model.html,await this.build_child_views(),this.invalidate_render()})),this._recursive_connect(this.model.data,!0,\"\"),this.on_change(t,(()=>{this._remove_event_listeners(),this._setup_event_listeners()})),this.connect_scripts()}connect_scripts(){const{id:e}=this.model.data;for(const[t,n]of(0,u.entries)(this.model.scripts)){let s,i=this.model.data;if(t.includes(\".\")){const e=t.split(\".\");s=e[e.length-1];for(const t of e.slice(0,-1)){const e=i.property(t).get_value();(0,d.assert)(e instanceof f.Model),i=e}}else s=t;for(const o of n){const n=(0,$.html_decode)(o)??o,r=this._render_script(n,e);if(this._script_fns.set(t,r),!(s in i.properties))continue;const l=i.property(s),c=this.model.event_params.includes(t);this.on_change(l,(()=>{this._changing||c&&!i.property(t).get_value()||(this.run_script(t),c&&i.setv({[t]:!1}))}))}}}run_script(e,t=!1){const n=this._script_fns.get(e);if(void 0===n)return void(t||console.warn(`Script '${e}' could not be found.`));const s={get_records(e,t){return this.get_records(e,t)}};for(const e of this._script_fns.keys())s[e]=()=>this.run_script(e);return n(this.model,this.model.data,this._state,this,(e=>this.run_script(e)),s)}get_records(e,t=!0){return(0,m.dict_to_records)(this.model.data.property(e),t)}disconnect_signals(){super.disconnect_signals(),this._remove_event_listeners(),this._remove_mutation_observers()}remove(){this.run_script(\"remove\",!0),super.remove()}get child_models(){const e=[];for(const[t,n]of(0,u.entries)(this.model.children))for(const t of n)(0,h.isString)(t)||e.push(t);return e}_after_layout(){this.run_script(\"after_layout\",!0)}render(){this.empty(),this._update_stylesheets(),this._update_css_classes(),this._apply_styles(),this._apply_visible(),this.container=(0,a.div)({style:{display:\"contents\"}}),this.shadow_el.append(this.container),this._update(),this._render_children(),this._setup_mutation_observers(),this._setup_event_listeners(),this.run_script(\"render\",!0)}_send_event(e,t,n){const s=(0,b.convertUndefined)((0,v.serializeEvent)(n));s.type=t,this.model.trigger_event(new $.DOMEvent(e,s))}_render_child(e,t){if((0,h.isString)(e))t.innerHTML=(0,$.html_decode)(e)??e;else{const n=this._child_views.get(e);null==n?t.innerHTML=\"\":(t.appendChild(n.el),n.render(),n.r_after_render())}}_render_node(e,t){const{id:n}=this.model.data;if(this.model.looped.includes(e))for(const[s,i]of(0,_.enumerate)(t)){const t=`${e}-${i}-${n}`,o=y(this.shadow_el,t);null!=o?this._render_child(s,o):console.warn(`DOM node '${t}' could not be found. Cannot render children.`)}else{const s=`${e}-${n}`,i=y(this.shadow_el,s);if(null==i)return void console.warn(`DOM node '${s}' could not be found. Cannot render children.`);for(const e of t)this._render_child(e,i)}}_render_children(){for(const[e,t]of(0,u.entries)(this.model.children)){const n=(()=>{if(!(0,h.isString)(t))return t;{const e=this.model.data.property(t).get_value();if((0,h.isString)(e))return[e];if((0,h.isArray)(e))return e;(0,d.unreachable)()}})();this._render_node(e,n)}}_render_html(e,t={}){let n=e.replace(/[`]/g,\"\\\\$&\"),s=\"\";const i=[];for(const[e,t]of(0,u.entries)(this.model.callbacks))for(const[o,r]of t){let t;if(n=n.replaceAll(`\\${${r}}`,`$--{${r}}`),r.startsWith(\"script(\")){const e=r.replace(\"('\",\"_\").replace(\"')\",\"\").replace('(\"',\"_\").replace('\")',\"\").replace(\"-\",\"_\"),s=e.replaceAll(\"script_\",\"\");n=n.replaceAll(r,e),t=`\\n          const ${e} = (event) => {\\n            view._state.event = event\\n            view.run_script(\"${s}\")\\n            delete view._state.event\\n          }\\n          `}else t=`\\n          const ${r} = (event) => {\\n            let elname = \"${e}\"\\n            if (RegExp(\"{{.*loop.index.*}}\").test(elname)) {\\n              const pattern = RegExp(elname.replace(/{{(.+?)}}/g, String.fromCharCode(92) + \"d+\"))\\n              for (const p of event.path) {\\n                if (pattern.exec(p.id) != null) {\\n                  elname = p.id.split(\"-\").slice(null, -1).join(\"-\")\\n                  break\\n                }\\n              }\\n            }\\n            view._send_event(elname, \"${o}\", event)\\n          }\\n          `;i.indexOf(r)>-1||(i.push(r),s+=t)}return n=n.replaceAll(\"${model.\",\"$-{model.\").replaceAll(\"${\",\"${data.\").replaceAll(\"$-{model.\",\"${model.\").replaceAll(\"$--{\",\"${\"),new Function(\"view, model, data, state, html, useCallback\",`${s}return html\\`${n}\\`;`)(this,this.model,this.model.data,t,c.html,l.useCallback)}_render_script(e,t){const n=[];for(const s of this.model.nodes){const i=s.replace(\"-\",\"_\");if(!e.includes(i))continue;const o=`\\n      let ${i} = view.shadow_el.getElementById('${s}-${t}')\\n      if (${i} == null) {\\n        ${i} = document.getElementById('${s}-${t}')\\n      }\\n      if (${i} == null) {\\n        console.warn(\"DOM node '${s}' could not be found. Cannot execute callback.\")\\n        return\\n      }\\n      `;n.push(o)}return n.push(\"\\n    let event = null\\n    if (state.event !== undefined) {\\n      event = state.event\\n    }\\n    \"),n.push(e),new Function(\"model, data, state, view, script, self\",n.join(\"\\n\"))}_remove_mutation_observers(){for(const e of this._mutation_observers)e.disconnect();this._mutation_observers=[]}_setup_mutation_observers(){const{id:e}=this.model.data;for(const t of(0,u.keys)(this.model.attrs)){const n=y(this.shadow_el,`${t}-${e}`);if(null==n){console.warn(`DOM node '${t}-${e}' could not be found. Cannot set up MutationObserver.`);continue}const s=new MutationObserver((()=>{this._update_model(n,t)}));s.observe(n,{attributes:!0}),this._mutation_observers.push(s)}}_remove_event_listeners(){const{id:e}=this.model.data;for(const[t,n]of this._event_listeners){const s=y(this.shadow_el,`${t}-${e}`);if(null!=s)for(const[e,t]of n)s.removeEventListener(e,t)}this._event_listeners.clear()}_setup_event_listeners(){const{id:e}=this.model.data,t=(0,u.dict)(this.model.attrs);for(const[n,s]of(0,u.entries)(this.model.events)){const i=y(this.shadow_el,`${n}-${e}`);if(null!=i)for(const[e,o]of(0,u.entries)(s)){const s=s=>{this._send_event(n,e,s),t.has(n)&&o&&this._update_model(i,n)};i.addEventListener(e,s);let r=this._event_listeners.get(n);void 0===r&&this._event_listeners.set(n,r=new Map),r.set(e,s)}else console.warn(`DOM node '${n}-${e}' could not be found. Cannot subscribe to DOM events.`)}}_update(e=null){if(null==e||this.html.includes(`\\${${e}}`)){const e=this._render_html(this.html);if(null==e)return;try{this._changing=!0,(0,r.render)(e,this.container)}finally{this._changing=!1}}}_update_model(e,t){if(this._changing)return;const n=(0,u.dict)(this.model.attrs).get(t)??[],s={};for(const i of n){const[n,o,r]=i;let l=\"children\"==n?e.innerHTML:e[n];if(1===o.length&&`{${o[0]}}`===r)s[o[0]]=l;else if((0,h.isString)(l))if(l=w(r,l,o),null==l)console.warn(`Could not resolve parameters in ${t} element ${n} attribute value ${l}.`);else for(const[e,i]of(0,u.entries)(l))void 0===i?console.warn(`Could not resolve ${e} in ${t} element ${n} attribute value ${l}.`):s[e]=i}try{this._changing=!0,this.model.data.setv(function(e){const t={};for(const[n,s]of(0,u.entries)(e)){const e=(()=>{if((0,h.isString)(s)){if(!(\"\"===s||\"NaN\"!==s&&isNaN(Number(s))))return Number(s);if(\"false\"===s||\"true\"===s)return\"true\"===s}return s})();t[n]=e}return t}(s))}catch{console.error(\"Could not serialize\",s)}finally{this._changing=!1}}}n.ReactiveHTMLView=M,M.__name__=\"ReactiveHTMLView\";class k extends g.HTMLBox{constructor(e){super(e)}}n.ReactiveHTML=k,o=k,k.__name__=\"ReactiveHTML\",k.__module__=\"panel.models.reactive_html\",o.prototype.default_view=M,o.define((({Bool:e,Str:t,List:n,Dict:s,Tuple:i,Or:o,Ref:r})=>({attrs:[s(n(i(t,n(t),t))),{}],callbacks:[s(n(i(t,t))),{}],children:[s(o(n(o(r(p.UIElement),t)),t)),{}],data:[r(f.Model)],event_params:[n(t),[]],events:[s(s(e)),{}],html:[t,\"\"],looped:[n(t),[]],nodes:[n(t),[]],scripts:[s(n(t)),{}]})))}\n//# sourceMappingURL=reactive_html.min.js.map","min_map":"{\"version\":3,\"file\":\"reactive_html.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"preact_1\",\"hooks_1\",\"preact_2\",\"dom_1\",\"assert_1\",\"iterator_1\",\"types_1\",\"object_1\",\"model_1\",\"ui_element_1\",\"data_1\",\"event_to_object_1\",\"html_1\",\"layout_1\",\"util_1\",\"extract_token\",\"template\",\"str\",\"tokens\",\"token_mapping\",\"Map\",\"match\",\"set\",\"token_list\",\"regexp_template\",\"string\",\"replace\",\"i\",\"token_index\",\"token_entry\",\"m\",\"replacement\",\"indexOf\",\"index\",\"token\",\"length\",\"splice\",\"push\",\"RegExp\",\"exec\",\"result\",\"slice\",\"element_lookup\",\"root\",\"el_id\",\"el\",\"getElementById\",\"document\",\"ReactiveHTMLView\",\"HTMLBoxView\",\"constructor\",\"super\",\"arguments\",\"this\",\"_changing\",\"_event_listeners\",\"_mutation_observers\",\"_script_fns\",\"_state\",\"initialize\",\"html\",\"html_decode\",\"model\",\"_recursive_connect\",\"update_children\",\"path\",\"prop\",\"subpath\",\"attr\",\"obj\",\"get_value\",\"Model\",\"on_change\",\"node\",\"entries\",\"children\",\"isArray\",\"_render_node\",\"_update\",\"connect_signals\",\"events\",\"properties\",\"async\",\"build_child_views\",\"invalidate_render\",\"data\",\"_remove_event_listeners\",\"_setup_event_listeners\",\"connect_scripts\",\"id\",\"scripts\",\"data_model\",\"includes\",\"split\",\"p\",\"value\",\"property\",\"assert\",\"script\",\"decoded_script\",\"script_fn\",\"_render_script\",\"is_event_param\",\"event_params\",\"run_script\",\"setv\",\"silent\",\"get\",\"undefined\",\"console\",\"warn\",\"this_obj\",\"get_records\",\"name\",\"keys\",\"s\",\"property_name\",\"dict_to_records\",\"disconnect_signals\",\"_remove_mutation_observers\",\"remove\",\"child_models\",\"models\",\"_parent\",\"isString\",\"_after_layout\",\"render\",\"empty\",\"_update_stylesheets\",\"_update_css_classes\",\"_apply_styles\",\"_apply_visible\",\"container\",\"div\",\"style\",\"display\",\"shadow_el\",\"append\",\"_render_children\",\"_setup_mutation_observers\",\"_send_event\",\"elname\",\"event\",\"serialized\",\"convertUndefined\",\"serializeEvent\",\"type\",\"trigger_event\",\"DOMEvent\",\"_render_child\",\"child\",\"innerHTML\",\"view\",\"_child_views\",\"appendChild\",\"r_after_render\",\"looped\",\"enumerate\",\"computed_children\",\"unreachable\",\"_render_html\",\"literal\",\"state\",\"htm\",\"collected_callbacks\",\"methods\",\"el_name\",\"callbacks\",\"cb\",\"method\",\"definition\",\"replaceAll\",\"startsWith\",\"meth\",\"script_name\",\"Function\",\"useCallback\",\"nodes\",\"elvar\",\"join\",\"observer\",\"disconnect\",\"attrs\",\"MutationObserver\",\"_update_model\",\"observe\",\"attributes\",\"event_name\",\"event_callback\",\"removeEventListener\",\"clear\",\"dict\",\"node_events\",\"event_doit\",\"has\",\"addEventListener\",\"rendered\",\"attr_infos\",\"attr_info\",\"param\",\"param_val\",\"serialized_value\",\"isNaN\",\"Number\",\"serialize_attrs\",\"error\",\"__name__\",\"ReactiveHTML\",\"HTMLBox\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Bool\",\"Str\",\"List\",\"Dict\",\"Tuple\",\"Or\",\"Ref\",\"UIElement\"],\"sources\":[\"0\"],\"mappings\":\"AAA8B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC3E,IAAIC,EACJF,IACA,MAAMG,EAAWN,EAAQ,cACnBO,EAAUP,EAAQ,cAClBQ,EAAWR,EAAQ,cACnBS,EAAQT,EAAQ,qBAChBU,EAAWV,EAAQ,6BACnBW,EAAaX,EAAQ,+BACrBY,EAAUZ,EAAQ,4BAClBa,EAAWb,EAAQ,6BACnBc,EAAUd,EAAQ,kBAClBe,EAAef,EAAQ,iCACvBgB,EAAShB,EAAQ,cACjBiB,EAAoBjB,EAAQ,cAC5BkB,EAASlB,EAAQ,cACjBmB,EAAWnB,EAAQ,cACnBoB,EAASpB,EAAQ,cAsBvB,SAASqB,EAAcC,EAAUC,EAAKC,GAClC,MAAMC,EAAgB,IAAIC,IAC1B,IAAK,MAAMC,KAASH,EAChBC,EAAcG,IAAI,IAAID,KAAU,QAEpC,MAAME,EAAa,GACnB,IAAIC,EAAkB,IATJC,EASqBT,EARhCS,EAAOC,QAAQ,uBAAwB,WADlD,IAAsBD,EAWlB,IAAIE,EAAGC,EAAaC,EACpB,IAAK,MAAOC,EAAGC,KAAgBZ,EAG3B,GAFAS,EAAcZ,EAASgB,QAAQF,GAE3BF,GAAe,EAAG,CAMlB,IALAJ,EAAkBA,EAAgBE,QAAQI,EAAGC,GAC7CF,EAAc,CACVI,MAAOL,EACPM,MAAOJ,GAENH,EAAI,EAAGA,EAAIJ,EAAWY,QAAUZ,EAAWI,GAAGM,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GACzC,CACA,MACIzE,QAAQgG,MAAM,sBAAuBvB,EACzC,CACA,QACIjI,KAAKC,WAAY,CACrB,CACJ,EAEJ1D,EAAQoD,iBAAmBA,EAC3BA,EAAiB8J,SAAW,mBAC5B,MAAMC,UAAqBlM,EAASmM,QAChC,WAAA9J,CAAYoI,GACRnI,MAAMmI,EACV,EAEJ1L,EAAQmN,aAAeA,EACvBhN,EAAKgN,EACLA,EAAaD,SAAW,eACxBC,EAAaE,WAAa,6BAEtBlN,EAAGmN,UAAUC,aAAenK,EAC5BjD,EAAGqN,QAAO,EAAGC,OAAMC,MAAKC,OAAMC,OAAMC,QAAOC,KAAIC,UAAU,CACrDrC,MAAO,CAACkC,EAAKD,EAAKE,EAAMH,EAAKC,EAAKD,GAAMA,KAAQ,CAAC,GACjD/C,UAAW,CAACiD,EAAKD,EAAKE,EAAMH,EAAKA,KAAQ,CAAC,GAC1C3I,SAAU,CAAC6I,EAAKE,EAAGH,EAAKG,EAAGC,EAAIlN,EAAamN,WAAYN,IAAOA,IAAO,CAAC,GACvEjI,KAAM,CAACsI,EAAInN,EAAQ+D,QACnBgC,aAAc,CAACgH,EAAKD,GAAM,IAC1BtI,OAAQ,CAACwI,EAAKA,EAAKH,IAAQ,CAAC,GAC5BzJ,KAAM,CAAC0J,EAAK,IACZ1D,OAAQ,CAAC2D,EAAKD,GAAM,IACpBrC,MAAO,CAACsC,EAAKD,GAAM,IACnB5H,QAAS,CAAC8H,EAAKD,EAAKD,IAAO,CAAC,MAGxC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/preact/dist/preact.module.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"preact/dist/preact.module.js","resolution":"ESM","id":"091628d34a","hash":"091628d34aeeda16429242a12ee637c1e0e8b302c36f4570bbedb53e04a7c67c","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.options = exports.isValidElement = void 0;\nexports.Component = x;\nexports.Fragment = k;\nexports.cloneElement = J;\nexports.createContext = K;\nexports.createElement = _;\nexports.h = _;\nexports.createRef = b;\nexports.hydrate = G;\nexports.render = E;\nexports.toChildArray = H;\nvar n, l, u, t, i, r, o, e, f, c, s, a, h, p = {}, v = [], y = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, d = Array.isArray;\nfunction w(n, l) { for (var u in l)\n    n[u] = l[u]; return n; }\nfunction g(n) { n && n.parentNode && n.parentNode.removeChild(n); }\nfunction _(l, u, t) { var i, r, o, e = {}; for (o in u)\n    \"key\" == o ? i = u[o] : \"ref\" == o ? r = u[o] : e[o] = u[o]; if (arguments.length > 2 && (e.children = arguments.length > 3 ? n.call(arguments, 2) : t), \"function\" == typeof l && null != l.defaultProps)\n    for (o in l.defaultProps)\n        void 0 === e[o] && (e[o] = l.defaultProps[o]); return m(l, e, i, r, null); }\nfunction m(n, t, i, r, o) { var e = { type: n, props: t, key: i, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: null == o ? ++u : o, __i: -1, __u: 0 }; return null == o && null != l.vnode && l.vnode(e), e; }\nfunction b() { return { current: null }; }\nfunction k(n) { return n.children; }\nfunction x(n, l) { this.props = n, this.context = l; }\nfunction S(n, l) { if (null == l)\n    return n.__ ? S(n.__, n.__i + 1) : null; for (var u; l < n.__k.length; l++)\n    if (null != (u = n.__k[l]) && null != u.__e)\n        return u.__e; return \"function\" == typeof n.type ? S(n) : null; }\nfunction C(n) { var l, u; if (null != (n = n.__) && null != n.__c) {\n    for (n.__e = n.__c.base = null, l = 0; l < n.__k.length; l++)\n        if (null != (u = n.__k[l]) && null != u.__e) {\n            n.__e = n.__c.base = u.__e;\n            break;\n        }\n    return C(n);\n} }\nfunction M(n) { (!n.__d && (n.__d = !0) && i.push(n) && !$.__r++ || r != l.debounceRendering) && ((r = l.debounceRendering) || o)($); }\nfunction $() { for (var n, u, t, r, o, f, c, s = 1; i.length;)\n    i.length > s && i.sort(e), n = i.shift(), s = i.length, n.__d && (t = void 0, o = (r = (u = n).__v).__e, f = [], c = [], u.__P && ((t = w({}, r)).__v = r.__v + 1, l.vnode && l.vnode(t), O(u.__P, t, r, u.__n, u.__P.namespaceURI, 32 & r.__u ? [o] : null, f, null == o ? S(r) : o, !!(32 & r.__u), c), t.__v = r.__v, t.__.__k[t.__i] = t, z(f, t, c), t.__e != o && C(t))); $.__r = 0; }\nfunction I(n, l, u, t, i, r, o, e, f, c, s) { var a, h, y, d, w, g, _ = t && t.__k || v, m = l.length; for (f = P(u, l, _, f, m), a = 0; a < m; a++)\n    null != (y = u.__k[a]) && (h = -1 == y.__i ? p : _[y.__i] || p, y.__i = a, g = O(n, y, h, i, r, o, e, f, c, s), d = y.__e, y.ref && h.ref != y.ref && (h.ref && q(h.ref, null, y), s.push(y.ref, y.__c || d, y)), null == w && null != d && (w = d), 4 & y.__u || h.__k === y.__k ? f = A(y, f, n) : \"function\" == typeof y.type && void 0 !== g ? f = g : d && (f = d.nextSibling), y.__u &= -7); return u.__e = w, f; }\nfunction P(n, l, u, t, i) { var r, o, e, f, c, s = u.length, a = s, h = 0; for (n.__k = new Array(i), r = 0; r < i; r++)\n    null != (o = l[r]) && \"boolean\" != typeof o && \"function\" != typeof o ? (f = r + h, (o = n.__k[r] = \"string\" == typeof o || \"number\" == typeof o || \"bigint\" == typeof o || o.constructor == String ? m(null, o, null, null, null) : d(o) ? m(k, { children: o }, null, null, null) : void 0 === o.constructor && o.__b > 0 ? m(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o).__ = n, o.__b = n.__b + 1, e = null, -1 != (c = o.__i = L(o, u, f, a)) && (a--, (e = u[c]) && (e.__u |= 2)), null == e || null == e.__v ? (-1 == c && (i > s ? h-- : i < s && h++), \"function\" != typeof o.type && (o.__u |= 4)) : c != f && (c == f - 1 ? h-- : c == f + 1 ? h++ : (c > f ? h-- : h++, o.__u |= 4))) : n.__k[r] = null; if (a)\n    for (r = 0; r < s; r++)\n        null != (e = u[r]) && 0 == (2 & e.__u) && (e.__e == t && (t = S(e)), B(e, e)); return t; }\nfunction A(n, l, u) { var t, i; if (\"function\" == typeof n.type) {\n    for (t = n.__k, i = 0; t && i < t.length; i++)\n        t[i] && (t[i].__ = n, l = A(t[i], l, u));\n    return l;\n} n.__e != l && (l && n.type && !u.contains(l) && (l = S(n)), u.insertBefore(n.__e, l || null), l = n.__e); do {\n    l = l && l.nextSibling;\n} while (null != l && 8 == l.nodeType); return l; }\nfunction H(n, l) { return l = l || [], null == n || \"boolean\" == typeof n || (d(n) ? n.some(function (n) { H(n, l); }) : l.push(n)), l; }\nfunction L(n, l, u, t) { var i, r, o = n.key, e = n.type, f = l[u]; if (null === f && null == n.key || f && o == f.key && e == f.type && 0 == (2 & f.__u))\n    return u; if (t > (null != f && 0 == (2 & f.__u) ? 1 : 0))\n    for (i = u - 1, r = u + 1; i >= 0 || r < l.length;) {\n        if (i >= 0) {\n            if ((f = l[i]) && 0 == (2 & f.__u) && o == f.key && e == f.type)\n                return i;\n            i--;\n        }\n        if (r < l.length) {\n            if ((f = l[r]) && 0 == (2 & f.__u) && o == f.key && e == f.type)\n                return r;\n            r++;\n        }\n    } return -1; }\nfunction T(n, l, u) { \"-\" == l[0] ? n.setProperty(l, null == u ? \"\" : u) : n[l] = null == u ? \"\" : \"number\" != typeof u || y.test(l) ? u : u + \"px\"; }\nfunction j(n, l, u, t, i) { var r, o; n: if (\"style\" == l)\n    if (\"string\" == typeof u)\n        n.style.cssText = u;\n    else {\n        if (\"string\" == typeof t && (n.style.cssText = t = \"\"), t)\n            for (l in t)\n                u && l in u || T(n.style, l, \"\");\n        if (u)\n            for (l in u)\n                t && u[l] == t[l] || T(n.style, l, u[l]);\n    }\nelse if (\"o\" == l[0] && \"n\" == l[1])\n    r = l != (l = l.replace(f, \"$1\")), o = l.toLowerCase(), l = o in n || \"onFocusOut\" == l || \"onFocusIn\" == l ? o.slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + r] = u, u ? t ? u.u = t.u : (u.u = c, n.addEventListener(l, r ? a : s, r)) : n.removeEventListener(l, r ? a : s, r);\nelse {\n    if (\"http://www.w3.org/2000/svg\" == i)\n        l = l.replace(/xlink(H|:h)/, \"h\").replace(/sName$/, \"s\");\n    else if (\"width\" != l && \"height\" != l && \"href\" != l && \"list\" != l && \"form\" != l && \"tabIndex\" != l && \"download\" != l && \"rowSpan\" != l && \"colSpan\" != l && \"role\" != l && \"popover\" != l && l in n)\n        try {\n            n[l] = null == u ? \"\" : u;\n            break n;\n        }\n        catch (n) { }\n    \"function\" == typeof u || (null == u || !1 === u && \"-\" != l[4] ? n.removeAttribute(l) : n.setAttribute(l, \"popover\" == l && 1 == u ? \"\" : u));\n} }\nfunction F(n) { return function (u) { if (this.l) {\n    var t = this.l[u.type + n];\n    if (null == u.t)\n        u.t = c++;\n    else if (u.t < t.u)\n        return;\n    return t(l.event ? l.event(u) : u);\n} }; }\nfunction O(n, u, t, i, r, o, e, f, c, s) { var a, h, p, v, y, _, m, b, S, C, M, $, P, A, H, L, T, j = u.type; if (void 0 !== u.constructor)\n    return null; 128 & t.__u && (c = !!(32 & t.__u), o = [f = u.__e = t.__e]), (a = l.__b) && a(u); n: if (\"function\" == typeof j)\n    try {\n        if (b = u.props, S = \"prototype\" in j && j.prototype.render, C = (a = j.contextType) && i[a.__c], M = a ? C ? C.props.value : a.__ : i, t.__c ? m = (h = u.__c = t.__c).__ = h.__E : (S ? u.__c = h = new j(b, M) : (u.__c = h = new x(b, M), h.constructor = j, h.render = D), C && C.sub(h), h.props = b, h.state || (h.state = {}), h.context = M, h.__n = i, p = h.__d = !0, h.__h = [], h._sb = []), S && null == h.__s && (h.__s = h.state), S && null != j.getDerivedStateFromProps && (h.__s == h.state && (h.__s = w({}, h.__s)), w(h.__s, j.getDerivedStateFromProps(b, h.__s))), v = h.props, y = h.state, h.__v = u, p)\n            S && null == j.getDerivedStateFromProps && null != h.componentWillMount && h.componentWillMount(), S && null != h.componentDidMount && h.__h.push(h.componentDidMount);\n        else {\n            if (S && null == j.getDerivedStateFromProps && b !== v && null != h.componentWillReceiveProps && h.componentWillReceiveProps(b, M), !h.__e && null != h.shouldComponentUpdate && !1 === h.shouldComponentUpdate(b, h.__s, M) || u.__v == t.__v) {\n                for (u.__v != t.__v && (h.props = b, h.state = h.__s, h.__d = !1), u.__e = t.__e, u.__k = t.__k, u.__k.some(function (n) { n && (n.__ = u); }), $ = 0; $ < h._sb.length; $++)\n                    h.__h.push(h._sb[$]);\n                h._sb = [], h.__h.length && e.push(h);\n                break n;\n            }\n            null != h.componentWillUpdate && h.componentWillUpdate(b, h.__s, M), S && null != h.componentDidUpdate && h.__h.push(function () { h.componentDidUpdate(v, y, _); });\n        }\n        if (h.context = M, h.props = b, h.__P = n, h.__e = !1, P = l.__r, A = 0, S) {\n            for (h.state = h.__s, h.__d = !1, P && P(u), a = h.render(h.props, h.state, h.context), H = 0; H < h._sb.length; H++)\n                h.__h.push(h._sb[H]);\n            h._sb = [];\n        }\n        else\n            do {\n                h.__d = !1, P && P(u), a = h.render(h.props, h.state, h.context), h.state = h.__s;\n            } while (h.__d && ++A < 25);\n        h.state = h.__s, null != h.getChildContext && (i = w(w({}, i), h.getChildContext())), S && !p && null != h.getSnapshotBeforeUpdate && (_ = h.getSnapshotBeforeUpdate(v, y)), L = a, null != a && a.type === k && null == a.key && (L = N(a.props.children)), f = I(n, d(L) ? L : [L], u, t, i, r, o, e, f, c, s), h.base = u.__e, u.__u &= -161, h.__h.length && e.push(h), m && (h.__E = h.__ = null);\n    }\n    catch (n) {\n        if (u.__v = null, c || null != o)\n            if (n.then) {\n                for (u.__u |= c ? 160 : 128; f && 8 == f.nodeType && f.nextSibling;)\n                    f = f.nextSibling;\n                o[o.indexOf(f)] = null, u.__e = f;\n            }\n            else\n                for (T = o.length; T--;)\n                    g(o[T]);\n        else\n            u.__e = t.__e, u.__k = t.__k;\n        l.__e(n, u, t);\n    }\nelse\n    null == o && u.__v == t.__v ? (u.__k = t.__k, u.__e = t.__e) : f = u.__e = V(t.__e, u, t, i, r, o, e, c, s); return (a = l.diffed) && a(u), 128 & u.__u ? void 0 : f; }\nfunction z(n, u, t) { for (var i = 0; i < t.length; i++)\n    q(t[i], t[++i], t[++i]); l.__c && l.__c(u, n), n.some(function (u) { try {\n    n = u.__h, u.__h = [], n.some(function (n) { n.call(u); });\n}\ncatch (n) {\n    l.__e(n, u.__v);\n} }); }\nfunction N(n) { return \"object\" != typeof n || null == n || n.__b && n.__b > 0 ? n : d(n) ? n.map(N) : w({}, n); }\nfunction V(u, t, i, r, o, e, f, c, s) { var a, h, v, y, w, _, m, b = i.props, k = t.props, x = t.type; if (\"svg\" == x ? o = \"http://www.w3.org/2000/svg\" : \"math\" == x ? o = \"http://www.w3.org/1998/Math/MathML\" : o || (o = \"http://www.w3.org/1999/xhtml\"), null != e)\n    for (a = 0; a < e.length; a++)\n        if ((w = e[a]) && \"setAttribute\" in w == !!x && (x ? w.localName == x : 3 == w.nodeType)) {\n            u = w, e[a] = null;\n            break;\n        } if (null == u) {\n    if (null == x)\n        return document.createTextNode(k);\n    u = document.createElementNS(o, x, k.is && k), c && (l.__m && l.__m(t, e), c = !1), e = null;\n} if (null == x)\n    b === k || c && u.data == k || (u.data = k);\nelse {\n    if (e = e && n.call(u.childNodes), b = i.props || p, !c && null != e)\n        for (b = {}, a = 0; a < u.attributes.length; a++)\n            b[(w = u.attributes[a]).name] = w.value;\n    for (a in b)\n        if (w = b[a], \"children\" == a)\n            ;\n        else if (\"dangerouslySetInnerHTML\" == a)\n            v = w;\n        else if (!(a in k)) {\n            if (\"value\" == a && \"defaultValue\" in k || \"checked\" == a && \"defaultChecked\" in k)\n                continue;\n            j(u, a, null, w, o);\n        }\n    for (a in k)\n        w = k[a], \"children\" == a ? y = w : \"dangerouslySetInnerHTML\" == a ? h = w : \"value\" == a ? _ = w : \"checked\" == a ? m = w : c && \"function\" != typeof w || b[a] === w || j(u, a, w, b[a], o);\n    if (h)\n        c || v && (h.__html == v.__html || h.__html == u.innerHTML) || (u.innerHTML = h.__html), t.__k = [];\n    else if (v && (u.innerHTML = \"\"), I(\"template\" == t.type ? u.content : u, d(y) ? y : [y], t, i, r, \"foreignObject\" == x ? \"http://www.w3.org/1999/xhtml\" : o, e, f, e ? e[0] : i.__k && S(i, 0), c, s), null != e)\n        for (a = e.length; a--;)\n            g(e[a]);\n    c || (a = \"value\", \"progress\" == x && null == _ ? u.removeAttribute(\"value\") : null != _ && (_ !== u[a] || \"progress\" == x && !_ || \"option\" == x && _ != b[a]) && j(u, a, _, b[a], o), a = \"checked\", null != m && m != u[a] && j(u, a, m, b[a], o));\n} return u; }\nfunction q(n, u, t) { try {\n    if (\"function\" == typeof n) {\n        var i = \"function\" == typeof n.__u;\n        i && n.__u(), i && null == u || (n.__u = n(u));\n    }\n    else\n        n.current = u;\n}\ncatch (n) {\n    l.__e(n, t);\n} }\nfunction B(n, u, t) { var i, r; if (l.unmount && l.unmount(n), (i = n.ref) && (i.current && i.current != n.__e || q(i, null, u)), null != (i = n.__c)) {\n    if (i.componentWillUnmount)\n        try {\n            i.componentWillUnmount();\n        }\n        catch (n) {\n            l.__e(n, u);\n        }\n    i.base = i.__P = null;\n} if (i = n.__k)\n    for (r = 0; r < i.length; r++)\n        i[r] && B(i[r], u, t || \"function\" != typeof n.type); t || g(n.__e), n.__c = n.__ = n.__e = void 0; }\nfunction D(n, l, u) { return this.constructor(n, u); }\nfunction E(u, t, i) { var r, o, e, f; t == document && (t = document.documentElement), l.__ && l.__(u, t), o = (r = \"function\" == typeof i) ? null : i && i.__k || t.__k, e = [], f = [], O(t, u = (!r && i || t).__k = _(k, null, [u]), o || p, p, t.namespaceURI, !r && i ? [i] : o ? null : t.firstChild ? n.call(t.childNodes) : null, e, !r && i ? i : o ? o.__e : t.firstChild, r, f), z(e, u, f); }\nfunction G(n, l) { E(n, l, G); }\nfunction J(l, u, t) { var i, r, o, e, f = w({}, l.props); for (o in l.type && l.type.defaultProps && (e = l.type.defaultProps), u)\n    \"key\" == o ? i = u[o] : \"ref\" == o ? r = u[o] : f[o] = void 0 === u[o] && null != e ? e[o] : u[o]; return arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : t), m(l.type, f, i || l.key, r || l.ref, null); }\nfunction K(n) { function l(n) { var u, t; return this.getChildContext || (u = new Set, (t = {})[l.__c] = this, this.getChildContext = function () { return t; }, this.componentWillUnmount = function () { u = null; }, this.shouldComponentUpdate = function (n) { this.props.value != n.value && u.forEach(function (n) { n.__e = !0, M(n); }); }, this.sub = function (n) { u.add(n); var l = n.componentWillUnmount; n.componentWillUnmount = function () { u && u.delete(n), l && l.call(n); }; }), n.children; } return l.__c = \"__cC\" + h++, l.__ = n, l.Provider = l.__l = (l.Consumer = function (n, l) { return n.children(l); }).contextType = l, l; }\nn = v.slice, exports.options = l = { __e: function (n, l, u, t) { for (var i, r, o; l = l.__;)\n        if ((i = l.__c) && !i.__)\n            try {\n                if ((r = i.constructor) && null != r.getDerivedStateFromError && (i.setState(r.getDerivedStateFromError(n)), o = i.__d), null != i.componentDidCatch && (i.componentDidCatch(n, t || {}), o = i.__d), o)\n                    return i.__E = i;\n            }\n            catch (l) {\n                n = l;\n            } throw n; } }, u = 0, exports.isValidElement = t = function (n) { return null != n && void 0 === n.constructor; }, x.prototype.setState = function (n, l) { var u; u = null != this.__s && this.__s != this.state ? this.__s : this.__s = w({}, this.state), \"function\" == typeof n && (n = n(w({}, u), this.props)), n && w(u, n), null != n && this.__v && (l && this._sb.push(l), M(this)); }, x.prototype.forceUpdate = function (n) { this.__v && (this.__e = !0, n && this.__h.push(n), M(this)); }, x.prototype.render = k, i = [], o = \"function\" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e = function (n, l) { return n.__v.__b - l.__v.__b; }, $.__r = 0, f = /(PointerCapture)$|Capture$/i, c = 0, s = F(!1), a = F(!0), h = 0;\n//# sourceMappingURL=preact.module.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* preact/dist/preact.module.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.Component = x;\n    exports.Fragment = k;\n    exports.cloneElement = J;\n    exports.createContext = K;\n    exports.createElement = _;\n    exports.h = _;\n    exports.createRef = b;\n    exports.hydrate = G;\n    exports.render = E;\n    exports.toChildArray = H;\n    var n, l, u, t, i, r, o, e, f, c, s, a, h, p = {}, v = [], y = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, d = Array.isArray;\n    function w(n, l) {\n        for (var u in l)\n            n[u] = l[u];\n        return n;\n    }\n    function g(n) { n && n.parentNode && n.parentNode.removeChild(n); }\n    function _(l, u, t) {\n        var i, r, o, e = {};\n        for (o in u)\n            \"key\" == o ? i = u[o] : \"ref\" == o ? r = u[o] : e[o] = u[o];\n        if (arguments.length > 2 && (e.children = arguments.length > 3 ? n.call(arguments, 2) : t), \"function\" == typeof l && null != l.defaultProps)\n            for (o in l.defaultProps)\n                void 0 === e[o] && (e[o] = l.defaultProps[o]);\n        return m(l, e, i, r, null);\n    }\n    function m(n, t, i, r, o) { var e = { type: n, props: t, key: i, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: null == o ? ++u : o, __i: -1, __u: 0 }; return null == o && null != l.vnode && l.vnode(e), e; }\n    function b() { return { current: null }; }\n    function k(n) { return n.children; }\n    function x(n, l) { this.props = n, this.context = l; }\n    function S(n, l) {\n        if (null == l)\n            return n.__ ? S(n.__, n.__i + 1) : null;\n        for (var u; l < n.__k.length; l++)\n            if (null != (u = n.__k[l]) && null != u.__e)\n                return u.__e;\n        return \"function\" == typeof n.type ? S(n) : null;\n    }\n    function C(n) {\n        var l, u;\n        if (null != (n = n.__) && null != n.__c) {\n            for (n.__e = n.__c.base = null, l = 0; l < n.__k.length; l++)\n                if (null != (u = n.__k[l]) && null != u.__e) {\n                    n.__e = n.__c.base = u.__e;\n                    break;\n                }\n            return C(n);\n        }\n    }\n    function M(n) { (!n.__d && (n.__d = !0) && i.push(n) && !$.__r++ || r != l.debounceRendering) && ((r = l.debounceRendering) || o)($); }\n    function $() {\n        for (var n, u, t, r, o, f, c, s = 1; i.length;)\n            i.length > s && i.sort(e), n = i.shift(), s = i.length, n.__d && (t = void 0, o = (r = (u = n).__v).__e, f = [], c = [], u.__P && ((t = w({}, r)).__v = r.__v + 1, l.vnode && l.vnode(t), O(u.__P, t, r, u.__n, u.__P.namespaceURI, 32 & r.__u ? [o] : null, f, null == o ? S(r) : o, !!(32 & r.__u), c), t.__v = r.__v, t.__.__k[t.__i] = t, z(f, t, c), t.__e != o && C(t)));\n        $.__r = 0;\n    }\n    function I(n, l, u, t, i, r, o, e, f, c, s) {\n        var a, h, y, d, w, g, _ = t && t.__k || v, m = l.length;\n        for (f = P(u, l, _, f, m), a = 0; a < m; a++)\n            null != (y = u.__k[a]) && (h = -1 == y.__i ? p : _[y.__i] || p, y.__i = a, g = O(n, y, h, i, r, o, e, f, c, s), d = y.__e, y.ref && h.ref != y.ref && (h.ref && q(h.ref, null, y), s.push(y.ref, y.__c || d, y)), null == w && null != d && (w = d), 4 & y.__u || h.__k === y.__k ? f = A(y, f, n) : \"function\" == typeof y.type && void 0 !== g ? f = g : d && (f = d.nextSibling), y.__u &= -7);\n        return u.__e = w, f;\n    }\n    function P(n, l, u, t, i) {\n        var r, o, e, f, c, s = u.length, a = s, h = 0;\n        for (n.__k = new Array(i), r = 0; r < i; r++)\n            null != (o = l[r]) && \"boolean\" != typeof o && \"function\" != typeof o ? (f = r + h, (o = n.__k[r] = \"string\" == typeof o || \"number\" == typeof o || \"bigint\" == typeof o || o.constructor == String ? m(null, o, null, null, null) : d(o) ? m(k, { children: o }, null, null, null) : void 0 === o.constructor && o.__b > 0 ? m(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o).__ = n, o.__b = n.__b + 1, e = null, -1 != (c = o.__i = L(o, u, f, a)) && (a--, (e = u[c]) && (e.__u |= 2)), null == e || null == e.__v ? (-1 == c && (i > s ? h-- : i < s && h++), \"function\" != typeof o.type && (o.__u |= 4)) : c != f && (c == f - 1 ? h-- : c == f + 1 ? h++ : (c > f ? h-- : h++, o.__u |= 4))) : n.__k[r] = null;\n        if (a)\n            for (r = 0; r < s; r++)\n                null != (e = u[r]) && 0 == (2 & e.__u) && (e.__e == t && (t = S(e)), B(e, e));\n        return t;\n    }\n    function A(n, l, u) {\n        var t, i;\n        if (\"function\" == typeof n.type) {\n            for (t = n.__k, i = 0; t && i < t.length; i++)\n                t[i] && (t[i].__ = n, l = A(t[i], l, u));\n            return l;\n        }\n        n.__e != l && (l && n.type && !u.contains(l) && (l = S(n)), u.insertBefore(n.__e, l || null), l = n.__e);\n        do {\n            l = l && l.nextSibling;\n        } while (null != l && 8 == l.nodeType);\n        return l;\n    }\n    function H(n, l) { return l = l || [], null == n || \"boolean\" == typeof n || (d(n) ? n.some(function (n) { H(n, l); }) : l.push(n)), l; }\n    function L(n, l, u, t) {\n        var i, r, o = n.key, e = n.type, f = l[u];\n        if (null === f && null == n.key || f && o == f.key && e == f.type && 0 == (2 & f.__u))\n            return u;\n        if (t > (null != f && 0 == (2 & f.__u) ? 1 : 0))\n            for (i = u - 1, r = u + 1; i >= 0 || r < l.length;) {\n                if (i >= 0) {\n                    if ((f = l[i]) && 0 == (2 & f.__u) && o == f.key && e == f.type)\n                        return i;\n                    i--;\n                }\n                if (r < l.length) {\n                    if ((f = l[r]) && 0 == (2 & f.__u) && o == f.key && e == f.type)\n                        return r;\n                    r++;\n                }\n            }\n        return -1;\n    }\n    function T(n, l, u) { \"-\" == l[0] ? n.setProperty(l, null == u ? \"\" : u) : n[l] = null == u ? \"\" : \"number\" != typeof u || y.test(l) ? u : u + \"px\"; }\n    function j(n, l, u, t, i) {\n        var r, o;\n        n: if (\"style\" == l)\n            if (\"string\" == typeof u)\n                n.style.cssText = u;\n            else {\n                if (\"string\" == typeof t && (n.style.cssText = t = \"\"), t)\n                    for (l in t)\n                        u && l in u || T(n.style, l, \"\");\n                if (u)\n                    for (l in u)\n                        t && u[l] == t[l] || T(n.style, l, u[l]);\n            }\n        else if (\"o\" == l[0] && \"n\" == l[1])\n            r = l != (l = l.replace(f, \"$1\")), o = l.toLowerCase(), l = o in n || \"onFocusOut\" == l || \"onFocusIn\" == l ? o.slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + r] = u, u ? t ? u.u = t.u : (u.u = c, n.addEventListener(l, r ? a : s, r)) : n.removeEventListener(l, r ? a : s, r);\n        else {\n            if (\"http://www.w3.org/2000/svg\" == i)\n                l = l.replace(/xlink(H|:h)/, \"h\").replace(/sName$/, \"s\");\n            else if (\"width\" != l && \"height\" != l && \"href\" != l && \"list\" != l && \"form\" != l && \"tabIndex\" != l && \"download\" != l && \"rowSpan\" != l && \"colSpan\" != l && \"role\" != l && \"popover\" != l && l in n)\n                try {\n                    n[l] = null == u ? \"\" : u;\n                    break n;\n                }\n                catch (n) { }\n            \"function\" == typeof u || (null == u || !1 === u && \"-\" != l[4] ? n.removeAttribute(l) : n.setAttribute(l, \"popover\" == l && 1 == u ? \"\" : u));\n        }\n    }\n    function F(n) {\n        return function (u) {\n            if (this.l) {\n                var t = this.l[u.type + n];\n                if (null == u.t)\n                    u.t = c++;\n                else if (u.t < t.u)\n                    return;\n                return t(l.event ? l.event(u) : u);\n            }\n        };\n    }\n    function O(n, u, t, i, r, o, e, f, c, s) {\n        var a, h, p, v, y, _, m, b, S, C, M, $, P, A, H, L, T, j = u.type;\n        if (void 0 !== u.constructor)\n            return null;\n        128 & t.__u && (c = !!(32 & t.__u), o = [f = u.__e = t.__e]), (a = l.__b) && a(u);\n        n: if (\"function\" == typeof j)\n            try {\n                if (b = u.props, S = \"prototype\" in j && j.prototype.render, C = (a = j.contextType) && i[a.__c], M = a ? C ? C.props.value : a.__ : i, t.__c ? m = (h = u.__c = t.__c).__ = h.__E : (S ? u.__c = h = new j(b, M) : (u.__c = h = new x(b, M), h.constructor = j, h.render = D), C && C.sub(h), h.props = b, h.state || (h.state = {}), h.context = M, h.__n = i, p = h.__d = !0, h.__h = [], h._sb = []), S && null == h.__s && (h.__s = h.state), S && null != j.getDerivedStateFromProps && (h.__s == h.state && (h.__s = w({}, h.__s)), w(h.__s, j.getDerivedStateFromProps(b, h.__s))), v = h.props, y = h.state, h.__v = u, p)\n                    S && null == j.getDerivedStateFromProps && null != h.componentWillMount && h.componentWillMount(), S && null != h.componentDidMount && h.__h.push(h.componentDidMount);\n                else {\n                    if (S && null == j.getDerivedStateFromProps && b !== v && null != h.componentWillReceiveProps && h.componentWillReceiveProps(b, M), !h.__e && null != h.shouldComponentUpdate && !1 === h.shouldComponentUpdate(b, h.__s, M) || u.__v == t.__v) {\n                        for (u.__v != t.__v && (h.props = b, h.state = h.__s, h.__d = !1), u.__e = t.__e, u.__k = t.__k, u.__k.some(function (n) { n && (n.__ = u); }), $ = 0; $ < h._sb.length; $++)\n                            h.__h.push(h._sb[$]);\n                        h._sb = [], h.__h.length && e.push(h);\n                        break n;\n                    }\n                    null != h.componentWillUpdate && h.componentWillUpdate(b, h.__s, M), S && null != h.componentDidUpdate && h.__h.push(function () { h.componentDidUpdate(v, y, _); });\n                }\n                if (h.context = M, h.props = b, h.__P = n, h.__e = !1, P = l.__r, A = 0, S) {\n                    for (h.state = h.__s, h.__d = !1, P && P(u), a = h.render(h.props, h.state, h.context), H = 0; H < h._sb.length; H++)\n                        h.__h.push(h._sb[H]);\n                    h._sb = [];\n                }\n                else\n                    do {\n                        h.__d = !1, P && P(u), a = h.render(h.props, h.state, h.context), h.state = h.__s;\n                    } while (h.__d && ++A < 25);\n                h.state = h.__s, null != h.getChildContext && (i = w(w({}, i), h.getChildContext())), S && !p && null != h.getSnapshotBeforeUpdate && (_ = h.getSnapshotBeforeUpdate(v, y)), L = a, null != a && a.type === k && null == a.key && (L = N(a.props.children)), f = I(n, d(L) ? L : [L], u, t, i, r, o, e, f, c, s), h.base = u.__e, u.__u &= -161, h.__h.length && e.push(h), m && (h.__E = h.__ = null);\n            }\n            catch (n) {\n                if (u.__v = null, c || null != o)\n                    if (n.then) {\n                        for (u.__u |= c ? 160 : 128; f && 8 == f.nodeType && f.nextSibling;)\n                            f = f.nextSibling;\n                        o[o.indexOf(f)] = null, u.__e = f;\n                    }\n                    else\n                        for (T = o.length; T--;)\n                            g(o[T]);\n                else\n                    u.__e = t.__e, u.__k = t.__k;\n                l.__e(n, u, t);\n            }\n        else\n            null == o && u.__v == t.__v ? (u.__k = t.__k, u.__e = t.__e) : f = u.__e = V(t.__e, u, t, i, r, o, e, c, s);\n        return (a = l.diffed) && a(u), 128 & u.__u ? void 0 : f;\n    }\n    function z(n, u, t) {\n        for (var i = 0; i < t.length; i++)\n            q(t[i], t[++i], t[++i]);\n        l.__c && l.__c(u, n), n.some(function (u) {\n            try {\n                n = u.__h, u.__h = [], n.some(function (n) { n.call(u); });\n            }\n            catch (n) {\n                l.__e(n, u.__v);\n            }\n        });\n    }\n    function N(n) { return \"object\" != typeof n || null == n || n.__b && n.__b > 0 ? n : d(n) ? n.map(N) : w({}, n); }\n    function V(u, t, i, r, o, e, f, c, s) {\n        var a, h, v, y, w, _, m, b = i.props, k = t.props, x = t.type;\n        if (\"svg\" == x ? o = \"http://www.w3.org/2000/svg\" : \"math\" == x ? o = \"http://www.w3.org/1998/Math/MathML\" : o || (o = \"http://www.w3.org/1999/xhtml\"), null != e)\n            for (a = 0; a < e.length; a++)\n                if ((w = e[a]) && \"setAttribute\" in w == !!x && (x ? w.localName == x : 3 == w.nodeType)) {\n                    u = w, e[a] = null;\n                    break;\n                }\n        if (null == u) {\n            if (null == x)\n                return document.createTextNode(k);\n            u = document.createElementNS(o, x, k.is && k), c && (l.__m && l.__m(t, e), c = !1), e = null;\n        }\n        if (null == x)\n            b === k || c && u.data == k || (u.data = k);\n        else {\n            if (e = e && n.call(u.childNodes), b = i.props || p, !c && null != e)\n                for (b = {}, a = 0; a < u.attributes.length; a++)\n                    b[(w = u.attributes[a]).name] = w.value;\n            for (a in b)\n                if (w = b[a], \"children\" == a)\n                    ;\n                else if (\"dangerouslySetInnerHTML\" == a)\n                    v = w;\n                else if (!(a in k)) {\n                    if (\"value\" == a && \"defaultValue\" in k || \"checked\" == a && \"defaultChecked\" in k)\n                        continue;\n                    j(u, a, null, w, o);\n                }\n            for (a in k)\n                w = k[a], \"children\" == a ? y = w : \"dangerouslySetInnerHTML\" == a ? h = w : \"value\" == a ? _ = w : \"checked\" == a ? m = w : c && \"function\" != typeof w || b[a] === w || j(u, a, w, b[a], o);\n            if (h)\n                c || v && (h.__html == v.__html || h.__html == u.innerHTML) || (u.innerHTML = h.__html), t.__k = [];\n            else if (v && (u.innerHTML = \"\"), I(\"template\" == t.type ? u.content : u, d(y) ? y : [y], t, i, r, \"foreignObject\" == x ? \"http://www.w3.org/1999/xhtml\" : o, e, f, e ? e[0] : i.__k && S(i, 0), c, s), null != e)\n                for (a = e.length; a--;)\n                    g(e[a]);\n            c || (a = \"value\", \"progress\" == x && null == _ ? u.removeAttribute(\"value\") : null != _ && (_ !== u[a] || \"progress\" == x && !_ || \"option\" == x && _ != b[a]) && j(u, a, _, b[a], o), a = \"checked\", null != m && m != u[a] && j(u, a, m, b[a], o));\n        }\n        return u;\n    }\n    function q(n, u, t) {\n        try {\n            if (\"function\" == typeof n) {\n                var i = \"function\" == typeof n.__u;\n                i && n.__u(), i && null == u || (n.__u = n(u));\n            }\n            else\n                n.current = u;\n        }\n        catch (n) {\n            l.__e(n, t);\n        }\n    }\n    function B(n, u, t) {\n        var i, r;\n        if (l.unmount && l.unmount(n), (i = n.ref) && (i.current && i.current != n.__e || q(i, null, u)), null != (i = n.__c)) {\n            if (i.componentWillUnmount)\n                try {\n                    i.componentWillUnmount();\n                }\n                catch (n) {\n                    l.__e(n, u);\n                }\n            i.base = i.__P = null;\n        }\n        if (i = n.__k)\n            for (r = 0; r < i.length; r++)\n                i[r] && B(i[r], u, t || \"function\" != typeof n.type);\n        t || g(n.__e), n.__c = n.__ = n.__e = void 0;\n    }\n    function D(n, l, u) { return this.constructor(n, u); }\n    function E(u, t, i) { var r, o, e, f; t == document && (t = document.documentElement), l.__ && l.__(u, t), o = (r = \"function\" == typeof i) ? null : i && i.__k || t.__k, e = [], f = [], O(t, u = (!r && i || t).__k = _(k, null, [u]), o || p, p, t.namespaceURI, !r && i ? [i] : o ? null : t.firstChild ? n.call(t.childNodes) : null, e, !r && i ? i : o ? o.__e : t.firstChild, r, f), z(e, u, f); }\n    function G(n, l) { E(n, l, G); }\n    function J(l, u, t) {\n        var i, r, o, e, f = w({}, l.props);\n        for (o in l.type && l.type.defaultProps && (e = l.type.defaultProps), u)\n            \"key\" == o ? i = u[o] : \"ref\" == o ? r = u[o] : f[o] = void 0 === u[o] && null != e ? e[o] : u[o];\n        return arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : t), m(l.type, f, i || l.key, r || l.ref, null);\n    }\n    function K(n) { function l(n) { var u, t; return this.getChildContext || (u = new Set, (t = {})[l.__c] = this, this.getChildContext = function () { return t; }, this.componentWillUnmount = function () { u = null; }, this.shouldComponentUpdate = function (n) { this.props.value != n.value && u.forEach(function (n) { n.__e = !0, M(n); }); }, this.sub = function (n) { u.add(n); var l = n.componentWillUnmount; n.componentWillUnmount = function () { u && u.delete(n), l && l.call(n); }; }), n.children; } return l.__c = \"__cC\" + h++, l.__ = n, l.Provider = l.__l = (l.Consumer = function (n, l) { return n.children(l); }).contextType = l, l; }\n    n = v.slice, exports.options = l = { __e: function (n, l, u, t) {\n            for (var i, r, o; l = l.__;)\n                if ((i = l.__c) && !i.__)\n                    try {\n                        if ((r = i.constructor) && null != r.getDerivedStateFromError && (i.setState(r.getDerivedStateFromError(n)), o = i.__d), null != i.componentDidCatch && (i.componentDidCatch(n, t || {}), o = i.__d), o)\n                            return i.__E = i;\n                    }\n                    catch (l) {\n                        n = l;\n                    }\n            throw n;\n        } }, u = 0, exports.isValidElement = t = function (n) { return null != n && void 0 === n.constructor; }, x.prototype.setState = function (n, l) { var u; u = null != this.__s && this.__s != this.state ? this.__s : this.__s = w({}, this.state), \"function\" == typeof n && (n = n(w({}, u), this.props)), n && w(u, n), null != n && this.__v && (l && this._sb.push(l), M(this)); }, x.prototype.forceUpdate = function (n) { this.__v && (this.__e = !0, n && this.__h.push(n), M(this)); }, x.prototype.render = k, i = [], o = \"function\" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e = function (n, l) { return n.__v.__b - l.__v.__b; }, $.__r = 0, f = /(PointerCapture)$|Capture$/i, c = 0, s = F(!1), a = F(!0), h = 0;\n}\n","min_source":"function _(e,n,t,_,l){_(),t.Component=S,t.Fragment=P,t.cloneElement=function(e,n,t){var _,l,r,u,i=k({},e.props);for(r in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),n)\"key\"==r?_=n[r]:\"ref\"==r?l=n[r]:i[r]=void 0===n[r]&&null!=u?u[r]:n[r];return arguments.length>2&&(i.children=arguments.length>3?o.call(arguments,2):t),C(e.type,i,_||e.key,l||e.ref,null)},t.createContext=function(e){function n(e){var t,_;return this.getChildContext||(t=new Set,(_={})[n.__c]=this,this.getChildContext=function(){return _},this.componentWillUnmount=function(){t=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&t.forEach((function(e){e.__e=!0,E(e)}))},this.sub=function(e){t.add(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t&&t.delete(e),n&&n.call(e)}}),e.children}return n.__c=\"__cC\"+v++,n.__=e,n.Provider=n.__l=(n.Consumer=function(e,n){return e.children(n)}).contextType=n,n},t.createElement=x,t.h=x,t.createRef=function(){return{current:null}},t.hydrate=function e(n,t){z(n,t,e)},t.render=z,t.toChildArray=function e(n,t){return t=t||[],null==n||\"boolean\"==typeof n||(b(n)?n.some((function(n){e(n,t)})):t.push(n)),t};var o,r,u,i,c,s,f,p,a,h,d,v,y={},m=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function k(e,n){for(var t in n)e[t]=n[t];return e}function w(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function x(e,n,t){var _,l,r,u={};for(r in n)\"key\"==r?_=n[r]:\"ref\"==r?l=n[r]:u[r]=n[r];if(arguments.length>2&&(u.children=arguments.length>3?o.call(arguments,2):t),\"function\"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===u[r]&&(u[r]=e.defaultProps[r]);return C(e,u,_,l,null)}function C(e,n,t,_,l){var o={type:e,props:n,key:t,ref:_,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:l??++u,__i:-1,__u:0};return null==l&&null!=r.vnode&&r.vnode(o),o}function P(e){return e.children}function S(e,n){this.props=e,this.context=n}function U(e,n){if(null==n)return e.__?U(e.__,e.__i+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return\"function\"==typeof e.type?U(e):null}function T(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return T(e)}}function E(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!D.__r++||c!=r.debounceRendering)&&((c=r.debounceRendering)||s)(D)}function D(){for(var e,n,t,_,l,o,u,c=1;i.length;)i.length>c&&i.sort(f),e=i.shift(),c=i.length,e.__d&&(t=void 0,l=(_=(n=e).__v).__e,o=[],u=[],n.__P&&((t=k({},_)).__v=_.__v+1,r.vnode&&r.vnode(t),H(n.__P,t,_,n.__n,n.__P.namespaceURI,32&_.__u?[l]:null,o,l??U(_),!!(32&_.__u),u),t.__v=_.__v,t.__.__k[t.__i]=t,I(o,t,u),t.__e!=l&&T(t)));D.__r=0}function M(e,n,t,_,l,o,r,u,i,c,s){var f,p,a,h,d,v,g=_&&_.__k||m,b=n.length;for(i=W(t,n,g,i,b),f=0;f<b;f++)null!=(a=t.__k[f])&&(p=-1==a.__i?y:g[a.__i]||y,a.__i=f,v=H(e,a,p,l,o,r,u,i,c,s),h=a.__e,a.ref&&p.ref!=a.ref&&(p.ref&&O(p.ref,null,a),s.push(a.ref,a.__c||h,a)),null==d&&null!=h&&(d=h),4&a.__u||p.__k===a.__k?i=F(a,i,e):\"function\"==typeof a.type&&void 0!==v?i=v:h&&(i=h.nextSibling),a.__u&=-7);return t.__e=d,i}function W(e,n,t,_,l){var o,r,u,i,c,s=t.length,f=s,p=0;for(e.__k=new Array(l),o=0;o<l;o++)null!=(r=n[o])&&\"boolean\"!=typeof r&&\"function\"!=typeof r?(i=o+p,(r=e.__k[o]=\"string\"==typeof r||\"number\"==typeof r||\"bigint\"==typeof r||r.constructor==String?C(null,r,null,null,null):b(r)?C(P,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?C(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r).__=e,r.__b=e.__b+1,u=null,-1!=(c=r.__i=L(r,t,i,f))&&(f--,(u=t[c])&&(u.__u|=2)),null==u||null==u.__v?(-1==c&&(l>s?p--:l<s&&p++),\"function\"!=typeof r.type&&(r.__u|=4)):c!=i&&(c==i-1?p--:c==i+1?p++:(c>i?p--:p++,r.__u|=4))):e.__k[o]=null;if(f)for(o=0;o<s;o++)null!=(u=t[o])&&!(2&u.__u)&&(u.__e==_&&(_=U(u)),j(u,u));return _}function F(e,n,t){var _,l;if(\"function\"==typeof e.type){for(_=e.__k,l=0;_&&l<_.length;l++)_[l]&&(_[l].__=e,n=F(_[l],n,t));return n}e.__e!=n&&(n&&e.type&&!t.contains(n)&&(n=U(e)),t.insertBefore(e.__e,n||null),n=e.__e);do{n=n&&n.nextSibling}while(null!=n&&8==n.nodeType);return n}function L(e,n,t,_){var l,o,r=e.key,u=e.type,i=n[t];if(null===i&&null==e.key||i&&r==i.key&&u==i.type&&!(2&i.__u))return t;if(_>(null==i||2&i.__u?0:1))for(l=t-1,o=t+1;l>=0||o<n.length;){if(l>=0){if((i=n[l])&&!(2&i.__u)&&r==i.key&&u==i.type)return l;l--}if(o<n.length){if((i=n[o])&&!(2&i.__u)&&r==i.key&&u==i.type)return o;o++}}return-1}function A(e,n,t){\"-\"==n[0]?e.setProperty(n,t??\"\"):e[n]=null==t?\"\":\"number\"!=typeof t||g.test(n)?t:t+\"px\"}function N(e,n,t,_,l){var o,r;e:if(\"style\"==n)if(\"string\"==typeof t)e.style.cssText=t;else{if(\"string\"==typeof _&&(e.style.cssText=_=\"\"),_)for(n in _)t&&n in t||A(e.style,n,\"\");if(t)for(n in t)_&&t[n]==_[n]||A(e.style,n,t[n])}else if(\"o\"==n[0]&&\"n\"==n[1])o=n!=(n=n.replace(p,\"$1\")),r=n.toLowerCase(),n=r in e||\"onFocusOut\"==n||\"onFocusIn\"==n?r.slice(2):n.slice(2),e.l||(e.l={}),e.l[n+o]=t,t?_?t.u=_.u:(t.u=a,e.addEventListener(n,o?d:h,o)):e.removeEventListener(n,o?d:h,o);else{if(\"http://www.w3.org/2000/svg\"==l)n=n.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(\"width\"!=n&&\"height\"!=n&&\"href\"!=n&&\"list\"!=n&&\"form\"!=n&&\"tabIndex\"!=n&&\"download\"!=n&&\"rowSpan\"!=n&&\"colSpan\"!=n&&\"role\"!=n&&\"popover\"!=n&&n in e)try{e[n]=t??\"\";break e}catch(e){}\"function\"==typeof t||(null==t||!1===t&&\"-\"!=n[4]?e.removeAttribute(n):e.setAttribute(n,\"popover\"==n&&1==t?\"\":t))}}function R(e){return function(n){if(this.l){var t=this.l[n.type+e];if(null==n.t)n.t=a++;else if(n.t<t.u)return;return t(r.event?r.event(n):n)}}}function H(e,n,t,_,l,o,u,i,c,s){var f,p,a,h,d,v,y,m,g,x,C,U,T,E,D,W,F,L=n.type;if(void 0!==n.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[i=n.__e=t.__e]),(f=r.__b)&&f(n);e:if(\"function\"==typeof L)try{if(m=n.props,g=\"prototype\"in L&&L.prototype.render,x=(f=L.contextType)&&_[f.__c],C=f?x?x.props.value:f.__:_,t.__c?y=(p=n.__c=t.__c).__=p.__E:(g?n.__c=p=new L(m,C):(n.__c=p=new S(m,C),p.constructor=L,p.render=V),x&&x.sub(p),p.props=m,p.state||(p.state={}),p.context=C,p.__n=_,a=p.__d=!0,p.__h=[],p._sb=[]),g&&null==p.__s&&(p.__s=p.state),g&&null!=L.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=k({},p.__s)),k(p.__s,L.getDerivedStateFromProps(m,p.__s))),h=p.props,d=p.state,p.__v=n,a)g&&null==L.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),g&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(g&&null==L.getDerivedStateFromProps&&m!==h&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(m,C),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(m,p.__s,C)||n.__v==t.__v){for(n.__v!=t.__v&&(p.props=m,p.state=p.__s,p.__d=!1),n.__e=t.__e,n.__k=t.__k,n.__k.some((function(e){e&&(e.__=n)})),U=0;U<p._sb.length;U++)p.__h.push(p._sb[U]);p._sb=[],p.__h.length&&u.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(m,p.__s,C),g&&null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(h,d,v)}))}if(p.context=C,p.props=m,p.__P=e,p.__e=!1,T=r.__r,E=0,g){for(p.state=p.__s,p.__d=!1,T&&T(n),f=p.render(p.props,p.state,p.context),D=0;D<p._sb.length;D++)p.__h.push(p._sb[D]);p._sb=[]}else do{p.__d=!1,T&&T(n),f=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++E<25);p.state=p.__s,null!=p.getChildContext&&(_=k(k({},_),p.getChildContext())),g&&!a&&null!=p.getSnapshotBeforeUpdate&&(v=p.getSnapshotBeforeUpdate(h,d)),W=f,null!=f&&f.type===P&&null==f.key&&(W=$(f.props.children)),i=M(e,b(W)?W:[W],n,t,_,l,o,u,i,c,s),p.base=n.__e,n.__u&=-161,p.__h.length&&u.push(p),y&&(p.__E=p.__=null)}catch(e){if(n.__v=null,c||null!=o)if(e.then){for(n.__u|=c?160:128;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;o[o.indexOf(i)]=null,n.__e=i}else for(F=o.length;F--;)w(o[F]);else n.__e=t.__e,n.__k=t.__k;r.__e(e,n,t)}else null==o&&n.__v==t.__v?(n.__k=t.__k,n.__e=t.__e):i=n.__e=B(t.__e,n,t,_,l,o,u,c,s);return(f=r.diffed)&&f(n),128&n.__u?void 0:i}function I(e,n,t){for(var _=0;_<t.length;_++)O(t[_],t[++_],t[++_]);r.__c&&r.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){r.__e(e,n.__v)}}))}function $(e){return\"object\"!=typeof e||null==e||e.__b&&e.__b>0?e:b(e)?e.map($):k({},e)}function B(e,n,t,_,l,u,i,c,s){var f,p,a,h,d,v,m,g=t.props,k=n.props,x=n.type;if(\"svg\"==x?l=\"http://www.w3.org/2000/svg\":\"math\"==x?l=\"http://www.w3.org/1998/Math/MathML\":l||(l=\"http://www.w3.org/1999/xhtml\"),null!=u)for(f=0;f<u.length;f++)if((d=u[f])&&\"setAttribute\"in d==!!x&&(x?d.localName==x:3==d.nodeType)){e=d,u[f]=null;break}if(null==e){if(null==x)return document.createTextNode(k);e=document.createElementNS(l,x,k.is&&k),c&&(r.__m&&r.__m(n,u),c=!1),u=null}if(null==x)g===k||c&&e.data==k||(e.data=k);else{if(u=u&&o.call(e.childNodes),g=t.props||y,!c&&null!=u)for(g={},f=0;f<e.attributes.length;f++)g[(d=e.attributes[f]).name]=d.value;for(f in g)if(d=g[f],\"children\"==f);else if(\"dangerouslySetInnerHTML\"==f)a=d;else if(!(f in k)){if(\"value\"==f&&\"defaultValue\"in k||\"checked\"==f&&\"defaultChecked\"in k)continue;N(e,f,null,d,l)}for(f in k)d=k[f],\"children\"==f?h=d:\"dangerouslySetInnerHTML\"==f?p=d:\"value\"==f?v=d:\"checked\"==f?m=d:c&&\"function\"!=typeof d||g[f]===d||N(e,f,d,g[f],l);if(p)c||a&&(p.__html==a.__html||p.__html==e.innerHTML)||(e.innerHTML=p.__html),n.__k=[];else if(a&&(e.innerHTML=\"\"),M(\"template\"==n.type?e.content:e,b(h)?h:[h],n,t,_,\"foreignObject\"==x?\"http://www.w3.org/1999/xhtml\":l,u,i,u?u[0]:t.__k&&U(t,0),c,s),null!=u)for(f=u.length;f--;)w(u[f]);c||(f=\"value\",\"progress\"==x&&null==v?e.removeAttribute(\"value\"):null!=v&&(v!==e[f]||\"progress\"==x&&!v||\"option\"==x&&v!=g[f])&&N(e,f,v,g[f],l),f=\"checked\",null!=m&&m!=e[f]&&N(e,f,m,g[f],l))}return e}function O(e,n,t){try{if(\"function\"==typeof e){var _=\"function\"==typeof e.__u;_&&e.__u(),_&&null==n||(e.__u=e(n))}else e.current=n}catch(e){r.__e(e,t)}}function j(e,n,t){var _,l;if(r.unmount&&r.unmount(e),(_=e.ref)&&(_.current&&_.current!=e.__e||O(_,null,n)),null!=(_=e.__c)){if(_.componentWillUnmount)try{_.componentWillUnmount()}catch(e){r.__e(e,n)}_.base=_.__P=null}if(_=e.__k)for(l=0;l<_.length;l++)_[l]&&j(_[l],n,t||\"function\"!=typeof e.type);t||w(e.__e),e.__c=e.__=e.__e=void 0}function V(e,n,t){return this.constructor(e,t)}function z(e,n,t){var _,l,u,i;n==document&&(n=document.documentElement),r.__&&r.__(e,n),l=(_=\"function\"==typeof t)?null:t&&t.__k||n.__k,u=[],i=[],H(n,e=(!_&&t||n).__k=x(P,null,[e]),l||y,y,n.namespaceURI,!_&&t?[t]:l?null:n.firstChild?o.call(n.childNodes):null,u,!_&&t?t:l?l.__e:n.firstChild,_,i),I(u,e,i)}o=m.slice,t.options=r={__e:function(e,n,t,_){for(var l,o,r;n=n.__;)if((l=n.__c)&&!l.__)try{if((o=l.constructor)&&null!=o.getDerivedStateFromError&&(l.setState(o.getDerivedStateFromError(e)),r=l.__d),null!=l.componentDidCatch&&(l.componentDidCatch(e,_||{}),r=l.__d),r)return l.__E=l}catch(n){e=n}throw e}},u=0,t.isValidElement=function(e){return null!=e&&void 0===e.constructor},S.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=k({},this.state),\"function\"==typeof e&&(e=e(k({},t),this.props)),e&&k(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),E(this))},S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},S.prototype.render=P,i=[],s=\"function\"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,n){return e.__v.__b-n.__v.__b},D.__r=0,p=/(PointerCapture)$|Capture$/i,a=0,h=R(!1),d=R(!0),v=0}\n//# sourceMappingURL=preact.module.min.js.map","min_map":"{\"version\":3,\"file\":\"preact.module.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"Component\",\"x\",\"Fragment\",\"k\",\"cloneElement\",\"l\",\"u\",\"t\",\"i\",\"r\",\"o\",\"e\",\"f\",\"w\",\"props\",\"type\",\"defaultProps\",\"arguments\",\"length\",\"children\",\"n\",\"call\",\"m\",\"key\",\"ref\",\"createContext\",\"this\",\"getChildContext\",\"Set\",\"__c\",\"componentWillUnmount\",\"shouldComponentUpdate\",\"value\",\"forEach\",\"__e\",\"M\",\"sub\",\"add\",\"delete\",\"h\",\"__\",\"Provider\",\"__l\",\"Consumer\",\"contextType\",\"createElement\",\"createRef\",\"current\",\"hydrate\",\"G\",\"E\",\"render\",\"toChildArray\",\"H\",\"d\",\"some\",\"push\",\"c\",\"s\",\"a\",\"p\",\"v\",\"y\",\"Array\",\"isArray\",\"g\",\"parentNode\",\"removeChild\",\"__k\",\"__b\",\"constructor\",\"__v\",\"__i\",\"__u\",\"vnode\",\"context\",\"S\",\"C\",\"base\",\"__d\",\"$\",\"__r\",\"debounceRendering\",\"sort\",\"shift\",\"__P\",\"O\",\"__n\",\"namespaceURI\",\"z\",\"I\",\"P\",\"q\",\"A\",\"nextSibling\",\"String\",\"L\",\"B\",\"contains\",\"insertBefore\",\"nodeType\",\"T\",\"setProperty\",\"test\",\"j\",\"style\",\"cssText\",\"replace\",\"toLowerCase\",\"slice\",\"addEventListener\",\"removeEventListener\",\"removeAttribute\",\"setAttribute\",\"F\",\"event\",\"b\",\"prototype\",\"__E\",\"D\",\"state\",\"__h\",\"_sb\",\"__s\",\"getDerivedStateFromProps\",\"componentWillMount\",\"componentDidMount\",\"componentWillReceiveProps\",\"componentWillUpdate\",\"componentDidUpdate\",\"getSnapshotBeforeUpdate\",\"N\",\"then\",\"indexOf\",\"V\",\"diffed\",\"map\",\"localName\",\"document\",\"createTextNode\",\"createElementNS\",\"is\",\"__m\",\"data\",\"childNodes\",\"attributes\",\"name\",\"__html\",\"innerHTML\",\"content\",\"unmount\",\"documentElement\",\"firstChild\",\"options\",\"getDerivedStateFromError\",\"setState\",\"componentDidCatch\",\"isValidElement\",\"forceUpdate\",\"Promise\",\"bind\",\"resolve\",\"setTimeout\"],\"sources\":[\"0\"],\"mappings\":\"AAAmC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAChFD,IACAD,EAAQG,UAAYC,EACpBJ,EAAQK,SAAWC,EACnBN,EAAQO,aAkRR,SAAWC,EAAGC,EAAGC,GACb,IAAIC,EAAGC,EAAGC,EAAGC,EAAGC,EAAIC,EAAE,CAAC,EAAGR,EAAES,OAC5B,IAAKJ,KAAKL,EAAEU,MAAQV,EAAEU,KAAKC,eAAiBL,EAAIN,EAAEU,KAAKC,cAAeV,EAClE,OAASI,EAAIF,EAAIF,EAAEI,GAAK,OAASA,EAAID,EAAIH,EAAEI,GAAKE,EAAEF,QAAK,IAAWJ,EAAEI,IAAM,MAAQC,EAAIA,EAAED,GAAKJ,EAAEI,GACn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Aa,EAAGrE,EAAEoH,UAAUsC,SAAW,SAAUvI,EAAGf,GAAK,IAAIC,EAAGA,EAAI,MAAQoB,KAAKiG,KAAOjG,KAAKiG,KAAOjG,KAAK8F,MAAQ9F,KAAKiG,IAAMjG,KAAKiG,IAAM9G,EAAE,CAAC,EAAGa,KAAK8F,OAAQ,mBAAqBpG,IAAMA,EAAIA,EAAEP,EAAE,CAAC,EAAGP,GAAIoB,KAAKZ,QAASM,GAAKP,EAAEP,EAAGc,GAAI,MAAQA,GAAKM,KAAK6C,MAAQlE,GAAKqB,KAAKgG,IAAIlE,KAAKnD,GAAI8B,EAAET,MAAQ,EAAGzB,EAAEoH,UAAUyC,YAAc,SAAU1I,GAAKM,KAAK6C,MAAQ7C,KAAKQ,KAAM,EAAId,GAAKM,KAAK+F,IAAIjE,KAAKpC,GAAIe,EAAET,MAAQ,EAAGzB,EAAEoH,UAAUlE,OAAShD,EAAGK,EAAI,GAAIE,EAAI,mBAAqBqJ,QAAUA,QAAQ1C,UAAUe,KAAK4B,KAAKD,QAAQE,WAAaC,WAAYvJ,EAAI,SAAUS,EAAGf,GAAK,OAAOe,EAAEmD,IAAIF,IAAMhE,EAAEkE,IAAIF,GAAK,EAAGW,EAAEC,IAAM,EAAGrE,EAAI,8BAA+B6C,EAAI,EAAGC,EAAIwD,GAAE,GAAKvD,EAAIuD,GAAE,GAAK3E,EAAI,CAC/uB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/preact/hooks/dist/hooks.module.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"preact/hooks/dist/hooks.module.js","resolution":"ESM","id":"9295b344df","hash":"9295b344df14b5395a612fed63350619d029e91cc2e80e9a2a5f920e38b88972","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useCallback = q;\nexports.useContext = x;\nexports.useDebugValue = P;\nexports.useEffect = y;\nexports.useErrorBoundary = b;\nexports.useId = g;\nexports.useImperativeHandle = F;\nexports.useLayoutEffect = _;\nexports.useMemo = T;\nexports.useReducer = h;\nexports.useRef = A;\nexports.useState = d;\nconst preact_1 = require(\"preact\");\nvar t, r, u, i, o = 0, f = [], c = preact_1.options, e = c.__b, a = c.__r, v = c.diffed, l = c.__c, m = c.unmount, s = c.__;\nfunction p(n, t) { c.__h && c.__h(r, n, o || t), o = 0; var u = r.__H || (r.__H = { __: [], __h: [] }); return n >= u.__.length && u.__.push({}), u.__[n]; }\nfunction d(n) { return o = 1, h(D, n); }\nfunction h(n, u, i) { var o = p(t++, 2); if (o.t = n, !o.__c && (o.__ = [i ? i(u) : D(void 0, u), function (n) { var t = o.__N ? o.__N[0] : o.__[0], r = o.t(t, n); t !== r && (o.__N = [r, o.__[1]], o.__c.setState({})); }], o.__c = r, !r.__f)) {\n    var f = function (n, t, r) { if (!o.__c.__H)\n        return !0; var u = o.__c.__H.__.filter(function (n) { return !!n.__c; }); if (u.every(function (n) { return !n.__N; }))\n        return !c || c.call(this, n, t, r); var i = o.__c.props !== n; return u.forEach(function (n) { if (n.__N) {\n        var t = n.__[0];\n        n.__ = n.__N, n.__N = void 0, t !== n.__[0] && (i = !0);\n    } }), c && c.call(this, n, t, r) || i; };\n    r.__f = !0;\n    var c = r.shouldComponentUpdate, e = r.componentWillUpdate;\n    r.componentWillUpdate = function (n, t, r) { if (this.__e) {\n        var u = c;\n        c = void 0, f(n, t, r), c = u;\n    } e && e.call(this, n, t, r); }, r.shouldComponentUpdate = f;\n} return o.__N || o.__; }\nfunction y(n, u) { var i = p(t++, 3); !c.__s && C(i.__H, u) && (i.__ = n, i.u = u, r.__H.__h.push(i)); }\nfunction _(n, u) { var i = p(t++, 4); !c.__s && C(i.__H, u) && (i.__ = n, i.u = u, r.__h.push(i)); }\nfunction A(n) { return o = 5, T(function () { return { current: n }; }, []); }\nfunction F(n, t, r) { o = 6, _(function () { if (\"function\" == typeof n) {\n    var r = n(t());\n    return function () { n(null), r && \"function\" == typeof r && r(); };\n} if (n)\n    return n.current = t(), function () { return n.current = null; }; }, null == r ? r : r.concat(n)); }\nfunction T(n, r) { var u = p(t++, 7); return C(u.__H, r) && (u.__ = n(), u.__H = r, u.__h = n), u.__; }\nfunction q(n, t) { return o = 8, T(function () { return n; }, t); }\nfunction x(n) { var u = r.context[n.__c], i = p(t++, 9); return i.c = n, u ? (null == i.__ && (i.__ = !0, u.sub(r)), u.props.value) : n.__; }\nfunction P(n, t) { c.useDebugValue && c.useDebugValue(t ? t(n) : n); }\nfunction b(n) { var u = p(t++, 10), i = d(); return u.__ = n, r.componentDidCatch || (r.componentDidCatch = function (n, t) { u.__ && u.__(n, t), i[1](n); }), [i[0], function () { i[1](void 0); }]; }\nfunction g() { var n = p(t++, 11); if (!n.__) {\n    for (var u = r.__v; null !== u && !u.__m && null !== u.__;)\n        u = u.__;\n    var i = u.__m || (u.__m = [0, 0]);\n    n.__ = \"P\" + i[0] + \"-\" + i[1]++;\n} return n.__; }\nfunction j() { for (var n; n = f.shift();)\n    if (n.__P && n.__H)\n        try {\n            n.__H.__h.forEach(z), n.__H.__h.forEach(B), n.__H.__h = [];\n        }\n        catch (t) {\n            n.__H.__h = [], c.__e(t, n.__v);\n        } }\nc.__b = function (n) { r = null, e && e(n); }, c.__ = function (n, t) { n && t.__k && t.__k.__m && (n.__m = t.__k.__m), s && s(n, t); }, c.__r = function (n) { a && a(n), t = 0; var i = (r = n.__c).__H; i && (u === r ? (i.__h = [], r.__h = [], i.__.forEach(function (n) { n.__N && (n.__ = n.__N), n.u = n.__N = void 0; })) : (i.__h.forEach(z), i.__h.forEach(B), i.__h = [], t = 0)), u = r; }, c.diffed = function (n) { v && v(n); var t = n.__c; t && t.__H && (t.__H.__h.length && (1 !== f.push(t) && i === c.requestAnimationFrame || ((i = c.requestAnimationFrame) || w)(j)), t.__H.__.forEach(function (n) { n.u && (n.__H = n.u), n.u = void 0; })), u = r = null; }, c.__c = function (n, t) { t.some(function (n) { try {\n    n.__h.forEach(z), n.__h = n.__h.filter(function (n) { return !n.__ || B(n); });\n}\ncatch (r) {\n    t.some(function (n) { n.__h && (n.__h = []); }), t = [], c.__e(r, n.__v);\n} }), l && l(n, t); }, c.unmount = function (n) { m && m(n); var t, r = n.__c; r && r.__H && (r.__H.__.forEach(function (n) { try {\n    z(n);\n}\ncatch (n) {\n    t = n;\n} }), r.__H = void 0, t && c.__e(t, r.__v)); };\nvar k = \"function\" == typeof requestAnimationFrame;\nfunction w(n) { var t, r = function () { clearTimeout(u), k && cancelAnimationFrame(t), setTimeout(n); }, u = setTimeout(r, 35); k && (t = requestAnimationFrame(r)); }\nfunction z(n) { var t = r, u = n.__c; \"function\" == typeof u && (n.__c = void 0, u()), r = t; }\nfunction B(n) { var t = r; n.__c = n.__(), r = t; }\nfunction C(n, t) { return !n || n.length !== t.length || t.some(function (t, r) { return t !== n[r]; }); }\nfunction D(n, t) { return \"function\" == typeof t ? t(n) : t; }\n//# sourceMappingURL=hooks.module.js.map\n","type":"js","dependency_paths":[["preact","/home/runner/work/panel/panel/panel/node_modules/preact/dist/preact.module.js"]],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* preact/hooks/dist/hooks.module.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.useCallback = q;\n    exports.useContext = x;\n    exports.useDebugValue = P;\n    exports.useEffect = y;\n    exports.useErrorBoundary = b;\n    exports.useId = g;\n    exports.useImperativeHandle = F;\n    exports.useLayoutEffect = _;\n    exports.useMemo = T;\n    exports.useReducer = h;\n    exports.useRef = A;\n    exports.useState = d;\n    const preact_1 = require(\"091628d34a\") /* preact */;\n    var t, r, u, i, o = 0, f = [], c = preact_1.options, e = c.__b, a = c.__r, v = c.diffed, l = c.__c, m = c.unmount, s = c.__;\n    function p(n, t) { c.__h && c.__h(r, n, o || t), o = 0; var u = r.__H || (r.__H = { __: [], __h: [] }); return n >= u.__.length && u.__.push({}), u.__[n]; }\n    function d(n) { return o = 1, h(D, n); }\n    function h(n, u, i) {\n        var o = p(t++, 2);\n        if (o.t = n, !o.__c && (o.__ = [i ? i(u) : D(void 0, u), function (n) { var t = o.__N ? o.__N[0] : o.__[0], r = o.t(t, n); t !== r && (o.__N = [r, o.__[1]], o.__c.setState({})); }], o.__c = r, !r.__f)) {\n            var f = function (n, t, r) {\n                if (!o.__c.__H)\n                    return !0;\n                var u = o.__c.__H.__.filter(function (n) { return !!n.__c; });\n                if (u.every(function (n) { return !n.__N; }))\n                    return !c || c.call(this, n, t, r);\n                var i = o.__c.props !== n;\n                return u.forEach(function (n) {\n                    if (n.__N) {\n                        var t = n.__[0];\n                        n.__ = n.__N, n.__N = void 0, t !== n.__[0] && (i = !0);\n                    }\n                }), c && c.call(this, n, t, r) || i;\n            };\n            r.__f = !0;\n            var c = r.shouldComponentUpdate, e = r.componentWillUpdate;\n            r.componentWillUpdate = function (n, t, r) {\n                if (this.__e) {\n                    var u = c;\n                    c = void 0, f(n, t, r), c = u;\n                }\n                e && e.call(this, n, t, r);\n            }, r.shouldComponentUpdate = f;\n        }\n        return o.__N || o.__;\n    }\n    function y(n, u) { var i = p(t++, 3); !c.__s && C(i.__H, u) && (i.__ = n, i.u = u, r.__H.__h.push(i)); }\n    function _(n, u) { var i = p(t++, 4); !c.__s && C(i.__H, u) && (i.__ = n, i.u = u, r.__h.push(i)); }\n    function A(n) { return o = 5, T(function () { return { current: n }; }, []); }\n    function F(n, t, r) {\n        o = 6, _(function () {\n            if (\"function\" == typeof n) {\n                var r = n(t());\n                return function () { n(null), r && \"function\" == typeof r && r(); };\n            }\n            if (n)\n                return n.current = t(), function () { return n.current = null; };\n        }, null == r ? r : r.concat(n));\n    }\n    function T(n, r) { var u = p(t++, 7); return C(u.__H, r) && (u.__ = n(), u.__H = r, u.__h = n), u.__; }\n    function q(n, t) { return o = 8, T(function () { return n; }, t); }\n    function x(n) { var u = r.context[n.__c], i = p(t++, 9); return i.c = n, u ? (null == i.__ && (i.__ = !0, u.sub(r)), u.props.value) : n.__; }\n    function P(n, t) { c.useDebugValue && c.useDebugValue(t ? t(n) : n); }\n    function b(n) { var u = p(t++, 10), i = d(); return u.__ = n, r.componentDidCatch || (r.componentDidCatch = function (n, t) { u.__ && u.__(n, t), i[1](n); }), [i[0], function () { i[1](void 0); }]; }\n    function g() {\n        var n = p(t++, 11);\n        if (!n.__) {\n            for (var u = r.__v; null !== u && !u.__m && null !== u.__;)\n                u = u.__;\n            var i = u.__m || (u.__m = [0, 0]);\n            n.__ = \"P\" + i[0] + \"-\" + i[1]++;\n        }\n        return n.__;\n    }\n    function j() {\n        for (var n; n = f.shift();)\n            if (n.__P && n.__H)\n                try {\n                    n.__H.__h.forEach(z), n.__H.__h.forEach(B), n.__H.__h = [];\n                }\n                catch (t) {\n                    n.__H.__h = [], c.__e(t, n.__v);\n                }\n    }\n    c.__b = function (n) { r = null, e && e(n); }, c.__ = function (n, t) { n && t.__k && t.__k.__m && (n.__m = t.__k.__m), s && s(n, t); }, c.__r = function (n) { a && a(n), t = 0; var i = (r = n.__c).__H; i && (u === r ? (i.__h = [], r.__h = [], i.__.forEach(function (n) { n.__N && (n.__ = n.__N), n.u = n.__N = void 0; })) : (i.__h.forEach(z), i.__h.forEach(B), i.__h = [], t = 0)), u = r; }, c.diffed = function (n) { v && v(n); var t = n.__c; t && t.__H && (t.__H.__h.length && (1 !== f.push(t) && i === c.requestAnimationFrame || ((i = c.requestAnimationFrame) || w)(j)), t.__H.__.forEach(function (n) { n.u && (n.__H = n.u), n.u = void 0; })), u = r = null; }, c.__c = function (n, t) {\n        t.some(function (n) {\n            try {\n                n.__h.forEach(z), n.__h = n.__h.filter(function (n) { return !n.__ || B(n); });\n            }\n            catch (r) {\n                t.some(function (n) { n.__h && (n.__h = []); }), t = [], c.__e(r, n.__v);\n            }\n        }), l && l(n, t);\n    }, c.unmount = function (n) {\n        m && m(n);\n        var t, r = n.__c;\n        r && r.__H && (r.__H.__.forEach(function (n) {\n            try {\n                z(n);\n            }\n            catch (n) {\n                t = n;\n            }\n        }), r.__H = void 0, t && c.__e(t, r.__v));\n    };\n    var k = \"function\" == typeof requestAnimationFrame;\n    function w(n) { var t, r = function () { clearTimeout(u), k && cancelAnimationFrame(t), setTimeout(n); }, u = setTimeout(r, 35); k && (t = requestAnimationFrame(r)); }\n    function z(n) { var t = r, u = n.__c; \"function\" == typeof u && (n.__c = void 0, u()), r = t; }\n    function B(n) { var t = r; n.__c = n.__(), r = t; }\n    function C(n, t) { return !n || n.length !== t.length || t.some(function (t, r) { return t !== n[r]; }); }\n    function D(n, t) { return \"function\" == typeof t ? t(n) : t; }\n}\n","min_source":"function _(_,n,t,u,r){u(),t.useCallback=function(_,n){return a=8,g((function(){return _}),n)},t.useContext=function(_){var n=c.context[_.__c],t=E(e++,9);return t.c=_,n?(null==t.__&&(t.__=!0,n.sub(c)),n.props.value):_.__},t.useDebugValue=function(_,n){l.useDebugValue&&l.useDebugValue(n?n(_):_)},t.useEffect=function(_,n){var t=E(e++,3);!l.__s&&q(t.__H,n)&&(t.__=_,t.u=n,c.__H.__h.push(t))},t.useErrorBoundary=function(_){var n=E(e++,10),t=y();return n.__=_,c.componentDidCatch||(c.componentDidCatch=function(_,u){n.__&&n.__(_,u),t[1](_)}),[t[0],function(){t[1](void 0)}]},t.useId=function(){var _=E(e++,11);if(!_.__){for(var n=c.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;var t=n.__m||(n.__m=[0,0]);_.__=\"P\"+t[0]+\"-\"+t[1]++}return _.__},t.useImperativeHandle=function(_,n,t){a=6,b((function(){if(\"function\"==typeof _){var t=_(n());return function(){_(null),t&&\"function\"==typeof t&&t()}}if(_)return _.current=n(),function(){return _.current=null}}),null==t?t:t.concat(_))},t.useLayoutEffect=b,t.useMemo=g,t.useReducer=N,t.useRef=function(_){return a=5,g((function(){return{current:_}}),[])},t.useState=y;const o=_(\"091628d34a\");var e,c,i,f,a=0,h=[],l=o.options,s=l.__b,v=l.__r,m=l.diffed,d=l.__c,p=l.unmount,H=l.__;function E(_,n){l.__h&&l.__h(c,_,a||n),a=0;var t=c.__H||(c.__H={__:[],__h:[]});return _>=t.__.length&&t.__.push({}),t.__[_]}function y(_){return a=1,N(U,_)}function N(_,n,t){var u=E(e++,2);if(u.t=_,!u.__c&&(u.__=[t?t(n):U(void 0,n),function(_){var n=u.__N?u.__N[0]:u.__[0],t=u.t(n,_);n!==t&&(u.__N=[t,u.__[1]],u.__c.setState({}))}],u.__c=c,!c.__f)){var r=function(_,n,t){if(!u.__c.__H)return!0;var r=u.__c.__H.__.filter((function(_){return!!_.__c}));if(r.every((function(_){return!_.__N})))return!o||o.call(this,_,n,t);var e=u.__c.props!==_;return r.forEach((function(_){if(_.__N){var n=_.__[0];_.__=_.__N,_.__N=void 0,n!==_.__[0]&&(e=!0)}})),o&&o.call(this,_,n,t)||e};c.__f=!0;var o=c.shouldComponentUpdate,i=c.componentWillUpdate;c.componentWillUpdate=function(_,n,t){if(this.__e){var u=o;o=void 0,r(_,n,t),o=u}i&&i.call(this,_,n,t)},c.shouldComponentUpdate=r}return u.__N||u.__}function b(_,n){var t=E(e++,4);!l.__s&&q(t.__H,n)&&(t.__=_,t.u=n,c.__h.push(t))}function g(_,n){var t=E(e++,7);return q(t.__H,n)&&(t.__=_(),t.__H=n,t.__h=_),t.__}function C(){for(var _;_=h.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(F),_.__H.__h.forEach(k),_.__H.__h=[]}catch(n){_.__H.__h=[],l.__e(n,_.__v)}}l.__b=function(_){c=null,s&&s(_)},l.__=function(_,n){_&&n.__k&&n.__k.__m&&(_.__m=n.__k.__m),H&&H(_,n)},l.__r=function(_){v&&v(_),e=0;var n=(c=_.__c).__H;n&&(i===c?(n.__h=[],c.__h=[],n.__.forEach((function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0}))):(n.__h.forEach(F),n.__h.forEach(k),n.__h=[],e=0)),i=c},l.diffed=function(_){m&&m(_);var n=_.__c;n&&n.__H&&(n.__H.__h.length&&(1!==h.push(n)&&f===l.requestAnimationFrame||((f=l.requestAnimationFrame)||D)(C)),n.__H.__.forEach((function(_){_.u&&(_.__H=_.u),_.u=void 0}))),i=c=null},l.__c=function(_,n){n.some((function(_){try{_.__h.forEach(F),_.__h=_.__h.filter((function(_){return!_.__||k(_)}))}catch(t){n.some((function(_){_.__h&&(_.__h=[])})),n=[],l.__e(t,_.__v)}})),d&&d(_,n)},l.unmount=function(_){p&&p(_);var n,t=_.__c;t&&t.__H&&(t.__H.__.forEach((function(_){try{F(_)}catch(_){n=_}})),t.__H=void 0,n&&l.__e(n,t.__v))};var A=\"function\"==typeof requestAnimationFrame;function D(_){var n,t=function(){clearTimeout(u),A&&cancelAnimationFrame(n),setTimeout(_)},u=setTimeout(t,35);A&&(n=requestAnimationFrame(t))}function F(_){var n=c,t=_.__c;\"function\"==typeof t&&(_.__c=void 0,t()),c=n}function k(_){var n=c;_.__c=_.__(),c=n}function q(_,n){return!_||_.length!==n.length||n.some((function(n,t){return n!==_[t]}))}function U(_,n){return\"function\"==typeof n?n(_):n}}\n//# sourceMappingURL=hooks.module.min.js.map","min_map":"{\"version\":3,\"file\":\"hooks.module.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"useCallback\",\"n\",\"t\",\"o\",\"T\",\"useContext\",\"u\",\"r\",\"context\",\"__c\",\"i\",\"p\",\"c\",\"__\",\"sub\",\"props\",\"value\",\"useDebugValue\",\"useEffect\",\"__s\",\"C\",\"__H\",\"__h\",\"push\",\"useErrorBoundary\",\"d\",\"componentDidCatch\",\"useId\",\"__v\",\"__m\",\"useImperativeHandle\",\"current\",\"concat\",\"useLayoutEffect\",\"useMemo\",\"useReducer\",\"h\",\"useRef\",\"useState\",\"preact_1\",\"f\",\"options\",\"e\",\"__b\",\"a\",\"__r\",\"v\",\"diffed\",\"l\",\"m\",\"unmount\",\"s\",\"length\",\"D\",\"__N\",\"setState\",\"__f\",\"filter\",\"every\",\"call\",\"this\",\"forEach\",\"shouldComponentUpdate\",\"componentWillUpdate\",\"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AIoB,GAAKA,EAAE/C,EAAGC,EAClB,EAAGU,EAAEsC,QAAU,SAAUjD,GACrBgD,GAAKA,EAAEhD,GACP,IAAIC,EAAGK,EAAIN,EAAEQ,IACbF,GAAKA,EAAEc,MAAQd,EAAEc,IAAIR,GAAGgD,SAAQ,SAAU5D,GACtC,IACImE,EAAEnE,EACN,CACA,MAAOA,GACHC,EAAID,CACR,CACJ,IAAIM,EAAEc,SAAM,EAAQnB,GAAKU,EAAEoD,IAAI9D,EAAGK,EAAEqB,KACxC,EACA,IAAI8C,EAAI,mBAAqBH,sBAC7B,SAASC,EAAEvE,GAAK,IAAIC,EAAGK,EAAI,WAAcoE,aAAarE,GAAIoE,GAAKE,qBAAqB1E,GAAI2E,WAAW5E,EAAI,EAAGK,EAAIuE,WAAWtE,EAAG,IAAKmE,IAAMxE,EAAIqE,sBAAsBhE,GAAK,CACtK,SAAS6D,EAAEnE,GAAK,IAAIC,EAAIK,EAAGD,EAAIL,EAAEQ,IAAK,mBAAqBH,IAAML,EAAEQ,SAAM,EAAQH,KAAMC,EAAIL,CAAG,CAC9F,SAASmE,EAAEpE,GAAK,IAAIC,EAAIK,EAAGN,EAAEQ,IAAMR,EAAEY,KAAMN,EAAIL,CAAG,CAClD,SAASkB,EAAEnB,EAAGC,GAAK,OAAQD,GAAKA,EAAEmD,SAAWlD,EAAEkD,QAAUlD,EAAEuE,MAAK,SAAUvE,EAAGK,GAAK,OAAOL,IAAMD,EAAEM,EAAI,GAAI,CACzG,SAAS8C,EAAEpD,EAAGC,GAAK,MAAO,mBAAqBA,EAAIA,EAAED,GAAKC,CAAG,CACjE\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/htm/preact/index.module.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"htm/preact/index.module.js","resolution":"ESM","id":"b3f51db71c","hash":"b3f51db71c12eabba61819feb74ace7cadc2744af41866c3fcad2ab960415746","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.html = exports.Component = exports.render = exports.h = void 0;\nconst tslib_1 = require(\"tslib\");\nconst preact_1 = require(\"preact\");\nvar preact_2 = require(\"preact\");\nObject.defineProperty(exports, \"h\", { enumerable: true, get: function () { return preact_2.h; } });\nObject.defineProperty(exports, \"render\", { enumerable: true, get: function () { return preact_2.render; } });\nObject.defineProperty(exports, \"Component\", { enumerable: true, get: function () { return preact_2.Component; } });\nconst htm_1 = tslib_1.__importDefault(require(\"htm\"));\nvar m = htm_1.default.bind(preact_1.h);\nexports.html = m;\n","type":"js","dependency_paths":[["preact","/home/runner/work/panel/panel/panel/node_modules/preact/dist/preact.module.js"],["htm","/home/runner/work/panel/panel/panel/node_modules/htm/dist/htm.module.js"]],"dependency_map":[],"exported":[{"type":"bindings","bindings":[[null,"h"],[null,"render"],[null,"Component"]],"module":"preact"}],"externals":[],"shims":[]},"code":{"source":"/* htm/preact/index.module.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const preact_1 = require(\"091628d34a\") /* preact */;\n    var preact_2 = require(\"091628d34a\") /* preact */;\n    __esExport(\"h\", preact_2.h);\n    __esExport(\"render\", preact_2.render);\n    __esExport(\"Component\", preact_2.Component);\n    const htm_1 = tslib_1.__importDefault(require(\"ab33dd3f38\") /* htm */);\n    var m = htm_1.default.bind(preact_1.h);\n    exports.html = m;\n}\n","min_source":"function _(n,t,d,e,a){e();const o=n(\"tslib\"),r=n(\"091628d34a\");var f=n(\"091628d34a\");a(\"h\",f.h),a(\"render\",f.render),a(\"Component\",f.Component);var h=o.__importDefault(n(\"ab33dd3f38\")).default.bind(r.h);d.html=h}\n//# sourceMappingURL=index.module.min.js.map","min_map":"{\"version\":3,\"file\":\"index.module.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tslib_1\",\"preact_1\",\"preact_2\",\"h\",\"render\",\"Component\",\"m\",\"__importDefault\",\"default\",\"bind\",\"html\"],\"sources\":[\"0\"],\"mappings\":\"AAAiC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC9ED,IACA,MAAME,EAAUL,EAAQ,SAClBM,EAAWN,EAAQ,cACzB,IAAIO,EAAWP,EAAQ,cACvBI,EAAW,IAAKG,EAASC,GACzBJ,EAAW,SAAUG,EAASE,QAC9BL,EAAW,YAAaG,EAASG,WAEjC,IAAIC,EADUN,EAAQO,gBAAgBZ,EAAQ,eAChCa,QAAQC,KAAKR,EAASE,GACpCN,EAAQa,KAAOJ,CACnB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/htm/dist/htm.module.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"htm/dist/htm.module.js","resolution":"ESM","id":"ab33dd3f38","hash":"ab33dd3f38059b9be4d5f5350128eefb2356639c4e0bbe9d9e8b3ba75847e9e4","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = default_1;\nvar n = function (t, s, r, e) { var u; s[0] = 0; for (var h = 1; h < s.length; h++) {\n    var p = s[h++], a = s[h] ? (s[0] |= p ? 1 : 2, r[s[h++]]) : s[++h];\n    3 === p ? e[0] = a : 4 === p ? e[1] = Object.assign(e[1] || {}, a) : 5 === p ? (e[1] = e[1] || {})[s[++h]] = a : 6 === p ? e[1][s[++h]] += a + \"\" : p ? (u = t.apply(a, n(t, a, r, [\"\", null])), e.push(u), a[0] ? s[0] |= 2 : (s[h - 2] = 0, s[h] = u)) : e.push(a);\n} return e; }, t = new Map;\nfunction default_1(s) { var r = t.get(this); return r || (r = new Map, t.set(this, r)), (r = n(this, r.get(s) || (r.set(s, r = function (n) { for (var t, s, r = 1, e = \"\", u = \"\", h = [0], p = function (n) { 1 === r && (n || (e = e.replace(/^\\s*\\n\\s*|\\s*\\n\\s*$/g, \"\"))) ? h.push(0, n, e) : 3 === r && (n || e) ? (h.push(3, n, e), r = 2) : 2 === r && \"...\" === e && n ? h.push(4, n, 0) : 2 === r && e && !n ? h.push(5, 0, !0, e) : r >= 5 && ((e || !n && 5 === r) && (h.push(r, 0, e, s), r = 6), n && (h.push(r, n, 0, s), r = 6)), e = \"\"; }, a = 0; a < n.length; a++) {\n    a && (1 === r && p(), p(a));\n    for (var l = 0; l < n[a].length; l++)\n        t = n[a][l], 1 === r ? \"<\" === t ? (p(), h = [h], r = 3) : e += t : 4 === r ? \"--\" === e && \">\" === t ? (r = 1, e = \"\") : e = t + e[0] : u ? t === u ? u = \"\" : e += t : '\"' === t || \"'\" === t ? u = t : \">\" === t ? (p(), r = 1) : r && (\"=\" === t ? (r = 5, s = e, e = \"\") : \"/\" === t && (r < 5 || \">\" === n[a][l + 1]) ? (p(), 3 === r && (h = h[0]), r = h, (h = h[0]).push(2, 0, r), r = 0) : \" \" === t || \"\\t\" === t || \"\\n\" === t || \"\\r\" === t ? (p(), r = 2) : e += t), 3 === r && \"!--\" === e && (r = 4, h = h[0]);\n} return p(), h; }(s)), r), arguments, [])).length > 1 ? r : r[0]; }\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* htm/dist/htm.module.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = default_1;\n    var n = function (t, s, r, e) {\n        var u;\n        s[0] = 0;\n        for (var h = 1; h < s.length; h++) {\n            var p = s[h++], a = s[h] ? (s[0] |= p ? 1 : 2, r[s[h++]]) : s[++h];\n            3 === p ? e[0] = a : 4 === p ? e[1] = Object.assign(e[1] || {}, a) : 5 === p ? (e[1] = e[1] || {})[s[++h]] = a : 6 === p ? e[1][s[++h]] += a + \"\" : p ? (u = t.apply(a, n(t, a, r, [\"\", null])), e.push(u), a[0] ? s[0] |= 2 : (s[h - 2] = 0, s[h] = u)) : e.push(a);\n        }\n        return e;\n    }, t = new Map;\n    function default_1(s) {\n        var r = t.get(this);\n        return r || (r = new Map, t.set(this, r)), (r = n(this, r.get(s) || (r.set(s, r = function (n) {\n            for (var t, s, r = 1, e = \"\", u = \"\", h = [0], p = function (n) { 1 === r && (n || (e = e.replace(/^\\s*\\n\\s*|\\s*\\n\\s*$/g, \"\"))) ? h.push(0, n, e) : 3 === r && (n || e) ? (h.push(3, n, e), r = 2) : 2 === r && \"...\" === e && n ? h.push(4, n, 0) : 2 === r && e && !n ? h.push(5, 0, !0, e) : r >= 5 && ((e || !n && 5 === r) && (h.push(r, 0, e, s), r = 6), n && (h.push(r, n, 0, s), r = 6)), e = \"\"; }, a = 0; a < n.length; a++) {\n                a && (1 === r && p(), p(a));\n                for (var l = 0; l < n[a].length; l++)\n                    t = n[a][l], 1 === r ? \"<\" === t ? (p(), h = [h], r = 3) : e += t : 4 === r ? \"--\" === e && \">\" === t ? (r = 1, e = \"\") : e = t + e[0] : u ? t === u ? u = \"\" : e += t : '\"' === t || \"'\" === t ? u = t : \">\" === t ? (p(), r = 1) : r && (\"=\" === t ? (r = 5, s = e, e = \"\") : \"/\" === t && (r < 5 || \">\" === n[a][l + 1]) ? (p(), 3 === r && (h = h[0]), r = h, (h = h[0]).push(2, 0, r), r = 0) : \" \" === t || \"\\t\" === t || \"\\n\" === t || \"\\r\" === t ? (p(), r = 2) : e += t), 3 === r && \"!--\" === e && (r = 4, h = h[0]);\n            }\n            return p(), h;\n        }(s)), r), arguments, [])).length > 1 ? r : r[0];\n    }\n}\n","min_source":"function _(n,t,s,u,r){u(),s.default=function(n){var t=h.get(this);return t||(t=new Map,h.set(this,t)),(t=e(this,t.get(n)||(t.set(n,t=function(n){for(var t,s,u=1,r=\"\",e=\"\",h=[0],p=function(n){1===u&&(n||(r=r.replace(/^\\s*\\n\\s*|\\s*\\n\\s*$/g,\"\")))?h.push(0,n,r):3===u&&(n||r)?(h.push(3,n,r),u=2):2===u&&\"...\"===r&&n?h.push(4,n,0):2===u&&r&&!n?h.push(5,0,!0,r):u>=5&&((r||!n&&5===u)&&(h.push(u,0,r,s),u=6),n&&(h.push(u,n,0,s),u=6)),r=\"\"},a=0;a<n.length;a++){a&&(1===u&&p(),p(a));for(var f=0;f<n[a].length;f++)t=n[a][f],1===u?\"<\"===t?(p(),h=[h],u=3):r+=t:4===u?\"--\"===r&&\">\"===t?(u=1,r=\"\"):r=t+r[0]:e?t===e?e=\"\":r+=t:'\"'===t||\"'\"===t?e=t:\">\"===t?(p(),u=1):u&&(\"=\"===t?(u=5,s=r,r=\"\"):\"/\"===t&&(u<5||\">\"===n[a][f+1])?(p(),3===u&&(h=h[0]),u=h,(h=h[0]).push(2,0,u),u=0):\" \"===t||\"\\t\"===t||\"\\n\"===t||\"\\r\"===t?(p(),u=2):r+=t),3===u&&\"!--\"===r&&(u=4,h=h[0])}return p(),h}(n)),t),arguments,[])).length>1?t:t[0]};var e=function(n,t,s,u){var r;t[0]=0;for(var h=1;h<t.length;h++){var p=t[h++],a=t[h]?(t[0]|=p?1:2,s[t[h++]]):t[++h];3===p?u[0]=a:4===p?u[1]=Object.assign(u[1]||{},a):5===p?(u[1]=u[1]||{})[t[++h]]=a:6===p?u[1][t[++h]]+=a+\"\":p?(r=n.apply(a,e(n,a,s,[\"\",null])),u.push(r),a[0]?t[0]|=2:(t[h-2]=0,t[h]=r)):u.push(a)}return u},h=new Map}\n//# sourceMappingURL=htm.module.min.js.map","min_map":"{\"version\":3,\"file\":\"htm.module.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\",\"s\",\"r\",\"t\",\"get\",\"this\",\"Map\",\"set\",\"n\",\"e\",\"u\",\"h\",\"p\",\"replace\",\"push\",\"a\",\"length\",\"l\",\"arguments\",\"Object\",\"assign\",\"apply\"],\"sources\":[\"0\"],\"mappings\":\"AAA6B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC1ED,IACAD,EAAQG,QAUR,SAAmBC,GACf,IAAIC,EAAIC,EAAEC,IAAIC,MACd,OAAOH,IAAMA,EAAI,IAAII,IAAKH,EAAEI,IAAIF,KAAMH,KAAMA,EAAIM,EAAEH,KAAMH,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","base_path":"models/singleselect.js","canonical":"models/singleselect","resolution":"ESM","id":"4155401209","hash":"4155401209ed7a24fee30b60ff82a719b06d4a90e95a02e9efe81618321e312f","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SingleSelect = exports.SingleSelectView = void 0;\nconst tslib_1 = require(\"tslib\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst types_1 = require(\"@bokehjs/core/util/types\");\nconst input_widget_1 = require(\"@bokehjs/models/widgets/input_widget\");\nconst inputs = tslib_1.__importStar(require(\"@bokehjs/styles/widgets/inputs.css\"));\nclass SingleSelectView extends input_widget_1.InputWidgetView {\n    connect_signals() {\n        super.connect_signals();\n        const { value, options, disabled_options, size, disabled } = this.model.properties;\n        this.on_change(value, () => this.render_selection());\n        this.on_change(options, () => this.rerender_());\n        this.on_change(disabled_options, () => this.rerender_());\n        this.on_change(size, () => this.rerender_());\n        this.on_change(disabled, () => this.rerender_());\n    }\n    render() {\n        super.render();\n        this.render_selection();\n    }\n    rerender_() {\n        // Can be removed when Bokeh>3.7 (see https://github.com/holoviz/panel/pull/7815)\n        if (this.rerender) {\n            this.rerender();\n        }\n        else {\n            this.render();\n            this.r_after_render();\n        }\n    }\n    _render_input() {\n        const options = this.model.options.map((opt) => {\n            let value, _label;\n            if ((0, types_1.isString)(opt)) {\n                value = _label = opt;\n            }\n            else {\n                [value, _label] = opt;\n            }\n            const disabled = this.model.disabled_options.includes(value);\n            return (0, dom_1.option)({ value, disabled }, _label);\n        });\n        this.input_el = (0, dom_1.select)({\n            multiple: false,\n            class: inputs.input,\n            name: this.model.name,\n            disabled: this.model.disabled,\n        }, options);\n        this.input_el.style.backgroundImage = \"none\";\n        this.input_el.addEventListener(\"change\", () => this.change_input());\n        return this.input_el;\n    }\n    render_selection() {\n        const selected = this.model.value;\n        for (const el of this.input_el.querySelectorAll(\"option\")) {\n            if (el.value === selected) {\n                el.selected = true;\n            }\n        }\n        // Note that some browser implementations might not reduce\n        // the number of visible options for size <= 3.\n        this.input_el.size = this.model.size;\n    }\n    change_input() {\n        const is_focused = this.el.querySelector(\"select:focus\") != null;\n        let value = null;\n        for (const el of this.shadow_el.querySelectorAll(\"option\")) {\n            if (el.selected) {\n                value = el.value;\n                break;\n            }\n        }\n        this.model.value = value;\n        super.change_input();\n        // Restore focus back to the <select> afterwards,\n        // so that even if python on_change callback is invoked,\n        // focus remains on <select> and one can seamlessly scroll\n        // up/down.\n        if (is_focused) {\n            this.input_el.focus();\n        }\n    }\n}\nexports.SingleSelectView = SingleSelectView;\nSingleSelectView.__name__ = \"SingleSelectView\";\nclass SingleSelect extends input_widget_1.InputWidget {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.SingleSelect = SingleSelect;\n_a = SingleSelect;\nSingleSelect.__name__ = \"SingleSelect\";\nSingleSelect.__module__ = \"panel.models.widgets\";\n(() => {\n    _a.prototype.default_view = SingleSelectView;\n    _a.define(({ Any, List, Int, Nullable, Str }) => ({\n        disabled_options: [List(Str), []],\n        options: [List(Any), []],\n        size: [Int, 4], // 4 is the HTML default\n        value: [Nullable(Str), null],\n    }));\n})();\n//# sourceMappingURL=singleselect.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"SingleSelectView"},{"type":"named","name":"SingleSelect"}],"externals":[],"shims":[]},"code":{"source":"/* models/singleselect.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    const input_widget_1 = require(\"@bokehjs/models/widgets/input_widget\");\n    const inputs = tslib_1.__importStar(require(\"@bokehjs/styles/widgets/inputs.css\"));\n    class SingleSelectView extends input_widget_1.InputWidgetView {\n        connect_signals() {\n            super.connect_signals();\n            const { value, options, disabled_options, size, disabled } = this.model.properties;\n            this.on_change(value, () => this.render_selection());\n            this.on_change(options, () => this.rerender_());\n            this.on_change(disabled_options, () => this.rerender_());\n            this.on_change(size, () => this.rerender_());\n            this.on_change(disabled, () => this.rerender_());\n        }\n        render() {\n            super.render();\n            this.render_selection();\n        }\n        rerender_() {\n            // Can be removed when Bokeh>3.7 (see https://github.com/holoviz/panel/pull/7815)\n            if (this.rerender) {\n                this.rerender();\n            }\n            else {\n                this.render();\n                this.r_after_render();\n            }\n        }\n        _render_input() {\n            const options = this.model.options.map((opt) => {\n                let value, _label;\n                if ((0, types_1.isString)(opt)) {\n                    value = _label = opt;\n                }\n                else {\n                    [value, _label] = opt;\n                }\n                const disabled = this.model.disabled_options.includes(value);\n                return (0, dom_1.option)({ value, disabled }, _label);\n            });\n            this.input_el = (0, dom_1.select)({\n                multiple: false,\n                class: inputs.input,\n                name: this.model.name,\n                disabled: this.model.disabled,\n            }, options);\n            this.input_el.style.backgroundImage = \"none\";\n            this.input_el.addEventListener(\"change\", () => this.change_input());\n            return this.input_el;\n        }\n        render_selection() {\n            const selected = this.model.value;\n            for (const el of this.input_el.querySelectorAll(\"option\")) {\n                if (el.value === selected) {\n                    el.selected = true;\n                }\n            }\n            // Note that some browser implementations might not reduce\n            // the number of visible options for size <= 3.\n            this.input_el.size = this.model.size;\n        }\n        change_input() {\n            const is_focused = this.el.querySelector(\"select:focus\") != null;\n            let value = null;\n            for (const el of this.shadow_el.querySelectorAll(\"option\")) {\n                if (el.selected) {\n                    value = el.value;\n                    break;\n                }\n            }\n            this.model.value = value;\n            super.change_input();\n            // Restore focus back to the <select> afterwards,\n            // so that even if python on_change callback is invoked,\n            // focus remains on <select> and one can seamlessly scroll\n            // up/down.\n            if (is_focused) {\n                this.input_el.focus();\n            }\n        }\n    }\n    exports.SingleSelectView = SingleSelectView;\n    SingleSelectView.__name__ = \"SingleSelectView\";\n    class SingleSelect extends input_widget_1.InputWidget {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.SingleSelect = SingleSelect;\n    _a = SingleSelect;\n    SingleSelect.__name__ = \"SingleSelect\";\n    SingleSelect.__module__ = \"panel.models.widgets\";\n    (() => {\n        _a.prototype.default_view = SingleSelectView;\n        _a.define(({ Any, List, Int, Nullable, Str }) => ({\n            disabled_options: [List(Str), []],\n            options: [List(Any), []],\n            size: [Int, 4], // 4 is the HTML default\n            value: [Nullable(Str), null],\n        }));\n    })();\n}\n","min_source":"function _(e,t,s,n,i){var l;n();const o=e(\"tslib\"),r=e(\"@bokehjs/core/dom\"),d=e(\"@bokehjs/core/util/types\"),_=e(\"@bokehjs/models/widgets/input_widget\"),c=o.__importStar(e(\"@bokehjs/styles/widgets/inputs.css\"));class h extends _.InputWidgetView{connect_signals(){super.connect_signals();const{value:e,options:t,disabled_options:s,size:n,disabled:i}=this.model.properties;this.on_change(e,(()=>this.render_selection())),this.on_change(t,(()=>this.rerender_())),this.on_change(s,(()=>this.rerender_())),this.on_change(n,(()=>this.rerender_())),this.on_change(i,(()=>this.rerender_()))}render(){super.render(),this.render_selection()}rerender_(){this.rerender?this.rerender():(this.render(),this.r_after_render())}_render_input(){const e=this.model.options.map((e=>{let t,s;(0,d.isString)(e)?t=s=e:[t,s]=e;const n=this.model.disabled_options.includes(t);return(0,r.option)({value:t,disabled:n},s)}));return this.input_el=(0,r.select)({multiple:!1,class:c.input,name:this.model.name,disabled:this.model.disabled},e),this.input_el.style.backgroundImage=\"none\",this.input_el.addEventListener(\"change\",(()=>this.change_input())),this.input_el}render_selection(){const e=this.model.value;for(const t of this.input_el.querySelectorAll(\"option\"))t.value===e&&(t.selected=!0);this.input_el.size=this.model.size}change_input(){const e=null!=this.el.querySelector(\"select:focus\");let t=null;for(const e of this.shadow_el.querySelectorAll(\"option\"))if(e.selected){t=e.value;break}this.model.value=t,super.change_input(),e&&this.input_el.focus()}}s.SingleSelectView=h,h.__name__=\"SingleSelectView\";class u extends _.InputWidget{constructor(e){super(e)}}s.SingleSelect=u,l=u,u.__name__=\"SingleSelect\",u.__module__=\"panel.models.widgets\",l.prototype.default_view=h,l.define((({Any:e,List:t,Int:s,Nullable:n,Str:i})=>({disabled_options:[t(i),[]],options:[t(e),[]],size:[s,4],value:[n(i),null]})))}\n//# sourceMappingURL=singleselect.min.js.map","min_map":"{\"version\":3,\"file\":\"singleselect.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"tslib_1\",\"dom_1\",\"types_1\",\"input_widget_1\",\"inputs\",\"__importStar\",\"SingleSelectView\",\"InputWidgetView\",\"connect_signals\",\"super\",\"value\",\"options\",\"disabled_options\",\"size\",\"disabled\",\"this\",\"model\",\"properties\",\"on_change\",\"render_selection\",\"rerender_\",\"render\",\"rerender\",\"r_after_render\",\"_render_input\",\"map\",\"opt\",\"_label\",\"isString\",\"includes\",\"option\",\"input_el\",\"select\",\"multiple\",\"class\",\"input\",\"name\",\"style\",\"backgroundImage\",\"addEventListener\",\"change_input\",\"selected\",\"el\",\"querySelectorAll\",\"is_focused\",\"querySelector\",\"shadow_el\",\"focus\",\"__name__\",\"SingleSelect\",\"InputWidget\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Any\",\"List\",\"Int\",\"Nullable\",\"Str\"],\"sources\":[\"0\"],\"mappings\":\"AAA6B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC1E,IAAIC,EACJF,IACA,MAAMG,EAAUN,EAAQ,SAClBO,EAAQP,EAAQ,qBAChBQ,EAAUR,EAAQ,4BAClBS,EAAiBT,EAAQ,wCACzBU,EAASJ,EAAQK,aAAaX,EAAQ,uCAC5C,MAAMY,UAAyBH,EAAeI,gBAC1C,eAAAC,GACIC,MAAMD,kBACN,MAAME,MAAEA,EAAKC,QAAEA,EAAOC,iBAAEA,EAAgBC,KAAEA,EAAIC,SAAEA,GAAaC,KAAKC,MAAMC,WACxEF,KAAKG,UAAUR,GAAO,IAAMK,KAAKI,qBACjCJ,KAAKG,UAAUP,GAAS,IAAMI,KAAKK,cACnCL,KAAKG,UAAUN,GAAkB,IAAMG,KAAKK,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B,SAASgB,OAEtB,EAEJnD,EAAQU,iBAAmBA,EAC3BA,EAAiB0C,SAAW,mBAC5B,MAAMC,UAAqB9C,EAAe+C,YACtC,WAAAC,CAAYC,GACR3C,MAAM2C,EACV,EAEJxD,EAAQqD,aAAeA,EACvBlD,EAAKkD,EACLA,EAAaD,SAAW,eACxBC,EAAaI,WAAa,uBAEtBtD,EAAGuD,UAAUC,aAAejD,EAC5BP,EAAGyD,QAAO,EAAGC,MAAKC,OAAMC,MAAKC,WAAUC,UAAU,CAC7CjD,iBAAkB,CAAC8C,EAAKG,GAAM,IAC9BlD,QAAS,CAAC+C,EAAKD,GAAM,IACrB5C,KAAM,CAAC8C,EAAK,GACZjD,MAAO,CAACkD,EAASC,GAAM,SAGnC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/speech_to_text.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/speech_to_text.js","canonical":"models/speech_to_text","resolution":"ESM","id":"5ac2cab0ab","hash":"5ac2cab0ab8b1523f4832812520925dfe11435e26dfd13e95ee2215527f7695a","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SpeechToText = exports.SpeechToTextView = void 0;\nconst layout_1 = require(\"./layout\");\nconst iconStarted = `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"22px\" style=\"vertical-align: middle;\" fill=\"currentColor\" class=\"bi bi-mic\" viewBox=\"0 0 16 16\">\n  <path fill-rule=\"evenodd\" d=\"M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5z\"/>\n  <path fill-rule=\"evenodd\" d=\"M10 8V3a2 2 0 1 0-4 0v5a2 2 0 1 0 4 0zM8 0a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V3a3 3 0 0 0-3-3z\"/>\n</svg>`;\nconst iconNotStarted = `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"22px\" style=\"vertical-align: middle;\" fill=\"currentColor\" class=\"bi bi-mic-mute\" viewBox=\"0 0 16 16\">\n<path fill-rule=\"evenodd\" d=\"M12.734 9.613A4.995 4.995 0 0 0 13 8V7a.5.5 0 0 0-1 0v1c0 .274-.027.54-.08.799l.814.814zm-2.522 1.72A4 4 0 0 1 4 8V7a.5.5 0 0 0-1 0v1a5 5 0 0 0 4.5 4.975V15h-3a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-3v-2.025a4.973 4.973 0 0 0 2.43-.923l-.718-.719zM11 7.88V3a3 3 0 0 0-5.842-.963l.845.845A2 2 0 0 1 10 3v3.879l1 1zM8.738 9.86l.748.748A3 3 0 0 1 5 8V6.121l1 1V8a2 2 0 0 0 2.738 1.86zm4.908 3.494l-12-12 .708-.708 12 12-.708.707z\"/>\n</svg>`;\nconst titleStarted = \"Click to STOP the speech recognition.\";\nconst titleNotStarted = \"Click to START the speech recognition.\";\nconst { webkitSpeechRecognition } = window;\nconst { webkitSpeechGrammarList } = window;\nfunction htmlToElement(html) {\n    const template = document.createElement(\"template\");\n    html = html.trim(); // Never return a text node of whitespace as the result\n    template.innerHTML = html;\n    return template.content.firstChild;\n}\nfunction deserializeGrammars(grammars) {\n    if (grammars) {\n        const speechRecognitionList = new webkitSpeechGrammarList();\n        for (const grammar of grammars) {\n            if (grammar.src) {\n                speechRecognitionList.addFromString(grammar.src, grammar.weight);\n            }\n            else if (grammar.uri) {\n                speechRecognitionList.addFromURI(grammar.uri, grammar.weight);\n            }\n        }\n        return speechRecognitionList;\n    }\n    else {\n        return null;\n    }\n}\nfunction round(value) {\n    return Math.round((value + Number.EPSILON) * 100) / 100;\n}\nfunction serializeResults(results_) {\n    const results = [];\n    for (const result of results_) {\n        const alternatives = [];\n        const item = { is_final: result.isFinal, alternatives };\n        for (let i = 0; i < result.length; i++) {\n            const alternative = {\n                confidence: round(result[i].confidence),\n                transcript: result[i].transcript,\n            };\n            alternatives.push(alternative);\n        }\n        item.alternatives = alternatives;\n        results.push(item);\n    }\n    return results;\n}\nclass SpeechToTextView extends layout_1.HTMLBoxView {\n    initialize() {\n        super.initialize();\n        this.recognition = new webkitSpeechRecognition();\n        this.recognition.lang = this.model.lang;\n        this.recognition.continuous = this.model.continuous;\n        this.recognition.interimResults = this.model.interim_results;\n        this.recognition.maxAlternatives = this.model.max_alternatives;\n        this.recognition.serviceURI = this.model.service_uri;\n        this.setGrammars();\n        this.recognition.onresult = (event) => {\n            this.model.results = serializeResults(event.results);\n        };\n        this.recognition.onerror = (event) => {\n            console.error(`SpeechToText Error: ${event}`);\n        };\n        this.recognition.onnomatch = (event) => {\n            console.warn(`SpeechToText No Match: ${event}`);\n        };\n        this.recognition.onaudiostart = () => this.model.audio_started = true;\n        this.recognition.onaudioend = () => this.model.audio_started = false;\n        this.recognition.onsoundstart = () => this.model.sound_started = true;\n        this.recognition.onsoundend = () => this.model.sound_started = false;\n        this.recognition.onspeechstart = () => this.model.speech_started = true;\n        this.recognition.onspeechend = () => this.model.speech_started = false;\n        this.recognition.onstart = () => {\n            this.buttonEl.onclick = () => {\n                this.recognition.stop();\n            };\n            this.buttonEl.innerHTML = this.iconStarted();\n            this.buttonEl.setAttribute(\"title\", titleStarted);\n            this.model.started = true;\n        };\n        this.recognition.onend = () => {\n            this.buttonEl.onclick = () => {\n                this.recognition.start();\n            };\n            this.buttonEl.innerHTML = this.iconNotStarted();\n            this.buttonEl.setAttribute(\"title\", titleNotStarted);\n            this.model.started = false;\n        };\n        this.buttonEl = htmlToElement(`<button class=\"bk bk-btn bk-btn-${this.model.button_type}\" type=\"button\" title=\"${titleNotStarted}\"></button>`);\n        this.buttonEl.innerHTML = this.iconNotStarted();\n        this.buttonEl.onclick = () => this.recognition.start();\n    }\n    iconStarted() {\n        if (this.model.button_started !== \"\") {\n            return this.model.button_started;\n        }\n        else {\n            return iconStarted;\n        }\n    }\n    iconNotStarted() {\n        if (this.model.button_not_started !== \"\") {\n            return this.model.button_not_started;\n        }\n        else {\n            return iconNotStarted;\n        }\n    }\n    setIcon() {\n        if (this.model.started) {\n            this.buttonEl.innerHTML = this.iconStarted();\n        }\n        else {\n            this.buttonEl.innerHTML = this.iconNotStarted();\n        }\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { start, stop, abort, grammars, lang, continuous, interim_results, max_alternatives, service_uri, button_type, button_hide, button_not_started, button_started, } = this.model.properties;\n        this.on_change(start, () => {\n            this.model.start = false;\n            this.recognition.start();\n        });\n        this.on_change(stop, () => {\n            this.model.stop = false;\n            this.recognition.stop();\n        });\n        this.on_change(abort, () => {\n            this.model.abort = false;\n            this.recognition.abort();\n        });\n        this.on_change(grammars, () => this.setGrammars());\n        this.on_change(lang, () => this.recognition.lang = this.model.lang);\n        this.on_change(continuous, () => this.recognition.continuous = this.model.continuous);\n        this.on_change(interim_results, () => this.recognition.interimResults = this.model.interim_results);\n        this.on_change(max_alternatives, () => this.recognition.maxAlternatives = this.model.max_alternatives);\n        this.on_change(service_uri, () => this.recognition.serviceURI = this.model.service_uri);\n        this.on_change(button_type, () => this.buttonEl.className = `bk bk-btn bk-btn-${this.model.button_type}`);\n        this.on_change(button_hide, () => this.render());\n        this.on_change([button_not_started, button_started], () => this.setIcon());\n    }\n    setGrammars() {\n        this.recognition.grammars = deserializeGrammars(this.model.grammars);\n    }\n    render() {\n        super.render();\n        if (!this.model.button_hide) {\n            this.shadow_el.appendChild(this.buttonEl);\n        }\n    }\n}\nexports.SpeechToTextView = SpeechToTextView;\nSpeechToTextView.__name__ = \"SpeechToTextView\";\nclass SpeechToText extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.SpeechToText = SpeechToText;\n_a = SpeechToText;\nSpeechToText.__name__ = \"SpeechToText\";\nSpeechToText.__module__ = \"panel.models.speech_to_text\";\n(() => {\n    _a.prototype.default_view = SpeechToTextView;\n    _a.define(({ Any, List, Bool, Float, Str }) => ({\n        start: [Bool, false],\n        stop: [Bool, false],\n        abort: [Bool, false],\n        grammars: [List(Any), []],\n        lang: [Str, \"\"],\n        continuous: [Bool, false],\n        interim_results: [Bool, false],\n        max_alternatives: [Float, 1],\n        service_uri: [Str, \"\"],\n        started: [Bool, false],\n        audio_started: [Bool, false],\n        sound_started: [Bool, false],\n        speech_started: [Bool, false],\n        button_type: [Str, \"light\"],\n        button_hide: [Bool, false],\n        button_not_started: [Str, \"\"],\n        button_started: [Str, \"\"],\n        results: [List(Any), []],\n    }));\n})();\n//# sourceMappingURL=speech_to_text.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"]],"dependency_map":[],"exported":[{"type":"named","name":"SpeechToTextView"},{"type":"named","name":"SpeechToText"}],"externals":[],"shims":[]},"code":{"source":"/* models/speech_to_text.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    const iconStarted = `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"22px\" style=\"vertical-align: middle;\" fill=\"currentColor\" class=\"bi bi-mic\" viewBox=\"0 0 16 16\">\n  <path fill-rule=\"evenodd\" d=\"M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5z\"/>\n  <path fill-rule=\"evenodd\" d=\"M10 8V3a2 2 0 1 0-4 0v5a2 2 0 1 0 4 0zM8 0a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V3a3 3 0 0 0-3-3z\"/>\n</svg>`;\n    const iconNotStarted = `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"22px\" style=\"vertical-align: middle;\" fill=\"currentColor\" class=\"bi bi-mic-mute\" viewBox=\"0 0 16 16\">\n<path fill-rule=\"evenodd\" d=\"M12.734 9.613A4.995 4.995 0 0 0 13 8V7a.5.5 0 0 0-1 0v1c0 .274-.027.54-.08.799l.814.814zm-2.522 1.72A4 4 0 0 1 4 8V7a.5.5 0 0 0-1 0v1a5 5 0 0 0 4.5 4.975V15h-3a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-3v-2.025a4.973 4.973 0 0 0 2.43-.923l-.718-.719zM11 7.88V3a3 3 0 0 0-5.842-.963l.845.845A2 2 0 0 1 10 3v3.879l1 1zM8.738 9.86l.748.748A3 3 0 0 1 5 8V6.121l1 1V8a2 2 0 0 0 2.738 1.86zm4.908 3.494l-12-12 .708-.708 12 12-.708.707z\"/>\n</svg>`;\n    const titleStarted = \"Click to STOP the speech recognition.\";\n    const titleNotStarted = \"Click to START the speech recognition.\";\n    const { webkitSpeechRecognition } = window;\n    const { webkitSpeechGrammarList } = window;\n    function htmlToElement(html) {\n        const template = document.createElement(\"template\");\n        html = html.trim(); // Never return a text node of whitespace as the result\n        template.innerHTML = html;\n        return template.content.firstChild;\n    }\n    function deserializeGrammars(grammars) {\n        if (grammars) {\n            const speechRecognitionList = new webkitSpeechGrammarList();\n            for (const grammar of grammars) {\n                if (grammar.src) {\n                    speechRecognitionList.addFromString(grammar.src, grammar.weight);\n                }\n                else if (grammar.uri) {\n                    speechRecognitionList.addFromURI(grammar.uri, grammar.weight);\n                }\n            }\n            return speechRecognitionList;\n        }\n        else {\n            return null;\n        }\n    }\n    function round(value) {\n        return Math.round((value + Number.EPSILON) * 100) / 100;\n    }\n    function serializeResults(results_) {\n        const results = [];\n        for (const result of results_) {\n            const alternatives = [];\n            const item = { is_final: result.isFinal, alternatives };\n            for (let i = 0; i < result.length; i++) {\n                const alternative = {\n                    confidence: round(result[i].confidence),\n                    transcript: result[i].transcript,\n                };\n                alternatives.push(alternative);\n            }\n            item.alternatives = alternatives;\n            results.push(item);\n        }\n        return results;\n    }\n    class SpeechToTextView extends layout_1.HTMLBoxView {\n        initialize() {\n            super.initialize();\n            this.recognition = new webkitSpeechRecognition();\n            this.recognition.lang = this.model.lang;\n            this.recognition.continuous = this.model.continuous;\n            this.recognition.interimResults = this.model.interim_results;\n            this.recognition.maxAlternatives = this.model.max_alternatives;\n            this.recognition.serviceURI = this.model.service_uri;\n            this.setGrammars();\n            this.recognition.onresult = (event) => {\n                this.model.results = serializeResults(event.results);\n            };\n            this.recognition.onerror = (event) => {\n                console.error(`SpeechToText Error: ${event}`);\n            };\n            this.recognition.onnomatch = (event) => {\n                console.warn(`SpeechToText No Match: ${event}`);\n            };\n            this.recognition.onaudiostart = () => this.model.audio_started = true;\n            this.recognition.onaudioend = () => this.model.audio_started = false;\n            this.recognition.onsoundstart = () => this.model.sound_started = true;\n            this.recognition.onsoundend = () => this.model.sound_started = false;\n            this.recognition.onspeechstart = () => this.model.speech_started = true;\n            this.recognition.onspeechend = () => this.model.speech_started = false;\n            this.recognition.onstart = () => {\n                this.buttonEl.onclick = () => {\n                    this.recognition.stop();\n                };\n                this.buttonEl.innerHTML = this.iconStarted();\n                this.buttonEl.setAttribute(\"title\", titleStarted);\n                this.model.started = true;\n            };\n            this.recognition.onend = () => {\n                this.buttonEl.onclick = () => {\n                    this.recognition.start();\n                };\n                this.buttonEl.innerHTML = this.iconNotStarted();\n                this.buttonEl.setAttribute(\"title\", titleNotStarted);\n                this.model.started = false;\n            };\n            this.buttonEl = htmlToElement(`<button class=\"bk bk-btn bk-btn-${this.model.button_type}\" type=\"button\" title=\"${titleNotStarted}\"></button>`);\n            this.buttonEl.innerHTML = this.iconNotStarted();\n            this.buttonEl.onclick = () => this.recognition.start();\n        }\n        iconStarted() {\n            if (this.model.button_started !== \"\") {\n                return this.model.button_started;\n            }\n            else {\n                return iconStarted;\n            }\n        }\n        iconNotStarted() {\n            if (this.model.button_not_started !== \"\") {\n                return this.model.button_not_started;\n            }\n            else {\n                return iconNotStarted;\n            }\n        }\n        setIcon() {\n            if (this.model.started) {\n                this.buttonEl.innerHTML = this.iconStarted();\n            }\n            else {\n                this.buttonEl.innerHTML = this.iconNotStarted();\n            }\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { start, stop, abort, grammars, lang, continuous, interim_results, max_alternatives, service_uri, button_type, button_hide, button_not_started, button_started, } = this.model.properties;\n            this.on_change(start, () => {\n                this.model.start = false;\n                this.recognition.start();\n            });\n            this.on_change(stop, () => {\n                this.model.stop = false;\n                this.recognition.stop();\n            });\n            this.on_change(abort, () => {\n                this.model.abort = false;\n                this.recognition.abort();\n            });\n            this.on_change(grammars, () => this.setGrammars());\n            this.on_change(lang, () => this.recognition.lang = this.model.lang);\n            this.on_change(continuous, () => this.recognition.continuous = this.model.continuous);\n            this.on_change(interim_results, () => this.recognition.interimResults = this.model.interim_results);\n            this.on_change(max_alternatives, () => this.recognition.maxAlternatives = this.model.max_alternatives);\n            this.on_change(service_uri, () => this.recognition.serviceURI = this.model.service_uri);\n            this.on_change(button_type, () => this.buttonEl.className = `bk bk-btn bk-btn-${this.model.button_type}`);\n            this.on_change(button_hide, () => this.render());\n            this.on_change([button_not_started, button_started], () => this.setIcon());\n        }\n        setGrammars() {\n            this.recognition.grammars = deserializeGrammars(this.model.grammars);\n        }\n        render() {\n            super.render();\n            if (!this.model.button_hide) {\n                this.shadow_el.appendChild(this.buttonEl);\n            }\n        }\n    }\n    exports.SpeechToTextView = SpeechToTextView;\n    SpeechToTextView.__name__ = \"SpeechToTextView\";\n    class SpeechToText extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.SpeechToText = SpeechToText;\n    _a = SpeechToText;\n    SpeechToText.__name__ = \"SpeechToText\";\n    SpeechToText.__module__ = \"panel.models.speech_to_text\";\n    (() => {\n        _a.prototype.default_view = SpeechToTextView;\n        _a.define(({ Any, List, Bool, Float, Str }) => ({\n            start: [Bool, false],\n            stop: [Bool, false],\n            abort: [Bool, false],\n            grammars: [List(Any), []],\n            lang: [Str, \"\"],\n            continuous: [Bool, false],\n            interim_results: [Bool, false],\n            max_alternatives: [Float, 1],\n            service_uri: [Str, \"\"],\n            started: [Bool, false],\n            audio_started: [Bool, false],\n            sound_started: [Bool, false],\n            speech_started: [Bool, false],\n            button_type: [Str, \"light\"],\n            button_hide: [Bool, false],\n            button_not_started: [Str, \"\"],\n            button_started: [Str, \"\"],\n            results: [List(Any), []],\n        }));\n    })();\n}\n","min_source":"function _(t,e,i,n,o){var s;n();const r=t(\"dab42e6dad\"),a=\"Click to START the speech recognition.\",{webkitSpeechRecognition:h}=window,{webkitSpeechGrammarList:l}=window;class c extends r.HTMLBoxView{initialize(){super.initialize(),this.recognition=new h,this.recognition.lang=this.model.lang,this.recognition.continuous=this.model.continuous,this.recognition.interimResults=this.model.interim_results,this.recognition.maxAlternatives=this.model.max_alternatives,this.recognition.serviceURI=this.model.service_uri,this.setGrammars(),this.recognition.onresult=t=>{this.model.results=function(t){const e=[];for(const n of t){const t=[],o={is_final:n.isFinal,alternatives:t};for(let e=0;e<n.length;e++){const o={confidence:(i=n[e].confidence,Math.round(100*(i+Number.EPSILON))/100),transcript:n[e].transcript};t.push(o)}o.alternatives=t,e.push(o)}var i;return e}(t.results)},this.recognition.onerror=t=>{console.error(`SpeechToText Error: ${t}`)},this.recognition.onnomatch=t=>{console.warn(`SpeechToText No Match: ${t}`)},this.recognition.onaudiostart=()=>this.model.audio_started=!0,this.recognition.onaudioend=()=>this.model.audio_started=!1,this.recognition.onsoundstart=()=>this.model.sound_started=!0,this.recognition.onsoundend=()=>this.model.sound_started=!1,this.recognition.onspeechstart=()=>this.model.speech_started=!0,this.recognition.onspeechend=()=>this.model.speech_started=!1,this.recognition.onstart=()=>{this.buttonEl.onclick=()=>{this.recognition.stop()},this.buttonEl.innerHTML=this.iconStarted(),this.buttonEl.setAttribute(\"title\",\"Click to STOP the speech recognition.\"),this.model.started=!0},this.recognition.onend=()=>{this.buttonEl.onclick=()=>{this.recognition.start()},this.buttonEl.innerHTML=this.iconNotStarted(),this.buttonEl.setAttribute(\"title\",a),this.model.started=!1},this.buttonEl=function(t){const e=document.createElement(\"template\");return t=t.trim(),e.innerHTML=t,e.content.firstChild}(`<button class=\"bk bk-btn bk-btn-${this.model.button_type}\" type=\"button\" title=\"${a}\"></button>`),this.buttonEl.innerHTML=this.iconNotStarted(),this.buttonEl.onclick=()=>this.recognition.start()}iconStarted(){return\"\"!==this.model.button_started?this.model.button_started:'<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"22px\" style=\"vertical-align: middle;\" fill=\"currentColor\" class=\"bi bi-mic\" viewBox=\"0 0 16 16\">\\n  <path fill-rule=\"evenodd\" d=\"M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5z\"/>\\n  <path fill-rule=\"evenodd\" d=\"M10 8V3a2 2 0 1 0-4 0v5a2 2 0 1 0 4 0zM8 0a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V3a3 3 0 0 0-3-3z\"/>\\n</svg>'}iconNotStarted(){return\"\"!==this.model.button_not_started?this.model.button_not_started:'<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"22px\" style=\"vertical-align: middle;\" fill=\"currentColor\" class=\"bi bi-mic-mute\" viewBox=\"0 0 16 16\">\\n<path fill-rule=\"evenodd\" d=\"M12.734 9.613A4.995 4.995 0 0 0 13 8V7a.5.5 0 0 0-1 0v1c0 .274-.027.54-.08.799l.814.814zm-2.522 1.72A4 4 0 0 1 4 8V7a.5.5 0 0 0-1 0v1a5 5 0 0 0 4.5 4.975V15h-3a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-3v-2.025a4.973 4.973 0 0 0 2.43-.923l-.718-.719zM11 7.88V3a3 3 0 0 0-5.842-.963l.845.845A2 2 0 0 1 10 3v3.879l1 1zM8.738 9.86l.748.748A3 3 0 0 1 5 8V6.121l1 1V8a2 2 0 0 0 2.738 1.86zm4.908 3.494l-12-12 .708-.708 12 12-.708.707z\"/>\\n</svg>'}setIcon(){this.model.started?this.buttonEl.innerHTML=this.iconStarted():this.buttonEl.innerHTML=this.iconNotStarted()}connect_signals(){super.connect_signals();const{start:t,stop:e,abort:i,grammars:n,lang:o,continuous:s,interim_results:r,max_alternatives:a,service_uri:h,button_type:l,button_hide:c,button_not_started:d,button_started:u}=this.model.properties;this.on_change(t,(()=>{this.model.start=!1,this.recognition.start()})),this.on_change(e,(()=>{this.model.stop=!1,this.recognition.stop()})),this.on_change(i,(()=>{this.model.abort=!1,this.recognition.abort()})),this.on_change(n,(()=>this.setGrammars())),this.on_change(o,(()=>this.recognition.lang=this.model.lang)),this.on_change(s,(()=>this.recognition.continuous=this.model.continuous)),this.on_change(r,(()=>this.recognition.interimResults=this.model.interim_results)),this.on_change(a,(()=>this.recognition.maxAlternatives=this.model.max_alternatives)),this.on_change(h,(()=>this.recognition.serviceURI=this.model.service_uri)),this.on_change(l,(()=>this.buttonEl.className=`bk bk-btn bk-btn-${this.model.button_type}`)),this.on_change(c,(()=>this.render())),this.on_change([d,u],(()=>this.setIcon()))}setGrammars(){this.recognition.grammars=function(t){if(t){const e=new l;for(const i of t)i.src?e.addFromString(i.src,i.weight):i.uri&&e.addFromURI(i.uri,i.weight);return e}return null}(this.model.grammars)}render(){super.render(),this.model.button_hide||this.shadow_el.appendChild(this.buttonEl)}}i.SpeechToTextView=c,c.__name__=\"SpeechToTextView\";class d extends r.HTMLBox{constructor(t){super(t)}}i.SpeechToText=d,s=d,d.__name__=\"SpeechToText\",d.__module__=\"panel.models.speech_to_text\",s.prototype.default_view=c,s.define((({Any:t,List:e,Bool:i,Float:n,Str:o})=>({start:[i,!1],stop:[i,!1],abort:[i,!1],grammars:[e(t),[]],lang:[o,\"\"],continuous:[i,!1],interim_results:[i,!1],max_alternatives:[n,1],service_uri:[o,\"\"],started:[i,!1],audio_started:[i,!1],sound_started:[i,!1],speech_started:[i,!1],button_type:[o,\"light\"],button_hide:[i,!1],button_not_started:[o,\"\"],button_started:[o,\"\"],results:[e(t),[]]})))}\n//# sourceMappingURL=speech_to_text.min.js.map","min_map":"{\"version\":3,\"file\":\"speech_to_text.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"layout_1\",\"titleNotStarted\",\"webkitSpeechRecognition\",\"window\",\"webkitSpeechGrammarList\",\"SpeechToTextView\",\"HTMLBoxView\",\"initialize\",\"super\",\"this\",\"recognition\",\"lang\",\"model\",\"continuous\",\"interimResults\",\"interim_results\",\"maxAlternatives\",\"max_alternatives\",\"serviceURI\",\"service_uri\",\"setGrammars\",\"onresult\",\"event\",\"results\",\"results_\",\"result\",\"alternatives\",\"item\",\"is_final\",\"isFinal\",\"i\",\"length\",\"alternative\",\"confidence\",\"value\",\"Math\",\"round\",\"Number\",\"EPSILON\",\"transcript\",\"push\",\"serializeResults\",\"onerror\",\"console\",\"error\",\"onnomatch\",\"warn\",\"onaudiostart\",\"audio_started\",\"onaudioend\",\"onsoundstart\",\"sound_started\",\"onsoundend\",\"onspeechstart\",\"speech_started\",\"onspeechend\",\"onstart\",\"buttonEl\",\"onclick\",\"stop\",\"innerHTML\",\"iconStarted\",\"setAttribute\",\"started\",\"onend\",\"start\",\"iconNotStarted\",\"html\",\"template\",\"document\",\"createElement\",\"trim\",\"content\",\"firstChild\",\"htmlToElement\",\"button_type\",\"button_started\",\"button_not_started\",\"setIcon\",\"connect_signals\",\"abort\",\"grammars\",\"button_hide\",\"properties\",\"on_change\",\"className\",\"render\",\"speechRecognitionList\",\"grammar\",\"src\",\"addFromString\",\"weight\",\"uri\",\"addFromURI\",\"deserializeGrammars\",\"shadow_el\",\"appendChild\",\"__name__\",\"SpeechToText\",\"HTMLBox\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Any\",\"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BAAoB,CAACiC,EAAK,IAC1BlC,eAAgB,CAACkC,EAAK,IACtBvF,QAAS,CAACoF,EAAKD,GAAM,OAGjC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/state.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/state.js","canonical":"models/state","resolution":"ESM","id":"92822cb73a","hash":"92822cb73afda35672926a621da0af797ae340ab8db5d7a4364904b50a694f54","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.State = exports.StateView = void 0;\nconst view_1 = require(\"@bokehjs/core/view\");\nconst array_1 = require(\"@bokehjs/core/util/array\");\nconst model_1 = require(\"@bokehjs/model\");\nconst receiver_1 = require(\"@bokehjs/protocol/receiver\");\nfunction get_json(file, callback) {\n    const xobj = new XMLHttpRequest();\n    xobj.overrideMimeType(\"application/json\");\n    xobj.open(\"GET\", file, true);\n    xobj.onreadystatechange = function () {\n        if (xobj.readyState == 4 && xobj.status == 200) {\n            callback(xobj.responseText);\n        }\n    };\n    xobj.send(null);\n}\nclass StateView extends view_1.View {\n}\nexports.StateView = StateView;\nStateView.__name__ = \"StateView\";\nclass State extends model_1.Model {\n    constructor(attrs) {\n        super(attrs);\n        this._receiver = new receiver_1.Receiver();\n        this._cache = {};\n    }\n    apply_state(state) {\n        this._receiver.consume(state.header);\n        this._receiver.consume(state.metadata);\n        this._receiver.consume(state.content);\n        if (this._receiver.message && this.document) {\n            this.document.apply_json_patch(this._receiver.message.content);\n        }\n    }\n    _receive_json(result, path) {\n        const state = JSON.parse(result);\n        this._cache[path] = state;\n        let current = this.state;\n        for (const i of this.values) {\n            if (current instanceof Map) {\n                current = current.get(i);\n            }\n            else {\n                current = current[i];\n            }\n        }\n        if (current === path) {\n            this.apply_state(state);\n        }\n        else if (this._cache[current]) {\n            this.apply_state(this._cache[current]);\n        }\n    }\n    set_state(widget, value) {\n        const values = (0, array_1.copy)(this.values);\n        const index = this.widgets[widget.id];\n        values[index] = value;\n        let state = this.state;\n        for (const i of values) {\n            if (state instanceof Map) {\n                state = state.get(i);\n            }\n            else {\n                state = state[i];\n            }\n        }\n        this.values = values;\n        if (this.json) {\n            if (this._cache[state]) {\n                this.apply_state(this._cache[state]);\n            }\n            else {\n                get_json(state, (result) => this._receive_json(result, state));\n            }\n        }\n        else {\n            this.apply_state(state);\n        }\n    }\n}\nexports.State = State;\n_a = State;\nState.__name__ = \"State\";\nState.__module__ = \"panel.models.state\";\n(() => {\n    _a.prototype.default_view = StateView;\n    _a.define(({ Any, Bool }) => ({\n        json: [Bool, false],\n        state: [Any, {}],\n        widgets: [Any, {}],\n        values: [Any, []],\n    }));\n})();\n//# sourceMappingURL=state.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"StateView"},{"type":"named","name":"State"}],"externals":[],"shims":[]},"code":{"source":"/* models/state.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const view_1 = require(\"@bokehjs/core/view\");\n    const array_1 = require(\"@bokehjs/core/util/array\");\n    const model_1 = require(\"@bokehjs/model\");\n    const receiver_1 = require(\"@bokehjs/protocol/receiver\");\n    function get_json(file, callback) {\n        const xobj = new XMLHttpRequest();\n        xobj.overrideMimeType(\"application/json\");\n        xobj.open(\"GET\", file, true);\n        xobj.onreadystatechange = function () {\n            if (xobj.readyState == 4 && xobj.status == 200) {\n                callback(xobj.responseText);\n            }\n        };\n        xobj.send(null);\n    }\n    class StateView extends view_1.View {\n    }\n    exports.StateView = StateView;\n    StateView.__name__ = \"StateView\";\n    class State extends model_1.Model {\n        constructor(attrs) {\n            super(attrs);\n            this._receiver = new receiver_1.Receiver();\n            this._cache = {};\n        }\n        apply_state(state) {\n            this._receiver.consume(state.header);\n            this._receiver.consume(state.metadata);\n            this._receiver.consume(state.content);\n            if (this._receiver.message && this.document) {\n                this.document.apply_json_patch(this._receiver.message.content);\n            }\n        }\n        _receive_json(result, path) {\n            const state = JSON.parse(result);\n            this._cache[path] = state;\n            let current = this.state;\n            for (const i of this.values) {\n                if (current instanceof Map) {\n                    current = current.get(i);\n                }\n                else {\n                    current = current[i];\n                }\n            }\n            if (current === path) {\n                this.apply_state(state);\n            }\n            else if (this._cache[current]) {\n                this.apply_state(this._cache[current]);\n            }\n        }\n        set_state(widget, value) {\n            const values = (0, array_1.copy)(this.values);\n            const index = this.widgets[widget.id];\n            values[index] = value;\n            let state = this.state;\n            for (const i of values) {\n                if (state instanceof Map) {\n                    state = state.get(i);\n                }\n                else {\n                    state = state[i];\n                }\n            }\n            this.values = values;\n            if (this.json) {\n                if (this._cache[state]) {\n                    this.apply_state(this._cache[state]);\n                }\n                else {\n                    get_json(state, (result) => this._receive_json(result, state));\n                }\n            }\n            else {\n                this.apply_state(state);\n            }\n        }\n    }\n    exports.State = State;\n    _a = State;\n    State.__name__ = \"State\";\n    State.__module__ = \"panel.models.state\";\n    (() => {\n        _a.prototype.default_view = StateView;\n        _a.define(({ Any, Bool }) => ({\n            json: [Bool, false],\n            state: [Any, {}],\n            widgets: [Any, {}],\n            values: [Any, []],\n        }));\n    })();\n}\n","min_source":"function _(e,t,s,a,i){var o;a();const c=e(\"@bokehjs/core/view\"),n=e(\"@bokehjs/core/util/array\"),h=e(\"@bokehjs/model\"),_=e(\"@bokehjs/protocol/receiver\");class r extends c.View{}s.StateView=r,r.__name__=\"StateView\";class p extends h.Model{constructor(e){super(e),this._receiver=new _.Receiver,this._cache={}}apply_state(e){this._receiver.consume(e.header),this._receiver.consume(e.metadata),this._receiver.consume(e.content),this._receiver.message&&this.document&&this.document.apply_json_patch(this._receiver.message.content)}_receive_json(e,t){const s=JSON.parse(e);this._cache[t]=s;let a=this.state;for(const e of this.values)a=a instanceof Map?a.get(e):a[e];a===t?this.apply_state(s):this._cache[a]&&this.apply_state(this._cache[a])}set_state(e,t){const s=(0,n.copy)(this.values);s[this.widgets[e.id]]=t;let a=this.state;for(const e of s)a=a instanceof Map?a.get(e):a[e];this.values=s,this.json?this._cache[a]?this.apply_state(this._cache[a]):function(e,t){const s=new XMLHttpRequest;s.overrideMimeType(\"application/json\"),s.open(\"GET\",e,!0),s.onreadystatechange=function(){4==s.readyState&&200==s.status&&t(s.responseText)},s.send(null)}(a,(e=>this._receive_json(e,a))):this.apply_state(a)}}s.State=p,o=p,p.__name__=\"State\",p.__module__=\"panel.models.state\",o.prototype.default_view=r,o.define((({Any:e,Bool:t})=>({json:[t,!1],state:[e,{}],widgets:[e,{}],values:[e,[]]})))}\n//# sourceMappingURL=state.min.js.map","min_map":"{\"version\":3,\"file\":\"state.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"view_1\",\"array_1\",\"model_1\",\"receiver_1\",\"StateView\",\"View\",\"__name__\",\"State\",\"Model\",\"constructor\",\"attrs\",\"super\",\"this\",\"_receiver\",\"Receiver\",\"_cache\",\"apply_state\",\"state\",\"consume\",\"header\",\"metadata\",\"content\",\"message\",\"document\",\"apply_json_patch\",\"_receive_json\",\"result\",\"path\",\"JSON\",\"parse\",\"current\",\"i\",\"values\",\"Map\",\"get\",\"set_state\",\"widget\",\"value\",\"copy\",\"widgets\",\"id\",\"json\",\"file\",\"callback\",\"xobj\",\"XMLHttpRequest\",\"overrideMimeType\",\"open\",\"onreadystatechange\",\"readyState\",\"status\",\"responseText\",\"send\",\"get_json\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Any\",\"Bool\"],\"sources\":[\"0\"],\"mappings\":\"AAAsB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACnE,IAAIC,EACJF,IACA,MAAMG,EAASN,EAAQ,sBACjBO,EAAUP,EAAQ,4BAClBQ,EAAUR,EAAQ,kBAClBS,EAAaT,EAAQ,8BAY3B,MAAMU,UAAkBJ,EAAOK,MAE/BT,EAAQQ,UAAYA,EACpBA,EAAUE,SAAW,YACrB,MAAMC,UAAcL,EAAQM,MACxB,WAAAC,CAAYC,GACRC,MAAMD,GACNE,K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YC,EAEzB,EAEJrB,EAAQW,MAAQA,EAChBR,EAAKQ,EACLA,EAAMD,SAAW,QACjBC,EAAM+C,WAAa,qBAEfvD,EAAGwD,UAAUC,aAAepD,EAC5BL,EAAG0D,QAAO,EAAGC,MAAKC,WAAW,CACzBlB,KAAM,CAACkB,GAAM,GACb1C,MAAO,CAACyC,EAAK,CAAC,GACdnB,QAAS,CAACmB,EAAK,CAAC,GAChB1B,OAAQ,CAAC0B,EAAK,OAG1B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/tabs.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/tabs.js","canonical":"models/tabs","resolution":"ESM","id":"fffb4344f7","hash":"fffb4344f769ff7010dd1ba9678b74b84a3a9b97f0b23bdce494a44bc61a8991","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Tabs = exports.TabsView = void 0;\nconst tslib_1 = require(\"tslib\");\nconst tabs = tslib_1.__importStar(require(\"@bokehjs/styles/tabs.css\"));\nconst grid_1 = require(\"@bokehjs/core/layout/grid\");\nconst enums_1 = require(\"@bokehjs/core/enums\");\nconst alignments_1 = require(\"@bokehjs/models/layouts/alignments\");\nconst tabs_1 = require(\"@bokehjs/models/layouts/tabs\");\nconst layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\nfunction show(element) {\n    element.style.visibility = \"\";\n    element.style.opacity = \"\";\n    element.style.pointerEvents = \"auto\";\n    element.removeAttribute(\"aria-hidden\");\n}\nfunction hide(element) {\n    element.style.visibility = \"hidden\";\n    element.style.opacity = \"0\";\n    element.style.pointerEvents = \"none\";\n    element.setAttribute(\"aria-hidden\", \"true\");\n}\nclass TabsView extends tabs_1.TabsView {\n    connect_signals() {\n        super.connect_signals();\n        let view = this;\n        while (view != null) {\n            if (view.model.type.endsWith(\"Tabs\")) {\n                view.connect(view.model.properties.active.change, () => this.update_zindex());\n            }\n            view = view.parent || view._parent; // Handle ReactiveHTML\n        }\n    }\n    get is_visible() {\n        let parent = this.parent;\n        let current_view = this;\n        while (parent != null) {\n            if (parent.model.type.endsWith(\"Tabs\")) {\n                if (parent.child_views.indexOf(current_view) !== parent.model.active) {\n                    return false;\n                }\n            }\n            current_view = parent;\n            parent = parent.parent || parent._parent; // Handle ReactiveHTML\n        }\n        return true;\n    }\n    render() {\n        super.render();\n        this.update_zindex();\n    }\n    update_zindex() {\n        const { child_views } = this;\n        for (const child_view of child_views) {\n            if (child_view != null && child_view.el != null) {\n                child_view.el.style.zIndex = \"\";\n            }\n        }\n        if (this.is_visible) {\n            const active = child_views[this.model.active];\n            if (active != null && active.el != null) {\n                active.el.style.zIndex = \"1\";\n            }\n        }\n    }\n    _after_layout() {\n        layout_dom_1.LayoutDOMView.prototype._after_layout.call(this);\n        const { child_views } = this;\n        for (const child_view of child_views) {\n            if (child_view !== undefined) {\n                hide(child_view.el);\n            }\n        }\n        const { active } = this.model;\n        if (active in child_views) {\n            const tab = child_views[active];\n            if (tab !== undefined) {\n                show(tab.el);\n            }\n        }\n    }\n    _update_layout() {\n        layout_dom_1.LayoutDOMView.prototype._update_layout.call(this);\n        const loc = this.model.tabs_location;\n        this.class_list.remove([...enums_1.Location].map((loc) => tabs[loc]));\n        this.class_list.add(tabs[loc]);\n        const layoutable = new grid_1.Container();\n        for (const view of this.child_views) {\n            if (view == undefined) {\n                continue;\n            }\n            view.style.append(\":host\", { grid_area: \"stack\" });\n            if (view instanceof layout_dom_1.LayoutDOMView && view.layout != null) {\n                layoutable.add({ r0: 0, c0: 0, r1: 1, c1: 1 }, view);\n            }\n        }\n        if (layoutable.size != 0) {\n            this.layout = new alignments_1.GridAlignmentLayout(layoutable);\n            this.layout.set_sizing();\n        }\n        else {\n            delete this.layout;\n        }\n    }\n    update_active() {\n        const i = this.model.active;\n        const { header_els } = this;\n        for (const el of header_els) {\n            el.classList.remove(tabs.active);\n        }\n        if (i in header_els) {\n            header_els[i].classList.add(tabs.active);\n        }\n        const { child_views } = this;\n        for (const child_view of child_views) {\n            hide(child_view.el);\n        }\n        if (i in child_views) {\n            const view = child_views[i];\n            show(view.el);\n            if (view.invalidate_render == null) {\n                view.invalidate_render();\n            }\n        }\n    }\n}\nexports.TabsView = TabsView;\nTabsView.__name__ = \"TabsView\";\nclass Tabs extends tabs_1.Tabs {\n}\nexports.Tabs = Tabs;\n_a = Tabs;\nTabs.__name__ = \"Tabs\";\nTabs.__module__ = \"panel.models.tabs\";\n(() => {\n    _a.prototype.default_view = TabsView;\n})();\n//# sourceMappingURL=tabs.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"TabsView"},{"type":"named","name":"Tabs"}],"externals":[],"shims":[]},"code":{"source":"/* models/tabs.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const tabs = tslib_1.__importStar(require(\"@bokehjs/styles/tabs.css\"));\n    const grid_1 = require(\"@bokehjs/core/layout/grid\");\n    const enums_1 = require(\"@bokehjs/core/enums\");\n    const alignments_1 = require(\"@bokehjs/models/layouts/alignments\");\n    const tabs_1 = require(\"@bokehjs/models/layouts/tabs\");\n    const layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\n    function show(element) {\n        element.style.visibility = \"\";\n        element.style.opacity = \"\";\n        element.style.pointerEvents = \"auto\";\n        element.removeAttribute(\"aria-hidden\");\n    }\n    function hide(element) {\n        element.style.visibility = \"hidden\";\n        element.style.opacity = \"0\";\n        element.style.pointerEvents = \"none\";\n        element.setAttribute(\"aria-hidden\", \"true\");\n    }\n    class TabsView extends tabs_1.TabsView {\n        connect_signals() {\n            super.connect_signals();\n            let view = this;\n            while (view != null) {\n                if (view.model.type.endsWith(\"Tabs\")) {\n                    view.connect(view.model.properties.active.change, () => this.update_zindex());\n                }\n                view = view.parent || view._parent; // Handle ReactiveHTML\n            }\n        }\n        get is_visible() {\n            let parent = this.parent;\n            let current_view = this;\n            while (parent != null) {\n                if (parent.model.type.endsWith(\"Tabs\")) {\n                    if (parent.child_views.indexOf(current_view) !== parent.model.active) {\n                        return false;\n                    }\n                }\n                current_view = parent;\n                parent = parent.parent || parent._parent; // Handle ReactiveHTML\n            }\n            return true;\n        }\n        render() {\n            super.render();\n            this.update_zindex();\n        }\n        update_zindex() {\n            const { child_views } = this;\n            for (const child_view of child_views) {\n                if (child_view != null && child_view.el != null) {\n                    child_view.el.style.zIndex = \"\";\n                }\n            }\n            if (this.is_visible) {\n                const active = child_views[this.model.active];\n                if (active != null && active.el != null) {\n                    active.el.style.zIndex = \"1\";\n                }\n            }\n        }\n        _after_layout() {\n            layout_dom_1.LayoutDOMView.prototype._after_layout.call(this);\n            const { child_views } = this;\n            for (const child_view of child_views) {\n                if (child_view !== undefined) {\n                    hide(child_view.el);\n                }\n            }\n            const { active } = this.model;\n            if (active in child_views) {\n                const tab = child_views[active];\n                if (tab !== undefined) {\n                    show(tab.el);\n                }\n            }\n        }\n        _update_layout() {\n            layout_dom_1.LayoutDOMView.prototype._update_layout.call(this);\n            const loc = this.model.tabs_location;\n            this.class_list.remove([...enums_1.Location].map((loc) => tabs[loc]));\n            this.class_list.add(tabs[loc]);\n            const layoutable = new grid_1.Container();\n            for (const view of this.child_views) {\n                if (view == undefined) {\n                    continue;\n                }\n                view.style.append(\":host\", { grid_area: \"stack\" });\n                if (view instanceof layout_dom_1.LayoutDOMView && view.layout != null) {\n                    layoutable.add({ r0: 0, c0: 0, r1: 1, c1: 1 }, view);\n                }\n            }\n            if (layoutable.size != 0) {\n                this.layout = new alignments_1.GridAlignmentLayout(layoutable);\n                this.layout.set_sizing();\n            }\n            else {\n                delete this.layout;\n            }\n        }\n        update_active() {\n            const i = this.model.active;\n            const { header_els } = this;\n            for (const el of header_els) {\n                el.classList.remove(tabs.active);\n            }\n            if (i in header_els) {\n                header_els[i].classList.add(tabs.active);\n            }\n            const { child_views } = this;\n            for (const child_view of child_views) {\n                hide(child_view.el);\n            }\n            if (i in child_views) {\n                const view = child_views[i];\n                show(view.el);\n                if (view.invalidate_render == null) {\n                    view.invalidate_render();\n                }\n            }\n        }\n    }\n    exports.TabsView = TabsView;\n    TabsView.__name__ = \"TabsView\";\n    class Tabs extends tabs_1.Tabs {\n    }\n    exports.Tabs = Tabs;\n    _a = Tabs;\n    Tabs.__name__ = \"Tabs\";\n    Tabs.__module__ = \"panel.models.tabs\";\n    (() => {\n        _a.prototype.default_view = TabsView;\n    })();\n}\n","min_source":"function _(e,t,s,i,o){var l;i();const n=e(\"tslib\").__importStar(e(\"@bokehjs/styles/tabs.css\")),a=e(\"@bokehjs/core/layout/grid\"),d=e(\"@bokehjs/core/enums\"),c=e(\"@bokehjs/models/layouts/alignments\"),r=e(\"@bokehjs/models/layouts/tabs\"),_=e(\"@bokehjs/models/layouts/layout_dom\");function u(e){e.style.visibility=\"\",e.style.opacity=\"\",e.style.pointerEvents=\"auto\",e.removeAttribute(\"aria-hidden\")}function h(e){e.style.visibility=\"hidden\",e.style.opacity=\"0\",e.style.pointerEvents=\"none\",e.setAttribute(\"aria-hidden\",\"true\")}class y extends r.TabsView{connect_signals(){super.connect_signals();let e=this;for(;null!=e;)e.model.type.endsWith(\"Tabs\")&&e.connect(e.model.properties.active.change,(()=>this.update_zindex())),e=e.parent||e._parent}get is_visible(){let e=this.parent,t=this;for(;null!=e;){if(e.model.type.endsWith(\"Tabs\")&&e.child_views.indexOf(t)!==e.model.active)return!1;t=e,e=e.parent||e._parent}return!0}render(){super.render(),this.update_zindex()}update_zindex(){const{child_views:e}=this;for(const t of e)null!=t&&null!=t.el&&(t.el.style.zIndex=\"\");if(this.is_visible){const t=e[this.model.active];null!=t&&null!=t.el&&(t.el.style.zIndex=\"1\")}}_after_layout(){_.LayoutDOMView.prototype._after_layout.call(this);const{child_views:e}=this;for(const t of e)void 0!==t&&h(t.el);const{active:t}=this.model;if(t in e){const s=e[t];void 0!==s&&u(s.el)}}_update_layout(){_.LayoutDOMView.prototype._update_layout.call(this);const e=this.model.tabs_location;this.class_list.remove([...d.Location].map((e=>n[e]))),this.class_list.add(n[e]);const t=new a.Container;for(const e of this.child_views)null!=e&&(e.style.append(\":host\",{grid_area:\"stack\"}),e instanceof _.LayoutDOMView&&null!=e.layout&&t.add({r0:0,c0:0,r1:1,c1:1},e));0!=t.size?(this.layout=new c.GridAlignmentLayout(t),this.layout.set_sizing()):delete this.layout}update_active(){const e=this.model.active,{header_els:t}=this;for(const e of t)e.classList.remove(n.active);e in t&&t[e].classList.add(n.active);const{child_views:s}=this;for(const e of s)h(e.el);if(e in s){const t=s[e];u(t.el),null==t.invalidate_render&&t.invalidate_render()}}}s.TabsView=y,y.__name__=\"TabsView\";class p extends r.Tabs{}s.Tabs=p,l=p,p.__name__=\"Tabs\",p.__module__=\"panel.models.tabs\",l.prototype.default_view=y}\n//# sourceMappingURL=tabs.min.js.map","min_map":"{\"version\":3,\"file\":\"tabs.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"tabs\",\"__importStar\",\"grid_1\",\"enums_1\",\"alignments_1\",\"tabs_1\",\"layout_dom_1\",\"show\",\"element\",\"style\",\"visibility\",\"opacity\",\"pointerEvents\",\"removeAttribute\",\"hide\",\"setAttribute\",\"TabsView\",\"connect_signals\",\"super\",\"view\",\"this\",\"model\",\"type\",\"endsWith\",\"connect\",\"properties\",\"active\",\"change\",\"update_zindex\",\"parent\",\"_parent\",\"is_visible\",\"current_view\",\"child_views\",\"indexOf\",\"render\",\"child_view\",\"el\",\"zIndex\",\"_after_layout\",\"LayoutDOMView\",\"prototype\",\"call\",\"undefined\",\"tab\",\"_update_layout\",\"loc\",\"tabs_location\",\"class_list\",\"remove\",\"Location\",\"map\",\"add\",\"layoutable\",\"Container\",\"append\",\"grid_area\",\"layout\",\"r0\",\"c0\",\"r1\",\"c1\",\"size\",\"GridAlignmentLayout\",\"set_sizing\",\"update_active\",\"i\",\"header_els\",\"classList\",\"invalidate_render\",\"__name__\",\"Tabs\",\"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pD,EAAK0B,QAErC,MAAMO,YAAEA,GAAgBb,KACxB,IAAK,MAAMgB,KAAcH,EACrBnB,EAAKsB,EAAWC,IAEpB,GAAI6B,KAAKjC,EAAa,CAClB,MAAMd,EAAOc,EAAYiC,GACzB3D,EAAKY,EAAKkB,IACoB,MAA1BlB,EAAKkD,mBACLlD,EAAKkD,mBAEb,CACJ,EAEJzE,EAAQoB,SAAWA,EACnBA,EAASsD,SAAW,WACpB,MAAMC,UAAalE,EAAOkE,MAE1B3E,EAAQ2E,KAAOA,EACfxE,EAAKwE,EACLA,EAAKD,SAAW,OAChBC,EAAKC,WAAa,oBAEdzE,EAAG0C,UAAUgC,aAAezD,CAEpC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/terminal.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/terminal.js","canonical":"models/terminal","resolution":"ESM","id":"a961b5ae5e","hash":"a961b5ae5e351ca9cc84f6b06b3b1db2f99f3579c6079820230d23555e2e4ad4","source":"\"use strict\";\nvar _a, _b;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Terminal = exports.TerminalView = exports.KeystrokeEvent = void 0;\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nconst layout_1 = require(\"./layout\");\nclass KeystrokeEvent extends bokeh_events_1.ModelEvent {\n    constructor(key) {\n        super();\n        this.key = key;\n    }\n    get event_values() {\n        return { model: this.origin, key: this.key };\n    }\n}\nexports.KeystrokeEvent = KeystrokeEvent;\n_a = KeystrokeEvent;\nKeystrokeEvent.__name__ = \"KeystrokeEvent\";\n(() => {\n    _a.prototype.event_name = \"keystroke\";\n})();\nclass TerminalView extends layout_1.HTMLBoxView {\n    connect_signals() {\n        super.connect_signals();\n        const { width, height, min_height, max_height, margin, sizing_mode, output, _clears } = this.model.properties;\n        this.on_change(output, this.write);\n        this.on_change(_clears, this.clear);\n        this.on_change([width, height, min_height, max_height, margin, sizing_mode], () => {\n            (0, layout_1.set_size)(this.el, this.model);\n            (0, layout_1.set_size)(this.container, this.model, false);\n        });\n    }\n    render() {\n        super.render();\n        this.container = (0, dom_1.div)({ class: \"terminal-container\" });\n        (0, layout_1.set_size)(this.container, this.model, false);\n        this.term = this.getNewTerminal();\n        this.term.onData((value) => {\n            this.handleOnData(value);\n        });\n        this.webLinksAddon = this.getNewWebLinksAddon();\n        this.term.loadAddon(this.webLinksAddon);\n        this.term.open(this.container);\n        this.term.onRender(() => {\n            if (!this._rendered) {\n                this.fit();\n            }\n        });\n        this.write();\n        this.shadow_el.appendChild(this.container);\n    }\n    getNewTerminal() {\n        const wn = window;\n        if (wn.Terminal) {\n            return new wn.Terminal(this.model.options);\n        }\n        else {\n            return new wn.xtermjs.Terminal(this.model.options);\n        }\n    }\n    getNewWebLinksAddon() {\n        const wn = window;\n        return new wn.WebLinksAddon.WebLinksAddon();\n    }\n    handleOnData(value) {\n        this.model.trigger_event(new KeystrokeEvent(value));\n    }\n    write() {\n        const text = this.model.output;\n        if (text == null || !text.length) {\n            return;\n        }\n        // https://stackoverflow.com/questions/65367607/how-to-handle-new-line-in-xterm-js-while-writing-data-into-the-terminal\n        const cleaned = text.replace(/\\r?\\n/g, \"\\r\\n\");\n        // var text = Array.from(cleaned, (x) => x.charCodeAt(0))\n        this.term.write(cleaned);\n    }\n    clear() {\n        this.term.clear();\n    }\n    fit() {\n        const width = this.container.offsetWidth;\n        const height = this.container.offsetHeight;\n        const renderer = this.term._core._renderService;\n        const cell_width = renderer.dimensions.actualCellWidth || 9;\n        const cell_height = renderer.dimensions.actualCellHeight || 18;\n        if (width == null || height == null || width <= 0 || height <= 0) {\n            return;\n        }\n        const cols = Math.max(2, Math.floor(width / cell_width));\n        const rows = Math.max(1, Math.floor(height / cell_height));\n        if (this.term.rows !== rows || this.term.cols !== cols) {\n            this.term.resize(cols, rows);\n        }\n        this.model.ncols = cols;\n        this.model.nrows = rows;\n        this._rendered = true;\n    }\n    after_layout() {\n        super.after_layout();\n        if (this.container != null) {\n            this.fit();\n        }\n    }\n}\nexports.TerminalView = TerminalView;\nTerminalView.__name__ = \"TerminalView\";\n// The Bokeh .ts model corresponding to the Bokeh .py model\nclass Terminal extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.Terminal = Terminal;\n_b = Terminal;\nTerminal.__name__ = \"Terminal\";\nTerminal.__module__ = \"panel.models.terminal\";\n(() => {\n    _b.prototype.default_view = TerminalView;\n    _b.define(({ Any, Int, Str }) => ({\n        _clears: [Int, 0],\n        options: [Any, {}],\n        output: [Str, \"\"],\n        ncols: [Int, 0],\n        nrows: [Int, 0],\n    }));\n})();\n//# sourceMappingURL=terminal.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"]],"dependency_map":[],"exported":[{"type":"named","name":"KeystrokeEvent"},{"type":"named","name":"TerminalView"},{"type":"named","name":"Terminal"}],"externals":[],"shims":[]},"code":{"source":"/* models/terminal.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a, _b;\n    __esModule();\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    class KeystrokeEvent extends bokeh_events_1.ModelEvent {\n        constructor(key) {\n            super();\n            this.key = key;\n        }\n        get event_values() {\n            return { model: this.origin, key: this.key };\n        }\n    }\n    exports.KeystrokeEvent = KeystrokeEvent;\n    _a = KeystrokeEvent;\n    KeystrokeEvent.__name__ = \"KeystrokeEvent\";\n    (() => {\n        _a.prototype.event_name = \"keystroke\";\n    })();\n    class TerminalView extends layout_1.HTMLBoxView {\n        connect_signals() {\n            super.connect_signals();\n            const { width, height, min_height, max_height, margin, sizing_mode, output, _clears } = this.model.properties;\n            this.on_change(output, this.write);\n            this.on_change(_clears, this.clear);\n            this.on_change([width, height, min_height, max_height, margin, sizing_mode], () => {\n                (0, layout_1.set_size)(this.el, this.model);\n                (0, layout_1.set_size)(this.container, this.model, false);\n            });\n        }\n        render() {\n            super.render();\n            this.container = (0, dom_1.div)({ class: \"terminal-container\" });\n            (0, layout_1.set_size)(this.container, this.model, false);\n            this.term = this.getNewTerminal();\n            this.term.onData((value) => {\n                this.handleOnData(value);\n            });\n            this.webLinksAddon = this.getNewWebLinksAddon();\n            this.term.loadAddon(this.webLinksAddon);\n            this.term.open(this.container);\n            this.term.onRender(() => {\n                if (!this._rendered) {\n                    this.fit();\n                }\n            });\n            this.write();\n            this.shadow_el.appendChild(this.container);\n        }\n        getNewTerminal() {\n            const wn = window;\n            if (wn.Terminal) {\n                return new wn.Terminal(this.model.options);\n            }\n            else {\n                return new wn.xtermjs.Terminal(this.model.options);\n            }\n        }\n        getNewWebLinksAddon() {\n            const wn = window;\n            return new wn.WebLinksAddon.WebLinksAddon();\n        }\n        handleOnData(value) {\n            this.model.trigger_event(new KeystrokeEvent(value));\n        }\n        write() {\n            const text = this.model.output;\n            if (text == null || !text.length) {\n                return;\n            }\n            // https://stackoverflow.com/questions/65367607/how-to-handle-new-line-in-xterm-js-while-writing-data-into-the-terminal\n            const cleaned = text.replace(/\\r?\\n/g, \"\\r\\n\");\n            // var text = Array.from(cleaned, (x) => x.charCodeAt(0))\n            this.term.write(cleaned);\n        }\n        clear() {\n            this.term.clear();\n        }\n        fit() {\n            const width = this.container.offsetWidth;\n            const height = this.container.offsetHeight;\n            const renderer = this.term._core._renderService;\n            const cell_width = renderer.dimensions.actualCellWidth || 9;\n            const cell_height = renderer.dimensions.actualCellHeight || 18;\n            if (width == null || height == null || width <= 0 || height <= 0) {\n                return;\n            }\n            const cols = Math.max(2, Math.floor(width / cell_width));\n            const rows = Math.max(1, Math.floor(height / cell_height));\n            if (this.term.rows !== rows || this.term.cols !== cols) {\n                this.term.resize(cols, rows);\n            }\n            this.model.ncols = cols;\n            this.model.nrows = rows;\n            this._rendered = true;\n        }\n        after_layout() {\n            super.after_layout();\n            if (this.container != null) {\n                this.fit();\n            }\n        }\n    }\n    exports.TerminalView = TerminalView;\n    TerminalView.__name__ = \"TerminalView\";\n    // The Bokeh .ts model corresponding to the Bokeh .py model\n    class Terminal extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.Terminal = Terminal;\n    _b = Terminal;\n    Terminal.__name__ = \"Terminal\";\n    Terminal.__module__ = \"panel.models.terminal\";\n    (() => {\n        _b.prototype.default_view = TerminalView;\n        _b.define(({ Any, Int, Str }) => ({\n            _clears: [Int, 0],\n            options: [Any, {}],\n            output: [Str, \"\"],\n            ncols: [Int, 0],\n            nrows: [Int, 0],\n        }));\n    })();\n}\n","min_source":"function _(e,t,n,i,s){var r,o;i();const h=e(\"@bokehjs/core/dom\"),a=e(\"@bokehjs/core/bokeh_events\"),l=e(\"dab42e6dad\");class d extends a.ModelEvent{constructor(e){super(),this.key=e}get event_values(){return{model:this.origin,key:this.key}}}n.KeystrokeEvent=d,r=d,d.__name__=\"KeystrokeEvent\",r.prototype.event_name=\"keystroke\";class m extends l.HTMLBoxView{connect_signals(){super.connect_signals();const{width:e,height:t,min_height:n,max_height:i,margin:s,sizing_mode:r,output:o,_clears:h}=this.model.properties;this.on_change(o,this.write),this.on_change(h,this.clear),this.on_change([e,t,n,i,s,r],(()=>{(0,l.set_size)(this.el,this.model),(0,l.set_size)(this.container,this.model,!1)}))}render(){super.render(),this.container=(0,h.div)({class:\"terminal-container\"}),(0,l.set_size)(this.container,this.model,!1),this.term=this.getNewTerminal(),this.term.onData((e=>{this.handleOnData(e)})),this.webLinksAddon=this.getNewWebLinksAddon(),this.term.loadAddon(this.webLinksAddon),this.term.open(this.container),this.term.onRender((()=>{this._rendered||this.fit()})),this.write(),this.shadow_el.appendChild(this.container)}getNewTerminal(){const e=window;return e.Terminal?new e.Terminal(this.model.options):new e.xtermjs.Terminal(this.model.options)}getNewWebLinksAddon(){return new window.WebLinksAddon.WebLinksAddon}handleOnData(e){this.model.trigger_event(new d(e))}write(){const e=this.model.output;if(null==e||!e.length)return;const t=e.replace(/\\r?\\n/g,\"\\r\\n\");this.term.write(t)}clear(){this.term.clear()}fit(){const e=this.container.offsetWidth,t=this.container.offsetHeight,n=this.term._core._renderService,i=n.dimensions.actualCellWidth||9,s=n.dimensions.actualCellHeight||18;if(null==e||null==t||e<=0||t<=0)return;const r=Math.max(2,Math.floor(e/i)),o=Math.max(1,Math.floor(t/s));this.term.rows===o&&this.term.cols===r||this.term.resize(r,o),this.model.ncols=r,this.model.nrows=o,this._rendered=!0}after_layout(){super.after_layout(),null!=this.container&&this.fit()}}n.TerminalView=m,m.__name__=\"TerminalView\";class c extends l.HTMLBox{constructor(e){super(e)}}n.Terminal=c,o=c,c.__name__=\"Terminal\",c.__module__=\"panel.models.terminal\",o.prototype.default_view=m,o.define((({Any:e,Int:t,Str:n})=>({_clears:[t,0],options:[e,{}],output:[n,\"\"],ncols:[t,0],nrows:[t,0]})))}\n//# sourceMappingURL=terminal.min.js.map","min_map":"{\"version\":3,\"file\":\"terminal.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"_b\",\"dom_1\",\"bokeh_events_1\",\"layout_1\",\"KeystrokeEvent\",\"ModelEvent\",\"constructor\",\"key\",\"super\",\"this\",\"event_values\",\"model\",\"origin\",\"__name__\",\"prototype\",\"event_name\",\"TerminalView\",\"HTMLBoxView\",\"connect_signals\",\"width\",\"height\",\"min_height\",\"max_height\",\"margin\",\"sizing_mode\",\"output\",\"_clears\",\"properties\",\"on_change\",\"write\",\"clear\",\"set_size\",\"el\",\"container\",\"render\",\"div\",\"class\",\"term\",\"getNewTerminal\",\"onData\",\"value\",\"handleOnData\",\"webLinksAddon\",\"getNewWebLinksAddon\",\"loadAddon\",\"open\",\"onRender\",\"_rendered\",\"fit\",\"shadow_el\",\"appendChild\",\"wn\",\"window\",\"Terminal\",\"options\",\"xtermjs\",\"WebLinksAddon\",\"trigger_event\",\"text\",\"length\",\"cleaned\",\"replace\",\"offsetWidth\",\"offsetHeight\",\"renderer\",\"_core\",\"_renderService\",\"cell_width\",\"dimensions\",\"actualCellWidth\",\"cell_height\",\"actualCellHeight\",\"cols\",\"Math\",\"max\",\"floor\",\"rows\",\"resize\",\"ncols\",\"nrows\",\"after_layout\",\"HTMLBox\",\"attrs\",\"__module__\",\"default_view\",\"define\",\"Any\",\"Int\",\"Str\"],\"sources\":[\"0\"],\"mappings\":\"AAAyB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACtE,IAAIC,EAAIC,EACRH,IACA,MAAMI,EAAQP,EAAQ,qBAChBQ,EAAiBR,EAAQ,8BACzBS,EAAWT,EAAQ,cACzB,MAAMU,UAAuBF,EAAeG,WACxC,WAAAC,CAAYC,GACRC,QACAC,KAAKF,IAAMA,CACf,CACA,gBAAIG,GACA,MAAO,CAAEC,MAAOF,KAAKG,OAAQL,IAAKE,KAAKF,IAC3C,EAEJX,EAAQQ,eAAiBA,EACzBL,EAAKK,EACLA,EAAeS,SAAW,iBAEtBd,EAAGe,UAAUC,WAAa,YAE9B,MAAMC,UAAqBb,EAASc,YAChC,eAAAC,GACIV,MAAMU,kBACN,MAAMC,MAAEA,EAAKC,OAAEA,EAAMC,WAAEA,EAAUC,WAAEA,EAAUC,OAAEA,EAAMC,YAAEA,EAAWC,OAAEA,EAAMC,QAAEA,GAAYjB,KAAKE,MAAMgB,WACnGlB,KAAKmB,UAAUH,EAAQhB,KAAKoB,OAC5BpB,KAAKmB,UAAUF,EAASjB,KAAKqB,OAC7BrB,KAAKmB,UAAU,CAACT,EAAOC,EAAQC,EAAYC,EAAYC,EAAQC,IAAc,MACzE,EAAIrB,EAAS4B,UAAUtB,KAAKuB,GAAIvB,KAAKE,QACrC,EAAIR,EAAS4B,UAAUtB,KAAKwB,UAAWxB,KAAKE,OAAO,EAAM,GAEjE,CACA,MAAAuB,GACI1B,MAAM0B,SACNzB,KAAKwB,WAAY,EAAIhC,EAA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AAMxD,EAAQgD,IACtCS,EAAOH,KAAKC,IAAI,EAAGD,KAAKE,MAAMvD,EAASkD,IACzC7D,KAAK4B,KAAKuC,OAASA,GAAQnE,KAAK4B,KAAKmC,OAASA,GAC9C/D,KAAK4B,KAAKwC,OAAOL,EAAMI,GAE3BnE,KAAKE,MAAMmE,MAAQN,EACnB/D,KAAKE,MAAMoE,MAAQH,EACnBnE,KAAKsC,WAAY,CACrB,CACA,YAAAiC,GACIxE,MAAMwE,eACgB,MAAlBvE,KAAKwB,WACLxB,KAAKuC,KAEb,EAEJpD,EAAQoB,aAAeA,EACvBA,EAAaH,SAAW,eAExB,MAAMwC,UAAiBlD,EAAS8E,QAC5B,WAAA3E,CAAY4E,GACR1E,MAAM0E,EACV,EAEJtF,EAAQyD,SAAWA,EACnBrD,EAAKqD,EACLA,EAASxC,SAAW,WACpBwC,EAAS8B,WAAa,wBAElBnF,EAAGc,UAAUsE,aAAepE,EAC5BhB,EAAGqF,QAAO,EAAGC,MAAKC,MAAKC,UAAU,CAC7B9D,QAAS,CAAC6D,EAAK,GACfjC,QAAS,CAACgC,EAAK,CAAC,GAChB7D,OAAQ,CAAC+D,EAAK,IACdV,MAAO,CAACS,EAAK,GACbR,MAAO,CAACQ,EAAK,MAGzB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/text_input.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/text_input.js","canonical":"models/text_input","resolution":"ESM","id":"8be416b160","hash":"8be416b16095d72ef95dc07dd877e0169aa4a746248fd3183302c649ffa8fb04","source":"\"use strict\";\nvar _a, _b;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TextInput = exports.TextInputView = exports.EnterEvent = void 0;\nconst text_input_1 = require(\"@bokehjs/models/widgets/text_input\");\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nclass EnterEvent extends bokeh_events_1.ModelEvent {\n    constructor(value_input) {\n        super();\n        this.value_input = value_input;\n    }\n    get event_values() {\n        return { model: this.origin, value_input: this.value_input };\n    }\n}\nexports.EnterEvent = EnterEvent;\n_a = EnterEvent;\nEnterEvent.__name__ = \"EnterEvent\";\n(() => {\n    _a.prototype.event_name = \"enter-pressed\";\n})();\nclass TextInputView extends text_input_1.TextInputView {\n    _keyup(event) {\n        super._keyup(event);\n        if (event.key == \"Enter\") {\n            const { value_input } = this.model;\n            this.model.trigger_event(new EnterEvent(value_input));\n        }\n    }\n}\nexports.TextInputView = TextInputView;\nTextInputView.__name__ = \"TextInputView\";\nclass TextInput extends text_input_1.TextInput {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.TextInput = TextInput;\n_b = TextInput;\nTextInput.__name__ = \"TextInput\";\nTextInput.__module__ = \"panel.models.widgets\";\n(() => {\n    _b.prototype.default_view = TextInputView;\n    _b.define(({}) => ({}));\n})();\n//# sourceMappingURL=text_input.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"EnterEvent"},{"type":"named","name":"TextInputView"},{"type":"named","name":"TextInput"}],"externals":[],"shims":[]},"code":{"source":"/* models/text_input.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a, _b;\n    __esModule();\n    const text_input_1 = require(\"@bokehjs/models/widgets/text_input\");\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    class EnterEvent extends bokeh_events_1.ModelEvent {\n        constructor(value_input) {\n            super();\n            this.value_input = value_input;\n        }\n        get event_values() {\n            return { model: this.origin, value_input: this.value_input };\n        }\n    }\n    exports.EnterEvent = EnterEvent;\n    _a = EnterEvent;\n    EnterEvent.__name__ = \"EnterEvent\";\n    (() => {\n        _a.prototype.event_name = \"enter-pressed\";\n    })();\n    class TextInputView extends text_input_1.TextInputView {\n        _keyup(event) {\n            super._keyup(event);\n            if (event.key == \"Enter\") {\n                const { value_input } = this.model;\n                this.model.trigger_event(new EnterEvent(value_input));\n            }\n        }\n    }\n    exports.TextInputView = TextInputView;\n    TextInputView.__name__ = \"TextInputView\";\n    class TextInput extends text_input_1.TextInput {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.TextInput = TextInput;\n    _b = TextInput;\n    TextInput.__name__ = \"TextInput\";\n    TextInput.__module__ = \"panel.models.widgets\";\n    (() => {\n        _b.prototype.default_view = TextInputView;\n        _b.define(({}) => ({}));\n    })();\n}\n","min_source":"function _(e,t,n,s,_){var u,o;s();const i=e(\"@bokehjs/models/widgets/text_input\"),p=e(\"@bokehjs/core/bokeh_events\");class r extends p.ModelEvent{constructor(e){super(),this.value_input=e}get event_values(){return{model:this.origin,value_input:this.value_input}}}n.EnterEvent=r,u=r,r.__name__=\"EnterEvent\",u.prototype.event_name=\"enter-pressed\";class l extends i.TextInputView{_keyup(e){if(super._keyup(e),\"Enter\"==e.key){const{value_input:e}=this.model;this.model.trigger_event(new r(e))}}}n.TextInputView=l,l.__name__=\"TextInputView\";class a extends i.TextInput{constructor(e){super(e)}}n.TextInput=a,o=a,a.__name__=\"TextInput\",a.__module__=\"panel.models.widgets\",o.prototype.default_view=l,o.define((({})=>({})))}\n//# sourceMappingURL=text_input.min.js.map","min_map":"{\"version\":3,\"file\":\"text_input.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"_b\",\"text_input_1\",\"bokeh_events_1\",\"EnterEvent\",\"ModelEvent\",\"constructor\",\"value_input\",\"super\",\"this\",\"event_values\",\"model\",\"origin\",\"__name__\",\"prototype\",\"event_name\",\"TextInputView\",\"_keyup\",\"event\",\"key\",\"trigger_event\",\"TextInput\",\"attrs\",\"__module__\",\"default_view\",\"define\"],\"sources\":[\"0\"],\"mappings\":\"AAA2B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACxE,IAAIC,EAAIC,EACRH,IACA,MAAMI,EAAeP,EAAQ,sCACvBQ,EAAiBR,EAAQ,8BAC/B,MAAMS,UAAmBD,EAAeE,WACpC,WAAAC,CAAYC,GACRC,QACAC,KAAKF,YAAcA,CACvB,CACA,gBAAIG,GACA,MAAO,CAAEC,MAAOF,KAAKG,OAAQL,YAAaE,KAAKF,YACnD,EAEJV,EAAQO,WAAaA,EACrBJ,EAAKI,EACLA,EAAWS,SAAW,aAElBb,EAAGc,UAAUC,WAAa,gBAE9B,MAAMC,UAAsBd,EAAac,cACrC,MAAAC,CAAOC,GAEH,GADAV,MAAMS,OAAOC,GACI,SAAbA,EAAMC,IAAgB,CACtB,MAAMZ,YAAEA,GAAgBE,KAAKE,MAC7BF,KAAKE,MAAMS,cAAc,IAAIhB,EAAWG,GAC5C,CACJ,EAEJV,EAAQmB,cAAgBA,EACxBA,EAAcH,SAAW,gBACzB,MAAMQ,UAAkBnB,EAAamB,UACjC,WAAAf,CAAYgB,GACRd,MAAMc,EACV,EAEJzB,EAAQwB,UAAYA,EACpBpB,EAAKoB,EACLA,EAAUR,SAAW,YACrBQ,EAAUE,WAAa,uBAEnBtB,EAAGa,UAAUU,aAAeR,EAC5Bf,EAAGwB,QAAO,OAAQ,CAAG,IAE7B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/text_to_speech.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/text_to_speech.js","canonical":"models/text_to_speech","resolution":"ESM","id":"a04eb51988","hash":"a04eb519884f65efca81d3a0a17250d3fd1761be657f4cfd041e8af62995c467","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TextToSpeech = exports.TextToSpeechView = void 0;\nconst layout_1 = require(\"./layout\");\nfunction toVoicesList(voices) {\n    const voicesList = [];\n    for (const voice of voices) {\n        const item = {\n            default: voice.default,\n            lang: voice.lang,\n            local_service: voice.localService,\n            name: voice.name,\n            voice_uri: voice.voiceURI,\n        };\n        voicesList.push(item);\n    }\n    return voicesList;\n}\nclass TextToSpeechView extends layout_1.HTMLBoxView {\n    initialize() {\n        super.initialize();\n        this.model.paused = speechSynthesis.paused;\n        this.model.pending = speechSynthesis.pending;\n        this.model.speaking = speechSynthesis.speaking;\n        // Hack: Keeps speeking for longer texts\n        // https://stackoverflow.com/questions/21947730/chrome-speech-synthesis-with-longer-texts\n        this._callback = window.setInterval(function () {\n            if (!speechSynthesis.paused && speechSynthesis.speaking) {\n                window.speechSynthesis.resume();\n            }\n        }, 10000);\n        const populateVoiceList = () => {\n            if (typeof speechSynthesis === \"undefined\") {\n                return;\n            }\n            // According to https://talkrapp.com/speechSynthesis.html not all voices are available\n            // The article includes code for ios to handle this. Might be useful.\n            this.voices = speechSynthesis.getVoices();\n            if (!this.voices) {\n                return;\n            }\n            this.model.voices = toVoicesList(this.voices);\n        };\n        populateVoiceList();\n        if (typeof speechSynthesis !== \"undefined\" && speechSynthesis.onvoiceschanged !== undefined) {\n            speechSynthesis.onvoiceschanged = populateVoiceList;\n        }\n    }\n    remove() {\n        if (this._callback != null) {\n            clearInterval(this._callback);\n        }\n        speechSynthesis.cancel();\n        super.remove();\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { speak, pause, resume, cancel } = this.model.properties;\n        this.on_change(speak, () => {\n            this.speak();\n        });\n        this.on_change(pause, () => {\n            this.model.pause = false;\n            speechSynthesis.pause();\n        });\n        this.on_change(resume, () => {\n            this.model.resume = false;\n            speechSynthesis.resume();\n        });\n        this.on_change(cancel, () => {\n            this.model.cancel = false;\n            speechSynthesis.cancel();\n        });\n    }\n    speak() {\n        const utterance = new SpeechSynthesisUtterance(this.model.speak.text);\n        utterance.pitch = this.model.speak.pitch;\n        utterance.volume = this.model.speak.volume;\n        utterance.rate = this.model.speak.rate;\n        if (this.model.voices) {\n            for (const voice of this.voices) {\n                if (voice.name === this.model.speak.voice) {\n                    utterance.voice = voice;\n                }\n            }\n        }\n        utterance.onpause = () => this.model.paused = true;\n        utterance.onstart = () => {\n            this.model.speaking = true;\n            this.model.paused = false;\n            this.model.pending = speechSynthesis.pending;\n        };\n        utterance.onresume = () => this.model.paused = false;\n        utterance.onend = () => {\n            this.model.speaking = false;\n            this.model.paused = false;\n            this.model.pending = speechSynthesis.pending;\n        };\n        speechSynthesis.speak(utterance);\n        this.model.paused = speechSynthesis.paused;\n        this.model.pending = speechSynthesis.pending;\n    }\n    render() {\n        super.render();\n        // Hack: This will make sure voices are assigned when\n        // Bokeh/ Panel is served first time with --show option.\n        if (!this.model.voices) {\n            this.model.voices = toVoicesList(this.voices);\n        }\n        if (this.model.speak != null && this.model.speak.text) {\n            this.speak();\n        }\n    }\n}\nexports.TextToSpeechView = TextToSpeechView;\nTextToSpeechView.__name__ = \"TextToSpeechView\";\nclass TextToSpeech extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.TextToSpeech = TextToSpeech;\n_a = TextToSpeech;\nTextToSpeech.__name__ = \"TextToSpeech\";\nTextToSpeech.__module__ = \"panel.models.text_to_speech\";\n(() => {\n    _a.prototype.default_view = TextToSpeechView;\n    _a.define(({ Any, List, Bool }) => ({\n        paused: [Bool, false],\n        pending: [Bool, false],\n        speaking: [Bool, false],\n        voices: [List(Any), []],\n        cancel: [Bool, false],\n        pause: [Bool, false],\n        resume: [Bool, false],\n        speak: [Any, {}],\n    }));\n})();\n//# sourceMappingURL=text_to_speech.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"]],"dependency_map":[],"exported":[{"type":"named","name":"TextToSpeechView"},{"type":"named","name":"TextToSpeech"}],"externals":[],"shims":[]},"code":{"source":"/* models/text_to_speech.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    function toVoicesList(voices) {\n        const voicesList = [];\n        for (const voice of voices) {\n            const item = {\n                default: voice.default,\n                lang: voice.lang,\n                local_service: voice.localService,\n                name: voice.name,\n                voice_uri: voice.voiceURI,\n            };\n            voicesList.push(item);\n        }\n        return voicesList;\n    }\n    class TextToSpeechView extends layout_1.HTMLBoxView {\n        initialize() {\n            super.initialize();\n            this.model.paused = speechSynthesis.paused;\n            this.model.pending = speechSynthesis.pending;\n            this.model.speaking = speechSynthesis.speaking;\n            // Hack: Keeps speeking for longer texts\n            // https://stackoverflow.com/questions/21947730/chrome-speech-synthesis-with-longer-texts\n            this._callback = window.setInterval(function () {\n                if (!speechSynthesis.paused && speechSynthesis.speaking) {\n                    window.speechSynthesis.resume();\n                }\n            }, 10000);\n            const populateVoiceList = () => {\n                if (typeof speechSynthesis === \"undefined\") {\n                    return;\n                }\n                // According to https://talkrapp.com/speechSynthesis.html not all voices are available\n                // The article includes code for ios to handle this. Might be useful.\n                this.voices = speechSynthesis.getVoices();\n                if (!this.voices) {\n                    return;\n                }\n                this.model.voices = toVoicesList(this.voices);\n            };\n            populateVoiceList();\n            if (typeof speechSynthesis !== \"undefined\" && speechSynthesis.onvoiceschanged !== undefined) {\n                speechSynthesis.onvoiceschanged = populateVoiceList;\n            }\n        }\n        remove() {\n            if (this._callback != null) {\n                clearInterval(this._callback);\n            }\n            speechSynthesis.cancel();\n            super.remove();\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { speak, pause, resume, cancel } = this.model.properties;\n            this.on_change(speak, () => {\n                this.speak();\n            });\n            this.on_change(pause, () => {\n                this.model.pause = false;\n                speechSynthesis.pause();\n            });\n            this.on_change(resume, () => {\n                this.model.resume = false;\n                speechSynthesis.resume();\n            });\n            this.on_change(cancel, () => {\n                this.model.cancel = false;\n                speechSynthesis.cancel();\n            });\n        }\n        speak() {\n            const utterance = new SpeechSynthesisUtterance(this.model.speak.text);\n            utterance.pitch = this.model.speak.pitch;\n            utterance.volume = this.model.speak.volume;\n            utterance.rate = this.model.speak.rate;\n            if (this.model.voices) {\n                for (const voice of this.voices) {\n                    if (voice.name === this.model.speak.voice) {\n                        utterance.voice = voice;\n                    }\n                }\n            }\n            utterance.onpause = () => this.model.paused = true;\n            utterance.onstart = () => {\n                this.model.speaking = true;\n                this.model.paused = false;\n                this.model.pending = speechSynthesis.pending;\n            };\n            utterance.onresume = () => this.model.paused = false;\n            utterance.onend = () => {\n                this.model.speaking = false;\n                this.model.paused = false;\n                this.model.pending = speechSynthesis.pending;\n            };\n            speechSynthesis.speak(utterance);\n            this.model.paused = speechSynthesis.paused;\n            this.model.pending = speechSynthesis.pending;\n        }\n        render() {\n            super.render();\n            // Hack: This will make sure voices are assigned when\n            // Bokeh/ Panel is served first time with --show option.\n            if (!this.model.voices) {\n                this.model.voices = toVoicesList(this.voices);\n            }\n            if (this.model.speak != null && this.model.speak.text) {\n                this.speak();\n            }\n        }\n    }\n    exports.TextToSpeechView = TextToSpeechView;\n    TextToSpeechView.__name__ = \"TextToSpeechView\";\n    class TextToSpeech extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.TextToSpeech = TextToSpeech;\n    _a = TextToSpeech;\n    TextToSpeech.__name__ = \"TextToSpeech\";\n    TextToSpeech.__module__ = \"panel.models.text_to_speech\";\n    (() => {\n        _a.prototype.default_view = TextToSpeechView;\n        _a.define(({ Any, List, Bool }) => ({\n            paused: [Bool, false],\n            pending: [Bool, false],\n            speaking: [Bool, false],\n            voices: [List(Any), []],\n            cancel: [Bool, false],\n            pause: [Bool, false],\n            resume: [Bool, false],\n            speak: [Any, {}],\n        }));\n    })();\n}\n","min_source":"function _(e,s,i,n,t){var o;n();const h=e(\"dab42e6dad\");function c(e){const s=[];for(const i of e){const e={default:i.default,lang:i.lang,local_service:i.localService,name:i.name,voice_uri:i.voiceURI};s.push(e)}return s}class p extends h.HTMLBoxView{initialize(){super.initialize(),this.model.paused=speechSynthesis.paused,this.model.pending=speechSynthesis.pending,this.model.speaking=speechSynthesis.speaking,this._callback=window.setInterval((function(){!speechSynthesis.paused&&speechSynthesis.speaking&&window.speechSynthesis.resume()}),1e4);const e=()=>{\"undefined\"!=typeof speechSynthesis&&(this.voices=speechSynthesis.getVoices(),this.voices&&(this.model.voices=c(this.voices)))};e(),\"undefined\"!=typeof speechSynthesis&&void 0!==speechSynthesis.onvoiceschanged&&(speechSynthesis.onvoiceschanged=e)}remove(){null!=this._callback&&clearInterval(this._callback),speechSynthesis.cancel(),super.remove()}connect_signals(){super.connect_signals();const{speak:e,pause:s,resume:i,cancel:n}=this.model.properties;this.on_change(e,(()=>{this.speak()})),this.on_change(s,(()=>{this.model.pause=!1,speechSynthesis.pause()})),this.on_change(i,(()=>{this.model.resume=!1,speechSynthesis.resume()})),this.on_change(n,(()=>{this.model.cancel=!1,speechSynthesis.cancel()}))}speak(){const e=new SpeechSynthesisUtterance(this.model.speak.text);if(e.pitch=this.model.speak.pitch,e.volume=this.model.speak.volume,e.rate=this.model.speak.rate,this.model.voices)for(const s of this.voices)s.name===this.model.speak.voice&&(e.voice=s);e.onpause=()=>this.model.paused=!0,e.onstart=()=>{this.model.speaking=!0,this.model.paused=!1,this.model.pending=speechSynthesis.pending},e.onresume=()=>this.model.paused=!1,e.onend=()=>{this.model.speaking=!1,this.model.paused=!1,this.model.pending=speechSynthesis.pending},speechSynthesis.speak(e),this.model.paused=speechSynthesis.paused,this.model.pending=speechSynthesis.pending}render(){super.render(),this.model.voices||(this.model.voices=c(this.voices)),null!=this.model.speak&&this.model.speak.text&&this.speak()}}i.TextToSpeechView=p,p.__name__=\"TextToSpeechView\";class a extends h.HTMLBox{constructor(e){super(e)}}i.TextToSpeech=a,o=a,a.__name__=\"TextToSpeech\",a.__module__=\"panel.models.text_to_speech\",o.prototype.default_view=p,o.define((({Any:e,List:s,Bool:i})=>({paused:[i,!1],pending:[i,!1],speaking:[i,!1],voices:[s(e),[]],cancel:[i,!1],pause:[i,!1],resume:[i,!1],speak:[e,{}]})))}\n//# sourceMappingURL=text_to_speech.min.js.map","min_map":"{\"version\":3,\"file\":\"text_to_speech.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"layout_1\",\"toVoicesList\",\"voices\",\"voicesList\",\"voice\",\"item\",\"default\",\"lang\",\"local_service\",\"localService\",\"name\",\"voice_uri\",\"voiceURI\",\"push\",\"TextToSpeechView\",\"HTMLBoxView\",\"initialize\",\"super\",\"this\",\"model\",\"paused\",\"speechSynthesis\",\"pending\",\"speaking\",\"_callback\",\"window\",\"setInterval\",\"resume\",\"populateVoiceList\",\"getVoices\",\"undefined\",\"onvoiceschanged\",\"remove\",\"clearInterval\",\"cancel\",\"connect_signals\",\"speak\",\"pause\",\"properties\",\"on_change\",\"utterance\",\"SpeechSynthesisUtterance\",\"text\",\"pitch\",\"volume\",\"rate\",\"onpause\",\"onstart\",\"onresume\",\"onend\",\"render\",\"__name__\",\"TextToSpeech\",\"HTMLBox\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Any\",\"List\",\"Bool\"],\"sources\":[\"0\"],\"mappings\":\"AAA+B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC5E,IAAIC,EACJF,IACA,MAAMG,EAAWN,EAAQ,cACzB,SAASO,EAAaC,GAClB,MAAMC,EAAa,GACnB,IAAK,MAAMC,KAASF,EAAQ,CACxB,MAAMG,EAAO,CACTC,QAASF,EAAME,QACfC,KAAMH,EAAMG,KACZC,cAAeJ,EAAMK,aACrBC,KAAMN,EAAMM,KACZC,UAAWP,EAAMQ,UAErBT,EAAWU,KAAKR,EACpB,CACA,OAAOF,CACX,CACA,MAAMW,UAAyBd,EAASe,YACpC,UAAAC,GACIC,MAAMD,aACNE,KAAKC,MAAMC,OAASC,gBAAgBD,OACpCF,KAAKC,MAAMG,QAAUD,gBAAgBC,QACrCJ,KAAKC,MAAMI,SAAWF,gBAAgBE,SAGtCL,KAAKM,UAAYC,OAAOC,aAAY,YAC3BL,gBAAgBD,QAAUC,gBAAgBE,UAC3CE,OAAOJ,gBAAgBM,QAE/B,GAAG,KACH,MAAMC,EAAoB,KACS,oBAApBP,kBAKXH,KAAKhB,OAASmB,gBAAgBQ,YACzBX,KAAKhB,SAGVgB,KAAKC,MAAMjB,OAASD,EAAaiB,KAAKhB,SAAO,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,UAAW,EACtBL,KAAKC,MAAMC,QAAS,EACpBF,KAAKC,MAAMG,QAAUD,gBAAgBC,OAAO,EAEhDD,gBAAgBe,MAAMI,GACtBtB,KAAKC,MAAMC,OAASC,gBAAgBD,OACpCF,KAAKC,MAAMG,QAAUD,gBAAgBC,OACzC,CACA,MAAA4B,GACIjC,MAAMiC,SAGDhC,KAAKC,MAAMjB,SACZgB,KAAKC,MAAMjB,OAASD,EAAaiB,KAAKhB,SAElB,MAApBgB,KAAKC,MAAMiB,OAAiBlB,KAAKC,MAAMiB,MAAMM,MAC7CxB,KAAKkB,OAEb,EAEJxC,EAAQkB,iBAAmBA,EAC3BA,EAAiBqC,SAAW,mBAC5B,MAAMC,UAAqBpD,EAASqD,QAChC,WAAAC,CAAYC,GACRtC,MAAMsC,EACV,EAEJ3D,EAAQwD,aAAeA,EACvBrD,EAAKqD,EACLA,EAAaD,SAAW,eACxBC,EAAaI,WAAa,8BAEtBzD,EAAG0D,UAAUC,aAAe5C,EAC5Bf,EAAG4D,QAAO,EAAGC,MAAKC,OAAMC,WAAW,CAC/B1C,OAAQ,CAAC0C,GAAM,GACfxC,QAAS,CAACwC,GAAM,GAChBvC,SAAU,CAACuC,GAAM,GACjB5D,OAAQ,CAAC2D,EAAKD,GAAM,IACpB1B,OAAQ,CAAC4B,GAAM,GACfzB,MAAO,CAACyB,GAAM,GACdnC,OAAQ,CAACmC,GAAM,GACf1B,MAAO,CAACwB,EAAK,CAAC,MAG1B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/time_picker.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/time_picker.js","canonical":"models/time_picker","resolution":"ESM","id":"1afcab4e45","hash":"1afcab4e45b9974193415c68525cba04ce2a6d7ee12550635455265482605ff5","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TimePicker = exports.TimePickerView = void 0;\nconst time_picker_1 = require(\"@bokehjs/models/widgets/time_picker\");\nclass TimePickerView extends time_picker_1.TimePickerView {\n    _offset_time(value) {\n        const baseDate = new Date(value);\n        const timeZoneOffset = baseDate.getTimezoneOffset() * 60 * 1000;\n        return baseDate.getTime() + timeZoneOffset;\n    }\n    _setDate(date) {\n        date = this._offset_time(date);\n        this.picker.setDate(date);\n    }\n    get flatpickr_options() {\n        // on init\n        const options = super.flatpickr_options;\n        if (options.defaultDate != null) {\n            options.defaultDate = this._offset_time(options.defaultDate);\n        }\n        return options;\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { value } = this.model.properties;\n        this.connect(value.change, () => {\n            const { value } = this.model;\n            if (value != null && typeof value === \"number\") {\n                // we need to handle it when programmatically changed thru Python, e.g.\n                // time_picker.value = \"4:08\" or time_picker.value = \"datetime.time(4, 8)\"\n                // else, when changed in the UI, e.g. by typing in the input field\n                // no special handling is needed\n                this._setDate(value);\n            }\n        });\n    }\n}\nexports.TimePickerView = TimePickerView;\nTimePickerView.__name__ = \"TimePickerView\";\nclass TimePicker extends time_picker_1.TimePicker {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.TimePicker = TimePicker;\n_a = TimePicker;\nTimePicker.__name__ = \"TimePicker\";\nTimePicker.__module__ = \"panel.models.time_picker\";\n(() => {\n    _a.prototype.default_view = TimePickerView;\n    _a.define(({}) => ({}));\n})();\n//# sourceMappingURL=time_picker.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"TimePickerView"},{"type":"named","name":"TimePicker"}],"externals":[],"shims":[]},"code":{"source":"/* models/time_picker.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const time_picker_1 = require(\"@bokehjs/models/widgets/time_picker\");\n    class TimePickerView extends time_picker_1.TimePickerView {\n        _offset_time(value) {\n            const baseDate = new Date(value);\n            const timeZoneOffset = baseDate.getTimezoneOffset() * 60 * 1000;\n            return baseDate.getTime() + timeZoneOffset;\n        }\n        _setDate(date) {\n            date = this._offset_time(date);\n            this.picker.setDate(date);\n        }\n        get flatpickr_options() {\n            // on init\n            const options = super.flatpickr_options;\n            if (options.defaultDate != null) {\n                options.defaultDate = this._offset_time(options.defaultDate);\n            }\n            return options;\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { value } = this.model.properties;\n            this.connect(value.change, () => {\n                const { value } = this.model;\n                if (value != null && typeof value === \"number\") {\n                    // we need to handle it when programmatically changed thru Python, e.g.\n                    // time_picker.value = \"4:08\" or time_picker.value = \"datetime.time(4, 8)\"\n                    // else, when changed in the UI, e.g. by typing in the input field\n                    // no special handling is needed\n                    this._setDate(value);\n                }\n            });\n        }\n    }\n    exports.TimePickerView = TimePickerView;\n    TimePickerView.__name__ = \"TimePickerView\";\n    class TimePicker extends time_picker_1.TimePicker {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.TimePicker = TimePicker;\n    _a = TimePicker;\n    TimePicker.__name__ = \"TimePicker\";\n    TimePicker.__module__ = \"panel.models.time_picker\";\n    (() => {\n        _a.prototype.default_view = TimePickerView;\n        _a.define(({}) => ({}));\n    })();\n}\n","min_source":"function _(e,t,i,s,n){var o;s();const c=e(\"@bokehjs/models/widgets/time_picker\");class _ extends c.TimePickerView{_offset_time(e){const t=new Date(e),i=60*t.getTimezoneOffset()*1e3;return t.getTime()+i}_setDate(e){e=this._offset_time(e),this.picker.setDate(e)}get flatpickr_options(){const e=super.flatpickr_options;return null!=e.defaultDate&&(e.defaultDate=this._offset_time(e.defaultDate)),e}connect_signals(){super.connect_signals();const{value:e}=this.model.properties;this.connect(e.change,(()=>{const{value:e}=this.model;null!=e&&\"number\"==typeof e&&this._setDate(e)}))}}i.TimePickerView=_,_.__name__=\"TimePickerView\";class r extends c.TimePicker{constructor(e){super(e)}}i.TimePicker=r,o=r,r.__name__=\"TimePicker\",r.__module__=\"panel.models.time_picker\",o.prototype.default_view=_,o.define((({})=>({})))}\n//# sourceMappingURL=time_picker.min.js.map","min_map":"{\"version\":3,\"file\":\"time_picker.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"time_picker_1\",\"TimePickerView\",\"_offset_time\",\"value\",\"baseDate\",\"Date\",\"timeZoneOffset\",\"getTimezoneOffset\",\"getTime\",\"_setDate\",\"date\",\"this\",\"picker\",\"setDate\",\"flatpickr_options\",\"options\",\"super\",\"defaultDate\",\"connect_signals\",\"model\",\"properties\",\"connect\",\"change\",\"__name__\",\"TimePicker\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\"],\"sources\":[\"0\"],\"mappings\":\"AAA4B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzE,IAAIC,EACJF,IACA,MAAMG,EAAgBN,EAAQ,uCAC9B,MAAMO,UAAuBD,EAAcC,eACvC,YAAAC,CAAaC,GACT,MAAMC,EAAW,IAAIC,KAAKF,GACpBG,EAAgD,GAA/BF,EAASG,oBAA2B,IAC3D,OAAOH,EAASI,UAAYF,CAChC,CACA,QAAAG,CAASC,GACLA,EAAOC,KAAKT,aAAaQ,GACzBC,KAAKC,OAAOC,QAAQH,EACxB,CACA,qBAAII,GAEA,MAAMC,EAAUC,MAAMF,kBAItB,OAH2B,MAAvBC,EAAQE,cACRF,EAAQE,YAAcN,KAAKT,aAAaa,EAAQE,cAE7CF,CACX,CACA,eAAAG,GACIF,MAAME,kBACN,MAAMf,MAAEA,GAAUQ,KAAKQ,MAAMC,WAC7BT,KAAKU,QAAQlB,EAAMmB,QAAQ,KACvB,MAAMnB,MAAEA,GAAUQ,KAAKQ,MACV,MAAThB,GAAkC,iBAAVA,GAKxBQ,KAAKF,SAASN,EAClB,GAER,EAEJP,EAAQK,eAAiBA,EACzBA,EAAesB,SAAW,iBAC1B,MAAMC,UAAmBxB,EAAcwB,WACnC,WAAAC,CAAYC,GACRV,MAAMU,EACV,EAEJ9B,EAAQ4B,WAAaA,EACrBzB,EAAKyB,EACLA,EAAWD,SAAW,aACtBC,EAAWG,WAAa,2BAEpB5B,EAAG6B,UAAUC,aAAe5B,EAC5BF,EAAG+B,QAAO,OAAQ,CAAG,IAE7B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/toggle_icon.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/toggle_icon.js","canonical":"models/toggle_icon","resolution":"ESM","id":"ad985f285e","hash":"ad985f285e82e02f135d93d5e6fd16f0c96db2aec24354219445d92de0c964fa","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ToggleIcon = exports.ToggleIconView = void 0;\nconst icon_1 = require(\"./icon\");\nclass ToggleIconView extends icon_1.ClickableIconView {\n    *controls() { }\n    click() {\n        if (this.model.disabled) {\n            return;\n        }\n        super.click();\n        this.model.value = !this.model.value;\n    }\n}\nexports.ToggleIconView = ToggleIconView;\nToggleIconView.__name__ = \"ToggleIconView\";\nclass ToggleIcon extends icon_1.ClickableIcon {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.ToggleIcon = ToggleIcon;\n_a = ToggleIcon;\nToggleIcon.__name__ = \"ToggleIcon\";\nToggleIcon.__module__ = \"panel.models.icon\";\n(() => {\n    _a.prototype.default_view = ToggleIconView;\n    _a.define(({}) => ({}));\n})();\n//# sourceMappingURL=toggle_icon.js.map\n","type":"js","dependency_paths":[["./icon","/home/runner/work/panel/panel/panel/dist/lib/models/icon.js"]],"dependency_map":[],"exported":[{"type":"named","name":"ToggleIconView"},{"type":"named","name":"ToggleIcon"}],"externals":[],"shims":[]},"code":{"source":"/* models/toggle_icon.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const icon_1 = require(\"6c7fbea0ef\") /* ./icon */;\n    class ToggleIconView extends icon_1.ClickableIconView {\n        *controls() { }\n        click() {\n            if (this.model.disabled) {\n                return;\n            }\n            super.click();\n            this.model.value = !this.model.value;\n        }\n    }\n    exports.ToggleIconView = ToggleIconView;\n    ToggleIconView.__name__ = \"ToggleIconView\";\n    class ToggleIcon extends icon_1.ClickableIcon {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.ToggleIcon = ToggleIcon;\n    _a = ToggleIcon;\n    ToggleIcon.__name__ = \"ToggleIcon\";\n    ToggleIcon.__module__ = \"panel.models.icon\";\n    (() => {\n        _a.prototype.default_view = ToggleIconView;\n        _a.define(({}) => ({}));\n    })();\n}\n","min_source":"function _(e,o,l,c,n){var s;c();const i=e(\"6c7fbea0ef\");class _ extends i.ClickableIconView{*controls(){}click(){this.model.disabled||(super.click(),this.model.value=!this.model.value)}}l.ToggleIconView=_,_.__name__=\"ToggleIconView\";class a extends i.ClickableIcon{constructor(e){super(e)}}l.ToggleIcon=a,s=a,a.__name__=\"ToggleIcon\",a.__module__=\"panel.models.icon\",s.prototype.default_view=_,s.define((({})=>({})))}\n//# sourceMappingURL=toggle_icon.min.js.map","min_map":"{\"version\":3,\"file\":\"toggle_icon.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"icon_1\",\"ToggleIconView\",\"ClickableIconView\",\"controls\",\"click\",\"this\",\"model\",\"disabled\",\"super\",\"value\",\"__name__\",\"ToggleIcon\",\"ClickableIcon\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\"],\"sources\":[\"0\"],\"mappings\":\"AAA4B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzE,IAAIC,EACJF,IACA,MAAMG,EAASN,EAAQ,cACvB,MAAMO,UAAuBD,EAAOE,kBAChC,SAACC,GAAa,CACd,KAAAC,GACQC,KAAKC,MAAMC,WAGfC,MAAMJ,QACNC,KAAKC,MAAMG,OAASJ,KAAKC,MAAMG,MACnC,EAEJb,EAAQK,eAAiBA,EACzBA,EAAeS,SAAW,iBAC1B,MAAMC,UAAmBX,EAAOY,cAC5B,WAAAC,CAAYC,GACRN,MAAMM,EACV,EAEJlB,EAAQe,WAAaA,EACrBZ,EAAKY,EACLA,EAAWD,SAAW,aACtBC,EAAWI,WAAa,oBAEpBhB,EAAGiB,UAAUC,aAAehB,EAC5BF,EAAGmB,QAAO,OAAQ,CAAG,IAE7B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/tooltip_icon.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/tooltip_icon.js","canonical":"models/tooltip_icon","resolution":"ESM","id":"ae3a172647","hash":"ae3a1726472196c7f97abf84c140a359ce6a54d2a46d7a7e63ee04a97c6d5fd2","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TooltipIcon = exports.TooltipIconView = void 0;\nconst tslib_1 = require(\"tslib\");\nconst tooltip_1 = require(\"@bokehjs/models/ui/tooltip\");\nconst layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst inputs_css_1 = tslib_1.__importStar(require(\"@bokehjs/styles/widgets/inputs.css\")), inputs = inputs_css_1;\nconst icons_css_1 = tslib_1.__importDefault(require(\"@bokehjs/styles/icons.css\"));\nclass TooltipIconView extends layout_dom_1.LayoutDOMView {\n    get child_models() {\n        if (this.model.description == null) {\n            return [];\n        }\n        return [this.model.description];\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { description } = this.model.properties;\n        this.on_change(description, () => this.update_children());\n    }\n    stylesheets() {\n        return [...super.stylesheets(), inputs_css_1.default, icons_css_1.default];\n    }\n    render() {\n        super.render();\n        const icon_el = (0, dom_1.div)({ class: inputs.icon });\n        this.desc_el = (0, dom_1.div)({ class: inputs.description }, icon_el);\n        this.model.description.target = this.desc_el;\n        let persistent = false;\n        const toggle = (visible) => {\n            this.model.description.setv({\n                visible,\n                closable: persistent,\n            });\n            icon_el.classList.toggle(inputs.opaque, visible && persistent);\n        };\n        this.on_change(this.model.description.properties.visible, () => {\n            const { visible } = this.model.description;\n            if (!visible) {\n                persistent = false;\n            }\n            toggle(visible);\n        });\n        this.desc_el.addEventListener(\"mouseenter\", () => {\n            toggle(true);\n        });\n        this.desc_el.addEventListener(\"mouseleave\", () => {\n            if (!persistent) {\n                toggle(false);\n            }\n        });\n        document.addEventListener(\"mousedown\", (event) => {\n            const path = event.composedPath();\n            const tooltip_view = this._child_views.get(this.model.description);\n            if (tooltip_view !== undefined && path.includes(tooltip_view.el)) {\n                return;\n            }\n            else if (path.includes(this.desc_el)) {\n                persistent = !persistent;\n                toggle(persistent);\n            }\n            else {\n                persistent = false;\n                toggle(false);\n            }\n        });\n        window.addEventListener(\"blur\", () => {\n            persistent = false;\n            toggle(false);\n        });\n        // Label to get highlight when icon is hovered\n        this.shadow_el.appendChild((0, dom_1.label)(this.desc_el));\n    }\n}\nexports.TooltipIconView = TooltipIconView;\nTooltipIconView.__name__ = \"TooltipIconView\";\nclass TooltipIcon extends layout_dom_1.LayoutDOM {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.TooltipIcon = TooltipIcon;\n_a = TooltipIcon;\nTooltipIcon.__name__ = \"TooltipIcon\";\nTooltipIcon.__module__ = \"panel.models.widgets\";\n(() => {\n    _a.prototype.default_view = TooltipIconView;\n    _a.define(({ Ref }) => ({\n        description: [Ref(tooltip_1.Tooltip), new tooltip_1.Tooltip()],\n    }));\n})();\n//# sourceMappingURL=tooltip_icon.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"TooltipIconView"},{"type":"named","name":"TooltipIcon"}],"externals":[],"shims":[]},"code":{"source":"/* models/tooltip_icon.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const tooltip_1 = require(\"@bokehjs/models/ui/tooltip\");\n    const layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const inputs_css_1 = tslib_1.__importStar(require(\"@bokehjs/styles/widgets/inputs.css\")), inputs = inputs_css_1;\n    const icons_css_1 = tslib_1.__importDefault(require(\"@bokehjs/styles/icons.css\"));\n    class TooltipIconView extends layout_dom_1.LayoutDOMView {\n        get child_models() {\n            if (this.model.description == null) {\n                return [];\n            }\n            return [this.model.description];\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { description } = this.model.properties;\n            this.on_change(description, () => this.update_children());\n        }\n        stylesheets() {\n            return [...super.stylesheets(), inputs_css_1.default, icons_css_1.default];\n        }\n        render() {\n            super.render();\n            const icon_el = (0, dom_1.div)({ class: inputs.icon });\n            this.desc_el = (0, dom_1.div)({ class: inputs.description }, icon_el);\n            this.model.description.target = this.desc_el;\n            let persistent = false;\n            const toggle = (visible) => {\n                this.model.description.setv({\n                    visible,\n                    closable: persistent,\n                });\n                icon_el.classList.toggle(inputs.opaque, visible && persistent);\n            };\n            this.on_change(this.model.description.properties.visible, () => {\n                const { visible } = this.model.description;\n                if (!visible) {\n                    persistent = false;\n                }\n                toggle(visible);\n            });\n            this.desc_el.addEventListener(\"mouseenter\", () => {\n                toggle(true);\n            });\n            this.desc_el.addEventListener(\"mouseleave\", () => {\n                if (!persistent) {\n                    toggle(false);\n                }\n            });\n            document.addEventListener(\"mousedown\", (event) => {\n                const path = event.composedPath();\n                const tooltip_view = this._child_views.get(this.model.description);\n                if (tooltip_view !== undefined && path.includes(tooltip_view.el)) {\n                    return;\n                }\n                else if (path.includes(this.desc_el)) {\n                    persistent = !persistent;\n                    toggle(persistent);\n                }\n                else {\n                    persistent = false;\n                    toggle(false);\n                }\n            });\n            window.addEventListener(\"blur\", () => {\n                persistent = false;\n                toggle(false);\n            });\n            // Label to get highlight when icon is hovered\n            this.shadow_el.appendChild((0, dom_1.label)(this.desc_el));\n        }\n    }\n    exports.TooltipIconView = TooltipIconView;\n    TooltipIconView.__name__ = \"TooltipIconView\";\n    class TooltipIcon extends layout_dom_1.LayoutDOM {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.TooltipIcon = TooltipIcon;\n    _a = TooltipIcon;\n    TooltipIcon.__name__ = \"TooltipIcon\";\n    TooltipIcon.__module__ = \"panel.models.widgets\";\n    (() => {\n        _a.prototype.default_view = TooltipIconView;\n        _a.define(({ Ref }) => ({\n            description: [Ref(tooltip_1.Tooltip), new tooltip_1.Tooltip()],\n        }));\n    })();\n}\n","min_source":"function _(e,s,t,i,o){var l;i();const d=e(\"tslib\"),n=e(\"@bokehjs/models/ui/tooltip\"),c=e(\"@bokehjs/models/layouts/layout_dom\"),r=e(\"@bokehjs/core/dom\"),p=d.__importStar(e(\"@bokehjs/styles/widgets/inputs.css\")),a=p,h=d.__importDefault(e(\"@bokehjs/styles/icons.css\"));class _ extends c.LayoutDOMView{get child_models(){return null==this.model.description?[]:[this.model.description]}connect_signals(){super.connect_signals();const{description:e}=this.model.properties;this.on_change(e,(()=>this.update_children()))}stylesheets(){return[...super.stylesheets(),p.default,h.default]}render(){super.render();const e=(0,r.div)({class:a.icon});this.desc_el=(0,r.div)({class:a.description},e),this.model.description.target=this.desc_el;let s=!1;const t=t=>{this.model.description.setv({visible:t,closable:s}),e.classList.toggle(a.opaque,t&&s)};this.on_change(this.model.description.properties.visible,(()=>{const{visible:e}=this.model.description;e||(s=!1),t(e)})),this.desc_el.addEventListener(\"mouseenter\",(()=>{t(!0)})),this.desc_el.addEventListener(\"mouseleave\",(()=>{s||t(!1)})),document.addEventListener(\"mousedown\",(e=>{const i=e.composedPath(),o=this._child_views.get(this.model.description);void 0!==o&&i.includes(o.el)||(i.includes(this.desc_el)?(s=!s,t(s)):(s=!1,t(!1)))})),window.addEventListener(\"blur\",(()=>{s=!1,t(!1)})),this.shadow_el.appendChild((0,r.label)(this.desc_el))}}t.TooltipIconView=_,_.__name__=\"TooltipIconView\";class u extends c.LayoutDOM{constructor(e){super(e)}}t.TooltipIcon=u,l=u,u.__name__=\"TooltipIcon\",u.__module__=\"panel.models.widgets\",l.prototype.default_view=_,l.define((({Ref:e})=>({description:[e(n.Tooltip),new n.Tooltip]})))}\n//# sourceMappingURL=tooltip_icon.min.js.map","min_map":"{\"version\":3,\"file\":\"tooltip_icon.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"tslib_1\",\"tooltip_1\",\"layout_dom_1\",\"dom_1\",\"inputs_css_1\",\"__importStar\",\"inputs\",\"icons_css_1\",\"__importDefault\",\"TooltipIconView\",\"LayoutDOMView\",\"child_models\",\"this\",\"model\",\"description\",\"connect_signals\",\"super\",\"properties\",\"on_change\",\"update_children\",\"stylesheets\",\"default\",\"render\",\"icon_el\",\"div\",\"class\",\"icon\",\"desc_el\",\"target\",\"persistent\",\"toggle\",\"visible\",\"setv\",\"closable\",\"classList\",\"opaque\",\"addEventListener\",\"document\",\"event\",\"path\",\"composedPath\",\"tooltip_view\",\"_child_views\",\"get\",\"undefined\",\"includes\",\"el\",\"window\",\"shadow_el\",\"appendChild\",\"label\",\"__name__\",\"TooltipIcon\",\"LayoutDOM\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Ref\",\"Tooltip\"],\"sources\":[\"0\"],\"mappings\":\"AAA6B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC1E,IAAIC,EACJF,IACA,MAAMG,EAAUN,EAAQ,SAClBO,EAAYP,EAAQ,8BACpBQ,EAAeR,EAAQ,sCACvBS,EAAQT,EAAQ,qBAChBU,EAAeJ,EAAQK,aAAaX,EAAQ,uCAAwCY,EAASF,EAC7FG,EAAcP,EAAQQ,gBAAgBd,EAAQ,8BACpD,MAAMe,UAAwBP,EAAaQ,cACvC,gBAAIC,GACA,OAA8B,MAA1BC,KAAKC,MAAMC,YACJ,GAEJ,CAACF,KAAKC,MAAMC,YACvB,CACA,eAAAC,GACIC,MAAMD,kBACN,MAAMD,YAAEA,GAAgBF,KAAKC,MAAMI,WACnCL,KAAKM,UAAUJ,GAAa,IAAMF,KAAKO,mBAC3C,CACA,WAAAC,GACI,MAAO,IAAIJ,MAAMI,cAAehB,EAAaiB,QAASd,E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uBAErBzD,EAAG0D,UAAUC,aAAejD,EAC5BV,EAAG4D,QAAO,EAAGC,UAAU,CACnB9C,YAAa,CAAC8C,EAAI3D,EAAU4D,SAAU,IAAI5D,EAAU4D,YAGhE\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/trend.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/trend.js","canonical":"models/trend","resolution":"ESM","id":"29d55a28a9","hash":"29d55a28a9ec8917e29822e6f6ea01881599a8805e6fcd9615e424f5dab5c175","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TrendIndicator = exports.TrendIndicatorView = void 0;\nconst layout_1 = require(\"./layout\");\nconst build_views_1 = require(\"@bokehjs/core/build_views\");\nconst plots_1 = require(\"@bokehjs/models/plots\");\nconst glyphs_1 = require(\"@bokehjs/models/glyphs\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst column_data_source_1 = require(\"@bokehjs/models/sources/column_data_source\");\nconst formatters_1 = require(\"@bokehjs/models/formatters\");\nconst red = \"#d9534f\";\nconst green = \"#5cb85c\";\nconst blue = \"#428bca\";\nclass TrendIndicatorView extends layout_1.HTMLBoxView {\n    initialize() {\n        super.initialize();\n        this.containerDiv = (0, dom_1.div)({ style: { height: \"100%\", width: \"100%\" } });\n        this.titleDiv = (0, dom_1.div)({ style: { font_size: \"1em\", word_wrap: \"break-word\" } });\n        this.valueDiv = (0, dom_1.div)({ style: { font_size: \"2em\" } });\n        this.value2Div = (0, dom_1.div)({ style: { font_size: \"1em\", opacity: \"0.5\", display: \"inline\" } });\n        this.changeDiv = (0, dom_1.div)({ style: { font_size: \"1em\", opacity: \"0.5\", display: \"inline\" } });\n        this.textDiv = (0, dom_1.div)({}, this.titleDiv, this.valueDiv, (0, dom_1.div)({}, this.changeDiv, this.value2Div));\n        this.updateTitle();\n        this.updateValue();\n        this.updateValue2();\n        this.updateValueChange();\n        this.updateTextFontSize();\n        this.plotDiv = (0, dom_1.div)({});\n        this.containerDiv = (0, dom_1.div)({ style: { height: \"100%\", width: \"100%\" } }, this.textDiv, this.plotDiv);\n        this.updateLayout();\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { pos_color, neg_color, plot_color, plot_type, width, height, sizing_mode, title, value, value_change, layout, } = this.model.properties;\n        this.on_change([pos_color, neg_color], () => this.updateValueChange());\n        this.on_change([plot_color, plot_type, width, height, sizing_mode], () => this.rerender_());\n        this.on_change(title, () => this.updateTitle(true));\n        this.on_change(value, () => this.updateValue(true));\n        this.on_change(value_change, () => this.updateValue2(true));\n        this.on_change(layout, () => this.updateLayout());\n    }\n    async render() {\n        super.render();\n        this.shadow_el.appendChild(this.containerDiv);\n        await this.setPlot();\n    }\n    async setPlot() {\n        this.plot = new plots_1.Plot({\n            background_fill_color: null,\n            border_fill_color: null,\n            outline_line_color: null,\n            min_border: 0,\n            sizing_mode: \"stretch_both\",\n            toolbar_location: null,\n        });\n        const source = this.model.source;\n        if (this.model.plot_type === \"line\") {\n            const line = new glyphs_1.Line({\n                x: { field: this.model.plot_x },\n                y: { field: this.model.plot_y },\n                line_width: 4,\n                line_color: this.model.plot_color,\n            });\n            this.plot.add_glyph(line, source);\n        }\n        else if (this.model.plot_type === \"step\") {\n            const step = new glyphs_1.Step({\n                x: { field: this.model.plot_x },\n                y: { field: this.model.plot_y },\n                line_width: 3,\n                line_color: this.model.plot_color,\n            });\n            this.plot.add_glyph(step, source);\n        }\n        else if (this.model.plot_type === \"area\") {\n            const varea = new glyphs_1.VArea({\n                x: { field: this.model.plot_x },\n                y1: { field: this.model.plot_y },\n                y2: 0,\n                fill_color: this.model.plot_color,\n                fill_alpha: 0.5,\n            });\n            this.plot.add_glyph(varea, source);\n            const line = new glyphs_1.Line({\n                x: { field: this.model.plot_x },\n                y: { field: this.model.plot_y },\n                line_width: 3,\n                line_color: this.model.plot_color,\n            });\n            this.plot.add_glyph(line, source);\n        }\n        else {\n            const vbar = new glyphs_1.VBar({\n                x: { field: this.model.plot_x },\n                top: { field: this.model.plot_y },\n                width: 0.9,\n                line_color: null,\n                fill_color: this.model.plot_color,\n            });\n            this.plot.add_glyph(vbar, source);\n        }\n        const view = await (0, build_views_1.build_view)(this.plot);\n        this.plotDiv.innerHTML = \"\";\n        view.render_to(this.plotDiv);\n    }\n    after_layout() {\n        super.after_layout();\n        this.updateTextFontSize();\n    }\n    updateTextFontSize() {\n        this.updateTextFontSizeColumn();\n    }\n    updateTextFontSizeColumn() {\n        let elWidth = this.containerDiv.clientWidth;\n        let elHeight = this.containerDiv.clientHeight;\n        if (this.model.layout === \"column\") {\n            elHeight = Math.round(elHeight / 2);\n        }\n        else {\n            elWidth = Math.round(elWidth / 2);\n        }\n        const widthTitle = this.model.title.length;\n        const widthValue = 2 * this._value_format.length;\n        const widthValue2 = this._value_change_format.length + 1;\n        const widthConstraint1 = elWidth / widthTitle * 2.0;\n        const widthConstraint2 = elWidth / widthValue * 1.8;\n        const widthConstraint3 = elWidth / widthValue2 * 2.0;\n        const heightConstraint = elHeight / 6;\n        const fontSize = Math.min(widthConstraint1, widthConstraint2, widthConstraint3, heightConstraint);\n        this.textDiv.style.fontSize = `${Math.trunc(fontSize)}px`;\n        this.textDiv.style.lineHeight = \"1.3\";\n    }\n    updateTitle(update_fontsize = false) {\n        this.titleDiv.innerText = this.model.title;\n        if (update_fontsize) {\n            this.updateTextFontSize();\n        }\n    }\n    updateValue(update_fontsize = false) {\n        this._value_format = this.model.formatter.doFormat([this.model.value], { loc: 0 })[0];\n        this.valueDiv.innerText = this._value_format;\n        if (update_fontsize) {\n            this.updateTextFontSize();\n        }\n    }\n    updateValue2(update_fontsize = false) {\n        this._value_change_format = this.model.change_formatter.doFormat([this.model.value_change], { loc: 0 })[0];\n        this.value2Div.innerText = this._value_change_format;\n        this.updateValueChange();\n        if (update_fontsize) {\n            this.updateTextFontSize();\n        }\n    }\n    updateValueChange() {\n        if (this.model.value_change > 0) {\n            this.changeDiv.innerHTML = \"&#9650;\";\n            this.changeDiv.style.color = this.model.pos_color;\n        }\n        else if (this.model.value_change < 0) {\n            this.changeDiv.innerHTML = \"&#9660;\";\n            this.changeDiv.style.color = this.model.neg_color;\n        }\n        else {\n            this.changeDiv.innerHTML = \"&nbsp;\";\n            this.changeDiv.style.color = \"inherit\";\n        }\n    }\n    updateLayout() {\n        if (this.model.layout === \"column\") {\n            this.containerDiv.style.display = \"block\";\n            this.textDiv.style.height = \"50%\";\n            this.textDiv.style.width = \"100%\";\n            this.plotDiv.style.height = \"50%\";\n            this.plotDiv.style.width = \"100%\";\n        }\n        else {\n            this.containerDiv.style.display = \"flex\";\n            this.textDiv.style.height = \"100%\";\n            this.textDiv.style.width = \"\";\n            this.plotDiv.style.height = \"100%\";\n            this.plotDiv.style.width = \"\";\n            this.textDiv.style.flex = \"1\";\n            this.plotDiv.style.flex = \"1\";\n        }\n        if (this._has_finished) {\n            this.invalidate_layout();\n        }\n    }\n}\nexports.TrendIndicatorView = TrendIndicatorView;\nTrendIndicatorView.__name__ = \"TrendIndicatorView\";\nclass TrendIndicator extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.TrendIndicator = TrendIndicator;\n_a = TrendIndicator;\nTrendIndicator.__name__ = \"TrendIndicator\";\nTrendIndicator.__module__ = \"panel.models.trend\";\n(() => {\n    _a.prototype.default_view = TrendIndicatorView;\n    _a.define(({ Float, Str, Ref }) => ({\n        description: [Str, \"\"],\n        formatter: [Ref(formatters_1.TickFormatter), () => new formatters_1.BasicTickFormatter()],\n        change_formatter: [Ref(formatters_1.TickFormatter), () => new formatters_1.NumeralTickFormatter()],\n        layout: [Str, \"column\"],\n        source: [Ref(column_data_source_1.ColumnDataSource)],\n        plot_x: [Str, \"x\"],\n        plot_y: [Str, \"y\"],\n        plot_color: [Str, blue],\n        plot_type: [Str, \"bar\"],\n        pos_color: [Str, green],\n        neg_color: [Str, red],\n        title: [Str, \"\"],\n        value: [Float, 0],\n        value_change: [Float, 0],\n    }));\n})();\n//# sourceMappingURL=trend.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"]],"dependency_map":[],"exported":[{"type":"named","name":"TrendIndicatorView"},{"type":"named","name":"TrendIndicator"}],"externals":[],"shims":[]},"code":{"source":"/* models/trend.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    const build_views_1 = require(\"@bokehjs/core/build_views\");\n    const plots_1 = require(\"@bokehjs/models/plots\");\n    const glyphs_1 = require(\"@bokehjs/models/glyphs\");\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const column_data_source_1 = require(\"@bokehjs/models/sources/column_data_source\");\n    const formatters_1 = require(\"@bokehjs/models/formatters\");\n    const red = \"#d9534f\";\n    const green = \"#5cb85c\";\n    const blue = \"#428bca\";\n    class TrendIndicatorView extends layout_1.HTMLBoxView {\n        initialize() {\n            super.initialize();\n            this.containerDiv = (0, dom_1.div)({ style: { height: \"100%\", width: \"100%\" } });\n            this.titleDiv = (0, dom_1.div)({ style: { font_size: \"1em\", word_wrap: \"break-word\" } });\n            this.valueDiv = (0, dom_1.div)({ style: { font_size: \"2em\" } });\n            this.value2Div = (0, dom_1.div)({ style: { font_size: \"1em\", opacity: \"0.5\", display: \"inline\" } });\n            this.changeDiv = (0, dom_1.div)({ style: { font_size: \"1em\", opacity: \"0.5\", display: \"inline\" } });\n            this.textDiv = (0, dom_1.div)({}, this.titleDiv, this.valueDiv, (0, dom_1.div)({}, this.changeDiv, this.value2Div));\n            this.updateTitle();\n            this.updateValue();\n            this.updateValue2();\n            this.updateValueChange();\n            this.updateTextFontSize();\n            this.plotDiv = (0, dom_1.div)({});\n            this.containerDiv = (0, dom_1.div)({ style: { height: \"100%\", width: \"100%\" } }, this.textDiv, this.plotDiv);\n            this.updateLayout();\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { pos_color, neg_color, plot_color, plot_type, width, height, sizing_mode, title, value, value_change, layout, } = this.model.properties;\n            this.on_change([pos_color, neg_color], () => this.updateValueChange());\n            this.on_change([plot_color, plot_type, width, height, sizing_mode], () => this.rerender_());\n            this.on_change(title, () => this.updateTitle(true));\n            this.on_change(value, () => this.updateValue(true));\n            this.on_change(value_change, () => this.updateValue2(true));\n            this.on_change(layout, () => this.updateLayout());\n        }\n        async render() {\n            super.render();\n            this.shadow_el.appendChild(this.containerDiv);\n            await this.setPlot();\n        }\n        async setPlot() {\n            this.plot = new plots_1.Plot({\n                background_fill_color: null,\n                border_fill_color: null,\n                outline_line_color: null,\n                min_border: 0,\n                sizing_mode: \"stretch_both\",\n                toolbar_location: null,\n            });\n            const source = this.model.source;\n            if (this.model.plot_type === \"line\") {\n                const line = new glyphs_1.Line({\n                    x: { field: this.model.plot_x },\n                    y: { field: this.model.plot_y },\n                    line_width: 4,\n                    line_color: this.model.plot_color,\n                });\n                this.plot.add_glyph(line, source);\n            }\n            else if (this.model.plot_type === \"step\") {\n                const step = new glyphs_1.Step({\n                    x: { field: this.model.plot_x },\n                    y: { field: this.model.plot_y },\n                    line_width: 3,\n                    line_color: this.model.plot_color,\n                });\n                this.plot.add_glyph(step, source);\n            }\n            else if (this.model.plot_type === \"area\") {\n                const varea = new glyphs_1.VArea({\n                    x: { field: this.model.plot_x },\n                    y1: { field: this.model.plot_y },\n                    y2: 0,\n                    fill_color: this.model.plot_color,\n                    fill_alpha: 0.5,\n                });\n                this.plot.add_glyph(varea, source);\n                const line = new glyphs_1.Line({\n                    x: { field: this.model.plot_x },\n                    y: { field: this.model.plot_y },\n                    line_width: 3,\n                    line_color: this.model.plot_color,\n                });\n                this.plot.add_glyph(line, source);\n            }\n            else {\n                const vbar = new glyphs_1.VBar({\n                    x: { field: this.model.plot_x },\n                    top: { field: this.model.plot_y },\n                    width: 0.9,\n                    line_color: null,\n                    fill_color: this.model.plot_color,\n                });\n                this.plot.add_glyph(vbar, source);\n            }\n            const view = await (0, build_views_1.build_view)(this.plot);\n            this.plotDiv.innerHTML = \"\";\n            view.render_to(this.plotDiv);\n        }\n        after_layout() {\n            super.after_layout();\n            this.updateTextFontSize();\n        }\n        updateTextFontSize() {\n            this.updateTextFontSizeColumn();\n        }\n        updateTextFontSizeColumn() {\n            let elWidth = this.containerDiv.clientWidth;\n            let elHeight = this.containerDiv.clientHeight;\n            if (this.model.layout === \"column\") {\n                elHeight = Math.round(elHeight / 2);\n            }\n            else {\n                elWidth = Math.round(elWidth / 2);\n            }\n            const widthTitle = this.model.title.length;\n            const widthValue = 2 * this._value_format.length;\n            const widthValue2 = this._value_change_format.length + 1;\n            const widthConstraint1 = elWidth / widthTitle * 2.0;\n            const widthConstraint2 = elWidth / widthValue * 1.8;\n            const widthConstraint3 = elWidth / widthValue2 * 2.0;\n            const heightConstraint = elHeight / 6;\n            const fontSize = Math.min(widthConstraint1, widthConstraint2, widthConstraint3, heightConstraint);\n            this.textDiv.style.fontSize = `${Math.trunc(fontSize)}px`;\n            this.textDiv.style.lineHeight = \"1.3\";\n        }\n        updateTitle(update_fontsize = false) {\n            this.titleDiv.innerText = this.model.title;\n            if (update_fontsize) {\n                this.updateTextFontSize();\n            }\n        }\n        updateValue(update_fontsize = false) {\n            this._value_format = this.model.formatter.doFormat([this.model.value], { loc: 0 })[0];\n            this.valueDiv.innerText = this._value_format;\n            if (update_fontsize) {\n                this.updateTextFontSize();\n            }\n        }\n        updateValue2(update_fontsize = false) {\n            this._value_change_format = this.model.change_formatter.doFormat([this.model.value_change], { loc: 0 })[0];\n            this.value2Div.innerText = this._value_change_format;\n            this.updateValueChange();\n            if (update_fontsize) {\n                this.updateTextFontSize();\n            }\n        }\n        updateValueChange() {\n            if (this.model.value_change > 0) {\n                this.changeDiv.innerHTML = \"&#9650;\";\n                this.changeDiv.style.color = this.model.pos_color;\n            }\n            else if (this.model.value_change < 0) {\n                this.changeDiv.innerHTML = \"&#9660;\";\n                this.changeDiv.style.color = this.model.neg_color;\n            }\n            else {\n                this.changeDiv.innerHTML = \"&nbsp;\";\n                this.changeDiv.style.color = \"inherit\";\n            }\n        }\n        updateLayout() {\n            if (this.model.layout === \"column\") {\n                this.containerDiv.style.display = \"block\";\n                this.textDiv.style.height = \"50%\";\n                this.textDiv.style.width = \"100%\";\n                this.plotDiv.style.height = \"50%\";\n                this.plotDiv.style.width = \"100%\";\n            }\n            else {\n                this.containerDiv.style.display = \"flex\";\n                this.textDiv.style.height = \"100%\";\n                this.textDiv.style.width = \"\";\n                this.plotDiv.style.height = \"100%\";\n                this.plotDiv.style.width = \"\";\n                this.textDiv.style.flex = \"1\";\n                this.plotDiv.style.flex = \"1\";\n            }\n            if (this._has_finished) {\n                this.invalidate_layout();\n            }\n        }\n    }\n    exports.TrendIndicatorView = TrendIndicatorView;\n    TrendIndicatorView.__name__ = \"TrendIndicatorView\";\n    class TrendIndicator extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.TrendIndicator = TrendIndicator;\n    _a = TrendIndicator;\n    TrendIndicator.__name__ = \"TrendIndicator\";\n    TrendIndicator.__module__ = \"panel.models.trend\";\n    (() => {\n        _a.prototype.default_view = TrendIndicatorView;\n        _a.define(({ Float, Str, Ref }) => ({\n            description: [Str, \"\"],\n            formatter: [Ref(formatters_1.TickFormatter), () => new formatters_1.BasicTickFormatter()],\n            change_formatter: [Ref(formatters_1.TickFormatter), () => new formatters_1.NumeralTickFormatter()],\n            layout: [Str, \"column\"],\n            source: [Ref(column_data_source_1.ColumnDataSource)],\n            plot_x: [Str, \"x\"],\n            plot_y: [Str, \"y\"],\n            plot_color: [Str, blue],\n            plot_type: [Str, \"bar\"],\n            pos_color: [Str, green],\n            neg_color: [Str, red],\n            title: [Str, \"\"],\n            value: [Float, 0],\n            value_change: [Float, 0],\n        }));\n    })();\n}\n","min_source":"function _(t,e,i,l,o){var s;l();const h=t(\"dab42e6dad\"),a=t(\"@bokehjs/core/build_views\"),n=t(\"@bokehjs/models/plots\"),d=t(\"@bokehjs/models/glyphs\"),r=t(\"@bokehjs/core/dom\"),_=t(\"@bokehjs/models/sources/column_data_source\"),c=t(\"@bokehjs/models/formatters\");class p extends h.HTMLBoxView{initialize(){super.initialize(),this.containerDiv=(0,r.div)({style:{height:\"100%\",width:\"100%\"}}),this.titleDiv=(0,r.div)({style:{font_size:\"1em\",word_wrap:\"break-word\"}}),this.valueDiv=(0,r.div)({style:{font_size:\"2em\"}}),this.value2Div=(0,r.div)({style:{font_size:\"1em\",opacity:\"0.5\",display:\"inline\"}}),this.changeDiv=(0,r.div)({style:{font_size:\"1em\",opacity:\"0.5\",display:\"inline\"}}),this.textDiv=(0,r.div)({},this.titleDiv,this.valueDiv,(0,r.div)({},this.changeDiv,this.value2Div)),this.updateTitle(),this.updateValue(),this.updateValue2(),this.updateValueChange(),this.updateTextFontSize(),this.plotDiv=(0,r.div)({}),this.containerDiv=(0,r.div)({style:{height:\"100%\",width:\"100%\"}},this.textDiv,this.plotDiv),this.updateLayout()}connect_signals(){super.connect_signals();const{pos_color:t,neg_color:e,plot_color:i,plot_type:l,width:o,height:s,sizing_mode:h,title:a,value:n,value_change:d,layout:r}=this.model.properties;this.on_change([t,e],(()=>this.updateValueChange())),this.on_change([i,l,o,s,h],(()=>this.rerender_())),this.on_change(a,(()=>this.updateTitle(!0))),this.on_change(n,(()=>this.updateValue(!0))),this.on_change(d,(()=>this.updateValue2(!0))),this.on_change(r,(()=>this.updateLayout()))}async render(){super.render(),this.shadow_el.appendChild(this.containerDiv),await this.setPlot()}async setPlot(){this.plot=new n.Plot({background_fill_color:null,border_fill_color:null,outline_line_color:null,min_border:0,sizing_mode:\"stretch_both\",toolbar_location:null});const t=this.model.source;if(\"line\"===this.model.plot_type){const e=new d.Line({x:{field:this.model.plot_x},y:{field:this.model.plot_y},line_width:4,line_color:this.model.plot_color});this.plot.add_glyph(e,t)}else if(\"step\"===this.model.plot_type){const e=new d.Step({x:{field:this.model.plot_x},y:{field:this.model.plot_y},line_width:3,line_color:this.model.plot_color});this.plot.add_glyph(e,t)}else if(\"area\"===this.model.plot_type){const e=new d.VArea({x:{field:this.model.plot_x},y1:{field:this.model.plot_y},y2:0,fill_color:this.model.plot_color,fill_alpha:.5});this.plot.add_glyph(e,t);const i=new d.Line({x:{field:this.model.plot_x},y:{field:this.model.plot_y},line_width:3,line_color:this.model.plot_color});this.plot.add_glyph(i,t)}else{const e=new d.VBar({x:{field:this.model.plot_x},top:{field:this.model.plot_y},width:.9,line_color:null,fill_color:this.model.plot_color});this.plot.add_glyph(e,t)}const e=await(0,a.build_view)(this.plot);this.plotDiv.innerHTML=\"\",e.render_to(this.plotDiv)}after_layout(){super.after_layout(),this.updateTextFontSize()}updateTextFontSize(){this.updateTextFontSizeColumn()}updateTextFontSizeColumn(){let t=this.containerDiv.clientWidth,e=this.containerDiv.clientHeight;\"column\"===this.model.layout?e=Math.round(e/2):t=Math.round(t/2);const i=t/this.model.title.length*2,l=t/(2*this._value_format.length)*1.8,o=t/(this._value_change_format.length+1)*2,s=e/6,h=Math.min(i,l,o,s);this.textDiv.style.fontSize=`${Math.trunc(h)}px`,this.textDiv.style.lineHeight=\"1.3\"}updateTitle(t=!1){this.titleDiv.innerText=this.model.title,t&&this.updateTextFontSize()}updateValue(t=!1){this._value_format=this.model.formatter.doFormat([this.model.value],{loc:0})[0],this.valueDiv.innerText=this._value_format,t&&this.updateTextFontSize()}updateValue2(t=!1){this._value_change_format=this.model.change_formatter.doFormat([this.model.value_change],{loc:0})[0],this.value2Div.innerText=this._value_change_format,this.updateValueChange(),t&&this.updateTextFontSize()}updateValueChange(){this.model.value_change>0?(this.changeDiv.innerHTML=\"&#9650;\",this.changeDiv.style.color=this.model.pos_color):this.model.value_change<0?(this.changeDiv.innerHTML=\"&#9660;\",this.changeDiv.style.color=this.model.neg_color):(this.changeDiv.innerHTML=\"&nbsp;\",this.changeDiv.style.color=\"inherit\")}updateLayout(){\"column\"===this.model.layout?(this.containerDiv.style.display=\"block\",this.textDiv.style.height=\"50%\",this.textDiv.style.width=\"100%\",this.plotDiv.style.height=\"50%\",this.plotDiv.style.width=\"100%\"):(this.containerDiv.style.display=\"flex\",this.textDiv.style.height=\"100%\",this.textDiv.style.width=\"\",this.plotDiv.style.height=\"100%\",this.plotDiv.style.width=\"\",this.textDiv.style.flex=\"1\",this.plotDiv.style.flex=\"1\"),this._has_finished&&this.invalidate_layout()}}i.TrendIndicatorView=p,p.__name__=\"TrendIndicatorView\";class u extends h.HTMLBox{constructor(t){super(t)}}i.TrendIndicator=u,s=u,u.__name__=\"TrendIndicator\",u.__module__=\"panel.models.trend\",s.prototype.default_view=p,s.define((({Float:t,Str:e,Ref:i})=>({description:[e,\"\"],formatter:[i(c.TickFormatter),()=>new c.BasicTickFormatter],change_formatter:[i(c.TickFormatter),()=>new c.NumeralTickFormatter],layout:[e,\"column\"],source:[i(_.ColumnDataSource)],plot_x:[e,\"x\"],plot_y:[e,\"y\"],plot_color:[e,\"#428bca\"],plot_type:[e,\"bar\"],pos_color:[e,\"#5cb85c\"],neg_color:[e,\"#d9534f\"],title:[e,\"\"],value:[t,0],value_change:[t,0]})))}\n//# sourceMappingURL=trend.min.js.map","min_map":"{\"version\":3,\"file\":\"trend.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"layout_1\",\"build_views_1\",\"plots_1\",\"glyphs_1\",\"dom_1\",\"column_data_source_1\",\"formatters_1\",\"TrendIndicatorView\",\"HTMLBoxView\",\"initialize\",\"super\",\"this\",\"containerDiv\",\"div\",\"style\",\"height\",\"width\",\"titleDiv\",\"font_size\",\"word_wrap\",\"valueDiv\",\"value2Div\",\"opacity\",\"display\",\"changeDiv\",\"textDiv\",\"updateTitle\",\"updateValue\",\"updateValue2\",\"updateValueChange\",\"updateTextFontSize\",\"plotDiv\",\"updateLayout\",\"connect_signals\",\"pos_color\",\"neg_color\",\"plot_color\",\"plot_type\",\"sizing_mode\",\"title\",\"value\",\"value_change\",\"layout\",\"model\",\"properties\",\"on_change\",\"rerender_\",\"render\",\"shadow_el\",\"appendChild\",\"setPlot\",\"plot\",\"Plot\",\"background_fill_color\",\"border_fill_color\",\"outline_line_color\",\"min_border\",\"toolbar_location\",\"source\",\"line\",\"Line\",\"x\",\"field\",\"plot_x\",\"y\",\"plot_y\",\"line_width\",\"line_color\",\"add_glyph\",\"step\",\"Step\",\"varea\",\"VArea\",\"y1\",\"y2\",\"fill_color\",\"fill_alpha\",\"vbar\",\"VBar\",\"top\",\"view\",\"build_view\",\"innerHTML\",\"render_to\",\"after_layout\",\"updateTextFontSizeColumn\",\"elWidth\",\"clientWidth\",\"elHeight\",\"clientHeight\",\"Math\",\"round\",\"widthConstraint1\",\"length\",\"widthConstraint2\",\"_value_format\",\"widthConstraint3\",\"_value_change_format\",\"heightConstraint\",\"fontSize\",\"min\",\"trunc\",\"lineHeight\",\"update_fontsize\",\"innerText\",\"formatter\",\"doFormat\",\"loc\",\"change_formatter\",\"color\",\"flex\",\"_has_finished\",\"invalidate_layout\",\"__name__\",\"TrendIndicator\",\"HTMLBox\",\"constructor\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Float\",\"Str\",\"Ref\",\"description\",\"TickFormatter\",\"BasicTickFormatter\",\"NumeralTickFormatter\",\"ColumnDataSource\"],\"sources\":[\"0\"],\"mappings\":\"AAAsB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACnE,IAAIC,EACJF,IACA,MAAMG,EAAWN,EAAQ,cACnBO,EAAgBP,EAAQ,6BACxBQ,EAAUR,EAAQ,yBAClBS,EAAWT,EAAQ,0BACnBU,EAAQV,EAAQ,qBAChBW,EAAuBX,EAAQ,8CAC/BY,EAAeZ,EAAQ,8BAI7B,MAAMa,UAA2BP,EAASQ,YACtC,UAAAC,GACIC,MAAMD,aACNE,KAAKC,cAAe,EAAIR,EAAMS,KAAK,CAAEC,MAAO,CAAEC,OAAQ,OAAQC,MAAO,UACrEL,KAAKM,UAAW,EAAIb,EAAMS,KAAK,CAAEC,MAA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oB,QAAQjB,MAAMgG,KAAO,KAE1BnG,KAAKoG,eACLpG,KAAKqG,mBAEb,EAEJpH,EAAQW,mBAAqBA,EAC7BA,EAAmB0G,SAAW,qBAC9B,MAAMC,UAAuBlH,EAASmH,QAClC,WAAAC,CAAYC,GACR3G,MAAM2G,EACV,EAEJzH,EAAQsH,eAAiBA,EACzBnH,EAAKmH,EACLA,EAAeD,SAAW,iBAC1BC,EAAeI,WAAa,qBAExBvH,EAAGwH,UAAUC,aAAejH,EAC5BR,EAAG0H,QAAO,EAAGC,QAAOC,MAAKC,UAAU,CAC/BC,YAAa,CAACF,EAAK,IACnBlB,UAAW,CAACmB,EAAItH,EAAawH,eAAgB,IAAM,IAAIxH,EAAayH,oBACpEnB,iBAAkB,CAACgB,EAAItH,EAAawH,eAAgB,IAAM,IAAIxH,EAAa0H,sBAC3EtF,OAAQ,CAACiF,EAAK,UACdjE,OAAQ,CAACkE,EAAIvH,EAAqB4H,mBAClClE,OAAQ,CAAC4D,EAAK,KACd1D,OAAQ,CAAC0D,EAAK,KACdvF,WAAY,CAACuF,EAtMR,WAuMLtF,UAAW,CAACsF,EAAK,OACjBzF,UAAW,CAACyF,EAzMN,WA0MNxF,UAAW,CAACwF,EA3MR,WA4MJpF,MAAO,CAACoF,EAAK,IACbnF,MAAO,CAACkF,EAAO,GACfjF,aAAc,CAACiF,EAAO,MAGlC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/vega.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/vega.js","canonical":"models/vega","resolution":"ESM","id":"22dbf7c070","hash":"22dbf7c070056a3a1b77f467d24f540f20ce80e057635d94b49cc1ca393c6b06","source":"\"use strict\";\nvar _a, _b;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VegaPlot = exports.VegaPlotView = exports.VegaEvent = void 0;\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nconst types_1 = require(\"@bokehjs/core/util/types\");\nconst layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\nconst layout_1 = require(\"./layout\");\nconst debounce_1 = require(\"debounce\");\nclass VegaEvent extends bokeh_events_1.ModelEvent {\n    constructor(data) {\n        super();\n        this.data = data;\n    }\n    get event_values() {\n        return { model: this.origin, data: this.data };\n    }\n}\nexports.VegaEvent = VegaEvent;\n_a = VegaEvent;\nVegaEvent.__name__ = \"VegaEvent\";\n(() => {\n    _a.prototype.event_name = \"vega_event\";\n})();\nclass VegaPlotView extends layout_dom_1.LayoutDOMView {\n    constructor() {\n        super(...arguments);\n        this._rendered = false;\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { data, show_actions, theme, data_sources, events } = this.model.properties;\n        this._replot = (0, debounce_1.debounce)(() => this._plot(), 20);\n        this.on_change([data, show_actions, theme], () => {\n            this._replot();\n        });\n        this.on_change(data_sources, () => this._connect_sources());\n        this.on_change(events, () => {\n            for (const event of this.model.events) {\n                if (this._callbacks.indexOf(event) > -1) {\n                    continue;\n                }\n                this._callbacks.push(event);\n                const callback = (name, value) => this._dispatch_event(name, value);\n                const timeout = this.model.throttle[event] || 20;\n                this.vega_view.addSignalListener(event, (0, debounce_1.debounce)(callback, timeout, false));\n            }\n        });\n        this._connected = [];\n        this._connect_sources();\n    }\n    _connect_sources() {\n        for (const ds in this.model.data_sources) {\n            const cds = this.model.data_sources[ds];\n            if (this._connected.indexOf(ds) < 0) {\n                this.connect(cds.properties.data.change, () => this._replot());\n                this._connected.push(ds);\n            }\n        }\n    }\n    remove() {\n        this.vega_view?.finalize();\n        super.remove();\n    }\n    _dispatch_event(name, value) {\n        if (\"vlPoint\" in value && value.vlPoint.or != null) {\n            const indexes = [];\n            for (const index of value.vlPoint.or) {\n                if (index._vgsid_ !== undefined) { // If \"_vgsid_\" property exists\n                    indexes.push(index._vgsid_);\n                }\n                else { // If \"_vgsid_\" property doesn't exist\n                    // Iterate through all properties in the \"index\" object\n                    for (const key in index) {\n                        if (index.hasOwnProperty(key)) { // To ensure key comes from \"index\" object itself, not its prototype\n                            indexes.push({ [key]: index[key] }); // Push a new object with this key-value pair into the array\n                        }\n                    }\n                }\n            }\n            value = indexes;\n        }\n        this.model.trigger_event(new VegaEvent({ type: name, value }));\n    }\n    _fetch_datasets() {\n        const datasets = {};\n        for (const ds in this.model.data_sources) {\n            const cds = this.model.data_sources[ds];\n            const data = [];\n            const columns = cds.columns();\n            for (let i = 0; i < cds.get_length(); i++) {\n                const item = {};\n                for (const column of columns) {\n                    item[column] = cds.data[column][i];\n                }\n                data.push(item);\n            }\n            datasets[ds] = data;\n        }\n        return datasets;\n    }\n    get child_models() {\n        return [];\n    }\n    render() {\n        super.render();\n        this._rendered = false;\n        this.container = (0, dom_1.div)();\n        (0, layout_1.set_size)(this.container, this.model);\n        this._callbacks = [];\n        this._plot();\n        this.shadow_el.append(this.container);\n    }\n    _plot() {\n        const data = this.model.data;\n        if ((data == null) || !window.vegaEmbed) {\n            return;\n        }\n        if (this.model.data_sources && (Object.keys(this.model.data_sources).length > 0)) {\n            const datasets = this._fetch_datasets();\n            if (\"data\" in datasets) {\n                data.data.values = datasets.data;\n                delete datasets.data;\n            }\n            if (data.data != null) {\n                const data_objs = (0, types_1.isArray)(data.data) ? data.data : [data.data];\n                for (const d of data_objs) {\n                    if (d.name in datasets) {\n                        d.values = datasets[d.name];\n                        delete datasets[d.name];\n                    }\n                }\n            }\n            this.model.data.datasets = datasets;\n        }\n        const config = { actions: this.model.show_actions, theme: this.model.theme };\n        window.vegaEmbed(this.container, this.model.data, config).then((result) => {\n            this.vega_view = result.view;\n            this._resize = (0, debounce_1.debounce)(() => this.resize_view(result.view), 50);\n            const callback = (name, value) => this._dispatch_event(name, value);\n            for (const event of this.model.events) {\n                this._callbacks.push(event);\n                const timeout = this.model.throttle[event] || 20;\n                this.vega_view.addSignalListener(event, (0, debounce_1.debounce)(callback, timeout, false));\n            }\n        });\n    }\n    after_layout() {\n        super.after_layout();\n        if (this.vega_view != null) {\n            this._resize();\n        }\n    }\n    resize_view(view) {\n        const canvas = view._renderer.canvas();\n        if (!this._rendered && canvas !== null) {\n            for (const listener of view._eventListeners) {\n                if (listener.type === \"resize\") {\n                    listener.handler(new Event(\"resize\"));\n                }\n            }\n            this._rendered = true;\n        }\n    }\n}\nexports.VegaPlotView = VegaPlotView;\nVegaPlotView.__name__ = \"VegaPlotView\";\nclass VegaPlot extends layout_dom_1.LayoutDOM {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.VegaPlot = VegaPlot;\n_b = VegaPlot;\nVegaPlot.__name__ = \"VegaPlot\";\nVegaPlot.__module__ = \"panel.models.vega\";\n(() => {\n    _b.prototype.default_view = VegaPlotView;\n    _b.define(({ Any, List, Bool, Nullable, Str }) => ({\n        data: [Any, {}],\n        data_sources: [Any, {}],\n        events: [List(Str), []],\n        show_actions: [Bool, false],\n        theme: [Nullable(Str), null],\n        throttle: [Any, {}],\n    }));\n})();\n//# sourceMappingURL=vega.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"],["debounce","/home/runner/work/panel/panel/panel/node_modules/debounce/index.js"]],"dependency_map":[],"exported":[{"type":"named","name":"VegaEvent"},{"type":"named","name":"VegaPlotView"},{"type":"named","name":"VegaPlot"}],"externals":[],"shims":[]},"code":{"source":"/* models/vega.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a, _b;\n    __esModule();\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    const layout_dom_1 = require(\"@bokehjs/models/layouts/layout_dom\");\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    const debounce_1 = require(\"99a25e6992\") /* debounce */;\n    class VegaEvent extends bokeh_events_1.ModelEvent {\n        constructor(data) {\n            super();\n            this.data = data;\n        }\n        get event_values() {\n            return { model: this.origin, data: this.data };\n        }\n    }\n    exports.VegaEvent = VegaEvent;\n    _a = VegaEvent;\n    VegaEvent.__name__ = \"VegaEvent\";\n    (() => {\n        _a.prototype.event_name = \"vega_event\";\n    })();\n    class VegaPlotView extends layout_dom_1.LayoutDOMView {\n        constructor() {\n            super(...arguments);\n            this._rendered = false;\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { data, show_actions, theme, data_sources, events } = this.model.properties;\n            this._replot = (0, debounce_1.debounce)(() => this._plot(), 20);\n            this.on_change([data, show_actions, theme], () => {\n                this._replot();\n            });\n            this.on_change(data_sources, () => this._connect_sources());\n            this.on_change(events, () => {\n                for (const event of this.model.events) {\n                    if (this._callbacks.indexOf(event) > -1) {\n                        continue;\n                    }\n                    this._callbacks.push(event);\n                    const callback = (name, value) => this._dispatch_event(name, value);\n                    const timeout = this.model.throttle[event] || 20;\n                    this.vega_view.addSignalListener(event, (0, debounce_1.debounce)(callback, timeout, false));\n                }\n            });\n            this._connected = [];\n            this._connect_sources();\n        }\n        _connect_sources() {\n            for (const ds in this.model.data_sources) {\n                const cds = this.model.data_sources[ds];\n                if (this._connected.indexOf(ds) < 0) {\n                    this.connect(cds.properties.data.change, () => this._replot());\n                    this._connected.push(ds);\n                }\n            }\n        }\n        remove() {\n            this.vega_view?.finalize();\n            super.remove();\n        }\n        _dispatch_event(name, value) {\n            if (\"vlPoint\" in value && value.vlPoint.or != null) {\n                const indexes = [];\n                for (const index of value.vlPoint.or) {\n                    if (index._vgsid_ !== undefined) { // If \"_vgsid_\" property exists\n                        indexes.push(index._vgsid_);\n                    }\n                    else { // If \"_vgsid_\" property doesn't exist\n                        // Iterate through all properties in the \"index\" object\n                        for (const key in index) {\n                            if (index.hasOwnProperty(key)) { // To ensure key comes from \"index\" object itself, not its prototype\n                                indexes.push({ [key]: index[key] }); // Push a new object with this key-value pair into the array\n                            }\n                        }\n                    }\n                }\n                value = indexes;\n            }\n            this.model.trigger_event(new VegaEvent({ type: name, value }));\n        }\n        _fetch_datasets() {\n            const datasets = {};\n            for (const ds in this.model.data_sources) {\n                const cds = this.model.data_sources[ds];\n                const data = [];\n                const columns = cds.columns();\n                for (let i = 0; i < cds.get_length(); i++) {\n                    const item = {};\n                    for (const column of columns) {\n                        item[column] = cds.data[column][i];\n                    }\n                    data.push(item);\n                }\n                datasets[ds] = data;\n            }\n            return datasets;\n        }\n        get child_models() {\n            return [];\n        }\n        render() {\n            super.render();\n            this._rendered = false;\n            this.container = (0, dom_1.div)();\n            (0, layout_1.set_size)(this.container, this.model);\n            this._callbacks = [];\n            this._plot();\n            this.shadow_el.append(this.container);\n        }\n        _plot() {\n            const data = this.model.data;\n            if ((data == null) || !window.vegaEmbed) {\n                return;\n            }\n            if (this.model.data_sources && (Object.keys(this.model.data_sources).length > 0)) {\n                const datasets = this._fetch_datasets();\n                if (\"data\" in datasets) {\n                    data.data.values = datasets.data;\n                    delete datasets.data;\n                }\n                if (data.data != null) {\n                    const data_objs = (0, types_1.isArray)(data.data) ? data.data : [data.data];\n                    for (const d of data_objs) {\n                        if (d.name in datasets) {\n                            d.values = datasets[d.name];\n                            delete datasets[d.name];\n                        }\n                    }\n                }\n                this.model.data.datasets = datasets;\n            }\n            const config = { actions: this.model.show_actions, theme: this.model.theme };\n            window.vegaEmbed(this.container, this.model.data, config).then((result) => {\n                this.vega_view = result.view;\n                this._resize = (0, debounce_1.debounce)(() => this.resize_view(result.view), 50);\n                const callback = (name, value) => this._dispatch_event(name, value);\n                for (const event of this.model.events) {\n                    this._callbacks.push(event);\n                    const timeout = this.model.throttle[event] || 20;\n                    this.vega_view.addSignalListener(event, (0, debounce_1.debounce)(callback, timeout, false));\n                }\n            });\n        }\n        after_layout() {\n            super.after_layout();\n            if (this.vega_view != null) {\n                this._resize();\n            }\n        }\n        resize_view(view) {\n            const canvas = view._renderer.canvas();\n            if (!this._rendered && canvas !== null) {\n                for (const listener of view._eventListeners) {\n                    if (listener.type === \"resize\") {\n                        listener.handler(new Event(\"resize\"));\n                    }\n                }\n                this._rendered = true;\n            }\n        }\n    }\n    exports.VegaPlotView = VegaPlotView;\n    VegaPlotView.__name__ = \"VegaPlotView\";\n    class VegaPlot extends layout_dom_1.LayoutDOM {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.VegaPlot = VegaPlot;\n    _b = VegaPlot;\n    VegaPlot.__name__ = \"VegaPlot\";\n    VegaPlot.__module__ = \"panel.models.vega\";\n    (() => {\n        _b.prototype.default_view = VegaPlotView;\n        _b.define(({ Any, List, Bool, Nullable, Str }) => ({\n            data: [Any, {}],\n            data_sources: [Any, {}],\n            events: [List(Str), []],\n            show_actions: [Bool, false],\n            theme: [Nullable(Str), null],\n            throttle: [Any, {}],\n        }));\n    })();\n}\n","min_source":"function _(e,t,s,o,n){var a,i;o();const d=e(\"@bokehjs/core/dom\"),r=e(\"@bokehjs/core/bokeh_events\"),c=e(\"@bokehjs/core/util/types\"),h=e(\"@bokehjs/models/layouts/layout_dom\"),_=e(\"dab42e6dad\"),l=e(\"99a25e6992\");class u extends r.ModelEvent{constructor(e){super(),this.data=e}get event_values(){return{model:this.origin,data:this.data}}}s.VegaEvent=u,a=u,u.__name__=\"VegaEvent\",a.prototype.event_name=\"vega_event\";class v extends h.LayoutDOMView{constructor(){super(...arguments),this._rendered=!1}connect_signals(){super.connect_signals();const{data:e,show_actions:t,theme:s,data_sources:o,events:n}=this.model.properties;this._replot=(0,l.debounce)((()=>this._plot()),20),this.on_change([e,t,s],(()=>{this._replot()})),this.on_change(o,(()=>this._connect_sources())),this.on_change(n,(()=>{for(const e of this.model.events){if(this._callbacks.indexOf(e)>-1)continue;this._callbacks.push(e);const t=(e,t)=>this._dispatch_event(e,t),s=this.model.throttle[e]||20;this.vega_view.addSignalListener(e,(0,l.debounce)(t,s,!1))}})),this._connected=[],this._connect_sources()}_connect_sources(){for(const e in this.model.data_sources){const t=this.model.data_sources[e];this._connected.indexOf(e)<0&&(this.connect(t.properties.data.change,(()=>this._replot())),this._connected.push(e))}}remove(){this.vega_view?.finalize(),super.remove()}_dispatch_event(e,t){if(\"vlPoint\"in t&&null!=t.vlPoint.or){const e=[];for(const s of t.vlPoint.or)if(void 0!==s._vgsid_)e.push(s._vgsid_);else for(const t in s)s.hasOwnProperty(t)&&e.push({[t]:s[t]});t=e}this.model.trigger_event(new u({type:e,value:t}))}_fetch_datasets(){const e={};for(const t in this.model.data_sources){const s=this.model.data_sources[t],o=[],n=s.columns();for(let e=0;e<s.get_length();e++){const t={};for(const o of n)t[o]=s.data[o][e];o.push(t)}e[t]=o}return e}get child_models(){return[]}render(){super.render(),this._rendered=!1,this.container=(0,d.div)(),(0,_.set_size)(this.container,this.model),this._callbacks=[],this._plot(),this.shadow_el.append(this.container)}_plot(){const e=this.model.data;if(null==e||!window.vegaEmbed)return;if(this.model.data_sources&&Object.keys(this.model.data_sources).length>0){const t=this._fetch_datasets();if(\"data\"in t&&(e.data.values=t.data,delete t.data),null!=e.data){const s=(0,c.isArray)(e.data)?e.data:[e.data];for(const e of s)e.name in t&&(e.values=t[e.name],delete t[e.name])}this.model.data.datasets=t}const t={actions:this.model.show_actions,theme:this.model.theme};window.vegaEmbed(this.container,this.model.data,t).then((e=>{this.vega_view=e.view,this._resize=(0,l.debounce)((()=>this.resize_view(e.view)),50);const t=(e,t)=>this._dispatch_event(e,t);for(const e of this.model.events){this._callbacks.push(e);const s=this.model.throttle[e]||20;this.vega_view.addSignalListener(e,(0,l.debounce)(t,s,!1))}}))}after_layout(){super.after_layout(),null!=this.vega_view&&this._resize()}resize_view(e){const t=e._renderer.canvas();if(!this._rendered&&null!==t){for(const t of e._eventListeners)\"resize\"===t.type&&t.handler(new Event(\"resize\"));this._rendered=!0}}}s.VegaPlotView=v,v.__name__=\"VegaPlotView\";class m extends h.LayoutDOM{constructor(e){super(e)}}s.VegaPlot=m,i=m,m.__name__=\"VegaPlot\",m.__module__=\"panel.models.vega\",i.prototype.default_view=v,i.define((({Any:e,List:t,Bool:s,Nullable:o,Str:n})=>({data:[e,{}],data_sources:[e,{}],events:[t(n),[]],show_actions:[s,!1],theme:[o(n),null],throttle:[e,{}]})))}\n//# sourceMappingURL=vega.min.js.map","min_map":"{\"version\":3,\"file\":\"vega.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"_b\",\"dom_1\",\"bokeh_events_1\",\"types_1\",\"layout_dom_1\",\"layout_1\",\"debounce_1\",\"VegaEvent\",\"ModelEvent\",\"constructor\",\"data\",\"super\",\"this\",\"event_values\",\"model\",\"origin\",\"__name__\",\"prototype\",\"event_name\",\"VegaPlotView\",\"LayoutDOMView\",\"arguments\",\"_rendered\",\"connect_signals\",\"show_actions\",\"theme\",\"data_sources\",\"events\",\"properties\",\"_replot\",\"debounce\",\"_plot\",\"on_change\",\"_connect_sources\",\"event\",\"_callbacks\",\"indexOf\",\"push\",\"callback\",\"name\",\"value\",\"_dispatch_event\",\"timeout\",\"throttle\",\"vega_view\",\"addSignalListener\",\"_connected\",\"ds\",\"cds\",\"connect\",\"change\",\"remove\",\"finalize\",\"vlPoint\",\"or\",\"indexes\",\"index\",\"undefined\",\"_vgsid_\",\"key\",\"hasOwnProperty\",\"trigger_event\",\"type\",\"_fetch_datasets\",\"datasets\",\"columns\",\"i\",\"get_length\",\"item\",\"column\",\"child_models\",\"render\",\"container\",\"div\",\"set_size\",\"shadow_el\",\"append\",\"window\",\"vegaEmbed\",\"Object\",\"keys\",\"length\",\"values\",\"data_objs\",\"isArray\",\"d\",\"config\",\"actions\",\"then\",\"result\",\"view\",\"_resize\",\"resize_view\",\"after_layout\",\"canvas\",\"_renderer\",\"listener\",\"_eventListeners\",\"handler\",\"Event\",\"VegaPlot\",\"LayoutDOM\",\"attrs\",\"__module__\",\"default_view\",\"define\",\"Any\",\"List\",\"Bool\",\"Nullable\",\"Str\"],\"sources\":[\"0\"],\"mappings\":\"AAAqB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAClE,IAAIC,EAAIC,EACRH,IACA,MAAMI,EAAQP,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AAMkF,eACgB,MAAlBjF,KAAKgC,WACLhC,KAAK+E,SAEb,CACA,WAAAC,CAAYF,GACR,MAAMI,EAASJ,EAAKK,UAAUD,SAC9B,IAAKlF,KAAKU,WAAwB,OAAXwE,EAAiB,CACpC,IAAK,MAAME,KAAYN,EAAKO,gBACF,WAAlBD,EAASlC,MACTkC,EAASE,QAAQ,IAAIC,MAAM,WAGnCvF,KAAKU,WAAY,CACrB,CACJ,EAEJ1B,EAAQuB,aAAeA,EACvBA,EAAaH,SAAW,eACxB,MAAMoF,UAAiBhG,EAAaiG,UAChC,WAAA5F,CAAY6F,GACR3F,MAAM2F,EACV,EAEJ1G,EAAQwG,SAAWA,EACnBpG,EAAKoG,EACLA,EAASpF,SAAW,WACpBoF,EAASG,WAAa,oBAElBvG,EAAGiB,UAAUuF,aAAerF,EAC5BnB,EAAGyG,QAAO,EAAGC,MAAKC,OAAMC,OAAMC,WAAUC,UAAU,CAC9CpG,KAAM,CAACgG,EAAK,CAAC,GACbhF,aAAc,CAACgF,EAAK,CAAC,GACrB/E,OAAQ,CAACgF,EAAKG,GAAM,IACpBtF,aAAc,CAACoF,GAAM,GACrBnF,MAAO,CAACoF,EAASC,GAAM,MACvBnE,SAAU,CAAC+D,EAAK,CAAC,MAG7B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/video.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/video.js","canonical":"models/video","resolution":"ESM","id":"79dc37b888","hash":"79dc37b88829112cf639a13649f9d11f31b289c3b4a5aca594f92e2714325a83","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Video = exports.VideoView = void 0;\nconst tslib_1 = require(\"tslib\");\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst layout_1 = require(\"./layout\");\nconst video_css_1 = tslib_1.__importDefault(require(\"../styles/models/video.css\"));\nclass VideoView extends layout_1.HTMLBoxView {\n    constructor() {\n        super(...arguments);\n        this._blocked = false;\n        this._setting = false;\n    }\n    initialize() {\n        super.initialize();\n        this._time = Date.now();\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { loop, paused, muted, autoplay, time, value, volume } = this.model.properties;\n        this.on_change(loop, () => this.set_loop());\n        this.on_change(paused, () => this.set_paused());\n        this.on_change(muted, () => this.set_muted());\n        this.on_change(autoplay, () => this.set_autoplay());\n        this.on_change(time, () => this.set_time());\n        this.on_change(value, () => this.set_value());\n        this.on_change(volume, () => this.set_volume());\n    }\n    stylesheets() {\n        return [...super.stylesheets(), video_css_1.default];\n    }\n    render() {\n        super.render();\n        this.video_el = document.createElement(\"video\");\n        const container_el = document.createElement(\"div\");\n        container_el.className = \"pn-video-container\";\n        container_el.style.height = \"100%\";\n        container_el.style.width = \"100%\";\n        const { sizing_mode } = this.model;\n        if (sizing_mode == null || sizing_mode === \"fixed\") {\n            const { width, height } = this.model;\n            if (width != null) {\n                this.video_el.width = width;\n            }\n            if (height != null) {\n                this.video_el.height = height;\n            }\n        }\n        const { max_width, max_height } = this.model;\n        if (max_width != null) {\n            this.video_el.style.maxWidth = (0, dom_1.px)(max_width);\n        }\n        if (max_height != null) {\n            this.video_el.style.maxHeight = (0, dom_1.px)(max_height);\n        }\n        this.video_el.controls = true;\n        this.video_el.src = this.model.value;\n        this.video_el.currentTime = this.model.time;\n        this.video_el.loop = this.model.loop;\n        this.video_el.muted = this.model.muted;\n        this.video_el.autoplay = this.model.autoplay;\n        if (this.model.volume != null) {\n            this.video_el.volume = this.model.volume / 100;\n        }\n        else {\n            this.model.volume = this.video_el.volume * 100;\n        }\n        this.video_el.onpause = () => this.model.paused = true;\n        this.video_el.onplay = () => this.model.paused = false;\n        this.video_el.ontimeupdate = () => this.update_time();\n        this.video_el.onvolumechange = () => this.update_volume();\n        container_el.append(this.video_el);\n        this.shadow_el.append(container_el);\n        if (!this.model.paused) {\n            void this.video_el.play();\n        }\n    }\n    update_time() {\n        if (this._setting) {\n            this._setting = false;\n            return;\n        }\n        if ((Date.now() - this._time) < this.model.throttle) {\n            return;\n        }\n        this._blocked = true;\n        this.model.time = this.video_el.currentTime;\n        this._time = Date.now();\n    }\n    update_volume() {\n        if (this._setting) {\n            this._setting = false;\n            return;\n        }\n        this._blocked = true;\n        this.model.volume = this.video_el.volume * 100;\n    }\n    set_loop() {\n        this.video_el.loop = this.model.loop;\n    }\n    set_muted() {\n        this.video_el.muted = this.model.muted;\n    }\n    set_autoplay() {\n        this.video_el.autoplay = this.model.autoplay;\n    }\n    set_paused() {\n        const { paused } = this.model;\n        if (!this.video_el.paused && paused) {\n            this.video_el.pause();\n        }\n        if (this.video_el.paused && !paused) {\n            void this.video_el.play();\n        }\n    }\n    set_volume() {\n        if (this._blocked) {\n            this._blocked = false;\n            return;\n        }\n        this._setting = true;\n        const { volume } = this.model;\n        if (volume != null) {\n            this.video_el.volume = volume / 100;\n        }\n    }\n    set_time() {\n        if (this._blocked) {\n            this._blocked = false;\n            return;\n        }\n        this._setting = true;\n        this.video_el.currentTime = this.model.time;\n    }\n    set_value() {\n        this.video_el.src = this.model.value;\n    }\n}\nexports.VideoView = VideoView;\nVideoView.__name__ = \"VideoView\";\nclass Video extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.Video = Video;\n_a = Video;\nVideo.__name__ = \"Video\";\nVideo.__module__ = \"panel.models.widgets\";\n(() => {\n    _a.prototype.default_view = VideoView;\n    _a.define(({ Bool, Int, Float, Str, Nullable }) => ({\n        loop: [Bool, false],\n        paused: [Bool, true],\n        muted: [Bool, false],\n        autoplay: [Bool, false],\n        time: [Float, 0],\n        throttle: [Int, 250],\n        value: [Str, \"\"],\n        volume: [Nullable(Int), null],\n    }));\n})();\n//# sourceMappingURL=video.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"],["../styles/models/video.css","/home/runner/work/panel/panel/panel/dist/lib/styles/models/video.css.js"]],"dependency_map":[],"exported":[{"type":"named","name":"VideoView"},{"type":"named","name":"Video"}],"externals":[],"shims":[]},"code":{"source":"/* models/video.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    const video_css_1 = tslib_1.__importDefault(require(\"dfe21e6f1b\") /* ../styles/models/video.css */);\n    class VideoView extends layout_1.HTMLBoxView {\n        constructor() {\n            super(...arguments);\n            this._blocked = false;\n            this._setting = false;\n        }\n        initialize() {\n            super.initialize();\n            this._time = Date.now();\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { loop, paused, muted, autoplay, time, value, volume } = this.model.properties;\n            this.on_change(loop, () => this.set_loop());\n            this.on_change(paused, () => this.set_paused());\n            this.on_change(muted, () => this.set_muted());\n            this.on_change(autoplay, () => this.set_autoplay());\n            this.on_change(time, () => this.set_time());\n            this.on_change(value, () => this.set_value());\n            this.on_change(volume, () => this.set_volume());\n        }\n        stylesheets() {\n            return [...super.stylesheets(), video_css_1.default];\n        }\n        render() {\n            super.render();\n            this.video_el = document.createElement(\"video\");\n            const container_el = document.createElement(\"div\");\n            container_el.className = \"pn-video-container\";\n            container_el.style.height = \"100%\";\n            container_el.style.width = \"100%\";\n            const { sizing_mode } = this.model;\n            if (sizing_mode == null || sizing_mode === \"fixed\") {\n                const { width, height } = this.model;\n                if (width != null) {\n                    this.video_el.width = width;\n                }\n                if (height != null) {\n                    this.video_el.height = height;\n                }\n            }\n            const { max_width, max_height } = this.model;\n            if (max_width != null) {\n                this.video_el.style.maxWidth = (0, dom_1.px)(max_width);\n            }\n            if (max_height != null) {\n                this.video_el.style.maxHeight = (0, dom_1.px)(max_height);\n            }\n            this.video_el.controls = true;\n            this.video_el.src = this.model.value;\n            this.video_el.currentTime = this.model.time;\n            this.video_el.loop = this.model.loop;\n            this.video_el.muted = this.model.muted;\n            this.video_el.autoplay = this.model.autoplay;\n            if (this.model.volume != null) {\n                this.video_el.volume = this.model.volume / 100;\n            }\n            else {\n                this.model.volume = this.video_el.volume * 100;\n            }\n            this.video_el.onpause = () => this.model.paused = true;\n            this.video_el.onplay = () => this.model.paused = false;\n            this.video_el.ontimeupdate = () => this.update_time();\n            this.video_el.onvolumechange = () => this.update_volume();\n            container_el.append(this.video_el);\n            this.shadow_el.append(container_el);\n            if (!this.model.paused) {\n                void this.video_el.play();\n            }\n        }\n        update_time() {\n            if (this._setting) {\n                this._setting = false;\n                return;\n            }\n            if ((Date.now() - this._time) < this.model.throttle) {\n                return;\n            }\n            this._blocked = true;\n            this.model.time = this.video_el.currentTime;\n            this._time = Date.now();\n        }\n        update_volume() {\n            if (this._setting) {\n                this._setting = false;\n                return;\n            }\n            this._blocked = true;\n            this.model.volume = this.video_el.volume * 100;\n        }\n        set_loop() {\n            this.video_el.loop = this.model.loop;\n        }\n        set_muted() {\n            this.video_el.muted = this.model.muted;\n        }\n        set_autoplay() {\n            this.video_el.autoplay = this.model.autoplay;\n        }\n        set_paused() {\n            const { paused } = this.model;\n            if (!this.video_el.paused && paused) {\n                this.video_el.pause();\n            }\n            if (this.video_el.paused && !paused) {\n                void this.video_el.play();\n            }\n        }\n        set_volume() {\n            if (this._blocked) {\n                this._blocked = false;\n                return;\n            }\n            this._setting = true;\n            const { volume } = this.model;\n            if (volume != null) {\n                this.video_el.volume = volume / 100;\n            }\n        }\n        set_time() {\n            if (this._blocked) {\n                this._blocked = false;\n                return;\n            }\n            this._setting = true;\n            this.video_el.currentTime = this.model.time;\n        }\n        set_value() {\n            this.video_el.src = this.model.value;\n        }\n    }\n    exports.VideoView = VideoView;\n    VideoView.__name__ = \"VideoView\";\n    class Video extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.Video = Video;\n    _a = Video;\n    Video.__name__ = \"Video\";\n    Video.__module__ = \"panel.models.widgets\";\n    (() => {\n        _a.prototype.default_view = VideoView;\n        _a.define(({ Bool, Int, Float, Str, Nullable }) => ({\n            loop: [Bool, false],\n            paused: [Bool, true],\n            muted: [Bool, false],\n            autoplay: [Bool, false],\n            time: [Float, 0],\n            throttle: [Int, 250],\n            value: [Str, \"\"],\n            volume: [Nullable(Int), null],\n        }));\n    })();\n}\n","min_source":"function _(e,t,i,s,o){var l;s();const d=e(\"tslib\"),h=e(\"@bokehjs/core/dom\"),_=e(\"dab42e6dad\"),u=d.__importDefault(e(\"dfe21e6f1b\"));class a extends _.HTMLBoxView{constructor(){super(...arguments),this._blocked=!1,this._setting=!1}initialize(){super.initialize(),this._time=Date.now()}connect_signals(){super.connect_signals();const{loop:e,paused:t,muted:i,autoplay:s,time:o,value:l,volume:d}=this.model.properties;this.on_change(e,(()=>this.set_loop())),this.on_change(t,(()=>this.set_paused())),this.on_change(i,(()=>this.set_muted())),this.on_change(s,(()=>this.set_autoplay())),this.on_change(o,(()=>this.set_time())),this.on_change(l,(()=>this.set_value())),this.on_change(d,(()=>this.set_volume()))}stylesheets(){return[...super.stylesheets(),u.default]}render(){super.render(),this.video_el=document.createElement(\"video\");const e=document.createElement(\"div\");e.className=\"pn-video-container\",e.style.height=\"100%\",e.style.width=\"100%\";const{sizing_mode:t}=this.model;if(null==t||\"fixed\"===t){const{width:e,height:t}=this.model;null!=e&&(this.video_el.width=e),null!=t&&(this.video_el.height=t)}const{max_width:i,max_height:s}=this.model;null!=i&&(this.video_el.style.maxWidth=(0,h.px)(i)),null!=s&&(this.video_el.style.maxHeight=(0,h.px)(s)),this.video_el.controls=!0,this.video_el.src=this.model.value,this.video_el.currentTime=this.model.time,this.video_el.loop=this.model.loop,this.video_el.muted=this.model.muted,this.video_el.autoplay=this.model.autoplay,null!=this.model.volume?this.video_el.volume=this.model.volume/100:this.model.volume=100*this.video_el.volume,this.video_el.onpause=()=>this.model.paused=!0,this.video_el.onplay=()=>this.model.paused=!1,this.video_el.ontimeupdate=()=>this.update_time(),this.video_el.onvolumechange=()=>this.update_volume(),e.append(this.video_el),this.shadow_el.append(e),this.model.paused||this.video_el.play()}update_time(){this._setting?this._setting=!1:Date.now()-this._time<this.model.throttle||(this._blocked=!0,this.model.time=this.video_el.currentTime,this._time=Date.now())}update_volume(){this._setting?this._setting=!1:(this._blocked=!0,this.model.volume=100*this.video_el.volume)}set_loop(){this.video_el.loop=this.model.loop}set_muted(){this.video_el.muted=this.model.muted}set_autoplay(){this.video_el.autoplay=this.model.autoplay}set_paused(){const{paused:e}=this.model;!this.video_el.paused&&e&&this.video_el.pause(),this.video_el.paused&&!e&&this.video_el.play()}set_volume(){if(this._blocked)return void(this._blocked=!1);this._setting=!0;const{volume:e}=this.model;null!=e&&(this.video_el.volume=e/100)}set_time(){this._blocked?this._blocked=!1:(this._setting=!0,this.video_el.currentTime=this.model.time)}set_value(){this.video_el.src=this.model.value}}i.VideoView=a,a.__name__=\"VideoView\";class n extends _.HTMLBox{constructor(e){super(e)}}i.Video=n,l=n,n.__name__=\"Video\",n.__module__=\"panel.models.widgets\",l.prototype.default_view=a,l.define((({Bool:e,Int:t,Float:i,Str:s,Nullable:o})=>({loop:[e,!1],paused:[e,!0],muted:[e,!1],autoplay:[e,!1],time:[i,0],throttle:[t,250],value:[s,\"\"],volume:[o(t),null]})))}\n//# sourceMappingURL=video.min.js.map","min_map":"{\"version\":3,\"file\":\"video.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"tslib_1\",\"dom_1\",\"layout_1\",\"video_css_1\",\"__importDefault\",\"VideoView\",\"HTMLBoxView\",\"constructor\",\"super\",\"arguments\",\"this\",\"_blocked\",\"_setting\",\"initialize\",\"_time\",\"Date\",\"now\",\"connect_signals\",\"loop\",\"paused\",\"muted\",\"autoplay\",\"time\",\"value\",\"volume\",\"model\",\"properties\",\"on_change\",\"set_loop\",\"set_paused\",\"set_muted\",\"set_autoplay\",\"set_time\",\"set_value\",\"set_volume\",\"stylesheets\",\"default\",\"render\",\"video_el\",\"document\",\"createElement\",\"container_el\",\"className\",\"style\",\"height\",\"width\",\"sizing_mode\",\"max_width\",\"max_height\",\"maxWidth\",\"px\",\"maxHeight\",\"controls\",\"src\",\"currentTime\",\"onpause\",\"onplay\",\"ontimeupdate\",\"update_time\",\"onvolumechange\",\"update_volume\",\"append\",\"shadow_el\",\"play\",\"throttle\",\"pause\",\"__name__\",\"Video\",\"HTMLBox\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Bool\",\"Int\",\"Float\",\"Str\",\"Nullable\"],\"sources\":[\"0\"],\"mappings\":\"AAAsB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACnE,IAAIC,EACJF,IACA,MAAMG,EAAUN,EAAQ,SAClBO,EAAQP,EAAQ,qBAChBQ,EAAWR,EAAQ,cACnBS,EAAcH,EAAQI,gBAAgBV,EAAQ,eACpD,MAAMW,UAAkBH,EAASI,YAC7B,WAAAC,GACIC,SAASC,WACTC,KAAKC,UAAW,EAChBD,KAAKE,UAAW,CACpB,CACA,UAAAC,GACIL,MAAMK,aACNH,KAAKI,MAAQC,KAAKC,KACtB,CACA,eAAAC,GACIT,MAAMS,kBACN,MAAMC,KAAEA,EAAIC,OAAEA,EAAMC,MAAEA,EAAKC,SAAEA,EAAQC,KAAEA,EAAIC,MAAEA,EAAKC,OAAEA,GAAWd,KAAKe,MAAMC,WAC1EhB,KAAKiB,UAAUT,GAAM,IAAMR,KAAKkB,aAChClB,KAAKiB,UAAUR,GAAQ,IAAMT,KAAKmB,eAClCnB,KAAKiB,UAAUP,GAAO,IAAMV,KAAKoB,cACjCpB,KAAKiB,UAAUN,GAAU,IAAMX,KAAKqB,iBACpCrB,KAAKiB,UAAUL,GAAM,IAAMZ,KAAKsB,aAChCtB,KAAKiB,UAAUJ,GAAO,IAAMb,KAAKuB,cACjCvB,KAAKiB,UAAUH,GAAQ,IAAMd,KAAKwB,cACtC,CACA,WAAAC,GACI,MAAO,IAAI3B,MAAM2B,cAAehC,EAAYiC,QAChD,CACA,MAAAC,GACI7B,MAAM6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AAKoE,EACLA,EAAMD,SAAW,QACjBC,EAAMG,WAAa,uBAEfvE,EAAGwE,UAAUC,aAAenE,EAC5BN,EAAG0E,QAAO,EAAGC,OAAMC,MAAKC,QAAOC,MAAKC,eAAe,CAC/C5D,KAAM,CAACwD,GAAM,GACbvD,OAAQ,CAACuD,GAAM,GACftD,MAAO,CAACsD,GAAM,GACdrD,SAAU,CAACqD,GAAM,GACjBpD,KAAM,CAACsD,EAAO,GACdZ,SAAU,CAACW,EAAK,KAChBpD,MAAO,CAACsD,EAAK,IACbrD,OAAQ,CAACsD,EAASH,GAAM,SAGpC\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/styles/models/video.css.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"styles/models/video.css.js","canonical":"styles/models/video.css","resolution":"ESM","id":"dfe21e6f1b","hash":"dfe21e6f1b73bb1b65c8e2a1c30acea77a7801278ab4b8fd4b8262fb1577f3d5","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = `video{object-fit:fill;width:100%;height:100%;}`;\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"default"}],"externals":[],"shims":[]},"code":{"source":"/* styles/models/video.css.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.default = `video{object-fit:fill;width:100%;height:100%;}`;\n}\n","min_source":"function _(i,t,e,f,d){f(),e.default=\"video{object-fit:fill;width:100%;height:100%;}\"}\n//# sourceMappingURL=video.css.min.js.map","min_map":"{\"version\":3,\"file\":\"video.css.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"default\"],\"sources\":[\"0\"],\"mappings\":\"AAAiC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC9ED,IACAD,EAAQG,QAAU,gDACtB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/videostream.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/videostream.js","canonical":"models/videostream","resolution":"ESM","id":"f8afc4e661","hash":"f8afc4e661fb607ed64ae411f636b1bfd85e58a7648f163014a3670389435b07","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VideoStream = exports.VideoStreamView = void 0;\nconst layout_1 = require(\"./layout\");\nclass VideoStreamView extends layout_1.HTMLBoxView {\n    constructor() {\n        super(...arguments);\n        this.constraints = {\n            audio: false,\n            video: true,\n        };\n    }\n    initialize() {\n        super.initialize();\n        if (this.model.timeout !== null) {\n            this.set_timeout();\n        }\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { timeout, snapshot, paused } = this.model.properties;\n        this.on_change(timeout, () => this.set_timeout());\n        this.on_change(snapshot, () => this.snapshot());\n        this.on_change(paused, () => this.pause());\n    }\n    pause() {\n        if (this.model.paused) {\n            if (this.timer != null) {\n                clearInterval(this.timer);\n                this.timer = null;\n            }\n            this.videoEl.pause();\n        }\n        else {\n            this.videoEl.play();\n        }\n        this.set_timeout();\n    }\n    set_timeout() {\n        if (this.timer) {\n            clearInterval(this.timer);\n            this.timer = null;\n        }\n        if (this.model.timeout != null && this.model.timeout > 0) {\n            this.timer = setInterval(() => this.snapshot(), this.model.timeout);\n        }\n    }\n    snapshot() {\n        this.canvasEl.width = this.videoEl.videoWidth;\n        this.canvasEl.height = this.videoEl.videoHeight;\n        const context = this.canvasEl.getContext(\"2d\");\n        if (context) {\n            context.drawImage(this.videoEl, 0, 0, this.canvasEl.width, this.canvasEl.height);\n        }\n        this.model.value = this.canvasEl.toDataURL(`image/${this.model.format}`, 0.95);\n    }\n    remove() {\n        super.remove();\n        if (this.timer) {\n            clearInterval(this.timer);\n            this.timer = null;\n        }\n    }\n    render() {\n        super.render();\n        if (this.videoEl) {\n            return;\n        }\n        this.videoEl = document.createElement(\"video\");\n        if (!this.model.sizing_mode || this.model.sizing_mode === \"fixed\") {\n            if (this.model.height) {\n                this.videoEl.height = this.model.height;\n            }\n            if (this.model.width) {\n                this.videoEl.width = this.model.width;\n            }\n        }\n        this.videoEl.style.objectFit = \"fill\";\n        this.videoEl.style.minWidth = \"100%\";\n        this.videoEl.style.minHeight = \"100%\";\n        this.canvasEl = document.createElement(\"canvas\");\n        this.shadow_el.appendChild(this.videoEl);\n        if (navigator.mediaDevices.getUserMedia) {\n            navigator.mediaDevices.getUserMedia(this.constraints)\n                .then(stream => {\n                this.videoEl.srcObject = stream;\n                if (!this.model.paused) {\n                    this.videoEl.play();\n                }\n            })\n                .catch(console.error);\n        }\n    }\n}\nexports.VideoStreamView = VideoStreamView;\nVideoStreamView.__name__ = \"VideoStreamView\";\nclass VideoStream extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.VideoStream = VideoStream;\n_a = VideoStream;\nVideoStream.__name__ = \"VideoStream\";\nVideoStream.__module__ = \"panel.models.widgets\";\n(() => {\n    _a.prototype.default_view = VideoStreamView;\n    _a.define(({ Any, Bool, Int, Nullable, Str }) => ({\n        format: [Str, \"png\"],\n        paused: [Bool, false],\n        snapshot: [Bool, false],\n        timeout: [Nullable(Int), null],\n        value: [Any],\n    }));\n    _a.override({\n        height: 240,\n        width: 320,\n    });\n})();\n//# sourceMappingURL=videostream.js.map\n","type":"js","dependency_paths":[["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"]],"dependency_map":[],"exported":[{"type":"named","name":"VideoStreamView"},{"type":"named","name":"VideoStream"}],"externals":[],"shims":[]},"code":{"source":"/* models/videostream.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    class VideoStreamView extends layout_1.HTMLBoxView {\n        constructor() {\n            super(...arguments);\n            this.constraints = {\n                audio: false,\n                video: true,\n            };\n        }\n        initialize() {\n            super.initialize();\n            if (this.model.timeout !== null) {\n                this.set_timeout();\n            }\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { timeout, snapshot, paused } = this.model.properties;\n            this.on_change(timeout, () => this.set_timeout());\n            this.on_change(snapshot, () => this.snapshot());\n            this.on_change(paused, () => this.pause());\n        }\n        pause() {\n            if (this.model.paused) {\n                if (this.timer != null) {\n                    clearInterval(this.timer);\n                    this.timer = null;\n                }\n                this.videoEl.pause();\n            }\n            else {\n                this.videoEl.play();\n            }\n            this.set_timeout();\n        }\n        set_timeout() {\n            if (this.timer) {\n                clearInterval(this.timer);\n                this.timer = null;\n            }\n            if (this.model.timeout != null && this.model.timeout > 0) {\n                this.timer = setInterval(() => this.snapshot(), this.model.timeout);\n            }\n        }\n        snapshot() {\n            this.canvasEl.width = this.videoEl.videoWidth;\n            this.canvasEl.height = this.videoEl.videoHeight;\n            const context = this.canvasEl.getContext(\"2d\");\n            if (context) {\n                context.drawImage(this.videoEl, 0, 0, this.canvasEl.width, this.canvasEl.height);\n            }\n            this.model.value = this.canvasEl.toDataURL(`image/${this.model.format}`, 0.95);\n        }\n        remove() {\n            super.remove();\n            if (this.timer) {\n                clearInterval(this.timer);\n                this.timer = null;\n            }\n        }\n        render() {\n            super.render();\n            if (this.videoEl) {\n                return;\n            }\n            this.videoEl = document.createElement(\"video\");\n            if (!this.model.sizing_mode || this.model.sizing_mode === \"fixed\") {\n                if (this.model.height) {\n                    this.videoEl.height = this.model.height;\n                }\n                if (this.model.width) {\n                    this.videoEl.width = this.model.width;\n                }\n            }\n            this.videoEl.style.objectFit = \"fill\";\n            this.videoEl.style.minWidth = \"100%\";\n            this.videoEl.style.minHeight = \"100%\";\n            this.canvasEl = document.createElement(\"canvas\");\n            this.shadow_el.appendChild(this.videoEl);\n            if (navigator.mediaDevices.getUserMedia) {\n                navigator.mediaDevices.getUserMedia(this.constraints)\n                    .then(stream => {\n                    this.videoEl.srcObject = stream;\n                    if (!this.model.paused) {\n                        this.videoEl.play();\n                    }\n                })\n                    .catch(console.error);\n            }\n        }\n    }\n    exports.VideoStreamView = VideoStreamView;\n    VideoStreamView.__name__ = \"VideoStreamView\";\n    class VideoStream extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.VideoStream = VideoStream;\n    _a = VideoStream;\n    VideoStream.__name__ = \"VideoStream\";\n    VideoStream.__module__ = \"panel.models.widgets\";\n    (() => {\n        _a.prototype.default_view = VideoStreamView;\n        _a.define(({ Any, Bool, Int, Nullable, Str }) => ({\n            format: [Str, \"png\"],\n            paused: [Bool, false],\n            snapshot: [Bool, false],\n            timeout: [Nullable(Int), null],\n            value: [Any],\n        }));\n        _a.override({\n            height: 240,\n            width: 320,\n        });\n    })();\n}\n","min_source":"function _(e,t,i,s,o){var h;s();const l=e(\"dab42e6dad\");class a extends l.HTMLBoxView{constructor(){super(...arguments),this.constraints={audio:!1,video:!0}}initialize(){super.initialize(),null!==this.model.timeout&&this.set_timeout()}connect_signals(){super.connect_signals();const{timeout:e,snapshot:t,paused:i}=this.model.properties;this.on_change(e,(()=>this.set_timeout())),this.on_change(t,(()=>this.snapshot())),this.on_change(i,(()=>this.pause()))}pause(){this.model.paused?(null!=this.timer&&(clearInterval(this.timer),this.timer=null),this.videoEl.pause()):this.videoEl.play(),this.set_timeout()}set_timeout(){this.timer&&(clearInterval(this.timer),this.timer=null),null!=this.model.timeout&&this.model.timeout>0&&(this.timer=setInterval((()=>this.snapshot()),this.model.timeout))}snapshot(){this.canvasEl.width=this.videoEl.videoWidth,this.canvasEl.height=this.videoEl.videoHeight;const e=this.canvasEl.getContext(\"2d\");e&&e.drawImage(this.videoEl,0,0,this.canvasEl.width,this.canvasEl.height),this.model.value=this.canvasEl.toDataURL(`image/${this.model.format}`,.95)}remove(){super.remove(),this.timer&&(clearInterval(this.timer),this.timer=null)}render(){super.render(),this.videoEl||(this.videoEl=document.createElement(\"video\"),this.model.sizing_mode&&\"fixed\"!==this.model.sizing_mode||(this.model.height&&(this.videoEl.height=this.model.height),this.model.width&&(this.videoEl.width=this.model.width)),this.videoEl.style.objectFit=\"fill\",this.videoEl.style.minWidth=\"100%\",this.videoEl.style.minHeight=\"100%\",this.canvasEl=document.createElement(\"canvas\"),this.shadow_el.appendChild(this.videoEl),navigator.mediaDevices.getUserMedia&&navigator.mediaDevices.getUserMedia(this.constraints).then((e=>{this.videoEl.srcObject=e,this.model.paused||this.videoEl.play()})).catch(console.error))}}i.VideoStreamView=a,a.__name__=\"VideoStreamView\";class d extends l.HTMLBox{constructor(e){super(e)}}i.VideoStream=d,h=d,d.__name__=\"VideoStream\",d.__module__=\"panel.models.widgets\",h.prototype.default_view=a,h.define((({Any:e,Bool:t,Int:i,Nullable:s,Str:o})=>({format:[o,\"png\"],paused:[t,!1],snapshot:[t,!1],timeout:[s(i),null],value:[e]}))),h.override({height:240,width:320})}\n//# sourceMappingURL=videostream.min.js.map","min_map":"{\"version\":3,\"file\":\"videostream.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"layout_1\",\"VideoStreamView\",\"HTMLBoxView\",\"constructor\",\"super\",\"arguments\",\"this\",\"constraints\",\"audio\",\"video\",\"initialize\",\"model\",\"timeout\",\"set_timeout\",\"connect_signals\",\"snapshot\",\"paused\",\"properties\",\"on_change\",\"pause\",\"timer\",\"clearInterval\",\"videoEl\",\"play\",\"setInterval\",\"canvasEl\",\"width\",\"videoWidth\",\"height\",\"videoHeight\",\"context\",\"getContext\",\"drawImage\",\"value\",\"toDataURL\",\"format\",\"remove\",\"render\",\"document\",\"createElement\",\"sizing_mode\",\"style\",\"objectFit\",\"minWidth\",\"minHeight\",\"shadow_el\",\"appendChild\",\"navigator\",\"mediaDevices\",\"getUserMedia\",\"then\",\"stream\",\"srcObject\",\"catch\",\"console\",\"error\",\"__name__\",\"VideoStream\",\"HTMLBox\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Any\",\"Bool\",\"Int\",\"Nullable\",\"Str\",\"override\"],\"sources\":[\"0\"],\"mappings\":\"AAA4B,SAASA,EAAEC,EAASC,EAAQC,EAASC,E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ib/models/vizzu.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/vizzu.js","canonical":"models/vizzu","resolution":"ESM","id":"1f7bc1f95b","hash":"1f7bc1f95bb9f9df7567af5d356167f86885d408e18269f8241877230b40256d","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VizzuChart = exports.VizzuChartView = exports.VizzuEvent = void 0;\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst types_1 = require(\"@bokehjs/core/util/types\");\nconst column_data_source_1 = require(\"@bokehjs/models/sources/column_data_source\");\nconst bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\nconst debounce_1 = require(\"debounce\");\nconst layout_1 = require(\"./layout\");\nclass VizzuEvent extends bokeh_events_1.ModelEvent {\n    constructor(data) {\n        super();\n        this.event_name = \"vizzu_event\";\n        this.publish = true;\n        this.data = data;\n    }\n    get event_values() {\n        return { model: this.origin, data: this.data };\n    }\n}\nexports.VizzuEvent = VizzuEvent;\nVizzuEvent.__name__ = \"VizzuEvent\";\nconst VECTORIZED_PROPERTIES = [\"x\", \"y\", \"color\", \"label\", \"lightness\", \"size\", \"splittedBy\", \"dividedBy\"];\nclass VizzuChartView extends layout_1.HTMLBoxView {\n    constructor() {\n        super(...arguments);\n        this.update = [];\n        this._animating = false;\n    }\n    connect_signals() {\n        super.connect_signals();\n        const update = (0, debounce_1.debounce)(() => {\n            if (!this.valid_config) {\n                console.warn(\"Vizzu config not valid given current data.\");\n                return;\n            }\n            else if ((this.update.length === 0) || this._animating) {\n                return;\n            }\n            else {\n                let change = {};\n                for (const prop of this.update) {\n                    if (prop === \"config\") {\n                        change = { ...change, config: this.config() };\n                    }\n                    else if (prop === \"data\") {\n                        change = { ...change, data: this.data() };\n                    }\n                    else {\n                        change = { ...change, style: this.model.style };\n                    }\n                }\n                this._animating = true;\n                this.vizzu_view.animate(change, `${this.model.duration}ms`).then(() => {\n                    this._animating = false;\n                    if (this.update.length > 0) {\n                        update();\n                    }\n                });\n                this.update = [];\n            }\n        }, 20);\n        const update_prop = (prop) => {\n            if (!this.update.includes(prop)) {\n                this.update.push(prop);\n            }\n            update();\n        };\n        const { config, tooltip, style } = this.model.properties;\n        this.on_change(config, () => update_prop(\"config\"));\n        this.on_change(this.model.source.properties.data, () => update_prop(\"data\"));\n        this.connect(this.model.source.streaming, () => update_prop(\"data\"));\n        this.connect(this.model.source.patching, () => update_prop(\"data\"));\n        this.on_change(tooltip, () => {\n            this.vizzu_view.feature(\"tooltip\", this.model.tooltip);\n        });\n        this.on_change(style, () => update_prop(\"style\"));\n    }\n    get valid_config() {\n        const columns = this.model.source.columns();\n        if (\"channels\" in this.model.config) {\n            for (const col of Object.values(this.model.config.channels)) {\n                if ((0, types_1.isArray)(col)) {\n                    for (const c of col) {\n                        if (col != null && !columns.includes(c)) {\n                            return false;\n                        }\n                    }\n                }\n                else if ((0, types_1.isObject)(col)) {\n                    for (const prop of Object.keys(col)) {\n                        for (const c of col[prop]) {\n                            if (col != null && !columns.includes(c)) {\n                                return false;\n                            }\n                        }\n                    }\n                }\n                else if (col != null && !columns.includes(col)) {\n                    return false;\n                }\n            }\n        }\n        else {\n            for (const prop of VECTORIZED_PROPERTIES) {\n                if (prop in this.model.config && !columns.includes(this.model.config[prop])) {\n                    return false;\n                }\n            }\n        }\n        return true;\n    }\n    config() {\n        let config = { ...this.model.config };\n        if (\"channels\" in config) {\n            config.channels = { ...config.channels };\n        }\n        if (config.preset != undefined) {\n            config = window.Vizzu.presets[config.preset](config);\n        }\n        return config;\n    }\n    data() {\n        const series = [];\n        for (const column of this.model.columns) {\n            let array = [...this.model.source.get_array(column.name)];\n            if (column.type === \"datetime\" || column.type == \"date\") {\n                column.type = \"dimension\";\n            }\n            if (column.type === \"dimension\") {\n                array = array.map(String);\n            }\n            series.push({ ...column, values: array });\n        }\n        return { series };\n    }\n    render() {\n        super.render();\n        this.container = (0, dom_1.div)({ style: { display: \"contents\" } });\n        this.shadow_el.append(this.container);\n        const state = { config: this.config(), data: this.data(), style: this.model.style };\n        this.vizzu_view = new window.Vizzu(this.container, state);\n        this._animating = true;\n        this.vizzu_view.initializing.then((chart) => {\n            chart.on(\"click\", (event) => {\n                this.model.trigger_event(new VizzuEvent({ ...event.target, ...event.detail }));\n            });\n            chart.feature(\"tooltip\", this.model.tooltip);\n            this._animating = false;\n        });\n    }\n    remove() {\n        if (this.vizzu_view) {\n            this.vizzu_view.detach();\n        }\n        super.remove();\n    }\n}\nexports.VizzuChartView = VizzuChartView;\nVizzuChartView.__name__ = \"VizzuChartView\";\nclass VizzuChart extends layout_1.HTMLBox {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.VizzuChart = VizzuChart;\n_a = VizzuChart;\nVizzuChart.__name__ = \"VizzuChart\";\nVizzuChart.__module__ = \"panel.models.vizzu\";\n(() => {\n    _a.prototype.default_view = VizzuChartView;\n    _a.define(({ Any, List, Bool, Float, Ref }) => ({\n        animation: [Any, {}],\n        config: [Any, {}],\n        columns: [List(Any), []],\n        source: [Ref(column_data_source_1.ColumnDataSource)],\n        duration: [Float, 500],\n        style: [Any, {}],\n        tooltip: [Bool, false],\n    }));\n})();\n//# sourceMappingURL=vizzu.js.map\n","type":"js","dependency_paths":[["debounce","/home/runner/work/panel/panel/panel/node_modules/debounce/index.js"],["./layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"]],"dependency_map":[],"exported":[{"type":"named","name":"VizzuEvent"},{"type":"named","name":"VizzuChartView"},{"type":"named","name":"VizzuChart"}],"externals":[],"shims":[]},"code":{"source":"/* models/vizzu.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const types_1 = require(\"@bokehjs/core/util/types\");\n    const column_data_source_1 = require(\"@bokehjs/models/sources/column_data_source\");\n    const bokeh_events_1 = require(\"@bokehjs/core/bokeh_events\");\n    const debounce_1 = require(\"99a25e6992\") /* debounce */;\n    const layout_1 = require(\"dab42e6dad\") /* ./layout */;\n    class VizzuEvent extends bokeh_events_1.ModelEvent {\n        constructor(data) {\n            super();\n            this.event_name = \"vizzu_event\";\n            this.publish = true;\n            this.data = data;\n        }\n        get event_values() {\n            return { model: this.origin, data: this.data };\n        }\n    }\n    exports.VizzuEvent = VizzuEvent;\n    VizzuEvent.__name__ = \"VizzuEvent\";\n    const VECTORIZED_PROPERTIES = [\"x\", \"y\", \"color\", \"label\", \"lightness\", \"size\", \"splittedBy\", \"dividedBy\"];\n    class VizzuChartView extends layout_1.HTMLBoxView {\n        constructor() {\n            super(...arguments);\n            this.update = [];\n            this._animating = false;\n        }\n        connect_signals() {\n            super.connect_signals();\n            const update = (0, debounce_1.debounce)(() => {\n                if (!this.valid_config) {\n                    console.warn(\"Vizzu config not valid given current data.\");\n                    return;\n                }\n                else if ((this.update.length === 0) || this._animating) {\n                    return;\n                }\n                else {\n                    let change = {};\n                    for (const prop of this.update) {\n                        if (prop === \"config\") {\n                            change = { ...change, config: this.config() };\n                        }\n                        else if (prop === \"data\") {\n                            change = { ...change, data: this.data() };\n                        }\n                        else {\n                            change = { ...change, style: this.model.style };\n                        }\n                    }\n                    this._animating = true;\n                    this.vizzu_view.animate(change, `${this.model.duration}ms`).then(() => {\n                        this._animating = false;\n                        if (this.update.length > 0) {\n                            update();\n                        }\n                    });\n                    this.update = [];\n                }\n            }, 20);\n            const update_prop = (prop) => {\n                if (!this.update.includes(prop)) {\n                    this.update.push(prop);\n                }\n                update();\n            };\n            const { config, tooltip, style } = this.model.properties;\n            this.on_change(config, () => update_prop(\"config\"));\n            this.on_change(this.model.source.properties.data, () => update_prop(\"data\"));\n            this.connect(this.model.source.streaming, () => update_prop(\"data\"));\n            this.connect(this.model.source.patching, () => update_prop(\"data\"));\n            this.on_change(tooltip, () => {\n                this.vizzu_view.feature(\"tooltip\", this.model.tooltip);\n            });\n            this.on_change(style, () => update_prop(\"style\"));\n        }\n        get valid_config() {\n            const columns = this.model.source.columns();\n            if (\"channels\" in this.model.config) {\n                for (const col of Object.values(this.model.config.channels)) {\n                    if ((0, types_1.isArray)(col)) {\n                        for (const c of col) {\n                            if (col != null && !columns.includes(c)) {\n                                return false;\n                            }\n                        }\n                    }\n                    else if ((0, types_1.isObject)(col)) {\n                        for (const prop of Object.keys(col)) {\n                            for (const c of col[prop]) {\n                                if (col != null && !columns.includes(c)) {\n                                    return false;\n                                }\n                            }\n                        }\n                    }\n                    else if (col != null && !columns.includes(col)) {\n                        return false;\n                    }\n                }\n            }\n            else {\n                for (const prop of VECTORIZED_PROPERTIES) {\n                    if (prop in this.model.config && !columns.includes(this.model.config[prop])) {\n                        return false;\n                    }\n                }\n            }\n            return true;\n        }\n        config() {\n            let config = { ...this.model.config };\n            if (\"channels\" in config) {\n                config.channels = { ...config.channels };\n            }\n            if (config.preset != undefined) {\n                config = window.Vizzu.presets[config.preset](config);\n            }\n            return config;\n        }\n        data() {\n            const series = [];\n            for (const column of this.model.columns) {\n                let array = [...this.model.source.get_array(column.name)];\n                if (column.type === \"datetime\" || column.type == \"date\") {\n                    column.type = \"dimension\";\n                }\n                if (column.type === \"dimension\") {\n                    array = array.map(String);\n                }\n                series.push({ ...column, values: array });\n            }\n            return { series };\n        }\n        render() {\n            super.render();\n            this.container = (0, dom_1.div)({ style: { display: \"contents\" } });\n            this.shadow_el.append(this.container);\n            const state = { config: this.config(), data: this.data(), style: this.model.style };\n            this.vizzu_view = new window.Vizzu(this.container, state);\n            this._animating = true;\n            this.vizzu_view.initializing.then((chart) => {\n                chart.on(\"click\", (event) => {\n                    this.model.trigger_event(new VizzuEvent({ ...event.target, ...event.detail }));\n                });\n                chart.feature(\"tooltip\", this.model.tooltip);\n                this._animating = false;\n            });\n        }\n        remove() {\n            if (this.vizzu_view) {\n                this.vizzu_view.detach();\n            }\n            super.remove();\n        }\n    }\n    exports.VizzuChartView = VizzuChartView;\n    VizzuChartView.__name__ = \"VizzuChartView\";\n    class VizzuChart extends layout_1.HTMLBox {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.VizzuChart = VizzuChart;\n    _a = VizzuChart;\n    VizzuChart.__name__ = \"VizzuChart\";\n    VizzuChart.__module__ = \"panel.models.vizzu\";\n    (() => {\n        _a.prototype.default_view = VizzuChartView;\n        _a.define(({ Any, List, Bool, Float, Ref }) => ({\n            animation: [Any, {}],\n            config: [Any, {}],\n            columns: [List(Any), []],\n            source: [Ref(column_data_source_1.ColumnDataSource)],\n            duration: [Float, 500],\n            style: [Any, {}],\n            tooltip: [Bool, false],\n        }));\n    })();\n}\n","min_source":"function _(e,t,i,s,n){var o;s();const a=e(\"@bokehjs/core/dom\"),l=e(\"@bokehjs/core/util/types\"),c=e(\"@bokehjs/models/sources/column_data_source\"),r=e(\"@bokehjs/core/bokeh_events\"),h=e(\"99a25e6992\"),d=e(\"dab42e6dad\");class u extends r.ModelEvent{constructor(e){super(),this.event_name=\"vizzu_event\",this.publish=!0,this.data=e}get event_values(){return{model:this.origin,data:this.data}}}i.VizzuEvent=u,u.__name__=\"VizzuEvent\";const m=[\"x\",\"y\",\"color\",\"label\",\"lightness\",\"size\",\"splittedBy\",\"dividedBy\"];class _ extends d.HTMLBoxView{constructor(){super(...arguments),this.update=[],this._animating=!1}connect_signals(){super.connect_signals();const e=(0,h.debounce)((()=>{if(this.valid_config){if(0!==this.update.length&&!this._animating){let t={};for(const e of this.update)t=\"config\"===e?{...t,config:this.config()}:\"data\"===e?{...t,data:this.data()}:{...t,style:this.model.style};this._animating=!0,this.vizzu_view.animate(t,`${this.model.duration}ms`).then((()=>{this._animating=!1,this.update.length>0&&e()})),this.update=[]}}else console.warn(\"Vizzu config not valid given current data.\")}),20),t=t=>{this.update.includes(t)||this.update.push(t),e()},{config:i,tooltip:s,style:n}=this.model.properties;this.on_change(i,(()=>t(\"config\"))),this.on_change(this.model.source.properties.data,(()=>t(\"data\"))),this.connect(this.model.source.streaming,(()=>t(\"data\"))),this.connect(this.model.source.patching,(()=>t(\"data\"))),this.on_change(s,(()=>{this.vizzu_view.feature(\"tooltip\",this.model.tooltip)})),this.on_change(n,(()=>t(\"style\")))}get valid_config(){const e=this.model.source.columns();if(\"channels\"in this.model.config){for(const t of Object.values(this.model.config.channels))if((0,l.isArray)(t)){for(const i of t)if(null!=t&&!e.includes(i))return!1}else if((0,l.isObject)(t)){for(const i of Object.keys(t))for(const s of t[i])if(null!=t&&!e.includes(s))return!1}else if(null!=t&&!e.includes(t))return!1}else for(const t of m)if(t in this.model.config&&!e.includes(this.model.config[t]))return!1;return!0}config(){let e={...this.model.config};return\"channels\"in e&&(e.channels={...e.channels}),null!=e.preset&&(e=window.Vizzu.presets[e.preset](e)),e}data(){const e=[];for(const t of this.model.columns){let i=[...this.model.source.get_array(t.name)];\"datetime\"!==t.type&&\"date\"!=t.type||(t.type=\"dimension\"),\"dimension\"===t.type&&(i=i.map(String)),e.push({...t,values:i})}return{series:e}}render(){super.render(),this.container=(0,a.div)({style:{display:\"contents\"}}),this.shadow_el.append(this.container);const e={config:this.config(),data:this.data(),style:this.model.style};this.vizzu_view=new window.Vizzu(this.container,e),this._animating=!0,this.vizzu_view.initializing.then((e=>{e.on(\"click\",(e=>{this.model.trigger_event(new u({...e.target,...e.detail}))})),e.feature(\"tooltip\",this.model.tooltip),this._animating=!1}))}remove(){this.vizzu_view&&this.vizzu_view.detach(),super.remove()}}i.VizzuChartView=_,_.__name__=\"VizzuChartView\";class f extends d.HTMLBox{constructor(e){super(e)}}i.VizzuChart=f,o=f,f.__name__=\"VizzuChart\",f.__module__=\"panel.models.vizzu\",o.prototype.default_view=_,o.define((({Any:e,List:t,Bool:i,Float:s,Ref:n})=>({animation:[e,{}],config:[e,{}],columns:[t(e),[]],source:[n(c.ColumnDataSource)],duration:[s,500],style:[e,{}],tooltip:[i,!1]})))}\n//# sourceMappingURL=vizzu.min.js.map","min_map":"{\"version\":3,\"file\":\"vizzu.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"dom_1\",\"types_1\",\"column_data_source_1\",\"bokeh_events_1\",\"debounce_1\",\"layout_1\",\"VizzuEvent\",\"ModelEvent\",\"constructor\",\"data\",\"super\",\"this\",\"event_name\",\"publish\",\"event_values\",\"model\",\"origin\",\"__name__\",\"VECTORIZED_PROPERTIES\",\"VizzuChartView\",\"HTMLBoxView\",\"arguments\",\"update\",\"_animating\",\"connect_signals\",\"debounce\",\"valid_config\",\"length\",\"change\",\"prop\",\"config\",\"style\",\"vizzu_view\",\"animate\",\"duration\",\"then\",\"console\",\"warn\",\"update_prop\",\"includes\",\"push\",\"tooltip\",\"properties\",\"on_change\",\"source\",\"connect\",\"streaming\",\"patching\",\"feature\",\"columns\",\"col\",\"Object\",\"values\",\"channels\",\"isArray\",\"c\",\"isObject\",\"keys\",\"undefined\",\"preset\",\"window\",\"Vizzu\",\"presets\",\"series\",\"column\",\"array\",\"get_array\",\"name\",\"type\",\"map\",\"String\",\"render\",\"container\",\"div\",\"display\",\"shadow_el\",\"append\",\"state\",\"initializing\",\"chart\",\"on\",\"event\",\"trigger_event\",\"target\",\"detail\",\"remove\",\"detach\",\"VizzuChart\",\"HTMLBox\",\"attrs\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Any\",\"List\",\"Bool\",\"Float\",\"Ref\",\"animation\",\"ColumnDataSource\"],\"sources\":[\"0\"],\"mappings\":\"AAAsB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACnE,IAAIC,EACJF,IACA,MAAMG,EAAQN,EAAQ,qBAChBO,EAAUP,EAAQ,4BAClBQ,EAAuBR,EAAQ,8CAC/BS,EAAiBT,EAAQ,8BACzBU,EAAaV,EAAQ,cACrBW,EAAWX,EAAQ,cACzB,MAAMY,UAAmBH,EAAeI,WACpC,WAAAC,CAAYC,GACRC,QACAC,KAAKC,WAAa,cAClBD,KAAKE,SAAU,EACfF,KAAKF,KAAOA,CAChB,CACA,gBAAIK,GACA,MAAO,CAAEC,MAAOJ,KAAKK,OAAQP,KAAME,KAAKF,KAC5C,EAEJ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AACuD,GAAM,MAG5B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/vtk/index.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/vtk/index.js","canonical":"models/vtk/index","resolution":"ESM","id":"c51f25e2a7","hash":"c51f25e2a7971dd6de3a2c3961516d7ffe006a12bb20f4a24b2fb383203c96b8","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VTKSynchronizedPlot = exports.VTKAxes = exports.VTKVolumePlot = exports.VTKJSPlot = void 0;\nvar vtkjs_1 = require(\"./vtkjs\");\nObject.defineProperty(exports, \"VTKJSPlot\", { enumerable: true, get: function () { return vtkjs_1.VTKJSPlot; } });\nvar vtkvolume_1 = require(\"./vtkvolume\");\nObject.defineProperty(exports, \"VTKVolumePlot\", { enumerable: true, get: function () { return vtkvolume_1.VTKVolumePlot; } });\nvar vtkaxes_1 = require(\"./vtkaxes\");\nObject.defineProperty(exports, \"VTKAxes\", { enumerable: true, get: function () { return vtkaxes_1.VTKAxes; } });\nvar vtksynchronized_1 = require(\"./vtksynchronized\");\nObject.defineProperty(exports, \"VTKSynchronizedPlot\", { enumerable: true, get: function () { return vtksynchronized_1.VTKSynchronizedPlot; } });\n//# sourceMappingURL=index.js.map\n","type":"js","dependency_paths":[["./vtkjs","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/vtkjs.js"],["./vtkvolume","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/vtkvolume.js"],["./vtkaxes","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/vtkaxes.js"],["./vtksynchronized","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/vtksynchronized.js"]],"dependency_map":[],"exported":[{"type":"bindings","bindings":[[null,"VTKJSPlot"]],"module":"./vtkjs"},{"type":"bindings","bindings":[[null,"VTKVolumePlot"]],"module":"./vtkvolume"},{"type":"bindings","bindings":[[null,"VTKAxes"]],"module":"./vtkaxes"},{"type":"bindings","bindings":[[null,"VTKSynchronizedPlot"]],"module":"./vtksynchronized"}],"externals":[],"shims":[]},"code":{"source":"/* models/vtk/index.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    var vtkjs_1 = require(\"ac55912dc1\") /* ./vtkjs */;\n    __esExport(\"VTKJSPlot\", vtkjs_1.VTKJSPlot);\n    var vtkvolume_1 = require(\"18592eecef\") /* ./vtkvolume */;\n    __esExport(\"VTKVolumePlot\", vtkvolume_1.VTKVolumePlot);\n    var vtkaxes_1 = require(\"0379dcf1cd\") /* ./vtkaxes */;\n    __esExport(\"VTKAxes\", vtkaxes_1.VTKAxes);\n    var vtksynchronized_1 = require(\"a4e5946204\") /* ./vtksynchronized */;\n    __esExport(\"VTKSynchronizedPlot\", vtksynchronized_1.VTKSynchronizedPlot);\n}\n","min_source":"function _(o,e,V,c,l){c(),l(\"VTKJSPlot\",o(\"ac55912dc1\").VTKJSPlot),l(\"VTKVolumePlot\",o(\"18592eecef\").VTKVolumePlot),l(\"VTKAxes\",o(\"0379dcf1cd\").VTKAxes),l(\"VTKSynchronizedPlot\",o(\"a4e5946204\").VTKSynchronizedPlot)}\n//# sourceMappingURL=index.min.js.map","min_map":"{\"version\":3,\"file\":\"index.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"VTKJSPlot\",\"VTKVolumePlot\",\"VTKAxes\",\"VTKSynchronizedPlot\"],\"sources\":[\"0\"],\"mappings\":\"AAA0B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACvED,IAEAC,EAAW,YADGJ,EAAQ,cACUK,WAEhCD,EAAW,gBADOJ,EAAQ,cACcM,eAExCF,EAAW,UADKJ,EAAQ,cACQO,SAEhCH,EAAW,sBADaJ,EAAQ,cACoBQ,oBACxD\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/vtk/vtkjs.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/vtk/vtkjs.js","canonical":"models/vtk/vtkjs","resolution":"ESM","id":"ac55912dc1","hash":"ac55912dc1c3a5fd65501451e1bc7bd3fb961a97d6a5b27e844566ac18aab9c1","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VTKJSPlot = exports.VTKJSPlotView = void 0;\nconst vtklayout_1 = require(\"./vtklayout\");\nconst util_1 = require(\"./util\");\nclass VTKJSPlotView extends vtklayout_1.AbstractVTKView {\n    connect_signals() {\n        super.connect_signals();\n        const { data } = this.model.properties;\n        this.on_change(data, () => {\n            this.invalidate_render();\n        });\n    }\n    render() {\n        super.render();\n        this._create_orientation_widget();\n        this._set_axes();\n    }\n    invalidate_render() {\n        this._vtk_renwin = null;\n        super.invalidate_render();\n    }\n    init_vtk_renwin() {\n        this._vtk_renwin = util_1.vtkns.FullScreenRenderWindow.newInstance({\n            rootContainer: this._vtk_container,\n            container: this._vtk_container,\n        });\n    }\n    plot() {\n        if (this.model.data == null && this.model.data_url == null) {\n            this._vtk_renwin.getRenderWindow().render();\n            return;\n        }\n        let bytes_promise;\n        if (this.model.data_url) {\n            bytes_promise = util_1.vtkns.DataAccessHelper.get(\"http\").fetchBinary(this.model.data_url);\n        }\n        else {\n            bytes_promise = async () => { this.model.data; };\n        }\n        bytes_promise.then((zipContent) => {\n            const dataAccessHelper = util_1.vtkns.DataAccessHelper.get(\"zip\", {\n                zipContent,\n                callback: (_zip) => {\n                    const sceneImporter = util_1.vtkns.HttpSceneLoader.newInstance({\n                        renderer: this._vtk_renwin.getRenderer(),\n                        dataAccessHelper,\n                    });\n                    const fn = window.vtk.macro.debounce(() => {\n                        setTimeout(() => {\n                            if (this._axes == null && this.model.axes) {\n                                this._set_axes();\n                            }\n                            this._set_camera_state();\n                            this._get_camera_state();\n                            this._vtk_renwin.getRenderWindow().render();\n                        }, 100);\n                    }, 100);\n                    sceneImporter.setUrl(\"index.json\");\n                    sceneImporter.onReady(fn);\n                },\n            });\n        });\n    }\n}\nexports.VTKJSPlotView = VTKJSPlotView;\nVTKJSPlotView.__name__ = \"VTKJSPlotView\";\nclass VTKJSPlot extends vtklayout_1.AbstractVTKPlot {\n}\nexports.VTKJSPlot = VTKJSPlot;\n_a = VTKJSPlot;\nVTKJSPlot.__name__ = \"VTKJSPlot\";\n(() => {\n    _a.prototype.default_view = VTKJSPlotView;\n    _a.define(({ Boolean, Bytes, Nullable, String }) => ({\n        data: [Nullable(Bytes), null],\n        data_url: [Nullable(String), null],\n        enable_keybindings: [Boolean, false],\n    }));\n})();\n//# sourceMappingURL=vtkjs.js.map\n","type":"js","dependency_paths":[["./vtklayout","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/vtklayout.js"],["./util","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/util.js"]],"dependency_map":[],"exported":[{"type":"named","name":"VTKJSPlotView"},{"type":"named","name":"VTKJSPlot"}],"externals":[],"shims":[]},"code":{"source":"/* models/vtk/vtkjs.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const vtklayout_1 = require(\"b06d05fa3e\") /* ./vtklayout */;\n    const util_1 = require(\"df9946ff52\") /* ./util */;\n    class VTKJSPlotView extends vtklayout_1.AbstractVTKView {\n        connect_signals() {\n            super.connect_signals();\n            const { data } = this.model.properties;\n            this.on_change(data, () => {\n                this.invalidate_render();\n            });\n        }\n        render() {\n            super.render();\n            this._create_orientation_widget();\n            this._set_axes();\n        }\n        invalidate_render() {\n            this._vtk_renwin = null;\n            super.invalidate_render();\n        }\n        init_vtk_renwin() {\n            this._vtk_renwin = util_1.vtkns.FullScreenRenderWindow.newInstance({\n                rootContainer: this._vtk_container,\n                container: this._vtk_container,\n            });\n        }\n        plot() {\n            if (this.model.data == null && this.model.data_url == null) {\n                this._vtk_renwin.getRenderWindow().render();\n                return;\n            }\n            let bytes_promise;\n            if (this.model.data_url) {\n                bytes_promise = util_1.vtkns.DataAccessHelper.get(\"http\").fetchBinary(this.model.data_url);\n            }\n            else {\n                bytes_promise = async () => { this.model.data; };\n            }\n            bytes_promise.then((zipContent) => {\n                const dataAccessHelper = util_1.vtkns.DataAccessHelper.get(\"zip\", {\n                    zipContent,\n                    callback: (_zip) => {\n                        const sceneImporter = util_1.vtkns.HttpSceneLoader.newInstance({\n                            renderer: this._vtk_renwin.getRenderer(),\n                            dataAccessHelper,\n                        });\n                        const fn = window.vtk.macro.debounce(() => {\n                            setTimeout(() => {\n                                if (this._axes == null && this.model.axes) {\n                                    this._set_axes();\n                                }\n                                this._set_camera_state();\n                                this._get_camera_state();\n                                this._vtk_renwin.getRenderWindow().render();\n                            }, 100);\n                        }, 100);\n                        sceneImporter.setUrl(\"index.json\");\n                        sceneImporter.onReady(fn);\n                    },\n                });\n            });\n        }\n    }\n    exports.VTKJSPlotView = VTKJSPlotView;\n    VTKJSPlotView.__name__ = \"VTKJSPlotView\";\n    class VTKJSPlot extends vtklayout_1.AbstractVTKPlot {\n    }\n    exports.VTKJSPlot = VTKJSPlot;\n    _a = VTKJSPlot;\n    VTKJSPlot.__name__ = \"VTKJSPlot\";\n    (() => {\n        _a.prototype.default_view = VTKJSPlotView;\n        _a.define(({ Boolean, Bytes, Nullable, String }) => ({\n            data: [Nullable(Bytes), null],\n            data_url: [Nullable(String), null],\n            enable_keybindings: [Boolean, false],\n        }));\n    })();\n}\n","min_source":"function _(e,t,n,s,a){var i;s();const r=e(\"b06d05fa3e\"),l=e(\"df9946ff52\");class _ extends r.AbstractVTKView{connect_signals(){super.connect_signals();const{data:e}=this.model.properties;this.on_change(e,(()=>{this.invalidate_render()}))}render(){super.render(),this._create_orientation_widget(),this._set_axes()}invalidate_render(){this._vtk_renwin=null,super.invalidate_render()}init_vtk_renwin(){this._vtk_renwin=l.vtkns.FullScreenRenderWindow.newInstance({rootContainer:this._vtk_container,container:this._vtk_container})}plot(){if(null==this.model.data&&null==this.model.data_url)return void this._vtk_renwin.getRenderWindow().render();let e;e=this.model.data_url?l.vtkns.DataAccessHelper.get(\"http\").fetchBinary(this.model.data_url):async()=>{this.model.data},e.then((e=>{const t=l.vtkns.DataAccessHelper.get(\"zip\",{zipContent:e,callback:e=>{const n=l.vtkns.HttpSceneLoader.newInstance({renderer:this._vtk_renwin.getRenderer(),dataAccessHelper:t}),s=window.vtk.macro.debounce((()=>{setTimeout((()=>{null==this._axes&&this.model.axes&&this._set_axes(),this._set_camera_state(),this._get_camera_state(),this._vtk_renwin.getRenderWindow().render()}),100)}),100);n.setUrl(\"index.json\"),n.onReady(s)}})}))}}n.VTKJSPlotView=_,_.__name__=\"VTKJSPlotView\";class d extends r.AbstractVTKPlot{}n.VTKJSPlot=d,i=d,d.__name__=\"VTKJSPlot\",i.prototype.default_view=_,i.define((({Boolean:e,Bytes:t,Nullable:n,String:s})=>({data:[n(t),null],data_url:[n(s),null],enable_keybindings:[e,!1]})))}\n//# sourceMappingURL=vtkjs.min.js.map","min_map":"{\"version\":3,\"file\":\"vtkjs.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"vtklayout_1\",\"util_1\",\"VTKJSPlotView\",\"AbstractVTKView\",\"connect_signals\",\"super\",\"data\",\"this\",\"model\",\"properties\",\"on_change\",\"invalidate_render\",\"render\",\"_create_orientation_widget\",\"_set_axes\",\"_vtk_renwin\",\"init_vtk_renwin\",\"vtkns\",\"FullScreenRenderWindow\",\"newInstance\",\"rootContainer\",\"_vtk_container\",\"container\",\"plot\",\"data_url\",\"getRenderWindow\",\"bytes_promise\",\"DataAccessHelper\",\"get\",\"fetchBinary\",\"async\",\"then\",\"zipContent\",\"dataAccessHelper\",\"callback\",\"_zip\",\"sceneImporter\",\"HttpSceneLoader\",\"renderer\",\"getRenderer\",\"fn\",\"window\",\"vtk\",\"macro\",\"debounce\",\"setTimeout\",\"_axes\",\"axes\",\"_set_camera_state\",\"_get_camera_state\",\"setUrl\",\"onReady\",\"__name__\",\"VTKJSPlot\",\"AbstractVTKPlot\",\"prototype\",\"default_view\",\"define\",\"Boolean\",\"B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5C,IAAI,GACR,KACHwB,EAAcc,OAAO,cACrBd,EAAce,QAAQX,EAAG,GAE/B,GAEV,EAEJ5C,EAAQM,cAAgBA,EACxBA,EAAckD,SAAW,gBACzB,MAAMC,UAAkBrD,EAAYsD,iBAEpC1D,EAAQyD,UAAYA,EACpBtD,EAAKsD,EACLA,EAAUD,SAAW,YAEjBrD,EAAGwD,UAAUC,aAAetD,EAC5BH,EAAG0D,QAAO,EAAGC,UAASC,QAAOC,WAAUC,aAAa,CAChDvD,KAAM,CAACsD,EAASD,GAAQ,MACxBnC,SAAU,CAACoC,EAASC,GAAS,MAC7BC,mBAAoB,CAACJ,GAAS,MAG1C\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/vtk/vtklayout.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/vtk/vtklayout.js","canonical":"models/vtk/vtklayout","resolution":"ESM","id":"b06d05fa3e","hash":"b06d05fa3e71a8941c45e5a3f2d6e7b28b80e2e2a23f95ddb35563481f166b05","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AbstractVTKPlot = exports.AbstractVTKView = void 0;\nconst dom_1 = require(\"@bokehjs/core/dom\");\nconst object_1 = require(\"@bokehjs/core/util/object\");\nconst color_mapper_1 = require(\"@bokehjs/models/mappers/color_mapper\");\nconst kinds_1 = require(\"@bokehjs/core/kinds\");\nconst layout_1 = require(\"../layout\");\nconst util_1 = require(\"./util\");\nconst vtkcolorbar_1 = require(\"./vtkcolorbar\");\nconst vtkaxes_1 = require(\"./vtkaxes\");\nconst INFO_DIV_STYLE = {\n    padding: \"0px 2px 0px 2px\",\n    maxHeight: \"150px\",\n    height: \"auto\",\n    backgroundColor: \"rgba(255, 255, 255, 0.4)\",\n    borderRadius: \"10px\",\n    margin: \"2px\",\n    boxSizing: \"border-box\",\n    overflow: \"hidden\",\n    overflowY: \"auto\",\n    transition: \"width 0.1s linear\",\n    bottom: \"0px\",\n    position: \"absolute\",\n};\nconst textPositions = (0, kinds_1.Enum)(\"LowerLeft\", \"LowerRight\", \"UpperLeft\", \"UpperRight\", \"LowerEdge\", \"RightEdge\", \"LeftEdge\", \"UpperEdge\");\nclass AbstractVTKView extends layout_1.HTMLBoxView {\n    initialize() {\n        super.initialize();\n        this._camera_callbacks = [];\n        this._renderable = true;\n        this._setting_camera = false;\n        this._rendered = false;\n    }\n    _add_colorbars() {\n        //construct colorbars\n        const old_info_div = this.shadow_el.querySelector(\".vtk_info\");\n        if (old_info_div) {\n            this.shadow_el.removeChild(old_info_div);\n        }\n        if (this.model.color_mappers.length < 1) {\n            return;\n        }\n        const info_div = document.createElement(\"div\");\n        const expand_width = \"350px\";\n        const collapsed_width = \"30px\";\n        info_div.classList.add(\"vtk_info\");\n        (0, util_1.applyStyle)(info_div, INFO_DIV_STYLE);\n        (0, util_1.applyStyle)(info_div, { width: expand_width });\n        this.shadow_el.appendChild(info_div);\n        //construct colorbars\n        const colorbars = [];\n        this.model.color_mappers.forEach((mapper) => {\n            const cb = new vtkcolorbar_1.VTKColorBar(info_div, mapper);\n            colorbars.push(cb);\n        });\n        //content when collapsed\n        const dots = document.createElement(\"div\");\n        (0, util_1.applyStyle)(dots, { textAlign: \"center\", fontSize: \"20px\" });\n        dots.innerText = \"...\";\n        info_div.addEventListener(\"click\", () => {\n            if (info_div.style.width === collapsed_width) {\n                info_div.removeChild(dots);\n                (0, util_1.applyStyle)(info_div, { height: \"auto\", width: expand_width });\n                colorbars.forEach((cb) => info_div.appendChild(cb.canvas));\n            }\n            else {\n                colorbars.forEach((cb) => info_div.removeChild(cb.canvas));\n                (0, util_1.applyStyle)(info_div, { height: collapsed_width, width: collapsed_width });\n                info_div.appendChild(dots);\n            }\n        });\n        info_div.click();\n    }\n    _init_annotations_container() {\n        if (!this._annotations_container) {\n            this._annotations_container = document.createElement(\"div\");\n            this._annotations_container.style.position = \"absolute\";\n            this._annotations_container.style.width = \"100%\";\n            this._annotations_container.style.height = \"100%\";\n            this._annotations_container.style.top = \"0\";\n            this._annotations_container.style.left = \"0\";\n            this._annotations_container.style.pointerEvents = \"none\";\n        }\n    }\n    _clean_annotations() {\n        if (this._annotations_container) {\n            while (this._annotations_container.firstElementChild) {\n                this._annotations_container.firstElementChild.remove();\n            }\n        }\n    }\n    _add_annotations() {\n        this._clean_annotations();\n        const { annotations } = this.model;\n        if (annotations != null) {\n            for (const annotation of annotations) {\n                const { viewport, color, fontSize, fontFamily } = annotation;\n                textPositions.values.forEach((pos) => {\n                    const text = annotation[pos];\n                    if (text) {\n                        const div = document.createElement(\"div\");\n                        div.textContent = text;\n                        const { style } = div;\n                        style.position = \"absolute\";\n                        style.color = `rgb(${color.map((val) => 255 * val).join(\",\")})`;\n                        style.fontSize = `${fontSize}px`;\n                        style.padding = \"5px\";\n                        style.fontFamily = fontFamily;\n                        style.width = \"fit-content\";\n                        if (pos == \"UpperLeft\") {\n                            style.top = `${(1 - viewport[3]) * 100}%`;\n                            style.left = `${viewport[0] * 100}%`;\n                        }\n                        if (pos == \"UpperRight\") {\n                            style.top = `${(1 - viewport[3]) * 100}%`;\n                            style.right = `${(1 - viewport[2]) * 100}%`;\n                        }\n                        if (pos == \"LowerLeft\") {\n                            style.bottom = `${viewport[1] * 100}%`;\n                            style.left = `${viewport[0] * 100}%`;\n                        }\n                        if (pos == \"LowerRight\") {\n                            style.bottom = `${viewport[1] * 100}%`;\n                            style.right = `${(1 - viewport[2]) * 100}%`;\n                        }\n                        if (pos == \"UpperEdge\") {\n                            style.top = `${(1 - viewport[3]) * 100}%`;\n                            style.left = `${(viewport[0] + (viewport[2] - viewport[0]) / 2) * 100}%`;\n                            style.transform = \"translateX(-50%)\";\n                        }\n                        if (pos == \"LowerEdge\") {\n                            style.bottom = `${viewport[1] * 100}%`;\n                            style.left = `${(viewport[0] + (viewport[2] - viewport[0]) / 2) * 100}%`;\n                            style.transform = \"translateX(-50%)\";\n                        }\n                        if (pos == \"LeftEdge\") {\n                            style.left = `${viewport[0] * 100}%`;\n                            style.top = `${(1 - viewport[3] + (viewport[3] - viewport[1]) / 2) * 100}%`;\n                            style.transform = \"translateY(-50%)\";\n                        }\n                        if (pos == \"RightEdge\") {\n                            style.right = `${(1 - viewport[2]) * 100}%`;\n                            style.top = `${(1 - viewport[3] + (viewport[3] - viewport[1]) / 2) * 100}%`;\n                            style.transform = \"translateY(-50%)\";\n                        }\n                        this._annotations_container.appendChild(div);\n                    }\n                });\n            }\n        }\n    }\n    connect_signals() {\n        super.connect_signals();\n        this.on_change(this.model.properties.orientation_widget, () => {\n            this._orientation_widget_visibility(this.model.orientation_widget);\n        });\n        this.on_change(this.model.properties.camera, () => this._set_camera_state());\n        this.on_change(this.model.properties.axes, () => {\n            this._delete_axes();\n            if (this.model.axes) {\n                this._set_axes();\n            }\n            this._vtk_render();\n        });\n        this.on_change(this.model.properties.color_mappers, () => this._add_colorbars());\n        this.on_change(this.model.properties.annotations, () => this._add_annotations());\n    }\n    render() {\n        super.render();\n        this._rendered = false;\n        this._orientationWidget = null;\n        this._axes = null;\n        this._vtk_container = (0, dom_1.div)();\n        this.init_vtk_renwin();\n        this._init_annotations_container();\n        (0, layout_1.set_size)(this._vtk_container, this.model);\n        this.shadow_el.appendChild(this._vtk_container);\n        // update camera model state only at the end of the interaction\n        // with the scene (avoid bouncing events and large amount of events)\n        this._vtk_renwin.getInteractor().onEndAnimation(() => this._get_camera_state());\n        this._remove_default_key_binding();\n        this._bind_key_events();\n        this.plot();\n        this.model.renderer_el = this._vtk_renwin;\n        this.shadow_el.appendChild(this._annotations_container);\n    }\n    after_layout() {\n        super.after_layout();\n        if (this._renderable) {\n            this._vtk_renwin.resize(); // resize call render method\n        }\n        this._vtk_render();\n        if (!this._rendered) {\n            this._add_colorbars();\n            this._add_annotations();\n            this._rendered = true;\n        }\n    }\n    invalidate_render() {\n        this._unsubscribe_camera_cb();\n        super.invalidate_render();\n    }\n    remove() {\n        this._unsubscribe_camera_cb();\n        window.removeEventListener(\"resize\", this._vtk_renwin.resize);\n        if (this._orientationWidget != null) {\n            this._orientationWidget.delete();\n        }\n        this._vtk_renwin.getRenderWindow().getInteractor().delete();\n        this._vtk_renwin.delete();\n        super.remove();\n    }\n    get _vtk_camera_state() {\n        const vtk_camera = this._vtk_renwin.getRenderer().getActiveCamera();\n        let state;\n        if (vtk_camera) {\n            state = (0, object_1.clone)(vtk_camera.get());\n            delete state.cameraLightTransform;\n            delete state.classHierarchy;\n            delete state.vtkObject;\n            delete state.vtkCamera;\n            delete state.viewPlaneNormal;\n            delete state.flattenedDepIds;\n            delete state.managedInstanceId;\n            delete state.directionOfProjection;\n        }\n        return state;\n    }\n    get _axes_canvas() {\n        let axes_canvas = this._vtk_container.querySelector(\".axes-canvas\");\n        if (!axes_canvas) {\n            axes_canvas = (0, dom_1.canvas)({\n                style: {\n                    position: \"absolute\",\n                    top: \"0\",\n                    left: \"0\",\n                    width: \"100%\",\n                    height: \"100%\",\n                },\n            });\n            axes_canvas.classList.add(\"axes-canvas\");\n            this._vtk_container.appendChild(axes_canvas);\n            this._vtk_renwin.setResizeCallback(() => {\n                if (this._axes_canvas) {\n                    const dims = this._vtk_container.getBoundingClientRect();\n                    const width = Math.floor(dims.width * window.devicePixelRatio);\n                    const height = Math.floor(dims.height * window.devicePixelRatio);\n                    this._axes_canvas.setAttribute(\"width\", width.toFixed());\n                    this._axes_canvas.setAttribute(\"height\", height.toFixed());\n                }\n            });\n        }\n        return axes_canvas;\n    }\n    _bind_key_events() {\n        this.el.addEventListener(\"mouseenter\", () => {\n            const interactor = this._vtk_renwin.getInteractor();\n            if (this.model.enable_keybindings) {\n                document\n                    .querySelector(\"body\")\n                    .addEventListener(\"keypress\", interactor.handleKeyPress);\n                document\n                    .querySelector(\"body\")\n                    .addEventListener(\"keydown\", interactor.handleKeyDown);\n                document\n                    .querySelector(\"body\")\n                    .addEventListener(\"keyup\", interactor.handleKeyUp);\n            }\n        });\n        this.el.addEventListener(\"mouseleave\", () => {\n            const interactor = this._vtk_renwin.getInteractor();\n            document\n                .querySelector(\"body\")\n                .removeEventListener(\"keypress\", interactor.handleKeyPress);\n            document\n                .querySelector(\"body\")\n                .removeEventListener(\"keydown\", interactor.handleKeyDown);\n            document\n                .querySelector(\"body\")\n                .removeEventListener(\"keyup\", interactor.handleKeyUp);\n        });\n    }\n    _create_orientation_widget() {\n        const axes = util_1.vtkns.AxesActor.newInstance();\n        // add orientation widget\n        this._orientationWidget = util_1.vtkns.OrientationMarkerWidget.newInstance({\n            actor: axes,\n            interactor: this._vtk_renwin.getInteractor(),\n        });\n        this._orientationWidget.setEnabled(true);\n        this._orientationWidget.setViewportCorner(util_1.vtkns.OrientationMarkerWidget.Corners.BOTTOM_RIGHT);\n        this._orientationWidget.setViewportSize(0.15);\n        this._orientationWidget.setMinPixelSize(75);\n        this._orientationWidget.setMaxPixelSize(300);\n        if (this.model.interactive_orientation_widget) {\n            this._make_orientation_widget_interactive();\n        }\n        this._orientation_widget_visibility(this.model.orientation_widget);\n    }\n    _make_orientation_widget_interactive() {\n        this._widgetManager = util_1.vtkns.WidgetManager.newInstance();\n        this._widgetManager.setRenderer(this._orientationWidget.getRenderer());\n        const axes = this._orientationWidget.getActor();\n        const widget = util_1.vtkns.InteractiveOrientationWidget.newInstance();\n        widget.placeWidget(axes.getBounds());\n        widget.setBounds(axes.getBounds());\n        widget.setPlaceFactor(1);\n        const vw = this._widgetManager.addWidget(widget);\n        // Manage user interaction\n        vw.onOrientationChange(({ direction }) => {\n            const camera = this._vtk_renwin.getRenderer().getActiveCamera();\n            const focalPoint = camera.getFocalPoint();\n            const position = camera.getPosition();\n            const viewUp = camera.getViewUp();\n            const distance = Math.sqrt((position[0] - focalPoint[0]) ** 2 +\n                (position[1] - focalPoint[1]) ** 2 +\n                (position[2] - focalPoint[2]) ** 2);\n            camera.setPosition(focalPoint[0] + direction[0] * distance, focalPoint[1] + direction[1] * distance, focalPoint[2] + direction[2] * distance);\n            if (direction[0]) {\n                camera.setViewUp((0, util_1.majorAxis)(viewUp, 1, 2));\n            }\n            if (direction[1]) {\n                camera.setViewUp((0, util_1.majorAxis)(viewUp, 0, 2));\n            }\n            if (direction[2]) {\n                camera.setViewUp((0, util_1.majorAxis)(viewUp, 0, 1));\n            }\n            this._vtk_renwin.getRenderer().resetCameraClippingRange();\n            this._vtk_render();\n            this._get_camera_state();\n        });\n    }\n    _delete_axes() {\n        if (this._axes) {\n            Object.keys(this._axes).forEach((key) => {\n                this._vtk_renwin.getRenderer().removeActor(this._axes[key]);\n            });\n            this._axes = null;\n            const textCtx = this._axes_canvas.getContext(\"2d\");\n            if (textCtx) {\n                textCtx.clearRect(0, 0, this._axes_canvas.clientWidth * window.devicePixelRatio, this._axes_canvas.clientHeight * window.devicePixelRatio);\n            }\n        }\n    }\n    _get_camera_state() {\n        if (!this._setting_camera) {\n            this._setting_camera = true;\n            this.model.camera = this._vtk_camera_state;\n            this._setting_camera = false;\n        }\n    }\n    _orientation_widget_visibility(visibility) {\n        this._orientationWidget.setEnabled(visibility);\n        if (this._widgetManager != null) {\n            if (visibility) {\n                this._widgetManager.enablePicking();\n            }\n            else {\n                this._widgetManager.disablePicking();\n            }\n        }\n        this._vtk_render();\n    }\n    _remove_default_key_binding() {\n        const interactor = this._vtk_renwin.getInteractor();\n        document\n            .querySelector(\"body\")\n            .removeEventListener(\"keypress\", interactor.handleKeyPress);\n        document\n            .querySelector(\"body\")\n            .removeEventListener(\"keydown\", interactor.handleKeyDown);\n        document\n            .querySelector(\"body\")\n            .removeEventListener(\"keyup\", interactor.handleKeyUp);\n    }\n    _set_axes() {\n        if (this.model.axes && this._vtk_renwin.getRenderer()) {\n            const { psActor, axesActor, gridActor } = this.model.axes.create_axes(this._axes_canvas);\n            this._axes = { psActor, axesActor, gridActor };\n            if (psActor) {\n                this._vtk_renwin.getRenderer().addActor(psActor);\n            }\n            if (axesActor) {\n                this._vtk_renwin.getRenderer().addActor(axesActor);\n            }\n            if (gridActor) {\n                this._vtk_renwin.getRenderer().addActor(gridActor);\n            }\n        }\n    }\n    _set_camera_state() {\n        if (!this._setting_camera && this._vtk_renwin.getRenderer() !== undefined) {\n            this._setting_camera = true;\n            if (this.model.camera &&\n                JSON.stringify(this.model.camera) != JSON.stringify(this._vtk_camera_state)) {\n                this._vtk_renwin\n                    .getRenderer()\n                    .getActiveCamera()\n                    .set(this.model.camera);\n            }\n            this._vtk_renwin.getRenderer().resetCameraClippingRange();\n            this._setting_camera = false;\n        }\n    }\n    _unsubscribe_camera_cb() {\n        this._camera_callbacks\n            .splice(0, this._camera_callbacks.length)\n            .map((cb) => cb.unsubscribe());\n    }\n    _vtk_render() {\n        if (this._renderable) {\n            if (this._orientationWidget) {\n                this._orientationWidget.updateMarkerOrientation();\n            }\n            this._vtk_renwin.getRenderWindow().render();\n        }\n    }\n}\nexports.AbstractVTKView = AbstractVTKView;\nAbstractVTKView.__name__ = \"AbstractVTKView\";\nclass AbstractVTKPlot extends layout_1.HTMLBox {\n    constructor(attrs) {\n        (0, util_1.setup_vtkns)();\n        super(attrs);\n    }\n    getActors() {\n        return this.renderer_el.getRenderer().getActors();\n    }\n}\nexports.AbstractVTKPlot = AbstractVTKPlot;\n_a = AbstractVTKPlot;\nAbstractVTKPlot.__name__ = \"AbstractVTKPlot\";\nAbstractVTKPlot.__module__ = \"panel.models.vtk\";\n(() => {\n    _a.define(({ Any, Ref, Array, Boolean, Nullable }) => ({\n        axes: [Nullable(Ref(vtkaxes_1.VTKAxes)), null],\n        camera: [Any, {}],\n        color_mappers: [Array(Ref(color_mapper_1.ColorMapper)), []],\n        orientation_widget: [Boolean, false],\n        interactive_orientation_widget: [Boolean, false],\n        annotations: [Nullable(Array(Any)), null],\n    }));\n    _a.override({\n        height: 300,\n        width: 300,\n    });\n})();\n//# sourceMappingURL=vtklayout.js.map\n","type":"js","dependency_paths":[["../layout","/home/runner/work/panel/panel/panel/dist/lib/models/layout.js"],["./util","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/util.js"],["./vtkcolorbar","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/vtkcolorbar.js"],["./vtkaxes","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/vtkaxes.js"]],"dependency_map":[],"exported":[{"type":"named","name":"AbstractVTKView"},{"type":"named","name":"AbstractVTKPlot"}],"externals":[],"shims":[]},"code":{"source":"/* models/vtk/vtklayout.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const dom_1 = require(\"@bokehjs/core/dom\");\n    const object_1 = require(\"@bokehjs/core/util/object\");\n    const color_mapper_1 = require(\"@bokehjs/models/mappers/color_mapper\");\n    const kinds_1 = require(\"@bokehjs/core/kinds\");\n    const layout_1 = require(\"dab42e6dad\") /* ../layout */;\n    const util_1 = require(\"df9946ff52\") /* ./util */;\n    const vtkcolorbar_1 = require(\"b1d68776a9\") /* ./vtkcolorbar */;\n    const vtkaxes_1 = require(\"0379dcf1cd\") /* ./vtkaxes */;\n    const INFO_DIV_STYLE = {\n        padding: \"0px 2px 0px 2px\",\n        maxHeight: \"150px\",\n        height: \"auto\",\n        backgroundColor: \"rgba(255, 255, 255, 0.4)\",\n        borderRadius: \"10px\",\n        margin: \"2px\",\n        boxSizing: \"border-box\",\n        overflow: \"hidden\",\n        overflowY: \"auto\",\n        transition: \"width 0.1s linear\",\n        bottom: \"0px\",\n        position: \"absolute\",\n    };\n    const textPositions = (0, kinds_1.Enum)(\"LowerLeft\", \"LowerRight\", \"UpperLeft\", \"UpperRight\", \"LowerEdge\", \"RightEdge\", \"LeftEdge\", \"UpperEdge\");\n    class AbstractVTKView extends layout_1.HTMLBoxView {\n        initialize() {\n            super.initialize();\n            this._camera_callbacks = [];\n            this._renderable = true;\n            this._setting_camera = false;\n            this._rendered = false;\n        }\n        _add_colorbars() {\n            //construct colorbars\n            const old_info_div = this.shadow_el.querySelector(\".vtk_info\");\n            if (old_info_div) {\n                this.shadow_el.removeChild(old_info_div);\n            }\n            if (this.model.color_mappers.length < 1) {\n                return;\n            }\n            const info_div = document.createElement(\"div\");\n            const expand_width = \"350px\";\n            const collapsed_width = \"30px\";\n            info_div.classList.add(\"vtk_info\");\n            (0, util_1.applyStyle)(info_div, INFO_DIV_STYLE);\n            (0, util_1.applyStyle)(info_div, { width: expand_width });\n            this.shadow_el.appendChild(info_div);\n            //construct colorbars\n            const colorbars = [];\n            this.model.color_mappers.forEach((mapper) => {\n                const cb = new vtkcolorbar_1.VTKColorBar(info_div, mapper);\n                colorbars.push(cb);\n            });\n            //content when collapsed\n            const dots = document.createElement(\"div\");\n            (0, util_1.applyStyle)(dots, { textAlign: \"center\", fontSize: \"20px\" });\n            dots.innerText = \"...\";\n            info_div.addEventListener(\"click\", () => {\n                if (info_div.style.width === collapsed_width) {\n                    info_div.removeChild(dots);\n                    (0, util_1.applyStyle)(info_div, { height: \"auto\", width: expand_width });\n                    colorbars.forEach((cb) => info_div.appendChild(cb.canvas));\n                }\n                else {\n                    colorbars.forEach((cb) => info_div.removeChild(cb.canvas));\n                    (0, util_1.applyStyle)(info_div, { height: collapsed_width, width: collapsed_width });\n                    info_div.appendChild(dots);\n                }\n            });\n            info_div.click();\n        }\n        _init_annotations_container() {\n            if (!this._annotations_container) {\n                this._annotations_container = document.createElement(\"div\");\n                this._annotations_container.style.position = \"absolute\";\n                this._annotations_container.style.width = \"100%\";\n                this._annotations_container.style.height = \"100%\";\n                this._annotations_container.style.top = \"0\";\n                this._annotations_container.style.left = \"0\";\n                this._annotations_container.style.pointerEvents = \"none\";\n            }\n        }\n        _clean_annotations() {\n            if (this._annotations_container) {\n                while (this._annotations_container.firstElementChild) {\n                    this._annotations_container.firstElementChild.remove();\n                }\n            }\n        }\n        _add_annotations() {\n            this._clean_annotations();\n            const { annotations } = this.model;\n            if (annotations != null) {\n                for (const annotation of annotations) {\n                    const { viewport, color, fontSize, fontFamily } = annotation;\n                    textPositions.values.forEach((pos) => {\n                        const text = annotation[pos];\n                        if (text) {\n                            const div = document.createElement(\"div\");\n                            div.textContent = text;\n                            const { style } = div;\n                            style.position = \"absolute\";\n                            style.color = `rgb(${color.map((val) => 255 * val).join(\",\")})`;\n                            style.fontSize = `${fontSize}px`;\n                            style.padding = \"5px\";\n                            style.fontFamily = fontFamily;\n                            style.width = \"fit-content\";\n                            if (pos == \"UpperLeft\") {\n                                style.top = `${(1 - viewport[3]) * 100}%`;\n                                style.left = `${viewport[0] * 100}%`;\n                            }\n                            if (pos == \"UpperRight\") {\n                                style.top = `${(1 - viewport[3]) * 100}%`;\n                                style.right = `${(1 - viewport[2]) * 100}%`;\n                            }\n                            if (pos == \"LowerLeft\") {\n                                style.bottom = `${viewport[1] * 100}%`;\n                                style.left = `${viewport[0] * 100}%`;\n                            }\n                            if (pos == \"LowerRight\") {\n                                style.bottom = `${viewport[1] * 100}%`;\n                                style.right = `${(1 - viewport[2]) * 100}%`;\n                            }\n                            if (pos == \"UpperEdge\") {\n                                style.top = `${(1 - viewport[3]) * 100}%`;\n                                style.left = `${(viewport[0] + (viewport[2] - viewport[0]) / 2) * 100}%`;\n                                style.transform = \"translateX(-50%)\";\n                            }\n                            if (pos == \"LowerEdge\") {\n                                style.bottom = `${viewport[1] * 100}%`;\n                                style.left = `${(viewport[0] + (viewport[2] - viewport[0]) / 2) * 100}%`;\n                                style.transform = \"translateX(-50%)\";\n                            }\n                            if (pos == \"LeftEdge\") {\n                                style.left = `${viewport[0] * 100}%`;\n                                style.top = `${(1 - viewport[3] + (viewport[3] - viewport[1]) / 2) * 100}%`;\n                                style.transform = \"translateY(-50%)\";\n                            }\n                            if (pos == \"RightEdge\") {\n                                style.right = `${(1 - viewport[2]) * 100}%`;\n                                style.top = `${(1 - viewport[3] + (viewport[3] - viewport[1]) / 2) * 100}%`;\n                                style.transform = \"translateY(-50%)\";\n                            }\n                            this._annotations_container.appendChild(div);\n                        }\n                    });\n                }\n            }\n        }\n        connect_signals() {\n            super.connect_signals();\n            this.on_change(this.model.properties.orientation_widget, () => {\n                this._orientation_widget_visibility(this.model.orientation_widget);\n            });\n            this.on_change(this.model.properties.camera, () => this._set_camera_state());\n            this.on_change(this.model.properties.axes, () => {\n                this._delete_axes();\n                if (this.model.axes) {\n                    this._set_axes();\n                }\n                this._vtk_render();\n            });\n            this.on_change(this.model.properties.color_mappers, () => this._add_colorbars());\n            this.on_change(this.model.properties.annotations, () => this._add_annotations());\n        }\n        render() {\n            super.render();\n            this._rendered = false;\n            this._orientationWidget = null;\n            this._axes = null;\n            this._vtk_container = (0, dom_1.div)();\n            this.init_vtk_renwin();\n            this._init_annotations_container();\n            (0, layout_1.set_size)(this._vtk_container, this.model);\n            this.shadow_el.appendChild(this._vtk_container);\n            // update camera model state only at the end of the interaction\n            // with the scene (avoid bouncing events and large amount of events)\n            this._vtk_renwin.getInteractor().onEndAnimation(() => this._get_camera_state());\n            this._remove_default_key_binding();\n            this._bind_key_events();\n            this.plot();\n            this.model.renderer_el = this._vtk_renwin;\n            this.shadow_el.appendChild(this._annotations_container);\n        }\n        after_layout() {\n            super.after_layout();\n            if (this._renderable) {\n                this._vtk_renwin.resize(); // resize call render method\n            }\n            this._vtk_render();\n            if (!this._rendered) {\n                this._add_colorbars();\n                this._add_annotations();\n                this._rendered = true;\n            }\n        }\n        invalidate_render() {\n            this._unsubscribe_camera_cb();\n            super.invalidate_render();\n        }\n        remove() {\n            this._unsubscribe_camera_cb();\n            window.removeEventListener(\"resize\", this._vtk_renwin.resize);\n            if (this._orientationWidget != null) {\n                this._orientationWidget.delete();\n            }\n            this._vtk_renwin.getRenderWindow().getInteractor().delete();\n            this._vtk_renwin.delete();\n            super.remove();\n        }\n        get _vtk_camera_state() {\n            const vtk_camera = this._vtk_renwin.getRenderer().getActiveCamera();\n            let state;\n            if (vtk_camera) {\n                state = (0, object_1.clone)(vtk_camera.get());\n                delete state.cameraLightTransform;\n                delete state.classHierarchy;\n                delete state.vtkObject;\n                delete state.vtkCamera;\n                delete state.viewPlaneNormal;\n                delete state.flattenedDepIds;\n                delete state.managedInstanceId;\n                delete state.directionOfProjection;\n            }\n            return state;\n        }\n        get _axes_canvas() {\n            let axes_canvas = this._vtk_container.querySelector(\".axes-canvas\");\n            if (!axes_canvas) {\n                axes_canvas = (0, dom_1.canvas)({\n                    style: {\n                        position: \"absolute\",\n                        top: \"0\",\n                        left: \"0\",\n                        width: \"100%\",\n                        height: \"100%\",\n                    },\n                });\n                axes_canvas.classList.add(\"axes-canvas\");\n                this._vtk_container.appendChild(axes_canvas);\n                this._vtk_renwin.setResizeCallback(() => {\n                    if (this._axes_canvas) {\n                        const dims = this._vtk_container.getBoundingClientRect();\n                        const width = Math.floor(dims.width * window.devicePixelRatio);\n                        const height = Math.floor(dims.height * window.devicePixelRatio);\n                        this._axes_canvas.setAttribute(\"width\", width.toFixed());\n                        this._axes_canvas.setAttribute(\"height\", height.toFixed());\n                    }\n                });\n            }\n            return axes_canvas;\n        }\n        _bind_key_events() {\n            this.el.addEventListener(\"mouseenter\", () => {\n                const interactor = this._vtk_renwin.getInteractor();\n                if (this.model.enable_keybindings) {\n                    document\n                        .querySelector(\"body\")\n                        .addEventListener(\"keypress\", interactor.handleKeyPress);\n                    document\n                        .querySelector(\"body\")\n                        .addEventListener(\"keydown\", interactor.handleKeyDown);\n                    document\n                        .querySelector(\"body\")\n                        .addEventListener(\"keyup\", interactor.handleKeyUp);\n                }\n            });\n            this.el.addEventListener(\"mouseleave\", () => {\n                const interactor = this._vtk_renwin.getInteractor();\n                document\n                    .querySelector(\"body\")\n                    .removeEventListener(\"keypress\", interactor.handleKeyPress);\n                document\n                    .querySelector(\"body\")\n                    .removeEventListener(\"keydown\", interactor.handleKeyDown);\n                document\n                    .querySelector(\"body\")\n                    .removeEventListener(\"keyup\", interactor.handleKeyUp);\n            });\n        }\n        _create_orientation_widget() {\n            const axes = util_1.vtkns.AxesActor.newInstance();\n            // add orientation widget\n            this._orientationWidget = util_1.vtkns.OrientationMarkerWidget.newInstance({\n                actor: axes,\n                interactor: this._vtk_renwin.getInteractor(),\n            });\n            this._orientationWidget.setEnabled(true);\n            this._orientationWidget.setViewportCorner(util_1.vtkns.OrientationMarkerWidget.Corners.BOTTOM_RIGHT);\n            this._orientationWidget.setViewportSize(0.15);\n            this._orientationWidget.setMinPixelSize(75);\n            this._orientationWidget.setMaxPixelSize(300);\n            if (this.model.interactive_orientation_widget) {\n                this._make_orientation_widget_interactive();\n            }\n            this._orientation_widget_visibility(this.model.orientation_widget);\n        }\n        _make_orientation_widget_interactive() {\n            this._widgetManager = util_1.vtkns.WidgetManager.newInstance();\n            this._widgetManager.setRenderer(this._orientationWidget.getRenderer());\n            const axes = this._orientationWidget.getActor();\n            const widget = util_1.vtkns.InteractiveOrientationWidget.newInstance();\n            widget.placeWidget(axes.getBounds());\n            widget.setBounds(axes.getBounds());\n            widget.setPlaceFactor(1);\n            const vw = this._widgetManager.addWidget(widget);\n            // Manage user interaction\n            vw.onOrientationChange(({ direction }) => {\n                const camera = this._vtk_renwin.getRenderer().getActiveCamera();\n                const focalPoint = camera.getFocalPoint();\n                const position = camera.getPosition();\n                const viewUp = camera.getViewUp();\n                const distance = Math.sqrt((position[0] - focalPoint[0]) ** 2 +\n                    (position[1] - focalPoint[1]) ** 2 +\n                    (position[2] - focalPoint[2]) ** 2);\n                camera.setPosition(focalPoint[0] + direction[0] * distance, focalPoint[1] + direction[1] * distance, focalPoint[2] + direction[2] * distance);\n                if (direction[0]) {\n                    camera.setViewUp((0, util_1.majorAxis)(viewUp, 1, 2));\n                }\n                if (direction[1]) {\n                    camera.setViewUp((0, util_1.majorAxis)(viewUp, 0, 2));\n                }\n                if (direction[2]) {\n                    camera.setViewUp((0, util_1.majorAxis)(viewUp, 0, 1));\n                }\n                this._vtk_renwin.getRenderer().resetCameraClippingRange();\n                this._vtk_render();\n                this._get_camera_state();\n            });\n        }\n        _delete_axes() {\n            if (this._axes) {\n                Object.keys(this._axes).forEach((key) => {\n                    this._vtk_renwin.getRenderer().removeActor(this._axes[key]);\n                });\n                this._axes = null;\n                const textCtx = this._axes_canvas.getContext(\"2d\");\n                if (textCtx) {\n                    textCtx.clearRect(0, 0, this._axes_canvas.clientWidth * window.devicePixelRatio, this._axes_canvas.clientHeight * window.devicePixelRatio);\n                }\n            }\n        }\n        _get_camera_state() {\n            if (!this._setting_camera) {\n                this._setting_camera = true;\n                this.model.camera = this._vtk_camera_state;\n                this._setting_camera = false;\n            }\n        }\n        _orientation_widget_visibility(visibility) {\n            this._orientationWidget.setEnabled(visibility);\n            if (this._widgetManager != null) {\n                if (visibility) {\n                    this._widgetManager.enablePicking();\n                }\n                else {\n                    this._widgetManager.disablePicking();\n                }\n            }\n            this._vtk_render();\n        }\n        _remove_default_key_binding() {\n            const interactor = this._vtk_renwin.getInteractor();\n            document\n                .querySelector(\"body\")\n                .removeEventListener(\"keypress\", interactor.handleKeyPress);\n            document\n                .querySelector(\"body\")\n                .removeEventListener(\"keydown\", interactor.handleKeyDown);\n            document\n                .querySelector(\"body\")\n                .removeEventListener(\"keyup\", interactor.handleKeyUp);\n        }\n        _set_axes() {\n            if (this.model.axes && this._vtk_renwin.getRenderer()) {\n                const { psActor, axesActor, gridActor } = this.model.axes.create_axes(this._axes_canvas);\n                this._axes = { psActor, axesActor, gridActor };\n                if (psActor) {\n                    this._vtk_renwin.getRenderer().addActor(psActor);\n                }\n                if (axesActor) {\n                    this._vtk_renwin.getRenderer().addActor(axesActor);\n                }\n                if (gridActor) {\n                    this._vtk_renwin.getRenderer().addActor(gridActor);\n                }\n            }\n        }\n        _set_camera_state() {\n            if (!this._setting_camera && this._vtk_renwin.getRenderer() !== undefined) {\n                this._setting_camera = true;\n                if (this.model.camera &&\n                    JSON.stringify(this.model.camera) != JSON.stringify(this._vtk_camera_state)) {\n                    this._vtk_renwin\n                        .getRenderer()\n                        .getActiveCamera()\n                        .set(this.model.camera);\n                }\n                this._vtk_renwin.getRenderer().resetCameraClippingRange();\n                this._setting_camera = false;\n            }\n        }\n        _unsubscribe_camera_cb() {\n            this._camera_callbacks\n                .splice(0, this._camera_callbacks.length)\n                .map((cb) => cb.unsubscribe());\n        }\n        _vtk_render() {\n            if (this._renderable) {\n                if (this._orientationWidget) {\n                    this._orientationWidget.updateMarkerOrientation();\n                }\n                this._vtk_renwin.getRenderWindow().render();\n            }\n        }\n    }\n    exports.AbstractVTKView = AbstractVTKView;\n    AbstractVTKView.__name__ = \"AbstractVTKView\";\n    class AbstractVTKPlot extends layout_1.HTMLBox {\n        constructor(attrs) {\n            (0, util_1.setup_vtkns)();\n            super(attrs);\n        }\n        getActors() {\n            return this.renderer_el.getRenderer().getActors();\n        }\n    }\n    exports.AbstractVTKPlot = AbstractVTKPlot;\n    _a = AbstractVTKPlot;\n    AbstractVTKPlot.__name__ = \"AbstractVTKPlot\";\n    AbstractVTKPlot.__module__ = \"panel.models.vtk\";\n    (() => {\n        _a.define(({ Any, Ref, Array, Boolean, Nullable }) => ({\n            axes: [Nullable(Ref(vtkaxes_1.VTKAxes)), null],\n            camera: [Any, {}],\n            color_mappers: [Array(Ref(color_mapper_1.ColorMapper)), []],\n            orientation_widget: [Boolean, false],\n            interactive_orientation_widget: [Boolean, false],\n            annotations: [Nullable(Array(Any)), null],\n        }));\n        _a.override({\n            height: 300,\n            width: 300,\n        });\n    })();\n}\n","min_source":"function _(e,t,i,n,a){var s;n();const r=e(\"@bokehjs/core/dom\"),o=e(\"@bokehjs/core/util/object\"),_=e(\"@bokehjs/models/mappers/color_mapper\"),d=e(\"@bokehjs/core/kinds\"),h=e(\"dab42e6dad\"),c=e(\"df9946ff52\"),l=e(\"b1d68776a9\"),g=e(\"0379dcf1cd\"),m={padding:\"0px 2px 0px 2px\",maxHeight:\"150px\",height:\"auto\",backgroundColor:\"rgba(255, 255, 255, 0.4)\",borderRadius:\"10px\",margin:\"2px\",boxSizing:\"border-box\",overflow:\"hidden\",overflowY:\"auto\",transition:\"width 0.1s linear\",bottom:\"0px\",position:\"absolute\"},p=(0,d.Enum)(\"LowerLeft\",\"LowerRight\",\"UpperLeft\",\"UpperRight\",\"LowerEdge\",\"RightEdge\",\"LeftEdge\",\"UpperEdge\");class v extends h.HTMLBoxView{initialize(){super.initialize(),this._camera_callbacks=[],this._renderable=!0,this._setting_camera=!1,this._rendered=!1}_add_colorbars(){const e=this.shadow_el.querySelector(\".vtk_info\");if(e&&this.shadow_el.removeChild(e),this.model.color_mappers.length<1)return;const t=document.createElement(\"div\"),i=\"350px\",n=\"30px\";t.classList.add(\"vtk_info\"),(0,c.applyStyle)(t,m),(0,c.applyStyle)(t,{width:i}),this.shadow_el.appendChild(t);const a=[];this.model.color_mappers.forEach((e=>{const i=new l.VTKColorBar(t,e);a.push(i)}));const s=document.createElement(\"div\");(0,c.applyStyle)(s,{textAlign:\"center\",fontSize:\"20px\"}),s.innerText=\"...\",t.addEventListener(\"click\",(()=>{t.style.width===n?(t.removeChild(s),(0,c.applyStyle)(t,{height:\"auto\",width:i}),a.forEach((e=>t.appendChild(e.canvas)))):(a.forEach((e=>t.removeChild(e.canvas))),(0,c.applyStyle)(t,{height:n,width:n}),t.appendChild(s))})),t.click()}_init_annotations_container(){this._annotations_container||(this._annotations_container=document.createElement(\"div\"),this._annotations_container.style.position=\"absolute\",this._annotations_container.style.width=\"100%\",this._annotations_container.style.height=\"100%\",this._annotations_container.style.top=\"0\",this._annotations_container.style.left=\"0\",this._annotations_container.style.pointerEvents=\"none\")}_clean_annotations(){if(this._annotations_container)for(;this._annotations_container.firstElementChild;)this._annotations_container.firstElementChild.remove()}_add_annotations(){this._clean_annotations();const{annotations:e}=this.model;if(null!=e)for(const t of e){const{viewport:e,color:i,fontSize:n,fontFamily:a}=t;p.values.forEach((s=>{const r=t[s];if(r){const t=document.createElement(\"div\");t.textContent=r;const{style:o}=t;o.position=\"absolute\",o.color=`rgb(${i.map((e=>255*e)).join(\",\")})`,o.fontSize=`${n}px`,o.padding=\"5px\",o.fontFamily=a,o.width=\"fit-content\",\"UpperLeft\"==s&&(o.top=100*(1-e[3])+\"%\",o.left=100*e[0]+\"%\"),\"UpperRight\"==s&&(o.top=100*(1-e[3])+\"%\",o.right=100*(1-e[2])+\"%\"),\"LowerLeft\"==s&&(o.bottom=100*e[1]+\"%\",o.left=100*e[0]+\"%\"),\"LowerRight\"==s&&(o.bottom=100*e[1]+\"%\",o.right=100*(1-e[2])+\"%\"),\"UpperEdge\"==s&&(o.top=100*(1-e[3])+\"%\",o.left=100*(e[0]+(e[2]-e[0])/2)+\"%\",o.transform=\"translateX(-50%)\"),\"LowerEdge\"==s&&(o.bottom=100*e[1]+\"%\",o.left=100*(e[0]+(e[2]-e[0])/2)+\"%\",o.transform=\"translateX(-50%)\"),\"LeftEdge\"==s&&(o.left=100*e[0]+\"%\",o.top=100*(1-e[3]+(e[3]-e[1])/2)+\"%\",o.transform=\"translateY(-50%)\"),\"RightEdge\"==s&&(o.right=100*(1-e[2])+\"%\",o.top=100*(1-e[3]+(e[3]-e[1])/2)+\"%\",o.transform=\"translateY(-50%)\"),this._annotations_container.appendChild(t)}}))}}connect_signals(){super.connect_signals(),this.on_change(this.model.properties.orientation_widget,(()=>{this._orientation_widget_visibility(this.model.orientation_widget)})),this.on_change(this.model.properties.camera,(()=>this._set_camera_state())),this.on_change(this.model.properties.axes,(()=>{this._delete_axes(),this.model.axes&&this._set_axes(),this._vtk_render()})),this.on_change(this.model.properties.color_mappers,(()=>this._add_colorbars())),this.on_change(this.model.properties.annotations,(()=>this._add_annotations()))}render(){super.render(),this._rendered=!1,this._orientationWidget=null,this._axes=null,this._vtk_container=(0,r.div)(),this.init_vtk_renwin(),this._init_annotations_container(),(0,h.set_size)(this._vtk_container,this.model),this.shadow_el.appendChild(this._vtk_container),this._vtk_renwin.getInteractor().onEndAnimation((()=>this._get_camera_state())),this._remove_default_key_binding(),this._bind_key_events(),this.plot(),this.model.renderer_el=this._vtk_renwin,this.shadow_el.appendChild(this._annotations_container)}after_layout(){super.after_layout(),this._renderable&&this._vtk_renwin.resize(),this._vtk_render(),this._rendered||(this._add_colorbars(),this._add_annotations(),this._rendered=!0)}invalidate_render(){this._unsubscribe_camera_cb(),super.invalidate_render()}remove(){this._unsubscribe_camera_cb(),window.removeEventListener(\"resize\",this._vtk_renwin.resize),null!=this._orientationWidget&&this._orientationWidget.delete(),this._vtk_renwin.getRenderWindow().getInteractor().delete(),this._vtk_renwin.delete(),super.remove()}get _vtk_camera_state(){const e=this._vtk_renwin.getRenderer().getActiveCamera();let t;return e&&(t=(0,o.clone)(e.get()),delete t.cameraLightTransform,delete t.classHierarchy,delete t.vtkObject,delete t.vtkCamera,delete t.viewPlaneNormal,delete t.flattenedDepIds,delete t.managedInstanceId,delete t.directionOfProjection),t}get _axes_canvas(){let e=this._vtk_container.querySelector(\".axes-canvas\");return e||(e=(0,r.canvas)({style:{position:\"absolute\",top:\"0\",left:\"0\",width:\"100%\",height:\"100%\"}}),e.classList.add(\"axes-canvas\"),this._vtk_container.appendChild(e),this._vtk_renwin.setResizeCallback((()=>{if(this._axes_canvas){const e=this._vtk_container.getBoundingClientRect(),t=Math.floor(e.width*window.devicePixelRatio),i=Math.floor(e.height*window.devicePixelRatio);this._axes_canvas.setAttribute(\"width\",t.toFixed()),this._axes_canvas.setAttribute(\"height\",i.toFixed())}}))),e}_bind_key_events(){this.el.addEventListener(\"mouseenter\",(()=>{const e=this._vtk_renwin.getInteractor();this.model.enable_keybindings&&(document.querySelector(\"body\").addEventListener(\"keypress\",e.handleKeyPress),document.querySelector(\"body\").addEventListener(\"keydown\",e.handleKeyDown),document.querySelector(\"body\").addEventListener(\"keyup\",e.handleKeyUp))})),this.el.addEventListener(\"mouseleave\",(()=>{const e=this._vtk_renwin.getInteractor();document.querySelector(\"body\").removeEventListener(\"keypress\",e.handleKeyPress),document.querySelector(\"body\").removeEventListener(\"keydown\",e.handleKeyDown),document.querySelector(\"body\").removeEventListener(\"keyup\",e.handleKeyUp)}))}_create_orientation_widget(){const e=c.vtkns.AxesActor.newInstance();this._orientationWidget=c.vtkns.OrientationMarkerWidget.newInstance({actor:e,interactor:this._vtk_renwin.getInteractor()}),this._orientationWidget.setEnabled(!0),this._orientationWidget.setViewportCorner(c.vtkns.OrientationMarkerWidget.Corners.BOTTOM_RIGHT),this._orientationWidget.setViewportSize(.15),this._orientationWidget.setMinPixelSize(75),this._orientationWidget.setMaxPixelSize(300),this.model.interactive_orientation_widget&&this._make_orientation_widget_interactive(),this._orientation_widget_visibility(this.model.orientation_widget)}_make_orientation_widget_interactive(){this._widgetManager=c.vtkns.WidgetManager.newInstance(),this._widgetManager.setRenderer(this._orientationWidget.getRenderer());const e=this._orientationWidget.getActor(),t=c.vtkns.InteractiveOrientationWidget.newInstance();t.placeWidget(e.getBounds()),t.setBounds(e.getBounds()),t.setPlaceFactor(1);this._widgetManager.addWidget(t).onOrientationChange((({direction:e})=>{const t=this._vtk_renwin.getRenderer().getActiveCamera(),i=t.getFocalPoint(),n=t.getPosition(),a=t.getViewUp(),s=Math.sqrt((n[0]-i[0])**2+(n[1]-i[1])**2+(n[2]-i[2])**2);t.setPosition(i[0]+e[0]*s,i[1]+e[1]*s,i[2]+e[2]*s),e[0]&&t.setViewUp((0,c.majorAxis)(a,1,2)),e[1]&&t.setViewUp((0,c.majorAxis)(a,0,2)),e[2]&&t.setViewUp((0,c.majorAxis)(a,0,1)),this._vtk_renwin.getRenderer().resetCameraClippingRange(),this._vtk_render(),this._get_camera_state()}))}_delete_axes(){if(this._axes){Object.keys(this._axes).forEach((e=>{this._vtk_renwin.getRenderer().removeActor(this._axes[e])})),this._axes=null;const e=this._axes_canvas.getContext(\"2d\");e&&e.clearRect(0,0,this._axes_canvas.clientWidth*window.devicePixelRatio,this._axes_canvas.clientHeight*window.devicePixelRatio)}}_get_camera_state(){this._setting_camera||(this._setting_camera=!0,this.model.camera=this._vtk_camera_state,this._setting_camera=!1)}_orientation_widget_visibility(e){this._orientationWidget.setEnabled(e),null!=this._widgetManager&&(e?this._widgetManager.enablePicking():this._widgetManager.disablePicking()),this._vtk_render()}_remove_default_key_binding(){const e=this._vtk_renwin.getInteractor();document.querySelector(\"body\").removeEventListener(\"keypress\",e.handleKeyPress),document.querySelector(\"body\").removeEventListener(\"keydown\",e.handleKeyDown),document.querySelector(\"body\").removeEventListener(\"keyup\",e.handleKeyUp)}_set_axes(){if(this.model.axes&&this._vtk_renwin.getRenderer()){const{psActor:e,axesActor:t,gridActor:i}=this.model.axes.create_axes(this._axes_canvas);this._axes={psActor:e,axesActor:t,gridActor:i},e&&this._vtk_renwin.getRenderer().addActor(e),t&&this._vtk_renwin.getRenderer().addActor(t),i&&this._vtk_renwin.getRenderer().addActor(i)}}_set_camera_state(){this._setting_camera||void 0===this._vtk_renwin.getRenderer()||(this._setting_camera=!0,this.model.camera&&JSON.stringify(this.model.camera)!=JSON.stringify(this._vtk_camera_state)&&this._vtk_renwin.getRenderer().getActiveCamera().set(this.model.camera),this._vtk_renwin.getRenderer().resetCameraClippingRange(),this._setting_camera=!1)}_unsubscribe_camera_cb(){this._camera_callbacks.splice(0,this._camera_callbacks.length).map((e=>e.unsubscribe()))}_vtk_render(){this._renderable&&(this._orientationWidget&&this._orientationWidget.updateMarkerOrientation(),this._vtk_renwin.getRenderWindow().render())}}i.AbstractVTKView=v,v.__name__=\"AbstractVTKView\";class w extends h.HTMLBox{constructor(e){(0,c.setup_vtkns)(),super(e)}getActors(){return this.renderer_el.getRenderer().getActors()}}i.AbstractVTKPlot=w,s=w,w.__name__=\"AbstractVTKPlot\",w.__module__=\"panel.models.vtk\",s.define((({Any:e,Ref:t,Array:i,Boolean:n,Nullable:a})=>({axes:[a(t(g.VTKAxes)),null],camera:[e,{}],color_mappers:[i(t(_.ColorMapper)),[]],orientation_widget:[n,!1],interactive_orientation_widget:[n,!1],annotations:[a(i(e)),null]}))),s.override({height:300,width:300})}\n//# sourceMappingURL=vtklayout.min.js.map","min_map":"{\"version\":3,\"file\":\"vtklayout.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"dom_1\",\"object_1\",\"color_mapper_1\",\"kinds_1\",\"layout_1\",\"util_1\",\"vtkcolorbar_1\",\"vtkaxes_1\",\"INFO_DIV_STYLE\",\"padding\",\"maxHeight\",\"height\",\"backgroundColor\",\"borderRadius\",\"margin\",\"boxSizing\",\"overflow\",\"overflowY\",\"transition\",\"bottom\",\"position\",\"textPositions\",\"Enum\",\"AbstractVTKView\",\"HTMLBoxView\",\"initialize\",\"super\",\"this\",\"_camera_callbacks\",\"_renderable\",\"_setting_camera\",\"_rendered\",\"_add_colorbars\",\"old_info_div\",\"shadow_el\",\"querySelector\",\"removeChild\",\"model\",\"color_mappers\",\"length\",\"info_div\",\"document\",\"createElement\",\"expand_width\",\"collapsed_width\",\"classList\",\"add\",\"applyStyle\",\"width\",\"appendChild\",\"colorbars\",\"forEach\",\"mapper\",\"cb\",\"VTKColorBar\",\"push\",\"dots\",\"textAlign\",\"fontSize\",\"innerText\",\"addEventListener\",\"style\",\"canvas\",\"click\",\"_init_annotations_container\",\"_annotations_container\",\"top\",\"left\",\"pointerEvents\",\"_clean_annotations\",\"firstElementChild\",\"remove\",\"_add_annotations\",\"annotations\",\"annotation\",\"viewport\",\"color\",\"fontFamily\",\"values\",\"pos\",\"text\",\"div\",\"textContent\",\"map\",\"val\",\"join\",\"right\",\"transform\",\"connect_signals\",\"on_change\",\"properties\",\"orientation_widget\",\"_orientation_widget_visibility\",\"camera\",\"_set_camera_state\",\"axes\",\"_delete_axes\",\"_set_axes\",\"_vtk_render\",\"render\",\"_orientationWidget\",\"_axes\",\"_vtk_container\",\"init_vtk_renwin\",\"set_size\",\"_vtk_renwin\",\"getInteractor\",\"onEndAnimation\",\"_get_camera_state\",\"_remove_default_key_binding\",\"_bind_key_events\",\"plot\",\"renderer_el\",\"after_layout\",\"resize\",\"invalidate_render\",\"_unsubscribe_camera_cb\",\"window\",\"removeEventListener\",\"delete\",\"getRenderWindow\",\"_vtk_camera_state\",\"vtk_camera\",\"getRenderer\",\"getActiveCamera\",\"state\",\"clone\",\"get\",\"cameraLightTransform\",\"classHierarchy\",\"vtkObject\",\"vtkCamera\",\"viewPlaneNormal\",\"flattenedDepIds\",\"managedInstanceId\",\"directionOfProjection\",\"_axes_canvas\",\"axes_canvas\",\"setResizeCallback\",\"dims\",\"getBoundingClientRect\",\"Math\",\"floor\",\"devicePixelRatio\",\"setAttribute\",\"toFixed\",\"el\",\"interactor\",\"enable_keybindings\",\"handleKeyPress\",\"handleKeyDown\",\"handleKeyUp\",\"_create_orientation_widget\",\"vtkns\",\"AxesActor\",\"newInstance\",\"OrientationMarkerWidget\",\"actor\",\"setEnabled\",\"setViewportCorner\",\"Corners\",\"BOTTOM_RIGHT\",\"setViewportSize\",\"setMinPixelSize\",\"setMaxPixelSize\",\"interactive_orientation_widget\",\"_make_orientation_widget_interactive\",\"_widgetManager\",\"WidgetManager\",\"setRenderer\",\"getActor\",\"widget\",\"InteractiveOrientationWidget\",\"placeWidget\",\"getBounds\",\"setBounds\",\"setPlaceFactor\",\"addWidget\",\"onOrientationChange\",\"direction\",\"focalPoint\",\"getFocalPoint\",\"getPosition\",\"viewUp\",\"getViewUp\",\"distance\",\"sqrt\",\"setPosition\",\"setViewUp\",\"majorAxis\",\"resetCameraClippingRange\",\"Object\",\"keys\",\"key\",\"removeActor\",\"textCtx\",\"getContext\",\"clearRect\",\"clientWidth\",\"clientHeight\",\"visibility\",\"enablePicking\",\"disablePicking\",\"psActor\",\"axesActor\",\"gridActor\",\"create_axes\",\"addActor\",\"undefined\",\"JSON\",\"stringify\",\"set\",\"splice\",\"unsubscribe\",\"updateMarkerOrientation\",\"__name__\",\"AbstractVTKPlot\",\"HTMLBox\",\"constructor\",\"attrs\",\"setup_vtkns\",\"getActors\",\"__module__\",\"define\",\"Any\",\"Ref\",\"Array\",\"Boolean\",\"Nullable\",\"VTKAxes\",\"ColorMapper\",\"override\"],\"sources\":[\"0\"],\"mappings\":\"AAA8B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC3E,IAAIC,EACJF,IACA,MAAMG,EAAQN,EAAQ,qBAChBO,EAAWP,EAAQ,6BACnBQ,EAAiBR,EAAQ,wCAC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yN,EACLA,EAAgBD,SAAW,kBAC3BC,EAAgBM,WAAa,mBAEzB/N,EAAGgO,QAAO,EAAGC,MAAKC,MAAKC,QAAOC,UAASC,eAAe,CAClDrI,KAAM,CAACqI,EAASH,EAAI1N,EAAU8N,UAAW,MACzCxI,OAAQ,CAACmI,EAAK,CAAC,GACf1L,cAAe,CAAC4L,EAAMD,EAAI/N,EAAeoO,cAAe,IACxD3I,mBAAoB,CAACwI,GAAS,GAC9B9D,+BAAgC,CAAC8D,GAAS,GAC1C1J,YAAa,CAAC2J,EAASF,EAAMF,IAAO,UAExCjO,EAAGwO,SAAS,CACR5N,OAAQ,IACRqC,MAAO,KAGnB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/vtk/util.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/vtk/util.js","canonical":"models/vtk/util","resolution":"ESM","id":"df9946ff52","hash":"df9946ff52c7aad35becaca43d43f2206565a988eede14946c608047bbca6f29","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Interpolation = exports.vtkns = exports.ARRAY_TYPES = void 0;\nexports.setup_vtkns = setup_vtkns;\nexports.applyStyle = applyStyle;\nexports.hexToRGB = hexToRGB;\nexports.rgbToHex = rgbToHex;\nexports.vtkLutToMapper = vtkLutToMapper;\nexports.data2VTKImageData = data2VTKImageData;\nexports.majorAxis = majorAxis;\nexports.cartesian_product = cartesian_product;\nconst array_1 = require(\"@bokehjs/core/util/array\");\nconst kinds_1 = require(\"@bokehjs/core/kinds\");\nexports.ARRAY_TYPES = {\n    uint8: Uint8Array,\n    int8: Int8Array,\n    uint16: Uint16Array,\n    int16: Int16Array,\n    uint32: Uint32Array,\n    int32: Int32Array,\n    float32: Float32Array,\n    float64: Float64Array,\n};\nexports.vtkns = {};\nfunction setup_vtkns() {\n    if (exports.vtkns.Actor != null) {\n        return;\n    }\n    const vtk = window.vtk;\n    Object.assign(exports.vtkns, {\n        Actor: vtk.Rendering.Core.vtkActor,\n        AxesActor: vtk.Rendering.Core.vtkAxesActor,\n        Base64: vtk.Common.Core.vtkBase64,\n        BoundingBox: vtk.Common.DataModel.vtkBoundingBox,\n        Camera: vtk.Rendering.Core.vtkCamera,\n        ColorTransferFunction: vtk.Rendering.Core.vtkColorTransferFunction,\n        CubeSource: vtk.Filters.Sources.vtkCubeSource,\n        DataAccessHelper: vtk.IO.Core.DataAccessHelper,\n        DataArray: vtk.Common.Core.vtkDataArray,\n        Follower: vtk.Rendering.Core.vtkFollower,\n        FullScreenRenderWindow: vtk.Rendering.Misc.vtkFullScreenRenderWindow,\n        Glyph3DMapper: vtk.Rendering.Core.vtkGlyph3DMapper,\n        HttpSceneLoader: vtk.IO.Core.vtkHttpSceneLoader,\n        ImageData: vtk.Common.DataModel.vtkImageData,\n        ImageMapper: vtk.Rendering.Core.vtkImageMapper,\n        ImageProperty: vtk.Rendering.Core.vtkImageProperty,\n        ImageSlice: vtk.Rendering.Core.vtkImageSlice,\n        InteractiveOrientationWidget: vtk.Widgets.Widgets3D.vtkInteractiveOrientationWidget,\n        InteractorStyleTrackballCamera: vtk.Interaction.Style.vtkInteractorStyleTrackballCamera,\n        Light: vtk.Rendering.Core.vtkLight,\n        LineSource: vtk.Filters.Sources.vtkLineSource,\n        LookupTable: vtk.Common.Core.vtkLookupTable,\n        macro: vtk.macro,\n        Mapper: vtk.Rendering.Core.vtkMapper,\n        OpenGLRenderWindow: vtk.Rendering.OpenGL.vtkRenderWindow,\n        OrientationMarkerWidget: vtk.Interaction.Widgets.vtkOrientationMarkerWidget,\n        OutlineFilter: vtk.Filters.General.vtkOutlineFilter,\n        PiecewiseFunction: vtk.Common.DataModel.vtkPiecewiseFunction,\n        PixelSpaceCallbackMapper: vtk.Rendering.Core.vtkPixelSpaceCallbackMapper,\n        PlaneSource: vtk.Filters.Sources.vtkPlaneSource,\n        PointSource: vtk.Filters.Sources.vtkPointSource,\n        PolyData: vtk.Common.DataModel.vtkPolyData,\n        Property: vtk.Rendering.Core.vtkProperty,\n        Renderer: vtk.Rendering.Core.vtkRenderer,\n        RenderWindow: vtk.Rendering.Core.vtkRenderWindow,\n        RenderWindowInteractor: vtk.Rendering.Core.vtkRenderWindowInteractor,\n        SphereMapper: vtk.Rendering.Core.vtkSphereMapper,\n        SynchronizableRenderWindow: vtk.Rendering.Misc.vtkSynchronizableRenderWindow,\n        Texture: vtk.Rendering.Core.vtkTexture,\n        Volume: vtk.Rendering.Core.vtkVolume,\n        VolumeController: vtk.Interaction.UI.vtkVolumeController,\n        VolumeMapper: vtk.Rendering.Core.vtkVolumeMapper,\n        VolumeProperty: vtk.Rendering.Core.vtkVolumeProperty,\n        WidgetManager: vtk.Widgets.Core.vtkWidgetManager,\n    });\n    const { vtkObjectManager } = exports.vtkns.SynchronizableRenderWindow;\n    vtkObjectManager.setTypeMapping(\"vtkVolumeMapper\", exports.vtkns.VolumeMapper.newInstance, vtkObjectManager.oneTimeGenericUpdater);\n    vtkObjectManager.setTypeMapping(\"vtkSmartVolumeMapper\", exports.vtkns.VolumeMapper.newInstance, vtkObjectManager.oneTimeGenericUpdater);\n    vtkObjectManager.setTypeMapping(\"vtkFollower\", exports.vtkns.Follower.newInstance, vtkObjectManager.genericUpdater);\n    vtkObjectManager.setTypeMapping(\"vtkOpenGLGlyph3DMapper\", exports.vtkns.Glyph3DMapper.newInstance, vtkObjectManager.genericUpdater);\n}\nif (window.vtk) {\n    setup_vtkns();\n}\nexports.Interpolation = (0, kinds_1.Enum)(\"fast_linear\", \"linear\", \"nearest\");\nfunction applyStyle(el, style) {\n    Object.keys(style).forEach((key) => {\n        el.style[key] = style[key];\n    });\n}\nfunction hexToRGB(color) {\n    return [\n        parseInt(color.slice(1, 3), 16) / 255,\n        parseInt(color.slice(3, 5), 16) / 255,\n        parseInt(color.slice(5, 7), 16) / 255,\n    ];\n}\nfunction valToHex(val) {\n    const hex = Math.min(Math.max(Math.round(val), 0), 255).toString(16);\n    return hex.length == 2 ? hex : `0${hex}`;\n}\nfunction rgbToHex(r, g, b) {\n    return `#${valToHex(r)}${valToHex(g)}${valToHex(b)}`;\n}\nfunction vtkLutToMapper(vtk_lut) {\n    //For the moment only linear colormapper are handle\n    const { scale, nodes } = vtk_lut.get(\"scale\", \"nodes\");\n    if (scale !== exports.vtkns.ColorTransferFunction.Scale.LINEAR) {\n        throw new Error(\"Error transfer function scale not handle\");\n    }\n    const x = nodes.map((a) => a.x);\n    const low = Math.min(...x);\n    const high = Math.max(...x);\n    const vals = (0, array_1.linspace)(low, high, 255);\n    const rgb = [0, 0, 0];\n    const palette = vals.map((val) => {\n        vtk_lut.getColor(val, rgb);\n        return rgbToHex(rgb[0] * 255, rgb[1] * 255, rgb[2] * 255);\n    });\n    return { low, high, palette };\n}\nfunction utf8ToAB(utf8_str) {\n    const buf = new ArrayBuffer(utf8_str.length); // 2 bytes for each char\n    const bufView = new Uint8Array(buf);\n    for (let i = 0, strLen = utf8_str.length; i < strLen; i++) {\n        bufView[i] = utf8_str.charCodeAt(i);\n    }\n    return buf;\n}\nfunction data2VTKImageData(data) {\n    const source = exports.vtkns.ImageData.newInstance({\n        spacing: data.spacing,\n    });\n    source.setDimensions(data.dims);\n    source.setOrigin(data.origin != null ? data.origin : data.dims.map((v) => v / 2));\n    const dataArray = exports.vtkns.DataArray.newInstance({\n        name: \"scalars\",\n        numberOfComponents: 1,\n        values: new exports.ARRAY_TYPES[data.dtype](utf8ToAB(atob(data.buffer))),\n    });\n    source.getPointData().setScalars(dataArray);\n    return source;\n}\nfunction majorAxis(vec3, idxA, idxB) {\n    const axis = [0, 0, 0];\n    const idx = Math.abs(vec3[idxA]) > Math.abs(vec3[idxB]) ? idxA : idxB;\n    const value = vec3[idx] > 0 ? 1 : -1;\n    axis[idx] = value;\n    return axis;\n}\nfunction cartesian_product(...arrays) {\n    return arrays.reduce((acc, curr) => {\n        return [...acc].flatMap((c) => curr.map((n) => [].concat(c, n)));\n    });\n}\n//# sourceMappingURL=util.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"setup_vtkns"},{"type":"named","name":"applyStyle"},{"type":"named","name":"hexToRGB"},{"type":"named","name":"rgbToHex"},{"type":"named","name":"vtkLutToMapper"},{"type":"named","name":"data2VTKImageData"},{"type":"named","name":"majorAxis"},{"type":"named","name":"cartesian_product"}],"externals":[],"shims":[]},"code":{"source":"/* models/vtk/util.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.setup_vtkns = setup_vtkns;\n    exports.applyStyle = applyStyle;\n    exports.hexToRGB = hexToRGB;\n    exports.rgbToHex = rgbToHex;\n    exports.vtkLutToMapper = vtkLutToMapper;\n    exports.data2VTKImageData = data2VTKImageData;\n    exports.majorAxis = majorAxis;\n    exports.cartesian_product = cartesian_product;\n    const array_1 = require(\"@bokehjs/core/util/array\");\n    const kinds_1 = require(\"@bokehjs/core/kinds\");\n    exports.ARRAY_TYPES = {\n        uint8: Uint8Array,\n        int8: Int8Array,\n        uint16: Uint16Array,\n        int16: Int16Array,\n        uint32: Uint32Array,\n        int32: Int32Array,\n        float32: Float32Array,\n        float64: Float64Array,\n    };\n    exports.vtkns = {};\n    function setup_vtkns() {\n        if (exports.vtkns.Actor != null) {\n            return;\n        }\n        const vtk = window.vtk;\n        Object.assign(exports.vtkns, {\n            Actor: vtk.Rendering.Core.vtkActor,\n            AxesActor: vtk.Rendering.Core.vtkAxesActor,\n            Base64: vtk.Common.Core.vtkBase64,\n            BoundingBox: vtk.Common.DataModel.vtkBoundingBox,\n            Camera: vtk.Rendering.Core.vtkCamera,\n            ColorTransferFunction: vtk.Rendering.Core.vtkColorTransferFunction,\n            CubeSource: vtk.Filters.Sources.vtkCubeSource,\n            DataAccessHelper: vtk.IO.Core.DataAccessHelper,\n            DataArray: vtk.Common.Core.vtkDataArray,\n            Follower: vtk.Rendering.Core.vtkFollower,\n            FullScreenRenderWindow: vtk.Rendering.Misc.vtkFullScreenRenderWindow,\n            Glyph3DMapper: vtk.Rendering.Core.vtkGlyph3DMapper,\n            HttpSceneLoader: vtk.IO.Core.vtkHttpSceneLoader,\n            ImageData: vtk.Common.DataModel.vtkImageData,\n            ImageMapper: vtk.Rendering.Core.vtkImageMapper,\n            ImageProperty: vtk.Rendering.Core.vtkImageProperty,\n            ImageSlice: vtk.Rendering.Core.vtkImageSlice,\n            InteractiveOrientationWidget: vtk.Widgets.Widgets3D.vtkInteractiveOrientationWidget,\n            InteractorStyleTrackballCamera: vtk.Interaction.Style.vtkInteractorStyleTrackballCamera,\n            Light: vtk.Rendering.Core.vtkLight,\n            LineSource: vtk.Filters.Sources.vtkLineSource,\n            LookupTable: vtk.Common.Core.vtkLookupTable,\n            macro: vtk.macro,\n            Mapper: vtk.Rendering.Core.vtkMapper,\n            OpenGLRenderWindow: vtk.Rendering.OpenGL.vtkRenderWindow,\n            OrientationMarkerWidget: vtk.Interaction.Widgets.vtkOrientationMarkerWidget,\n            OutlineFilter: vtk.Filters.General.vtkOutlineFilter,\n            PiecewiseFunction: vtk.Common.DataModel.vtkPiecewiseFunction,\n            PixelSpaceCallbackMapper: vtk.Rendering.Core.vtkPixelSpaceCallbackMapper,\n            PlaneSource: vtk.Filters.Sources.vtkPlaneSource,\n            PointSource: vtk.Filters.Sources.vtkPointSource,\n            PolyData: vtk.Common.DataModel.vtkPolyData,\n            Property: vtk.Rendering.Core.vtkProperty,\n            Renderer: vtk.Rendering.Core.vtkRenderer,\n            RenderWindow: vtk.Rendering.Core.vtkRenderWindow,\n            RenderWindowInteractor: vtk.Rendering.Core.vtkRenderWindowInteractor,\n            SphereMapper: vtk.Rendering.Core.vtkSphereMapper,\n            SynchronizableRenderWindow: vtk.Rendering.Misc.vtkSynchronizableRenderWindow,\n            Texture: vtk.Rendering.Core.vtkTexture,\n            Volume: vtk.Rendering.Core.vtkVolume,\n            VolumeController: vtk.Interaction.UI.vtkVolumeController,\n            VolumeMapper: vtk.Rendering.Core.vtkVolumeMapper,\n            VolumeProperty: vtk.Rendering.Core.vtkVolumeProperty,\n            WidgetManager: vtk.Widgets.Core.vtkWidgetManager,\n        });\n        const { vtkObjectManager } = exports.vtkns.SynchronizableRenderWindow;\n        vtkObjectManager.setTypeMapping(\"vtkVolumeMapper\", exports.vtkns.VolumeMapper.newInstance, vtkObjectManager.oneTimeGenericUpdater);\n        vtkObjectManager.setTypeMapping(\"vtkSmartVolumeMapper\", exports.vtkns.VolumeMapper.newInstance, vtkObjectManager.oneTimeGenericUpdater);\n        vtkObjectManager.setTypeMapping(\"vtkFollower\", exports.vtkns.Follower.newInstance, vtkObjectManager.genericUpdater);\n        vtkObjectManager.setTypeMapping(\"vtkOpenGLGlyph3DMapper\", exports.vtkns.Glyph3DMapper.newInstance, vtkObjectManager.genericUpdater);\n    }\n    if (window.vtk) {\n        setup_vtkns();\n    }\n    exports.Interpolation = (0, kinds_1.Enum)(\"fast_linear\", \"linear\", \"nearest\");\n    function applyStyle(el, style) {\n        Object.keys(style).forEach((key) => {\n            el.style[key] = style[key];\n        });\n    }\n    function hexToRGB(color) {\n        return [\n            parseInt(color.slice(1, 3), 16) / 255,\n            parseInt(color.slice(3, 5), 16) / 255,\n            parseInt(color.slice(5, 7), 16) / 255,\n        ];\n    }\n    function valToHex(val) {\n        const hex = Math.min(Math.max(Math.round(val), 0), 255).toString(16);\n        return hex.length == 2 ? hex : `0${hex}`;\n    }\n    function rgbToHex(r, g, b) {\n        return `#${valToHex(r)}${valToHex(g)}${valToHex(b)}`;\n    }\n    function vtkLutToMapper(vtk_lut) {\n        //For the moment only linear colormapper are handle\n        const { scale, nodes } = vtk_lut.get(\"scale\", \"nodes\");\n        if (scale !== exports.vtkns.ColorTransferFunction.Scale.LINEAR) {\n            throw new Error(\"Error transfer function scale not handle\");\n        }\n        const x = nodes.map((a) => a.x);\n        const low = Math.min(...x);\n        const high = Math.max(...x);\n        const vals = (0, array_1.linspace)(low, high, 255);\n        const rgb = [0, 0, 0];\n        const palette = vals.map((val) => {\n            vtk_lut.getColor(val, rgb);\n            return rgbToHex(rgb[0] * 255, rgb[1] * 255, rgb[2] * 255);\n        });\n        return { low, high, palette };\n    }\n    function utf8ToAB(utf8_str) {\n        const buf = new ArrayBuffer(utf8_str.length); // 2 bytes for each char\n        const bufView = new Uint8Array(buf);\n        for (let i = 0, strLen = utf8_str.length; i < strLen; i++) {\n            bufView[i] = utf8_str.charCodeAt(i);\n        }\n        return buf;\n    }\n    function data2VTKImageData(data) {\n        const source = exports.vtkns.ImageData.newInstance({\n            spacing: data.spacing,\n        });\n        source.setDimensions(data.dims);\n        source.setOrigin(data.origin != null ? data.origin : data.dims.map((v) => v / 2));\n        const dataArray = exports.vtkns.DataArray.newInstance({\n            name: \"scalars\",\n            numberOfComponents: 1,\n            values: new exports.ARRAY_TYPES[data.dtype](utf8ToAB(atob(data.buffer))),\n        });\n        source.getPointData().setScalars(dataArray);\n        return source;\n    }\n    function majorAxis(vec3, idxA, idxB) {\n        const axis = [0, 0, 0];\n        const idx = Math.abs(vec3[idxA]) > Math.abs(vec3[idxB]) ? idxA : idxB;\n        const value = vec3[idx] > 0 ? 1 : -1;\n        axis[idx] = value;\n        return axis;\n    }\n    function cartesian_product(...arrays) {\n        return arrays.reduce((acc, curr) => {\n            return [...acc].flatMap((c) => curr.map((n) => [].concat(c, n)));\n        });\n    }\n}\n","min_source":"function _(e,n,r,t,o){t(),r.setup_vtkns=c,r.applyStyle=function(e,n){Object.keys(n).forEach((r=>{e.style[r]=n[r]}))},r.hexToRGB=function(e){return[parseInt(e.slice(1,3),16)/255,parseInt(e.slice(3,5),16)/255,parseInt(e.slice(5,7),16)/255]},r.rgbToHex=s,r.vtkLutToMapper=function(e){const{scale:n,nodes:t}=e.get(\"scale\",\"nodes\");if(n!==r.vtkns.ColorTransferFunction.Scale.LINEAR)throw new Error(\"Error transfer function scale not handle\");const o=t.map((e=>e.x)),i=Math.min(...o),c=Math.max(...o),l=(0,a.linspace)(i,c,255),p=[0,0,0],d=l.map((n=>(e.getColor(n,p),s(255*p[0],255*p[1],255*p[2]))));return{low:i,high:c,palette:d}},r.data2VTKImageData=function(e){const n=r.vtkns.ImageData.newInstance({spacing:e.spacing});n.setDimensions(e.dims),n.setOrigin(null!=e.origin?e.origin:e.dims.map((e=>e/2)));const t=r.vtkns.DataArray.newInstance({name:\"scalars\",numberOfComponents:1,values:new r.ARRAY_TYPES[e.dtype](p(atob(e.buffer)))});return n.getPointData().setScalars(t),n},r.majorAxis=function(e,n,r){const t=[0,0,0],o=Math.abs(e[n])>Math.abs(e[r])?n:r,a=e[o]>0?1:-1;return t[o]=a,t},r.cartesian_product=function(...e){return e.reduce(((e,n)=>[...e].flatMap((e=>n.map((n=>[].concat(e,n)))))))};const a=e(\"@bokehjs/core/util/array\"),i=e(\"@bokehjs/core/kinds\");function c(){if(null!=r.vtkns.Actor)return;const e=window.vtk;Object.assign(r.vtkns,{Actor:e.Rendering.Core.vtkActor,AxesActor:e.Rendering.Core.vtkAxesActor,Base64:e.Common.Core.vtkBase64,BoundingBox:e.Common.DataModel.vtkBoundingBox,Camera:e.Rendering.Core.vtkCamera,ColorTransferFunction:e.Rendering.Core.vtkColorTransferFunction,CubeSource:e.Filters.Sources.vtkCubeSource,DataAccessHelper:e.IO.Core.DataAccessHelper,DataArray:e.Common.Core.vtkDataArray,Follower:e.Rendering.Core.vtkFollower,FullScreenRenderWindow:e.Rendering.Misc.vtkFullScreenRenderWindow,Glyph3DMapper:e.Rendering.Core.vtkGlyph3DMapper,HttpSceneLoader:e.IO.Core.vtkHttpSceneLoader,ImageData:e.Common.DataModel.vtkImageData,ImageMapper:e.Rendering.Core.vtkImageMapper,ImageProperty:e.Rendering.Core.vtkImageProperty,ImageSlice:e.Rendering.Core.vtkImageSlice,InteractiveOrientationWidget:e.Widgets.Widgets3D.vtkInteractiveOrientationWidget,InteractorStyleTrackballCamera:e.Interaction.Style.vtkInteractorStyleTrackballCamera,Light:e.Rendering.Core.vtkLight,LineSource:e.Filters.Sources.vtkLineSource,LookupTable:e.Common.Core.vtkLookupTable,macro:e.macro,Mapper:e.Rendering.Core.vtkMapper,OpenGLRenderWindow:e.Rendering.OpenGL.vtkRenderWindow,OrientationMarkerWidget:e.Interaction.Widgets.vtkOrientationMarkerWidget,OutlineFilter:e.Filters.General.vtkOutlineFilter,PiecewiseFunction:e.Common.DataModel.vtkPiecewiseFunction,PixelSpaceCallbackMapper:e.Rendering.Core.vtkPixelSpaceCallbackMapper,PlaneSource:e.Filters.Sources.vtkPlaneSource,PointSource:e.Filters.Sources.vtkPointSource,PolyData:e.Common.DataModel.vtkPolyData,Property:e.Rendering.Core.vtkProperty,Renderer:e.Rendering.Core.vtkRenderer,RenderWindow:e.Rendering.Core.vtkRenderWindow,RenderWindowInteractor:e.Rendering.Core.vtkRenderWindowInteractor,SphereMapper:e.Rendering.Core.vtkSphereMapper,SynchronizableRenderWindow:e.Rendering.Misc.vtkSynchronizableRenderWindow,Texture:e.Rendering.Core.vtkTexture,Volume:e.Rendering.Core.vtkVolume,VolumeController:e.Interaction.UI.vtkVolumeController,VolumeMapper:e.Rendering.Core.vtkVolumeMapper,VolumeProperty:e.Rendering.Core.vtkVolumeProperty,WidgetManager:e.Widgets.Core.vtkWidgetManager});const{vtkObjectManager:n}=r.vtkns.SynchronizableRenderWindow;n.setTypeMapping(\"vtkVolumeMapper\",r.vtkns.VolumeMapper.newInstance,n.oneTimeGenericUpdater),n.setTypeMapping(\"vtkSmartVolumeMapper\",r.vtkns.VolumeMapper.newInstance,n.oneTimeGenericUpdater),n.setTypeMapping(\"vtkFollower\",r.vtkns.Follower.newInstance,n.genericUpdater),n.setTypeMapping(\"vtkOpenGLGlyph3DMapper\",r.vtkns.Glyph3DMapper.newInstance,n.genericUpdater)}function l(e){const n=Math.min(Math.max(Math.round(e),0),255).toString(16);return 2==n.length?n:`0${n}`}function s(e,n,r){return`#${l(e)}${l(n)}${l(r)}`}function p(e){const n=new ArrayBuffer(e.length),r=new Uint8Array(n);for(let n=0,t=e.length;n<t;n++)r[n]=e.charCodeAt(n);return n}r.ARRAY_TYPES={uint8:Uint8Array,int8:Int8Array,uint16:Uint16Array,int16:Int16Array,uint32:Uint32Array,int32:Int32Array,float32:Float32Array,float64:Float64Array},r.vtkns={},window.vtk&&c(),r.Interpolation=(0,i.Enum)(\"fast_linear\",\"linear\",\"nearest\")}\n//# sourceMappingURL=util.min.js.map","min_map":"{\"version\":3,\"file\":\"util.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"setup_vtkns\",\"applyStyle\",\"el\",\"style\",\"Object\",\"keys\",\"forEach\",\"key\",\"hexToRGB\",\"color\",\"parseInt\",\"slice\",\"rgbToHex\",\"vtkLutToMapper\",\"vtk_lut\",\"scale\",\"nodes\",\"get\",\"vtkns\",\"ColorTransferFunction\",\"Scale\",\"LINEAR\",\"Error\",\"x\",\"map\",\"a\",\"low\",\"Math\",\"min\",\"high\",\"max\",\"vals\",\"array_1\",\"linspace\",\"rgb\",\"palette\",\"val\",\"getColor\",\"data2VTKImageData\",\"data\",\"source\",\"ImageData\",\"newInstance\",\"spacing\",\"setDimensions\",\"dims\",\"setOrigin\",\"origin\",\"v\",\"dataArray\",\"DataArray\",\"name\",\"numberOfComponents\",\"values\",\"ARRAY_TYPES\",\"dtype\",\"utf8ToAB\",\"atob\",\"buffer\",\"getPointData\",\"setScalars\",\"majorAxis\",\"vec3\",\"idxA\",\"idxB\",\"axis\",\"idx\",\"abs\",\"value\",\"cartesian_product\",\"arrays\",\"reduce\",\"acc\",\"curr\",\"flatMap\",\"c\",\"n\",\"concat\",\"kinds_1\",\"Actor\",\"vtk\",\"window\",\"assign\",\"Rendering\",\"Core\",\"vtkActor\",\"AxesActor\",\"vtkAxesActor\",\"Base64\",\"Common\",\"vtkBase64\",\"BoundingBox\",\"DataModel\",\"vtkBoundingBox\",\"Camera\",\"vtkCamera\",\"vtkColorTransferFunction\",\"CubeSource\",\"Filters\",\"Sources\",\"vtkCubeSource\",\"DataAccessHelper\",\"IO\",\"vtkDataArray\",\"Follower\",\"vtkFollower\",\"FullScreenRenderWindow\",\"Misc\",\"vtkFullScreenRenderWindow\",\"Glyph3DMapper\",\"vtkGlyph3DMapper\",\"HttpSceneLoader\",\"vtkHttpSceneLoader\",\"vtkImageData\",\"ImageMapper\",\"vtkImageMapper\",\"ImageProperty\",\"vtkImageProperty\",\"ImageSlice\",\"vtkImageSlice\",\"InteractiveOrientationWidget\",\"Widgets\",\"Widgets3D\",\"vtkInteractiveOrientationWidget\",\"InteractorStyleTrackballCamera\",\"Interaction\",\"Style\",\"vtkInteractorStyleTrackballCamera\",\"Light\",\"vtkLight\",\"LineSource\",\"vtkLineSource\",\"LookupTable\",\"vtkLookupTable\",\"macro\",\"Mapper\",\"vtkMapper\",\"OpenGLRenderWindow\",\"OpenGL\",\"vtkRenderWindow\",\"OrientationMarkerWidget\",\"vtkOrientationMarkerWidget\",\"OutlineFilter\",\"General\",\"vtkOutlineFilter\",\"PiecewiseFunction\",\"vtkPiecewiseFunction\",\"PixelSpaceCallbackMapper\",\"vtkPixelSpaceCallbackMapper\",\"PlaneSource\",\"vtkPlaneSource\",\"PointSource\",\"vtkPointSource\",\"PolyData\",\"vtkPolyData\",\"Property\",\"vtkProperty\",\"Renderer\",\"vtkRenderer\",\"RenderWindow\",\"RenderWindowInteractor\",\"vtkRenderWindowInteractor\",\"SphereMapper\",\"vtkSphereMapper\",\"SynchronizableRenderWindow\",\"vtkSynchronizableRenderWindow\",\"Texture\",\"vtkTexture\",\"Volume\",\"vtkVolume\",\"VolumeController\",\"UI\",\"vtkVolumeController\",\"VolumeMapper\",\"vtkVolumeMapper\",\"VolumeProperty\",\"vtkVolumeProperty\",\"WidgetManager\",\"vtkWidgetManager\",\"vtkObjectManager\",\"setTypeMapping\",\"oneTimeGenericUpdater\",\"genericUpdater\",\"valToHex\",\"hex\",\"round\",\"toString\",\"length\",\"r\",\"g\",\"b\",\"utf8_str\",\"buf\",\"ArrayBuffer\",\"bufView\",\"Uint8Array\",\"i\",\"strLen\",\"charCodeAt\",\"uint8\",\"int8\",\"Int8Array\",\"uint16\",\"Uint16Array\",\"int16\",\"Int16Array\",\"uint32\",\"Uint32Array\",\"int32\",\"Int32Array\",\"float32\",\"Float32Array\",\"float64\",\"Float64Array\",\"Interpolation\",\"Enum\"],\"sources\":[\"0\"],\"mappings\":\"AAAyB,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACtED,IACAD,EAAQG,YAAcA,EACtBH,EAAQI,WAiFR,SAAoBC,EAAIC,GACpBC,OAAOC,KAAKF,GAAOG,SAASC,IACxBL,EAAGC,MAAMI,GAAOJ,EAAMI,EAAI,GAElC,EApFAV,EAAQW,SAqFR,SAAkBC,GACd,MAAO,CACHC,SAASD,EAAME,MAAM,EAAG,GAAI,IAAM,IAClCD,SAASD,EAAME,MAAM,EAAG,GAAI,IAAM,IAClCD,SAASD,EAAME,MAAM,EAAG,GAAI,IAAM,IAE1C,EA1FAd,EAAQe,SAAWA,EACnBf,EAAQgB,eAiGR,SAAwBC,GAEpB,MAAMC,MAAEA,EAAKC,MAAEA,GAAUF,EAAQG,IAAI,QAAS,SAC9C,GAAIF,IAAUlB,EAAQqB,MAAMC,sBAAsBC,MAAMC,OACpD,MAAM,IAAIC,MAAM,4CAEpB,MAAMC,EAAIP,EAAMQ,KAAKC,GAAMA,EAAEF,IACvBG,EAAMC,KAAKC,OAAOL,GAClBM,EAAOF,KAAKG,OAAOP,GACnBQ,GAAO,EAAIC,EAAQC,UAAUP,EAAKG,EAAM,KACxCK,EAAM,CAAC,EAAG,EAAG,GACbC,EAAUJ,EAAKP,KAAKY,IACtBtB,EAAQuB,SAASD,EAAKF,GACftB,EAAkB,IAATsB,EAAI,GAAmB,IAATA,EAAI,GAAmB,IAATA,EAAI,OAEpD,MAAO,CAAER,MAAKG,OAAMM,UACxB,EAhHAtC,EAAQyC,kBAyHR,SAA2BC,GACvB,MAAMC,EAAS3C,EAAQqB,MAAMuB,UAAUC,YAAY,CAC/CC,QAASJ,EAAKI,UAElBH,EA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,EAAQyN,eAAgB,EAAIxI,EAAQyI,MAAM,cAAe,SAAU,UAuEvE\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/vtk/vtkcolorbar.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/vtk/vtkcolorbar.js","canonical":"models/vtk/vtkcolorbar","resolution":"ESM","id":"b1d68776a9","hash":"b1d68776a9516b142731211b0e0622aad4b1d0487d95029353cf02b35fb363a3","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VTKColorBar = void 0;\nconst mappers_1 = require(\"@bokehjs/models/mappers\");\nconst array_1 = require(\"@bokehjs/core/util/array\");\nclass VTKColorBar {\n    constructor(parent, mapper, options = {}) {\n        this.parent = parent;\n        this.mapper = mapper;\n        this.options = options;\n        if (!options.ticksNum) {\n            options.ticksNum = 5;\n        }\n        if (!options.fontFamily) {\n            options.fontFamily = \"Arial\";\n        }\n        if (!options.fontSize) {\n            options.fontSize = \"12px\";\n        }\n        if (!options.ticksSize) {\n            options.ticksSize = 2;\n        }\n        this.canvas = document.createElement(\"canvas\");\n        this.canvas.style.width = \"100%\";\n        this.parent.appendChild(this.canvas);\n        this.ctx = this.canvas.getContext(\"2d\");\n        this.ctx.font = `${this.options.fontSize} ${this.options.fontFamily}`;\n        this.ctx.lineWidth = options.ticksSize;\n        if (!options.height) {\n            options.height = `${(this.font_height + 1) * 4}px`; //title/ticks/colorbar\n        }\n        this.canvas.style.height = options.height;\n        this.draw_colorbar();\n    }\n    get values() {\n        const { min, max } = this.mapper.metrics;\n        return (0, array_1.linspace)(min, max, this.options.ticksNum);\n    }\n    get ticks() {\n        return this.values.map((v) => v.toExponential(3));\n    }\n    get title() {\n        return this.mapper.name ?? \"scalars\";\n    }\n    get font_height() {\n        let font_height = 0;\n        this.values.forEach((val) => {\n            const { actualBoundingBoxAscent, actualBoundingBoxDescent, } = this.ctx.measureText(`${val}`);\n            const height = actualBoundingBoxAscent + actualBoundingBoxDescent;\n            if (font_height < height) {\n                font_height = height;\n            }\n        });\n        return font_height;\n    }\n    draw_colorbar() {\n        this.canvas.width = this.canvas.clientWidth;\n        this.canvas.height = this.canvas.clientHeight;\n        const { palette } = this.mapper;\n        this.ctx.font = `${this.options.fontSize} ${this.options.fontFamily}`;\n        const font_height = this.font_height;\n        this.ctx.save();\n        //colorbar\n        const image = document.createElement(\"canvas\");\n        const h = 1;\n        const w = palette.length;\n        image.width = w;\n        image.height = h;\n        const image_ctx = image.getContext(\"2d\");\n        const image_data = image_ctx.getImageData(0, 0, w, h);\n        const cmap = new mappers_1.LinearColorMapper({ palette }).rgba_mapper;\n        const buf8 = cmap.v_compute((0, array_1.range)(0, palette.length));\n        image_data.data.set(buf8);\n        image_ctx.putImageData(image_data, 0, 0);\n        this.ctx.drawImage(image, 0, 2 * (this.font_height + 1) + 1, this.canvas.width, this.canvas.height);\n        this.ctx.restore();\n        this.ctx.save();\n        //title\n        this.ctx.textAlign = \"center\";\n        this.ctx.fillText(this.title, this.canvas.width / 2, font_height + 1);\n        this.ctx.restore();\n        this.ctx.save();\n        //ticks\n        const tick_x_positions = (0, array_1.linspace)(0, this.canvas.width, 5);\n        tick_x_positions.forEach((xpos, idx) => {\n            let xpos_tick = xpos;\n            if (idx == 0) {\n                xpos_tick = xpos + Math.ceil(this.ctx.lineWidth / 2);\n                this.ctx.textAlign = \"left\";\n            }\n            else if (idx == tick_x_positions.length - 1) {\n                xpos_tick = xpos - Math.ceil(this.ctx.lineWidth / 2);\n                this.ctx.textAlign = \"right\";\n            }\n            else {\n                this.ctx.textAlign = \"center\";\n            }\n            this.ctx.moveTo(xpos_tick, 2 * (font_height + 1));\n            this.ctx.lineTo(xpos_tick, 2 * (font_height + 1) + 5);\n            this.ctx.stroke();\n            this.ctx.fillText(`${this.ticks[idx]}`, xpos, 2 * (font_height + 1));\n        });\n        this.ctx.restore();\n    }\n}\nexports.VTKColorBar = VTKColorBar;\nVTKColorBar.__name__ = \"VTKColorBar\";\n//# sourceMappingURL=vtkcolorbar.js.map\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"VTKColorBar"}],"externals":[],"shims":[]},"code":{"source":"/* models/vtk/vtkcolorbar.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const mappers_1 = require(\"@bokehjs/models/mappers\");\n    const array_1 = require(\"@bokehjs/core/util/array\");\n    class VTKColorBar {\n        constructor(parent, mapper, options = {}) {\n            this.parent = parent;\n            this.mapper = mapper;\n            this.options = options;\n            if (!options.ticksNum) {\n                options.ticksNum = 5;\n            }\n            if (!options.fontFamily) {\n                options.fontFamily = \"Arial\";\n            }\n            if (!options.fontSize) {\n                options.fontSize = \"12px\";\n            }\n            if (!options.ticksSize) {\n                options.ticksSize = 2;\n            }\n            this.canvas = document.createElement(\"canvas\");\n            this.canvas.style.width = \"100%\";\n            this.parent.appendChild(this.canvas);\n            this.ctx = this.canvas.getContext(\"2d\");\n            this.ctx.font = `${this.options.fontSize} ${this.options.fontFamily}`;\n            this.ctx.lineWidth = options.ticksSize;\n            if (!options.height) {\n                options.height = `${(this.font_height + 1) * 4}px`; //title/ticks/colorbar\n            }\n            this.canvas.style.height = options.height;\n            this.draw_colorbar();\n        }\n        get values() {\n            const { min, max } = this.mapper.metrics;\n            return (0, array_1.linspace)(min, max, this.options.ticksNum);\n        }\n        get ticks() {\n            return this.values.map((v) => v.toExponential(3));\n        }\n        get title() {\n            return this.mapper.name ?? \"scalars\";\n        }\n        get font_height() {\n            let font_height = 0;\n            this.values.forEach((val) => {\n                const { actualBoundingBoxAscent, actualBoundingBoxDescent, } = this.ctx.measureText(`${val}`);\n                const height = actualBoundingBoxAscent + actualBoundingBoxDescent;\n                if (font_height < height) {\n                    font_height = height;\n                }\n            });\n            return font_height;\n        }\n        draw_colorbar() {\n            this.canvas.width = this.canvas.clientWidth;\n            this.canvas.height = this.canvas.clientHeight;\n            const { palette } = this.mapper;\n            this.ctx.font = `${this.options.fontSize} ${this.options.fontFamily}`;\n            const font_height = this.font_height;\n            this.ctx.save();\n            //colorbar\n            const image = document.createElement(\"canvas\");\n            const h = 1;\n            const w = palette.length;\n            image.width = w;\n            image.height = h;\n            const image_ctx = image.getContext(\"2d\");\n            const image_data = image_ctx.getImageData(0, 0, w, h);\n            const cmap = new mappers_1.LinearColorMapper({ palette }).rgba_mapper;\n            const buf8 = cmap.v_compute((0, array_1.range)(0, palette.length));\n            image_data.data.set(buf8);\n            image_ctx.putImageData(image_data, 0, 0);\n            this.ctx.drawImage(image, 0, 2 * (this.font_height + 1) + 1, this.canvas.width, this.canvas.height);\n            this.ctx.restore();\n            this.ctx.save();\n            //title\n            this.ctx.textAlign = \"center\";\n            this.ctx.fillText(this.title, this.canvas.width / 2, font_height + 1);\n            this.ctx.restore();\n            this.ctx.save();\n            //ticks\n            const tick_x_positions = (0, array_1.linspace)(0, this.canvas.width, 5);\n            tick_x_positions.forEach((xpos, idx) => {\n                let xpos_tick = xpos;\n                if (idx == 0) {\n                    xpos_tick = xpos + Math.ceil(this.ctx.lineWidth / 2);\n                    this.ctx.textAlign = \"left\";\n                }\n                else if (idx == tick_x_positions.length - 1) {\n                    xpos_tick = xpos - Math.ceil(this.ctx.lineWidth / 2);\n                    this.ctx.textAlign = \"right\";\n                }\n                else {\n                    this.ctx.textAlign = \"center\";\n                }\n                this.ctx.moveTo(xpos_tick, 2 * (font_height + 1));\n                this.ctx.lineTo(xpos_tick, 2 * (font_height + 1) + 5);\n                this.ctx.stroke();\n                this.ctx.fillText(`${this.ticks[idx]}`, xpos, 2 * (font_height + 1));\n            });\n            this.ctx.restore();\n        }\n    }\n    exports.VTKColorBar = VTKColorBar;\n    VTKColorBar.__name__ = \"VTKColorBar\";\n}\n","min_source":"function _(t,i,e,s,h){s();const a=t(\"@bokehjs/models/mappers\"),n=t(\"@bokehjs/core/util/array\");class c{constructor(t,i,e={}){this.parent=t,this.mapper=i,this.options=e,e.ticksNum||(e.ticksNum=5),e.fontFamily||(e.fontFamily=\"Arial\"),e.fontSize||(e.fontSize=\"12px\"),e.ticksSize||(e.ticksSize=2),this.canvas=document.createElement(\"canvas\"),this.canvas.style.width=\"100%\",this.parent.appendChild(this.canvas),this.ctx=this.canvas.getContext(\"2d\"),this.ctx.font=`${this.options.fontSize} ${this.options.fontFamily}`,this.ctx.lineWidth=e.ticksSize,e.height||(e.height=4*(this.font_height+1)+\"px\"),this.canvas.style.height=e.height,this.draw_colorbar()}get values(){const{min:t,max:i}=this.mapper.metrics;return(0,n.linspace)(t,i,this.options.ticksNum)}get ticks(){return this.values.map((t=>t.toExponential(3)))}get title(){return this.mapper.name??\"scalars\"}get font_height(){let t=0;return this.values.forEach((i=>{const{actualBoundingBoxAscent:e,actualBoundingBoxDescent:s}=this.ctx.measureText(`${i}`),h=e+s;t<h&&(t=h)})),t}draw_colorbar(){this.canvas.width=this.canvas.clientWidth,this.canvas.height=this.canvas.clientHeight;const{palette:t}=this.mapper;this.ctx.font=`${this.options.fontSize} ${this.options.fontFamily}`;const i=this.font_height;this.ctx.save();const e=document.createElement(\"canvas\"),s=t.length;e.width=s,e.height=1;const h=e.getContext(\"2d\"),c=h.getImageData(0,0,s,1),o=new a.LinearColorMapper({palette:t}).rgba_mapper.v_compute((0,n.range)(0,t.length));c.data.set(o),h.putImageData(c,0,0),this.ctx.drawImage(e,0,2*(this.font_height+1)+1,this.canvas.width,this.canvas.height),this.ctx.restore(),this.ctx.save(),this.ctx.textAlign=\"center\",this.ctx.fillText(this.title,this.canvas.width/2,i+1),this.ctx.restore(),this.ctx.save();const r=(0,n.linspace)(0,this.canvas.width,5);r.forEach(((t,e)=>{let s=t;0==e?(s=t+Math.ceil(this.ctx.lineWidth/2),this.ctx.textAlign=\"left\"):e==r.length-1?(s=t-Math.ceil(this.ctx.lineWidth/2),this.ctx.textAlign=\"right\"):this.ctx.textAlign=\"center\",this.ctx.moveTo(s,2*(i+1)),this.ctx.lineTo(s,2*(i+1)+5),this.ctx.stroke(),this.ctx.fillText(`${this.ticks[e]}`,t,2*(i+1))})),this.ctx.restore()}}e.VTKColorBar=c,c.__name__=\"VTKColorBar\"}\n//# sourceMappingURL=vtkcolorbar.min.js.map","min_map":"{\"version\":3,\"file\":\"vtkcolorbar.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"mappers_1\",\"array_1\",\"VTKColorBar\",\"constructor\",\"parent\",\"mapper\",\"options\",\"this\",\"ticksNum\",\"fontFamily\",\"fontSize\",\"ticksSize\",\"canvas\",\"document\",\"createElement\",\"style\",\"width\",\"appendChild\",\"ctx\",\"getContext\",\"font\",\"lineWidth\",\"height\",\"font_height\",\"draw_colorbar\",\"values\",\"min\",\"max\",\"metrics\",\"linspace\",\"ticks\",\"map\",\"v\",\"toExponential\",\"title\",\"name\",\"forEach\",\"val\",\"actualBoundingBoxAscent\",\"actualBoundingBoxDescent\",\"measureText\",\"clientWidth\",\"clientHeight\",\"palette\",\"save\",\"image\",\"w\",\"length\",\"image_ctx\",\"image_data\",\"getImageData\",\"buf8\",\"LinearColorMapper\",\"rgba_mapper\",\"v_compute\",\"range\",\"data\",\"set\",\"putImageData\",\"drawImage\",\"restore\",\"textAlign\",\"fillText\",\"tick_x_positions\",\"xpos\",\"idx\",\"xpos_tick\",\"Math\",\"ceil\",\"moveTo\",\"lineTo\",\"stroke\",\"__name__\"],\"sources\":[\"0\"],\"mappings\":\"AAAgC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC7ED,IACA,MAAME,EAAYL,EAAQ,2BACpBM,EAAUN,EAAQ,4BACxB,MAAMO,EACF,WAAAC,CAAYC,EAAQC,EAAQC,EAAU,CAAC,GACnCC,KAAKH,OAASA,EACdG,KAAKF,OAASA,EACdE,KAAKD,QAAUA,EACVA,EAAQE,WACTF,EAAQE,SAAW,GAElBF,EAAQG,aACTH,EAAQG,WAAa,SAEpBH,EAAQI,WACTJ,EAAQI,SAAW,QAElBJ,EAAQK,YACTL,EAAQK,UAAY,GAExBJ,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AcA,EACtBA,EAAYsE,SAAW,aAC3B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/vtk/vtkaxes.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/vtk/vtkaxes.js","canonical":"models/vtk/vtkaxes","resolution":"ESM","id":"0379dcf1cd","hash":"0379dcf1cdf3848c26fcff471c634acb15495fc7115260776533d8a9f5e3a142","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VTKAxes = void 0;\nconst model_1 = require(\"@bokehjs/model\");\nconst gl_matrix_1 = require(\"gl-matrix\");\nconst util_1 = require(\"./util\");\nclass VTKAxes extends model_1.Model {\n    constructor(attrs) {\n        super(attrs);\n    }\n    get xticks() {\n        if (this.xticker) {\n            return this.xticker.ticks;\n        }\n        else {\n            return [];\n        }\n    }\n    get yticks() {\n        if (this.yticker) {\n            return this.yticker.ticks;\n        }\n        else {\n            return [];\n        }\n    }\n    get zticks() {\n        if (this.zticker) {\n            return this.zticker.ticks;\n        }\n        else {\n            return [];\n        }\n    }\n    get xlabels() {\n        return this.xticker?.labels\n            ? this.xticker.labels\n            : this.xticks.map((elem) => elem.toFixed(this.digits));\n    }\n    get ylabels() {\n        return this.yticker?.labels\n            ? this.yticker.labels\n            : this.yticks.map((elem) => elem.toFixed(this.digits));\n    }\n    get zlabels() {\n        return this.zticker?.labels\n            ? this.zticker.labels\n            : this.zticks.map((elem) => elem.toFixed(this.digits));\n    }\n    _make_grid_lines(n, m, offset) {\n        const out = [];\n        for (let i = 0; i < n - 1; i++) {\n            for (let j = 0; j < m - 1; j++) {\n                const v0 = i * m + j + offset;\n                const v1 = i * m + j + 1 + offset;\n                const v2 = (i + 1) * m + j + 1 + offset;\n                const v3 = (i + 1) * m + j + offset;\n                const line = [5, v0, v1, v2, v3, v0];\n                out.push(line);\n            }\n        }\n        return out;\n    }\n    _create_grid_axes() {\n        const pts = [];\n        pts.push((0, util_1.cartesian_product)(this.xticks, this.yticks, [this.origin[2]])); //xy\n        pts.push((0, util_1.cartesian_product)([this.origin[0]], this.yticks, this.zticks)); //yz\n        pts.push((0, util_1.cartesian_product)(this.xticks, [this.origin[1]], this.zticks)); //xz\n        const polys = [];\n        let offset = 0;\n        polys.push(this._make_grid_lines(this.xticks.length, this.yticks.length, offset)); //xy\n        offset += this.xticks.length * this.yticks.length;\n        polys.push(this._make_grid_lines(this.yticks.length, this.zticks.length, offset)); //yz\n        offset += this.yticks.length * this.zticks.length;\n        polys.push(this._make_grid_lines(this.xticks.length, this.zticks.length, offset)); //xz\n        const gridPolyData = window.vtk({\n            vtkClass: \"vtkPolyData\",\n            points: {\n                vtkClass: \"vtkPoints\",\n                dataType: \"Float32Array\",\n                numberOfComponents: 3,\n                values: pts.flat(2),\n            },\n            lines: {\n                vtkClass: \"vtkCellArray\",\n                dataType: \"Uint32Array\",\n                values: polys.flat(2),\n            },\n        });\n        const gridMapper = util_1.vtkns.Mapper.newInstance();\n        const gridActor = util_1.vtkns.Actor.newInstance();\n        gridMapper.setInputData(gridPolyData);\n        gridActor.setMapper(gridMapper);\n        gridActor.getProperty().setOpacity(this.grid_opacity);\n        gridActor.setVisibility(this.show_grid);\n        return gridActor;\n    }\n    create_axes(canvas) {\n        if (this.origin == null) {\n            return { psActor: null, axesActor: null, gridActor: null };\n        }\n        const points = [this.xticks, this.yticks, this.zticks].map((arr, axis) => {\n            let coords = null;\n            switch (axis) {\n                case 0:\n                    coords = (0, util_1.cartesian_product)(arr, [this.origin[1]], [this.origin[2]]);\n                    break;\n                case 1:\n                    coords = (0, util_1.cartesian_product)([this.origin[0]], arr, [this.origin[2]]);\n                    break;\n                case 2:\n                    coords = (0, util_1.cartesian_product)([this.origin[0]], [this.origin[1]], arr);\n                    break;\n            }\n            return coords;\n        }).flat(2);\n        const axesPolyData = window.vtk({\n            vtkClass: \"vtkPolyData\",\n            points: {\n                vtkClass: \"vtkPoints\",\n                dataType: \"Float32Array\",\n                numberOfComponents: 3,\n                values: points,\n            },\n            lines: {\n                vtkClass: \"vtkCellArray\",\n                dataType: \"Uint32Array\",\n                values: [\n                    2,\n                    0,\n                    this.xticks.length - 1,\n                    2,\n                    this.xticks.length,\n                    this.xticks.length + this.yticks.length - 1,\n                    2,\n                    this.xticks.length + this.yticks.length,\n                    this.xticks.length + this.yticks.length + this.zticks.length - 1,\n                ],\n            },\n        });\n        const psMapper = util_1.vtkns.PixelSpaceCallbackMapper.newInstance();\n        psMapper.setInputData(axesPolyData);\n        psMapper.setUseZValues(true);\n        psMapper.setCallback((coordsList, camera, aspect) => {\n            const textCtx = canvas.getContext(\"2d\");\n            if (textCtx) {\n                const dims = {\n                    height: canvas.clientHeight * window.devicePixelRatio,\n                    width: canvas.clientWidth * window.devicePixelRatio,\n                };\n                const dataPoints = psMapper.getInputData().getPoints();\n                const viewMatrix = camera.getViewMatrix();\n                gl_matrix_1.mat4.transpose(viewMatrix, viewMatrix);\n                const projMatrix = camera.getProjectionMatrix(aspect, -1, 1);\n                gl_matrix_1.mat4.transpose(projMatrix, projMatrix);\n                textCtx.clearRect(0, 0, dims.width, dims.height);\n                coordsList.forEach((xy, idx) => {\n                    const pdPoint = dataPoints.getPoint(idx);\n                    const vc = gl_matrix_1.vec3.fromValues(pdPoint[0], pdPoint[1], pdPoint[2]);\n                    gl_matrix_1.vec3.transformMat4(vc, vc, viewMatrix);\n                    vc[2] += 0.05; // sensibility\n                    gl_matrix_1.vec3.transformMat4(vc, vc, projMatrix);\n                    if (vc[2] - 0.001 < xy[3]) {\n                        textCtx.font = \"30px serif\";\n                        textCtx.textAlign = \"center\";\n                        textCtx.textBaseline = \"alphabetic\";\n                        textCtx.fillText(\".\", xy[0], dims.height - xy[1] + 2);\n                        textCtx.font = `${this.fontsize * window.devicePixelRatio}px serif`;\n                        textCtx.textAlign = \"right\";\n                        textCtx.textBaseline = \"top\";\n                        let label;\n                        if (idx < this.xticks.length) {\n                            label = this.xlabels[idx];\n                        }\n                        else if (idx >= this.xticks.length &&\n                            idx < this.xticks.length + this.yticks.length) {\n                            label = this.ylabels[idx - this.xticks.length];\n                        }\n                        else {\n                            label = this.zlabels[idx - (this.xticks.length + this.yticks.length)];\n                        }\n                        textCtx.fillText(`${label}`, xy[0], dims.height - xy[1]);\n                    }\n                });\n            }\n        });\n        const psActor = util_1.vtkns.Actor.newInstance(); //PixelSpace\n        psActor.setMapper(psMapper);\n        const axesMapper = util_1.vtkns.Mapper.newInstance();\n        axesMapper.setInputData(axesPolyData);\n        const axesActor = util_1.vtkns.Actor.newInstance();\n        axesActor.setMapper(axesMapper);\n        axesActor.getProperty().setOpacity(this.axes_opacity);\n        const gridActor = this._create_grid_axes();\n        return { psActor, axesActor, gridActor };\n    }\n}\nexports.VTKAxes = VTKAxes;\n_a = VTKAxes;\nVTKAxes.__name__ = \"VTKAxes\";\nVTKAxes.__module__ = \"panel.models.vtk\";\n(() => {\n    _a.define(({ Any, Array, Boolean, Number }) => ({\n        origin: [Array(Number), [0, 0, 0]],\n        xticker: [Any, null],\n        yticker: [Any, null],\n        zticker: [Any, null],\n        digits: [Number, 1],\n        show_grid: [Boolean, true],\n        grid_opacity: [Number, 0.1],\n        axes_opacity: [Number, 1],\n        fontsize: [Number, 12],\n    }));\n})();\n//# sourceMappingURL=vtkaxes.js.map\n","type":"js","dependency_paths":[["gl-matrix","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/index.js"],["./util","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/util.js"]],"dependency_map":[],"exported":[{"type":"named","name":"VTKAxes"}],"externals":[],"shims":[]},"code":{"source":"/* models/vtk/vtkaxes.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const model_1 = require(\"@bokehjs/model\");\n    const gl_matrix_1 = require(\"2f3fd5db07\") /* gl-matrix */;\n    const util_1 = require(\"df9946ff52\") /* ./util */;\n    class VTKAxes extends model_1.Model {\n        constructor(attrs) {\n            super(attrs);\n        }\n        get xticks() {\n            if (this.xticker) {\n                return this.xticker.ticks;\n            }\n            else {\n                return [];\n            }\n        }\n        get yticks() {\n            if (this.yticker) {\n                return this.yticker.ticks;\n            }\n            else {\n                return [];\n            }\n        }\n        get zticks() {\n            if (this.zticker) {\n                return this.zticker.ticks;\n            }\n            else {\n                return [];\n            }\n        }\n        get xlabels() {\n            return this.xticker?.labels\n                ? this.xticker.labels\n                : this.xticks.map((elem) => elem.toFixed(this.digits));\n        }\n        get ylabels() {\n            return this.yticker?.labels\n                ? this.yticker.labels\n                : this.yticks.map((elem) => elem.toFixed(this.digits));\n        }\n        get zlabels() {\n            return this.zticker?.labels\n                ? this.zticker.labels\n                : this.zticks.map((elem) => elem.toFixed(this.digits));\n        }\n        _make_grid_lines(n, m, offset) {\n            const out = [];\n            for (let i = 0; i < n - 1; i++) {\n                for (let j = 0; j < m - 1; j++) {\n                    const v0 = i * m + j + offset;\n                    const v1 = i * m + j + 1 + offset;\n                    const v2 = (i + 1) * m + j + 1 + offset;\n                    const v3 = (i + 1) * m + j + offset;\n                    const line = [5, v0, v1, v2, v3, v0];\n                    out.push(line);\n                }\n            }\n            return out;\n        }\n        _create_grid_axes() {\n            const pts = [];\n            pts.push((0, util_1.cartesian_product)(this.xticks, this.yticks, [this.origin[2]])); //xy\n            pts.push((0, util_1.cartesian_product)([this.origin[0]], this.yticks, this.zticks)); //yz\n            pts.push((0, util_1.cartesian_product)(this.xticks, [this.origin[1]], this.zticks)); //xz\n            const polys = [];\n            let offset = 0;\n            polys.push(this._make_grid_lines(this.xticks.length, this.yticks.length, offset)); //xy\n            offset += this.xticks.length * this.yticks.length;\n            polys.push(this._make_grid_lines(this.yticks.length, this.zticks.length, offset)); //yz\n            offset += this.yticks.length * this.zticks.length;\n            polys.push(this._make_grid_lines(this.xticks.length, this.zticks.length, offset)); //xz\n            const gridPolyData = window.vtk({\n                vtkClass: \"vtkPolyData\",\n                points: {\n                    vtkClass: \"vtkPoints\",\n                    dataType: \"Float32Array\",\n                    numberOfComponents: 3,\n                    values: pts.flat(2),\n                },\n                lines: {\n                    vtkClass: \"vtkCellArray\",\n                    dataType: \"Uint32Array\",\n                    values: polys.flat(2),\n                },\n            });\n            const gridMapper = util_1.vtkns.Mapper.newInstance();\n            const gridActor = util_1.vtkns.Actor.newInstance();\n            gridMapper.setInputData(gridPolyData);\n            gridActor.setMapper(gridMapper);\n            gridActor.getProperty().setOpacity(this.grid_opacity);\n            gridActor.setVisibility(this.show_grid);\n            return gridActor;\n        }\n        create_axes(canvas) {\n            if (this.origin == null) {\n                return { psActor: null, axesActor: null, gridActor: null };\n            }\n            const points = [this.xticks, this.yticks, this.zticks].map((arr, axis) => {\n                let coords = null;\n                switch (axis) {\n                    case 0:\n                        coords = (0, util_1.cartesian_product)(arr, [this.origin[1]], [this.origin[2]]);\n                        break;\n                    case 1:\n                        coords = (0, util_1.cartesian_product)([this.origin[0]], arr, [this.origin[2]]);\n                        break;\n                    case 2:\n                        coords = (0, util_1.cartesian_product)([this.origin[0]], [this.origin[1]], arr);\n                        break;\n                }\n                return coords;\n            }).flat(2);\n            const axesPolyData = window.vtk({\n                vtkClass: \"vtkPolyData\",\n                points: {\n                    vtkClass: \"vtkPoints\",\n                    dataType: \"Float32Array\",\n                    numberOfComponents: 3,\n                    values: points,\n                },\n                lines: {\n                    vtkClass: \"vtkCellArray\",\n                    dataType: \"Uint32Array\",\n                    values: [\n                        2,\n                        0,\n                        this.xticks.length - 1,\n                        2,\n                        this.xticks.length,\n                        this.xticks.length + this.yticks.length - 1,\n                        2,\n                        this.xticks.length + this.yticks.length,\n                        this.xticks.length + this.yticks.length + this.zticks.length - 1,\n                    ],\n                },\n            });\n            const psMapper = util_1.vtkns.PixelSpaceCallbackMapper.newInstance();\n            psMapper.setInputData(axesPolyData);\n            psMapper.setUseZValues(true);\n            psMapper.setCallback((coordsList, camera, aspect) => {\n                const textCtx = canvas.getContext(\"2d\");\n                if (textCtx) {\n                    const dims = {\n                        height: canvas.clientHeight * window.devicePixelRatio,\n                        width: canvas.clientWidth * window.devicePixelRatio,\n                    };\n                    const dataPoints = psMapper.getInputData().getPoints();\n                    const viewMatrix = camera.getViewMatrix();\n                    gl_matrix_1.mat4.transpose(viewMatrix, viewMatrix);\n                    const projMatrix = camera.getProjectionMatrix(aspect, -1, 1);\n                    gl_matrix_1.mat4.transpose(projMatrix, projMatrix);\n                    textCtx.clearRect(0, 0, dims.width, dims.height);\n                    coordsList.forEach((xy, idx) => {\n                        const pdPoint = dataPoints.getPoint(idx);\n                        const vc = gl_matrix_1.vec3.fromValues(pdPoint[0], pdPoint[1], pdPoint[2]);\n                        gl_matrix_1.vec3.transformMat4(vc, vc, viewMatrix);\n                        vc[2] += 0.05; // sensibility\n                        gl_matrix_1.vec3.transformMat4(vc, vc, projMatrix);\n                        if (vc[2] - 0.001 < xy[3]) {\n                            textCtx.font = \"30px serif\";\n                            textCtx.textAlign = \"center\";\n                            textCtx.textBaseline = \"alphabetic\";\n                            textCtx.fillText(\".\", xy[0], dims.height - xy[1] + 2);\n                            textCtx.font = `${this.fontsize * window.devicePixelRatio}px serif`;\n                            textCtx.textAlign = \"right\";\n                            textCtx.textBaseline = \"top\";\n                            let label;\n                            if (idx < this.xticks.length) {\n                                label = this.xlabels[idx];\n                            }\n                            else if (idx >= this.xticks.length &&\n                                idx < this.xticks.length + this.yticks.length) {\n                                label = this.ylabels[idx - this.xticks.length];\n                            }\n                            else {\n                                label = this.zlabels[idx - (this.xticks.length + this.yticks.length)];\n                            }\n                            textCtx.fillText(`${label}`, xy[0], dims.height - xy[1]);\n                        }\n                    });\n                }\n            });\n            const psActor = util_1.vtkns.Actor.newInstance(); //PixelSpace\n            psActor.setMapper(psMapper);\n            const axesMapper = util_1.vtkns.Mapper.newInstance();\n            axesMapper.setInputData(axesPolyData);\n            const axesActor = util_1.vtkns.Actor.newInstance();\n            axesActor.setMapper(axesMapper);\n            axesActor.getProperty().setOpacity(this.axes_opacity);\n            const gridActor = this._create_grid_axes();\n            return { psActor, axesActor, gridActor };\n        }\n    }\n    exports.VTKAxes = VTKAxes;\n    _a = VTKAxes;\n    VTKAxes.__name__ = \"VTKAxes\";\n    VTKAxes.__module__ = \"panel.models.vtk\";\n    (() => {\n        _a.define(({ Any, Array, Boolean, Number }) => ({\n            origin: [Array(Number), [0, 0, 0]],\n            xticker: [Any, null],\n            yticker: [Any, null],\n            zticker: [Any, null],\n            digits: [Number, 1],\n            show_grid: [Boolean, true],\n            grid_opacity: [Number, 0.1],\n            axes_opacity: [Number, 1],\n            fontsize: [Number, 12],\n        }));\n    })();\n}\n","min_source":"function _(t,i,s,e,n){var a;e();const r=t(\"@bokehjs/model\"),c=t(\"2f3fd5db07\"),l=t(\"df9946ff52\");class h extends r.Model{constructor(t){super(t)}get xticks(){return this.xticker?this.xticker.ticks:[]}get yticks(){return this.yticker?this.yticker.ticks:[]}get zticks(){return this.zticker?this.zticker.ticks:[]}get xlabels(){return this.xticker?.labels?this.xticker.labels:this.xticks.map((t=>t.toFixed(this.digits)))}get ylabels(){return this.yticker?.labels?this.yticker.labels:this.yticks.map((t=>t.toFixed(this.digits)))}get zlabels(){return this.zticker?.labels?this.zticker.labels:this.zticks.map((t=>t.toFixed(this.digits)))}_make_grid_lines(t,i,s){const e=[];for(let n=0;n<t-1;n++)for(let t=0;t<i-1;t++){const a=n*i+t+s,r=[5,a,n*i+t+1+s,(n+1)*i+t+1+s,(n+1)*i+t+s,a];e.push(r)}return e}_create_grid_axes(){const t=[];t.push((0,l.cartesian_product)(this.xticks,this.yticks,[this.origin[2]])),t.push((0,l.cartesian_product)([this.origin[0]],this.yticks,this.zticks)),t.push((0,l.cartesian_product)(this.xticks,[this.origin[1]],this.zticks));const i=[];let s=0;i.push(this._make_grid_lines(this.xticks.length,this.yticks.length,s)),s+=this.xticks.length*this.yticks.length,i.push(this._make_grid_lines(this.yticks.length,this.zticks.length,s)),s+=this.yticks.length*this.zticks.length,i.push(this._make_grid_lines(this.xticks.length,this.zticks.length,s));const e=window.vtk({vtkClass:\"vtkPolyData\",points:{vtkClass:\"vtkPoints\",dataType:\"Float32Array\",numberOfComponents:3,values:t.flat(2)},lines:{vtkClass:\"vtkCellArray\",dataType:\"Uint32Array\",values:i.flat(2)}}),n=l.vtkns.Mapper.newInstance(),a=l.vtkns.Actor.newInstance();return n.setInputData(e),a.setMapper(n),a.getProperty().setOpacity(this.grid_opacity),a.setVisibility(this.show_grid),a}create_axes(t){if(null==this.origin)return{psActor:null,axesActor:null,gridActor:null};const i=[this.xticks,this.yticks,this.zticks].map(((t,i)=>{let s=null;switch(i){case 0:s=(0,l.cartesian_product)(t,[this.origin[1]],[this.origin[2]]);break;case 1:s=(0,l.cartesian_product)([this.origin[0]],t,[this.origin[2]]);break;case 2:s=(0,l.cartesian_product)([this.origin[0]],[this.origin[1]],t)}return s})).flat(2),s=window.vtk({vtkClass:\"vtkPolyData\",points:{vtkClass:\"vtkPoints\",dataType:\"Float32Array\",numberOfComponents:3,values:i},lines:{vtkClass:\"vtkCellArray\",dataType:\"Uint32Array\",values:[2,0,this.xticks.length-1,2,this.xticks.length,this.xticks.length+this.yticks.length-1,2,this.xticks.length+this.yticks.length,this.xticks.length+this.yticks.length+this.zticks.length-1]}}),e=l.vtkns.PixelSpaceCallbackMapper.newInstance();e.setInputData(s),e.setUseZValues(!0),e.setCallback(((i,s,n)=>{const a=t.getContext(\"2d\");if(a){const r={height:t.clientHeight*window.devicePixelRatio,width:t.clientWidth*window.devicePixelRatio},l=e.getInputData().getPoints(),h=s.getViewMatrix();c.mat4.transpose(h,h);const o=s.getProjectionMatrix(n,-1,1);c.mat4.transpose(o,o),a.clearRect(0,0,r.width,r.height),i.forEach(((t,i)=>{const s=l.getPoint(i),e=c.vec3.fromValues(s[0],s[1],s[2]);if(c.vec3.transformMat4(e,e,h),e[2]+=.05,c.vec3.transformMat4(e,e,o),e[2]-.001<t[3]){let s;a.font=\"30px serif\",a.textAlign=\"center\",a.textBaseline=\"alphabetic\",a.fillText(\".\",t[0],r.height-t[1]+2),a.font=this.fontsize*window.devicePixelRatio+\"px serif\",a.textAlign=\"right\",a.textBaseline=\"top\",s=i<this.xticks.length?this.xlabels[i]:i>=this.xticks.length&&i<this.xticks.length+this.yticks.length?this.ylabels[i-this.xticks.length]:this.zlabels[i-(this.xticks.length+this.yticks.length)],a.fillText(`${s}`,t[0],r.height-t[1])}}))}}));const n=l.vtkns.Actor.newInstance();n.setMapper(e);const a=l.vtkns.Mapper.newInstance();a.setInputData(s);const r=l.vtkns.Actor.newInstance();r.setMapper(a),r.getProperty().setOpacity(this.axes_opacity);return{psActor:n,axesActor:r,gridActor:this._create_grid_axes()}}}s.VTKAxes=h,a=h,h.__name__=\"VTKAxes\",h.__module__=\"panel.models.vtk\",a.define((({Any:t,Array:i,Boolean:s,Number:e})=>({origin:[i(e),[0,0,0]],xticker:[t,null],yticker:[t,null],zticker:[t,null],digits:[e,1],show_grid:[s,!0],grid_opacity:[e,.1],axes_opacity:[e,1],fontsize:[e,12]})))}\n//# sourceMappingURL=vtkaxes.min.js.map","min_map":"{\"version\":3,\"file\":\"vtkaxes.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"model_1\",\"gl_matrix_1\",\"util_1\",\"VTKAxes\",\"Model\",\"constructor\",\"attrs\",\"super\",\"xticks\",\"this\",\"xticker\",\"ticks\",\"yticks\",\"yticker\",\"zticks\",\"zticker\",\"xlabels\",\"labels\",\"map\",\"elem\",\"toFixed\",\"digits\",\"ylabels\",\"zlabels\",\"_make_grid_lines\",\"n\",\"m\",\"offset\",\"out\",\"i\",\"j\",\"v0\",\"line\",\"push\",\"_create_grid_axes\",\"pts\",\"cartesian_product\",\"origin\",\"polys\",\"length\",\"gridPolyData\",\"window\",\"vtk\",\"vtkClass\",\"points\",\"dataType\",\"numberOfComponents\",\"values\",\"flat\",\"lines\",\"gridMapper\",\"vtkns\",\"Mapper\",\"newInstance\",\"gridActor\",\"Actor\",\"setInputData\",\"setMapper\",\"getProperty\",\"setOpacity\",\"grid_opacity\",\"setVisibility\",\"show_grid\",\"create_axes\",\"canvas\",\"psActor\",\"axesActor\",\"arr\",\"axis\",\"coords\",\"axesPolyData\",\"psMapper\",\"PixelSpaceCallbackMapper\",\"setUseZValues\",\"setCallback\",\"coordsList\",\"camera\",\"aspect\",\"textCtx\",\"getContext\",\"dims\",\"height\",\"clientHeight\",\"devicePixelRatio\",\"width\",\"clientWidth\",\"dataPoints\",\"getInputData\",\"getPoints\",\"viewMatrix\",\"getViewMatrix\",\"mat4\",\"transpose\",\"projMatrix\",\"getProjectionMatrix\",\"clearRect\",\"forEach\",\"xy\",\"idx\",\"pdPoint\",\"getPoint\",\"vc\",\"vec3\",\"fromValues\",\"transformMat4\",\"label\",\"font\",\"textAlign\",\"textBaseline\",\"fillText\",\"fontsize\",\"axesMapper\",\"axes_opacity\",\"__name__\",\"__module__\",\"define\",\"Any\",\"Array\",\"Boolean\",\"Number\"],\"sources\":[\"0\"],\"mappings\":\"AAA4B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzE,IAAIC,EACJF,IACA,MAAMG,EAAUN,EAAQ,kBAClBO,EAAcP,EAAQ,cACtBQ,EAASR,EAAQ,cACvB,MAAMS,UAAgBH,EAAQI,MAC1B,WAAAC,CAAYC,GACRC,MAAMD,EACV,CACA,UAAIE,GACA,OAAIC,KAAKC,QACED,KAAKC,QAAQC,MAGb,EAEf,CACA,UAAIC,GACA,OAAIH,KAAKI,QACEJ,KAAKI,QAAQF,MAGb,EAEf,CACA,UAAIG,GACA,OAAIL,KAAKM,QACEN,KAAKM,QAAQJ,MAGb,EAEf,CACA,WAAIK,GACA,OAAOP,KAAKC,SAASO,OACfR,KAAKC,QAAQO,OACbR,KAAKD,OAAOU,KAAKC,GAASA,EAAKC,QAAQX,KAAKY,SACtD,CACA,WAAIC,GACA,OAAOb,KAAKI,SAASI,OACfR,KAAKI,QAAQI,OACbR,KAAKG,OAAOM,KAAKC,GAASA,EAAKC,QAAQX,KAAKY,SACtD,CACA,W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"/home/runner/work/panel/panel/panel/node_modules","base_path":"gl-matrix/esm/index.js","resolution":"ESM","id":"2f3fd5db07","hash":"2f3fd5db07a7a4d61751561c0fcba157d5e8d93147abfa083176978cf1af208c","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.vec4 = exports.vec3 = exports.vec2 = exports.quat2 = exports.quat = exports.mat4 = exports.mat3 = exports.mat2d = exports.mat2 = exports.glMatrix = void 0;\nconst tslib_1 = require(\"tslib\");\nconst glMatrix = tslib_1.__importStar(require(\"./common.js\"));\nexports.glMatrix = glMatrix;\nconst mat2 = tslib_1.__importStar(require(\"./mat2.js\"));\nexports.mat2 = mat2;\nconst mat2d = tslib_1.__importStar(require(\"./mat2d.js\"));\nexports.mat2d = mat2d;\nconst mat3 = tslib_1.__importStar(require(\"./mat3.js\"));\nexports.mat3 = mat3;\nconst mat4 = tslib_1.__importStar(require(\"./mat4.js\"));\nexports.mat4 = mat4;\nconst quat = tslib_1.__importStar(require(\"./quat.js\"));\nexports.quat = quat;\nconst quat2 = tslib_1.__importStar(require(\"./quat2.js\"));\nexports.quat2 = quat2;\nconst vec2 = tslib_1.__importStar(require(\"./vec2.js\"));\nexports.vec2 = vec2;\nconst vec3 = tslib_1.__importStar(require(\"./vec3.js\"));\nexports.vec3 = vec3;\nconst vec4 = tslib_1.__importStar(require(\"./vec4.js\"));\nexports.vec4 = vec4;\n","type":"js","dependency_paths":[["./common.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/common.js"],["./mat2.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/mat2.js"],["./mat2d.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/mat2d.js"],["./mat3.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/mat3.js"],["./mat4.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/mat4.js"],["./quat.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/quat.js"],["./quat2.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/quat2.js"],["./vec2.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/vec2.js"],["./vec3.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/vec3.js"],["./vec4.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/vec4.js"]],"dependency_map":[],"exported":[],"externals":[],"shims":[]},"code":{"source":"/* gl-matrix/esm/index.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    const tslib_1 = require(\"tslib\");\n    const glMatrix = tslib_1.__importStar(require(\"7d825b979e\") /* ./common.js */);\n    exports.glMatrix = glMatrix;\n    const mat2 = tslib_1.__importStar(require(\"d77e165b60\") /* ./mat2.js */);\n    exports.mat2 = mat2;\n    const mat2d = tslib_1.__importStar(require(\"33a5f6cb7a\") /* ./mat2d.js */);\n    exports.mat2d = mat2d;\n    const mat3 = tslib_1.__importStar(require(\"a025ef02dc\") /* ./mat3.js */);\n    exports.mat3 = mat3;\n    const mat4 = tslib_1.__importStar(require(\"83bad9e639\") /* ./mat4.js */);\n    exports.mat4 = mat4;\n    const quat = tslib_1.__importStar(require(\"f83fe7c413\") /* ./quat.js */);\n    exports.quat = quat;\n    const quat2 = tslib_1.__importStar(require(\"fb9294db61\") /* ./quat2.js */);\n    exports.quat2 = quat2;\n    const vec2 = tslib_1.__importStar(require(\"58c71a9bd3\") /* ./vec2.js */);\n    exports.vec2 = vec2;\n    const vec3 = tslib_1.__importStar(require(\"63eddc5433\") /* ./vec3.js */);\n    exports.vec3 = vec3;\n    const vec4 = tslib_1.__importStar(require(\"11562bccc5\") /* ./vec4.js */);\n    exports.vec4 = vec4;\n}\n","min_source":"function _(t,a,c,o,r){o();const _=t(\"tslib\"),m=_.__importStar(t(\"7d825b979e\"));c.glMatrix=m;const i=_.__importStar(t(\"d77e165b60\"));c.mat2=i;const n=_.__importStar(t(\"33a5f6cb7a\"));c.mat2d=n;const s=_.__importStar(t(\"a025ef02dc\"));c.mat3=s;const p=_.__importStar(t(\"83bad9e639\"));c.mat4=p;const S=_.__importStar(t(\"f83fe7c413\"));c.quat=S;const b=_.__importStar(t(\"fb9294db61\"));c.quat2=b;const d=_.__importStar(t(\"58c71a9bd3\"));c.vec2=d;const e=_.__importStar(t(\"63eddc5433\"));c.vec3=e;const f=_.__importStar(t(\"11562bccc5\"));c.vec4=f}\n//# sourceMappingURL=index.min.js.map","min_map":"{\"version\":3,\"file\":\"index.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"tslib_1\",\"glMatrix\",\"__importStar\",\"mat2\",\"mat2d\",\"mat3\",\"mat4\",\"quat\",\"quat2\",\"vec2\",\"vec3\",\"vec4\"],\"sources\":[\"0\"],\"mappings\":\"AAA6B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC1ED,IACA,MAAME,EAAUL,EAAQ,SAClBM,EAAWD,EAAQE,aAAaP,EAAQ,eAC9CE,EAAQI,SAAWA,EACnB,MAAME,EAAOH,EAAQE,aAAaP,EAAQ,eAC1CE,EAAQM,KAAOA,EACf,MAAMC,EAAQJ,EAAQE,aAAaP,EAAQ,eAC3CE,EAAQO,MAAQA,EAChB,MAAMC,EAAOL,EAAQE,aAAaP,EAAQ,eAC1CE,EAAQQ,KAAOA,EACf,MAAMC,EAAON,EAAQE,aAAaP,EAAQ,eAC1CE,EAAQS,KAAOA,EACf,MAAMC,EAAOP,EAAQE,aAAaP,EAAQ,eAC1CE,EAAQU,KAAOA,EACf,MAAMC,EAAQR,EAAQE,aAAaP,EAAQ,eAC3CE,EAAQW,MAAQA,EAChB,MAAMC,EAAOT,EAAQE,aAAaP,EAAQ,eAC1CE,EAAQY,KAAOA,EACf,MAAMC,EAAOV,EAAQE,aAAaP,EAAQ,eAC1CE,EAAQa,KAAOA,EACf,MAAMC,EAAOX,EAAQE,aAAaP,EAAQ,eAC1CE,EAAQc,KAAOA,CACnB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/common.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"gl-matrix/esm/common.js","resolution":"ESM","id":"7d825b979e","hash":"7d825b979e1f3f30d9cf4945fc6917f3076879f20be2524af8b077e80c27babf","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RANDOM = exports.ARRAY_TYPE = exports.EPSILON = void 0;\nexports.setMatrixArrayType = setMatrixArrayType;\nexports.toRadian = toRadian;\nexports.equals = equals;\n/**\n * Common utilities\n * @module glMatrix\n */\n// Configuration Constants\nexports.EPSILON = 0.000001;\nexports.ARRAY_TYPE = typeof Float32Array !== 'undefined' ? Float32Array : Array;\nexports.RANDOM = Math.random;\n/**\n * Sets the type of array used when creating new vectors and matrices\n *\n * @param {Float32ArrayConstructor | ArrayConstructor} type Array type, such as Float32Array or Array\n */\nfunction setMatrixArrayType(type) {\n    exports.ARRAY_TYPE = type;\n}\nvar degree = Math.PI / 180;\n/**\n * Convert Degree To Radian\n *\n * @param {Number} a Angle in Degrees\n */\nfunction toRadian(a) {\n    return a * degree;\n}\n/**\n * Tests whether or not the arguments have approximately the same value, within an absolute\n * or relative tolerance of glMatrix.EPSILON (an absolute tolerance is used for values less\n * than or equal to 1.0, and a relative tolerance is used for larger values)\n *\n * @param {Number} a The first number to test.\n * @param {Number} b The second number to test.\n * @returns {Boolean} True if the numbers are approximately equal, false otherwise.\n */\nfunction equals(a, b) {\n    return Math.abs(a - b) <= exports.EPSILON * Math.max(1.0, Math.abs(a), Math.abs(b));\n}\nif (!Math.hypot)\n    Math.hypot = function () {\n        var y = 0, i = arguments.length;\n        while (i--) {\n            y += arguments[i] * arguments[i];\n        }\n        return Math.sqrt(y);\n    };\n","type":"js","dependency_paths":[],"dependency_map":[],"exported":[{"type":"named","name":"setMatrixArrayType"},{"type":"named","name":"toRadian"},{"type":"named","name":"equals"}],"externals":[],"shims":[]},"code":{"source":"/* gl-matrix/esm/common.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.setMatrixArrayType = setMatrixArrayType;\n    exports.toRadian = toRadian;\n    exports.equals = equals;\n    /**\n     * Common utilities\n     * @module glMatrix\n     */\n    // Configuration Constants\n    exports.EPSILON = 0.000001;\n    exports.ARRAY_TYPE = typeof Float32Array !== 'undefined' ? Float32Array : Array;\n    exports.RANDOM = Math.random;\n    /**\n     * Sets the type of array used when creating new vectors and matrices\n     *\n     * @param {Float32ArrayConstructor | ArrayConstructor} type Array type, such as Float32Array or Array\n     */\n    function setMatrixArrayType(type) {\n        exports.ARRAY_TYPE = type;\n    }\n    var degree = Math.PI / 180;\n    /**\n     * Convert Degree To Radian\n     *\n     * @param {Number} a Angle in Degrees\n     */\n    function toRadian(a) {\n        return a * degree;\n    }\n    /**\n     * Tests whether or not the arguments have approximately the same value, within an absolute\n     * or relative tolerance of glMatrix.EPSILON (an absolute tolerance is used for values less\n     * than or equal to 1.0, and a relative tolerance is used for larger values)\n     *\n     * @param {Number} a The first number to test.\n     * @param {Number} b The second number to test.\n     * @returns {Boolean} True if the numbers are approximately equal, false otherwise.\n     */\n    function equals(a, b) {\n        return Math.abs(a - b) <= exports.EPSILON * Math.max(1.0, Math.abs(a), Math.abs(b));\n    }\n    if (!Math.hypot)\n        Math.hypot = function () {\n            var y = 0, i = arguments.length;\n            while (i--) {\n                y += arguments[i] * arguments[i];\n            }\n            return Math.sqrt(y);\n        };\n}\n","min_source":"function _(t,a,r,n,o){n(),r.setMatrixArrayType=function(t){r.ARRAY_TYPE=t},r.toRadian=function(t){return t*h},r.equals=function(t,a){return Math.abs(t-a)<=r.EPSILON*Math.max(1,Math.abs(t),Math.abs(a))},r.EPSILON=1e-6,r.ARRAY_TYPE=\"undefined\"!=typeof Float32Array?Float32Array:Array,r.RANDOM=Math.random;var h=Math.PI/180;Math.hypot||(Math.hypot=function(){for(var t=0,a=arguments.length;a--;)t+=arguments[a]*arguments[a];return Math.sqrt(t)})}\n//# sourceMappingURL=common.min.js.map","min_map":"{\"version\":3,\"file\":\"common.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"setMatrixArrayType\",\"type\",\"ARRAY_TYPE\",\"toRadian\",\"a\",\"degree\",\"equals\",\"b\",\"Math\",\"abs\",\"EPSILON\",\"max\",\"Float32Array\",\"Array\",\"RANDOM\",\"random\",\"PI\",\"hypot\",\"y\",\"i\",\"arguments\",\"length\",\"sqrt\"],\"sources\":[\"0\"],\"mappings\":\"AAA8B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC3ED,IACAD,EAAQG,mBAgBR,SAA4BC,GACxBJ,EAAQK,WAAaD,CACzB,EAjBAJ,EAAQM,SAwBR,SAAkBC,GACd,OAAOA,EAAIC,CACf,EAzBAR,EAAQS,OAmCR,SAAgBF,EAAGG,GACf,OAAOC,KAAKC,IAAIL,EAAIG,IAAMV,EAAQa,QAAUF,KAAKG,IAAI,EAAKH,KAAKC,IAAIL,GAAII,KAAKC,IAAIF,GACpF,EA/BAV,EAAQa,QAAU,KAClBb,EAAQK,WAAqC,oBAAjBU,aAA+BA,aAAeC,MAC1EhB,EAAQiB,OAASN,KAAKO,OAStB,IAAIV,EAASG,KAAKQ,GAAK,IAqBlBR,KAAKS,QACNT,KAAKS,MAAQ,WAET,IADA,IAAIC,EAAI,EAAGC,EAAIC,UAAUC,OAClBF,KACHD,GAAKE,UAAUD,GAAKC,UAAUD,GAElC,OAAOX,KAAKc,KAAKJ,EACrB,EACR\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/mat2.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"gl-matrix/esm/mat2.js","resolution":"ESM","id":"d77e165b60","hash":"d77e165b600bec9ffa03ddcc4666c43e097a74e290cc55471b2d49e54395f179","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sub = exports.mul = void 0;\nexports.create = create;\nexports.clone = clone;\nexports.copy = copy;\nexports.identity = identity;\nexports.fromValues = fromValues;\nexports.set = set;\nexports.transpose = transpose;\nexports.invert = invert;\nexports.adjoint = adjoint;\nexports.determinant = determinant;\nexports.multiply = multiply;\nexports.rotate = rotate;\nexports.scale = scale;\nexports.fromRotation = fromRotation;\nexports.fromScaling = fromScaling;\nexports.str = str;\nexports.frob = frob;\nexports.LDU = LDU;\nexports.add = add;\nexports.subtract = subtract;\nexports.exactEquals = exactEquals;\nexports.equals = equals;\nexports.multiplyScalar = multiplyScalar;\nexports.multiplyScalarAndAdd = multiplyScalarAndAdd;\nconst tslib_1 = require(\"tslib\");\nconst glMatrix = tslib_1.__importStar(require(\"./common.js\"));\n/**\n * 2x2 Matrix\n * @module mat2\n */\n/**\n * Creates a new identity mat2\n *\n * @returns {mat2} a new 2x2 matrix\n */\nfunction create() {\n    var out = new glMatrix.ARRAY_TYPE(4);\n    if (glMatrix.ARRAY_TYPE != Float32Array) {\n        out[1] = 0;\n        out[2] = 0;\n    }\n    out[0] = 1;\n    out[3] = 1;\n    return out;\n}\n/**\n * Creates a new mat2 initialized with values from an existing matrix\n *\n * @param {ReadonlyMat2} a matrix to clone\n * @returns {mat2} a new 2x2 matrix\n */\nfunction clone(a) {\n    var out = new glMatrix.ARRAY_TYPE(4);\n    out[0] = a[0];\n    out[1] = a[1];\n    out[2] = a[2];\n    out[3] = a[3];\n    return out;\n}\n/**\n * Copy the values from one mat2 to another\n *\n * @param {mat2} out the receiving matrix\n * @param {ReadonlyMat2} a the source matrix\n * @returns {mat2} out\n */\nfunction copy(out, a) {\n    out[0] = a[0];\n    out[1] = a[1];\n    out[2] = a[2];\n    out[3] = a[3];\n    return out;\n}\n/**\n * Set a mat2 to the identity matrix\n *\n * @param {mat2} out the receiving matrix\n * @returns {mat2} out\n */\nfunction identity(out) {\n    out[0] = 1;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 1;\n    return out;\n}\n/**\n * Create a new mat2 with the given values\n *\n * @param {Number} m00 Component in column 0, row 0 position (index 0)\n * @param {Number} m01 Component in column 0, row 1 position (index 1)\n * @param {Number} m10 Component in column 1, row 0 position (index 2)\n * @param {Number} m11 Component in column 1, row 1 position (index 3)\n * @returns {mat2} out A new 2x2 matrix\n */\nfunction fromValues(m00, m01, m10, m11) {\n    var out = new glMatrix.ARRAY_TYPE(4);\n    out[0] = m00;\n    out[1] = m01;\n    out[2] = m10;\n    out[3] = m11;\n    return out;\n}\n/**\n * Set the components of a mat2 to the given values\n *\n * @param {mat2} out the receiving matrix\n * @param {Number} m00 Component in column 0, row 0 position (index 0)\n * @param {Number} m01 Component in column 0, row 1 position (index 1)\n * @param {Number} m10 Component in column 1, row 0 position (index 2)\n * @param {Number} m11 Component in column 1, row 1 position (index 3)\n * @returns {mat2} out\n */\nfunction set(out, m00, m01, m10, m11) {\n    out[0] = m00;\n    out[1] = m01;\n    out[2] = m10;\n    out[3] = m11;\n    return out;\n}\n/**\n * Transpose the values of a mat2\n *\n * @param {mat2} out the receiving matrix\n * @param {ReadonlyMat2} a the source matrix\n * @returns {mat2} out\n */\nfunction transpose(out, a) {\n    // If we are transposing ourselves we can skip a few steps but have to cache\n    // some values\n    if (out === a) {\n        var a1 = a[1];\n        out[1] = a[2];\n        out[2] = a1;\n    }\n    else {\n        out[0] = a[0];\n        out[1] = a[2];\n        out[2] = a[1];\n        out[3] = a[3];\n    }\n    return out;\n}\n/**\n * Inverts a mat2\n *\n * @param {mat2} out the receiving matrix\n * @param {ReadonlyMat2} a the source matrix\n * @returns {mat2} out\n */\nfunction invert(out, a) {\n    var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3]; // Calculate the determinant\n    var det = a0 * a3 - a2 * a1;\n    if (!det) {\n        return null;\n    }\n    det = 1.0 / det;\n    out[0] = a3 * det;\n    out[1] = -a1 * det;\n    out[2] = -a2 * det;\n    out[3] = a0 * det;\n    return out;\n}\n/**\n * Calculates the adjugate of a mat2\n *\n * @param {mat2} out the receiving matrix\n * @param {ReadonlyMat2} a the source matrix\n * @returns {mat2} out\n */\nfunction adjoint(out, a) {\n    // Caching this value is nessecary if out == a\n    var a0 = a[0];\n    out[0] = a[3];\n    out[1] = -a[1];\n    out[2] = -a[2];\n    out[3] = a0;\n    return out;\n}\n/**\n * Calculates the determinant of a mat2\n *\n * @param {ReadonlyMat2} a the source matrix\n * @returns {Number} determinant of a\n */\nfunction determinant(a) {\n    return a[0] * a[3] - a[2] * a[1];\n}\n/**\n * Multiplies two mat2's\n *\n * @param {mat2} out the receiving matrix\n * @param {ReadonlyMat2} a the first operand\n * @param {ReadonlyMat2} b the second operand\n * @returns {mat2} out\n */\nfunction multiply(out, a, b) {\n    var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3];\n    var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3];\n    out[0] = a0 * b0 + a2 * b1;\n    out[1] = a1 * b0 + a3 * b1;\n    out[2] = a0 * b2 + a2 * b3;\n    out[3] = a1 * b2 + a3 * b3;\n    return out;\n}\n/**\n * Rotates a mat2 by the given angle\n *\n * @param {mat2} out the receiving matrix\n * @param {ReadonlyMat2} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat2} out\n */\nfunction rotate(out, a, rad) {\n    var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3];\n    var s = Math.sin(rad);\n    var c = Math.cos(rad);\n    out[0] = a0 * c + a2 * s;\n    out[1] = a1 * c + a3 * s;\n    out[2] = a0 * -s + a2 * c;\n    out[3] = a1 * -s + a3 * c;\n    return out;\n}\n/**\n * Scales the mat2 by the dimensions in the given vec2\n *\n * @param {mat2} out the receiving matrix\n * @param {ReadonlyMat2} a the matrix to rotate\n * @param {ReadonlyVec2} v the vec2 to scale the matrix by\n * @returns {mat2} out\n **/\nfunction scale(out, a, v) {\n    var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3];\n    var v0 = v[0], v1 = v[1];\n    out[0] = a0 * v0;\n    out[1] = a1 * v0;\n    out[2] = a2 * v1;\n    out[3] = a3 * v1;\n    return out;\n}\n/**\n * Creates a matrix from a given angle\n * This is equivalent to (but much faster than):\n *\n *     mat2.identity(dest);\n *     mat2.rotate(dest, dest, rad);\n *\n * @param {mat2} out mat2 receiving operation result\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat2} out\n */\nfunction fromRotation(out, rad) {\n    var s = Math.sin(rad);\n    var c = Math.cos(rad);\n    out[0] = c;\n    out[1] = s;\n    out[2] = -s;\n    out[3] = c;\n    return out;\n}\n/**\n * Creates a matrix from a vector scaling\n * This is equivalent to (but much faster than):\n *\n *     mat2.identity(dest);\n *     mat2.scale(dest, dest, vec);\n *\n * @param {mat2} out mat2 receiving operation result\n * @param {ReadonlyVec2} v Scaling vector\n * @returns {mat2} out\n */\nfunction fromScaling(out, v) {\n    out[0] = v[0];\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = v[1];\n    return out;\n}\n/**\n * Returns a string representation of a mat2\n *\n * @param {ReadonlyMat2} a matrix to represent as a string\n * @returns {String} string representation of the matrix\n */\nfunction str(a) {\n    return \"mat2(\" + a[0] + \", \" + a[1] + \", \" + a[2] + \", \" + a[3] + \")\";\n}\n/**\n * Returns Frobenius norm of a mat2\n *\n * @param {ReadonlyMat2} a the matrix to calculate Frobenius norm of\n * @returns {Number} Frobenius norm\n */\nfunction frob(a) {\n    return Math.hypot(a[0], a[1], a[2], a[3]);\n}\n/**\n * Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix\n * @param {ReadonlyMat2} L the lower triangular matrix\n * @param {ReadonlyMat2} D the diagonal matrix\n * @param {ReadonlyMat2} U the upper triangular matrix\n * @param {ReadonlyMat2} a the input matrix to factorize\n */\nfunction LDU(L, D, U, a) {\n    L[2] = a[2] / a[0];\n    U[0] = a[0];\n    U[1] = a[1];\n    U[3] = a[3] - L[2] * U[1];\n    return [L, D, U];\n}\n/**\n * Adds two mat2's\n *\n * @param {mat2} out the receiving matrix\n * @param {ReadonlyMat2} a the first operand\n * @param {ReadonlyMat2} b the second operand\n * @returns {mat2} out\n */\nfunction add(out, a, b) {\n    out[0] = a[0] + b[0];\n    out[1] = a[1] + b[1];\n    out[2] = a[2] + b[2];\n    out[3] = a[3] + b[3];\n    return out;\n}\n/**\n * Subtracts matrix b from matrix a\n *\n * @param {mat2} out the receiving matrix\n * @param {ReadonlyMat2} a the first operand\n * @param {ReadonlyMat2} b the second operand\n * @returns {mat2} out\n */\nfunction subtract(out, a, b) {\n    out[0] = a[0] - b[0];\n    out[1] = a[1] - b[1];\n    out[2] = a[2] - b[2];\n    out[3] = a[3] - b[3];\n    return out;\n}\n/**\n * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)\n *\n * @param {ReadonlyMat2} a The first matrix.\n * @param {ReadonlyMat2} b The second matrix.\n * @returns {Boolean} True if the matrices are equal, false otherwise.\n */\nfunction exactEquals(a, b) {\n    return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3];\n}\n/**\n * Returns whether or not the matrices have approximately the same elements in the same position.\n *\n * @param {ReadonlyMat2} a The first matrix.\n * @param {ReadonlyMat2} b The second matrix.\n * @returns {Boolean} True if the matrices are equal, false otherwise.\n */\nfunction equals(a, b) {\n    var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3];\n    var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3];\n    return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3));\n}\n/**\n * Multiply each element of the matrix by a scalar.\n *\n * @param {mat2} out the receiving matrix\n * @param {ReadonlyMat2} a the matrix to scale\n * @param {Number} b amount to scale the matrix's elements by\n * @returns {mat2} out\n */\nfunction multiplyScalar(out, a, b) {\n    out[0] = a[0] * b;\n    out[1] = a[1] * b;\n    out[2] = a[2] * b;\n    out[3] = a[3] * b;\n    return out;\n}\n/**\n * Adds two mat2's after multiplying each element of the second operand by a scalar value.\n *\n * @param {mat2} out the receiving vector\n * @param {ReadonlyMat2} a the first operand\n * @param {ReadonlyMat2} b the second operand\n * @param {Number} scale the amount to scale b's elements by before adding\n * @returns {mat2} out\n */\nfunction multiplyScalarAndAdd(out, a, b, scale) {\n    out[0] = a[0] + b[0] * scale;\n    out[1] = a[1] + b[1] * scale;\n    out[2] = a[2] + b[2] * scale;\n    out[3] = a[3] + b[3] * scale;\n    return out;\n}\n/**\n * Alias for {@link mat2.multiply}\n * @function\n */\nexports.mul = multiply;\n/**\n * Alias for {@link mat2.subtract}\n * @function\n */\nexports.sub = subtract;\n","type":"js","dependency_paths":[["./common.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/common.js"]],"dependency_map":[],"exported":[{"type":"named","name":"create"},{"type":"named","name":"clone"},{"type":"named","name":"copy"},{"type":"named","name":"identity"},{"type":"named","name":"fromValues"},{"type":"named","name":"set"},{"type":"named","name":"transpose"},{"type":"named","name":"invert"},{"type":"named","name":"adjoint"},{"type":"named","name":"determinant"},{"type":"named","name":"multiply"},{"type":"named","name":"rotate"},{"type":"named","name":"scale"},{"type":"named","name":"fromRotation"},{"type":"named","name":"fromScaling"},{"type":"named","name":"str"},{"type":"named","name":"frob"},{"type":"named","name":"LDU"},{"type":"named","name":"add"},{"type":"named","name":"subtract"},{"type":"named","name":"exactEquals"},{"type":"named","name":"equals"},{"type":"named","name":"multiplyScalar"},{"type":"named","name":"multiplyScalarAndAdd"}],"externals":[],"shims":[]},"code":{"source":"/* gl-matrix/esm/mat2.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.create = create;\n    exports.clone = clone;\n    exports.copy = copy;\n    exports.identity = identity;\n    exports.fromValues = fromValues;\n    exports.set = set;\n    exports.transpose = transpose;\n    exports.invert = invert;\n    exports.adjoint = adjoint;\n    exports.determinant = determinant;\n    exports.multiply = multiply;\n    exports.rotate = rotate;\n    exports.scale = scale;\n    exports.fromRotation = fromRotation;\n    exports.fromScaling = fromScaling;\n    exports.str = str;\n    exports.frob = frob;\n    exports.LDU = LDU;\n    exports.add = add;\n    exports.subtract = subtract;\n    exports.exactEquals = exactEquals;\n    exports.equals = equals;\n    exports.multiplyScalar = multiplyScalar;\n    exports.multiplyScalarAndAdd = multiplyScalarAndAdd;\n    const tslib_1 = require(\"tslib\");\n    const glMatrix = tslib_1.__importStar(require(\"7d825b979e\") /* ./common.js */);\n    /**\n     * 2x2 Matrix\n     * @module mat2\n     */\n    /**\n     * Creates a new identity mat2\n     *\n     * @returns {mat2} a new 2x2 matrix\n     */\n    function create() {\n        var out = new glMatrix.ARRAY_TYPE(4);\n        if (glMatrix.ARRAY_TYPE != Float32Array) {\n            out[1] = 0;\n            out[2] = 0;\n        }\n        out[0] = 1;\n        out[3] = 1;\n        return out;\n    }\n    /**\n     * Creates a new mat2 initialized with values from an existing matrix\n     *\n     * @param {ReadonlyMat2} a matrix to clone\n     * @returns {mat2} a new 2x2 matrix\n     */\n    function clone(a) {\n        var out = new glMatrix.ARRAY_TYPE(4);\n        out[0] = a[0];\n        out[1] = a[1];\n        out[2] = a[2];\n        out[3] = a[3];\n        return out;\n    }\n    /**\n     * Copy the values from one mat2 to another\n     *\n     * @param {mat2} out the receiving matrix\n     * @param {ReadonlyMat2} a the source matrix\n     * @returns {mat2} out\n     */\n    function copy(out, a) {\n        out[0] = a[0];\n        out[1] = a[1];\n        out[2] = a[2];\n        out[3] = a[3];\n        return out;\n    }\n    /**\n     * Set a mat2 to the identity matrix\n     *\n     * @param {mat2} out the receiving matrix\n     * @returns {mat2} out\n     */\n    function identity(out) {\n        out[0] = 1;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 1;\n        return out;\n    }\n    /**\n     * Create a new mat2 with the given values\n     *\n     * @param {Number} m00 Component in column 0, row 0 position (index 0)\n     * @param {Number} m01 Component in column 0, row 1 position (index 1)\n     * @param {Number} m10 Component in column 1, row 0 position (index 2)\n     * @param {Number} m11 Component in column 1, row 1 position (index 3)\n     * @returns {mat2} out A new 2x2 matrix\n     */\n    function fromValues(m00, m01, m10, m11) {\n        var out = new glMatrix.ARRAY_TYPE(4);\n        out[0] = m00;\n        out[1] = m01;\n        out[2] = m10;\n        out[3] = m11;\n        return out;\n    }\n    /**\n     * Set the components of a mat2 to the given values\n     *\n     * @param {mat2} out the receiving matrix\n     * @param {Number} m00 Component in column 0, row 0 position (index 0)\n     * @param {Number} m01 Component in column 0, row 1 position (index 1)\n     * @param {Number} m10 Component in column 1, row 0 position (index 2)\n     * @param {Number} m11 Component in column 1, row 1 position (index 3)\n     * @returns {mat2} out\n     */\n    function set(out, m00, m01, m10, m11) {\n        out[0] = m00;\n        out[1] = m01;\n        out[2] = m10;\n        out[3] = m11;\n        return out;\n    }\n    /**\n     * Transpose the values of a mat2\n     *\n     * @param {mat2} out the receiving matrix\n     * @param {ReadonlyMat2} a the source matrix\n     * @returns {mat2} out\n     */\n    function transpose(out, a) {\n        // If we are transposing ourselves we can skip a few steps but have to cache\n        // some values\n        if (out === a) {\n            var a1 = a[1];\n            out[1] = a[2];\n            out[2] = a1;\n        }\n        else {\n            out[0] = a[0];\n            out[1] = a[2];\n            out[2] = a[1];\n            out[3] = a[3];\n        }\n        return out;\n    }\n    /**\n     * Inverts a mat2\n     *\n     * @param {mat2} out the receiving matrix\n     * @param {ReadonlyMat2} a the source matrix\n     * @returns {mat2} out\n     */\n    function invert(out, a) {\n        var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3]; // Calculate the determinant\n        var det = a0 * a3 - a2 * a1;\n        if (!det) {\n            return null;\n        }\n        det = 1.0 / det;\n        out[0] = a3 * det;\n        out[1] = -a1 * det;\n        out[2] = -a2 * det;\n        out[3] = a0 * det;\n        return out;\n    }\n    /**\n     * Calculates the adjugate of a mat2\n     *\n     * @param {mat2} out the receiving matrix\n     * @param {ReadonlyMat2} a the source matrix\n     * @returns {mat2} out\n     */\n    function adjoint(out, a) {\n        // Caching this value is nessecary if out == a\n        var a0 = a[0];\n        out[0] = a[3];\n        out[1] = -a[1];\n        out[2] = -a[2];\n        out[3] = a0;\n        return out;\n    }\n    /**\n     * Calculates the determinant of a mat2\n     *\n     * @param {ReadonlyMat2} a the source matrix\n     * @returns {Number} determinant of a\n     */\n    function determinant(a) {\n        return a[0] * a[3] - a[2] * a[1];\n    }\n    /**\n     * Multiplies two mat2's\n     *\n     * @param {mat2} out the receiving matrix\n     * @param {ReadonlyMat2} a the first operand\n     * @param {ReadonlyMat2} b the second operand\n     * @returns {mat2} out\n     */\n    function multiply(out, a, b) {\n        var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3];\n        var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3];\n        out[0] = a0 * b0 + a2 * b1;\n        out[1] = a1 * b0 + a3 * b1;\n        out[2] = a0 * b2 + a2 * b3;\n        out[3] = a1 * b2 + a3 * b3;\n        return out;\n    }\n    /**\n     * Rotates a mat2 by the given angle\n     *\n     * @param {mat2} out the receiving matrix\n     * @param {ReadonlyMat2} a the matrix to rotate\n     * @param {Number} rad the angle to rotate the matrix by\n     * @returns {mat2} out\n     */\n    function rotate(out, a, rad) {\n        var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3];\n        var s = Math.sin(rad);\n        var c = Math.cos(rad);\n        out[0] = a0 * c + a2 * s;\n        out[1] = a1 * c + a3 * s;\n        out[2] = a0 * -s + a2 * c;\n        out[3] = a1 * -s + a3 * c;\n        return out;\n    }\n    /**\n     * Scales the mat2 by the dimensions in the given vec2\n     *\n     * @param {mat2} out the receiving matrix\n     * @param {ReadonlyMat2} a the matrix to rotate\n     * @param {ReadonlyVec2} v the vec2 to scale the matrix by\n     * @returns {mat2} out\n     **/\n    function scale(out, a, v) {\n        var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3];\n        var v0 = v[0], v1 = v[1];\n        out[0] = a0 * v0;\n        out[1] = a1 * v0;\n        out[2] = a2 * v1;\n        out[3] = a3 * v1;\n        return out;\n    }\n    /**\n     * Creates a matrix from a given angle\n     * This is equivalent to (but much faster than):\n     *\n     *     mat2.identity(dest);\n     *     mat2.rotate(dest, dest, rad);\n     *\n     * @param {mat2} out mat2 receiving operation result\n     * @param {Number} rad the angle to rotate the matrix by\n     * @returns {mat2} out\n     */\n    function fromRotation(out, rad) {\n        var s = Math.sin(rad);\n        var c = Math.cos(rad);\n        out[0] = c;\n        out[1] = s;\n        out[2] = -s;\n        out[3] = c;\n        return out;\n    }\n    /**\n     * Creates a matrix from a vector scaling\n     * This is equivalent to (but much faster than):\n     *\n     *     mat2.identity(dest);\n     *     mat2.scale(dest, dest, vec);\n     *\n     * @param {mat2} out mat2 receiving operation result\n     * @param {ReadonlyVec2} v Scaling vector\n     * @returns {mat2} out\n     */\n    function fromScaling(out, v) {\n        out[0] = v[0];\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = v[1];\n        return out;\n    }\n    /**\n     * Returns a string representation of a mat2\n     *\n     * @param {ReadonlyMat2} a matrix to represent as a string\n     * @returns {String} string representation of the matrix\n     */\n    function str(a) {\n        return \"mat2(\" + a[0] + \", \" + a[1] + \", \" + a[2] + \", \" + a[3] + \")\";\n    }\n    /**\n     * Returns Frobenius norm of a mat2\n     *\n     * @param {ReadonlyMat2} a the matrix to calculate Frobenius norm of\n     * @returns {Number} Frobenius norm\n     */\n    function frob(a) {\n        return Math.hypot(a[0], a[1], a[2], a[3]);\n    }\n    /**\n     * Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix\n     * @param {ReadonlyMat2} L the lower triangular matrix\n     * @param {ReadonlyMat2} D the diagonal matrix\n     * @param {ReadonlyMat2} U the upper triangular matrix\n     * @param {ReadonlyMat2} a the input matrix to factorize\n     */\n    function LDU(L, D, U, a) {\n        L[2] = a[2] / a[0];\n        U[0] = a[0];\n        U[1] = a[1];\n        U[3] = a[3] - L[2] * U[1];\n        return [L, D, U];\n    }\n    /**\n     * Adds two mat2's\n     *\n     * @param {mat2} out the receiving matrix\n     * @param {ReadonlyMat2} a the first operand\n     * @param {ReadonlyMat2} b the second operand\n     * @returns {mat2} out\n     */\n    function add(out, a, b) {\n        out[0] = a[0] + b[0];\n        out[1] = a[1] + b[1];\n        out[2] = a[2] + b[2];\n        out[3] = a[3] + b[3];\n        return out;\n    }\n    /**\n     * Subtracts matrix b from matrix a\n     *\n     * @param {mat2} out the receiving matrix\n     * @param {ReadonlyMat2} a the first operand\n     * @param {ReadonlyMat2} b the second operand\n     * @returns {mat2} out\n     */\n    function subtract(out, a, b) {\n        out[0] = a[0] - b[0];\n        out[1] = a[1] - b[1];\n        out[2] = a[2] - b[2];\n        out[3] = a[3] - b[3];\n        return out;\n    }\n    /**\n     * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)\n     *\n     * @param {ReadonlyMat2} a The first matrix.\n     * @param {ReadonlyMat2} b The second matrix.\n     * @returns {Boolean} True if the matrices are equal, false otherwise.\n     */\n    function exactEquals(a, b) {\n        return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3];\n    }\n    /**\n     * Returns whether or not the matrices have approximately the same elements in the same position.\n     *\n     * @param {ReadonlyMat2} a The first matrix.\n     * @param {ReadonlyMat2} b The second matrix.\n     * @returns {Boolean} True if the matrices are equal, false otherwise.\n     */\n    function equals(a, b) {\n        var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3];\n        var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3];\n        return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3));\n    }\n    /**\n     * Multiply each element of the matrix by a scalar.\n     *\n     * @param {mat2} out the receiving matrix\n     * @param {ReadonlyMat2} a the matrix to scale\n     * @param {Number} b amount to scale the matrix's elements by\n     * @returns {mat2} out\n     */\n    function multiplyScalar(out, a, b) {\n        out[0] = a[0] * b;\n        out[1] = a[1] * b;\n        out[2] = a[2] * b;\n        out[3] = a[3] * b;\n        return out;\n    }\n    /**\n     * Adds two mat2's after multiplying each element of the second operand by a scalar value.\n     *\n     * @param {mat2} out the receiving vector\n     * @param {ReadonlyMat2} a the first operand\n     * @param {ReadonlyMat2} b the second operand\n     * @param {Number} scale the amount to scale b's elements by before adding\n     * @returns {mat2} out\n     */\n    function multiplyScalarAndAdd(out, a, b, scale) {\n        out[0] = a[0] + b[0] * scale;\n        out[1] = a[1] + b[1] * scale;\n        out[2] = a[2] + b[2] * scale;\n        out[3] = a[3] + b[3] * scale;\n        return out;\n    }\n    /**\n     * Alias for {@link mat2.multiply}\n     * @function\n     */\n    exports.mul = multiply;\n    /**\n     * Alias for {@link mat2.subtract}\n     * @function\n     */\n    exports.sub = subtract;\n}\n","min_source":"function _(t,n,r,a,u){a(),r.create=function(){var t=new e.ARRAY_TYPE(4);e.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0);return t[0]=1,t[3]=1,t},r.clone=function(t){var n=new e.ARRAY_TYPE(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},r.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},r.fromValues=function(t,n,r,a){var u=new e.ARRAY_TYPE(4);return u[0]=t,u[1]=n,u[2]=r,u[3]=a,u},r.set=function(t,n,r,a,u){return t[0]=n,t[1]=r,t[2]=a,t[3]=u,t},r.transpose=function(t,n){if(t===n){var r=n[1];t[1]=n[2],t[2]=r}else t[0]=n[0],t[1]=n[2],t[2]=n[1],t[3]=n[3];return t},r.invert=function(t,n){var r=n[0],a=n[1],u=n[2],e=n[3],o=r*e-u*a;if(!o)return null;return o=1/o,t[0]=e*o,t[1]=-a*o,t[2]=-u*o,t[3]=r*o,t},r.adjoint=function(t,n){var r=n[0];return t[0]=n[3],t[1]=-n[1],t[2]=-n[2],t[3]=r,t},r.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},r.multiply=o,r.rotate=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],i=Math.sin(r),c=Math.cos(r);return t[0]=a*c+e*i,t[1]=u*c+o*i,t[2]=a*-i+e*c,t[3]=u*-i+o*c,t},r.scale=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],i=r[0],c=r[1];return t[0]=a*i,t[1]=u*i,t[2]=e*c,t[3]=o*c,t},r.fromRotation=function(t,n){var r=Math.sin(n),a=Math.cos(n);return t[0]=a,t[1]=r,t[2]=-r,t[3]=a,t},r.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t},r.str=function(t){return\"mat2(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\")\"},r.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3])},r.LDU=function(t,n,r,a){return t[2]=a[2]/a[0],r[0]=a[0],r[1]=a[1],r[3]=a[3]-t[2]*r[1],[t,n,r]},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t},r.subtract=i,r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},r.equals=function(t,n){var r=t[0],a=t[1],u=t[2],o=t[3],i=n[0],c=n[1],f=n[2],s=n[3];return Math.abs(r-i)<=e.EPSILON*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-c)<=e.EPSILON*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(u-f)<=e.EPSILON*Math.max(1,Math.abs(u),Math.abs(f))&&Math.abs(o-s)<=e.EPSILON*Math.max(1,Math.abs(o),Math.abs(s))},r.multiplyScalar=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t},r.multiplyScalarAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t[3]=n[3]+r[3]*a,t};const e=t(\"tslib\").__importStar(t(\"7d825b979e\"));function o(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3],i=r[0],c=r[1],f=r[2],s=r[3];return t[0]=a*i+e*c,t[1]=u*i+o*c,t[2]=a*f+e*s,t[3]=u*f+o*s,t}function i(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t}r.mul=o,r.sub=i}\n//# sourceMappingURL=mat2.min.js.map","min_map":"{\"version\":3,\"file\":\"mat2.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"create\",\"out\",\"glMatrix\",\"ARRAY_TYPE\",\"Float32Array\",\"clone\",\"a\",\"copy\",\"identity\",\"fromValues\",\"m00\",\"m01\",\"m10\",\"m11\",\"set\",\"transpose\",\"a1\",\"invert\",\"a0\",\"a2\",\"a3\",\"det\",\"adjoint\",\"determinant\",\"multiply\",\"rotate\",\"rad\",\"s\",\"Math\",\"sin\",\"c\",\"cos\",\"scale\",\"v\",\"v0\",\"v1\",\"fromRotation\",\"fromScaling\",\"str\",\"frob\",\"hypot\",\"LDU\",\"L\",\"D\",\"U\",\"add\",\"b\",\"subtract\",\"exactEquals\",\"equals\",\"b0\",\"b1\",\"b2\",\"b3\",\"abs\",\"EPSILON\",\"max\",\"multiplyScalar\",\"multiplyScalarAndAdd\",\"__importStar\",\"mul\",\"sub\"],\"sources\":[\"0\"],\"mappings\":\"AAA4B,SAASA,EAAEC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GAKrC,OAJA/B,EAAI,GAAKK,EAAE,GAAKwC,EAAE,GAAKd,EACvB/B,EAAI,GAAKK,EAAE,GAAKwC,EAAE,GAAKd,EACvB/B,EAAI,GAAKK,EAAE,GAAKwC,EAAE,GAAKd,EACvB/B,EAAI,GAAKK,EAAE,GAAKwC,EAAE,GAAKd,EAChB/B,CACX,EAhXA,MACMC,EADUP,EAAQ,SACCgE,aAAahE,EAAQ,eA2K9C,SAAS6B,EAASvB,EAAKK,EAAGwC,GACtB,IAAI5B,EAAKZ,EAAE,GAAIU,EAAKV,EAAE,GAAIa,EAAKb,EAAE,GAAIc,EAAKd,EAAE,GACxC4C,EAAKJ,EAAE,GAAIK,EAAKL,EAAE,GAAIM,EAAKN,EAAE,GAAIO,EAAKP,EAAE,GAK5C,OAJA7C,EAAI,GAAKiB,EAAKgC,EAAK/B,EAAKgC,EACxBlD,EAAI,GAAKe,EAAKkC,EAAK9B,EAAK+B,EACxBlD,EAAI,GAAKiB,EAAKkC,EAAKjC,EAAKkC,EACxBpD,EAAI,GAAKe,EAAKoC,EAAKhC,EAAKiC,EACjBpD,CACX,CAiIA,SAAS8C,EAAS9C,EAAKK,EAAGwC,GAKtB,OAJA7C,EAAI,GAAKK,EAAE,GAAKwC,EAAE,GAClB7C,EAAI,GAAKK,EAAE,GAAKwC,EAAE,GAClB7C,EAAI,GAAKK,EAAE,GAAKwC,EAAE,GAClB7C,EAAI,GAAKK,EAAE,GAAKwC,EAAE,GACX7C,CACX,CA0DAJ,EAAQ+D,IAAMpC,EAKd3B,EAAQgE,IAAMd,CAClB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/mat2d.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"gl-matrix/esm/mat2d.js","resolution":"ESM","id":"33a5f6cb7a","hash":"33a5f6cb7a0930413a603ff7f8de85b52a8f86a90e888879abe08e30677233ce","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sub = exports.mul = void 0;\nexports.create = create;\nexports.clone = clone;\nexports.copy = copy;\nexports.identity = identity;\nexports.fromValues = fromValues;\nexports.set = set;\nexports.invert = invert;\nexports.determinant = determinant;\nexports.multiply = multiply;\nexports.rotate = rotate;\nexports.scale = scale;\nexports.translate = translate;\nexports.fromRotation = fromRotation;\nexports.fromScaling = fromScaling;\nexports.fromTranslation = fromTranslation;\nexports.str = str;\nexports.frob = frob;\nexports.add = add;\nexports.subtract = subtract;\nexports.multiplyScalar = multiplyScalar;\nexports.multiplyScalarAndAdd = multiplyScalarAndAdd;\nexports.exactEquals = exactEquals;\nexports.equals = equals;\nconst tslib_1 = require(\"tslib\");\nconst glMatrix = tslib_1.__importStar(require(\"./common.js\"));\n/**\n * 2x3 Matrix\n * @module mat2d\n * @description\n * A mat2d contains six elements defined as:\n * <pre>\n * [a, b,\n *  c, d,\n *  tx, ty]\n * </pre>\n * This is a short form for the 3x3 matrix:\n * <pre>\n * [a, b, 0,\n *  c, d, 0,\n *  tx, ty, 1]\n * </pre>\n * The last column is ignored so the array is shorter and operations are faster.\n */\n/**\n * Creates a new identity mat2d\n *\n * @returns {mat2d} a new 2x3 matrix\n */\nfunction create() {\n    var out = new glMatrix.ARRAY_TYPE(6);\n    if (glMatrix.ARRAY_TYPE != Float32Array) {\n        out[1] = 0;\n        out[2] = 0;\n        out[4] = 0;\n        out[5] = 0;\n    }\n    out[0] = 1;\n    out[3] = 1;\n    return out;\n}\n/**\n * Creates a new mat2d initialized with values from an existing matrix\n *\n * @param {ReadonlyMat2d} a matrix to clone\n * @returns {mat2d} a new 2x3 matrix\n */\nfunction clone(a) {\n    var out = new glMatrix.ARRAY_TYPE(6);\n    out[0] = a[0];\n    out[1] = a[1];\n    out[2] = a[2];\n    out[3] = a[3];\n    out[4] = a[4];\n    out[5] = a[5];\n    return out;\n}\n/**\n * Copy the values from one mat2d to another\n *\n * @param {mat2d} out the receiving matrix\n * @param {ReadonlyMat2d} a the source matrix\n * @returns {mat2d} out\n */\nfunction copy(out, a) {\n    out[0] = a[0];\n    out[1] = a[1];\n    out[2] = a[2];\n    out[3] = a[3];\n    out[4] = a[4];\n    out[5] = a[5];\n    return out;\n}\n/**\n * Set a mat2d to the identity matrix\n *\n * @param {mat2d} out the receiving matrix\n * @returns {mat2d} out\n */\nfunction identity(out) {\n    out[0] = 1;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 1;\n    out[4] = 0;\n    out[5] = 0;\n    return out;\n}\n/**\n * Create a new mat2d with the given values\n *\n * @param {Number} a Component A (index 0)\n * @param {Number} b Component B (index 1)\n * @param {Number} c Component C (index 2)\n * @param {Number} d Component D (index 3)\n * @param {Number} tx Component TX (index 4)\n * @param {Number} ty Component TY (index 5)\n * @returns {mat2d} A new mat2d\n */\nfunction fromValues(a, b, c, d, tx, ty) {\n    var out = new glMatrix.ARRAY_TYPE(6);\n    out[0] = a;\n    out[1] = b;\n    out[2] = c;\n    out[3] = d;\n    out[4] = tx;\n    out[5] = ty;\n    return out;\n}\n/**\n * Set the components of a mat2d to the given values\n *\n * @param {mat2d} out the receiving matrix\n * @param {Number} a Component A (index 0)\n * @param {Number} b Component B (index 1)\n * @param {Number} c Component C (index 2)\n * @param {Number} d Component D (index 3)\n * @param {Number} tx Component TX (index 4)\n * @param {Number} ty Component TY (index 5)\n * @returns {mat2d} out\n */\nfunction set(out, a, b, c, d, tx, ty) {\n    out[0] = a;\n    out[1] = b;\n    out[2] = c;\n    out[3] = d;\n    out[4] = tx;\n    out[5] = ty;\n    return out;\n}\n/**\n * Inverts a mat2d\n *\n * @param {mat2d} out the receiving matrix\n * @param {ReadonlyMat2d} a the source matrix\n * @returns {mat2d} out\n */\nfunction invert(out, a) {\n    var aa = a[0], ab = a[1], ac = a[2], ad = a[3];\n    var atx = a[4], aty = a[5];\n    var det = aa * ad - ab * ac;\n    if (!det) {\n        return null;\n    }\n    det = 1.0 / det;\n    out[0] = ad * det;\n    out[1] = -ab * det;\n    out[2] = -ac * det;\n    out[3] = aa * det;\n    out[4] = (ac * aty - ad * atx) * det;\n    out[5] = (ab * atx - aa * aty) * det;\n    return out;\n}\n/**\n * Calculates the determinant of a mat2d\n *\n * @param {ReadonlyMat2d} a the source matrix\n * @returns {Number} determinant of a\n */\nfunction determinant(a) {\n    return a[0] * a[3] - a[1] * a[2];\n}\n/**\n * Multiplies two mat2d's\n *\n * @param {mat2d} out the receiving matrix\n * @param {ReadonlyMat2d} a the first operand\n * @param {ReadonlyMat2d} b the second operand\n * @returns {mat2d} out\n */\nfunction multiply(out, a, b) {\n    var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5];\n    var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3], b4 = b[4], b5 = b[5];\n    out[0] = a0 * b0 + a2 * b1;\n    out[1] = a1 * b0 + a3 * b1;\n    out[2] = a0 * b2 + a2 * b3;\n    out[3] = a1 * b2 + a3 * b3;\n    out[4] = a0 * b4 + a2 * b5 + a4;\n    out[5] = a1 * b4 + a3 * b5 + a5;\n    return out;\n}\n/**\n * Rotates a mat2d by the given angle\n *\n * @param {mat2d} out the receiving matrix\n * @param {ReadonlyMat2d} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat2d} out\n */\nfunction rotate(out, a, rad) {\n    var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5];\n    var s = Math.sin(rad);\n    var c = Math.cos(rad);\n    out[0] = a0 * c + a2 * s;\n    out[1] = a1 * c + a3 * s;\n    out[2] = a0 * -s + a2 * c;\n    out[3] = a1 * -s + a3 * c;\n    out[4] = a4;\n    out[5] = a5;\n    return out;\n}\n/**\n * Scales the mat2d by the dimensions in the given vec2\n *\n * @param {mat2d} out the receiving matrix\n * @param {ReadonlyMat2d} a the matrix to translate\n * @param {ReadonlyVec2} v the vec2 to scale the matrix by\n * @returns {mat2d} out\n **/\nfunction scale(out, a, v) {\n    var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5];\n    var v0 = v[0], v1 = v[1];\n    out[0] = a0 * v0;\n    out[1] = a1 * v0;\n    out[2] = a2 * v1;\n    out[3] = a3 * v1;\n    out[4] = a4;\n    out[5] = a5;\n    return out;\n}\n/**\n * Translates the mat2d by the dimensions in the given vec2\n *\n * @param {mat2d} out the receiving matrix\n * @param {ReadonlyMat2d} a the matrix to translate\n * @param {ReadonlyVec2} v the vec2 to translate the matrix by\n * @returns {mat2d} out\n **/\nfunction translate(out, a, v) {\n    var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5];\n    var v0 = v[0], v1 = v[1];\n    out[0] = a0;\n    out[1] = a1;\n    out[2] = a2;\n    out[3] = a3;\n    out[4] = a0 * v0 + a2 * v1 + a4;\n    out[5] = a1 * v0 + a3 * v1 + a5;\n    return out;\n}\n/**\n * Creates a matrix from a given angle\n * This is equivalent to (but much faster than):\n *\n *     mat2d.identity(dest);\n *     mat2d.rotate(dest, dest, rad);\n *\n * @param {mat2d} out mat2d receiving operation result\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat2d} out\n */\nfunction fromRotation(out, rad) {\n    var s = Math.sin(rad), c = Math.cos(rad);\n    out[0] = c;\n    out[1] = s;\n    out[2] = -s;\n    out[3] = c;\n    out[4] = 0;\n    out[5] = 0;\n    return out;\n}\n/**\n * Creates a matrix from a vector scaling\n * This is equivalent to (but much faster than):\n *\n *     mat2d.identity(dest);\n *     mat2d.scale(dest, dest, vec);\n *\n * @param {mat2d} out mat2d receiving operation result\n * @param {ReadonlyVec2} v Scaling vector\n * @returns {mat2d} out\n */\nfunction fromScaling(out, v) {\n    out[0] = v[0];\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = v[1];\n    out[4] = 0;\n    out[5] = 0;\n    return out;\n}\n/**\n * Creates a matrix from a vector translation\n * This is equivalent to (but much faster than):\n *\n *     mat2d.identity(dest);\n *     mat2d.translate(dest, dest, vec);\n *\n * @param {mat2d} out mat2d receiving operation result\n * @param {ReadonlyVec2} v Translation vector\n * @returns {mat2d} out\n */\nfunction fromTranslation(out, v) {\n    out[0] = 1;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 1;\n    out[4] = v[0];\n    out[5] = v[1];\n    return out;\n}\n/**\n * Returns a string representation of a mat2d\n *\n * @param {ReadonlyMat2d} a matrix to represent as a string\n * @returns {String} string representation of the matrix\n */\nfunction str(a) {\n    return \"mat2d(\" + a[0] + \", \" + a[1] + \", \" + a[2] + \", \" + a[3] + \", \" + a[4] + \", \" + a[5] + \")\";\n}\n/**\n * Returns Frobenius norm of a mat2d\n *\n * @param {ReadonlyMat2d} a the matrix to calculate Frobenius norm of\n * @returns {Number} Frobenius norm\n */\nfunction frob(a) {\n    return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], 1);\n}\n/**\n * Adds two mat2d's\n *\n * @param {mat2d} out the receiving matrix\n * @param {ReadonlyMat2d} a the first operand\n * @param {ReadonlyMat2d} b the second operand\n * @returns {mat2d} out\n */\nfunction add(out, a, b) {\n    out[0] = a[0] + b[0];\n    out[1] = a[1] + b[1];\n    out[2] = a[2] + b[2];\n    out[3] = a[3] + b[3];\n    out[4] = a[4] + b[4];\n    out[5] = a[5] + b[5];\n    return out;\n}\n/**\n * Subtracts matrix b from matrix a\n *\n * @param {mat2d} out the receiving matrix\n * @param {ReadonlyMat2d} a the first operand\n * @param {ReadonlyMat2d} b the second operand\n * @returns {mat2d} out\n */\nfunction subtract(out, a, b) {\n    out[0] = a[0] - b[0];\n    out[1] = a[1] - b[1];\n    out[2] = a[2] - b[2];\n    out[3] = a[3] - b[3];\n    out[4] = a[4] - b[4];\n    out[5] = a[5] - b[5];\n    return out;\n}\n/**\n * Multiply each element of the matrix by a scalar.\n *\n * @param {mat2d} out the receiving matrix\n * @param {ReadonlyMat2d} a the matrix to scale\n * @param {Number} b amount to scale the matrix's elements by\n * @returns {mat2d} out\n */\nfunction multiplyScalar(out, a, b) {\n    out[0] = a[0] * b;\n    out[1] = a[1] * b;\n    out[2] = a[2] * b;\n    out[3] = a[3] * b;\n    out[4] = a[4] * b;\n    out[5] = a[5] * b;\n    return out;\n}\n/**\n * Adds two mat2d's after multiplying each element of the second operand by a scalar value.\n *\n * @param {mat2d} out the receiving vector\n * @param {ReadonlyMat2d} a the first operand\n * @param {ReadonlyMat2d} b the second operand\n * @param {Number} scale the amount to scale b's elements by before adding\n * @returns {mat2d} out\n */\nfunction multiplyScalarAndAdd(out, a, b, scale) {\n    out[0] = a[0] + b[0] * scale;\n    out[1] = a[1] + b[1] * scale;\n    out[2] = a[2] + b[2] * scale;\n    out[3] = a[3] + b[3] * scale;\n    out[4] = a[4] + b[4] * scale;\n    out[5] = a[5] + b[5] * scale;\n    return out;\n}\n/**\n * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)\n *\n * @param {ReadonlyMat2d} a The first matrix.\n * @param {ReadonlyMat2d} b The second matrix.\n * @returns {Boolean} True if the matrices are equal, false otherwise.\n */\nfunction exactEquals(a, b) {\n    return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5];\n}\n/**\n * Returns whether or not the matrices have approximately the same elements in the same position.\n *\n * @param {ReadonlyMat2d} a The first matrix.\n * @param {ReadonlyMat2d} b The second matrix.\n * @returns {Boolean} True if the matrices are equal, false otherwise.\n */\nfunction equals(a, b) {\n    var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5];\n    var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3], b4 = b[4], b5 = b[5];\n    return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5));\n}\n/**\n * Alias for {@link mat2d.multiply}\n * @function\n */\nexports.mul = multiply;\n/**\n * Alias for {@link mat2d.subtract}\n * @function\n */\nexports.sub = subtract;\n","type":"js","dependency_paths":[["./common.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/common.js"]],"dependency_map":[],"exported":[{"type":"named","name":"create"},{"type":"named","name":"clone"},{"type":"named","name":"copy"},{"type":"named","name":"identity"},{"type":"named","name":"fromValues"},{"type":"named","name":"set"},{"type":"named","name":"invert"},{"type":"named","name":"determinant"},{"type":"named","name":"multiply"},{"type":"named","name":"rotate"},{"type":"named","name":"scale"},{"type":"named","name":"translate"},{"type":"named","name":"fromRotation"},{"type":"named","name":"fromScaling"},{"type":"named","name":"fromTranslation"},{"type":"named","name":"str"},{"type":"named","name":"frob"},{"type":"named","name":"add"},{"type":"named","name":"subtract"},{"type":"named","name":"multiplyScalar"},{"type":"named","name":"multiplyScalarAndAdd"},{"type":"named","name":"exactEquals"},{"type":"named","name":"equals"}],"externals":[],"shims":[]},"code":{"source":"/* gl-matrix/esm/mat2d.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.create = create;\n    exports.clone = clone;\n    exports.copy = copy;\n    exports.identity = identity;\n    exports.fromValues = fromValues;\n    exports.set = set;\n    exports.invert = invert;\n    exports.determinant = determinant;\n    exports.multiply = multiply;\n    exports.rotate = rotate;\n    exports.scale = scale;\n    exports.translate = translate;\n    exports.fromRotation = fromRotation;\n    exports.fromScaling = fromScaling;\n    exports.fromTranslation = fromTranslation;\n    exports.str = str;\n    exports.frob = frob;\n    exports.add = add;\n    exports.subtract = subtract;\n    exports.multiplyScalar = multiplyScalar;\n    exports.multiplyScalarAndAdd = multiplyScalarAndAdd;\n    exports.exactEquals = exactEquals;\n    exports.equals = equals;\n    const tslib_1 = require(\"tslib\");\n    const glMatrix = tslib_1.__importStar(require(\"7d825b979e\") /* ./common.js */);\n    /**\n     * 2x3 Matrix\n     * @module mat2d\n     * @description\n     * A mat2d contains six elements defined as:\n     * <pre>\n     * [a, b,\n     *  c, d,\n     *  tx, ty]\n     * </pre>\n     * This is a short form for the 3x3 matrix:\n     * <pre>\n     * [a, b, 0,\n     *  c, d, 0,\n     *  tx, ty, 1]\n     * </pre>\n     * The last column is ignored so the array is shorter and operations are faster.\n     */\n    /**\n     * Creates a new identity mat2d\n     *\n     * @returns {mat2d} a new 2x3 matrix\n     */\n    function create() {\n        var out = new glMatrix.ARRAY_TYPE(6);\n        if (glMatrix.ARRAY_TYPE != Float32Array) {\n            out[1] = 0;\n            out[2] = 0;\n            out[4] = 0;\n            out[5] = 0;\n        }\n        out[0] = 1;\n        out[3] = 1;\n        return out;\n    }\n    /**\n     * Creates a new mat2d initialized with values from an existing matrix\n     *\n     * @param {ReadonlyMat2d} a matrix to clone\n     * @returns {mat2d} a new 2x3 matrix\n     */\n    function clone(a) {\n        var out = new glMatrix.ARRAY_TYPE(6);\n        out[0] = a[0];\n        out[1] = a[1];\n        out[2] = a[2];\n        out[3] = a[3];\n        out[4] = a[4];\n        out[5] = a[5];\n        return out;\n    }\n    /**\n     * Copy the values from one mat2d to another\n     *\n     * @param {mat2d} out the receiving matrix\n     * @param {ReadonlyMat2d} a the source matrix\n     * @returns {mat2d} out\n     */\n    function copy(out, a) {\n        out[0] = a[0];\n        out[1] = a[1];\n        out[2] = a[2];\n        out[3] = a[3];\n        out[4] = a[4];\n        out[5] = a[5];\n        return out;\n    }\n    /**\n     * Set a mat2d to the identity matrix\n     *\n     * @param {mat2d} out the receiving matrix\n     * @returns {mat2d} out\n     */\n    function identity(out) {\n        out[0] = 1;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 1;\n        out[4] = 0;\n        out[5] = 0;\n        return out;\n    }\n    /**\n     * Create a new mat2d with the given values\n     *\n     * @param {Number} a Component A (index 0)\n     * @param {Number} b Component B (index 1)\n     * @param {Number} c Component C (index 2)\n     * @param {Number} d Component D (index 3)\n     * @param {Number} tx Component TX (index 4)\n     * @param {Number} ty Component TY (index 5)\n     * @returns {mat2d} A new mat2d\n     */\n    function fromValues(a, b, c, d, tx, ty) {\n        var out = new glMatrix.ARRAY_TYPE(6);\n        out[0] = a;\n        out[1] = b;\n        out[2] = c;\n        out[3] = d;\n        out[4] = tx;\n        out[5] = ty;\n        return out;\n    }\n    /**\n     * Set the components of a mat2d to the given values\n     *\n     * @param {mat2d} out the receiving matrix\n     * @param {Number} a Component A (index 0)\n     * @param {Number} b Component B (index 1)\n     * @param {Number} c Component C (index 2)\n     * @param {Number} d Component D (index 3)\n     * @param {Number} tx Component TX (index 4)\n     * @param {Number} ty Component TY (index 5)\n     * @returns {mat2d} out\n     */\n    function set(out, a, b, c, d, tx, ty) {\n        out[0] = a;\n        out[1] = b;\n        out[2] = c;\n        out[3] = d;\n        out[4] = tx;\n        out[5] = ty;\n        return out;\n    }\n    /**\n     * Inverts a mat2d\n     *\n     * @param {mat2d} out the receiving matrix\n     * @param {ReadonlyMat2d} a the source matrix\n     * @returns {mat2d} out\n     */\n    function invert(out, a) {\n        var aa = a[0], ab = a[1], ac = a[2], ad = a[3];\n        var atx = a[4], aty = a[5];\n        var det = aa * ad - ab * ac;\n        if (!det) {\n            return null;\n        }\n        det = 1.0 / det;\n        out[0] = ad * det;\n        out[1] = -ab * det;\n        out[2] = -ac * det;\n        out[3] = aa * det;\n        out[4] = (ac * aty - ad * atx) * det;\n        out[5] = (ab * atx - aa * aty) * det;\n        return out;\n    }\n    /**\n     * Calculates the determinant of a mat2d\n     *\n     * @param {ReadonlyMat2d} a the source matrix\n     * @returns {Number} determinant of a\n     */\n    function determinant(a) {\n        return a[0] * a[3] - a[1] * a[2];\n    }\n    /**\n     * Multiplies two mat2d's\n     *\n     * @param {mat2d} out the receiving matrix\n     * @param {ReadonlyMat2d} a the first operand\n     * @param {ReadonlyMat2d} b the second operand\n     * @returns {mat2d} out\n     */\n    function multiply(out, a, b) {\n        var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5];\n        var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3], b4 = b[4], b5 = b[5];\n        out[0] = a0 * b0 + a2 * b1;\n        out[1] = a1 * b0 + a3 * b1;\n        out[2] = a0 * b2 + a2 * b3;\n        out[3] = a1 * b2 + a3 * b3;\n        out[4] = a0 * b4 + a2 * b5 + a4;\n        out[5] = a1 * b4 + a3 * b5 + a5;\n        return out;\n    }\n    /**\n     * Rotates a mat2d by the given angle\n     *\n     * @param {mat2d} out the receiving matrix\n     * @param {ReadonlyMat2d} a the matrix to rotate\n     * @param {Number} rad the angle to rotate the matrix by\n     * @returns {mat2d} out\n     */\n    function rotate(out, a, rad) {\n        var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5];\n        var s = Math.sin(rad);\n        var c = Math.cos(rad);\n        out[0] = a0 * c + a2 * s;\n        out[1] = a1 * c + a3 * s;\n        out[2] = a0 * -s + a2 * c;\n        out[3] = a1 * -s + a3 * c;\n        out[4] = a4;\n        out[5] = a5;\n        return out;\n    }\n    /**\n     * Scales the mat2d by the dimensions in the given vec2\n     *\n     * @param {mat2d} out the receiving matrix\n     * @param {ReadonlyMat2d} a the matrix to translate\n     * @param {ReadonlyVec2} v the vec2 to scale the matrix by\n     * @returns {mat2d} out\n     **/\n    function scale(out, a, v) {\n        var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5];\n        var v0 = v[0], v1 = v[1];\n        out[0] = a0 * v0;\n        out[1] = a1 * v0;\n        out[2] = a2 * v1;\n        out[3] = a3 * v1;\n        out[4] = a4;\n        out[5] = a5;\n        return out;\n    }\n    /**\n     * Translates the mat2d by the dimensions in the given vec2\n     *\n     * @param {mat2d} out the receiving matrix\n     * @param {ReadonlyMat2d} a the matrix to translate\n     * @param {ReadonlyVec2} v the vec2 to translate the matrix by\n     * @returns {mat2d} out\n     **/\n    function translate(out, a, v) {\n        var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5];\n        var v0 = v[0], v1 = v[1];\n        out[0] = a0;\n        out[1] = a1;\n        out[2] = a2;\n        out[3] = a3;\n        out[4] = a0 * v0 + a2 * v1 + a4;\n        out[5] = a1 * v0 + a3 * v1 + a5;\n        return out;\n    }\n    /**\n     * Creates a matrix from a given angle\n     * This is equivalent to (but much faster than):\n     *\n     *     mat2d.identity(dest);\n     *     mat2d.rotate(dest, dest, rad);\n     *\n     * @param {mat2d} out mat2d receiving operation result\n     * @param {Number} rad the angle to rotate the matrix by\n     * @returns {mat2d} out\n     */\n    function fromRotation(out, rad) {\n        var s = Math.sin(rad), c = Math.cos(rad);\n        out[0] = c;\n        out[1] = s;\n        out[2] = -s;\n        out[3] = c;\n        out[4] = 0;\n        out[5] = 0;\n        return out;\n    }\n    /**\n     * Creates a matrix from a vector scaling\n     * This is equivalent to (but much faster than):\n     *\n     *     mat2d.identity(dest);\n     *     mat2d.scale(dest, dest, vec);\n     *\n     * @param {mat2d} out mat2d receiving operation result\n     * @param {ReadonlyVec2} v Scaling vector\n     * @returns {mat2d} out\n     */\n    function fromScaling(out, v) {\n        out[0] = v[0];\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = v[1];\n        out[4] = 0;\n        out[5] = 0;\n        return out;\n    }\n    /**\n     * Creates a matrix from a vector translation\n     * This is equivalent to (but much faster than):\n     *\n     *     mat2d.identity(dest);\n     *     mat2d.translate(dest, dest, vec);\n     *\n     * @param {mat2d} out mat2d receiving operation result\n     * @param {ReadonlyVec2} v Translation vector\n     * @returns {mat2d} out\n     */\n    function fromTranslation(out, v) {\n        out[0] = 1;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 1;\n        out[4] = v[0];\n        out[5] = v[1];\n        return out;\n    }\n    /**\n     * Returns a string representation of a mat2d\n     *\n     * @param {ReadonlyMat2d} a matrix to represent as a string\n     * @returns {String} string representation of the matrix\n     */\n    function str(a) {\n        return \"mat2d(\" + a[0] + \", \" + a[1] + \", \" + a[2] + \", \" + a[3] + \", \" + a[4] + \", \" + a[5] + \")\";\n    }\n    /**\n     * Returns Frobenius norm of a mat2d\n     *\n     * @param {ReadonlyMat2d} a the matrix to calculate Frobenius norm of\n     * @returns {Number} Frobenius norm\n     */\n    function frob(a) {\n        return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], 1);\n    }\n    /**\n     * Adds two mat2d's\n     *\n     * @param {mat2d} out the receiving matrix\n     * @param {ReadonlyMat2d} a the first operand\n     * @param {ReadonlyMat2d} b the second operand\n     * @returns {mat2d} out\n     */\n    function add(out, a, b) {\n        out[0] = a[0] + b[0];\n        out[1] = a[1] + b[1];\n        out[2] = a[2] + b[2];\n        out[3] = a[3] + b[3];\n        out[4] = a[4] + b[4];\n        out[5] = a[5] + b[5];\n        return out;\n    }\n    /**\n     * Subtracts matrix b from matrix a\n     *\n     * @param {mat2d} out the receiving matrix\n     * @param {ReadonlyMat2d} a the first operand\n     * @param {ReadonlyMat2d} b the second operand\n     * @returns {mat2d} out\n     */\n    function subtract(out, a, b) {\n        out[0] = a[0] - b[0];\n        out[1] = a[1] - b[1];\n        out[2] = a[2] - b[2];\n        out[3] = a[3] - b[3];\n        out[4] = a[4] - b[4];\n        out[5] = a[5] - b[5];\n        return out;\n    }\n    /**\n     * Multiply each element of the matrix by a scalar.\n     *\n     * @param {mat2d} out the receiving matrix\n     * @param {ReadonlyMat2d} a the matrix to scale\n     * @param {Number} b amount to scale the matrix's elements by\n     * @returns {mat2d} out\n     */\n    function multiplyScalar(out, a, b) {\n        out[0] = a[0] * b;\n        out[1] = a[1] * b;\n        out[2] = a[2] * b;\n        out[3] = a[3] * b;\n        out[4] = a[4] * b;\n        out[5] = a[5] * b;\n        return out;\n    }\n    /**\n     * Adds two mat2d's after multiplying each element of the second operand by a scalar value.\n     *\n     * @param {mat2d} out the receiving vector\n     * @param {ReadonlyMat2d} a the first operand\n     * @param {ReadonlyMat2d} b the second operand\n     * @param {Number} scale the amount to scale b's elements by before adding\n     * @returns {mat2d} out\n     */\n    function multiplyScalarAndAdd(out, a, b, scale) {\n        out[0] = a[0] + b[0] * scale;\n        out[1] = a[1] + b[1] * scale;\n        out[2] = a[2] + b[2] * scale;\n        out[3] = a[3] + b[3] * scale;\n        out[4] = a[4] + b[4] * scale;\n        out[5] = a[5] + b[5] * scale;\n        return out;\n    }\n    /**\n     * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)\n     *\n     * @param {ReadonlyMat2d} a The first matrix.\n     * @param {ReadonlyMat2d} b The second matrix.\n     * @returns {Boolean} True if the matrices are equal, false otherwise.\n     */\n    function exactEquals(a, b) {\n        return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5];\n    }\n    /**\n     * Returns whether or not the matrices have approximately the same elements in the same position.\n     *\n     * @param {ReadonlyMat2d} a The first matrix.\n     * @param {ReadonlyMat2d} b The second matrix.\n     * @returns {Boolean} True if the matrices are equal, false otherwise.\n     */\n    function equals(a, b) {\n        var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5];\n        var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3], b4 = b[4], b5 = b[5];\n        return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5));\n    }\n    /**\n     * Alias for {@link mat2d.multiply}\n     * @function\n     */\n    exports.mul = multiply;\n    /**\n     * Alias for {@link mat2d.subtract}\n     * @function\n     */\n    exports.sub = subtract;\n}\n","min_source":"function _(t,n,a,r,u){r(),a.create=function(){var t=new e.ARRAY_TYPE(6);e.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0);return t[0]=1,t[3]=1,t},a.clone=function(t){var n=new e.ARRAY_TYPE(6);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n},a.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t},a.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},a.fromValues=function(t,n,a,r,u,o){var i=new e.ARRAY_TYPE(6);return i[0]=t,i[1]=n,i[2]=a,i[3]=r,i[4]=u,i[5]=o,i},a.set=function(t,n,a,r,u,e,o){return t[0]=n,t[1]=a,t[2]=r,t[3]=u,t[4]=e,t[5]=o,t},a.invert=function(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=n[4],i=n[5],c=a*e-r*u;if(!c)return null;return c=1/c,t[0]=e*c,t[1]=-r*c,t[2]=-u*c,t[3]=a*c,t[4]=(u*i-e*o)*c,t[5]=(r*o-a*i)*c,t},a.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},a.multiply=o,a.rotate=function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=n[4],c=n[5],s=Math.sin(a),f=Math.cos(a);return t[0]=r*f+e*s,t[1]=u*f+o*s,t[2]=r*-s+e*f,t[3]=u*-s+o*f,t[4]=i,t[5]=c,t},a.scale=function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=n[4],c=n[5],s=a[0],f=a[1];return t[0]=r*s,t[1]=u*s,t[2]=e*f,t[3]=o*f,t[4]=i,t[5]=c,t},a.translate=function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=n[4],c=n[5],s=a[0],f=a[1];return t[0]=r,t[1]=u,t[2]=e,t[3]=o,t[4]=r*s+e*f+i,t[5]=u*s+o*f+c,t},a.fromRotation=function(t,n){var a=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=a,t[2]=-a,t[3]=r,t[4]=0,t[5]=0,t},a.fromScaling=function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t[4]=0,t[5]=0,t},a.fromTranslation=function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=n[0],t[5]=n[1],t},a.str=function(t){return\"mat2d(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\", \"+t[4]+\", \"+t[5]+\")\"},a.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)},a.add=function(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t[4]=n[4]+a[4],t[5]=n[5]+a[5],t},a.subtract=i,a.multiplyScalar=function(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t[4]=n[4]*a,t[5]=n[5]*a,t},a.multiplyScalarAndAdd=function(t,n,a,r){return t[0]=n[0]+a[0]*r,t[1]=n[1]+a[1]*r,t[2]=n[2]+a[2]*r,t[3]=n[3]+a[3]*r,t[4]=n[4]+a[4]*r,t[5]=n[5]+a[5]*r,t},a.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]},a.equals=function(t,n){var a=t[0],r=t[1],u=t[2],o=t[3],i=t[4],c=t[5],s=n[0],f=n[1],h=n[2],M=n[3],b=n[4],l=n[5];return Math.abs(a-s)<=e.EPSILON*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(r-f)<=e.EPSILON*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(u-h)<=e.EPSILON*Math.max(1,Math.abs(u),Math.abs(h))&&Math.abs(o-M)<=e.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(i-b)<=e.EPSILON*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(c-l)<=e.EPSILON*Math.max(1,Math.abs(c),Math.abs(l))};const e=t(\"tslib\").__importStar(t(\"7d825b979e\"));function o(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=n[4],c=n[5],s=a[0],f=a[1],h=a[2],M=a[3],b=a[4],l=a[5];return t[0]=r*s+e*f,t[1]=u*s+o*f,t[2]=r*h+e*M,t[3]=u*h+o*M,t[4]=r*b+e*l+i,t[5]=u*b+o*l+c,t}function i(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t[4]=n[4]-a[4],t[5]=n[5]-a[5],t}a.mul=o,a.sub=i}\n//# sourceMappingURL=mat2d.min.js.map","min_map":"{\"version\":3,\"file\":\"mat2d.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"create\",\"out\",\"glMatrix\",\"ARRAY_TYPE\",\"Float32Array\",\"clone\",\"a\",\"copy\",\"identity\",\"fromValues\",\"b\",\"c\",\"d\",\"tx\",\"ty\",\"set\",\"invert\",\"aa\",\"ab\",\"ac\",\"ad\",\"atx\",\"aty\",\"det\",\"determinant\",\"multiply\",\"rotate\",\"rad\",\"a0\",\"a1\",\"a2\",\"a3\",\"a4\",\"a5\",\"s\",\"Math\",\"sin\",\"cos\",\"scale\",\"v\",\"v0\",\"v1\",\"translate\",\"fromRotation\",\"fromScaling\",\"fromTranslation\",\"str\",\"frob\",\"hypot\",\"add\",\"subtract\",\"multiplyScalar\",\"multiplyScalarAndAdd\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AE,GAClBT,EAAI,GAAKK,EAAE,GAAKI,EAAE,GAClBT,EAAI,GAAKK,EAAE,GAAKI,EAAE,GAClBT,EAAI,GAAKK,EAAE,GAAKI,EAAE,GAClBT,EAAI,GAAKK,EAAE,GAAKI,EAAE,GAClBT,EAAI,GAAKK,EAAE,GAAKI,EAAE,GACXT,CACX,CA8DAJ,EAAQoE,IAAMxC,EAKd5B,EAAQqE,IAAMhB,CAClB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/mat3.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"gl-matrix/esm/mat3.js","resolution":"ESM","id":"a025ef02dc","hash":"a025ef02dc2584a4371bd73fb6ab4da82373a063361f93db793be869bd1aefec","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sub = exports.mul = void 0;\nexports.create = create;\nexports.fromMat4 = fromMat4;\nexports.clone = clone;\nexports.copy = copy;\nexports.fromValues = fromValues;\nexports.set = set;\nexports.identity = identity;\nexports.transpose = transpose;\nexports.invert = invert;\nexports.adjoint = adjoint;\nexports.determinant = determinant;\nexports.multiply = multiply;\nexports.translate = translate;\nexports.rotate = rotate;\nexports.scale = scale;\nexports.fromTranslation = fromTranslation;\nexports.fromRotation = fromRotation;\nexports.fromScaling = fromScaling;\nexports.fromMat2d = fromMat2d;\nexports.fromQuat = fromQuat;\nexports.normalFromMat4 = normalFromMat4;\nexports.projection = projection;\nexports.str = str;\nexports.frob = frob;\nexports.add = add;\nexports.subtract = subtract;\nexports.multiplyScalar = multiplyScalar;\nexports.multiplyScalarAndAdd = multiplyScalarAndAdd;\nexports.exactEquals = exactEquals;\nexports.equals = equals;\nconst tslib_1 = require(\"tslib\");\nconst glMatrix = tslib_1.__importStar(require(\"./common.js\"));\n/**\n * 3x3 Matrix\n * @module mat3\n */\n/**\n * Creates a new identity mat3\n *\n * @returns {mat3} a new 3x3 matrix\n */\nfunction create() {\n    var out = new glMatrix.ARRAY_TYPE(9);\n    if (glMatrix.ARRAY_TYPE != Float32Array) {\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 0;\n        out[5] = 0;\n        out[6] = 0;\n        out[7] = 0;\n    }\n    out[0] = 1;\n    out[4] = 1;\n    out[8] = 1;\n    return out;\n}\n/**\n * Copies the upper-left 3x3 values into the given mat3.\n *\n * @param {mat3} out the receiving 3x3 matrix\n * @param {ReadonlyMat4} a   the source 4x4 matrix\n * @returns {mat3} out\n */\nfunction fromMat4(out, a) {\n    out[0] = a[0];\n    out[1] = a[1];\n    out[2] = a[2];\n    out[3] = a[4];\n    out[4] = a[5];\n    out[5] = a[6];\n    out[6] = a[8];\n    out[7] = a[9];\n    out[8] = a[10];\n    return out;\n}\n/**\n * Creates a new mat3 initialized with values from an existing matrix\n *\n * @param {ReadonlyMat3} a matrix to clone\n * @returns {mat3} a new 3x3 matrix\n */\nfunction clone(a) {\n    var out = new glMatrix.ARRAY_TYPE(9);\n    out[0] = a[0];\n    out[1] = a[1];\n    out[2] = a[2];\n    out[3] = a[3];\n    out[4] = a[4];\n    out[5] = a[5];\n    out[6] = a[6];\n    out[7] = a[7];\n    out[8] = a[8];\n    return out;\n}\n/**\n * Copy the values from one mat3 to another\n *\n * @param {mat3} out the receiving matrix\n * @param {ReadonlyMat3} a the source matrix\n * @returns {mat3} out\n */\nfunction copy(out, a) {\n    out[0] = a[0];\n    out[1] = a[1];\n    out[2] = a[2];\n    out[3] = a[3];\n    out[4] = a[4];\n    out[5] = a[5];\n    out[6] = a[6];\n    out[7] = a[7];\n    out[8] = a[8];\n    return out;\n}\n/**\n * Create a new mat3 with the given values\n *\n * @param {Number} m00 Component in column 0, row 0 position (index 0)\n * @param {Number} m01 Component in column 0, row 1 position (index 1)\n * @param {Number} m02 Component in column 0, row 2 position (index 2)\n * @param {Number} m10 Component in column 1, row 0 position (index 3)\n * @param {Number} m11 Component in column 1, row 1 position (index 4)\n * @param {Number} m12 Component in column 1, row 2 position (index 5)\n * @param {Number} m20 Component in column 2, row 0 position (index 6)\n * @param {Number} m21 Component in column 2, row 1 position (index 7)\n * @param {Number} m22 Component in column 2, row 2 position (index 8)\n * @returns {mat3} A new mat3\n */\nfunction fromValues(m00, m01, m02, m10, m11, m12, m20, m21, m22) {\n    var out = new glMatrix.ARRAY_TYPE(9);\n    out[0] = m00;\n    out[1] = m01;\n    out[2] = m02;\n    out[3] = m10;\n    out[4] = m11;\n    out[5] = m12;\n    out[6] = m20;\n    out[7] = m21;\n    out[8] = m22;\n    return out;\n}\n/**\n * Set the components of a mat3 to the given values\n *\n * @param {mat3} out the receiving matrix\n * @param {Number} m00 Component in column 0, row 0 position (index 0)\n * @param {Number} m01 Component in column 0, row 1 position (index 1)\n * @param {Number} m02 Component in column 0, row 2 position (index 2)\n * @param {Number} m10 Component in column 1, row 0 position (index 3)\n * @param {Number} m11 Component in column 1, row 1 position (index 4)\n * @param {Number} m12 Component in column 1, row 2 position (index 5)\n * @param {Number} m20 Component in column 2, row 0 position (index 6)\n * @param {Number} m21 Component in column 2, row 1 position (index 7)\n * @param {Number} m22 Component in column 2, row 2 position (index 8)\n * @returns {mat3} out\n */\nfunction set(out, m00, m01, m02, m10, m11, m12, m20, m21, m22) {\n    out[0] = m00;\n    out[1] = m01;\n    out[2] = m02;\n    out[3] = m10;\n    out[4] = m11;\n    out[5] = m12;\n    out[6] = m20;\n    out[7] = m21;\n    out[8] = m22;\n    return out;\n}\n/**\n * Set a mat3 to the identity matrix\n *\n * @param {mat3} out the receiving matrix\n * @returns {mat3} out\n */\nfunction identity(out) {\n    out[0] = 1;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 0;\n    out[4] = 1;\n    out[5] = 0;\n    out[6] = 0;\n    out[7] = 0;\n    out[8] = 1;\n    return out;\n}\n/**\n * Transpose the values of a mat3\n *\n * @param {mat3} out the receiving matrix\n * @param {ReadonlyMat3} a the source matrix\n * @returns {mat3} out\n */\nfunction transpose(out, a) {\n    // If we are transposing ourselves we can skip a few steps but have to cache some values\n    if (out === a) {\n        var a01 = a[1], a02 = a[2], a12 = a[5];\n        out[1] = a[3];\n        out[2] = a[6];\n        out[3] = a01;\n        out[5] = a[7];\n        out[6] = a02;\n        out[7] = a12;\n    }\n    else {\n        out[0] = a[0];\n        out[1] = a[3];\n        out[2] = a[6];\n        out[3] = a[1];\n        out[4] = a[4];\n        out[5] = a[7];\n        out[6] = a[2];\n        out[7] = a[5];\n        out[8] = a[8];\n    }\n    return out;\n}\n/**\n * Inverts a mat3\n *\n * @param {mat3} out the receiving matrix\n * @param {ReadonlyMat3} a the source matrix\n * @returns {mat3} out\n */\nfunction invert(out, a) {\n    var a00 = a[0], a01 = a[1], a02 = a[2];\n    var a10 = a[3], a11 = a[4], a12 = a[5];\n    var a20 = a[6], a21 = a[7], a22 = a[8];\n    var b01 = a22 * a11 - a12 * a21;\n    var b11 = -a22 * a10 + a12 * a20;\n    var b21 = a21 * a10 - a11 * a20; // Calculate the determinant\n    var det = a00 * b01 + a01 * b11 + a02 * b21;\n    if (!det) {\n        return null;\n    }\n    det = 1.0 / det;\n    out[0] = b01 * det;\n    out[1] = (-a22 * a01 + a02 * a21) * det;\n    out[2] = (a12 * a01 - a02 * a11) * det;\n    out[3] = b11 * det;\n    out[4] = (a22 * a00 - a02 * a20) * det;\n    out[5] = (-a12 * a00 + a02 * a10) * det;\n    out[6] = b21 * det;\n    out[7] = (-a21 * a00 + a01 * a20) * det;\n    out[8] = (a11 * a00 - a01 * a10) * det;\n    return out;\n}\n/**\n * Calculates the adjugate of a mat3\n *\n * @param {mat3} out the receiving matrix\n * @param {ReadonlyMat3} a the source matrix\n * @returns {mat3} out\n */\nfunction adjoint(out, a) {\n    var a00 = a[0], a01 = a[1], a02 = a[2];\n    var a10 = a[3], a11 = a[4], a12 = a[5];\n    var a20 = a[6], a21 = a[7], a22 = a[8];\n    out[0] = a11 * a22 - a12 * a21;\n    out[1] = a02 * a21 - a01 * a22;\n    out[2] = a01 * a12 - a02 * a11;\n    out[3] = a12 * a20 - a10 * a22;\n    out[4] = a00 * a22 - a02 * a20;\n    out[5] = a02 * a10 - a00 * a12;\n    out[6] = a10 * a21 - a11 * a20;\n    out[7] = a01 * a20 - a00 * a21;\n    out[8] = a00 * a11 - a01 * a10;\n    return out;\n}\n/**\n * Calculates the determinant of a mat3\n *\n * @param {ReadonlyMat3} a the source matrix\n * @returns {Number} determinant of a\n */\nfunction determinant(a) {\n    var a00 = a[0], a01 = a[1], a02 = a[2];\n    var a10 = a[3], a11 = a[4], a12 = a[5];\n    var a20 = a[6], a21 = a[7], a22 = a[8];\n    return a00 * (a22 * a11 - a12 * a21) + a01 * (-a22 * a10 + a12 * a20) + a02 * (a21 * a10 - a11 * a20);\n}\n/**\n * Multiplies two mat3's\n *\n * @param {mat3} out the receiving matrix\n * @param {ReadonlyMat3} a the first operand\n * @param {ReadonlyMat3} b the second operand\n * @returns {mat3} out\n */\nfunction multiply(out, a, b) {\n    var a00 = a[0], a01 = a[1], a02 = a[2];\n    var a10 = a[3], a11 = a[4], a12 = a[5];\n    var a20 = a[6], a21 = a[7], a22 = a[8];\n    var b00 = b[0], b01 = b[1], b02 = b[2];\n    var b10 = b[3], b11 = b[4], b12 = b[5];\n    var b20 = b[6], b21 = b[7], b22 = b[8];\n    out[0] = b00 * a00 + b01 * a10 + b02 * a20;\n    out[1] = b00 * a01 + b01 * a11 + b02 * a21;\n    out[2] = b00 * a02 + b01 * a12 + b02 * a22;\n    out[3] = b10 * a00 + b11 * a10 + b12 * a20;\n    out[4] = b10 * a01 + b11 * a11 + b12 * a21;\n    out[5] = b10 * a02 + b11 * a12 + b12 * a22;\n    out[6] = b20 * a00 + b21 * a10 + b22 * a20;\n    out[7] = b20 * a01 + b21 * a11 + b22 * a21;\n    out[8] = b20 * a02 + b21 * a12 + b22 * a22;\n    return out;\n}\n/**\n * Translate a mat3 by the given vector\n *\n * @param {mat3} out the receiving matrix\n * @param {ReadonlyMat3} a the matrix to translate\n * @param {ReadonlyVec2} v vector to translate by\n * @returns {mat3} out\n */\nfunction translate(out, a, v) {\n    var a00 = a[0], a01 = a[1], a02 = a[2], a10 = a[3], a11 = a[4], a12 = a[5], a20 = a[6], a21 = a[7], a22 = a[8], x = v[0], y = v[1];\n    out[0] = a00;\n    out[1] = a01;\n    out[2] = a02;\n    out[3] = a10;\n    out[4] = a11;\n    out[5] = a12;\n    out[6] = x * a00 + y * a10 + a20;\n    out[7] = x * a01 + y * a11 + a21;\n    out[8] = x * a02 + y * a12 + a22;\n    return out;\n}\n/**\n * Rotates a mat3 by the given angle\n *\n * @param {mat3} out the receiving matrix\n * @param {ReadonlyMat3} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat3} out\n */\nfunction rotate(out, a, rad) {\n    var a00 = a[0], a01 = a[1], a02 = a[2], a10 = a[3], a11 = a[4], a12 = a[5], a20 = a[6], a21 = a[7], a22 = a[8], s = Math.sin(rad), c = Math.cos(rad);\n    out[0] = c * a00 + s * a10;\n    out[1] = c * a01 + s * a11;\n    out[2] = c * a02 + s * a12;\n    out[3] = c * a10 - s * a00;\n    out[4] = c * a11 - s * a01;\n    out[5] = c * a12 - s * a02;\n    out[6] = a20;\n    out[7] = a21;\n    out[8] = a22;\n    return out;\n}\n/**\n * Scales the mat3 by the dimensions in the given vec2\n *\n * @param {mat3} out the receiving matrix\n * @param {ReadonlyMat3} a the matrix to rotate\n * @param {ReadonlyVec2} v the vec2 to scale the matrix by\n * @returns {mat3} out\n **/\nfunction scale(out, a, v) {\n    var x = v[0], y = v[1];\n    out[0] = x * a[0];\n    out[1] = x * a[1];\n    out[2] = x * a[2];\n    out[3] = y * a[3];\n    out[4] = y * a[4];\n    out[5] = y * a[5];\n    out[6] = a[6];\n    out[7] = a[7];\n    out[8] = a[8];\n    return out;\n}\n/**\n * Creates a matrix from a vector translation\n * This is equivalent to (but much faster than):\n *\n *     mat3.identity(dest);\n *     mat3.translate(dest, dest, vec);\n *\n * @param {mat3} out mat3 receiving operation result\n * @param {ReadonlyVec2} v Translation vector\n * @returns {mat3} out\n */\nfunction fromTranslation(out, v) {\n    out[0] = 1;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 0;\n    out[4] = 1;\n    out[5] = 0;\n    out[6] = v[0];\n    out[7] = v[1];\n    out[8] = 1;\n    return out;\n}\n/**\n * Creates a matrix from a given angle\n * This is equivalent to (but much faster than):\n *\n *     mat3.identity(dest);\n *     mat3.rotate(dest, dest, rad);\n *\n * @param {mat3} out mat3 receiving operation result\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat3} out\n */\nfunction fromRotation(out, rad) {\n    var s = Math.sin(rad), c = Math.cos(rad);\n    out[0] = c;\n    out[1] = s;\n    out[2] = 0;\n    out[3] = -s;\n    out[4] = c;\n    out[5] = 0;\n    out[6] = 0;\n    out[7] = 0;\n    out[8] = 1;\n    return out;\n}\n/**\n * Creates a matrix from a vector scaling\n * This is equivalent to (but much faster than):\n *\n *     mat3.identity(dest);\n *     mat3.scale(dest, dest, vec);\n *\n * @param {mat3} out mat3 receiving operation result\n * @param {ReadonlyVec2} v Scaling vector\n * @returns {mat3} out\n */\nfunction fromScaling(out, v) {\n    out[0] = v[0];\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 0;\n    out[4] = v[1];\n    out[5] = 0;\n    out[6] = 0;\n    out[7] = 0;\n    out[8] = 1;\n    return out;\n}\n/**\n * Copies the values from a mat2d into a mat3\n *\n * @param {mat3} out the receiving matrix\n * @param {ReadonlyMat2d} a the matrix to copy\n * @returns {mat3} out\n **/\nfunction fromMat2d(out, a) {\n    out[0] = a[0];\n    out[1] = a[1];\n    out[2] = 0;\n    out[3] = a[2];\n    out[4] = a[3];\n    out[5] = 0;\n    out[6] = a[4];\n    out[7] = a[5];\n    out[8] = 1;\n    return out;\n}\n/**\n * Calculates a 3x3 matrix from the given quaternion\n *\n * @param {mat3} out mat3 receiving operation result\n * @param {ReadonlyQuat} q Quaternion to create matrix from\n *\n * @returns {mat3} out\n */\nfunction fromQuat(out, q) {\n    var x = q[0], y = q[1], z = q[2], w = q[3];\n    var x2 = x + x;\n    var y2 = y + y;\n    var z2 = z + z;\n    var xx = x * x2;\n    var yx = y * x2;\n    var yy = y * y2;\n    var zx = z * x2;\n    var zy = z * y2;\n    var zz = z * z2;\n    var wx = w * x2;\n    var wy = w * y2;\n    var wz = w * z2;\n    out[0] = 1 - yy - zz;\n    out[3] = yx - wz;\n    out[6] = zx + wy;\n    out[1] = yx + wz;\n    out[4] = 1 - xx - zz;\n    out[7] = zy - wx;\n    out[2] = zx - wy;\n    out[5] = zy + wx;\n    out[8] = 1 - xx - yy;\n    return out;\n}\n/**\n * Calculates a 3x3 normal matrix (transpose inverse) from the 4x4 matrix\n *\n * @param {mat3} out mat3 receiving operation result\n * @param {ReadonlyMat4} a Mat4 to derive the normal matrix from\n *\n * @returns {mat3} out\n */\nfunction normalFromMat4(out, a) {\n    var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3];\n    var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7];\n    var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11];\n    var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];\n    var b00 = a00 * a11 - a01 * a10;\n    var b01 = a00 * a12 - a02 * a10;\n    var b02 = a00 * a13 - a03 * a10;\n    var b03 = a01 * a12 - a02 * a11;\n    var b04 = a01 * a13 - a03 * a11;\n    var b05 = a02 * a13 - a03 * a12;\n    var b06 = a20 * a31 - a21 * a30;\n    var b07 = a20 * a32 - a22 * a30;\n    var b08 = a20 * a33 - a23 * a30;\n    var b09 = a21 * a32 - a22 * a31;\n    var b10 = a21 * a33 - a23 * a31;\n    var b11 = a22 * a33 - a23 * a32; // Calculate the determinant\n    var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\n    if (!det) {\n        return null;\n    }\n    det = 1.0 / det;\n    out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det;\n    out[1] = (a12 * b08 - a10 * b11 - a13 * b07) * det;\n    out[2] = (a10 * b10 - a11 * b08 + a13 * b06) * det;\n    out[3] = (a02 * b10 - a01 * b11 - a03 * b09) * det;\n    out[4] = (a00 * b11 - a02 * b08 + a03 * b07) * det;\n    out[5] = (a01 * b08 - a00 * b10 - a03 * b06) * det;\n    out[6] = (a31 * b05 - a32 * b04 + a33 * b03) * det;\n    out[7] = (a32 * b02 - a30 * b05 - a33 * b01) * det;\n    out[8] = (a30 * b04 - a31 * b02 + a33 * b00) * det;\n    return out;\n}\n/**\n * Generates a 2D projection matrix with the given bounds\n *\n * @param {mat3} out mat3 frustum matrix will be written into\n * @param {number} width Width of your gl context\n * @param {number} height Height of gl context\n * @returns {mat3} out\n */\nfunction projection(out, width, height) {\n    out[0] = 2 / width;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 0;\n    out[4] = -2 / height;\n    out[5] = 0;\n    out[6] = -1;\n    out[7] = 1;\n    out[8] = 1;\n    return out;\n}\n/**\n * Returns a string representation of a mat3\n *\n * @param {ReadonlyMat3} a matrix to represent as a string\n * @returns {String} string representation of the matrix\n */\nfunction str(a) {\n    return \"mat3(\" + a[0] + \", \" + a[1] + \", \" + a[2] + \", \" + a[3] + \", \" + a[4] + \", \" + a[5] + \", \" + a[6] + \", \" + a[7] + \", \" + a[8] + \")\";\n}\n/**\n * Returns Frobenius norm of a mat3\n *\n * @param {ReadonlyMat3} a the matrix to calculate Frobenius norm of\n * @returns {Number} Frobenius norm\n */\nfunction frob(a) {\n    return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8]);\n}\n/**\n * Adds two mat3's\n *\n * @param {mat3} out the receiving matrix\n * @param {ReadonlyMat3} a the first operand\n * @param {ReadonlyMat3} b the second operand\n * @returns {mat3} out\n */\nfunction add(out, a, b) {\n    out[0] = a[0] + b[0];\n    out[1] = a[1] + b[1];\n    out[2] = a[2] + b[2];\n    out[3] = a[3] + b[3];\n    out[4] = a[4] + b[4];\n    out[5] = a[5] + b[5];\n    out[6] = a[6] + b[6];\n    out[7] = a[7] + b[7];\n    out[8] = a[8] + b[8];\n    return out;\n}\n/**\n * Subtracts matrix b from matrix a\n *\n * @param {mat3} out the receiving matrix\n * @param {ReadonlyMat3} a the first operand\n * @param {ReadonlyMat3} b the second operand\n * @returns {mat3} out\n */\nfunction subtract(out, a, b) {\n    out[0] = a[0] - b[0];\n    out[1] = a[1] - b[1];\n    out[2] = a[2] - b[2];\n    out[3] = a[3] - b[3];\n    out[4] = a[4] - b[4];\n    out[5] = a[5] - b[5];\n    out[6] = a[6] - b[6];\n    out[7] = a[7] - b[7];\n    out[8] = a[8] - b[8];\n    return out;\n}\n/**\n * Multiply each element of the matrix by a scalar.\n *\n * @param {mat3} out the receiving matrix\n * @param {ReadonlyMat3} a the matrix to scale\n * @param {Number} b amount to scale the matrix's elements by\n * @returns {mat3} out\n */\nfunction multiplyScalar(out, a, b) {\n    out[0] = a[0] * b;\n    out[1] = a[1] * b;\n    out[2] = a[2] * b;\n    out[3] = a[3] * b;\n    out[4] = a[4] * b;\n    out[5] = a[5] * b;\n    out[6] = a[6] * b;\n    out[7] = a[7] * b;\n    out[8] = a[8] * b;\n    return out;\n}\n/**\n * Adds two mat3's after multiplying each element of the second operand by a scalar value.\n *\n * @param {mat3} out the receiving vector\n * @param {ReadonlyMat3} a the first operand\n * @param {ReadonlyMat3} b the second operand\n * @param {Number} scale the amount to scale b's elements by before adding\n * @returns {mat3} out\n */\nfunction multiplyScalarAndAdd(out, a, b, scale) {\n    out[0] = a[0] + b[0] * scale;\n    out[1] = a[1] + b[1] * scale;\n    out[2] = a[2] + b[2] * scale;\n    out[3] = a[3] + b[3] * scale;\n    out[4] = a[4] + b[4] * scale;\n    out[5] = a[5] + b[5] * scale;\n    out[6] = a[6] + b[6] * scale;\n    out[7] = a[7] + b[7] * scale;\n    out[8] = a[8] + b[8] * scale;\n    return out;\n}\n/**\n * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)\n *\n * @param {ReadonlyMat3} a The first matrix.\n * @param {ReadonlyMat3} b The second matrix.\n * @returns {Boolean} True if the matrices are equal, false otherwise.\n */\nfunction exactEquals(a, b) {\n    return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7] && a[8] === b[8];\n}\n/**\n * Returns whether or not the matrices have approximately the same elements in the same position.\n *\n * @param {ReadonlyMat3} a The first matrix.\n * @param {ReadonlyMat3} b The second matrix.\n * @returns {Boolean} True if the matrices are equal, false otherwise.\n */\nfunction equals(a, b) {\n    var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5], a6 = a[6], a7 = a[7], a8 = a[8];\n    var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3], b4 = b[4], b5 = b[5], b6 = b[6], b7 = b[7], b8 = b[8];\n    return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)) && Math.abs(a8 - b8) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a8), Math.abs(b8));\n}\n/**\n * Alias for {@link mat3.multiply}\n * @function\n */\nexports.mul = multiply;\n/**\n * Alias for {@link mat3.subtract}\n * @function\n */\nexports.sub = subtract;\n","type":"js","dependency_paths":[["./common.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/common.js"]],"dependency_map":[],"exported":[{"type":"named","name":"create"},{"type":"named","name":"fromMat4"},{"type":"named","name":"clone"},{"type":"named","name":"copy"},{"type":"named","name":"fromValues"},{"type":"named","name":"set"},{"type":"named","name":"identity"},{"type":"named","name":"transpose"},{"type":"named","name":"invert"},{"type":"named","name":"adjoint"},{"type":"named","name":"determinant"},{"type":"named","name":"multiply"},{"type":"named","name":"translate"},{"type":"named","name":"rotate"},{"type":"named","name":"scale"},{"type":"named","name":"fromTranslation"},{"type":"named","name":"fromRotation"},{"type":"named","name":"fromScaling"},{"type":"named","name":"fromMat2d"},{"type":"named","name":"fromQuat"},{"type":"named","name":"normalFromMat4"},{"type":"named","name":"projection"},{"type":"named","name":"str"},{"type":"named","name":"frob"},{"type":"named","name":"add"},{"type":"named","name":"subtract"},{"type":"named","name":"multiplyScalar"},{"type":"named","name":"multiplyScalarAndAdd"},{"type":"named","name":"exactEquals"},{"type":"named","name":"equals"}],"externals":[],"shims":[]},"code":{"source":"/* gl-matrix/esm/mat3.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.create = create;\n    exports.fromMat4 = fromMat4;\n    exports.clone = clone;\n    exports.copy = copy;\n    exports.fromValues = fromValues;\n    exports.set = set;\n    exports.identity = identity;\n    exports.transpose = transpose;\n    exports.invert = invert;\n    exports.adjoint = adjoint;\n    exports.determinant = determinant;\n    exports.multiply = multiply;\n    exports.translate = translate;\n    exports.rotate = rotate;\n    exports.scale = scale;\n    exports.fromTranslation = fromTranslation;\n    exports.fromRotation = fromRotation;\n    exports.fromScaling = fromScaling;\n    exports.fromMat2d = fromMat2d;\n    exports.fromQuat = fromQuat;\n    exports.normalFromMat4 = normalFromMat4;\n    exports.projection = projection;\n    exports.str = str;\n    exports.frob = frob;\n    exports.add = add;\n    exports.subtract = subtract;\n    exports.multiplyScalar = multiplyScalar;\n    exports.multiplyScalarAndAdd = multiplyScalarAndAdd;\n    exports.exactEquals = exactEquals;\n    exports.equals = equals;\n    const tslib_1 = require(\"tslib\");\n    const glMatrix = tslib_1.__importStar(require(\"7d825b979e\") /* ./common.js */);\n    /**\n     * 3x3 Matrix\n     * @module mat3\n     */\n    /**\n     * Creates a new identity mat3\n     *\n     * @returns {mat3} a new 3x3 matrix\n     */\n    function create() {\n        var out = new glMatrix.ARRAY_TYPE(9);\n        if (glMatrix.ARRAY_TYPE != Float32Array) {\n            out[1] = 0;\n            out[2] = 0;\n            out[3] = 0;\n            out[5] = 0;\n            out[6] = 0;\n            out[7] = 0;\n        }\n        out[0] = 1;\n        out[4] = 1;\n        out[8] = 1;\n        return out;\n    }\n    /**\n     * Copies the upper-left 3x3 values into the given mat3.\n     *\n     * @param {mat3} out the receiving 3x3 matrix\n     * @param {ReadonlyMat4} a   the source 4x4 matrix\n     * @returns {mat3} out\n     */\n    function fromMat4(out, a) {\n        out[0] = a[0];\n        out[1] = a[1];\n        out[2] = a[2];\n        out[3] = a[4];\n        out[4] = a[5];\n        out[5] = a[6];\n        out[6] = a[8];\n        out[7] = a[9];\n        out[8] = a[10];\n        return out;\n    }\n    /**\n     * Creates a new mat3 initialized with values from an existing matrix\n     *\n     * @param {ReadonlyMat3} a matrix to clone\n     * @returns {mat3} a new 3x3 matrix\n     */\n    function clone(a) {\n        var out = new glMatrix.ARRAY_TYPE(9);\n        out[0] = a[0];\n        out[1] = a[1];\n        out[2] = a[2];\n        out[3] = a[3];\n        out[4] = a[4];\n        out[5] = a[5];\n        out[6] = a[6];\n        out[7] = a[7];\n        out[8] = a[8];\n        return out;\n    }\n    /**\n     * Copy the values from one mat3 to another\n     *\n     * @param {mat3} out the receiving matrix\n     * @param {ReadonlyMat3} a the source matrix\n     * @returns {mat3} out\n     */\n    function copy(out, a) {\n        out[0] = a[0];\n        out[1] = a[1];\n        out[2] = a[2];\n        out[3] = a[3];\n        out[4] = a[4];\n        out[5] = a[5];\n        out[6] = a[6];\n        out[7] = a[7];\n        out[8] = a[8];\n        return out;\n    }\n    /**\n     * Create a new mat3 with the given values\n     *\n     * @param {Number} m00 Component in column 0, row 0 position (index 0)\n     * @param {Number} m01 Component in column 0, row 1 position (index 1)\n     * @param {Number} m02 Component in column 0, row 2 position (index 2)\n     * @param {Number} m10 Component in column 1, row 0 position (index 3)\n     * @param {Number} m11 Component in column 1, row 1 position (index 4)\n     * @param {Number} m12 Component in column 1, row 2 position (index 5)\n     * @param {Number} m20 Component in column 2, row 0 position (index 6)\n     * @param {Number} m21 Component in column 2, row 1 position (index 7)\n     * @param {Number} m22 Component in column 2, row 2 position (index 8)\n     * @returns {mat3} A new mat3\n     */\n    function fromValues(m00, m01, m02, m10, m11, m12, m20, m21, m22) {\n        var out = new glMatrix.ARRAY_TYPE(9);\n        out[0] = m00;\n        out[1] = m01;\n        out[2] = m02;\n        out[3] = m10;\n        out[4] = m11;\n        out[5] = m12;\n        out[6] = m20;\n        out[7] = m21;\n        out[8] = m22;\n        return out;\n    }\n    /**\n     * Set the components of a mat3 to the given values\n     *\n     * @param {mat3} out the receiving matrix\n     * @param {Number} m00 Component in column 0, row 0 position (index 0)\n     * @param {Number} m01 Component in column 0, row 1 position (index 1)\n     * @param {Number} m02 Component in column 0, row 2 position (index 2)\n     * @param {Number} m10 Component in column 1, row 0 position (index 3)\n     * @param {Number} m11 Component in column 1, row 1 position (index 4)\n     * @param {Number} m12 Component in column 1, row 2 position (index 5)\n     * @param {Number} m20 Component in column 2, row 0 position (index 6)\n     * @param {Number} m21 Component in column 2, row 1 position (index 7)\n     * @param {Number} m22 Component in column 2, row 2 position (index 8)\n     * @returns {mat3} out\n     */\n    function set(out, m00, m01, m02, m10, m11, m12, m20, m21, m22) {\n        out[0] = m00;\n        out[1] = m01;\n        out[2] = m02;\n        out[3] = m10;\n        out[4] = m11;\n        out[5] = m12;\n        out[6] = m20;\n        out[7] = m21;\n        out[8] = m22;\n        return out;\n    }\n    /**\n     * Set a mat3 to the identity matrix\n     *\n     * @param {mat3} out the receiving matrix\n     * @returns {mat3} out\n     */\n    function identity(out) {\n        out[0] = 1;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 0;\n        out[4] = 1;\n        out[5] = 0;\n        out[6] = 0;\n        out[7] = 0;\n        out[8] = 1;\n        return out;\n    }\n    /**\n     * Transpose the values of a mat3\n     *\n     * @param {mat3} out the receiving matrix\n     * @param {ReadonlyMat3} a the source matrix\n     * @returns {mat3} out\n     */\n    function transpose(out, a) {\n        // If we are transposing ourselves we can skip a few steps but have to cache some values\n        if (out === a) {\n            var a01 = a[1], a02 = a[2], a12 = a[5];\n            out[1] = a[3];\n            out[2] = a[6];\n            out[3] = a01;\n            out[5] = a[7];\n            out[6] = a02;\n            out[7] = a12;\n        }\n        else {\n            out[0] = a[0];\n            out[1] = a[3];\n            out[2] = a[6];\n            out[3] = a[1];\n            out[4] = a[4];\n            out[5] = a[7];\n            out[6] = a[2];\n            out[7] = a[5];\n            out[8] = a[8];\n        }\n        return out;\n    }\n    /**\n     * Inverts a mat3\n     *\n     * @param {mat3} out the receiving matrix\n     * @param {ReadonlyMat3} a the source matrix\n     * @returns {mat3} out\n     */\n    function invert(out, a) {\n        var a00 = a[0], a01 = a[1], a02 = a[2];\n        var a10 = a[3], a11 = a[4], a12 = a[5];\n        var a20 = a[6], a21 = a[7], a22 = a[8];\n        var b01 = a22 * a11 - a12 * a21;\n        var b11 = -a22 * a10 + a12 * a20;\n        var b21 = a21 * a10 - a11 * a20; // Calculate the determinant\n        var det = a00 * b01 + a01 * b11 + a02 * b21;\n        if (!det) {\n            return null;\n        }\n        det = 1.0 / det;\n        out[0] = b01 * det;\n        out[1] = (-a22 * a01 + a02 * a21) * det;\n        out[2] = (a12 * a01 - a02 * a11) * det;\n        out[3] = b11 * det;\n        out[4] = (a22 * a00 - a02 * a20) * det;\n        out[5] = (-a12 * a00 + a02 * a10) * det;\n        out[6] = b21 * det;\n        out[7] = (-a21 * a00 + a01 * a20) * det;\n        out[8] = (a11 * a00 - a01 * a10) * det;\n        return out;\n    }\n    /**\n     * Calculates the adjugate of a mat3\n     *\n     * @param {mat3} out the receiving matrix\n     * @param {ReadonlyMat3} a the source matrix\n     * @returns {mat3} out\n     */\n    function adjoint(out, a) {\n        var a00 = a[0], a01 = a[1], a02 = a[2];\n        var a10 = a[3], a11 = a[4], a12 = a[5];\n        var a20 = a[6], a21 = a[7], a22 = a[8];\n        out[0] = a11 * a22 - a12 * a21;\n        out[1] = a02 * a21 - a01 * a22;\n        out[2] = a01 * a12 - a02 * a11;\n        out[3] = a12 * a20 - a10 * a22;\n        out[4] = a00 * a22 - a02 * a20;\n        out[5] = a02 * a10 - a00 * a12;\n        out[6] = a10 * a21 - a11 * a20;\n        out[7] = a01 * a20 - a00 * a21;\n        out[8] = a00 * a11 - a01 * a10;\n        return out;\n    }\n    /**\n     * Calculates the determinant of a mat3\n     *\n     * @param {ReadonlyMat3} a the source matrix\n     * @returns {Number} determinant of a\n     */\n    function determinant(a) {\n        var a00 = a[0], a01 = a[1], a02 = a[2];\n        var a10 = a[3], a11 = a[4], a12 = a[5];\n        var a20 = a[6], a21 = a[7], a22 = a[8];\n        return a00 * (a22 * a11 - a12 * a21) + a01 * (-a22 * a10 + a12 * a20) + a02 * (a21 * a10 - a11 * a20);\n    }\n    /**\n     * Multiplies two mat3's\n     *\n     * @param {mat3} out the receiving matrix\n     * @param {ReadonlyMat3} a the first operand\n     * @param {ReadonlyMat3} b the second operand\n     * @returns {mat3} out\n     */\n    function multiply(out, a, b) {\n        var a00 = a[0], a01 = a[1], a02 = a[2];\n        var a10 = a[3], a11 = a[4], a12 = a[5];\n        var a20 = a[6], a21 = a[7], a22 = a[8];\n        var b00 = b[0], b01 = b[1], b02 = b[2];\n        var b10 = b[3], b11 = b[4], b12 = b[5];\n        var b20 = b[6], b21 = b[7], b22 = b[8];\n        out[0] = b00 * a00 + b01 * a10 + b02 * a20;\n        out[1] = b00 * a01 + b01 * a11 + b02 * a21;\n        out[2] = b00 * a02 + b01 * a12 + b02 * a22;\n        out[3] = b10 * a00 + b11 * a10 + b12 * a20;\n        out[4] = b10 * a01 + b11 * a11 + b12 * a21;\n        out[5] = b10 * a02 + b11 * a12 + b12 * a22;\n        out[6] = b20 * a00 + b21 * a10 + b22 * a20;\n        out[7] = b20 * a01 + b21 * a11 + b22 * a21;\n        out[8] = b20 * a02 + b21 * a12 + b22 * a22;\n        return out;\n    }\n    /**\n     * Translate a mat3 by the given vector\n     *\n     * @param {mat3} out the receiving matrix\n     * @param {ReadonlyMat3} a the matrix to translate\n     * @param {ReadonlyVec2} v vector to translate by\n     * @returns {mat3} out\n     */\n    function translate(out, a, v) {\n        var a00 = a[0], a01 = a[1], a02 = a[2], a10 = a[3], a11 = a[4], a12 = a[5], a20 = a[6], a21 = a[7], a22 = a[8], x = v[0], y = v[1];\n        out[0] = a00;\n        out[1] = a01;\n        out[2] = a02;\n        out[3] = a10;\n        out[4] = a11;\n        out[5] = a12;\n        out[6] = x * a00 + y * a10 + a20;\n        out[7] = x * a01 + y * a11 + a21;\n        out[8] = x * a02 + y * a12 + a22;\n        return out;\n    }\n    /**\n     * Rotates a mat3 by the given angle\n     *\n     * @param {mat3} out the receiving matrix\n     * @param {ReadonlyMat3} a the matrix to rotate\n     * @param {Number} rad the angle to rotate the matrix by\n     * @returns {mat3} out\n     */\n    function rotate(out, a, rad) {\n        var a00 = a[0], a01 = a[1], a02 = a[2], a10 = a[3], a11 = a[4], a12 = a[5], a20 = a[6], a21 = a[7], a22 = a[8], s = Math.sin(rad), c = Math.cos(rad);\n        out[0] = c * a00 + s * a10;\n        out[1] = c * a01 + s * a11;\n        out[2] = c * a02 + s * a12;\n        out[3] = c * a10 - s * a00;\n        out[4] = c * a11 - s * a01;\n        out[5] = c * a12 - s * a02;\n        out[6] = a20;\n        out[7] = a21;\n        out[8] = a22;\n        return out;\n    }\n    /**\n     * Scales the mat3 by the dimensions in the given vec2\n     *\n     * @param {mat3} out the receiving matrix\n     * @param {ReadonlyMat3} a the matrix to rotate\n     * @param {ReadonlyVec2} v the vec2 to scale the matrix by\n     * @returns {mat3} out\n     **/\n    function scale(out, a, v) {\n        var x = v[0], y = v[1];\n        out[0] = x * a[0];\n        out[1] = x * a[1];\n        out[2] = x * a[2];\n        out[3] = y * a[3];\n        out[4] = y * a[4];\n        out[5] = y * a[5];\n        out[6] = a[6];\n        out[7] = a[7];\n        out[8] = a[8];\n        return out;\n    }\n    /**\n     * Creates a matrix from a vector translation\n     * This is equivalent to (but much faster than):\n     *\n     *     mat3.identity(dest);\n     *     mat3.translate(dest, dest, vec);\n     *\n     * @param {mat3} out mat3 receiving operation result\n     * @param {ReadonlyVec2} v Translation vector\n     * @returns {mat3} out\n     */\n    function fromTranslation(out, v) {\n        out[0] = 1;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 0;\n        out[4] = 1;\n        out[5] = 0;\n        out[6] = v[0];\n        out[7] = v[1];\n        out[8] = 1;\n        return out;\n    }\n    /**\n     * Creates a matrix from a given angle\n     * This is equivalent to (but much faster than):\n     *\n     *     mat3.identity(dest);\n     *     mat3.rotate(dest, dest, rad);\n     *\n     * @param {mat3} out mat3 receiving operation result\n     * @param {Number} rad the angle to rotate the matrix by\n     * @returns {mat3} out\n     */\n    function fromRotation(out, rad) {\n        var s = Math.sin(rad), c = Math.cos(rad);\n        out[0] = c;\n        out[1] = s;\n        out[2] = 0;\n        out[3] = -s;\n        out[4] = c;\n        out[5] = 0;\n        out[6] = 0;\n        out[7] = 0;\n        out[8] = 1;\n        return out;\n    }\n    /**\n     * Creates a matrix from a vector scaling\n     * This is equivalent to (but much faster than):\n     *\n     *     mat3.identity(dest);\n     *     mat3.scale(dest, dest, vec);\n     *\n     * @param {mat3} out mat3 receiving operation result\n     * @param {ReadonlyVec2} v Scaling vector\n     * @returns {mat3} out\n     */\n    function fromScaling(out, v) {\n        out[0] = v[0];\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 0;\n        out[4] = v[1];\n        out[5] = 0;\n        out[6] = 0;\n        out[7] = 0;\n        out[8] = 1;\n        return out;\n    }\n    /**\n     * Copies the values from a mat2d into a mat3\n     *\n     * @param {mat3} out the receiving matrix\n     * @param {ReadonlyMat2d} a the matrix to copy\n     * @returns {mat3} out\n     **/\n    function fromMat2d(out, a) {\n        out[0] = a[0];\n        out[1] = a[1];\n        out[2] = 0;\n        out[3] = a[2];\n        out[4] = a[3];\n        out[5] = 0;\n        out[6] = a[4];\n        out[7] = a[5];\n        out[8] = 1;\n        return out;\n    }\n    /**\n     * Calculates a 3x3 matrix from the given quaternion\n     *\n     * @param {mat3} out mat3 receiving operation result\n     * @param {ReadonlyQuat} q Quaternion to create matrix from\n     *\n     * @returns {mat3} out\n     */\n    function fromQuat(out, q) {\n        var x = q[0], y = q[1], z = q[2], w = q[3];\n        var x2 = x + x;\n        var y2 = y + y;\n        var z2 = z + z;\n        var xx = x * x2;\n        var yx = y * x2;\n        var yy = y * y2;\n        var zx = z * x2;\n        var zy = z * y2;\n        var zz = z * z2;\n        var wx = w * x2;\n        var wy = w * y2;\n        var wz = w * z2;\n        out[0] = 1 - yy - zz;\n        out[3] = yx - wz;\n        out[6] = zx + wy;\n        out[1] = yx + wz;\n        out[4] = 1 - xx - zz;\n        out[7] = zy - wx;\n        out[2] = zx - wy;\n        out[5] = zy + wx;\n        out[8] = 1 - xx - yy;\n        return out;\n    }\n    /**\n     * Calculates a 3x3 normal matrix (transpose inverse) from the 4x4 matrix\n     *\n     * @param {mat3} out mat3 receiving operation result\n     * @param {ReadonlyMat4} a Mat4 to derive the normal matrix from\n     *\n     * @returns {mat3} out\n     */\n    function normalFromMat4(out, a) {\n        var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3];\n        var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7];\n        var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11];\n        var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];\n        var b00 = a00 * a11 - a01 * a10;\n        var b01 = a00 * a12 - a02 * a10;\n        var b02 = a00 * a13 - a03 * a10;\n        var b03 = a01 * a12 - a02 * a11;\n        var b04 = a01 * a13 - a03 * a11;\n        var b05 = a02 * a13 - a03 * a12;\n        var b06 = a20 * a31 - a21 * a30;\n        var b07 = a20 * a32 - a22 * a30;\n        var b08 = a20 * a33 - a23 * a30;\n        var b09 = a21 * a32 - a22 * a31;\n        var b10 = a21 * a33 - a23 * a31;\n        var b11 = a22 * a33 - a23 * a32; // Calculate the determinant\n        var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\n        if (!det) {\n            return null;\n        }\n        det = 1.0 / det;\n        out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det;\n        out[1] = (a12 * b08 - a10 * b11 - a13 * b07) * det;\n        out[2] = (a10 * b10 - a11 * b08 + a13 * b06) * det;\n        out[3] = (a02 * b10 - a01 * b11 - a03 * b09) * det;\n        out[4] = (a00 * b11 - a02 * b08 + a03 * b07) * det;\n        out[5] = (a01 * b08 - a00 * b10 - a03 * b06) * det;\n        out[6] = (a31 * b05 - a32 * b04 + a33 * b03) * det;\n        out[7] = (a32 * b02 - a30 * b05 - a33 * b01) * det;\n        out[8] = (a30 * b04 - a31 * b02 + a33 * b00) * det;\n        return out;\n    }\n    /**\n     * Generates a 2D projection matrix with the given bounds\n     *\n     * @param {mat3} out mat3 frustum matrix will be written into\n     * @param {number} width Width of your gl context\n     * @param {number} height Height of gl context\n     * @returns {mat3} out\n     */\n    function projection(out, width, height) {\n        out[0] = 2 / width;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 0;\n        out[4] = -2 / height;\n        out[5] = 0;\n        out[6] = -1;\n        out[7] = 1;\n        out[8] = 1;\n        return out;\n    }\n    /**\n     * Returns a string representation of a mat3\n     *\n     * @param {ReadonlyMat3} a matrix to represent as a string\n     * @returns {String} string representation of the matrix\n     */\n    function str(a) {\n        return \"mat3(\" + a[0] + \", \" + a[1] + \", \" + a[2] + \", \" + a[3] + \", \" + a[4] + \", \" + a[5] + \", \" + a[6] + \", \" + a[7] + \", \" + a[8] + \")\";\n    }\n    /**\n     * Returns Frobenius norm of a mat3\n     *\n     * @param {ReadonlyMat3} a the matrix to calculate Frobenius norm of\n     * @returns {Number} Frobenius norm\n     */\n    function frob(a) {\n        return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8]);\n    }\n    /**\n     * Adds two mat3's\n     *\n     * @param {mat3} out the receiving matrix\n     * @param {ReadonlyMat3} a the first operand\n     * @param {ReadonlyMat3} b the second operand\n     * @returns {mat3} out\n     */\n    function add(out, a, b) {\n        out[0] = a[0] + b[0];\n        out[1] = a[1] + b[1];\n        out[2] = a[2] + b[2];\n        out[3] = a[3] + b[3];\n        out[4] = a[4] + b[4];\n        out[5] = a[5] + b[5];\n        out[6] = a[6] + b[6];\n        out[7] = a[7] + b[7];\n        out[8] = a[8] + b[8];\n        return out;\n    }\n    /**\n     * Subtracts matrix b from matrix a\n     *\n     * @param {mat3} out the receiving matrix\n     * @param {ReadonlyMat3} a the first operand\n     * @param {ReadonlyMat3} b the second operand\n     * @returns {mat3} out\n     */\n    function subtract(out, a, b) {\n        out[0] = a[0] - b[0];\n        out[1] = a[1] - b[1];\n        out[2] = a[2] - b[2];\n        out[3] = a[3] - b[3];\n        out[4] = a[4] - b[4];\n        out[5] = a[5] - b[5];\n        out[6] = a[6] - b[6];\n        out[7] = a[7] - b[7];\n        out[8] = a[8] - b[8];\n        return out;\n    }\n    /**\n     * Multiply each element of the matrix by a scalar.\n     *\n     * @param {mat3} out the receiving matrix\n     * @param {ReadonlyMat3} a the matrix to scale\n     * @param {Number} b amount to scale the matrix's elements by\n     * @returns {mat3} out\n     */\n    function multiplyScalar(out, a, b) {\n        out[0] = a[0] * b;\n        out[1] = a[1] * b;\n        out[2] = a[2] * b;\n        out[3] = a[3] * b;\n        out[4] = a[4] * b;\n        out[5] = a[5] * b;\n        out[6] = a[6] * b;\n        out[7] = a[7] * b;\n        out[8] = a[8] * b;\n        return out;\n    }\n    /**\n     * Adds two mat3's after multiplying each element of the second operand by a scalar value.\n     *\n     * @param {mat3} out the receiving vector\n     * @param {ReadonlyMat3} a the first operand\n     * @param {ReadonlyMat3} b the second operand\n     * @param {Number} scale the amount to scale b's elements by before adding\n     * @returns {mat3} out\n     */\n    function multiplyScalarAndAdd(out, a, b, scale) {\n        out[0] = a[0] + b[0] * scale;\n        out[1] = a[1] + b[1] * scale;\n        out[2] = a[2] + b[2] * scale;\n        out[3] = a[3] + b[3] * scale;\n        out[4] = a[4] + b[4] * scale;\n        out[5] = a[5] + b[5] * scale;\n        out[6] = a[6] + b[6] * scale;\n        out[7] = a[7] + b[7] * scale;\n        out[8] = a[8] + b[8] * scale;\n        return out;\n    }\n    /**\n     * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)\n     *\n     * @param {ReadonlyMat3} a The first matrix.\n     * @param {ReadonlyMat3} b The second matrix.\n     * @returns {Boolean} True if the matrices are equal, false otherwise.\n     */\n    function exactEquals(a, b) {\n        return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7] && a[8] === b[8];\n    }\n    /**\n     * Returns whether or not the matrices have approximately the same elements in the same position.\n     *\n     * @param {ReadonlyMat3} a The first matrix.\n     * @param {ReadonlyMat3} b The second matrix.\n     * @returns {Boolean} True if the matrices are equal, false otherwise.\n     */\n    function equals(a, b) {\n        var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5], a6 = a[6], a7 = a[7], a8 = a[8];\n        var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3], b4 = b[4], b5 = b[5], b6 = b[6], b7 = b[7], b8 = b[8];\n        return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)) && Math.abs(a8 - b8) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a8), Math.abs(b8));\n    }\n    /**\n     * Alias for {@link mat3.multiply}\n     * @function\n     */\n    exports.mul = multiply;\n    /**\n     * Alias for {@link mat3.subtract}\n     * @function\n     */\n    exports.sub = subtract;\n}\n","min_source":"function _(t,a,n,r,u){r(),n.create=function(){var t=new o.ARRAY_TYPE(9);o.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0);return t[0]=1,t[4]=1,t[8]=1,t},n.fromMat4=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[4],t[4]=a[5],t[5]=a[6],t[6]=a[8],t[7]=a[9],t[8]=a[10],t},n.clone=function(t){var a=new o.ARRAY_TYPE(9);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a[8]=t[8],a},n.copy=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t},n.fromValues=function(t,a,n,r,u,e,i,s,c){var M=new o.ARRAY_TYPE(9);return M[0]=t,M[1]=a,M[2]=n,M[3]=r,M[4]=u,M[5]=e,M[6]=i,M[7]=s,M[8]=c,M},n.set=function(t,a,n,r,u,o,e,i,s,c){return t[0]=a,t[1]=n,t[2]=r,t[3]=u,t[4]=o,t[5]=e,t[6]=i,t[7]=s,t[8]=c,t},n.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.transpose=function(t,a){if(t===a){var n=a[1],r=a[2],u=a[5];t[1]=a[3],t[2]=a[6],t[3]=n,t[5]=a[7],t[6]=r,t[7]=u}else t[0]=a[0],t[1]=a[3],t[2]=a[6],t[3]=a[1],t[4]=a[4],t[5]=a[7],t[6]=a[2],t[7]=a[5],t[8]=a[8];return t},n.invert=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],s=a[6],c=a[7],M=a[8],f=M*e-i*c,h=-M*o+i*s,b=c*o-e*s,l=n*f+r*h+u*b;if(!l)return null;return l=1/l,t[0]=f*l,t[1]=(-M*r+u*c)*l,t[2]=(i*r-u*e)*l,t[3]=h*l,t[4]=(M*n-u*s)*l,t[5]=(-i*n+u*o)*l,t[6]=b*l,t[7]=(-c*n+r*s)*l,t[8]=(e*n-r*o)*l,t},n.adjoint=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],s=a[6],c=a[7],M=a[8];return t[0]=e*M-i*c,t[1]=u*c-r*M,t[2]=r*i-u*e,t[3]=i*s-o*M,t[4]=n*M-u*s,t[5]=u*o-n*i,t[6]=o*c-e*s,t[7]=r*s-n*c,t[8]=n*e-r*o,t},n.determinant=function(t){var a=t[0],n=t[1],r=t[2],u=t[3],o=t[4],e=t[5],i=t[6],s=t[7],c=t[8];return a*(c*o-e*s)+n*(-c*u+e*i)+r*(s*u-o*i)},n.multiply=e,n.translate=function(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],s=a[5],c=a[6],M=a[7],f=a[8],h=n[0],b=n[1];return t[0]=r,t[1]=u,t[2]=o,t[3]=e,t[4]=i,t[5]=s,t[6]=h*r+b*e+c,t[7]=h*u+b*i+M,t[8]=h*o+b*s+f,t},n.rotate=function(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],s=a[5],c=a[6],M=a[7],f=a[8],h=Math.sin(n),b=Math.cos(n);return t[0]=b*r+h*e,t[1]=b*u+h*i,t[2]=b*o+h*s,t[3]=b*e-h*r,t[4]=b*i-h*u,t[5]=b*s-h*o,t[6]=c,t[7]=M,t[8]=f,t},n.scale=function(t,a,n){var r=n[0],u=n[1];return t[0]=r*a[0],t[1]=r*a[1],t[2]=r*a[2],t[3]=u*a[3],t[4]=u*a[4],t[5]=u*a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t},n.fromTranslation=function(t,a){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=a[0],t[7]=a[1],t[8]=1,t},n.fromRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.fromScaling=function(t,a){return t[0]=a[0],t[1]=0,t[2]=0,t[3]=0,t[4]=a[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},n.fromMat2d=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=0,t[3]=a[2],t[4]=a[3],t[5]=0,t[6]=a[4],t[7]=a[5],t[8]=1,t},n.fromQuat=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=n+n,i=r+r,s=u+u,c=n*e,M=r*e,f=r*i,h=u*e,b=u*i,l=u*s,m=o*e,v=o*i,E=o*s;return t[0]=1-f-l,t[3]=M-E,t[6]=h+v,t[1]=M+E,t[4]=1-c-l,t[7]=b-m,t[2]=h-v,t[5]=b+m,t[8]=1-c-f,t},n.normalFromMat4=function(t,a){var n=a[0],r=a[1],u=a[2],o=a[3],e=a[4],i=a[5],s=a[6],c=a[7],M=a[8],f=a[9],h=a[10],b=a[11],l=a[12],m=a[13],v=a[14],E=a[15],P=n*i-r*e,S=n*s-u*e,A=n*c-o*e,d=r*s-u*i,x=r*c-o*i,I=u*c-o*s,L=M*m-f*l,N=M*v-h*l,O=M*E-b*l,R=f*v-h*m,p=f*E-b*m,Y=h*E-b*v,y=P*Y-S*p+A*R+d*O-x*N+I*L;if(!y)return null;return y=1/y,t[0]=(i*Y-s*p+c*R)*y,t[1]=(s*O-e*Y-c*N)*y,t[2]=(e*p-i*O+c*L)*y,t[3]=(u*p-r*Y-o*R)*y,t[4]=(n*Y-u*O+o*N)*y,t[5]=(r*O-n*p-o*L)*y,t[6]=(m*I-v*x+E*d)*y,t[7]=(v*A-l*I-E*S)*y,t[8]=(l*x-m*A+E*P)*y,t},n.projection=function(t,a,n){return t[0]=2/a,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},n.str=function(t){return\"mat3(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\", \"+t[4]+\", \"+t[5]+\", \"+t[6]+\", \"+t[7]+\", \"+t[8]+\")\"},n.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t[8]=a[8]+n[8],t},n.subtract=i,n.multiplyScalar=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t[8]=a[8]*n,t},n.multiplyScalarAndAdd=function(t,a,n,r){return t[0]=a[0]+n[0]*r,t[1]=a[1]+n[1]*r,t[2]=a[2]+n[2]*r,t[3]=a[3]+n[3]*r,t[4]=a[4]+n[4]*r,t[5]=a[5]+n[5]*r,t[6]=a[6]+n[6]*r,t[7]=a[7]+n[7]*r,t[8]=a[8]+n[8]*r,t},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]&&t[8]===a[8]},n.equals=function(t,a){var n=t[0],r=t[1],u=t[2],e=t[3],i=t[4],s=t[5],c=t[6],M=t[7],f=t[8],h=a[0],b=a[1],l=a[2],m=a[3],v=a[4],E=a[5],P=a[6],S=a[7],A=a[8];return Math.abs(n-h)<=o.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(r-b)<=o.EPSILON*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(u-l)<=o.EPSILON*Math.max(1,Math.abs(u),Math.abs(l))&&Math.abs(e-m)<=o.EPSILON*Math.max(1,Math.abs(e),Math.abs(m))&&Math.abs(i-v)<=o.EPSILON*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(s-E)<=o.EPSILON*Math.max(1,Math.abs(s),Math.abs(E))&&Math.abs(c-P)<=o.EPSILON*Math.max(1,Math.abs(c),Math.abs(P))&&Math.abs(M-S)<=o.EPSILON*Math.max(1,Math.abs(M),Math.abs(S))&&Math.abs(f-A)<=o.EPSILON*Math.max(1,Math.abs(f),Math.abs(A))};const o=t(\"tslib\").__importStar(t(\"7d825b979e\"));function e(t,a,n){var r=a[0],u=a[1],o=a[2],e=a[3],i=a[4],s=a[5],c=a[6],M=a[7],f=a[8],h=n[0],b=n[1],l=n[2],m=n[3],v=n[4],E=n[5],P=n[6],S=n[7],A=n[8];return t[0]=h*r+b*e+l*c,t[1]=h*u+b*i+l*M,t[2]=h*o+b*s+l*f,t[3]=m*r+v*e+E*c,t[4]=m*u+v*i+E*M,t[5]=m*o+v*s+E*f,t[6]=P*r+S*e+A*c,t[7]=P*u+S*i+A*M,t[8]=P*o+S*s+A*f,t}function i(t,a,n){return t[0]=a[0]-n[0],t[1]=a[1]-n[1],t[2]=a[2]-n[2],t[3]=a[3]-n[3],t[4]=a[4]-n[4],t[5]=a[5]-n[5],t[6]=a[6]-n[6],t[7]=a[7]-n[7],t[8]=a[8]-n[8],t}n.mul=e,n.sub=i}\n//# sourceMappingURL=mat3.min.js.map","min_map":"{\"version\":3,\"file\":\"mat3.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"create\",\"out\",\"glMatrix\",\"ARRAY_TYPE\",\"Float32Array\",\"fromMat4\",\"a\",\"clone\",\"copy\",\"fromValues\",\"m00\",\"m01\",\"m02\",\"m10\",\"m11\",\"m12\",\"m20\",\"m21\",\"m22\",\"set\",\"identity\",\"transpose\",\"a01\",\"a02\",\"a12\",\"invert\",\"a00\",\"a10\",\"a11\",\"a20\",\"a21\",\"a22\",\"b01\",\"b11\",\"b21\",\"det\",\"adjoint\",\"determinant\",\"multiply\",\"translate\",\"v\",\"x\",\"y\",\"rotate\",\"rad\",\"s\",\"Math\",\"sin\",\"c\",\"cos\",\"scale\",\"fromTranslation\",\"fromRotation\",\"fromScaling\",\"fromMat2d\",\"fromQuat\",\"q\",\"z\",\"w\",\"x2\",\"y2\",\"z2\",\"xx\",\"yx\",\"yy\",\"zx\",\"zy\",\"zz\",\"wx\",\"wy\",\"wz\",\"normalFromMat4\",\"a03\",\"a13\",\"a23\",\"a30\",\"a31\",\"a32\",\"a33\",\"b00\",\"b02\",\"b03\",\"b04\",\"b05\",\"b06\",\"b07\",\"b08\",\"b09\",\"b10\",\"projection\",\"width\",\"height\",\"str\",\"frob\",\"hypot\",\"add\",\"b\",\"subtract\",\"multiplyScalar\",\"multiplyScalarAndAdd\",\"exactEquals\",\"equals\",\"a0\",\"a1\",\"a2\",\"a3\",\"a4\",\"a5\",\"a6\",\"a7\",\"a8\",\"b0\",\"b1\",\"b2\",\"b3\",\"b4\",\"b5\",\"b6\",\"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,EAAShG,EAAKK,EAAG0F,GAUtB,OATA/F,EAAI,GAAKK,EAAE,GAAK0F,EAAE,GAClB/F,EAAI,GAAKK,EAAE,GAAK0F,EAAE,GAClB/F,EAAI,GAAKK,EAAE,GAAK0F,EAAE,GAClB/F,EAAI,GAAKK,EAAE,GAAK0F,EAAE,GAClB/F,EAAI,GAAKK,EAAE,GAAK0F,EAAE,GAClB/F,EAAI,GAAKK,EAAE,GAAK0F,EAAE,GAClB/F,EAAI,GAAKK,EAAE,GAAK0F,EAAE,GAClB/F,EAAI,GAAKK,EAAE,GAAK0F,EAAE,GAClB/F,EAAI,GAAKK,EAAE,GAAK0F,EAAE,GACX/F,CACX,CAoEAJ,EAAQkI,IAAMzF,EAKdzC,EAAQmI,IAAM/B,CAClB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/mat4.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"gl-matrix/esm/mat4.js","resolution":"ESM","id":"83bad9e639","hash":"83bad9e6391ffa4401c6e7b4d8375338bc7fcb8c9263256f267f5f050d4cd4c2","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sub = exports.mul = exports.ortho = exports.perspective = void 0;\nexports.create = create;\nexports.clone = clone;\nexports.copy = copy;\nexports.fromValues = fromValues;\nexports.set = set;\nexports.identity = identity;\nexports.transpose = transpose;\nexports.invert = invert;\nexports.adjoint = adjoint;\nexports.determinant = determinant;\nexports.multiply = multiply;\nexports.translate = translate;\nexports.scale = scale;\nexports.rotate = rotate;\nexports.rotateX = rotateX;\nexports.rotateY = rotateY;\nexports.rotateZ = rotateZ;\nexports.fromTranslation = fromTranslation;\nexports.fromScaling = fromScaling;\nexports.fromRotation = fromRotation;\nexports.fromXRotation = fromXRotation;\nexports.fromYRotation = fromYRotation;\nexports.fromZRotation = fromZRotation;\nexports.fromRotationTranslation = fromRotationTranslation;\nexports.fromQuat2 = fromQuat2;\nexports.getTranslation = getTranslation;\nexports.getScaling = getScaling;\nexports.getRotation = getRotation;\nexports.fromRotationTranslationScale = fromRotationTranslationScale;\nexports.fromRotationTranslationScaleOrigin = fromRotationTranslationScaleOrigin;\nexports.fromQuat = fromQuat;\nexports.frustum = frustum;\nexports.perspectiveNO = perspectiveNO;\nexports.perspectiveZO = perspectiveZO;\nexports.perspectiveFromFieldOfView = perspectiveFromFieldOfView;\nexports.orthoNO = orthoNO;\nexports.orthoZO = orthoZO;\nexports.lookAt = lookAt;\nexports.targetTo = targetTo;\nexports.str = str;\nexports.frob = frob;\nexports.add = add;\nexports.subtract = subtract;\nexports.multiplyScalar = multiplyScalar;\nexports.multiplyScalarAndAdd = multiplyScalarAndAdd;\nexports.exactEquals = exactEquals;\nexports.equals = equals;\nconst tslib_1 = require(\"tslib\");\nconst glMatrix = tslib_1.__importStar(require(\"./common.js\"));\n/**\n * 4x4 Matrix<br>Format: column-major, when typed out it looks like row-major<br>The matrices are being post multiplied.\n * @module mat4\n */\n/**\n * Creates a new identity mat4\n *\n * @returns {mat4} a new 4x4 matrix\n */\nfunction create() {\n    var out = new glMatrix.ARRAY_TYPE(16);\n    if (glMatrix.ARRAY_TYPE != Float32Array) {\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 0;\n        out[4] = 0;\n        out[6] = 0;\n        out[7] = 0;\n        out[8] = 0;\n        out[9] = 0;\n        out[11] = 0;\n        out[12] = 0;\n        out[13] = 0;\n        out[14] = 0;\n    }\n    out[0] = 1;\n    out[5] = 1;\n    out[10] = 1;\n    out[15] = 1;\n    return out;\n}\n/**\n * Creates a new mat4 initialized with values from an existing matrix\n *\n * @param {ReadonlyMat4} a matrix to clone\n * @returns {mat4} a new 4x4 matrix\n */\nfunction clone(a) {\n    var out = new glMatrix.ARRAY_TYPE(16);\n    out[0] = a[0];\n    out[1] = a[1];\n    out[2] = a[2];\n    out[3] = a[3];\n    out[4] = a[4];\n    out[5] = a[5];\n    out[6] = a[6];\n    out[7] = a[7];\n    out[8] = a[8];\n    out[9] = a[9];\n    out[10] = a[10];\n    out[11] = a[11];\n    out[12] = a[12];\n    out[13] = a[13];\n    out[14] = a[14];\n    out[15] = a[15];\n    return out;\n}\n/**\n * Copy the values from one mat4 to another\n *\n * @param {mat4} out the receiving matrix\n * @param {ReadonlyMat4} a the source matrix\n * @returns {mat4} out\n */\nfunction copy(out, a) {\n    out[0] = a[0];\n    out[1] = a[1];\n    out[2] = a[2];\n    out[3] = a[3];\n    out[4] = a[4];\n    out[5] = a[5];\n    out[6] = a[6];\n    out[7] = a[7];\n    out[8] = a[8];\n    out[9] = a[9];\n    out[10] = a[10];\n    out[11] = a[11];\n    out[12] = a[12];\n    out[13] = a[13];\n    out[14] = a[14];\n    out[15] = a[15];\n    return out;\n}\n/**\n * Create a new mat4 with the given values\n *\n * @param {Number} m00 Component in column 0, row 0 position (index 0)\n * @param {Number} m01 Component in column 0, row 1 position (index 1)\n * @param {Number} m02 Component in column 0, row 2 position (index 2)\n * @param {Number} m03 Component in column 0, row 3 position (index 3)\n * @param {Number} m10 Component in column 1, row 0 position (index 4)\n * @param {Number} m11 Component in column 1, row 1 position (index 5)\n * @param {Number} m12 Component in column 1, row 2 position (index 6)\n * @param {Number} m13 Component in column 1, row 3 position (index 7)\n * @param {Number} m20 Component in column 2, row 0 position (index 8)\n * @param {Number} m21 Component in column 2, row 1 position (index 9)\n * @param {Number} m22 Component in column 2, row 2 position (index 10)\n * @param {Number} m23 Component in column 2, row 3 position (index 11)\n * @param {Number} m30 Component in column 3, row 0 position (index 12)\n * @param {Number} m31 Component in column 3, row 1 position (index 13)\n * @param {Number} m32 Component in column 3, row 2 position (index 14)\n * @param {Number} m33 Component in column 3, row 3 position (index 15)\n * @returns {mat4} A new mat4\n */\nfunction fromValues(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) {\n    var out = new glMatrix.ARRAY_TYPE(16);\n    out[0] = m00;\n    out[1] = m01;\n    out[2] = m02;\n    out[3] = m03;\n    out[4] = m10;\n    out[5] = m11;\n    out[6] = m12;\n    out[7] = m13;\n    out[8] = m20;\n    out[9] = m21;\n    out[10] = m22;\n    out[11] = m23;\n    out[12] = m30;\n    out[13] = m31;\n    out[14] = m32;\n    out[15] = m33;\n    return out;\n}\n/**\n * Set the components of a mat4 to the given values\n *\n * @param {mat4} out the receiving matrix\n * @param {Number} m00 Component in column 0, row 0 position (index 0)\n * @param {Number} m01 Component in column 0, row 1 position (index 1)\n * @param {Number} m02 Component in column 0, row 2 position (index 2)\n * @param {Number} m03 Component in column 0, row 3 position (index 3)\n * @param {Number} m10 Component in column 1, row 0 position (index 4)\n * @param {Number} m11 Component in column 1, row 1 position (index 5)\n * @param {Number} m12 Component in column 1, row 2 position (index 6)\n * @param {Number} m13 Component in column 1, row 3 position (index 7)\n * @param {Number} m20 Component in column 2, row 0 position (index 8)\n * @param {Number} m21 Component in column 2, row 1 position (index 9)\n * @param {Number} m22 Component in column 2, row 2 position (index 10)\n * @param {Number} m23 Component in column 2, row 3 position (index 11)\n * @param {Number} m30 Component in column 3, row 0 position (index 12)\n * @param {Number} m31 Component in column 3, row 1 position (index 13)\n * @param {Number} m32 Component in column 3, row 2 position (index 14)\n * @param {Number} m33 Component in column 3, row 3 position (index 15)\n * @returns {mat4} out\n */\nfunction set(out, m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) {\n    out[0] = m00;\n    out[1] = m01;\n    out[2] = m02;\n    out[3] = m03;\n    out[4] = m10;\n    out[5] = m11;\n    out[6] = m12;\n    out[7] = m13;\n    out[8] = m20;\n    out[9] = m21;\n    out[10] = m22;\n    out[11] = m23;\n    out[12] = m30;\n    out[13] = m31;\n    out[14] = m32;\n    out[15] = m33;\n    return out;\n}\n/**\n * Set a mat4 to the identity matrix\n *\n * @param {mat4} out the receiving matrix\n * @returns {mat4} out\n */\nfunction identity(out) {\n    out[0] = 1;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 0;\n    out[4] = 0;\n    out[5] = 1;\n    out[6] = 0;\n    out[7] = 0;\n    out[8] = 0;\n    out[9] = 0;\n    out[10] = 1;\n    out[11] = 0;\n    out[12] = 0;\n    out[13] = 0;\n    out[14] = 0;\n    out[15] = 1;\n    return out;\n}\n/**\n * Transpose the values of a mat4\n *\n * @param {mat4} out the receiving matrix\n * @param {ReadonlyMat4} a the source matrix\n * @returns {mat4} out\n */\nfunction transpose(out, a) {\n    // If we are transposing ourselves we can skip a few steps but have to cache some values\n    if (out === a) {\n        var a01 = a[1], a02 = a[2], a03 = a[3];\n        var a12 = a[6], a13 = a[7];\n        var a23 = a[11];\n        out[1] = a[4];\n        out[2] = a[8];\n        out[3] = a[12];\n        out[4] = a01;\n        out[6] = a[9];\n        out[7] = a[13];\n        out[8] = a02;\n        out[9] = a12;\n        out[11] = a[14];\n        out[12] = a03;\n        out[13] = a13;\n        out[14] = a23;\n    }\n    else {\n        out[0] = a[0];\n        out[1] = a[4];\n        out[2] = a[8];\n        out[3] = a[12];\n        out[4] = a[1];\n        out[5] = a[5];\n        out[6] = a[9];\n        out[7] = a[13];\n        out[8] = a[2];\n        out[9] = a[6];\n        out[10] = a[10];\n        out[11] = a[14];\n        out[12] = a[3];\n        out[13] = a[7];\n        out[14] = a[11];\n        out[15] = a[15];\n    }\n    return out;\n}\n/**\n * Inverts a mat4\n *\n * @param {mat4} out the receiving matrix\n * @param {ReadonlyMat4} a the source matrix\n * @returns {mat4} out\n */\nfunction invert(out, a) {\n    var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3];\n    var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7];\n    var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11];\n    var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];\n    var b00 = a00 * a11 - a01 * a10;\n    var b01 = a00 * a12 - a02 * a10;\n    var b02 = a00 * a13 - a03 * a10;\n    var b03 = a01 * a12 - a02 * a11;\n    var b04 = a01 * a13 - a03 * a11;\n    var b05 = a02 * a13 - a03 * a12;\n    var b06 = a20 * a31 - a21 * a30;\n    var b07 = a20 * a32 - a22 * a30;\n    var b08 = a20 * a33 - a23 * a30;\n    var b09 = a21 * a32 - a22 * a31;\n    var b10 = a21 * a33 - a23 * a31;\n    var b11 = a22 * a33 - a23 * a32; // Calculate the determinant\n    var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\n    if (!det) {\n        return null;\n    }\n    det = 1.0 / det;\n    out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det;\n    out[1] = (a02 * b10 - a01 * b11 - a03 * b09) * det;\n    out[2] = (a31 * b05 - a32 * b04 + a33 * b03) * det;\n    out[3] = (a22 * b04 - a21 * b05 - a23 * b03) * det;\n    out[4] = (a12 * b08 - a10 * b11 - a13 * b07) * det;\n    out[5] = (a00 * b11 - a02 * b08 + a03 * b07) * det;\n    out[6] = (a32 * b02 - a30 * b05 - a33 * b01) * det;\n    out[7] = (a20 * b05 - a22 * b02 + a23 * b01) * det;\n    out[8] = (a10 * b10 - a11 * b08 + a13 * b06) * det;\n    out[9] = (a01 * b08 - a00 * b10 - a03 * b06) * det;\n    out[10] = (a30 * b04 - a31 * b02 + a33 * b00) * det;\n    out[11] = (a21 * b02 - a20 * b04 - a23 * b00) * det;\n    out[12] = (a11 * b07 - a10 * b09 - a12 * b06) * det;\n    out[13] = (a00 * b09 - a01 * b07 + a02 * b06) * det;\n    out[14] = (a31 * b01 - a30 * b03 - a32 * b00) * det;\n    out[15] = (a20 * b03 - a21 * b01 + a22 * b00) * det;\n    return out;\n}\n/**\n * Calculates the adjugate of a mat4\n *\n * @param {mat4} out the receiving matrix\n * @param {ReadonlyMat4} a the source matrix\n * @returns {mat4} out\n */\nfunction adjoint(out, a) {\n    var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3];\n    var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7];\n    var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11];\n    var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];\n    out[0] = a11 * (a22 * a33 - a23 * a32) - a21 * (a12 * a33 - a13 * a32) + a31 * (a12 * a23 - a13 * a22);\n    out[1] = -(a01 * (a22 * a33 - a23 * a32) - a21 * (a02 * a33 - a03 * a32) + a31 * (a02 * a23 - a03 * a22));\n    out[2] = a01 * (a12 * a33 - a13 * a32) - a11 * (a02 * a33 - a03 * a32) + a31 * (a02 * a13 - a03 * a12);\n    out[3] = -(a01 * (a12 * a23 - a13 * a22) - a11 * (a02 * a23 - a03 * a22) + a21 * (a02 * a13 - a03 * a12));\n    out[4] = -(a10 * (a22 * a33 - a23 * a32) - a20 * (a12 * a33 - a13 * a32) + a30 * (a12 * a23 - a13 * a22));\n    out[5] = a00 * (a22 * a33 - a23 * a32) - a20 * (a02 * a33 - a03 * a32) + a30 * (a02 * a23 - a03 * a22);\n    out[6] = -(a00 * (a12 * a33 - a13 * a32) - a10 * (a02 * a33 - a03 * a32) + a30 * (a02 * a13 - a03 * a12));\n    out[7] = a00 * (a12 * a23 - a13 * a22) - a10 * (a02 * a23 - a03 * a22) + a20 * (a02 * a13 - a03 * a12);\n    out[8] = a10 * (a21 * a33 - a23 * a31) - a20 * (a11 * a33 - a13 * a31) + a30 * (a11 * a23 - a13 * a21);\n    out[9] = -(a00 * (a21 * a33 - a23 * a31) - a20 * (a01 * a33 - a03 * a31) + a30 * (a01 * a23 - a03 * a21));\n    out[10] = a00 * (a11 * a33 - a13 * a31) - a10 * (a01 * a33 - a03 * a31) + a30 * (a01 * a13 - a03 * a11);\n    out[11] = -(a00 * (a11 * a23 - a13 * a21) - a10 * (a01 * a23 - a03 * a21) + a20 * (a01 * a13 - a03 * a11));\n    out[12] = -(a10 * (a21 * a32 - a22 * a31) - a20 * (a11 * a32 - a12 * a31) + a30 * (a11 * a22 - a12 * a21));\n    out[13] = a00 * (a21 * a32 - a22 * a31) - a20 * (a01 * a32 - a02 * a31) + a30 * (a01 * a22 - a02 * a21);\n    out[14] = -(a00 * (a11 * a32 - a12 * a31) - a10 * (a01 * a32 - a02 * a31) + a30 * (a01 * a12 - a02 * a11));\n    out[15] = a00 * (a11 * a22 - a12 * a21) - a10 * (a01 * a22 - a02 * a21) + a20 * (a01 * a12 - a02 * a11);\n    return out;\n}\n/**\n * Calculates the determinant of a mat4\n *\n * @param {ReadonlyMat4} a the source matrix\n * @returns {Number} determinant of a\n */\nfunction determinant(a) {\n    var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3];\n    var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7];\n    var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11];\n    var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];\n    var b00 = a00 * a11 - a01 * a10;\n    var b01 = a00 * a12 - a02 * a10;\n    var b02 = a00 * a13 - a03 * a10;\n    var b03 = a01 * a12 - a02 * a11;\n    var b04 = a01 * a13 - a03 * a11;\n    var b05 = a02 * a13 - a03 * a12;\n    var b06 = a20 * a31 - a21 * a30;\n    var b07 = a20 * a32 - a22 * a30;\n    var b08 = a20 * a33 - a23 * a30;\n    var b09 = a21 * a32 - a22 * a31;\n    var b10 = a21 * a33 - a23 * a31;\n    var b11 = a22 * a33 - a23 * a32; // Calculate the determinant\n    return b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\n}\n/**\n * Multiplies two mat4s\n *\n * @param {mat4} out the receiving matrix\n * @param {ReadonlyMat4} a the first operand\n * @param {ReadonlyMat4} b the second operand\n * @returns {mat4} out\n */\nfunction multiply(out, a, b) {\n    var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3];\n    var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7];\n    var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11];\n    var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15]; // Cache only the current line of the second matrix\n    var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3];\n    out[0] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n    out[1] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n    out[2] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n    out[3] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n    b0 = b[4];\n    b1 = b[5];\n    b2 = b[6];\n    b3 = b[7];\n    out[4] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n    out[5] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n    out[6] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n    out[7] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n    b0 = b[8];\n    b1 = b[9];\n    b2 = b[10];\n    b3 = b[11];\n    out[8] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n    out[9] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n    out[10] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n    out[11] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n    b0 = b[12];\n    b1 = b[13];\n    b2 = b[14];\n    b3 = b[15];\n    out[12] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n    out[13] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n    out[14] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n    out[15] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n    return out;\n}\n/**\n * Translate a mat4 by the given vector\n *\n * @param {mat4} out the receiving matrix\n * @param {ReadonlyMat4} a the matrix to translate\n * @param {ReadonlyVec3} v vector to translate by\n * @returns {mat4} out\n */\nfunction translate(out, a, v) {\n    var x = v[0], y = v[1], z = v[2];\n    var a00, a01, a02, a03;\n    var a10, a11, a12, a13;\n    var a20, a21, a22, a23;\n    if (a === out) {\n        out[12] = a[0] * x + a[4] * y + a[8] * z + a[12];\n        out[13] = a[1] * x + a[5] * y + a[9] * z + a[13];\n        out[14] = a[2] * x + a[6] * y + a[10] * z + a[14];\n        out[15] = a[3] * x + a[7] * y + a[11] * z + a[15];\n    }\n    else {\n        a00 = a[0];\n        a01 = a[1];\n        a02 = a[2];\n        a03 = a[3];\n        a10 = a[4];\n        a11 = a[5];\n        a12 = a[6];\n        a13 = a[7];\n        a20 = a[8];\n        a21 = a[9];\n        a22 = a[10];\n        a23 = a[11];\n        out[0] = a00;\n        out[1] = a01;\n        out[2] = a02;\n        out[3] = a03;\n        out[4] = a10;\n        out[5] = a11;\n        out[6] = a12;\n        out[7] = a13;\n        out[8] = a20;\n        out[9] = a21;\n        out[10] = a22;\n        out[11] = a23;\n        out[12] = a00 * x + a10 * y + a20 * z + a[12];\n        out[13] = a01 * x + a11 * y + a21 * z + a[13];\n        out[14] = a02 * x + a12 * y + a22 * z + a[14];\n        out[15] = a03 * x + a13 * y + a23 * z + a[15];\n    }\n    return out;\n}\n/**\n * Scales the mat4 by the dimensions in the given vec3 not using vectorization\n *\n * @param {mat4} out the receiving matrix\n * @param {ReadonlyMat4} a the matrix to scale\n * @param {ReadonlyVec3} v the vec3 to scale the matrix by\n * @returns {mat4} out\n **/\nfunction scale(out, a, v) {\n    var x = v[0], y = v[1], z = v[2];\n    out[0] = a[0] * x;\n    out[1] = a[1] * x;\n    out[2] = a[2] * x;\n    out[3] = a[3] * x;\n    out[4] = a[4] * y;\n    out[5] = a[5] * y;\n    out[6] = a[6] * y;\n    out[7] = a[7] * y;\n    out[8] = a[8] * z;\n    out[9] = a[9] * z;\n    out[10] = a[10] * z;\n    out[11] = a[11] * z;\n    out[12] = a[12];\n    out[13] = a[13];\n    out[14] = a[14];\n    out[15] = a[15];\n    return out;\n}\n/**\n * Rotates a mat4 by the given angle around the given axis\n *\n * @param {mat4} out the receiving matrix\n * @param {ReadonlyMat4} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @param {ReadonlyVec3} axis the axis to rotate around\n * @returns {mat4} out\n */\nfunction rotate(out, a, rad, axis) {\n    var x = axis[0], y = axis[1], z = axis[2];\n    var len = Math.hypot(x, y, z);\n    var s, c, t;\n    var a00, a01, a02, a03;\n    var a10, a11, a12, a13;\n    var a20, a21, a22, a23;\n    var b00, b01, b02;\n    var b10, b11, b12;\n    var b20, b21, b22;\n    if (len < glMatrix.EPSILON) {\n        return null;\n    }\n    len = 1 / len;\n    x *= len;\n    y *= len;\n    z *= len;\n    s = Math.sin(rad);\n    c = Math.cos(rad);\n    t = 1 - c;\n    a00 = a[0];\n    a01 = a[1];\n    a02 = a[2];\n    a03 = a[3];\n    a10 = a[4];\n    a11 = a[5];\n    a12 = a[6];\n    a13 = a[7];\n    a20 = a[8];\n    a21 = a[9];\n    a22 = a[10];\n    a23 = a[11]; // Construct the elements of the rotation matrix\n    b00 = x * x * t + c;\n    b01 = y * x * t + z * s;\n    b02 = z * x * t - y * s;\n    b10 = x * y * t - z * s;\n    b11 = y * y * t + c;\n    b12 = z * y * t + x * s;\n    b20 = x * z * t + y * s;\n    b21 = y * z * t - x * s;\n    b22 = z * z * t + c; // Perform rotation-specific matrix multiplication\n    out[0] = a00 * b00 + a10 * b01 + a20 * b02;\n    out[1] = a01 * b00 + a11 * b01 + a21 * b02;\n    out[2] = a02 * b00 + a12 * b01 + a22 * b02;\n    out[3] = a03 * b00 + a13 * b01 + a23 * b02;\n    out[4] = a00 * b10 + a10 * b11 + a20 * b12;\n    out[5] = a01 * b10 + a11 * b11 + a21 * b12;\n    out[6] = a02 * b10 + a12 * b11 + a22 * b12;\n    out[7] = a03 * b10 + a13 * b11 + a23 * b12;\n    out[8] = a00 * b20 + a10 * b21 + a20 * b22;\n    out[9] = a01 * b20 + a11 * b21 + a21 * b22;\n    out[10] = a02 * b20 + a12 * b21 + a22 * b22;\n    out[11] = a03 * b20 + a13 * b21 + a23 * b22;\n    if (a !== out) {\n        // If the source and destination differ, copy the unchanged last row\n        out[12] = a[12];\n        out[13] = a[13];\n        out[14] = a[14];\n        out[15] = a[15];\n    }\n    return out;\n}\n/**\n * Rotates a matrix by the given angle around the X axis\n *\n * @param {mat4} out the receiving matrix\n * @param {ReadonlyMat4} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction rotateX(out, a, rad) {\n    var s = Math.sin(rad);\n    var c = Math.cos(rad);\n    var a10 = a[4];\n    var a11 = a[5];\n    var a12 = a[6];\n    var a13 = a[7];\n    var a20 = a[8];\n    var a21 = a[9];\n    var a22 = a[10];\n    var a23 = a[11];\n    if (a !== out) {\n        // If the source and destination differ, copy the unchanged rows\n        out[0] = a[0];\n        out[1] = a[1];\n        out[2] = a[2];\n        out[3] = a[3];\n        out[12] = a[12];\n        out[13] = a[13];\n        out[14] = a[14];\n        out[15] = a[15];\n    } // Perform axis-specific matrix multiplication\n    out[4] = a10 * c + a20 * s;\n    out[5] = a11 * c + a21 * s;\n    out[6] = a12 * c + a22 * s;\n    out[7] = a13 * c + a23 * s;\n    out[8] = a20 * c - a10 * s;\n    out[9] = a21 * c - a11 * s;\n    out[10] = a22 * c - a12 * s;\n    out[11] = a23 * c - a13 * s;\n    return out;\n}\n/**\n * Rotates a matrix by the given angle around the Y axis\n *\n * @param {mat4} out the receiving matrix\n * @param {ReadonlyMat4} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction rotateY(out, a, rad) {\n    var s = Math.sin(rad);\n    var c = Math.cos(rad);\n    var a00 = a[0];\n    var a01 = a[1];\n    var a02 = a[2];\n    var a03 = a[3];\n    var a20 = a[8];\n    var a21 = a[9];\n    var a22 = a[10];\n    var a23 = a[11];\n    if (a !== out) {\n        // If the source and destination differ, copy the unchanged rows\n        out[4] = a[4];\n        out[5] = a[5];\n        out[6] = a[6];\n        out[7] = a[7];\n        out[12] = a[12];\n        out[13] = a[13];\n        out[14] = a[14];\n        out[15] = a[15];\n    } // Perform axis-specific matrix multiplication\n    out[0] = a00 * c - a20 * s;\n    out[1] = a01 * c - a21 * s;\n    out[2] = a02 * c - a22 * s;\n    out[3] = a03 * c - a23 * s;\n    out[8] = a00 * s + a20 * c;\n    out[9] = a01 * s + a21 * c;\n    out[10] = a02 * s + a22 * c;\n    out[11] = a03 * s + a23 * c;\n    return out;\n}\n/**\n * Rotates a matrix by the given angle around the Z axis\n *\n * @param {mat4} out the receiving matrix\n * @param {ReadonlyMat4} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction rotateZ(out, a, rad) {\n    var s = Math.sin(rad);\n    var c = Math.cos(rad);\n    var a00 = a[0];\n    var a01 = a[1];\n    var a02 = a[2];\n    var a03 = a[3];\n    var a10 = a[4];\n    var a11 = a[5];\n    var a12 = a[6];\n    var a13 = a[7];\n    if (a !== out) {\n        // If the source and destination differ, copy the unchanged last row\n        out[8] = a[8];\n        out[9] = a[9];\n        out[10] = a[10];\n        out[11] = a[11];\n        out[12] = a[12];\n        out[13] = a[13];\n        out[14] = a[14];\n        out[15] = a[15];\n    } // Perform axis-specific matrix multiplication\n    out[0] = a00 * c + a10 * s;\n    out[1] = a01 * c + a11 * s;\n    out[2] = a02 * c + a12 * s;\n    out[3] = a03 * c + a13 * s;\n    out[4] = a10 * c - a00 * s;\n    out[5] = a11 * c - a01 * s;\n    out[6] = a12 * c - a02 * s;\n    out[7] = a13 * c - a03 * s;\n    return out;\n}\n/**\n * Creates a matrix from a vector translation\n * This is equivalent to (but much faster than):\n *\n *     mat4.identity(dest);\n *     mat4.translate(dest, dest, vec);\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {ReadonlyVec3} v Translation vector\n * @returns {mat4} out\n */\nfunction fromTranslation(out, v) {\n    out[0] = 1;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 0;\n    out[4] = 0;\n    out[5] = 1;\n    out[6] = 0;\n    out[7] = 0;\n    out[8] = 0;\n    out[9] = 0;\n    out[10] = 1;\n    out[11] = 0;\n    out[12] = v[0];\n    out[13] = v[1];\n    out[14] = v[2];\n    out[15] = 1;\n    return out;\n}\n/**\n * Creates a matrix from a vector scaling\n * This is equivalent to (but much faster than):\n *\n *     mat4.identity(dest);\n *     mat4.scale(dest, dest, vec);\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {ReadonlyVec3} v Scaling vector\n * @returns {mat4} out\n */\nfunction fromScaling(out, v) {\n    out[0] = v[0];\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 0;\n    out[4] = 0;\n    out[5] = v[1];\n    out[6] = 0;\n    out[7] = 0;\n    out[8] = 0;\n    out[9] = 0;\n    out[10] = v[2];\n    out[11] = 0;\n    out[12] = 0;\n    out[13] = 0;\n    out[14] = 0;\n    out[15] = 1;\n    return out;\n}\n/**\n * Creates a matrix from a given angle around a given axis\n * This is equivalent to (but much faster than):\n *\n *     mat4.identity(dest);\n *     mat4.rotate(dest, dest, rad, axis);\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {Number} rad the angle to rotate the matrix by\n * @param {ReadonlyVec3} axis the axis to rotate around\n * @returns {mat4} out\n */\nfunction fromRotation(out, rad, axis) {\n    var x = axis[0], y = axis[1], z = axis[2];\n    var len = Math.hypot(x, y, z);\n    var s, c, t;\n    if (len < glMatrix.EPSILON) {\n        return null;\n    }\n    len = 1 / len;\n    x *= len;\n    y *= len;\n    z *= len;\n    s = Math.sin(rad);\n    c = Math.cos(rad);\n    t = 1 - c; // Perform rotation-specific matrix multiplication\n    out[0] = x * x * t + c;\n    out[1] = y * x * t + z * s;\n    out[2] = z * x * t - y * s;\n    out[3] = 0;\n    out[4] = x * y * t - z * s;\n    out[5] = y * y * t + c;\n    out[6] = z * y * t + x * s;\n    out[7] = 0;\n    out[8] = x * z * t + y * s;\n    out[9] = y * z * t - x * s;\n    out[10] = z * z * t + c;\n    out[11] = 0;\n    out[12] = 0;\n    out[13] = 0;\n    out[14] = 0;\n    out[15] = 1;\n    return out;\n}\n/**\n * Creates a matrix from the given angle around the X axis\n * This is equivalent to (but much faster than):\n *\n *     mat4.identity(dest);\n *     mat4.rotateX(dest, dest, rad);\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction fromXRotation(out, rad) {\n    var s = Math.sin(rad);\n    var c = Math.cos(rad); // Perform axis-specific matrix multiplication\n    out[0] = 1;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 0;\n    out[4] = 0;\n    out[5] = c;\n    out[6] = s;\n    out[7] = 0;\n    out[8] = 0;\n    out[9] = -s;\n    out[10] = c;\n    out[11] = 0;\n    out[12] = 0;\n    out[13] = 0;\n    out[14] = 0;\n    out[15] = 1;\n    return out;\n}\n/**\n * Creates a matrix from the given angle around the Y axis\n * This is equivalent to (but much faster than):\n *\n *     mat4.identity(dest);\n *     mat4.rotateY(dest, dest, rad);\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction fromYRotation(out, rad) {\n    var s = Math.sin(rad);\n    var c = Math.cos(rad); // Perform axis-specific matrix multiplication\n    out[0] = c;\n    out[1] = 0;\n    out[2] = -s;\n    out[3] = 0;\n    out[4] = 0;\n    out[5] = 1;\n    out[6] = 0;\n    out[7] = 0;\n    out[8] = s;\n    out[9] = 0;\n    out[10] = c;\n    out[11] = 0;\n    out[12] = 0;\n    out[13] = 0;\n    out[14] = 0;\n    out[15] = 1;\n    return out;\n}\n/**\n * Creates a matrix from the given angle around the Z axis\n * This is equivalent to (but much faster than):\n *\n *     mat4.identity(dest);\n *     mat4.rotateZ(dest, dest, rad);\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction fromZRotation(out, rad) {\n    var s = Math.sin(rad);\n    var c = Math.cos(rad); // Perform axis-specific matrix multiplication\n    out[0] = c;\n    out[1] = s;\n    out[2] = 0;\n    out[3] = 0;\n    out[4] = -s;\n    out[5] = c;\n    out[6] = 0;\n    out[7] = 0;\n    out[8] = 0;\n    out[9] = 0;\n    out[10] = 1;\n    out[11] = 0;\n    out[12] = 0;\n    out[13] = 0;\n    out[14] = 0;\n    out[15] = 1;\n    return out;\n}\n/**\n * Creates a matrix from a quaternion rotation and vector translation\n * This is equivalent to (but much faster than):\n *\n *     mat4.identity(dest);\n *     mat4.translate(dest, vec);\n *     let quatMat = mat4.create();\n *     quat4.toMat4(quat, quatMat);\n *     mat4.multiply(dest, quatMat);\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {quat4} q Rotation quaternion\n * @param {ReadonlyVec3} v Translation vector\n * @returns {mat4} out\n */\nfunction fromRotationTranslation(out, q, v) {\n    // Quaternion math\n    var x = q[0], y = q[1], z = q[2], w = q[3];\n    var x2 = x + x;\n    var y2 = y + y;\n    var z2 = z + z;\n    var xx = x * x2;\n    var xy = x * y2;\n    var xz = x * z2;\n    var yy = y * y2;\n    var yz = y * z2;\n    var zz = z * z2;\n    var wx = w * x2;\n    var wy = w * y2;\n    var wz = w * z2;\n    out[0] = 1 - (yy + zz);\n    out[1] = xy + wz;\n    out[2] = xz - wy;\n    out[3] = 0;\n    out[4] = xy - wz;\n    out[5] = 1 - (xx + zz);\n    out[6] = yz + wx;\n    out[7] = 0;\n    out[8] = xz + wy;\n    out[9] = yz - wx;\n    out[10] = 1 - (xx + yy);\n    out[11] = 0;\n    out[12] = v[0];\n    out[13] = v[1];\n    out[14] = v[2];\n    out[15] = 1;\n    return out;\n}\n/**\n * Creates a new mat4 from a dual quat.\n *\n * @param {mat4} out Matrix\n * @param {ReadonlyQuat2} a Dual Quaternion\n * @returns {mat4} mat4 receiving operation result\n */\nfunction fromQuat2(out, a) {\n    var translation = new glMatrix.ARRAY_TYPE(3);\n    var bx = -a[0], by = -a[1], bz = -a[2], bw = a[3], ax = a[4], ay = a[5], az = a[6], aw = a[7];\n    var magnitude = bx * bx + by * by + bz * bz + bw * bw; //Only scale if it makes sense\n    if (magnitude > 0) {\n        translation[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2 / magnitude;\n        translation[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2 / magnitude;\n        translation[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2 / magnitude;\n    }\n    else {\n        translation[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2;\n        translation[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2;\n        translation[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2;\n    }\n    fromRotationTranslation(out, a, translation);\n    return out;\n}\n/**\n * Returns the translation vector component of a transformation\n *  matrix. If a matrix is built with fromRotationTranslation,\n *  the returned vector will be the same as the translation vector\n *  originally supplied.\n * @param  {vec3} out Vector to receive translation component\n * @param  {ReadonlyMat4} mat Matrix to be decomposed (input)\n * @return {vec3} out\n */\nfunction getTranslation(out, mat) {\n    out[0] = mat[12];\n    out[1] = mat[13];\n    out[2] = mat[14];\n    return out;\n}\n/**\n * Returns the scaling factor component of a transformation\n *  matrix. If a matrix is built with fromRotationTranslationScale\n *  with a normalized Quaternion paramter, the returned vector will be\n *  the same as the scaling vector\n *  originally supplied.\n * @param  {vec3} out Vector to receive scaling factor component\n * @param  {ReadonlyMat4} mat Matrix to be decomposed (input)\n * @return {vec3} out\n */\nfunction getScaling(out, mat) {\n    var m11 = mat[0];\n    var m12 = mat[1];\n    var m13 = mat[2];\n    var m21 = mat[4];\n    var m22 = mat[5];\n    var m23 = mat[6];\n    var m31 = mat[8];\n    var m32 = mat[9];\n    var m33 = mat[10];\n    out[0] = Math.hypot(m11, m12, m13);\n    out[1] = Math.hypot(m21, m22, m23);\n    out[2] = Math.hypot(m31, m32, m33);\n    return out;\n}\n/**\n * Returns a quaternion representing the rotational component\n *  of a transformation matrix. If a matrix is built with\n *  fromRotationTranslation, the returned quaternion will be the\n *  same as the quaternion originally supplied.\n * @param {quat} out Quaternion to receive the rotation component\n * @param {ReadonlyMat4} mat Matrix to be decomposed (input)\n * @return {quat} out\n */\nfunction getRotation(out, mat) {\n    var scaling = new glMatrix.ARRAY_TYPE(3);\n    getScaling(scaling, mat);\n    var is1 = 1 / scaling[0];\n    var is2 = 1 / scaling[1];\n    var is3 = 1 / scaling[2];\n    var sm11 = mat[0] * is1;\n    var sm12 = mat[1] * is2;\n    var sm13 = mat[2] * is3;\n    var sm21 = mat[4] * is1;\n    var sm22 = mat[5] * is2;\n    var sm23 = mat[6] * is3;\n    var sm31 = mat[8] * is1;\n    var sm32 = mat[9] * is2;\n    var sm33 = mat[10] * is3;\n    var trace = sm11 + sm22 + sm33;\n    var S = 0;\n    if (trace > 0) {\n        S = Math.sqrt(trace + 1.0) * 2;\n        out[3] = 0.25 * S;\n        out[0] = (sm23 - sm32) / S;\n        out[1] = (sm31 - sm13) / S;\n        out[2] = (sm12 - sm21) / S;\n    }\n    else if (sm11 > sm22 && sm11 > sm33) {\n        S = Math.sqrt(1.0 + sm11 - sm22 - sm33) * 2;\n        out[3] = (sm23 - sm32) / S;\n        out[0] = 0.25 * S;\n        out[1] = (sm12 + sm21) / S;\n        out[2] = (sm31 + sm13) / S;\n    }\n    else if (sm22 > sm33) {\n        S = Math.sqrt(1.0 + sm22 - sm11 - sm33) * 2;\n        out[3] = (sm31 - sm13) / S;\n        out[0] = (sm12 + sm21) / S;\n        out[1] = 0.25 * S;\n        out[2] = (sm23 + sm32) / S;\n    }\n    else {\n        S = Math.sqrt(1.0 + sm33 - sm11 - sm22) * 2;\n        out[3] = (sm12 - sm21) / S;\n        out[0] = (sm31 + sm13) / S;\n        out[1] = (sm23 + sm32) / S;\n        out[2] = 0.25 * S;\n    }\n    return out;\n}\n/**\n * Creates a matrix from a quaternion rotation, vector translation and vector scale\n * This is equivalent to (but much faster than):\n *\n *     mat4.identity(dest);\n *     mat4.translate(dest, vec);\n *     let quatMat = mat4.create();\n *     quat4.toMat4(quat, quatMat);\n *     mat4.multiply(dest, quatMat);\n *     mat4.scale(dest, scale)\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {quat4} q Rotation quaternion\n * @param {ReadonlyVec3} v Translation vector\n * @param {ReadonlyVec3} s Scaling vector\n * @returns {mat4} out\n */\nfunction fromRotationTranslationScale(out, q, v, s) {\n    // Quaternion math\n    var x = q[0], y = q[1], z = q[2], w = q[3];\n    var x2 = x + x;\n    var y2 = y + y;\n    var z2 = z + z;\n    var xx = x * x2;\n    var xy = x * y2;\n    var xz = x * z2;\n    var yy = y * y2;\n    var yz = y * z2;\n    var zz = z * z2;\n    var wx = w * x2;\n    var wy = w * y2;\n    var wz = w * z2;\n    var sx = s[0];\n    var sy = s[1];\n    var sz = s[2];\n    out[0] = (1 - (yy + zz)) * sx;\n    out[1] = (xy + wz) * sx;\n    out[2] = (xz - wy) * sx;\n    out[3] = 0;\n    out[4] = (xy - wz) * sy;\n    out[5] = (1 - (xx + zz)) * sy;\n    out[6] = (yz + wx) * sy;\n    out[7] = 0;\n    out[8] = (xz + wy) * sz;\n    out[9] = (yz - wx) * sz;\n    out[10] = (1 - (xx + yy)) * sz;\n    out[11] = 0;\n    out[12] = v[0];\n    out[13] = v[1];\n    out[14] = v[2];\n    out[15] = 1;\n    return out;\n}\n/**\n * Creates a matrix from a quaternion rotation, vector translation and vector scale, rotating and scaling around the given origin\n * This is equivalent to (but much faster than):\n *\n *     mat4.identity(dest);\n *     mat4.translate(dest, vec);\n *     mat4.translate(dest, origin);\n *     let quatMat = mat4.create();\n *     quat4.toMat4(quat, quatMat);\n *     mat4.multiply(dest, quatMat);\n *     mat4.scale(dest, scale)\n *     mat4.translate(dest, negativeOrigin);\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {quat4} q Rotation quaternion\n * @param {ReadonlyVec3} v Translation vector\n * @param {ReadonlyVec3} s Scaling vector\n * @param {ReadonlyVec3} o The origin vector around which to scale and rotate\n * @returns {mat4} out\n */\nfunction fromRotationTranslationScaleOrigin(out, q, v, s, o) {\n    // Quaternion math\n    var x = q[0], y = q[1], z = q[2], w = q[3];\n    var x2 = x + x;\n    var y2 = y + y;\n    var z2 = z + z;\n    var xx = x * x2;\n    var xy = x * y2;\n    var xz = x * z2;\n    var yy = y * y2;\n    var yz = y * z2;\n    var zz = z * z2;\n    var wx = w * x2;\n    var wy = w * y2;\n    var wz = w * z2;\n    var sx = s[0];\n    var sy = s[1];\n    var sz = s[2];\n    var ox = o[0];\n    var oy = o[1];\n    var oz = o[2];\n    var out0 = (1 - (yy + zz)) * sx;\n    var out1 = (xy + wz) * sx;\n    var out2 = (xz - wy) * sx;\n    var out4 = (xy - wz) * sy;\n    var out5 = (1 - (xx + zz)) * sy;\n    var out6 = (yz + wx) * sy;\n    var out8 = (xz + wy) * sz;\n    var out9 = (yz - wx) * sz;\n    var out10 = (1 - (xx + yy)) * sz;\n    out[0] = out0;\n    out[1] = out1;\n    out[2] = out2;\n    out[3] = 0;\n    out[4] = out4;\n    out[5] = out5;\n    out[6] = out6;\n    out[7] = 0;\n    out[8] = out8;\n    out[9] = out9;\n    out[10] = out10;\n    out[11] = 0;\n    out[12] = v[0] + ox - (out0 * ox + out4 * oy + out8 * oz);\n    out[13] = v[1] + oy - (out1 * ox + out5 * oy + out9 * oz);\n    out[14] = v[2] + oz - (out2 * ox + out6 * oy + out10 * oz);\n    out[15] = 1;\n    return out;\n}\n/**\n * Calculates a 4x4 matrix from the given quaternion\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {ReadonlyQuat} q Quaternion to create matrix from\n *\n * @returns {mat4} out\n */\nfunction fromQuat(out, q) {\n    var x = q[0], y = q[1], z = q[2], w = q[3];\n    var x2 = x + x;\n    var y2 = y + y;\n    var z2 = z + z;\n    var xx = x * x2;\n    var yx = y * x2;\n    var yy = y * y2;\n    var zx = z * x2;\n    var zy = z * y2;\n    var zz = z * z2;\n    var wx = w * x2;\n    var wy = w * y2;\n    var wz = w * z2;\n    out[0] = 1 - yy - zz;\n    out[1] = yx + wz;\n    out[2] = zx - wy;\n    out[3] = 0;\n    out[4] = yx - wz;\n    out[5] = 1 - xx - zz;\n    out[6] = zy + wx;\n    out[7] = 0;\n    out[8] = zx + wy;\n    out[9] = zy - wx;\n    out[10] = 1 - xx - yy;\n    out[11] = 0;\n    out[12] = 0;\n    out[13] = 0;\n    out[14] = 0;\n    out[15] = 1;\n    return out;\n}\n/**\n * Generates a frustum matrix with the given bounds\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {Number} left Left bound of the frustum\n * @param {Number} right Right bound of the frustum\n * @param {Number} bottom Bottom bound of the frustum\n * @param {Number} top Top bound of the frustum\n * @param {Number} near Near bound of the frustum\n * @param {Number} far Far bound of the frustum\n * @returns {mat4} out\n */\nfunction frustum(out, left, right, bottom, top, near, far) {\n    var rl = 1 / (right - left);\n    var tb = 1 / (top - bottom);\n    var nf = 1 / (near - far);\n    out[0] = near * 2 * rl;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 0;\n    out[4] = 0;\n    out[5] = near * 2 * tb;\n    out[6] = 0;\n    out[7] = 0;\n    out[8] = (right + left) * rl;\n    out[9] = (top + bottom) * tb;\n    out[10] = (far + near) * nf;\n    out[11] = -1;\n    out[12] = 0;\n    out[13] = 0;\n    out[14] = far * near * 2 * nf;\n    out[15] = 0;\n    return out;\n}\n/**\n * Generates a perspective projection matrix with the given bounds.\n * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1],\n * which matches WebGL/OpenGL's clip volume.\n * Passing null/undefined/no value for far will generate infinite projection matrix.\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {number} fovy Vertical field of view in radians\n * @param {number} aspect Aspect ratio. typically viewport width/height\n * @param {number} near Near bound of the frustum\n * @param {number} far Far bound of the frustum, can be null or Infinity\n * @returns {mat4} out\n */\nfunction perspectiveNO(out, fovy, aspect, near, far) {\n    var f = 1.0 / Math.tan(fovy / 2), nf;\n    out[0] = f / aspect;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 0;\n    out[4] = 0;\n    out[5] = f;\n    out[6] = 0;\n    out[7] = 0;\n    out[8] = 0;\n    out[9] = 0;\n    out[11] = -1;\n    out[12] = 0;\n    out[13] = 0;\n    out[15] = 0;\n    if (far != null && far !== Infinity) {\n        nf = 1 / (near - far);\n        out[10] = (far + near) * nf;\n        out[14] = 2 * far * near * nf;\n    }\n    else {\n        out[10] = -1;\n        out[14] = -2 * near;\n    }\n    return out;\n}\n/**\n * Alias for {@link mat4.perspectiveNO}\n * @function\n */\nexports.perspective = perspectiveNO;\n/**\n * Generates a perspective projection matrix suitable for WebGPU with the given bounds.\n * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1],\n * which matches WebGPU/Vulkan/DirectX/Metal's clip volume.\n * Passing null/undefined/no value for far will generate infinite projection matrix.\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {number} fovy Vertical field of view in radians\n * @param {number} aspect Aspect ratio. typically viewport width/height\n * @param {number} near Near bound of the frustum\n * @param {number} far Far bound of the frustum, can be null or Infinity\n * @returns {mat4} out\n */\nfunction perspectiveZO(out, fovy, aspect, near, far) {\n    var f = 1.0 / Math.tan(fovy / 2), nf;\n    out[0] = f / aspect;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 0;\n    out[4] = 0;\n    out[5] = f;\n    out[6] = 0;\n    out[7] = 0;\n    out[8] = 0;\n    out[9] = 0;\n    out[11] = -1;\n    out[12] = 0;\n    out[13] = 0;\n    out[15] = 0;\n    if (far != null && far !== Infinity) {\n        nf = 1 / (near - far);\n        out[10] = far * nf;\n        out[14] = far * near * nf;\n    }\n    else {\n        out[10] = -1;\n        out[14] = -near;\n    }\n    return out;\n}\n/**\n * Generates a perspective projection matrix with the given field of view.\n * This is primarily useful for generating projection matrices to be used\n * with the still experiemental WebVR API.\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {Object} fov Object containing the following values: upDegrees, downDegrees, leftDegrees, rightDegrees\n * @param {number} near Near bound of the frustum\n * @param {number} far Far bound of the frustum\n * @returns {mat4} out\n */\nfunction perspectiveFromFieldOfView(out, fov, near, far) {\n    var upTan = Math.tan(fov.upDegrees * Math.PI / 180.0);\n    var downTan = Math.tan(fov.downDegrees * Math.PI / 180.0);\n    var leftTan = Math.tan(fov.leftDegrees * Math.PI / 180.0);\n    var rightTan = Math.tan(fov.rightDegrees * Math.PI / 180.0);\n    var xScale = 2.0 / (leftTan + rightTan);\n    var yScale = 2.0 / (upTan + downTan);\n    out[0] = xScale;\n    out[1] = 0.0;\n    out[2] = 0.0;\n    out[3] = 0.0;\n    out[4] = 0.0;\n    out[5] = yScale;\n    out[6] = 0.0;\n    out[7] = 0.0;\n    out[8] = -((leftTan - rightTan) * xScale * 0.5);\n    out[9] = (upTan - downTan) * yScale * 0.5;\n    out[10] = far / (near - far);\n    out[11] = -1.0;\n    out[12] = 0.0;\n    out[13] = 0.0;\n    out[14] = far * near / (near - far);\n    out[15] = 0.0;\n    return out;\n}\n/**\n * Generates a orthogonal projection matrix with the given bounds.\n * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1],\n * which matches WebGL/OpenGL's clip volume.\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {number} left Left bound of the frustum\n * @param {number} right Right bound of the frustum\n * @param {number} bottom Bottom bound of the frustum\n * @param {number} top Top bound of the frustum\n * @param {number} near Near bound of the frustum\n * @param {number} far Far bound of the frustum\n * @returns {mat4} out\n */\nfunction orthoNO(out, left, right, bottom, top, near, far) {\n    var lr = 1 / (left - right);\n    var bt = 1 / (bottom - top);\n    var nf = 1 / (near - far);\n    out[0] = -2 * lr;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 0;\n    out[4] = 0;\n    out[5] = -2 * bt;\n    out[6] = 0;\n    out[7] = 0;\n    out[8] = 0;\n    out[9] = 0;\n    out[10] = 2 * nf;\n    out[11] = 0;\n    out[12] = (left + right) * lr;\n    out[13] = (top + bottom) * bt;\n    out[14] = (far + near) * nf;\n    out[15] = 1;\n    return out;\n}\n/**\n * Alias for {@link mat4.orthoNO}\n * @function\n */\nexports.ortho = orthoNO;\n/**\n * Generates a orthogonal projection matrix with the given bounds.\n * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1],\n * which matches WebGPU/Vulkan/DirectX/Metal's clip volume.\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {number} left Left bound of the frustum\n * @param {number} right Right bound of the frustum\n * @param {number} bottom Bottom bound of the frustum\n * @param {number} top Top bound of the frustum\n * @param {number} near Near bound of the frustum\n * @param {number} far Far bound of the frustum\n * @returns {mat4} out\n */\nfunction orthoZO(out, left, right, bottom, top, near, far) {\n    var lr = 1 / (left - right);\n    var bt = 1 / (bottom - top);\n    var nf = 1 / (near - far);\n    out[0] = -2 * lr;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 0;\n    out[4] = 0;\n    out[5] = -2 * bt;\n    out[6] = 0;\n    out[7] = 0;\n    out[8] = 0;\n    out[9] = 0;\n    out[10] = nf;\n    out[11] = 0;\n    out[12] = (left + right) * lr;\n    out[13] = (top + bottom) * bt;\n    out[14] = near * nf;\n    out[15] = 1;\n    return out;\n}\n/**\n * Generates a look-at matrix with the given eye position, focal point, and up axis.\n * If you want a matrix that actually makes an object look at another object, you should use targetTo instead.\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {ReadonlyVec3} eye Position of the viewer\n * @param {ReadonlyVec3} center Point the viewer is looking at\n * @param {ReadonlyVec3} up vec3 pointing up\n * @returns {mat4} out\n */\nfunction lookAt(out, eye, center, up) {\n    var x0, x1, x2, y0, y1, y2, z0, z1, z2, len;\n    var eyex = eye[0];\n    var eyey = eye[1];\n    var eyez = eye[2];\n    var upx = up[0];\n    var upy = up[1];\n    var upz = up[2];\n    var centerx = center[0];\n    var centery = center[1];\n    var centerz = center[2];\n    if (Math.abs(eyex - centerx) < glMatrix.EPSILON && Math.abs(eyey - centery) < glMatrix.EPSILON && Math.abs(eyez - centerz) < glMatrix.EPSILON) {\n        return identity(out);\n    }\n    z0 = eyex - centerx;\n    z1 = eyey - centery;\n    z2 = eyez - centerz;\n    len = 1 / Math.hypot(z0, z1, z2);\n    z0 *= len;\n    z1 *= len;\n    z2 *= len;\n    x0 = upy * z2 - upz * z1;\n    x1 = upz * z0 - upx * z2;\n    x2 = upx * z1 - upy * z0;\n    len = Math.hypot(x0, x1, x2);\n    if (!len) {\n        x0 = 0;\n        x1 = 0;\n        x2 = 0;\n    }\n    else {\n        len = 1 / len;\n        x0 *= len;\n        x1 *= len;\n        x2 *= len;\n    }\n    y0 = z1 * x2 - z2 * x1;\n    y1 = z2 * x0 - z0 * x2;\n    y2 = z0 * x1 - z1 * x0;\n    len = Math.hypot(y0, y1, y2);\n    if (!len) {\n        y0 = 0;\n        y1 = 0;\n        y2 = 0;\n    }\n    else {\n        len = 1 / len;\n        y0 *= len;\n        y1 *= len;\n        y2 *= len;\n    }\n    out[0] = x0;\n    out[1] = y0;\n    out[2] = z0;\n    out[3] = 0;\n    out[4] = x1;\n    out[5] = y1;\n    out[6] = z1;\n    out[7] = 0;\n    out[8] = x2;\n    out[9] = y2;\n    out[10] = z2;\n    out[11] = 0;\n    out[12] = -(x0 * eyex + x1 * eyey + x2 * eyez);\n    out[13] = -(y0 * eyex + y1 * eyey + y2 * eyez);\n    out[14] = -(z0 * eyex + z1 * eyey + z2 * eyez);\n    out[15] = 1;\n    return out;\n}\n/**\n * Generates a matrix that makes something look at something else.\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {ReadonlyVec3} eye Position of the viewer\n * @param {ReadonlyVec3} center Point the viewer is looking at\n * @param {ReadonlyVec3} up vec3 pointing up\n * @returns {mat4} out\n */\nfunction targetTo(out, eye, target, up) {\n    var eyex = eye[0], eyey = eye[1], eyez = eye[2], upx = up[0], upy = up[1], upz = up[2];\n    var z0 = eyex - target[0], z1 = eyey - target[1], z2 = eyez - target[2];\n    var len = z0 * z0 + z1 * z1 + z2 * z2;\n    if (len > 0) {\n        len = 1 / Math.sqrt(len);\n        z0 *= len;\n        z1 *= len;\n        z2 *= len;\n    }\n    var x0 = upy * z2 - upz * z1, x1 = upz * z0 - upx * z2, x2 = upx * z1 - upy * z0;\n    len = x0 * x0 + x1 * x1 + x2 * x2;\n    if (len > 0) {\n        len = 1 / Math.sqrt(len);\n        x0 *= len;\n        x1 *= len;\n        x2 *= len;\n    }\n    out[0] = x0;\n    out[1] = x1;\n    out[2] = x2;\n    out[3] = 0;\n    out[4] = z1 * x2 - z2 * x1;\n    out[5] = z2 * x0 - z0 * x2;\n    out[6] = z0 * x1 - z1 * x0;\n    out[7] = 0;\n    out[8] = z0;\n    out[9] = z1;\n    out[10] = z2;\n    out[11] = 0;\n    out[12] = eyex;\n    out[13] = eyey;\n    out[14] = eyez;\n    out[15] = 1;\n    return out;\n}\n/**\n * Returns a string representation of a mat4\n *\n * @param {ReadonlyMat4} a matrix to represent as a string\n * @returns {String} string representation of the matrix\n */\nfunction str(a) {\n    return \"mat4(\" + a[0] + \", \" + a[1] + \", \" + a[2] + \", \" + a[3] + \", \" + a[4] + \", \" + a[5] + \", \" + a[6] + \", \" + a[7] + \", \" + a[8] + \", \" + a[9] + \", \" + a[10] + \", \" + a[11] + \", \" + a[12] + \", \" + a[13] + \", \" + a[14] + \", \" + a[15] + \")\";\n}\n/**\n * Returns Frobenius norm of a mat4\n *\n * @param {ReadonlyMat4} a the matrix to calculate Frobenius norm of\n * @returns {Number} Frobenius norm\n */\nfunction frob(a) {\n    return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], a[14], a[15]);\n}\n/**\n * Adds two mat4's\n *\n * @param {mat4} out the receiving matrix\n * @param {ReadonlyMat4} a the first operand\n * @param {ReadonlyMat4} b the second operand\n * @returns {mat4} out\n */\nfunction add(out, a, b) {\n    out[0] = a[0] + b[0];\n    out[1] = a[1] + b[1];\n    out[2] = a[2] + b[2];\n    out[3] = a[3] + b[3];\n    out[4] = a[4] + b[4];\n    out[5] = a[5] + b[5];\n    out[6] = a[6] + b[6];\n    out[7] = a[7] + b[7];\n    out[8] = a[8] + b[8];\n    out[9] = a[9] + b[9];\n    out[10] = a[10] + b[10];\n    out[11] = a[11] + b[11];\n    out[12] = a[12] + b[12];\n    out[13] = a[13] + b[13];\n    out[14] = a[14] + b[14];\n    out[15] = a[15] + b[15];\n    return out;\n}\n/**\n * Subtracts matrix b from matrix a\n *\n * @param {mat4} out the receiving matrix\n * @param {ReadonlyMat4} a the first operand\n * @param {ReadonlyMat4} b the second operand\n * @returns {mat4} out\n */\nfunction subtract(out, a, b) {\n    out[0] = a[0] - b[0];\n    out[1] = a[1] - b[1];\n    out[2] = a[2] - b[2];\n    out[3] = a[3] - b[3];\n    out[4] = a[4] - b[4];\n    out[5] = a[5] - b[5];\n    out[6] = a[6] - b[6];\n    out[7] = a[7] - b[7];\n    out[8] = a[8] - b[8];\n    out[9] = a[9] - b[9];\n    out[10] = a[10] - b[10];\n    out[11] = a[11] - b[11];\n    out[12] = a[12] - b[12];\n    out[13] = a[13] - b[13];\n    out[14] = a[14] - b[14];\n    out[15] = a[15] - b[15];\n    return out;\n}\n/**\n * Multiply each element of the matrix by a scalar.\n *\n * @param {mat4} out the receiving matrix\n * @param {ReadonlyMat4} a the matrix to scale\n * @param {Number} b amount to scale the matrix's elements by\n * @returns {mat4} out\n */\nfunction multiplyScalar(out, a, b) {\n    out[0] = a[0] * b;\n    out[1] = a[1] * b;\n    out[2] = a[2] * b;\n    out[3] = a[3] * b;\n    out[4] = a[4] * b;\n    out[5] = a[5] * b;\n    out[6] = a[6] * b;\n    out[7] = a[7] * b;\n    out[8] = a[8] * b;\n    out[9] = a[9] * b;\n    out[10] = a[10] * b;\n    out[11] = a[11] * b;\n    out[12] = a[12] * b;\n    out[13] = a[13] * b;\n    out[14] = a[14] * b;\n    out[15] = a[15] * b;\n    return out;\n}\n/**\n * Adds two mat4's after multiplying each element of the second operand by a scalar value.\n *\n * @param {mat4} out the receiving vector\n * @param {ReadonlyMat4} a the first operand\n * @param {ReadonlyMat4} b the second operand\n * @param {Number} scale the amount to scale b's elements by before adding\n * @returns {mat4} out\n */\nfunction multiplyScalarAndAdd(out, a, b, scale) {\n    out[0] = a[0] + b[0] * scale;\n    out[1] = a[1] + b[1] * scale;\n    out[2] = a[2] + b[2] * scale;\n    out[3] = a[3] + b[3] * scale;\n    out[4] = a[4] + b[4] * scale;\n    out[5] = a[5] + b[5] * scale;\n    out[6] = a[6] + b[6] * scale;\n    out[7] = a[7] + b[7] * scale;\n    out[8] = a[8] + b[8] * scale;\n    out[9] = a[9] + b[9] * scale;\n    out[10] = a[10] + b[10] * scale;\n    out[11] = a[11] + b[11] * scale;\n    out[12] = a[12] + b[12] * scale;\n    out[13] = a[13] + b[13] * scale;\n    out[14] = a[14] + b[14] * scale;\n    out[15] = a[15] + b[15] * scale;\n    return out;\n}\n/**\n * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)\n *\n * @param {ReadonlyMat4} a The first matrix.\n * @param {ReadonlyMat4} b The second matrix.\n * @returns {Boolean} True if the matrices are equal, false otherwise.\n */\nfunction exactEquals(a, b) {\n    return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7] && a[8] === b[8] && a[9] === b[9] && a[10] === b[10] && a[11] === b[11] && a[12] === b[12] && a[13] === b[13] && a[14] === b[14] && a[15] === b[15];\n}\n/**\n * Returns whether or not the matrices have approximately the same elements in the same position.\n *\n * @param {ReadonlyMat4} a The first matrix.\n * @param {ReadonlyMat4} b The second matrix.\n * @returns {Boolean} True if the matrices are equal, false otherwise.\n */\nfunction equals(a, b) {\n    var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3];\n    var a4 = a[4], a5 = a[5], a6 = a[6], a7 = a[7];\n    var a8 = a[8], a9 = a[9], a10 = a[10], a11 = a[11];\n    var a12 = a[12], a13 = a[13], a14 = a[14], a15 = a[15];\n    var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3];\n    var b4 = b[4], b5 = b[5], b6 = b[6], b7 = b[7];\n    var b8 = b[8], b9 = b[9], b10 = b[10], b11 = b[11];\n    var b12 = b[12], b13 = b[13], b14 = b[14], b15 = b[15];\n    return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)) && Math.abs(a8 - b8) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a8), Math.abs(b8)) && Math.abs(a9 - b9) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a9), Math.abs(b9)) && Math.abs(a10 - b10) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a10), Math.abs(b10)) && Math.abs(a11 - b11) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a11), Math.abs(b11)) && Math.abs(a12 - b12) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a12), Math.abs(b12)) && Math.abs(a13 - b13) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a13), Math.abs(b13)) && Math.abs(a14 - b14) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a14), Math.abs(b14)) && Math.abs(a15 - b15) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a15), Math.abs(b15));\n}\n/**\n * Alias for {@link mat4.multiply}\n * @function\n */\nexports.mul = multiply;\n/**\n * Alias for {@link mat4.subtract}\n * @function\n */\nexports.sub = subtract;\n","type":"js","dependency_paths":[["./common.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/common.js"]],"dependency_map":[],"exported":[{"type":"named","name":"create"},{"type":"named","name":"clone"},{"type":"named","name":"copy"},{"type":"named","name":"fromValues"},{"type":"named","name":"set"},{"type":"named","name":"identity"},{"type":"named","name":"transpose"},{"type":"named","name":"invert"},{"type":"named","name":"adjoint"},{"type":"named","name":"determinant"},{"type":"named","name":"multiply"},{"type":"named","name":"translate"},{"type":"named","name":"scale"},{"type":"named","name":"rotate"},{"type":"named","name":"rotateX"},{"type":"named","name":"rotateY"},{"type":"named","name":"rotateZ"},{"type":"named","name":"fromTranslation"},{"type":"named","name":"fromScaling"},{"type":"named","name":"fromRotation"},{"type":"named","name":"fromXRotation"},{"type":"named","name":"fromYRotation"},{"type":"named","name":"fromZRotation"},{"type":"named","name":"fromRotationTranslation"},{"type":"named","name":"fromQuat2"},{"type":"named","name":"getTranslation"},{"type":"named","name":"getScaling"},{"type":"named","name":"getRotation"},{"type":"named","name":"fromRotationTranslationScale"},{"type":"named","name":"fromRotationTranslationScaleOrigin"},{"type":"named","name":"fromQuat"},{"type":"named","name":"frustum"},{"type":"named","name":"perspectiveNO"},{"type":"named","name":"perspectiveZO"},{"type":"named","name":"perspectiveFromFieldOfView"},{"type":"named","name":"orthoNO"},{"type":"named","name":"orthoZO"},{"type":"named","name":"lookAt"},{"type":"named","name":"targetTo"},{"type":"named","name":"str"},{"type":"named","name":"frob"},{"type":"named","name":"add"},{"type":"named","name":"subtract"},{"type":"named","name":"multiplyScalar"},{"type":"named","name":"multiplyScalarAndAdd"},{"type":"named","name":"exactEquals"},{"type":"named","name":"equals"}],"externals":[],"shims":[]},"code":{"source":"/* gl-matrix/esm/mat4.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.create = create;\n    exports.clone = clone;\n    exports.copy = copy;\n    exports.fromValues = fromValues;\n    exports.set = set;\n    exports.identity = identity;\n    exports.transpose = transpose;\n    exports.invert = invert;\n    exports.adjoint = adjoint;\n    exports.determinant = determinant;\n    exports.multiply = multiply;\n    exports.translate = translate;\n    exports.scale = scale;\n    exports.rotate = rotate;\n    exports.rotateX = rotateX;\n    exports.rotateY = rotateY;\n    exports.rotateZ = rotateZ;\n    exports.fromTranslation = fromTranslation;\n    exports.fromScaling = fromScaling;\n    exports.fromRotation = fromRotation;\n    exports.fromXRotation = fromXRotation;\n    exports.fromYRotation = fromYRotation;\n    exports.fromZRotation = fromZRotation;\n    exports.fromRotationTranslation = fromRotationTranslation;\n    exports.fromQuat2 = fromQuat2;\n    exports.getTranslation = getTranslation;\n    exports.getScaling = getScaling;\n    exports.getRotation = getRotation;\n    exports.fromRotationTranslationScale = fromRotationTranslationScale;\n    exports.fromRotationTranslationScaleOrigin = fromRotationTranslationScaleOrigin;\n    exports.fromQuat = fromQuat;\n    exports.frustum = frustum;\n    exports.perspectiveNO = perspectiveNO;\n    exports.perspectiveZO = perspectiveZO;\n    exports.perspectiveFromFieldOfView = perspectiveFromFieldOfView;\n    exports.orthoNO = orthoNO;\n    exports.orthoZO = orthoZO;\n    exports.lookAt = lookAt;\n    exports.targetTo = targetTo;\n    exports.str = str;\n    exports.frob = frob;\n    exports.add = add;\n    exports.subtract = subtract;\n    exports.multiplyScalar = multiplyScalar;\n    exports.multiplyScalarAndAdd = multiplyScalarAndAdd;\n    exports.exactEquals = exactEquals;\n    exports.equals = equals;\n    const tslib_1 = require(\"tslib\");\n    const glMatrix = tslib_1.__importStar(require(\"7d825b979e\") /* ./common.js */);\n    /**\n     * 4x4 Matrix<br>Format: column-major, when typed out it looks like row-major<br>The matrices are being post multiplied.\n     * @module mat4\n     */\n    /**\n     * Creates a new identity mat4\n     *\n     * @returns {mat4} a new 4x4 matrix\n     */\n    function create() {\n        var out = new glMatrix.ARRAY_TYPE(16);\n        if (glMatrix.ARRAY_TYPE != Float32Array) {\n            out[1] = 0;\n            out[2] = 0;\n            out[3] = 0;\n            out[4] = 0;\n            out[6] = 0;\n            out[7] = 0;\n            out[8] = 0;\n            out[9] = 0;\n            out[11] = 0;\n            out[12] = 0;\n            out[13] = 0;\n            out[14] = 0;\n        }\n        out[0] = 1;\n        out[5] = 1;\n        out[10] = 1;\n        out[15] = 1;\n        return out;\n    }\n    /**\n     * Creates a new mat4 initialized with values from an existing matrix\n     *\n     * @param {ReadonlyMat4} a matrix to clone\n     * @returns {mat4} a new 4x4 matrix\n     */\n    function clone(a) {\n        var out = new glMatrix.ARRAY_TYPE(16);\n        out[0] = a[0];\n        out[1] = a[1];\n        out[2] = a[2];\n        out[3] = a[3];\n        out[4] = a[4];\n        out[5] = a[5];\n        out[6] = a[6];\n        out[7] = a[7];\n        out[8] = a[8];\n        out[9] = a[9];\n        out[10] = a[10];\n        out[11] = a[11];\n        out[12] = a[12];\n        out[13] = a[13];\n        out[14] = a[14];\n        out[15] = a[15];\n        return out;\n    }\n    /**\n     * Copy the values from one mat4 to another\n     *\n     * @param {mat4} out the receiving matrix\n     * @param {ReadonlyMat4} a the source matrix\n     * @returns {mat4} out\n     */\n    function copy(out, a) {\n        out[0] = a[0];\n        out[1] = a[1];\n        out[2] = a[2];\n        out[3] = a[3];\n        out[4] = a[4];\n        out[5] = a[5];\n        out[6] = a[6];\n        out[7] = a[7];\n        out[8] = a[8];\n        out[9] = a[9];\n        out[10] = a[10];\n        out[11] = a[11];\n        out[12] = a[12];\n        out[13] = a[13];\n        out[14] = a[14];\n        out[15] = a[15];\n        return out;\n    }\n    /**\n     * Create a new mat4 with the given values\n     *\n     * @param {Number} m00 Component in column 0, row 0 position (index 0)\n     * @param {Number} m01 Component in column 0, row 1 position (index 1)\n     * @param {Number} m02 Component in column 0, row 2 position (index 2)\n     * @param {Number} m03 Component in column 0, row 3 position (index 3)\n     * @param {Number} m10 Component in column 1, row 0 position (index 4)\n     * @param {Number} m11 Component in column 1, row 1 position (index 5)\n     * @param {Number} m12 Component in column 1, row 2 position (index 6)\n     * @param {Number} m13 Component in column 1, row 3 position (index 7)\n     * @param {Number} m20 Component in column 2, row 0 position (index 8)\n     * @param {Number} m21 Component in column 2, row 1 position (index 9)\n     * @param {Number} m22 Component in column 2, row 2 position (index 10)\n     * @param {Number} m23 Component in column 2, row 3 position (index 11)\n     * @param {Number} m30 Component in column 3, row 0 position (index 12)\n     * @param {Number} m31 Component in column 3, row 1 position (index 13)\n     * @param {Number} m32 Component in column 3, row 2 position (index 14)\n     * @param {Number} m33 Component in column 3, row 3 position (index 15)\n     * @returns {mat4} A new mat4\n     */\n    function fromValues(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) {\n        var out = new glMatrix.ARRAY_TYPE(16);\n        out[0] = m00;\n        out[1] = m01;\n        out[2] = m02;\n        out[3] = m03;\n        out[4] = m10;\n        out[5] = m11;\n        out[6] = m12;\n        out[7] = m13;\n        out[8] = m20;\n        out[9] = m21;\n        out[10] = m22;\n        out[11] = m23;\n        out[12] = m30;\n        out[13] = m31;\n        out[14] = m32;\n        out[15] = m33;\n        return out;\n    }\n    /**\n     * Set the components of a mat4 to the given values\n     *\n     * @param {mat4} out the receiving matrix\n     * @param {Number} m00 Component in column 0, row 0 position (index 0)\n     * @param {Number} m01 Component in column 0, row 1 position (index 1)\n     * @param {Number} m02 Component in column 0, row 2 position (index 2)\n     * @param {Number} m03 Component in column 0, row 3 position (index 3)\n     * @param {Number} m10 Component in column 1, row 0 position (index 4)\n     * @param {Number} m11 Component in column 1, row 1 position (index 5)\n     * @param {Number} m12 Component in column 1, row 2 position (index 6)\n     * @param {Number} m13 Component in column 1, row 3 position (index 7)\n     * @param {Number} m20 Component in column 2, row 0 position (index 8)\n     * @param {Number} m21 Component in column 2, row 1 position (index 9)\n     * @param {Number} m22 Component in column 2, row 2 position (index 10)\n     * @param {Number} m23 Component in column 2, row 3 position (index 11)\n     * @param {Number} m30 Component in column 3, row 0 position (index 12)\n     * @param {Number} m31 Component in column 3, row 1 position (index 13)\n     * @param {Number} m32 Component in column 3, row 2 position (index 14)\n     * @param {Number} m33 Component in column 3, row 3 position (index 15)\n     * @returns {mat4} out\n     */\n    function set(out, m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) {\n        out[0] = m00;\n        out[1] = m01;\n        out[2] = m02;\n        out[3] = m03;\n        out[4] = m10;\n        out[5] = m11;\n        out[6] = m12;\n        out[7] = m13;\n        out[8] = m20;\n        out[9] = m21;\n        out[10] = m22;\n        out[11] = m23;\n        out[12] = m30;\n        out[13] = m31;\n        out[14] = m32;\n        out[15] = m33;\n        return out;\n    }\n    /**\n     * Set a mat4 to the identity matrix\n     *\n     * @param {mat4} out the receiving matrix\n     * @returns {mat4} out\n     */\n    function identity(out) {\n        out[0] = 1;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 0;\n        out[4] = 0;\n        out[5] = 1;\n        out[6] = 0;\n        out[7] = 0;\n        out[8] = 0;\n        out[9] = 0;\n        out[10] = 1;\n        out[11] = 0;\n        out[12] = 0;\n        out[13] = 0;\n        out[14] = 0;\n        out[15] = 1;\n        return out;\n    }\n    /**\n     * Transpose the values of a mat4\n     *\n     * @param {mat4} out the receiving matrix\n     * @param {ReadonlyMat4} a the source matrix\n     * @returns {mat4} out\n     */\n    function transpose(out, a) {\n        // If we are transposing ourselves we can skip a few steps but have to cache some values\n        if (out === a) {\n            var a01 = a[1], a02 = a[2], a03 = a[3];\n            var a12 = a[6], a13 = a[7];\n            var a23 = a[11];\n            out[1] = a[4];\n            out[2] = a[8];\n            out[3] = a[12];\n            out[4] = a01;\n            out[6] = a[9];\n            out[7] = a[13];\n            out[8] = a02;\n            out[9] = a12;\n            out[11] = a[14];\n            out[12] = a03;\n            out[13] = a13;\n            out[14] = a23;\n        }\n        else {\n            out[0] = a[0];\n            out[1] = a[4];\n            out[2] = a[8];\n            out[3] = a[12];\n            out[4] = a[1];\n            out[5] = a[5];\n            out[6] = a[9];\n            out[7] = a[13];\n            out[8] = a[2];\n            out[9] = a[6];\n            out[10] = a[10];\n            out[11] = a[14];\n            out[12] = a[3];\n            out[13] = a[7];\n            out[14] = a[11];\n            out[15] = a[15];\n        }\n        return out;\n    }\n    /**\n     * Inverts a mat4\n     *\n     * @param {mat4} out the receiving matrix\n     * @param {ReadonlyMat4} a the source matrix\n     * @returns {mat4} out\n     */\n    function invert(out, a) {\n        var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3];\n        var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7];\n        var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11];\n        var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];\n        var b00 = a00 * a11 - a01 * a10;\n        var b01 = a00 * a12 - a02 * a10;\n        var b02 = a00 * a13 - a03 * a10;\n        var b03 = a01 * a12 - a02 * a11;\n        var b04 = a01 * a13 - a03 * a11;\n        var b05 = a02 * a13 - a03 * a12;\n        var b06 = a20 * a31 - a21 * a30;\n        var b07 = a20 * a32 - a22 * a30;\n        var b08 = a20 * a33 - a23 * a30;\n        var b09 = a21 * a32 - a22 * a31;\n        var b10 = a21 * a33 - a23 * a31;\n        var b11 = a22 * a33 - a23 * a32; // Calculate the determinant\n        var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\n        if (!det) {\n            return null;\n        }\n        det = 1.0 / det;\n        out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det;\n        out[1] = (a02 * b10 - a01 * b11 - a03 * b09) * det;\n        out[2] = (a31 * b05 - a32 * b04 + a33 * b03) * det;\n        out[3] = (a22 * b04 - a21 * b05 - a23 * b03) * det;\n        out[4] = (a12 * b08 - a10 * b11 - a13 * b07) * det;\n        out[5] = (a00 * b11 - a02 * b08 + a03 * b07) * det;\n        out[6] = (a32 * b02 - a30 * b05 - a33 * b01) * det;\n        out[7] = (a20 * b05 - a22 * b02 + a23 * b01) * det;\n        out[8] = (a10 * b10 - a11 * b08 + a13 * b06) * det;\n        out[9] = (a01 * b08 - a00 * b10 - a03 * b06) * det;\n        out[10] = (a30 * b04 - a31 * b02 + a33 * b00) * det;\n        out[11] = (a21 * b02 - a20 * b04 - a23 * b00) * det;\n        out[12] = (a11 * b07 - a10 * b09 - a12 * b06) * det;\n        out[13] = (a00 * b09 - a01 * b07 + a02 * b06) * det;\n        out[14] = (a31 * b01 - a30 * b03 - a32 * b00) * det;\n        out[15] = (a20 * b03 - a21 * b01 + a22 * b00) * det;\n        return out;\n    }\n    /**\n     * Calculates the adjugate of a mat4\n     *\n     * @param {mat4} out the receiving matrix\n     * @param {ReadonlyMat4} a the source matrix\n     * @returns {mat4} out\n     */\n    function adjoint(out, a) {\n        var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3];\n        var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7];\n        var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11];\n        var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];\n        out[0] = a11 * (a22 * a33 - a23 * a32) - a21 * (a12 * a33 - a13 * a32) + a31 * (a12 * a23 - a13 * a22);\n        out[1] = -(a01 * (a22 * a33 - a23 * a32) - a21 * (a02 * a33 - a03 * a32) + a31 * (a02 * a23 - a03 * a22));\n        out[2] = a01 * (a12 * a33 - a13 * a32) - a11 * (a02 * a33 - a03 * a32) + a31 * (a02 * a13 - a03 * a12);\n        out[3] = -(a01 * (a12 * a23 - a13 * a22) - a11 * (a02 * a23 - a03 * a22) + a21 * (a02 * a13 - a03 * a12));\n        out[4] = -(a10 * (a22 * a33 - a23 * a32) - a20 * (a12 * a33 - a13 * a32) + a30 * (a12 * a23 - a13 * a22));\n        out[5] = a00 * (a22 * a33 - a23 * a32) - a20 * (a02 * a33 - a03 * a32) + a30 * (a02 * a23 - a03 * a22);\n        out[6] = -(a00 * (a12 * a33 - a13 * a32) - a10 * (a02 * a33 - a03 * a32) + a30 * (a02 * a13 - a03 * a12));\n        out[7] = a00 * (a12 * a23 - a13 * a22) - a10 * (a02 * a23 - a03 * a22) + a20 * (a02 * a13 - a03 * a12);\n        out[8] = a10 * (a21 * a33 - a23 * a31) - a20 * (a11 * a33 - a13 * a31) + a30 * (a11 * a23 - a13 * a21);\n        out[9] = -(a00 * (a21 * a33 - a23 * a31) - a20 * (a01 * a33 - a03 * a31) + a30 * (a01 * a23 - a03 * a21));\n        out[10] = a00 * (a11 * a33 - a13 * a31) - a10 * (a01 * a33 - a03 * a31) + a30 * (a01 * a13 - a03 * a11);\n        out[11] = -(a00 * (a11 * a23 - a13 * a21) - a10 * (a01 * a23 - a03 * a21) + a20 * (a01 * a13 - a03 * a11));\n        out[12] = -(a10 * (a21 * a32 - a22 * a31) - a20 * (a11 * a32 - a12 * a31) + a30 * (a11 * a22 - a12 * a21));\n        out[13] = a00 * (a21 * a32 - a22 * a31) - a20 * (a01 * a32 - a02 * a31) + a30 * (a01 * a22 - a02 * a21);\n        out[14] = -(a00 * (a11 * a32 - a12 * a31) - a10 * (a01 * a32 - a02 * a31) + a30 * (a01 * a12 - a02 * a11));\n        out[15] = a00 * (a11 * a22 - a12 * a21) - a10 * (a01 * a22 - a02 * a21) + a20 * (a01 * a12 - a02 * a11);\n        return out;\n    }\n    /**\n     * Calculates the determinant of a mat4\n     *\n     * @param {ReadonlyMat4} a the source matrix\n     * @returns {Number} determinant of a\n     */\n    function determinant(a) {\n        var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3];\n        var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7];\n        var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11];\n        var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];\n        var b00 = a00 * a11 - a01 * a10;\n        var b01 = a00 * a12 - a02 * a10;\n        var b02 = a00 * a13 - a03 * a10;\n        var b03 = a01 * a12 - a02 * a11;\n        var b04 = a01 * a13 - a03 * a11;\n        var b05 = a02 * a13 - a03 * a12;\n        var b06 = a20 * a31 - a21 * a30;\n        var b07 = a20 * a32 - a22 * a30;\n        var b08 = a20 * a33 - a23 * a30;\n        var b09 = a21 * a32 - a22 * a31;\n        var b10 = a21 * a33 - a23 * a31;\n        var b11 = a22 * a33 - a23 * a32; // Calculate the determinant\n        return b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\n    }\n    /**\n     * Multiplies two mat4s\n     *\n     * @param {mat4} out the receiving matrix\n     * @param {ReadonlyMat4} a the first operand\n     * @param {ReadonlyMat4} b the second operand\n     * @returns {mat4} out\n     */\n    function multiply(out, a, b) {\n        var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3];\n        var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7];\n        var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11];\n        var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15]; // Cache only the current line of the second matrix\n        var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3];\n        out[0] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n        out[1] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n        out[2] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n        out[3] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n        b0 = b[4];\n        b1 = b[5];\n        b2 = b[6];\n        b3 = b[7];\n        out[4] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n        out[5] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n        out[6] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n        out[7] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n        b0 = b[8];\n        b1 = b[9];\n        b2 = b[10];\n        b3 = b[11];\n        out[8] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n        out[9] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n        out[10] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n        out[11] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n        b0 = b[12];\n        b1 = b[13];\n        b2 = b[14];\n        b3 = b[15];\n        out[12] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n        out[13] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n        out[14] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n        out[15] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n        return out;\n    }\n    /**\n     * Translate a mat4 by the given vector\n     *\n     * @param {mat4} out the receiving matrix\n     * @param {ReadonlyMat4} a the matrix to translate\n     * @param {ReadonlyVec3} v vector to translate by\n     * @returns {mat4} out\n     */\n    function translate(out, a, v) {\n        var x = v[0], y = v[1], z = v[2];\n        var a00, a01, a02, a03;\n        var a10, a11, a12, a13;\n        var a20, a21, a22, a23;\n        if (a === out) {\n            out[12] = a[0] * x + a[4] * y + a[8] * z + a[12];\n            out[13] = a[1] * x + a[5] * y + a[9] * z + a[13];\n            out[14] = a[2] * x + a[6] * y + a[10] * z + a[14];\n            out[15] = a[3] * x + a[7] * y + a[11] * z + a[15];\n        }\n        else {\n            a00 = a[0];\n            a01 = a[1];\n            a02 = a[2];\n            a03 = a[3];\n            a10 = a[4];\n            a11 = a[5];\n            a12 = a[6];\n            a13 = a[7];\n            a20 = a[8];\n            a21 = a[9];\n            a22 = a[10];\n            a23 = a[11];\n            out[0] = a00;\n            out[1] = a01;\n            out[2] = a02;\n            out[3] = a03;\n            out[4] = a10;\n            out[5] = a11;\n            out[6] = a12;\n            out[7] = a13;\n            out[8] = a20;\n            out[9] = a21;\n            out[10] = a22;\n            out[11] = a23;\n            out[12] = a00 * x + a10 * y + a20 * z + a[12];\n            out[13] = a01 * x + a11 * y + a21 * z + a[13];\n            out[14] = a02 * x + a12 * y + a22 * z + a[14];\n            out[15] = a03 * x + a13 * y + a23 * z + a[15];\n        }\n        return out;\n    }\n    /**\n     * Scales the mat4 by the dimensions in the given vec3 not using vectorization\n     *\n     * @param {mat4} out the receiving matrix\n     * @param {ReadonlyMat4} a the matrix to scale\n     * @param {ReadonlyVec3} v the vec3 to scale the matrix by\n     * @returns {mat4} out\n     **/\n    function scale(out, a, v) {\n        var x = v[0], y = v[1], z = v[2];\n        out[0] = a[0] * x;\n        out[1] = a[1] * x;\n        out[2] = a[2] * x;\n        out[3] = a[3] * x;\n        out[4] = a[4] * y;\n        out[5] = a[5] * y;\n        out[6] = a[6] * y;\n        out[7] = a[7] * y;\n        out[8] = a[8] * z;\n        out[9] = a[9] * z;\n        out[10] = a[10] * z;\n        out[11] = a[11] * z;\n        out[12] = a[12];\n        out[13] = a[13];\n        out[14] = a[14];\n        out[15] = a[15];\n        return out;\n    }\n    /**\n     * Rotates a mat4 by the given angle around the given axis\n     *\n     * @param {mat4} out the receiving matrix\n     * @param {ReadonlyMat4} a the matrix to rotate\n     * @param {Number} rad the angle to rotate the matrix by\n     * @param {ReadonlyVec3} axis the axis to rotate around\n     * @returns {mat4} out\n     */\n    function rotate(out, a, rad, axis) {\n        var x = axis[0], y = axis[1], z = axis[2];\n        var len = Math.hypot(x, y, z);\n        var s, c, t;\n        var a00, a01, a02, a03;\n        var a10, a11, a12, a13;\n        var a20, a21, a22, a23;\n        var b00, b01, b02;\n        var b10, b11, b12;\n        var b20, b21, b22;\n        if (len < glMatrix.EPSILON) {\n            return null;\n        }\n        len = 1 / len;\n        x *= len;\n        y *= len;\n        z *= len;\n        s = Math.sin(rad);\n        c = Math.cos(rad);\n        t = 1 - c;\n        a00 = a[0];\n        a01 = a[1];\n        a02 = a[2];\n        a03 = a[3];\n        a10 = a[4];\n        a11 = a[5];\n        a12 = a[6];\n        a13 = a[7];\n        a20 = a[8];\n        a21 = a[9];\n        a22 = a[10];\n        a23 = a[11]; // Construct the elements of the rotation matrix\n        b00 = x * x * t + c;\n        b01 = y * x * t + z * s;\n        b02 = z * x * t - y * s;\n        b10 = x * y * t - z * s;\n        b11 = y * y * t + c;\n        b12 = z * y * t + x * s;\n        b20 = x * z * t + y * s;\n        b21 = y * z * t - x * s;\n        b22 = z * z * t + c; // Perform rotation-specific matrix multiplication\n        out[0] = a00 * b00 + a10 * b01 + a20 * b02;\n        out[1] = a01 * b00 + a11 * b01 + a21 * b02;\n        out[2] = a02 * b00 + a12 * b01 + a22 * b02;\n        out[3] = a03 * b00 + a13 * b01 + a23 * b02;\n        out[4] = a00 * b10 + a10 * b11 + a20 * b12;\n        out[5] = a01 * b10 + a11 * b11 + a21 * b12;\n        out[6] = a02 * b10 + a12 * b11 + a22 * b12;\n        out[7] = a03 * b10 + a13 * b11 + a23 * b12;\n        out[8] = a00 * b20 + a10 * b21 + a20 * b22;\n        out[9] = a01 * b20 + a11 * b21 + a21 * b22;\n        out[10] = a02 * b20 + a12 * b21 + a22 * b22;\n        out[11] = a03 * b20 + a13 * b21 + a23 * b22;\n        if (a !== out) {\n            // If the source and destination differ, copy the unchanged last row\n            out[12] = a[12];\n            out[13] = a[13];\n            out[14] = a[14];\n            out[15] = a[15];\n        }\n        return out;\n    }\n    /**\n     * Rotates a matrix by the given angle around the X axis\n     *\n     * @param {mat4} out the receiving matrix\n     * @param {ReadonlyMat4} a the matrix to rotate\n     * @param {Number} rad the angle to rotate the matrix by\n     * @returns {mat4} out\n     */\n    function rotateX(out, a, rad) {\n        var s = Math.sin(rad);\n        var c = Math.cos(rad);\n        var a10 = a[4];\n        var a11 = a[5];\n        var a12 = a[6];\n        var a13 = a[7];\n        var a20 = a[8];\n        var a21 = a[9];\n        var a22 = a[10];\n        var a23 = a[11];\n        if (a !== out) {\n            // If the source and destination differ, copy the unchanged rows\n            out[0] = a[0];\n            out[1] = a[1];\n            out[2] = a[2];\n            out[3] = a[3];\n            out[12] = a[12];\n            out[13] = a[13];\n            out[14] = a[14];\n            out[15] = a[15];\n        } // Perform axis-specific matrix multiplication\n        out[4] = a10 * c + a20 * s;\n        out[5] = a11 * c + a21 * s;\n        out[6] = a12 * c + a22 * s;\n        out[7] = a13 * c + a23 * s;\n        out[8] = a20 * c - a10 * s;\n        out[9] = a21 * c - a11 * s;\n        out[10] = a22 * c - a12 * s;\n        out[11] = a23 * c - a13 * s;\n        return out;\n    }\n    /**\n     * Rotates a matrix by the given angle around the Y axis\n     *\n     * @param {mat4} out the receiving matrix\n     * @param {ReadonlyMat4} a the matrix to rotate\n     * @param {Number} rad the angle to rotate the matrix by\n     * @returns {mat4} out\n     */\n    function rotateY(out, a, rad) {\n        var s = Math.sin(rad);\n        var c = Math.cos(rad);\n        var a00 = a[0];\n        var a01 = a[1];\n        var a02 = a[2];\n        var a03 = a[3];\n        var a20 = a[8];\n        var a21 = a[9];\n        var a22 = a[10];\n        var a23 = a[11];\n        if (a !== out) {\n            // If the source and destination differ, copy the unchanged rows\n            out[4] = a[4];\n            out[5] = a[5];\n            out[6] = a[6];\n            out[7] = a[7];\n            out[12] = a[12];\n            out[13] = a[13];\n            out[14] = a[14];\n            out[15] = a[15];\n        } // Perform axis-specific matrix multiplication\n        out[0] = a00 * c - a20 * s;\n        out[1] = a01 * c - a21 * s;\n        out[2] = a02 * c - a22 * s;\n        out[3] = a03 * c - a23 * s;\n        out[8] = a00 * s + a20 * c;\n        out[9] = a01 * s + a21 * c;\n        out[10] = a02 * s + a22 * c;\n        out[11] = a03 * s + a23 * c;\n        return out;\n    }\n    /**\n     * Rotates a matrix by the given angle around the Z axis\n     *\n     * @param {mat4} out the receiving matrix\n     * @param {ReadonlyMat4} a the matrix to rotate\n     * @param {Number} rad the angle to rotate the matrix by\n     * @returns {mat4} out\n     */\n    function rotateZ(out, a, rad) {\n        var s = Math.sin(rad);\n        var c = Math.cos(rad);\n        var a00 = a[0];\n        var a01 = a[1];\n        var a02 = a[2];\n        var a03 = a[3];\n        var a10 = a[4];\n        var a11 = a[5];\n        var a12 = a[6];\n        var a13 = a[7];\n        if (a !== out) {\n            // If the source and destination differ, copy the unchanged last row\n            out[8] = a[8];\n            out[9] = a[9];\n            out[10] = a[10];\n            out[11] = a[11];\n            out[12] = a[12];\n            out[13] = a[13];\n            out[14] = a[14];\n            out[15] = a[15];\n        } // Perform axis-specific matrix multiplication\n        out[0] = a00 * c + a10 * s;\n        out[1] = a01 * c + a11 * s;\n        out[2] = a02 * c + a12 * s;\n        out[3] = a03 * c + a13 * s;\n        out[4] = a10 * c - a00 * s;\n        out[5] = a11 * c - a01 * s;\n        out[6] = a12 * c - a02 * s;\n        out[7] = a13 * c - a03 * s;\n        return out;\n    }\n    /**\n     * Creates a matrix from a vector translation\n     * This is equivalent to (but much faster than):\n     *\n     *     mat4.identity(dest);\n     *     mat4.translate(dest, dest, vec);\n     *\n     * @param {mat4} out mat4 receiving operation result\n     * @param {ReadonlyVec3} v Translation vector\n     * @returns {mat4} out\n     */\n    function fromTranslation(out, v) {\n        out[0] = 1;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 0;\n        out[4] = 0;\n        out[5] = 1;\n        out[6] = 0;\n        out[7] = 0;\n        out[8] = 0;\n        out[9] = 0;\n        out[10] = 1;\n        out[11] = 0;\n        out[12] = v[0];\n        out[13] = v[1];\n        out[14] = v[2];\n        out[15] = 1;\n        return out;\n    }\n    /**\n     * Creates a matrix from a vector scaling\n     * This is equivalent to (but much faster than):\n     *\n     *     mat4.identity(dest);\n     *     mat4.scale(dest, dest, vec);\n     *\n     * @param {mat4} out mat4 receiving operation result\n     * @param {ReadonlyVec3} v Scaling vector\n     * @returns {mat4} out\n     */\n    function fromScaling(out, v) {\n        out[0] = v[0];\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 0;\n        out[4] = 0;\n        out[5] = v[1];\n        out[6] = 0;\n        out[7] = 0;\n        out[8] = 0;\n        out[9] = 0;\n        out[10] = v[2];\n        out[11] = 0;\n        out[12] = 0;\n        out[13] = 0;\n        out[14] = 0;\n        out[15] = 1;\n        return out;\n    }\n    /**\n     * Creates a matrix from a given angle around a given axis\n     * This is equivalent to (but much faster than):\n     *\n     *     mat4.identity(dest);\n     *     mat4.rotate(dest, dest, rad, axis);\n     *\n     * @param {mat4} out mat4 receiving operation result\n     * @param {Number} rad the angle to rotate the matrix by\n     * @param {ReadonlyVec3} axis the axis to rotate around\n     * @returns {mat4} out\n     */\n    function fromRotation(out, rad, axis) {\n        var x = axis[0], y = axis[1], z = axis[2];\n        var len = Math.hypot(x, y, z);\n        var s, c, t;\n        if (len < glMatrix.EPSILON) {\n            return null;\n        }\n        len = 1 / len;\n        x *= len;\n        y *= len;\n        z *= len;\n        s = Math.sin(rad);\n        c = Math.cos(rad);\n        t = 1 - c; // Perform rotation-specific matrix multiplication\n        out[0] = x * x * t + c;\n        out[1] = y * x * t + z * s;\n        out[2] = z * x * t - y * s;\n        out[3] = 0;\n        out[4] = x * y * t - z * s;\n        out[5] = y * y * t + c;\n        out[6] = z * y * t + x * s;\n        out[7] = 0;\n        out[8] = x * z * t + y * s;\n        out[9] = y * z * t - x * s;\n        out[10] = z * z * t + c;\n        out[11] = 0;\n        out[12] = 0;\n        out[13] = 0;\n        out[14] = 0;\n        out[15] = 1;\n        return out;\n    }\n    /**\n     * Creates a matrix from the given angle around the X axis\n     * This is equivalent to (but much faster than):\n     *\n     *     mat4.identity(dest);\n     *     mat4.rotateX(dest, dest, rad);\n     *\n     * @param {mat4} out mat4 receiving operation result\n     * @param {Number} rad the angle to rotate the matrix by\n     * @returns {mat4} out\n     */\n    function fromXRotation(out, rad) {\n        var s = Math.sin(rad);\n        var c = Math.cos(rad); // Perform axis-specific matrix multiplication\n        out[0] = 1;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 0;\n        out[4] = 0;\n        out[5] = c;\n        out[6] = s;\n        out[7] = 0;\n        out[8] = 0;\n        out[9] = -s;\n        out[10] = c;\n        out[11] = 0;\n        out[12] = 0;\n        out[13] = 0;\n        out[14] = 0;\n        out[15] = 1;\n        return out;\n    }\n    /**\n     * Creates a matrix from the given angle around the Y axis\n     * This is equivalent to (but much faster than):\n     *\n     *     mat4.identity(dest);\n     *     mat4.rotateY(dest, dest, rad);\n     *\n     * @param {mat4} out mat4 receiving operation result\n     * @param {Number} rad the angle to rotate the matrix by\n     * @returns {mat4} out\n     */\n    function fromYRotation(out, rad) {\n        var s = Math.sin(rad);\n        var c = Math.cos(rad); // Perform axis-specific matrix multiplication\n        out[0] = c;\n        out[1] = 0;\n        out[2] = -s;\n        out[3] = 0;\n        out[4] = 0;\n        out[5] = 1;\n        out[6] = 0;\n        out[7] = 0;\n        out[8] = s;\n        out[9] = 0;\n        out[10] = c;\n        out[11] = 0;\n        out[12] = 0;\n        out[13] = 0;\n        out[14] = 0;\n        out[15] = 1;\n        return out;\n    }\n    /**\n     * Creates a matrix from the given angle around the Z axis\n     * This is equivalent to (but much faster than):\n     *\n     *     mat4.identity(dest);\n     *     mat4.rotateZ(dest, dest, rad);\n     *\n     * @param {mat4} out mat4 receiving operation result\n     * @param {Number} rad the angle to rotate the matrix by\n     * @returns {mat4} out\n     */\n    function fromZRotation(out, rad) {\n        var s = Math.sin(rad);\n        var c = Math.cos(rad); // Perform axis-specific matrix multiplication\n        out[0] = c;\n        out[1] = s;\n        out[2] = 0;\n        out[3] = 0;\n        out[4] = -s;\n        out[5] = c;\n        out[6] = 0;\n        out[7] = 0;\n        out[8] = 0;\n        out[9] = 0;\n        out[10] = 1;\n        out[11] = 0;\n        out[12] = 0;\n        out[13] = 0;\n        out[14] = 0;\n        out[15] = 1;\n        return out;\n    }\n    /**\n     * Creates a matrix from a quaternion rotation and vector translation\n     * This is equivalent to (but much faster than):\n     *\n     *     mat4.identity(dest);\n     *     mat4.translate(dest, vec);\n     *     let quatMat = mat4.create();\n     *     quat4.toMat4(quat, quatMat);\n     *     mat4.multiply(dest, quatMat);\n     *\n     * @param {mat4} out mat4 receiving operation result\n     * @param {quat4} q Rotation quaternion\n     * @param {ReadonlyVec3} v Translation vector\n     * @returns {mat4} out\n     */\n    function fromRotationTranslation(out, q, v) {\n        // Quaternion math\n        var x = q[0], y = q[1], z = q[2], w = q[3];\n        var x2 = x + x;\n        var y2 = y + y;\n        var z2 = z + z;\n        var xx = x * x2;\n        var xy = x * y2;\n        var xz = x * z2;\n        var yy = y * y2;\n        var yz = y * z2;\n        var zz = z * z2;\n        var wx = w * x2;\n        var wy = w * y2;\n        var wz = w * z2;\n        out[0] = 1 - (yy + zz);\n        out[1] = xy + wz;\n        out[2] = xz - wy;\n        out[3] = 0;\n        out[4] = xy - wz;\n        out[5] = 1 - (xx + zz);\n        out[6] = yz + wx;\n        out[7] = 0;\n        out[8] = xz + wy;\n        out[9] = yz - wx;\n        out[10] = 1 - (xx + yy);\n        out[11] = 0;\n        out[12] = v[0];\n        out[13] = v[1];\n        out[14] = v[2];\n        out[15] = 1;\n        return out;\n    }\n    /**\n     * Creates a new mat4 from a dual quat.\n     *\n     * @param {mat4} out Matrix\n     * @param {ReadonlyQuat2} a Dual Quaternion\n     * @returns {mat4} mat4 receiving operation result\n     */\n    function fromQuat2(out, a) {\n        var translation = new glMatrix.ARRAY_TYPE(3);\n        var bx = -a[0], by = -a[1], bz = -a[2], bw = a[3], ax = a[4], ay = a[5], az = a[6], aw = a[7];\n        var magnitude = bx * bx + by * by + bz * bz + bw * bw; //Only scale if it makes sense\n        if (magnitude > 0) {\n            translation[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2 / magnitude;\n            translation[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2 / magnitude;\n            translation[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2 / magnitude;\n        }\n        else {\n            translation[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2;\n            translation[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2;\n            translation[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2;\n        }\n        fromRotationTranslation(out, a, translation);\n        return out;\n    }\n    /**\n     * Returns the translation vector component of a transformation\n     *  matrix. If a matrix is built with fromRotationTranslation,\n     *  the returned vector will be the same as the translation vector\n     *  originally supplied.\n     * @param  {vec3} out Vector to receive translation component\n     * @param  {ReadonlyMat4} mat Matrix to be decomposed (input)\n     * @return {vec3} out\n     */\n    function getTranslation(out, mat) {\n        out[0] = mat[12];\n        out[1] = mat[13];\n        out[2] = mat[14];\n        return out;\n    }\n    /**\n     * Returns the scaling factor component of a transformation\n     *  matrix. If a matrix is built with fromRotationTranslationScale\n     *  with a normalized Quaternion paramter, the returned vector will be\n     *  the same as the scaling vector\n     *  originally supplied.\n     * @param  {vec3} out Vector to receive scaling factor component\n     * @param  {ReadonlyMat4} mat Matrix to be decomposed (input)\n     * @return {vec3} out\n     */\n    function getScaling(out, mat) {\n        var m11 = mat[0];\n        var m12 = mat[1];\n        var m13 = mat[2];\n        var m21 = mat[4];\n        var m22 = mat[5];\n        var m23 = mat[6];\n        var m31 = mat[8];\n        var m32 = mat[9];\n        var m33 = mat[10];\n        out[0] = Math.hypot(m11, m12, m13);\n        out[1] = Math.hypot(m21, m22, m23);\n        out[2] = Math.hypot(m31, m32, m33);\n        return out;\n    }\n    /**\n     * Returns a quaternion representing the rotational component\n     *  of a transformation matrix. If a matrix is built with\n     *  fromRotationTranslation, the returned quaternion will be the\n     *  same as the quaternion originally supplied.\n     * @param {quat} out Quaternion to receive the rotation component\n     * @param {ReadonlyMat4} mat Matrix to be decomposed (input)\n     * @return {quat} out\n     */\n    function getRotation(out, mat) {\n        var scaling = new glMatrix.ARRAY_TYPE(3);\n        getScaling(scaling, mat);\n        var is1 = 1 / scaling[0];\n        var is2 = 1 / scaling[1];\n        var is3 = 1 / scaling[2];\n        var sm11 = mat[0] * is1;\n        var sm12 = mat[1] * is2;\n        var sm13 = mat[2] * is3;\n        var sm21 = mat[4] * is1;\n        var sm22 = mat[5] * is2;\n        var sm23 = mat[6] * is3;\n        var sm31 = mat[8] * is1;\n        var sm32 = mat[9] * is2;\n        var sm33 = mat[10] * is3;\n        var trace = sm11 + sm22 + sm33;\n        var S = 0;\n        if (trace > 0) {\n            S = Math.sqrt(trace + 1.0) * 2;\n            out[3] = 0.25 * S;\n            out[0] = (sm23 - sm32) / S;\n            out[1] = (sm31 - sm13) / S;\n            out[2] = (sm12 - sm21) / S;\n        }\n        else if (sm11 > sm22 && sm11 > sm33) {\n            S = Math.sqrt(1.0 + sm11 - sm22 - sm33) * 2;\n            out[3] = (sm23 - sm32) / S;\n            out[0] = 0.25 * S;\n            out[1] = (sm12 + sm21) / S;\n            out[2] = (sm31 + sm13) / S;\n        }\n        else if (sm22 > sm33) {\n            S = Math.sqrt(1.0 + sm22 - sm11 - sm33) * 2;\n            out[3] = (sm31 - sm13) / S;\n            out[0] = (sm12 + sm21) / S;\n            out[1] = 0.25 * S;\n            out[2] = (sm23 + sm32) / S;\n        }\n        else {\n            S = Math.sqrt(1.0 + sm33 - sm11 - sm22) * 2;\n            out[3] = (sm12 - sm21) / S;\n            out[0] = (sm31 + sm13) / S;\n            out[1] = (sm23 + sm32) / S;\n            out[2] = 0.25 * S;\n        }\n        return out;\n    }\n    /**\n     * Creates a matrix from a quaternion rotation, vector translation and vector scale\n     * This is equivalent to (but much faster than):\n     *\n     *     mat4.identity(dest);\n     *     mat4.translate(dest, vec);\n     *     let quatMat = mat4.create();\n     *     quat4.toMat4(quat, quatMat);\n     *     mat4.multiply(dest, quatMat);\n     *     mat4.scale(dest, scale)\n     *\n     * @param {mat4} out mat4 receiving operation result\n     * @param {quat4} q Rotation quaternion\n     * @param {ReadonlyVec3} v Translation vector\n     * @param {ReadonlyVec3} s Scaling vector\n     * @returns {mat4} out\n     */\n    function fromRotationTranslationScale(out, q, v, s) {\n        // Quaternion math\n        var x = q[0], y = q[1], z = q[2], w = q[3];\n        var x2 = x + x;\n        var y2 = y + y;\n        var z2 = z + z;\n        var xx = x * x2;\n        var xy = x * y2;\n        var xz = x * z2;\n        var yy = y * y2;\n        var yz = y * z2;\n        var zz = z * z2;\n        var wx = w * x2;\n        var wy = w * y2;\n        var wz = w * z2;\n        var sx = s[0];\n        var sy = s[1];\n        var sz = s[2];\n        out[0] = (1 - (yy + zz)) * sx;\n        out[1] = (xy + wz) * sx;\n        out[2] = (xz - wy) * sx;\n        out[3] = 0;\n        out[4] = (xy - wz) * sy;\n        out[5] = (1 - (xx + zz)) * sy;\n        out[6] = (yz + wx) * sy;\n        out[7] = 0;\n        out[8] = (xz + wy) * sz;\n        out[9] = (yz - wx) * sz;\n        out[10] = (1 - (xx + yy)) * sz;\n        out[11] = 0;\n        out[12] = v[0];\n        out[13] = v[1];\n        out[14] = v[2];\n        out[15] = 1;\n        return out;\n    }\n    /**\n     * Creates a matrix from a quaternion rotation, vector translation and vector scale, rotating and scaling around the given origin\n     * This is equivalent to (but much faster than):\n     *\n     *     mat4.identity(dest);\n     *     mat4.translate(dest, vec);\n     *     mat4.translate(dest, origin);\n     *     let quatMat = mat4.create();\n     *     quat4.toMat4(quat, quatMat);\n     *     mat4.multiply(dest, quatMat);\n     *     mat4.scale(dest, scale)\n     *     mat4.translate(dest, negativeOrigin);\n     *\n     * @param {mat4} out mat4 receiving operation result\n     * @param {quat4} q Rotation quaternion\n     * @param {ReadonlyVec3} v Translation vector\n     * @param {ReadonlyVec3} s Scaling vector\n     * @param {ReadonlyVec3} o The origin vector around which to scale and rotate\n     * @returns {mat4} out\n     */\n    function fromRotationTranslationScaleOrigin(out, q, v, s, o) {\n        // Quaternion math\n        var x = q[0], y = q[1], z = q[2], w = q[3];\n        var x2 = x + x;\n        var y2 = y + y;\n        var z2 = z + z;\n        var xx = x * x2;\n        var xy = x * y2;\n        var xz = x * z2;\n        var yy = y * y2;\n        var yz = y * z2;\n        var zz = z * z2;\n        var wx = w * x2;\n        var wy = w * y2;\n        var wz = w * z2;\n        var sx = s[0];\n        var sy = s[1];\n        var sz = s[2];\n        var ox = o[0];\n        var oy = o[1];\n        var oz = o[2];\n        var out0 = (1 - (yy + zz)) * sx;\n        var out1 = (xy + wz) * sx;\n        var out2 = (xz - wy) * sx;\n        var out4 = (xy - wz) * sy;\n        var out5 = (1 - (xx + zz)) * sy;\n        var out6 = (yz + wx) * sy;\n        var out8 = (xz + wy) * sz;\n        var out9 = (yz - wx) * sz;\n        var out10 = (1 - (xx + yy)) * sz;\n        out[0] = out0;\n        out[1] = out1;\n        out[2] = out2;\n        out[3] = 0;\n        out[4] = out4;\n        out[5] = out5;\n        out[6] = out6;\n        out[7] = 0;\n        out[8] = out8;\n        out[9] = out9;\n        out[10] = out10;\n        out[11] = 0;\n        out[12] = v[0] + ox - (out0 * ox + out4 * oy + out8 * oz);\n        out[13] = v[1] + oy - (out1 * ox + out5 * oy + out9 * oz);\n        out[14] = v[2] + oz - (out2 * ox + out6 * oy + out10 * oz);\n        out[15] = 1;\n        return out;\n    }\n    /**\n     * Calculates a 4x4 matrix from the given quaternion\n     *\n     * @param {mat4} out mat4 receiving operation result\n     * @param {ReadonlyQuat} q Quaternion to create matrix from\n     *\n     * @returns {mat4} out\n     */\n    function fromQuat(out, q) {\n        var x = q[0], y = q[1], z = q[2], w = q[3];\n        var x2 = x + x;\n        var y2 = y + y;\n        var z2 = z + z;\n        var xx = x * x2;\n        var yx = y * x2;\n        var yy = y * y2;\n        var zx = z * x2;\n        var zy = z * y2;\n        var zz = z * z2;\n        var wx = w * x2;\n        var wy = w * y2;\n        var wz = w * z2;\n        out[0] = 1 - yy - zz;\n        out[1] = yx + wz;\n        out[2] = zx - wy;\n        out[3] = 0;\n        out[4] = yx - wz;\n        out[5] = 1 - xx - zz;\n        out[6] = zy + wx;\n        out[7] = 0;\n        out[8] = zx + wy;\n        out[9] = zy - wx;\n        out[10] = 1 - xx - yy;\n        out[11] = 0;\n        out[12] = 0;\n        out[13] = 0;\n        out[14] = 0;\n        out[15] = 1;\n        return out;\n    }\n    /**\n     * Generates a frustum matrix with the given bounds\n     *\n     * @param {mat4} out mat4 frustum matrix will be written into\n     * @param {Number} left Left bound of the frustum\n     * @param {Number} right Right bound of the frustum\n     * @param {Number} bottom Bottom bound of the frustum\n     * @param {Number} top Top bound of the frustum\n     * @param {Number} near Near bound of the frustum\n     * @param {Number} far Far bound of the frustum\n     * @returns {mat4} out\n     */\n    function frustum(out, left, right, bottom, top, near, far) {\n        var rl = 1 / (right - left);\n        var tb = 1 / (top - bottom);\n        var nf = 1 / (near - far);\n        out[0] = near * 2 * rl;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 0;\n        out[4] = 0;\n        out[5] = near * 2 * tb;\n        out[6] = 0;\n        out[7] = 0;\n        out[8] = (right + left) * rl;\n        out[9] = (top + bottom) * tb;\n        out[10] = (far + near) * nf;\n        out[11] = -1;\n        out[12] = 0;\n        out[13] = 0;\n        out[14] = far * near * 2 * nf;\n        out[15] = 0;\n        return out;\n    }\n    /**\n     * Generates a perspective projection matrix with the given bounds.\n     * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1],\n     * which matches WebGL/OpenGL's clip volume.\n     * Passing null/undefined/no value for far will generate infinite projection matrix.\n     *\n     * @param {mat4} out mat4 frustum matrix will be written into\n     * @param {number} fovy Vertical field of view in radians\n     * @param {number} aspect Aspect ratio. typically viewport width/height\n     * @param {number} near Near bound of the frustum\n     * @param {number} far Far bound of the frustum, can be null or Infinity\n     * @returns {mat4} out\n     */\n    function perspectiveNO(out, fovy, aspect, near, far) {\n        var f = 1.0 / Math.tan(fovy / 2), nf;\n        out[0] = f / aspect;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 0;\n        out[4] = 0;\n        out[5] = f;\n        out[6] = 0;\n        out[7] = 0;\n        out[8] = 0;\n        out[9] = 0;\n        out[11] = -1;\n        out[12] = 0;\n        out[13] = 0;\n        out[15] = 0;\n        if (far != null && far !== Infinity) {\n            nf = 1 / (near - far);\n            out[10] = (far + near) * nf;\n            out[14] = 2 * far * near * nf;\n        }\n        else {\n            out[10] = -1;\n            out[14] = -2 * near;\n        }\n        return out;\n    }\n    /**\n     * Alias for {@link mat4.perspectiveNO}\n     * @function\n     */\n    exports.perspective = perspectiveNO;\n    /**\n     * Generates a perspective projection matrix suitable for WebGPU with the given bounds.\n     * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1],\n     * which matches WebGPU/Vulkan/DirectX/Metal's clip volume.\n     * Passing null/undefined/no value for far will generate infinite projection matrix.\n     *\n     * @param {mat4} out mat4 frustum matrix will be written into\n     * @param {number} fovy Vertical field of view in radians\n     * @param {number} aspect Aspect ratio. typically viewport width/height\n     * @param {number} near Near bound of the frustum\n     * @param {number} far Far bound of the frustum, can be null or Infinity\n     * @returns {mat4} out\n     */\n    function perspectiveZO(out, fovy, aspect, near, far) {\n        var f = 1.0 / Math.tan(fovy / 2), nf;\n        out[0] = f / aspect;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 0;\n        out[4] = 0;\n        out[5] = f;\n        out[6] = 0;\n        out[7] = 0;\n        out[8] = 0;\n        out[9] = 0;\n        out[11] = -1;\n        out[12] = 0;\n        out[13] = 0;\n        out[15] = 0;\n        if (far != null && far !== Infinity) {\n            nf = 1 / (near - far);\n            out[10] = far * nf;\n            out[14] = far * near * nf;\n        }\n        else {\n            out[10] = -1;\n            out[14] = -near;\n        }\n        return out;\n    }\n    /**\n     * Generates a perspective projection matrix with the given field of view.\n     * This is primarily useful for generating projection matrices to be used\n     * with the still experiemental WebVR API.\n     *\n     * @param {mat4} out mat4 frustum matrix will be written into\n     * @param {Object} fov Object containing the following values: upDegrees, downDegrees, leftDegrees, rightDegrees\n     * @param {number} near Near bound of the frustum\n     * @param {number} far Far bound of the frustum\n     * @returns {mat4} out\n     */\n    function perspectiveFromFieldOfView(out, fov, near, far) {\n        var upTan = Math.tan(fov.upDegrees * Math.PI / 180.0);\n        var downTan = Math.tan(fov.downDegrees * Math.PI / 180.0);\n        var leftTan = Math.tan(fov.leftDegrees * Math.PI / 180.0);\n        var rightTan = Math.tan(fov.rightDegrees * Math.PI / 180.0);\n        var xScale = 2.0 / (leftTan + rightTan);\n        var yScale = 2.0 / (upTan + downTan);\n        out[0] = xScale;\n        out[1] = 0.0;\n        out[2] = 0.0;\n        out[3] = 0.0;\n        out[4] = 0.0;\n        out[5] = yScale;\n        out[6] = 0.0;\n        out[7] = 0.0;\n        out[8] = -((leftTan - rightTan) * xScale * 0.5);\n        out[9] = (upTan - downTan) * yScale * 0.5;\n        out[10] = far / (near - far);\n        out[11] = -1.0;\n        out[12] = 0.0;\n        out[13] = 0.0;\n        out[14] = far * near / (near - far);\n        out[15] = 0.0;\n        return out;\n    }\n    /**\n     * Generates a orthogonal projection matrix with the given bounds.\n     * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1],\n     * which matches WebGL/OpenGL's clip volume.\n     *\n     * @param {mat4} out mat4 frustum matrix will be written into\n     * @param {number} left Left bound of the frustum\n     * @param {number} right Right bound of the frustum\n     * @param {number} bottom Bottom bound of the frustum\n     * @param {number} top Top bound of the frustum\n     * @param {number} near Near bound of the frustum\n     * @param {number} far Far bound of the frustum\n     * @returns {mat4} out\n     */\n    function orthoNO(out, left, right, bottom, top, near, far) {\n        var lr = 1 / (left - right);\n        var bt = 1 / (bottom - top);\n        var nf = 1 / (near - far);\n        out[0] = -2 * lr;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 0;\n        out[4] = 0;\n        out[5] = -2 * bt;\n        out[6] = 0;\n        out[7] = 0;\n        out[8] = 0;\n        out[9] = 0;\n        out[10] = 2 * nf;\n        out[11] = 0;\n        out[12] = (left + right) * lr;\n        out[13] = (top + bottom) * bt;\n        out[14] = (far + near) * nf;\n        out[15] = 1;\n        return out;\n    }\n    /**\n     * Alias for {@link mat4.orthoNO}\n     * @function\n     */\n    exports.ortho = orthoNO;\n    /**\n     * Generates a orthogonal projection matrix with the given bounds.\n     * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1],\n     * which matches WebGPU/Vulkan/DirectX/Metal's clip volume.\n     *\n     * @param {mat4} out mat4 frustum matrix will be written into\n     * @param {number} left Left bound of the frustum\n     * @param {number} right Right bound of the frustum\n     * @param {number} bottom Bottom bound of the frustum\n     * @param {number} top Top bound of the frustum\n     * @param {number} near Near bound of the frustum\n     * @param {number} far Far bound of the frustum\n     * @returns {mat4} out\n     */\n    function orthoZO(out, left, right, bottom, top, near, far) {\n        var lr = 1 / (left - right);\n        var bt = 1 / (bottom - top);\n        var nf = 1 / (near - far);\n        out[0] = -2 * lr;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 0;\n        out[4] = 0;\n        out[5] = -2 * bt;\n        out[6] = 0;\n        out[7] = 0;\n        out[8] = 0;\n        out[9] = 0;\n        out[10] = nf;\n        out[11] = 0;\n        out[12] = (left + right) * lr;\n        out[13] = (top + bottom) * bt;\n        out[14] = near * nf;\n        out[15] = 1;\n        return out;\n    }\n    /**\n     * Generates a look-at matrix with the given eye position, focal point, and up axis.\n     * If you want a matrix that actually makes an object look at another object, you should use targetTo instead.\n     *\n     * @param {mat4} out mat4 frustum matrix will be written into\n     * @param {ReadonlyVec3} eye Position of the viewer\n     * @param {ReadonlyVec3} center Point the viewer is looking at\n     * @param {ReadonlyVec3} up vec3 pointing up\n     * @returns {mat4} out\n     */\n    function lookAt(out, eye, center, up) {\n        var x0, x1, x2, y0, y1, y2, z0, z1, z2, len;\n        var eyex = eye[0];\n        var eyey = eye[1];\n        var eyez = eye[2];\n        var upx = up[0];\n        var upy = up[1];\n        var upz = up[2];\n        var centerx = center[0];\n        var centery = center[1];\n        var centerz = center[2];\n        if (Math.abs(eyex - centerx) < glMatrix.EPSILON && Math.abs(eyey - centery) < glMatrix.EPSILON && Math.abs(eyez - centerz) < glMatrix.EPSILON) {\n            return identity(out);\n        }\n        z0 = eyex - centerx;\n        z1 = eyey - centery;\n        z2 = eyez - centerz;\n        len = 1 / Math.hypot(z0, z1, z2);\n        z0 *= len;\n        z1 *= len;\n        z2 *= len;\n        x0 = upy * z2 - upz * z1;\n        x1 = upz * z0 - upx * z2;\n        x2 = upx * z1 - upy * z0;\n        len = Math.hypot(x0, x1, x2);\n        if (!len) {\n            x0 = 0;\n            x1 = 0;\n            x2 = 0;\n        }\n        else {\n            len = 1 / len;\n            x0 *= len;\n            x1 *= len;\n            x2 *= len;\n        }\n        y0 = z1 * x2 - z2 * x1;\n        y1 = z2 * x0 - z0 * x2;\n        y2 = z0 * x1 - z1 * x0;\n        len = Math.hypot(y0, y1, y2);\n        if (!len) {\n            y0 = 0;\n            y1 = 0;\n            y2 = 0;\n        }\n        else {\n            len = 1 / len;\n            y0 *= len;\n            y1 *= len;\n            y2 *= len;\n        }\n        out[0] = x0;\n        out[1] = y0;\n        out[2] = z0;\n        out[3] = 0;\n        out[4] = x1;\n        out[5] = y1;\n        out[6] = z1;\n        out[7] = 0;\n        out[8] = x2;\n        out[9] = y2;\n        out[10] = z2;\n        out[11] = 0;\n        out[12] = -(x0 * eyex + x1 * eyey + x2 * eyez);\n        out[13] = -(y0 * eyex + y1 * eyey + y2 * eyez);\n        out[14] = -(z0 * eyex + z1 * eyey + z2 * eyez);\n        out[15] = 1;\n        return out;\n    }\n    /**\n     * Generates a matrix that makes something look at something else.\n     *\n     * @param {mat4} out mat4 frustum matrix will be written into\n     * @param {ReadonlyVec3} eye Position of the viewer\n     * @param {ReadonlyVec3} center Point the viewer is looking at\n     * @param {ReadonlyVec3} up vec3 pointing up\n     * @returns {mat4} out\n     */\n    function targetTo(out, eye, target, up) {\n        var eyex = eye[0], eyey = eye[1], eyez = eye[2], upx = up[0], upy = up[1], upz = up[2];\n        var z0 = eyex - target[0], z1 = eyey - target[1], z2 = eyez - target[2];\n        var len = z0 * z0 + z1 * z1 + z2 * z2;\n        if (len > 0) {\n            len = 1 / Math.sqrt(len);\n            z0 *= len;\n            z1 *= len;\n            z2 *= len;\n        }\n        var x0 = upy * z2 - upz * z1, x1 = upz * z0 - upx * z2, x2 = upx * z1 - upy * z0;\n        len = x0 * x0 + x1 * x1 + x2 * x2;\n        if (len > 0) {\n            len = 1 / Math.sqrt(len);\n            x0 *= len;\n            x1 *= len;\n            x2 *= len;\n        }\n        out[0] = x0;\n        out[1] = x1;\n        out[2] = x2;\n        out[3] = 0;\n        out[4] = z1 * x2 - z2 * x1;\n        out[5] = z2 * x0 - z0 * x2;\n        out[6] = z0 * x1 - z1 * x0;\n        out[7] = 0;\n        out[8] = z0;\n        out[9] = z1;\n        out[10] = z2;\n        out[11] = 0;\n        out[12] = eyex;\n        out[13] = eyey;\n        out[14] = eyez;\n        out[15] = 1;\n        return out;\n    }\n    /**\n     * Returns a string representation of a mat4\n     *\n     * @param {ReadonlyMat4} a matrix to represent as a string\n     * @returns {String} string representation of the matrix\n     */\n    function str(a) {\n        return \"mat4(\" + a[0] + \", \" + a[1] + \", \" + a[2] + \", \" + a[3] + \", \" + a[4] + \", \" + a[5] + \", \" + a[6] + \", \" + a[7] + \", \" + a[8] + \", \" + a[9] + \", \" + a[10] + \", \" + a[11] + \", \" + a[12] + \", \" + a[13] + \", \" + a[14] + \", \" + a[15] + \")\";\n    }\n    /**\n     * Returns Frobenius norm of a mat4\n     *\n     * @param {ReadonlyMat4} a the matrix to calculate Frobenius norm of\n     * @returns {Number} Frobenius norm\n     */\n    function frob(a) {\n        return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], a[14], a[15]);\n    }\n    /**\n     * Adds two mat4's\n     *\n     * @param {mat4} out the receiving matrix\n     * @param {ReadonlyMat4} a the first operand\n     * @param {ReadonlyMat4} b the second operand\n     * @returns {mat4} out\n     */\n    function add(out, a, b) {\n        out[0] = a[0] + b[0];\n        out[1] = a[1] + b[1];\n        out[2] = a[2] + b[2];\n        out[3] = a[3] + b[3];\n        out[4] = a[4] + b[4];\n        out[5] = a[5] + b[5];\n        out[6] = a[6] + b[6];\n        out[7] = a[7] + b[7];\n        out[8] = a[8] + b[8];\n        out[9] = a[9] + b[9];\n        out[10] = a[10] + b[10];\n        out[11] = a[11] + b[11];\n        out[12] = a[12] + b[12];\n        out[13] = a[13] + b[13];\n        out[14] = a[14] + b[14];\n        out[15] = a[15] + b[15];\n        return out;\n    }\n    /**\n     * Subtracts matrix b from matrix a\n     *\n     * @param {mat4} out the receiving matrix\n     * @param {ReadonlyMat4} a the first operand\n     * @param {ReadonlyMat4} b the second operand\n     * @returns {mat4} out\n     */\n    function subtract(out, a, b) {\n        out[0] = a[0] - b[0];\n        out[1] = a[1] - b[1];\n        out[2] = a[2] - b[2];\n        out[3] = a[3] - b[3];\n        out[4] = a[4] - b[4];\n        out[5] = a[5] - b[5];\n        out[6] = a[6] - b[6];\n        out[7] = a[7] - b[7];\n        out[8] = a[8] - b[8];\n        out[9] = a[9] - b[9];\n        out[10] = a[10] - b[10];\n        out[11] = a[11] - b[11];\n        out[12] = a[12] - b[12];\n        out[13] = a[13] - b[13];\n        out[14] = a[14] - b[14];\n        out[15] = a[15] - b[15];\n        return out;\n    }\n    /**\n     * Multiply each element of the matrix by a scalar.\n     *\n     * @param {mat4} out the receiving matrix\n     * @param {ReadonlyMat4} a the matrix to scale\n     * @param {Number} b amount to scale the matrix's elements by\n     * @returns {mat4} out\n     */\n    function multiplyScalar(out, a, b) {\n        out[0] = a[0] * b;\n        out[1] = a[1] * b;\n        out[2] = a[2] * b;\n        out[3] = a[3] * b;\n        out[4] = a[4] * b;\n        out[5] = a[5] * b;\n        out[6] = a[6] * b;\n        out[7] = a[7] * b;\n        out[8] = a[8] * b;\n        out[9] = a[9] * b;\n        out[10] = a[10] * b;\n        out[11] = a[11] * b;\n        out[12] = a[12] * b;\n        out[13] = a[13] * b;\n        out[14] = a[14] * b;\n        out[15] = a[15] * b;\n        return out;\n    }\n    /**\n     * Adds two mat4's after multiplying each element of the second operand by a scalar value.\n     *\n     * @param {mat4} out the receiving vector\n     * @param {ReadonlyMat4} a the first operand\n     * @param {ReadonlyMat4} b the second operand\n     * @param {Number} scale the amount to scale b's elements by before adding\n     * @returns {mat4} out\n     */\n    function multiplyScalarAndAdd(out, a, b, scale) {\n        out[0] = a[0] + b[0] * scale;\n        out[1] = a[1] + b[1] * scale;\n        out[2] = a[2] + b[2] * scale;\n        out[3] = a[3] + b[3] * scale;\n        out[4] = a[4] + b[4] * scale;\n        out[5] = a[5] + b[5] * scale;\n        out[6] = a[6] + b[6] * scale;\n        out[7] = a[7] + b[7] * scale;\n        out[8] = a[8] + b[8] * scale;\n        out[9] = a[9] + b[9] * scale;\n        out[10] = a[10] + b[10] * scale;\n        out[11] = a[11] + b[11] * scale;\n        out[12] = a[12] + b[12] * scale;\n        out[13] = a[13] + b[13] * scale;\n        out[14] = a[14] + b[14] * scale;\n        out[15] = a[15] + b[15] * scale;\n        return out;\n    }\n    /**\n     * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)\n     *\n     * @param {ReadonlyMat4} a The first matrix.\n     * @param {ReadonlyMat4} b The second matrix.\n     * @returns {Boolean} True if the matrices are equal, false otherwise.\n     */\n    function exactEquals(a, b) {\n        return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7] && a[8] === b[8] && a[9] === b[9] && a[10] === b[10] && a[11] === b[11] && a[12] === b[12] && a[13] === b[13] && a[14] === b[14] && a[15] === b[15];\n    }\n    /**\n     * Returns whether or not the matrices have approximately the same elements in the same position.\n     *\n     * @param {ReadonlyMat4} a The first matrix.\n     * @param {ReadonlyMat4} b The second matrix.\n     * @returns {Boolean} True if the matrices are equal, false otherwise.\n     */\n    function equals(a, b) {\n        var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3];\n        var a4 = a[4], a5 = a[5], a6 = a[6], a7 = a[7];\n        var a8 = a[8], a9 = a[9], a10 = a[10], a11 = a[11];\n        var a12 = a[12], a13 = a[13], a14 = a[14], a15 = a[15];\n        var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3];\n        var b4 = b[4], b5 = b[5], b6 = b[6], b7 = b[7];\n        var b8 = b[8], b9 = b[9], b10 = b[10], b11 = b[11];\n        var b12 = b[12], b13 = b[13], b14 = b[14], b15 = b[15];\n        return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)) && Math.abs(a8 - b8) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a8), Math.abs(b8)) && Math.abs(a9 - b9) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a9), Math.abs(b9)) && Math.abs(a10 - b10) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a10), Math.abs(b10)) && Math.abs(a11 - b11) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a11), Math.abs(b11)) && Math.abs(a12 - b12) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a12), Math.abs(b12)) && Math.abs(a13 - b13) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a13), Math.abs(b13)) && Math.abs(a14 - b14) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a14), Math.abs(b14)) && Math.abs(a15 - b15) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a15), Math.abs(b15));\n    }\n    /**\n     * Alias for {@link mat4.multiply}\n     * @function\n     */\n    exports.mul = multiply;\n    /**\n     * Alias for {@link mat4.subtract}\n     * @function\n     */\n    exports.sub = subtract;\n}\n","min_source":"function _(t,a,n,r,h){r(),n.create=function(){var t=new o.ARRAY_TYPE(16);o.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0);return t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},n.clone=function(t){var a=new o.ARRAY_TYPE(16);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a[8]=t[8],a[9]=t[9],a[10]=t[10],a[11]=t[11],a[12]=t[12],a[13]=t[13],a[14]=t[14],a[15]=t[15],a},n.copy=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t},n.fromValues=function(t,a,n,r,h,u,e,M,s,i,c,f,b,v,l,m){var P=new o.ARRAY_TYPE(16);return P[0]=t,P[1]=a,P[2]=n,P[3]=r,P[4]=h,P[5]=u,P[6]=e,P[7]=M,P[8]=s,P[9]=i,P[10]=c,P[11]=f,P[12]=b,P[13]=v,P[14]=l,P[15]=m,P},n.set=function(t,a,n,r,h,o,u,e,M,s,i,c,f,b,v,l,m){return t[0]=a,t[1]=n,t[2]=r,t[3]=h,t[4]=o,t[5]=u,t[6]=e,t[7]=M,t[8]=s,t[9]=i,t[10]=c,t[11]=f,t[12]=b,t[13]=v,t[14]=l,t[15]=m,t},n.identity=u,n.transpose=function(t,a){if(t===a){var n=a[1],r=a[2],h=a[3],o=a[6],u=a[7],e=a[11];t[1]=a[4],t[2]=a[8],t[3]=a[12],t[4]=n,t[6]=a[9],t[7]=a[13],t[8]=r,t[9]=o,t[11]=a[14],t[12]=h,t[13]=u,t[14]=e}else t[0]=a[0],t[1]=a[4],t[2]=a[8],t[3]=a[12],t[4]=a[1],t[5]=a[5],t[6]=a[9],t[7]=a[13],t[8]=a[2],t[9]=a[6],t[10]=a[10],t[11]=a[14],t[12]=a[3],t[13]=a[7],t[14]=a[11],t[15]=a[15];return t},n.invert=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=a[4],e=a[5],M=a[6],s=a[7],i=a[8],c=a[9],f=a[10],b=a[11],v=a[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l)-i*(r*P-o*l)+v*(r*b-o*c)),t[10]=n*(e*P-s*l)-u*(r*P-o*l)+v*(r*s-o*e),t[11]=-(n*(e*b-s*c)-u*(r*b-o*c)+i*(r*s-o*e)),t[12]=-(u*(c*m-f*l)-i*(e*m-M*l)+v*(e*f-M*c)),t[13]=n*(c*m-f*l)-i*(r*m-h*l)+v*(r*f-h*c),t[14]=-(n*(e*m-M*l)-u*(r*m-h*l)+v*(r*M-h*e)),t[15]=n*(e*f-M*c)-u*(r*f-h*c)+i*(r*M-h*e),t},n.determinant=function(t){var a=t[0],n=t[1],r=t[2],h=t[3],o=t[4],u=t[5],e=t[6],M=t[7],s=t[8],i=t[9],c=t[10],f=t[11],b=t[12],v=t[13],l=t[14],m=t[15];return(a*u-n*o)*(c*m-f*l)-(a*e-r*o)*(i*m-f*v)+(a*M-h*o)*(i*l-c*v)+(n*e-r*u)*(s*m-f*b)-(n*M-h*u)*(s*l-c*b)+(r*M-h*e)*(s*v-i*b)},n.multiply=e,n.translate=function(t,a,n){var r,h,o,u,e,M,s,i,c,f,b,v,l=n[0],m=n[1],P=n[2];a===t?(t[12]=a[0]*l+a[4]*m+a[8]*P+a[12],t[13]=a[1]*l+a[5]*m+a[9]*P+a[13],t[14]=a[2]*l+a[6]*m+a[10]*P+a[14],t[15]=a[3]*l+a[7]*m+a[11]*P+a[15]):(r=a[0],h=a[1],o=a[2],u=a[3],e=a[4],M=a[5],s=a[6],i=a[7],c=a[8],f=a[9],b=a[10],v=a[11],t[0]=r,t[1]=h,t[2]=o,t[3]=u,t[4]=e,t[5]=M,t[6]=s,t[7]=i,t[8]=c,t[9]=f,t[10]=b,t[11]=v,t[12]=r*l+e*m+c*P+a[12],t[13]=h*l+M*m+f*P+a[13],t[14]=o*l+s*m+b*P+a[14],t[15]=u*l+i*m+v*P+a[15]);return t},n.scale=function(t,a,n){var r=n[0],h=n[1],o=n[2];return t[0]=a[0]*r,t[1]=a[1]*r,t[2]=a[2]*r,t[3]=a[3]*r,t[4]=a[4]*h,t[5]=a[5]*h,t[6]=a[6]*h,t[7]=a[7]*h,t[8]=a[8]*o,t[9]=a[9]*o,t[10]=a[10]*o,t[11]=a[11]*o,t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t},n.rotate=function(t,a,n,r){var h,u,e,M,s,i,c,f,b,v,l,m,P,E,S,O,I,p,N,L,R,x,A,y,Y=r[0],g=r[1],T=r[2],d=Math.hypot(Y,g,T);if(d<o.EPSILON)return null;Y*=d=1/d,g*=d,T*=d,h=Math.sin(n),u=Math.cos(n),e=1-u,M=a[0],s=a[1],i=a[2],c=a[3],f=a[4],b=a[5],v=a[6],l=a[7],m=a[8],P=a[9],E=a[10],S=a[11],O=Y*Y*e+u,I=g*Y*e+T*h,p=T*Y*e-g*h,N=Y*g*e-T*h,L=g*g*e+u,R=T*g*e+Y*h,x=Y*T*e+g*h,A=g*T*e-Y*h,y=T*T*e+u,t[0]=M*O+f*I+m*p,t[1]=s*O+b*I+P*p,t[2]=i*O+v*I+E*p,t[3]=c*O+l*I+S*p,t[4]=M*N+f*L+m*R,t[5]=s*N+b*L+P*R,t[6]=i*N+v*L+E*R,t[7]=c*N+l*L+S*R,t[8]=M*x+f*A+m*y,t[9]=s*x+b*A+P*y,t[10]=i*x+v*A+E*y,t[11]=c*x+l*A+S*y,a!==t&&(t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]);return t},n.rotateX=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[4],u=a[5],e=a[6],M=a[7],s=a[8],i=a[9],c=a[10],f=a[11];a!==t&&(t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]);return t[4]=o*h+s*r,t[5]=u*h+i*r,t[6]=e*h+c*r,t[7]=M*h+f*r,t[8]=s*h-o*r,t[9]=i*h-u*r,t[10]=c*h-e*r,t[11]=f*h-M*r,t},n.rotateY=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[0],u=a[1],e=a[2],M=a[3],s=a[8],i=a[9],c=a[10],f=a[11];a!==t&&(t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]);return t[0]=o*h-s*r,t[1]=u*h-i*r,t[2]=e*h-c*r,t[3]=M*h-f*r,t[8]=o*r+s*h,t[9]=u*r+i*h,t[10]=e*r+c*h,t[11]=M*r+f*h,t},n.rotateZ=function(t,a,n){var r=Math.sin(n),h=Math.cos(n),o=a[0],u=a[1],e=a[2],M=a[3],s=a[4],i=a[5],c=a[6],f=a[7];a!==t&&(t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]);return t[0]=o*h+s*r,t[1]=u*h+i*r,t[2]=e*h+c*r,t[3]=M*h+f*r,t[4]=s*h-o*r,t[5]=i*h-u*r,t[6]=c*h-e*r,t[7]=f*h-M*r,t},n.fromTranslation=function(t,a){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t},n.fromScaling=function(t,a){return t[0]=a[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=a[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromRotation=function(t,a,n){var r,h,u,e=n[0],M=n[1],s=n[2],i=Math.hypot(e,M,s);if(i<o.EPSILON)return null;return e*=i=1/i,M*=i,s*=i,r=Math.sin(a),h=Math.cos(a),u=1-h,t[0]=e*e*u+h,t[1]=M*e*u+s*r,t[2]=s*e*u-M*r,t[3]=0,t[4]=e*M*u-s*r,t[5]=M*M*u+h,t[6]=s*M*u+e*r,t[7]=0,t[8]=e*s*u+M*r,t[9]=M*s*u-e*r,t[10]=s*s*u+h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromXRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromYRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromZRotation=function(t,a){var n=Math.sin(a),r=Math.cos(a);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.fromRotationTranslation=M,n.fromQuat2=function(t,a){var n=new o.ARRAY_TYPE(3),r=-a[0],h=-a[1],u=-a[2],e=a[3],s=a[4],i=a[5],c=a[6],f=a[7],b=r*r+h*h+u*u+e*e;b>0?(n[0]=2*(s*e+f*r+i*u-c*h)/b,n[1]=2*(i*e+f*h+c*r-s*u)/b,n[2]=2*(c*e+f*u+s*h-i*r)/b):(n[0]=2*(s*e+f*r+i*u-c*h),n[1]=2*(i*e+f*h+c*r-s*u),n[2]=2*(c*e+f*u+s*h-i*r));return M(t,a,n),t},n.getTranslation=function(t,a){return t[0]=a[12],t[1]=a[13],t[2]=a[14],t},n.getScaling=s,n.getRotation=function(t,a){var n=new o.ARRAY_TYPE(3);s(n,a);var r=1/n[0],h=1/n[1],u=1/n[2],e=a[0]*r,M=a[1]*h,i=a[2]*u,c=a[4]*r,f=a[5]*h,b=a[6]*u,v=a[8]*r,l=a[9]*h,m=a[10]*u,P=e+f+m,E=0;P>0?(E=2*Math.sqrt(P+1),t[3]=.25*E,t[0]=(b-l)/E,t[1]=(v-i)/E,t[2]=(M-c)/E):e>f&&e>m?(E=2*Math.sqrt(1+e-f-m),t[3]=(b-l)/E,t[0]=.25*E,t[1]=(M+c)/E,t[2]=(v+i)/E):f>m?(E=2*Math.sqrt(1+f-e-m),t[3]=(v-i)/E,t[0]=(M+c)/E,t[1]=.25*E,t[2]=(b+l)/E):(E=2*Math.sqrt(1+m-e-f),t[3]=(M-c)/E,t[0]=(v+i)/E,t[1]=(b+l)/E,t[2]=.25*E);return t},n.fromRotationTranslationScale=function(t,a,n,r){var h=a[0],o=a[1],u=a[2],e=a[3],M=h+h,s=o+o,i=u+u,c=h*M,f=h*s,b=h*i,v=o*s,l=o*i,m=u*i,P=e*M,E=e*s,S=e*i,O=r[0],I=r[1],p=r[2];return t[0]=(1-(v+m))*O,t[1]=(f+S)*O,t[2]=(b-E)*O,t[3]=0,t[4]=(f-S)*I,t[5]=(1-(c+m))*I,t[6]=(l+P)*I,t[7]=0,t[8]=(b+E)*p,t[9]=(l-P)*p,t[10]=(1-(c+v))*p,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},n.fromRotationTranslationScaleOrigin=function(t,a,n,r,h){var o=a[0],u=a[1],e=a[2],M=a[3],s=o+o,i=u+u,c=e+e,f=o*s,b=o*i,v=o*c,l=u*i,m=u*c,P=e*c,E=M*s,S=M*i,O=M*c,I=r[0],p=r[1],N=r[2],L=h[0],R=h[1],x=h[2],A=(1-(l+P))*I,y=(b+O)*I,Y=(v-S)*I,g=(b-O)*p,T=(1-(f+P))*p,d=(m+E)*p,_=(v+S)*N,q=(m-E)*N,w=(1-(f+l))*N;return t[0]=A,t[1]=y,t[2]=Y,t[3]=0,t[4]=g,t[5]=T,t[6]=d,t[7]=0,t[8]=_,t[9]=q,t[10]=w,t[11]=0,t[12]=n[0]+L-(A*L+g*R+_*x),t[13]=n[1]+R-(y*L+T*R+q*x),t[14]=n[2]+x-(Y*L+d*R+w*x),t[15]=1,t},n.fromQuat=function(t,a){var n=a[0],r=a[1],h=a[2],o=a[3],u=n+n,e=r+r,M=h+h,s=n*u,i=r*u,c=r*e,f=h*u,b=h*e,v=h*M,l=o*u,m=o*e,P=o*M;return t[0]=1-c-v,t[1]=i+P,t[2]=f-m,t[3]=0,t[4]=i-P,t[5]=1-s-v,t[6]=b+l,t[7]=0,t[8]=f+m,t[9]=b-l,t[10]=1-s-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},n.frustum=function(t,a,n,r,h,o,u){var e=1/(n-a),M=1/(h-r),s=1/(o-u);return t[0]=2*o*e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*M,t[6]=0,t[7]=0,t[8]=(n+a)*e,t[9]=(h+r)*M,t[10]=(u+o)*s,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*o*2*s,t[15]=0,t},n.perspectiveNO=i,n.perspectiveZO=function(t,a,n,r,h){var o,u=1/Math.tan(a/2);t[0]=u/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=h&&h!==1/0?(o=1/(r-h),t[10]=h*o,t[14]=h*r*o):(t[10]=-1,t[14]=-r);return t},n.perspectiveFromFieldOfView=function(t,a,n,r){var h=Math.tan(a.upDegrees*Math.PI/180),o=Math.tan(a.downDegrees*Math.PI/180),u=Math.tan(a.leftDegrees*Math.PI/180),e=Math.tan(a.rightDegrees*Math.PI/180),M=2/(u+e),s=2/(h+o);return t[0]=M,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=-(u-e)*M*.5,t[9]=(h-o)*s*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},n.orthoNO=c,n.orthoZO=function(t,a,n,r,h,o,u){var e=1/(a-n),M=1/(r-h),s=1/(o-u);return t[0]=-2*e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*M,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=s,t[11]=0,t[12]=(a+n)*e,t[13]=(h+r)*M,t[14]=o*s,t[15]=1,t},n.lookAt=function(t,a,n,r){var h,e,M,s,i,c,f,b,v,l,m=a[0],P=a[1],E=a[2],S=r[0],O=r[1],I=r[2],p=n[0],N=n[1],L=n[2];if(Math.abs(m-p)<o.EPSILON&&Math.abs(P-N)<o.EPSILON&&Math.abs(E-L)<o.EPSILON)return u(t);f=m-p,b=P-N,v=E-L,l=1/Math.hypot(f,b,v),h=O*(v*=l)-I*(b*=l),e=I*(f*=l)-S*v,M=S*b-O*f,(l=Math.hypot(h,e,M))?(h*=l=1/l,e*=l,M*=l):(h=0,e=0,M=0);s=b*M-v*e,i=v*h-f*M,c=f*e-b*h,(l=Math.hypot(s,i,c))?(s*=l=1/l,i*=l,c*=l):(s=0,i=0,c=0);return t[0]=h,t[1]=s,t[2]=f,t[3]=0,t[4]=e,t[5]=i,t[6]=b,t[7]=0,t[8]=M,t[9]=c,t[10]=v,t[11]=0,t[12]=-(h*m+e*P+M*E),t[13]=-(s*m+i*P+c*E),t[14]=-(f*m+b*P+v*E),t[15]=1,t},n.targetTo=function(t,a,n,r){var h=a[0],o=a[1],u=a[2],e=r[0],M=r[1],s=r[2],i=h-n[0],c=o-n[1],f=u-n[2],b=i*i+c*c+f*f;b>0&&(i*=b=1/Math.sqrt(b),c*=b,f*=b);var v=M*f-s*c,l=s*i-e*f,m=e*c-M*i;(b=v*v+l*l+m*m)>0&&(v*=b=1/Math.sqrt(b),l*=b,m*=b);return t[0]=v,t[1]=l,t[2]=m,t[3]=0,t[4]=c*m-f*l,t[5]=f*v-i*m,t[6]=i*l-c*v,t[7]=0,t[8]=i,t[9]=c,t[10]=f,t[11]=0,t[12]=h,t[13]=o,t[14]=u,t[15]=1,t},n.str=function(t){return\"mat4(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\", \"+t[4]+\", \"+t[5]+\", \"+t[6]+\", \"+t[7]+\", \"+t[8]+\", \"+t[9]+\", \"+t[10]+\", \"+t[11]+\", \"+t[12]+\", \"+t[13]+\", \"+t[14]+\", \"+t[15]+\")\"},n.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t[8]=a[8]+n[8],t[9]=a[9]+n[9],t[10]=a[10]+n[10],t[11]=a[11]+n[11],t[12]=a[12]+n[12],t[13]=a[13]+n[13],t[14]=a[14]+n[14],t[15]=a[15]+n[15],t},n.subtract=f,n.multiplyScalar=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t[8]=a[8]*n,t[9]=a[9]*n,t[10]=a[10]*n,t[11]=a[11]*n,t[12]=a[12]*n,t[13]=a[13]*n,t[14]=a[14]*n,t[15]=a[15]*n,t},n.multiplyScalarAndAdd=function(t,a,n,r){return t[0]=a[0]+n[0]*r,t[1]=a[1]+n[1]*r,t[2]=a[2]+n[2]*r,t[3]=a[3]+n[3]*r,t[4]=a[4]+n[4]*r,t[5]=a[5]+n[5]*r,t[6]=a[6]+n[6]*r,t[7]=a[7]+n[7]*r,t[8]=a[8]+n[8]*r,t[9]=a[9]+n[9]*r,t[10]=a[10]+n[10]*r,t[11]=a[11]+n[11]*r,t[12]=a[12]+n[12]*r,t[13]=a[13]+n[13]*r,t[14]=a[14]+n[14]*r,t[15]=a[15]+n[15]*r,t},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]&&t[8]===a[8]&&t[9]===a[9]&&t[10]===a[10]&&t[11]===a[11]&&t[12]===a[12]&&t[13]===a[13]&&t[14]===a[14]&&t[15]===a[15]},n.equals=function(t,a){var n=t[0],r=t[1],h=t[2],u=t[3],e=t[4],M=t[5],s=t[6],i=t[7],c=t[8],f=t[9],b=t[10],v=t[11],l=t[12],m=t[13],P=t[14],E=t[15],S=a[0],O=a[1],I=a[2],p=a[3],N=a[4],L=a[5],R=a[6],x=a[7],A=a[8],y=a[9],Y=a[10],g=a[11],T=a[12],d=a[13],_=a[14],q=a[15];return Math.abs(n-S)<=o.EPSILON*Math.max(1,Math.abs(n),Math.abs(S))&&Math.abs(r-O)<=o.EPSILON*Math.max(1,Math.abs(r),Math.abs(O))&&Math.abs(h-I)<=o.EPSILON*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(u-p)<=o.EPSILON*Math.max(1,Math.abs(u),Math.abs(p))&&Math.abs(e-N)<=o.EPSILON*Math.max(1,Math.abs(e),Math.abs(N))&&Math.abs(M-L)<=o.EPSILON*Math.max(1,Math.abs(M),Math.abs(L))&&Math.abs(s-R)<=o.EPSILON*Math.max(1,Math.abs(s),Math.abs(R))&&Math.abs(i-x)<=o.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(c-A)<=o.EPSILON*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(f-y)<=o.EPSILON*Math.max(1,Math.abs(f),Math.abs(y))&&Math.abs(b-Y)<=o.EPSILON*Math.max(1,Math.abs(b),Math.abs(Y))&&Math.abs(v-g)<=o.EPSILON*Math.max(1,Math.abs(v),Math.abs(g))&&Math.abs(l-T)<=o.EPSILON*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(m-d)<=o.EPSILON*Math.max(1,Math.abs(m),Math.abs(d))&&Math.abs(P-_)<=o.EPSILON*Math.max(1,Math.abs(P),Math.abs(_))&&Math.abs(E-q)<=o.EPSILON*Math.max(1,Math.abs(E),Math.abs(q))};const o=t(\"tslib\").__importStar(t(\"7d825b979e\"));function u(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function e(t,a,n){var r=a[0],h=a[1],o=a[2],u=a[3],e=a[4],M=a[5],s=a[6],i=a[7],c=a[8],f=a[9],b=a[10],v=a[11],l=a[12],m=a[13],P=a[14],E=a[15],S=n[0],O=n[1],I=n[2],p=n[3];return t[0]=S*r+O*e+I*c+p*l,t[1]=S*h+O*M+I*f+p*m,t[2]=S*o+O*s+I*b+p*P,t[3]=S*u+O*i+I*v+p*E,S=n[4],O=n[5],I=n[6],p=n[7],t[4]=S*r+O*e+I*c+p*l,t[5]=S*h+O*M+I*f+p*m,t[6]=S*o+O*s+I*b+p*P,t[7]=S*u+O*i+I*v+p*E,S=n[8],O=n[9],I=n[10],p=n[11],t[8]=S*r+O*e+I*c+p*l,t[9]=S*h+O*M+I*f+p*m,t[10]=S*o+O*s+I*b+p*P,t[11]=S*u+O*i+I*v+p*E,S=n[12],O=n[13],I=n[14],p=n[15],t[12]=S*r+O*e+I*c+p*l,t[13]=S*h+O*M+I*f+p*m,t[14]=S*o+O*s+I*b+p*P,t[15]=S*u+O*i+I*v+p*E,t}function M(t,a,n){var r=a[0],h=a[1],o=a[2],u=a[3],e=r+r,M=h+h,s=o+o,i=r*e,c=r*M,f=r*s,b=h*M,v=h*s,l=o*s,m=u*e,P=u*M,E=u*s;return t[0]=1-(b+l),t[1]=c+E,t[2]=f-P,t[3]=0,t[4]=c-E,t[5]=1-(i+l),t[6]=v+m,t[7]=0,t[8]=f+P,t[9]=v-m,t[10]=1-(i+b),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function s(t,a){var n=a[0],r=a[1],h=a[2],o=a[4],u=a[5],e=a[6],M=a[8],s=a[9],i=a[10];return t[0]=Math.hypot(n,r,h),t[1]=Math.hypot(o,u,e),t[2]=Math.hypot(M,s,i),t}function i(t,a,n,r,h){var o,u=1/Math.tan(a/2);return t[0]=u/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=h&&h!==1/0?(o=1/(r-h),t[10]=(h+r)*o,t[14]=2*h*r*o):(t[10]=-1,t[14]=-2*r),t}function c(t,a,n,r,h,o,u){var e=1/(a-n),M=1/(r-h),s=1/(o-u);return t[0]=-2*e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*M,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*s,t[11]=0,t[12]=(a+n)*e,t[13]=(h+r)*M,t[14]=(u+o)*s,t[15]=1,t}function f(t,a,n){return t[0]=a[0]-n[0],t[1]=a[1]-n[1],t[2]=a[2]-n[2],t[3]=a[3]-n[3],t[4]=a[4]-n[4],t[5]=a[5]-n[5],t[6]=a[6]-n[6],t[7]=a[7]-n[7],t[8]=a[8]-n[8],t[9]=a[9]-n[9],t[10]=a[10]-n[10],t[11]=a[11]-n[11],t[12]=a[12]-n[12],t[13]=a[13]-n[13],t[14]=a[14]-n[14],t[15]=a[15]-n[15],t}n.perspective=i,n.ortho=c,n.mul=e,n.sub=f}\n//# sourceMappingURL=mat4.min.js.map","min_map":"{\"version\":3,\"file\":\"mat4.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"create\",\"out\",\"glMatrix\",\"ARRAY_TYPE\",\"Float32Array\",\"clone\",\"a\",\"copy\",\"fromValues\",\"m00\",\"m01\",\"m02\",\"m03\",\"m10\",\"m11\",\"m12\",\"m13\",\"m20\",\"m21\",\"m22\",\"m23\",\"m30\",\"m31\",\"m32\",\"m33\",\"set\",\"identity\",\"transpose\",\"a01\",\"a02\",\"a03\",\"a12\",\"a13\",\"a23\",\"invert\",\"a00\",\"a10\",\"a11\",\"a20\",\"a21\",\"a22\",\"a30\",\"a31\",\"a32\",\"a33\",\"b00\",\"b01\",\"b02\",\"b03\",\"b04\",\"b05\",\"b06\",\"b07\",\"b08\",\"b09\",\"b10\",\"b11\",\"det\",\"adjoint\",\"determinant\",\"multiply\",\"translate\",\"v\",\"x\",\"y\",\"z\",\"scale\",\"rotate\",\"rad\",\"axis\",\"s\",\"c\",\"t\",\"b12\",\"b20\",\"b21\",\"b22\",\"len\",\"Math\",\"hypot\",\"EPSILON\",\"sin\",\"cos\",\"rotateX\",\"rotateY\",\"rotateZ\",\"fromTranslation\",\"fromScaling\",\"fromRotation\",\"fromXRotation\",\"fromYRotation\",\"fromZRotation\",\"fromRotationTranslation\",\"fromQuat2\",\"translation\",\"bx\",\"by\",\"bz\",\"bw\",\"ax\",\"ay\",\"az\",\"aw\",\"magnitude\",\"getTranslation\",\"mat\",\"getScaling\",\"getRotation\",\"scaling\",\"is1\",\"is2\",\"is3\",\"sm11\",\"sm12\",\"sm13\",\"sm21\",\"sm22\",\"sm23\",\"sm31\",\"sm32\",\"sm33\",\"trace\",\"S\",\"sqrt\",\"fromRotationTranslationScale\",\"q\",\"w\",\"x2\",\"y2\",\"z2\",\"xx\",\"xy\",\"xz\",\"yy\",\"yz\",\"zz\",\"wx\",\"wy\",\"wz\",\"sx\",\"sy\",\"sz\",\"fromRotationTranslationScaleOrigin\",\"o\",\"ox\",\"oy\",\"oz\",\"out0\",\"out1\",\"out2\",\"out4\",\"out5\",\"out6\",\"out8\",\"out9\",\"out10\",\"fromQuat\",\"yx\",\"zx\",\"zy\",\"frustum\",\"left\",\"right\",\"bottom\",\"top\",\"near\",\"far\",\"rl\",\"tb\",\"nf\",\"perspectiveNO\",\"perspectiveZO\",\"fovy\",\"aspect\",\"f\",\"tan\",\"Infinity\",\"perspectiveFromFieldOfView\",\"fov\",\"upTan\",\"upDegrees\",\"PI\",\"downTan\",\"downDegrees\",\"leftTan\",\"leftDegrees\",\"rightTan\",\"rightDegrees\",\"xScale\",\"yScale\",\"orthoNO\",\"orthoZO\",\"lr\",\"bt\",\"lookAt\",\"eye\",\"center\",\"up\",\"x0\",\"x1\",\"y0\",\"y1\",\"z0\",\"z1\",\"eyex\",\"eyey\",\"eyez\",\"upx\",\"upy\",\"upz\",\"centerx\",\"centery\",\"centerz\",\"abs\",\"targetTo\",\"target\",\"str\",\"frob\",\"add\",\"b\",\"subtract\",\"multiplyScalar\",\"multiplyScalarAndAdd\",\"exactEquals\",\"equals\",\"a0\",\"a1\",\"a2\",\"a3\",\"a4\",\"a5\",\"a6\",\"a7\",\"a8\",\"a9\",\"a14\",\"a15\",\"b0\",\"b1\",\"b2\",\"b3\",\"b4\",\"b5\",\"b6\",\"b7\",\"b8\",\"b9\",\"b13\",\"b14\",\"b15\",\"max\",\"__importStar\",\"perspective\",\"ortho\",\"mul\",\"sub\"],\"sources\":[\"0\"],\"mappings\":\"AAA4B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzED,IACAD,EAAQG,OA0DR,WACI,IAAIC,EAAM,IAAIC,EAASC,WAAW,IAC9BD,EAASC,YAAcC,eACvBH,EAAI,GAAK,EACTA,EAAI,GAAK,EACTA,EAAI,GAAK,EACTA,EAAI,GAAK,EACTA,EAAI,GAAK,EACTA,EAAI,GAAK,EACTA,EAAI,GAAK,EACTA,EAAI,GAAK,EACTA,EAAI,IAAM,EACVA,EAAI,IAAM,EACVA,EAAI,IAAM,EACVA,EAAI,IAAM,GAMd,OAJAA,EAAI,GAAK,EACTA,EAAI,GAAK,EACTA,EAAI,IAAM,EACVA,EAAI,IAAM,EACHA,CACX,EA9EAJ,EAAQQ,MAqFR,SAAeC,GACX,IAAIL,EAAM,IAAIC,EAASC,WAAW,IAiBlC,OAhBAF,EAAI,GAAKK,EAAE,GACXL,EAAI,GAAKK,EAAE,GACXL,EAAI,GAAKK,EA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AKqN,EAAE,GAClB1N,EAAI,GAAKK,EAAE,GAAKqN,EAAE,GAClB1N,EAAI,GAAKK,EAAE,GAAKqN,EAAE,GAClB1N,EAAI,GAAKK,EAAE,GAAKqN,EAAE,GAClB1N,EAAI,GAAKK,EAAE,GAAKqN,EAAE,GAClB1N,EAAI,IAAMK,EAAE,IAAMqN,EAAE,IACpB1N,EAAI,IAAMK,EAAE,IAAMqN,EAAE,IACpB1N,EAAI,IAAMK,EAAE,IAAMqN,EAAE,IACpB1N,EAAI,IAAMK,EAAE,IAAMqN,EAAE,IACpB1N,EAAI,IAAMK,EAAE,IAAMqN,EAAE,IACpB1N,EAAI,IAAMK,EAAE,IAAMqN,EAAE,IACb1N,CACX,CA7VAJ,EAAQ+P,YAAclF,EAqHtB7K,EAAQgQ,MAAQ/D,EAgUhBjM,EAAQiQ,IAAMlM,EAKd/D,EAAQkQ,IAAMnC,CAClB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/quat.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"gl-matrix/esm/quat.js","resolution":"ESM","id":"f83fe7c413","hash":"f83fe7c4136ea8006fe53ad9e092a1a7ab674e8c7299a9fa17685e76f2c8d4b7","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setAxes = exports.sqlerp = exports.rotationTo = exports.equals = exports.exactEquals = exports.normalize = exports.sqrLen = exports.squaredLength = exports.len = exports.length = exports.lerp = exports.dot = exports.scale = exports.mul = exports.add = exports.set = exports.copy = exports.fromValues = exports.clone = void 0;\nexports.create = create;\nexports.identity = identity;\nexports.setAxisAngle = setAxisAngle;\nexports.getAxisAngle = getAxisAngle;\nexports.getAngle = getAngle;\nexports.multiply = multiply;\nexports.rotateX = rotateX;\nexports.rotateY = rotateY;\nexports.rotateZ = rotateZ;\nexports.calculateW = calculateW;\nexports.exp = exp;\nexports.ln = ln;\nexports.pow = pow;\nexports.slerp = slerp;\nexports.random = random;\nexports.invert = invert;\nexports.conjugate = conjugate;\nexports.fromMat3 = fromMat3;\nexports.fromEuler = fromEuler;\nexports.str = str;\nconst tslib_1 = require(\"tslib\");\nconst glMatrix = tslib_1.__importStar(require(\"./common.js\"));\nconst mat3 = tslib_1.__importStar(require(\"./mat3.js\"));\nconst vec3 = tslib_1.__importStar(require(\"./vec3.js\"));\nconst vec4 = tslib_1.__importStar(require(\"./vec4.js\"));\n/**\n * Quaternion\n * @module quat\n */\n/**\n * Creates a new identity quat\n *\n * @returns {quat} a new quaternion\n */\nfunction create() {\n    var out = new glMatrix.ARRAY_TYPE(4);\n    if (glMatrix.ARRAY_TYPE != Float32Array) {\n        out[0] = 0;\n        out[1] = 0;\n        out[2] = 0;\n    }\n    out[3] = 1;\n    return out;\n}\n/**\n * Set a quat to the identity quaternion\n *\n * @param {quat} out the receiving quaternion\n * @returns {quat} out\n */\nfunction identity(out) {\n    out[0] = 0;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 1;\n    return out;\n}\n/**\n * Sets a quat from the given angle and rotation axis,\n * then returns it.\n *\n * @param {quat} out the receiving quaternion\n * @param {ReadonlyVec3} axis the axis around which to rotate\n * @param {Number} rad the angle in radians\n * @returns {quat} out\n **/\nfunction setAxisAngle(out, axis, rad) {\n    rad = rad * 0.5;\n    var s = Math.sin(rad);\n    out[0] = s * axis[0];\n    out[1] = s * axis[1];\n    out[2] = s * axis[2];\n    out[3] = Math.cos(rad);\n    return out;\n}\n/**\n * Gets the rotation axis and angle for a given\n *  quaternion. If a quaternion is created with\n *  setAxisAngle, this method will return the same\n *  values as providied in the original parameter list\n *  OR functionally equivalent values.\n * Example: The quaternion formed by axis [0, 0, 1] and\n *  angle -90 is the same as the quaternion formed by\n *  [0, 0, 1] and 270. This method favors the latter.\n * @param  {vec3} out_axis  Vector receiving the axis of rotation\n * @param  {ReadonlyQuat} q     Quaternion to be decomposed\n * @return {Number}     Angle, in radians, of the rotation\n */\nfunction getAxisAngle(out_axis, q) {\n    var rad = Math.acos(q[3]) * 2.0;\n    var s = Math.sin(rad / 2.0);\n    if (s > glMatrix.EPSILON) {\n        out_axis[0] = q[0] / s;\n        out_axis[1] = q[1] / s;\n        out_axis[2] = q[2] / s;\n    }\n    else {\n        // If s is zero, return any axis (no rotation - axis does not matter)\n        out_axis[0] = 1;\n        out_axis[1] = 0;\n        out_axis[2] = 0;\n    }\n    return rad;\n}\n/**\n * Gets the angular distance between two unit quaternions\n *\n * @param  {ReadonlyQuat} a     Origin unit quaternion\n * @param  {ReadonlyQuat} b     Destination unit quaternion\n * @return {Number}     Angle, in radians, between the two quaternions\n */\nfunction getAngle(a, b) {\n    var dotproduct = (0, exports.dot)(a, b);\n    return Math.acos(2 * dotproduct * dotproduct - 1);\n}\n/**\n * Multiplies two quat's\n *\n * @param {quat} out the receiving quaternion\n * @param {ReadonlyQuat} a the first operand\n * @param {ReadonlyQuat} b the second operand\n * @returns {quat} out\n */\nfunction multiply(out, a, b) {\n    var ax = a[0], ay = a[1], az = a[2], aw = a[3];\n    var bx = b[0], by = b[1], bz = b[2], bw = b[3];\n    out[0] = ax * bw + aw * bx + ay * bz - az * by;\n    out[1] = ay * bw + aw * by + az * bx - ax * bz;\n    out[2] = az * bw + aw * bz + ax * by - ay * bx;\n    out[3] = aw * bw - ax * bx - ay * by - az * bz;\n    return out;\n}\n/**\n * Rotates a quaternion by the given angle about the X axis\n *\n * @param {quat} out quat receiving operation result\n * @param {ReadonlyQuat} a quat to rotate\n * @param {number} rad angle (in radians) to rotate\n * @returns {quat} out\n */\nfunction rotateX(out, a, rad) {\n    rad *= 0.5;\n    var ax = a[0], ay = a[1], az = a[2], aw = a[3];\n    var bx = Math.sin(rad), bw = Math.cos(rad);\n    out[0] = ax * bw + aw * bx;\n    out[1] = ay * bw + az * bx;\n    out[2] = az * bw - ay * bx;\n    out[3] = aw * bw - ax * bx;\n    return out;\n}\n/**\n * Rotates a quaternion by the given angle about the Y axis\n *\n * @param {quat} out quat receiving operation result\n * @param {ReadonlyQuat} a quat to rotate\n * @param {number} rad angle (in radians) to rotate\n * @returns {quat} out\n */\nfunction rotateY(out, a, rad) {\n    rad *= 0.5;\n    var ax = a[0], ay = a[1], az = a[2], aw = a[3];\n    var by = Math.sin(rad), bw = Math.cos(rad);\n    out[0] = ax * bw - az * by;\n    out[1] = ay * bw + aw * by;\n    out[2] = az * bw + ax * by;\n    out[3] = aw * bw - ay * by;\n    return out;\n}\n/**\n * Rotates a quaternion by the given angle about the Z axis\n *\n * @param {quat} out quat receiving operation result\n * @param {ReadonlyQuat} a quat to rotate\n * @param {number} rad angle (in radians) to rotate\n * @returns {quat} out\n */\nfunction rotateZ(out, a, rad) {\n    rad *= 0.5;\n    var ax = a[0], ay = a[1], az = a[2], aw = a[3];\n    var bz = Math.sin(rad), bw = Math.cos(rad);\n    out[0] = ax * bw + ay * bz;\n    out[1] = ay * bw - ax * bz;\n    out[2] = az * bw + aw * bz;\n    out[3] = aw * bw - az * bz;\n    return out;\n}\n/**\n * Calculates the W component of a quat from the X, Y, and Z components.\n * Assumes that quaternion is 1 unit in length.\n * Any existing W component will be ignored.\n *\n * @param {quat} out the receiving quaternion\n * @param {ReadonlyQuat} a quat to calculate W component of\n * @returns {quat} out\n */\nfunction calculateW(out, a) {\n    var x = a[0], y = a[1], z = a[2];\n    out[0] = x;\n    out[1] = y;\n    out[2] = z;\n    out[3] = Math.sqrt(Math.abs(1.0 - x * x - y * y - z * z));\n    return out;\n}\n/**\n * Calculate the exponential of a unit quaternion.\n *\n * @param {quat} out the receiving quaternion\n * @param {ReadonlyQuat} a quat to calculate the exponential of\n * @returns {quat} out\n */\nfunction exp(out, a) {\n    var x = a[0], y = a[1], z = a[2], w = a[3];\n    var r = Math.sqrt(x * x + y * y + z * z);\n    var et = Math.exp(w);\n    var s = r > 0 ? et * Math.sin(r) / r : 0;\n    out[0] = x * s;\n    out[1] = y * s;\n    out[2] = z * s;\n    out[3] = et * Math.cos(r);\n    return out;\n}\n/**\n * Calculate the natural logarithm of a unit quaternion.\n *\n * @param {quat} out the receiving quaternion\n * @param {ReadonlyQuat} a quat to calculate the exponential of\n * @returns {quat} out\n */\nfunction ln(out, a) {\n    var x = a[0], y = a[1], z = a[2], w = a[3];\n    var r = Math.sqrt(x * x + y * y + z * z);\n    var t = r > 0 ? Math.atan2(r, w) / r : 0;\n    out[0] = x * t;\n    out[1] = y * t;\n    out[2] = z * t;\n    out[3] = 0.5 * Math.log(x * x + y * y + z * z + w * w);\n    return out;\n}\n/**\n * Calculate the scalar power of a unit quaternion.\n *\n * @param {quat} out the receiving quaternion\n * @param {ReadonlyQuat} a quat to calculate the exponential of\n * @param {Number} b amount to scale the quaternion by\n * @returns {quat} out\n */\nfunction pow(out, a, b) {\n    ln(out, a);\n    (0, exports.scale)(out, out, b);\n    exp(out, out);\n    return out;\n}\n/**\n * Performs a spherical linear interpolation between two quat\n *\n * @param {quat} out the receiving quaternion\n * @param {ReadonlyQuat} a the first operand\n * @param {ReadonlyQuat} b the second operand\n * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n * @returns {quat} out\n */\nfunction slerp(out, a, b, t) {\n    // benchmarks:\n    //    http://jsperf.com/quaternion-slerp-implementations\n    var ax = a[0], ay = a[1], az = a[2], aw = a[3];\n    var bx = b[0], by = b[1], bz = b[2], bw = b[3];\n    var omega, cosom, sinom, scale0, scale1; // calc cosine\n    cosom = ax * bx + ay * by + az * bz + aw * bw; // adjust signs (if necessary)\n    if (cosom < 0.0) {\n        cosom = -cosom;\n        bx = -bx;\n        by = -by;\n        bz = -bz;\n        bw = -bw;\n    } // calculate coefficients\n    if (1.0 - cosom > glMatrix.EPSILON) {\n        // standard case (slerp)\n        omega = Math.acos(cosom);\n        sinom = Math.sin(omega);\n        scale0 = Math.sin((1.0 - t) * omega) / sinom;\n        scale1 = Math.sin(t * omega) / sinom;\n    }\n    else {\n        // \"from\" and \"to\" quaternions are very close\n        //  ... so we can do a linear interpolation\n        scale0 = 1.0 - t;\n        scale1 = t;\n    } // calculate final values\n    out[0] = scale0 * ax + scale1 * bx;\n    out[1] = scale0 * ay + scale1 * by;\n    out[2] = scale0 * az + scale1 * bz;\n    out[3] = scale0 * aw + scale1 * bw;\n    return out;\n}\n/**\n * Generates a random unit quaternion\n *\n * @param {quat} out the receiving quaternion\n * @returns {quat} out\n */\nfunction random(out) {\n    // Implementation of http://planning.cs.uiuc.edu/node198.html\n    // TODO: Calling random 3 times is probably not the fastest solution\n    var u1 = glMatrix.RANDOM();\n    var u2 = glMatrix.RANDOM();\n    var u3 = glMatrix.RANDOM();\n    var sqrt1MinusU1 = Math.sqrt(1 - u1);\n    var sqrtU1 = Math.sqrt(u1);\n    out[0] = sqrt1MinusU1 * Math.sin(2.0 * Math.PI * u2);\n    out[1] = sqrt1MinusU1 * Math.cos(2.0 * Math.PI * u2);\n    out[2] = sqrtU1 * Math.sin(2.0 * Math.PI * u3);\n    out[3] = sqrtU1 * Math.cos(2.0 * Math.PI * u3);\n    return out;\n}\n/**\n * Calculates the inverse of a quat\n *\n * @param {quat} out the receiving quaternion\n * @param {ReadonlyQuat} a quat to calculate inverse of\n * @returns {quat} out\n */\nfunction invert(out, a) {\n    var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3];\n    var dot = a0 * a0 + a1 * a1 + a2 * a2 + a3 * a3;\n    var invDot = dot ? 1.0 / dot : 0; // TODO: Would be faster to return [0,0,0,0] immediately if dot == 0\n    out[0] = -a0 * invDot;\n    out[1] = -a1 * invDot;\n    out[2] = -a2 * invDot;\n    out[3] = a3 * invDot;\n    return out;\n}\n/**\n * Calculates the conjugate of a quat\n * If the quaternion is normalized, this function is faster than quat.inverse and produces the same result.\n *\n * @param {quat} out the receiving quaternion\n * @param {ReadonlyQuat} a quat to calculate conjugate of\n * @returns {quat} out\n */\nfunction conjugate(out, a) {\n    out[0] = -a[0];\n    out[1] = -a[1];\n    out[2] = -a[2];\n    out[3] = a[3];\n    return out;\n}\n/**\n * Creates a quaternion from the given 3x3 rotation matrix.\n *\n * NOTE: The resultant quaternion is not normalized, so you should be sure\n * to renormalize the quaternion yourself where necessary.\n *\n * @param {quat} out the receiving quaternion\n * @param {ReadonlyMat3} m rotation matrix\n * @returns {quat} out\n * @function\n */\nfunction fromMat3(out, m) {\n    // Algorithm in Ken Shoemake's article in 1987 SIGGRAPH course notes\n    // article \"Quaternion Calculus and Fast Animation\".\n    var fTrace = m[0] + m[4] + m[8];\n    var fRoot;\n    if (fTrace > 0.0) {\n        // |w| > 1/2, may as well choose w > 1/2\n        fRoot = Math.sqrt(fTrace + 1.0); // 2w\n        out[3] = 0.5 * fRoot;\n        fRoot = 0.5 / fRoot; // 1/(4w)\n        out[0] = (m[5] - m[7]) * fRoot;\n        out[1] = (m[6] - m[2]) * fRoot;\n        out[2] = (m[1] - m[3]) * fRoot;\n    }\n    else {\n        // |w| <= 1/2\n        var i = 0;\n        if (m[4] > m[0])\n            i = 1;\n        if (m[8] > m[i * 3 + i])\n            i = 2;\n        var j = (i + 1) % 3;\n        var k = (i + 2) % 3;\n        fRoot = Math.sqrt(m[i * 3 + i] - m[j * 3 + j] - m[k * 3 + k] + 1.0);\n        out[i] = 0.5 * fRoot;\n        fRoot = 0.5 / fRoot;\n        out[3] = (m[j * 3 + k] - m[k * 3 + j]) * fRoot;\n        out[j] = (m[j * 3 + i] + m[i * 3 + j]) * fRoot;\n        out[k] = (m[k * 3 + i] + m[i * 3 + k]) * fRoot;\n    }\n    return out;\n}\n/**\n * Creates a quaternion from the given euler angle x, y, z.\n *\n * @param {quat} out the receiving quaternion\n * @param {x} Angle to rotate around X axis in degrees.\n * @param {y} Angle to rotate around Y axis in degrees.\n * @param {z} Angle to rotate around Z axis in degrees.\n * @returns {quat} out\n * @function\n */\nfunction fromEuler(out, x, y, z) {\n    var halfToRad = 0.5 * Math.PI / 180.0;\n    x *= halfToRad;\n    y *= halfToRad;\n    z *= halfToRad;\n    var sx = Math.sin(x);\n    var cx = Math.cos(x);\n    var sy = Math.sin(y);\n    var cy = Math.cos(y);\n    var sz = Math.sin(z);\n    var cz = Math.cos(z);\n    out[0] = sx * cy * cz - cx * sy * sz;\n    out[1] = cx * sy * cz + sx * cy * sz;\n    out[2] = cx * cy * sz - sx * sy * cz;\n    out[3] = cx * cy * cz + sx * sy * sz;\n    return out;\n}\n/**\n * Returns a string representation of a quatenion\n *\n * @param {ReadonlyQuat} a vector to represent as a string\n * @returns {String} string representation of the vector\n */\nfunction str(a) {\n    return \"quat(\" + a[0] + \", \" + a[1] + \", \" + a[2] + \", \" + a[3] + \")\";\n}\n/**\n * Creates a new quat initialized with values from an existing quaternion\n *\n * @param {ReadonlyQuat} a quaternion to clone\n * @returns {quat} a new quaternion\n * @function\n */\nexports.clone = vec4.clone;\n/**\n * Creates a new quat initialized with the given values\n *\n * @param {Number} x X component\n * @param {Number} y Y component\n * @param {Number} z Z component\n * @param {Number} w W component\n * @returns {quat} a new quaternion\n * @function\n */\nexports.fromValues = vec4.fromValues;\n/**\n * Copy the values from one quat to another\n *\n * @param {quat} out the receiving quaternion\n * @param {ReadonlyQuat} a the source quaternion\n * @returns {quat} out\n * @function\n */\nexports.copy = vec4.copy;\n/**\n * Set the components of a quat to the given values\n *\n * @param {quat} out the receiving quaternion\n * @param {Number} x X component\n * @param {Number} y Y component\n * @param {Number} z Z component\n * @param {Number} w W component\n * @returns {quat} out\n * @function\n */\nexports.set = vec4.set;\n/**\n * Adds two quat's\n *\n * @param {quat} out the receiving quaternion\n * @param {ReadonlyQuat} a the first operand\n * @param {ReadonlyQuat} b the second operand\n * @returns {quat} out\n * @function\n */\nexports.add = vec4.add;\n/**\n * Alias for {@link quat.multiply}\n * @function\n */\nexports.mul = multiply;\n/**\n * Scales a quat by a scalar number\n *\n * @param {quat} out the receiving vector\n * @param {ReadonlyQuat} a the vector to scale\n * @param {Number} b amount to scale the vector by\n * @returns {quat} out\n * @function\n */\nexports.scale = vec4.scale;\n/**\n * Calculates the dot product of two quat's\n *\n * @param {ReadonlyQuat} a the first operand\n * @param {ReadonlyQuat} b the second operand\n * @returns {Number} dot product of a and b\n * @function\n */\nexports.dot = vec4.dot;\n/**\n * Performs a linear interpolation between two quat's\n *\n * @param {quat} out the receiving quaternion\n * @param {ReadonlyQuat} a the first operand\n * @param {ReadonlyQuat} b the second operand\n * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n * @returns {quat} out\n * @function\n */\nexports.lerp = vec4.lerp;\n/**\n * Calculates the length of a quat\n *\n * @param {ReadonlyQuat} a vector to calculate length of\n * @returns {Number} length of a\n */\nexports.length = vec4.length;\n/**\n * Alias for {@link quat.length}\n * @function\n */\nexports.len = exports.length;\n/**\n * Calculates the squared length of a quat\n *\n * @param {ReadonlyQuat} a vector to calculate squared length of\n * @returns {Number} squared length of a\n * @function\n */\nexports.squaredLength = vec4.squaredLength;\n/**\n * Alias for {@link quat.squaredLength}\n * @function\n */\nexports.sqrLen = exports.squaredLength;\n/**\n * Normalize a quat\n *\n * @param {quat} out the receiving quaternion\n * @param {ReadonlyQuat} a quaternion to normalize\n * @returns {quat} out\n * @function\n */\nexports.normalize = vec4.normalize;\n/**\n * Returns whether or not the quaternions have exactly the same elements in the same position (when compared with ===)\n *\n * @param {ReadonlyQuat} a The first quaternion.\n * @param {ReadonlyQuat} b The second quaternion.\n * @returns {Boolean} True if the vectors are equal, false otherwise.\n */\nexports.exactEquals = vec4.exactEquals;\n/**\n * Returns whether or not the quaternions have approximately the same elements in the same position.\n *\n * @param {ReadonlyQuat} a The first vector.\n * @param {ReadonlyQuat} b The second vector.\n * @returns {Boolean} True if the vectors are equal, false otherwise.\n */\nexports.equals = vec4.equals;\n/**\n * Sets a quaternion to represent the shortest rotation from one\n * vector to another.\n *\n * Both vectors are assumed to be unit length.\n *\n * @param {quat} out the receiving quaternion.\n * @param {ReadonlyVec3} a the initial vector\n * @param {ReadonlyVec3} b the destination vector\n * @returns {quat} out\n */\nexports.rotationTo = function () {\n    var tmpvec3 = vec3.create();\n    var xUnitVec3 = vec3.fromValues(1, 0, 0);\n    var yUnitVec3 = vec3.fromValues(0, 1, 0);\n    return function (out, a, b) {\n        var dot = vec3.dot(a, b);\n        if (dot < -0.999999) {\n            vec3.cross(tmpvec3, xUnitVec3, a);\n            if (vec3.len(tmpvec3) < 0.000001)\n                vec3.cross(tmpvec3, yUnitVec3, a);\n            vec3.normalize(tmpvec3, tmpvec3);\n            setAxisAngle(out, tmpvec3, Math.PI);\n            return out;\n        }\n        else if (dot > 0.999999) {\n            out[0] = 0;\n            out[1] = 0;\n            out[2] = 0;\n            out[3] = 1;\n            return out;\n        }\n        else {\n            vec3.cross(tmpvec3, a, b);\n            out[0] = tmpvec3[0];\n            out[1] = tmpvec3[1];\n            out[2] = tmpvec3[2];\n            out[3] = 1 + dot;\n            return (0, exports.normalize)(out, out);\n        }\n    };\n}();\n/**\n * Performs a spherical linear interpolation with two control points\n *\n * @param {quat} out the receiving quaternion\n * @param {ReadonlyQuat} a the first operand\n * @param {ReadonlyQuat} b the second operand\n * @param {ReadonlyQuat} c the third operand\n * @param {ReadonlyQuat} d the fourth operand\n * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n * @returns {quat} out\n */\nexports.sqlerp = function () {\n    var temp1 = create();\n    var temp2 = create();\n    return function (out, a, b, c, d, t) {\n        slerp(temp1, a, d, t);\n        slerp(temp2, b, c, t);\n        slerp(out, temp1, temp2, 2 * t * (1 - t));\n        return out;\n    };\n}();\n/**\n * Sets the specified quaternion with values corresponding to the given\n * axes. Each axis is a vec3 and is expected to be unit length and\n * perpendicular to all other specified axes.\n *\n * @param {ReadonlyVec3} view  the vector representing the viewing direction\n * @param {ReadonlyVec3} right the vector representing the local \"right\" direction\n * @param {ReadonlyVec3} up    the vector representing the local \"up\" direction\n * @returns {quat} out\n */\nexports.setAxes = function () {\n    var matr = mat3.create();\n    return function (out, view, right, up) {\n        matr[0] = right[0];\n        matr[3] = right[1];\n        matr[6] = right[2];\n        matr[1] = up[0];\n        matr[4] = up[1];\n        matr[7] = up[2];\n        matr[2] = -view[0];\n        matr[5] = -view[1];\n        matr[8] = -view[2];\n        return (0, exports.normalize)(out, fromMat3(out, matr));\n    };\n}();\n","type":"js","dependency_paths":[["./common.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/common.js"],["./mat3.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/mat3.js"],["./vec3.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/vec3.js"],["./vec4.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/vec4.js"]],"dependency_map":[],"exported":[{"type":"named","name":"create"},{"type":"named","name":"identity"},{"type":"named","name":"setAxisAngle"},{"type":"named","name":"getAxisAngle"},{"type":"named","name":"getAngle"},{"type":"named","name":"multiply"},{"type":"named","name":"rotateX"},{"type":"named","name":"rotateY"},{"type":"named","name":"rotateZ"},{"type":"named","name":"calculateW"},{"type":"named","name":"exp"},{"type":"named","name":"ln"},{"type":"named","name":"pow"},{"type":"named","name":"slerp"},{"type":"named","name":"random"},{"type":"named","name":"invert"},{"type":"named","name":"conjugate"},{"type":"named","name":"fromMat3"},{"type":"named","name":"fromEuler"},{"type":"named","name":"str"}],"externals":[],"shims":[]},"code":{"source":"/* gl-matrix/esm/quat.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.create = create;\n    exports.identity = identity;\n    exports.setAxisAngle = setAxisAngle;\n    exports.getAxisAngle = getAxisAngle;\n    exports.getAngle = getAngle;\n    exports.multiply = multiply;\n    exports.rotateX = rotateX;\n    exports.rotateY = rotateY;\n    exports.rotateZ = rotateZ;\n    exports.calculateW = calculateW;\n    exports.exp = exp;\n    exports.ln = ln;\n    exports.pow = pow;\n    exports.slerp = slerp;\n    exports.random = random;\n    exports.invert = invert;\n    exports.conjugate = conjugate;\n    exports.fromMat3 = fromMat3;\n    exports.fromEuler = fromEuler;\n    exports.str = str;\n    const tslib_1 = require(\"tslib\");\n    const glMatrix = tslib_1.__importStar(require(\"7d825b979e\") /* ./common.js */);\n    const mat3 = tslib_1.__importStar(require(\"a025ef02dc\") /* ./mat3.js */);\n    const vec3 = tslib_1.__importStar(require(\"63eddc5433\") /* ./vec3.js */);\n    const vec4 = tslib_1.__importStar(require(\"11562bccc5\") /* ./vec4.js */);\n    /**\n     * Quaternion\n     * @module quat\n     */\n    /**\n     * Creates a new identity quat\n     *\n     * @returns {quat} a new quaternion\n     */\n    function create() {\n        var out = new glMatrix.ARRAY_TYPE(4);\n        if (glMatrix.ARRAY_TYPE != Float32Array) {\n            out[0] = 0;\n            out[1] = 0;\n            out[2] = 0;\n        }\n        out[3] = 1;\n        return out;\n    }\n    /**\n     * Set a quat to the identity quaternion\n     *\n     * @param {quat} out the receiving quaternion\n     * @returns {quat} out\n     */\n    function identity(out) {\n        out[0] = 0;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 1;\n        return out;\n    }\n    /**\n     * Sets a quat from the given angle and rotation axis,\n     * then returns it.\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {ReadonlyVec3} axis the axis around which to rotate\n     * @param {Number} rad the angle in radians\n     * @returns {quat} out\n     **/\n    function setAxisAngle(out, axis, rad) {\n        rad = rad * 0.5;\n        var s = Math.sin(rad);\n        out[0] = s * axis[0];\n        out[1] = s * axis[1];\n        out[2] = s * axis[2];\n        out[3] = Math.cos(rad);\n        return out;\n    }\n    /**\n     * Gets the rotation axis and angle for a given\n     *  quaternion. If a quaternion is created with\n     *  setAxisAngle, this method will return the same\n     *  values as providied in the original parameter list\n     *  OR functionally equivalent values.\n     * Example: The quaternion formed by axis [0, 0, 1] and\n     *  angle -90 is the same as the quaternion formed by\n     *  [0, 0, 1] and 270. This method favors the latter.\n     * @param  {vec3} out_axis  Vector receiving the axis of rotation\n     * @param  {ReadonlyQuat} q     Quaternion to be decomposed\n     * @return {Number}     Angle, in radians, of the rotation\n     */\n    function getAxisAngle(out_axis, q) {\n        var rad = Math.acos(q[3]) * 2.0;\n        var s = Math.sin(rad / 2.0);\n        if (s > glMatrix.EPSILON) {\n            out_axis[0] = q[0] / s;\n            out_axis[1] = q[1] / s;\n            out_axis[2] = q[2] / s;\n        }\n        else {\n            // If s is zero, return any axis (no rotation - axis does not matter)\n            out_axis[0] = 1;\n            out_axis[1] = 0;\n            out_axis[2] = 0;\n        }\n        return rad;\n    }\n    /**\n     * Gets the angular distance between two unit quaternions\n     *\n     * @param  {ReadonlyQuat} a     Origin unit quaternion\n     * @param  {ReadonlyQuat} b     Destination unit quaternion\n     * @return {Number}     Angle, in radians, between the two quaternions\n     */\n    function getAngle(a, b) {\n        var dotproduct = (0, exports.dot)(a, b);\n        return Math.acos(2 * dotproduct * dotproduct - 1);\n    }\n    /**\n     * Multiplies two quat's\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {ReadonlyQuat} a the first operand\n     * @param {ReadonlyQuat} b the second operand\n     * @returns {quat} out\n     */\n    function multiply(out, a, b) {\n        var ax = a[0], ay = a[1], az = a[2], aw = a[3];\n        var bx = b[0], by = b[1], bz = b[2], bw = b[3];\n        out[0] = ax * bw + aw * bx + ay * bz - az * by;\n        out[1] = ay * bw + aw * by + az * bx - ax * bz;\n        out[2] = az * bw + aw * bz + ax * by - ay * bx;\n        out[3] = aw * bw - ax * bx - ay * by - az * bz;\n        return out;\n    }\n    /**\n     * Rotates a quaternion by the given angle about the X axis\n     *\n     * @param {quat} out quat receiving operation result\n     * @param {ReadonlyQuat} a quat to rotate\n     * @param {number} rad angle (in radians) to rotate\n     * @returns {quat} out\n     */\n    function rotateX(out, a, rad) {\n        rad *= 0.5;\n        var ax = a[0], ay = a[1], az = a[2], aw = a[3];\n        var bx = Math.sin(rad), bw = Math.cos(rad);\n        out[0] = ax * bw + aw * bx;\n        out[1] = ay * bw + az * bx;\n        out[2] = az * bw - ay * bx;\n        out[3] = aw * bw - ax * bx;\n        return out;\n    }\n    /**\n     * Rotates a quaternion by the given angle about the Y axis\n     *\n     * @param {quat} out quat receiving operation result\n     * @param {ReadonlyQuat} a quat to rotate\n     * @param {number} rad angle (in radians) to rotate\n     * @returns {quat} out\n     */\n    function rotateY(out, a, rad) {\n        rad *= 0.5;\n        var ax = a[0], ay = a[1], az = a[2], aw = a[3];\n        var by = Math.sin(rad), bw = Math.cos(rad);\n        out[0] = ax * bw - az * by;\n        out[1] = ay * bw + aw * by;\n        out[2] = az * bw + ax * by;\n        out[3] = aw * bw - ay * by;\n        return out;\n    }\n    /**\n     * Rotates a quaternion by the given angle about the Z axis\n     *\n     * @param {quat} out quat receiving operation result\n     * @param {ReadonlyQuat} a quat to rotate\n     * @param {number} rad angle (in radians) to rotate\n     * @returns {quat} out\n     */\n    function rotateZ(out, a, rad) {\n        rad *= 0.5;\n        var ax = a[0], ay = a[1], az = a[2], aw = a[3];\n        var bz = Math.sin(rad), bw = Math.cos(rad);\n        out[0] = ax * bw + ay * bz;\n        out[1] = ay * bw - ax * bz;\n        out[2] = az * bw + aw * bz;\n        out[3] = aw * bw - az * bz;\n        return out;\n    }\n    /**\n     * Calculates the W component of a quat from the X, Y, and Z components.\n     * Assumes that quaternion is 1 unit in length.\n     * Any existing W component will be ignored.\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {ReadonlyQuat} a quat to calculate W component of\n     * @returns {quat} out\n     */\n    function calculateW(out, a) {\n        var x = a[0], y = a[1], z = a[2];\n        out[0] = x;\n        out[1] = y;\n        out[2] = z;\n        out[3] = Math.sqrt(Math.abs(1.0 - x * x - y * y - z * z));\n        return out;\n    }\n    /**\n     * Calculate the exponential of a unit quaternion.\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {ReadonlyQuat} a quat to calculate the exponential of\n     * @returns {quat} out\n     */\n    function exp(out, a) {\n        var x = a[0], y = a[1], z = a[2], w = a[3];\n        var r = Math.sqrt(x * x + y * y + z * z);\n        var et = Math.exp(w);\n        var s = r > 0 ? et * Math.sin(r) / r : 0;\n        out[0] = x * s;\n        out[1] = y * s;\n        out[2] = z * s;\n        out[3] = et * Math.cos(r);\n        return out;\n    }\n    /**\n     * Calculate the natural logarithm of a unit quaternion.\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {ReadonlyQuat} a quat to calculate the exponential of\n     * @returns {quat} out\n     */\n    function ln(out, a) {\n        var x = a[0], y = a[1], z = a[2], w = a[3];\n        var r = Math.sqrt(x * x + y * y + z * z);\n        var t = r > 0 ? Math.atan2(r, w) / r : 0;\n        out[0] = x * t;\n        out[1] = y * t;\n        out[2] = z * t;\n        out[3] = 0.5 * Math.log(x * x + y * y + z * z + w * w);\n        return out;\n    }\n    /**\n     * Calculate the scalar power of a unit quaternion.\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {ReadonlyQuat} a quat to calculate the exponential of\n     * @param {Number} b amount to scale the quaternion by\n     * @returns {quat} out\n     */\n    function pow(out, a, b) {\n        ln(out, a);\n        (0, exports.scale)(out, out, b);\n        exp(out, out);\n        return out;\n    }\n    /**\n     * Performs a spherical linear interpolation between two quat\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {ReadonlyQuat} a the first operand\n     * @param {ReadonlyQuat} b the second operand\n     * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n     * @returns {quat} out\n     */\n    function slerp(out, a, b, t) {\n        // benchmarks:\n        //    http://jsperf.com/quaternion-slerp-implementations\n        var ax = a[0], ay = a[1], az = a[2], aw = a[3];\n        var bx = b[0], by = b[1], bz = b[2], bw = b[3];\n        var omega, cosom, sinom, scale0, scale1; // calc cosine\n        cosom = ax * bx + ay * by + az * bz + aw * bw; // adjust signs (if necessary)\n        if (cosom < 0.0) {\n            cosom = -cosom;\n            bx = -bx;\n            by = -by;\n            bz = -bz;\n            bw = -bw;\n        } // calculate coefficients\n        if (1.0 - cosom > glMatrix.EPSILON) {\n            // standard case (slerp)\n            omega = Math.acos(cosom);\n            sinom = Math.sin(omega);\n            scale0 = Math.sin((1.0 - t) * omega) / sinom;\n            scale1 = Math.sin(t * omega) / sinom;\n        }\n        else {\n            // \"from\" and \"to\" quaternions are very close\n            //  ... so we can do a linear interpolation\n            scale0 = 1.0 - t;\n            scale1 = t;\n        } // calculate final values\n        out[0] = scale0 * ax + scale1 * bx;\n        out[1] = scale0 * ay + scale1 * by;\n        out[2] = scale0 * az + scale1 * bz;\n        out[3] = scale0 * aw + scale1 * bw;\n        return out;\n    }\n    /**\n     * Generates a random unit quaternion\n     *\n     * @param {quat} out the receiving quaternion\n     * @returns {quat} out\n     */\n    function random(out) {\n        // Implementation of http://planning.cs.uiuc.edu/node198.html\n        // TODO: Calling random 3 times is probably not the fastest solution\n        var u1 = glMatrix.RANDOM();\n        var u2 = glMatrix.RANDOM();\n        var u3 = glMatrix.RANDOM();\n        var sqrt1MinusU1 = Math.sqrt(1 - u1);\n        var sqrtU1 = Math.sqrt(u1);\n        out[0] = sqrt1MinusU1 * Math.sin(2.0 * Math.PI * u2);\n        out[1] = sqrt1MinusU1 * Math.cos(2.0 * Math.PI * u2);\n        out[2] = sqrtU1 * Math.sin(2.0 * Math.PI * u3);\n        out[3] = sqrtU1 * Math.cos(2.0 * Math.PI * u3);\n        return out;\n    }\n    /**\n     * Calculates the inverse of a quat\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {ReadonlyQuat} a quat to calculate inverse of\n     * @returns {quat} out\n     */\n    function invert(out, a) {\n        var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3];\n        var dot = a0 * a0 + a1 * a1 + a2 * a2 + a3 * a3;\n        var invDot = dot ? 1.0 / dot : 0; // TODO: Would be faster to return [0,0,0,0] immediately if dot == 0\n        out[0] = -a0 * invDot;\n        out[1] = -a1 * invDot;\n        out[2] = -a2 * invDot;\n        out[3] = a3 * invDot;\n        return out;\n    }\n    /**\n     * Calculates the conjugate of a quat\n     * If the quaternion is normalized, this function is faster than quat.inverse and produces the same result.\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {ReadonlyQuat} a quat to calculate conjugate of\n     * @returns {quat} out\n     */\n    function conjugate(out, a) {\n        out[0] = -a[0];\n        out[1] = -a[1];\n        out[2] = -a[2];\n        out[3] = a[3];\n        return out;\n    }\n    /**\n     * Creates a quaternion from the given 3x3 rotation matrix.\n     *\n     * NOTE: The resultant quaternion is not normalized, so you should be sure\n     * to renormalize the quaternion yourself where necessary.\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {ReadonlyMat3} m rotation matrix\n     * @returns {quat} out\n     * @function\n     */\n    function fromMat3(out, m) {\n        // Algorithm in Ken Shoemake's article in 1987 SIGGRAPH course notes\n        // article \"Quaternion Calculus and Fast Animation\".\n        var fTrace = m[0] + m[4] + m[8];\n        var fRoot;\n        if (fTrace > 0.0) {\n            // |w| > 1/2, may as well choose w > 1/2\n            fRoot = Math.sqrt(fTrace + 1.0); // 2w\n            out[3] = 0.5 * fRoot;\n            fRoot = 0.5 / fRoot; // 1/(4w)\n            out[0] = (m[5] - m[7]) * fRoot;\n            out[1] = (m[6] - m[2]) * fRoot;\n            out[2] = (m[1] - m[3]) * fRoot;\n        }\n        else {\n            // |w| <= 1/2\n            var i = 0;\n            if (m[4] > m[0])\n                i = 1;\n            if (m[8] > m[i * 3 + i])\n                i = 2;\n            var j = (i + 1) % 3;\n            var k = (i + 2) % 3;\n            fRoot = Math.sqrt(m[i * 3 + i] - m[j * 3 + j] - m[k * 3 + k] + 1.0);\n            out[i] = 0.5 * fRoot;\n            fRoot = 0.5 / fRoot;\n            out[3] = (m[j * 3 + k] - m[k * 3 + j]) * fRoot;\n            out[j] = (m[j * 3 + i] + m[i * 3 + j]) * fRoot;\n            out[k] = (m[k * 3 + i] + m[i * 3 + k]) * fRoot;\n        }\n        return out;\n    }\n    /**\n     * Creates a quaternion from the given euler angle x, y, z.\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {x} Angle to rotate around X axis in degrees.\n     * @param {y} Angle to rotate around Y axis in degrees.\n     * @param {z} Angle to rotate around Z axis in degrees.\n     * @returns {quat} out\n     * @function\n     */\n    function fromEuler(out, x, y, z) {\n        var halfToRad = 0.5 * Math.PI / 180.0;\n        x *= halfToRad;\n        y *= halfToRad;\n        z *= halfToRad;\n        var sx = Math.sin(x);\n        var cx = Math.cos(x);\n        var sy = Math.sin(y);\n        var cy = Math.cos(y);\n        var sz = Math.sin(z);\n        var cz = Math.cos(z);\n        out[0] = sx * cy * cz - cx * sy * sz;\n        out[1] = cx * sy * cz + sx * cy * sz;\n        out[2] = cx * cy * sz - sx * sy * cz;\n        out[3] = cx * cy * cz + sx * sy * sz;\n        return out;\n    }\n    /**\n     * Returns a string representation of a quatenion\n     *\n     * @param {ReadonlyQuat} a vector to represent as a string\n     * @returns {String} string representation of the vector\n     */\n    function str(a) {\n        return \"quat(\" + a[0] + \", \" + a[1] + \", \" + a[2] + \", \" + a[3] + \")\";\n    }\n    /**\n     * Creates a new quat initialized with values from an existing quaternion\n     *\n     * @param {ReadonlyQuat} a quaternion to clone\n     * @returns {quat} a new quaternion\n     * @function\n     */\n    exports.clone = vec4.clone;\n    /**\n     * Creates a new quat initialized with the given values\n     *\n     * @param {Number} x X component\n     * @param {Number} y Y component\n     * @param {Number} z Z component\n     * @param {Number} w W component\n     * @returns {quat} a new quaternion\n     * @function\n     */\n    exports.fromValues = vec4.fromValues;\n    /**\n     * Copy the values from one quat to another\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {ReadonlyQuat} a the source quaternion\n     * @returns {quat} out\n     * @function\n     */\n    exports.copy = vec4.copy;\n    /**\n     * Set the components of a quat to the given values\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {Number} x X component\n     * @param {Number} y Y component\n     * @param {Number} z Z component\n     * @param {Number} w W component\n     * @returns {quat} out\n     * @function\n     */\n    exports.set = vec4.set;\n    /**\n     * Adds two quat's\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {ReadonlyQuat} a the first operand\n     * @param {ReadonlyQuat} b the second operand\n     * @returns {quat} out\n     * @function\n     */\n    exports.add = vec4.add;\n    /**\n     * Alias for {@link quat.multiply}\n     * @function\n     */\n    exports.mul = multiply;\n    /**\n     * Scales a quat by a scalar number\n     *\n     * @param {quat} out the receiving vector\n     * @param {ReadonlyQuat} a the vector to scale\n     * @param {Number} b amount to scale the vector by\n     * @returns {quat} out\n     * @function\n     */\n    exports.scale = vec4.scale;\n    /**\n     * Calculates the dot product of two quat's\n     *\n     * @param {ReadonlyQuat} a the first operand\n     * @param {ReadonlyQuat} b the second operand\n     * @returns {Number} dot product of a and b\n     * @function\n     */\n    exports.dot = vec4.dot;\n    /**\n     * Performs a linear interpolation between two quat's\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {ReadonlyQuat} a the first operand\n     * @param {ReadonlyQuat} b the second operand\n     * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n     * @returns {quat} out\n     * @function\n     */\n    exports.lerp = vec4.lerp;\n    /**\n     * Calculates the length of a quat\n     *\n     * @param {ReadonlyQuat} a vector to calculate length of\n     * @returns {Number} length of a\n     */\n    exports.length = vec4.length;\n    /**\n     * Alias for {@link quat.length}\n     * @function\n     */\n    exports.len = exports.length;\n    /**\n     * Calculates the squared length of a quat\n     *\n     * @param {ReadonlyQuat} a vector to calculate squared length of\n     * @returns {Number} squared length of a\n     * @function\n     */\n    exports.squaredLength = vec4.squaredLength;\n    /**\n     * Alias for {@link quat.squaredLength}\n     * @function\n     */\n    exports.sqrLen = exports.squaredLength;\n    /**\n     * Normalize a quat\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {ReadonlyQuat} a quaternion to normalize\n     * @returns {quat} out\n     * @function\n     */\n    exports.normalize = vec4.normalize;\n    /**\n     * Returns whether or not the quaternions have exactly the same elements in the same position (when compared with ===)\n     *\n     * @param {ReadonlyQuat} a The first quaternion.\n     * @param {ReadonlyQuat} b The second quaternion.\n     * @returns {Boolean} True if the vectors are equal, false otherwise.\n     */\n    exports.exactEquals = vec4.exactEquals;\n    /**\n     * Returns whether or not the quaternions have approximately the same elements in the same position.\n     *\n     * @param {ReadonlyQuat} a The first vector.\n     * @param {ReadonlyQuat} b The second vector.\n     * @returns {Boolean} True if the vectors are equal, false otherwise.\n     */\n    exports.equals = vec4.equals;\n    /**\n     * Sets a quaternion to represent the shortest rotation from one\n     * vector to another.\n     *\n     * Both vectors are assumed to be unit length.\n     *\n     * @param {quat} out the receiving quaternion.\n     * @param {ReadonlyVec3} a the initial vector\n     * @param {ReadonlyVec3} b the destination vector\n     * @returns {quat} out\n     */\n    exports.rotationTo = function () {\n        var tmpvec3 = vec3.create();\n        var xUnitVec3 = vec3.fromValues(1, 0, 0);\n        var yUnitVec3 = vec3.fromValues(0, 1, 0);\n        return function (out, a, b) {\n            var dot = vec3.dot(a, b);\n            if (dot < -0.999999) {\n                vec3.cross(tmpvec3, xUnitVec3, a);\n                if (vec3.len(tmpvec3) < 0.000001)\n                    vec3.cross(tmpvec3, yUnitVec3, a);\n                vec3.normalize(tmpvec3, tmpvec3);\n                setAxisAngle(out, tmpvec3, Math.PI);\n                return out;\n            }\n            else if (dot > 0.999999) {\n                out[0] = 0;\n                out[1] = 0;\n                out[2] = 0;\n                out[3] = 1;\n                return out;\n            }\n            else {\n                vec3.cross(tmpvec3, a, b);\n                out[0] = tmpvec3[0];\n                out[1] = tmpvec3[1];\n                out[2] = tmpvec3[2];\n                out[3] = 1 + dot;\n                return (0, exports.normalize)(out, out);\n            }\n        };\n    }();\n    /**\n     * Performs a spherical linear interpolation with two control points\n     *\n     * @param {quat} out the receiving quaternion\n     * @param {ReadonlyQuat} a the first operand\n     * @param {ReadonlyQuat} b the second operand\n     * @param {ReadonlyQuat} c the third operand\n     * @param {ReadonlyQuat} d the fourth operand\n     * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n     * @returns {quat} out\n     */\n    exports.sqlerp = function () {\n        var temp1 = create();\n        var temp2 = create();\n        return function (out, a, b, c, d, t) {\n            slerp(temp1, a, d, t);\n            slerp(temp2, b, c, t);\n            slerp(out, temp1, temp2, 2 * t * (1 - t));\n            return out;\n        };\n    }();\n    /**\n     * Sets the specified quaternion with values corresponding to the given\n     * axes. Each axis is a vec3 and is expected to be unit length and\n     * perpendicular to all other specified axes.\n     *\n     * @param {ReadonlyVec3} view  the vector representing the viewing direction\n     * @param {ReadonlyVec3} right the vector representing the local \"right\" direction\n     * @param {ReadonlyVec3} up    the vector representing the local \"up\" direction\n     * @returns {quat} out\n     */\n    exports.setAxes = function () {\n        var matr = mat3.create();\n        return function (out, view, right, up) {\n            matr[0] = right[0];\n            matr[3] = right[1];\n            matr[6] = right[2];\n            matr[1] = up[0];\n            matr[4] = up[1];\n            matr[7] = up[2];\n            matr[2] = -view[0];\n            matr[5] = -view[1];\n            matr[8] = -view[2];\n            return (0, exports.normalize)(out, fromMat3(out, matr));\n        };\n    }();\n}\n","min_source":"function _(t,r,a,n,e){n(),a.create=h,a.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},a.setAxisAngle=M,a.getAxisAngle=function(t,r){var a=2*Math.acos(r[3]),n=Math.sin(a/2);n>s.EPSILON?(t[0]=r[0]/n,t[1]=r[1]/n,t[2]=r[2]/n):(t[0]=1,t[1]=0,t[2]=0);return a},a.getAngle=function(t,r){var n=(0,a.dot)(t,r);return Math.acos(2*n*n-1)},a.multiply=l,a.rotateX=function(t,r,a){a*=.5;var n=r[0],e=r[1],o=r[2],s=r[3],u=Math.sin(a),c=Math.cos(a);return t[0]=n*c+s*u,t[1]=e*c+o*u,t[2]=o*c-e*u,t[3]=s*c-n*u,t},a.rotateY=function(t,r,a){a*=.5;var n=r[0],e=r[1],o=r[2],s=r[3],u=Math.sin(a),c=Math.cos(a);return t[0]=n*c-o*u,t[1]=e*c+s*u,t[2]=o*c+n*u,t[3]=s*c-e*u,t},a.rotateZ=function(t,r,a){a*=.5;var n=r[0],e=r[1],o=r[2],s=r[3],u=Math.sin(a),c=Math.cos(a);return t[0]=n*c+e*u,t[1]=e*c-n*u,t[2]=o*c+s*u,t[3]=s*c-o*u,t},a.calculateW=function(t,r){var a=r[0],n=r[1],e=r[2];return t[0]=a,t[1]=n,t[2]=e,t[3]=Math.sqrt(Math.abs(1-a*a-n*n-e*e)),t},a.exp=f,a.ln=v,a.pow=function(t,r,n){return v(t,r),(0,a.scale)(t,t,n),f(t,t),t},a.slerp=m,a.random=function(t){var r=s.RANDOM(),a=s.RANDOM(),n=s.RANDOM(),e=Math.sqrt(1-r),o=Math.sqrt(r);return t[0]=e*Math.sin(2*Math.PI*a),t[1]=e*Math.cos(2*Math.PI*a),t[2]=o*Math.sin(2*Math.PI*n),t[3]=o*Math.cos(2*Math.PI*n),t},a.invert=function(t,r){var a=r[0],n=r[1],e=r[2],o=r[3],s=a*a+n*n+e*e+o*o,u=s?1/s:0;return t[0]=-a*u,t[1]=-n*u,t[2]=-e*u,t[3]=o*u,t},a.conjugate=function(t,r){return t[0]=-r[0],t[1]=-r[1],t[2]=-r[2],t[3]=r[3],t},a.fromMat3=d,a.fromEuler=function(t,r,a,n){var e=.5*Math.PI/180;r*=e,a*=e,n*=e;var o=Math.sin(r),s=Math.cos(r),u=Math.sin(a),c=Math.cos(a),i=Math.sin(n),h=Math.cos(n);return t[0]=o*c*h-s*u*i,t[1]=s*u*h+o*c*i,t[2]=s*c*i-o*u*h,t[3]=s*c*h+o*u*i,t},a.str=function(t){return\"quat(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\")\"};const o=t(\"tslib\"),s=o.__importStar(t(\"7d825b979e\")),u=o.__importStar(t(\"a025ef02dc\")),c=o.__importStar(t(\"63eddc5433\")),i=o.__importStar(t(\"11562bccc5\"));function h(){var t=new s.ARRAY_TYPE(4);return s.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function M(t,r,a){a*=.5;var n=Math.sin(a);return t[0]=n*r[0],t[1]=n*r[1],t[2]=n*r[2],t[3]=Math.cos(a),t}function l(t,r,a){var n=r[0],e=r[1],o=r[2],s=r[3],u=a[0],c=a[1],i=a[2],h=a[3];return t[0]=n*h+s*u+e*i-o*c,t[1]=e*h+s*c+o*u-n*i,t[2]=o*h+s*i+n*c-e*u,t[3]=s*h-n*u-e*c-o*i,t}function f(t,r){var a=r[0],n=r[1],e=r[2],o=r[3],s=Math.sqrt(a*a+n*n+e*e),u=Math.exp(o),c=s>0?u*Math.sin(s)/s:0;return t[0]=a*c,t[1]=n*c,t[2]=e*c,t[3]=u*Math.cos(s),t}function v(t,r){var a=r[0],n=r[1],e=r[2],o=r[3],s=Math.sqrt(a*a+n*n+e*e),u=s>0?Math.atan2(s,o)/s:0;return t[0]=a*u,t[1]=n*u,t[2]=e*u,t[3]=.5*Math.log(a*a+n*n+e*e+o*o),t}function m(t,r,a,n){var e,o,u,c,i,h=r[0],M=r[1],l=r[2],f=r[3],v=a[0],m=a[1],d=a[2],q=a[3];return(o=h*v+M*m+l*d+f*q)<0&&(o=-o,v=-v,m=-m,d=-d,q=-q),1-o>s.EPSILON?(e=Math.acos(o),u=Math.sin(e),c=Math.sin((1-n)*e)/u,i=Math.sin(n*e)/u):(c=1-n,i=n),t[0]=c*h+i*v,t[1]=c*M+i*m,t[2]=c*l+i*d,t[3]=c*f+i*q,t}function d(t,r){var a,n=r[0]+r[4]+r[8];if(n>0)a=Math.sqrt(n+1),t[3]=.5*a,a=.5/a,t[0]=(r[5]-r[7])*a,t[1]=(r[6]-r[2])*a,t[2]=(r[1]-r[3])*a;else{var e=0;r[4]>r[0]&&(e=1),r[8]>r[3*e+e]&&(e=2);var o=(e+1)%3,s=(e+2)%3;a=Math.sqrt(r[3*e+e]-r[3*o+o]-r[3*s+s]+1),t[e]=.5*a,a=.5/a,t[3]=(r[3*o+s]-r[3*s+o])*a,t[o]=(r[3*o+e]+r[3*e+o])*a,t[s]=(r[3*s+e]+r[3*e+s])*a}return t}var q,p,A,g,_,P;a.clone=i.clone,a.fromValues=i.fromValues,a.copy=i.copy,a.set=i.set,a.add=i.add,a.mul=l,a.scale=i.scale,a.dot=i.dot,a.lerp=i.lerp,a.length=i.length,a.len=a.length,a.squaredLength=i.squaredLength,a.sqrLen=a.squaredLength,a.normalize=i.normalize,a.exactEquals=i.exactEquals,a.equals=i.equals,a.rotationTo=(q=c.create(),p=c.fromValues(1,0,0),A=c.fromValues(0,1,0),function(t,r,n){var e=c.dot(r,n);return e<-.999999?(c.cross(q,p,r),c.len(q)<1e-6&&c.cross(q,A,r),c.normalize(q,q),M(t,q,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(c.cross(q,r,n),t[0]=q[0],t[1]=q[1],t[2]=q[2],t[3]=1+e,(0,a.normalize)(t,t))}),a.sqlerp=(g=h(),_=h(),function(t,r,a,n,e,o){return m(g,r,e,o),m(_,a,n,o),m(t,g,_,2*o*(1-o)),t}),a.setAxes=(P=u.create(),function(t,r,n,e){return P[0]=n[0],P[3]=n[1],P[6]=n[2],P[1]=e[0],P[4]=e[1],P[7]=e[2],P[2]=-r[0],P[5]=-r[1],P[8]=-r[2],(0,a.normalize)(t,d(t,P))})}\n//# sourceMappingURL=quat.min.js.map","min_map":"{\"version\":3,\"file\":\"quat.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"create\",\"identity\",\"out\",\"setAxisAngle\",\"getAxisAngle\",\"out_axis\",\"q\",\"rad\",\"Math\",\"acos\",\"s\",\"sin\",\"glMatrix\",\"EPSILON\",\"getAngle\",\"a\",\"b\",\"dotproduct\",\"dot\",\"multiply\",\"rotateX\",\"ax\",\"ay\",\"az\",\"aw\",\"bx\",\"bw\",\"cos\",\"rotateY\",\"by\",\"rotateZ\",\"bz\",\"calculateW\",\"x\",\"y\",\"z\",\"sqrt\",\"abs\",\"exp\",\"ln\",\"pow\",\"scale\",\"slerp\",\"random\",\"u1\",\"RANDOM\",\"u2\",\"u3\",\"sqrt1MinusU1\",\"sqrtU1\",\"PI\",\"invert\",\"a0\",\"a1\",\"a2\",\"a3\",\"invDot\",\"conjugate\",\"fromMat3\",\"fromEuler\",\"halfToRad\",\"sx\",\"cx\",\"sy\",\"cy\",\"sz\",\"cz\",\"str\",\"tslib_1\",\"__importStar\",\"mat3\",\"vec3\",\"vec4\",\"ARRAY_TYPE\",\"Float32Array\",\"axis\",\"w\",\"r\",\"et\",\"t\",\"atan2\",\"log\",\"omega\",\"cosom\",\"sinom\",\"scale0\",\"scale1\",\"m\",\"fRoot\",\"fTrace\",\"i\",\"j\",\"k\",\"tmpvec3\",\"xUnitVec3\",\"yUnitVec3\",\"temp1\",\"temp2\",\"matr\",\"clone\",\"fromValues\",\"copy\",\"set\",\"add\",\"mul\",\"lerp\",\"length\",\"len\",\"squaredLength\",\"sqrLen\",\"normalize\",\"exactEquals\",\"equals\",\"rotationTo\",\"cross\",\"sqlerp\",\"c\",\"d\",\"setAxes\",\"view\",\"right\",\"up\"],\"sources\":[\"0\"],\"mappings\":\"AAA4B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzED,IACAD,EAAQG,OAASA,EACjBH,EAAQI,SAiDR,SAAkBC,GAKd,OAJAA,EAAI,GAAK,EACTA,EAAI,GAAK,EACTA,EAAI,GAAK,EACTA,EAAI,GAAK,EACFA,CACX,EAtDAL,EAAQM,aAAeA,EACvBN,EAAQO,aAqFR,SAAsBC,EAAUC,GAC5B,IAAIC,EAAwB,EAAlBC,KAAKC,KAAKH,EAAE,IAClBI,EAAIF,KAAKG,IAAIJ,EAAM,GACnBG,EAAIE,EAASC,SACbR,EAAS,GAAKC,EAAE,GAAKI,EACrBL,EAAS,GAAKC,EAAE,GAAKI,EACrBL,EAAS,GAAKC,EAAE,GAAKI,IAIrBL,EAAS,GAAK,EACdA,EAAS,GAAK,EACdA,EAAS,GAAK,GAElB,OAAOE,CACX,EAnGAV,EAAQiB,SA2GR,SAAkBC,EAAGC,GACjB,IAAIC,GAAa,EAAIpB,EAAQqB,KAAKH,EAAGC,GACrC,OAAOR,KAAKC,KAAK,EAAIQ,EAAaA,EAAa,EACnD,EA7GApB,EAAQsB,SAAWA,EACnBtB,EAAQuB,QAsIR,SAAiBlB,EAAKa,EAAGR,GACrBA,GAAO,GACP,IAAIc,EAAKN,EAAE,GAAIO,EAAKP,EAAE,GAAIQ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AAGC,EAAGoG,EAAGC,EAAGtC,GAI9B,OAHArC,EAAMsD,EAAOjF,EAAGsG,EAAGtC,GACnBrC,EAAMuD,EAAOjF,EAAGoG,EAAGrC,GACnBrC,EAAMxC,EAAK8F,EAAOC,EAAO,EAAIlB,GAAK,EAAIA,IAC/B7E,CACX,GAYJL,EAAQyH,SACApB,EAAO5B,EAAKtE,SACT,SAAUE,EAAKqH,EAAMC,EAAOC,GAU/B,OATAvB,EAAK,GAAKsB,EAAM,GAChBtB,EAAK,GAAKsB,EAAM,GAChBtB,EAAK,GAAKsB,EAAM,GAChBtB,EAAK,GAAKuB,EAAG,GACbvB,EAAK,GAAKuB,EAAG,GACbvB,EAAK,GAAKuB,EAAG,GACbvB,EAAK,IAAMqB,EAAK,GAChBrB,EAAK,IAAMqB,EAAK,GAChBrB,EAAK,IAAMqB,EAAK,IACT,EAAI1H,EAAQiH,WAAW5G,EAAKwD,EAASxD,EAAKgG,GACrD,EAER\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/vec3.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"gl-matrix/esm/vec3.js","resolution":"ESM","id":"63eddc5433","hash":"63eddc5433fa60fbcc241171b7bbf8305b29b203acea29576d8d7239b4f51667","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.forEach = exports.sqrLen = exports.len = exports.sqrDist = exports.dist = exports.div = exports.mul = exports.sub = void 0;\nexports.create = create;\nexports.clone = clone;\nexports.length = length;\nexports.fromValues = fromValues;\nexports.copy = copy;\nexports.set = set;\nexports.add = add;\nexports.subtract = subtract;\nexports.multiply = multiply;\nexports.divide = divide;\nexports.ceil = ceil;\nexports.floor = floor;\nexports.min = min;\nexports.max = max;\nexports.round = round;\nexports.scale = scale;\nexports.scaleAndAdd = scaleAndAdd;\nexports.distance = distance;\nexports.squaredDistance = squaredDistance;\nexports.squaredLength = squaredLength;\nexports.negate = negate;\nexports.inverse = inverse;\nexports.normalize = normalize;\nexports.dot = dot;\nexports.cross = cross;\nexports.lerp = lerp;\nexports.hermite = hermite;\nexports.bezier = bezier;\nexports.random = random;\nexports.transformMat4 = transformMat4;\nexports.transformMat3 = transformMat3;\nexports.transformQuat = transformQuat;\nexports.rotateX = rotateX;\nexports.rotateY = rotateY;\nexports.rotateZ = rotateZ;\nexports.angle = angle;\nexports.zero = zero;\nexports.str = str;\nexports.exactEquals = exactEquals;\nexports.equals = equals;\nconst tslib_1 = require(\"tslib\");\nconst glMatrix = tslib_1.__importStar(require(\"./common.js\"));\n/**\n * 3 Dimensional Vector\n * @module vec3\n */\n/**\n * Creates a new, empty vec3\n *\n * @returns {vec3} a new 3D vector\n */\nfunction create() {\n    var out = new glMatrix.ARRAY_TYPE(3);\n    if (glMatrix.ARRAY_TYPE != Float32Array) {\n        out[0] = 0;\n        out[1] = 0;\n        out[2] = 0;\n    }\n    return out;\n}\n/**\n * Creates a new vec3 initialized with values from an existing vector\n *\n * @param {ReadonlyVec3} a vector to clone\n * @returns {vec3} a new 3D vector\n */\nfunction clone(a) {\n    var out = new glMatrix.ARRAY_TYPE(3);\n    out[0] = a[0];\n    out[1] = a[1];\n    out[2] = a[2];\n    return out;\n}\n/**\n * Calculates the length of a vec3\n *\n * @param {ReadonlyVec3} a vector to calculate length of\n * @returns {Number} length of a\n */\nfunction length(a) {\n    var x = a[0];\n    var y = a[1];\n    var z = a[2];\n    return Math.hypot(x, y, z);\n}\n/**\n * Creates a new vec3 initialized with the given values\n *\n * @param {Number} x X component\n * @param {Number} y Y component\n * @param {Number} z Z component\n * @returns {vec3} a new 3D vector\n */\nfunction fromValues(x, y, z) {\n    var out = new glMatrix.ARRAY_TYPE(3);\n    out[0] = x;\n    out[1] = y;\n    out[2] = z;\n    return out;\n}\n/**\n * Copy the values from one vec3 to another\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a the source vector\n * @returns {vec3} out\n */\nfunction copy(out, a) {\n    out[0] = a[0];\n    out[1] = a[1];\n    out[2] = a[2];\n    return out;\n}\n/**\n * Set the components of a vec3 to the given values\n *\n * @param {vec3} out the receiving vector\n * @param {Number} x X component\n * @param {Number} y Y component\n * @param {Number} z Z component\n * @returns {vec3} out\n */\nfunction set(out, x, y, z) {\n    out[0] = x;\n    out[1] = y;\n    out[2] = z;\n    return out;\n}\n/**\n * Adds two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a the first operand\n * @param {ReadonlyVec3} b the second operand\n * @returns {vec3} out\n */\nfunction add(out, a, b) {\n    out[0] = a[0] + b[0];\n    out[1] = a[1] + b[1];\n    out[2] = a[2] + b[2];\n    return out;\n}\n/**\n * Subtracts vector b from vector a\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a the first operand\n * @param {ReadonlyVec3} b the second operand\n * @returns {vec3} out\n */\nfunction subtract(out, a, b) {\n    out[0] = a[0] - b[0];\n    out[1] = a[1] - b[1];\n    out[2] = a[2] - b[2];\n    return out;\n}\n/**\n * Multiplies two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a the first operand\n * @param {ReadonlyVec3} b the second operand\n * @returns {vec3} out\n */\nfunction multiply(out, a, b) {\n    out[0] = a[0] * b[0];\n    out[1] = a[1] * b[1];\n    out[2] = a[2] * b[2];\n    return out;\n}\n/**\n * Divides two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a the first operand\n * @param {ReadonlyVec3} b the second operand\n * @returns {vec3} out\n */\nfunction divide(out, a, b) {\n    out[0] = a[0] / b[0];\n    out[1] = a[1] / b[1];\n    out[2] = a[2] / b[2];\n    return out;\n}\n/**\n * Math.ceil the components of a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a vector to ceil\n * @returns {vec3} out\n */\nfunction ceil(out, a) {\n    out[0] = Math.ceil(a[0]);\n    out[1] = Math.ceil(a[1]);\n    out[2] = Math.ceil(a[2]);\n    return out;\n}\n/**\n * Math.floor the components of a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a vector to floor\n * @returns {vec3} out\n */\nfunction floor(out, a) {\n    out[0] = Math.floor(a[0]);\n    out[1] = Math.floor(a[1]);\n    out[2] = Math.floor(a[2]);\n    return out;\n}\n/**\n * Returns the minimum of two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a the first operand\n * @param {ReadonlyVec3} b the second operand\n * @returns {vec3} out\n */\nfunction min(out, a, b) {\n    out[0] = Math.min(a[0], b[0]);\n    out[1] = Math.min(a[1], b[1]);\n    out[2] = Math.min(a[2], b[2]);\n    return out;\n}\n/**\n * Returns the maximum of two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a the first operand\n * @param {ReadonlyVec3} b the second operand\n * @returns {vec3} out\n */\nfunction max(out, a, b) {\n    out[0] = Math.max(a[0], b[0]);\n    out[1] = Math.max(a[1], b[1]);\n    out[2] = Math.max(a[2], b[2]);\n    return out;\n}\n/**\n * Math.round the components of a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a vector to round\n * @returns {vec3} out\n */\nfunction round(out, a) {\n    out[0] = Math.round(a[0]);\n    out[1] = Math.round(a[1]);\n    out[2] = Math.round(a[2]);\n    return out;\n}\n/**\n * Scales a vec3 by a scalar number\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a the vector to scale\n * @param {Number} b amount to scale the vector by\n * @returns {vec3} out\n */\nfunction scale(out, a, b) {\n    out[0] = a[0] * b;\n    out[1] = a[1] * b;\n    out[2] = a[2] * b;\n    return out;\n}\n/**\n * Adds two vec3's after scaling the second operand by a scalar value\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a the first operand\n * @param {ReadonlyVec3} b the second operand\n * @param {Number} scale the amount to scale b by before adding\n * @returns {vec3} out\n */\nfunction scaleAndAdd(out, a, b, scale) {\n    out[0] = a[0] + b[0] * scale;\n    out[1] = a[1] + b[1] * scale;\n    out[2] = a[2] + b[2] * scale;\n    return out;\n}\n/**\n * Calculates the euclidian distance between two vec3's\n *\n * @param {ReadonlyVec3} a the first operand\n * @param {ReadonlyVec3} b the second operand\n * @returns {Number} distance between a and b\n */\nfunction distance(a, b) {\n    var x = b[0] - a[0];\n    var y = b[1] - a[1];\n    var z = b[2] - a[2];\n    return Math.hypot(x, y, z);\n}\n/**\n * Calculates the squared euclidian distance between two vec3's\n *\n * @param {ReadonlyVec3} a the first operand\n * @param {ReadonlyVec3} b the second operand\n * @returns {Number} squared distance between a and b\n */\nfunction squaredDistance(a, b) {\n    var x = b[0] - a[0];\n    var y = b[1] - a[1];\n    var z = b[2] - a[2];\n    return x * x + y * y + z * z;\n}\n/**\n * Calculates the squared length of a vec3\n *\n * @param {ReadonlyVec3} a vector to calculate squared length of\n * @returns {Number} squared length of a\n */\nfunction squaredLength(a) {\n    var x = a[0];\n    var y = a[1];\n    var z = a[2];\n    return x * x + y * y + z * z;\n}\n/**\n * Negates the components of a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a vector to negate\n * @returns {vec3} out\n */\nfunction negate(out, a) {\n    out[0] = -a[0];\n    out[1] = -a[1];\n    out[2] = -a[2];\n    return out;\n}\n/**\n * Returns the inverse of the components of a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a vector to invert\n * @returns {vec3} out\n */\nfunction inverse(out, a) {\n    out[0] = 1.0 / a[0];\n    out[1] = 1.0 / a[1];\n    out[2] = 1.0 / a[2];\n    return out;\n}\n/**\n * Normalize a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a vector to normalize\n * @returns {vec3} out\n */\nfunction normalize(out, a) {\n    var x = a[0];\n    var y = a[1];\n    var z = a[2];\n    var len = x * x + y * y + z * z;\n    if (len > 0) {\n        //TODO: evaluate use of glm_invsqrt here?\n        len = 1 / Math.sqrt(len);\n    }\n    out[0] = a[0] * len;\n    out[1] = a[1] * len;\n    out[2] = a[2] * len;\n    return out;\n}\n/**\n * Calculates the dot product of two vec3's\n *\n * @param {ReadonlyVec3} a the first operand\n * @param {ReadonlyVec3} b the second operand\n * @returns {Number} dot product of a and b\n */\nfunction dot(a, b) {\n    return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\n}\n/**\n * Computes the cross product of two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a the first operand\n * @param {ReadonlyVec3} b the second operand\n * @returns {vec3} out\n */\nfunction cross(out, a, b) {\n    var ax = a[0], ay = a[1], az = a[2];\n    var bx = b[0], by = b[1], bz = b[2];\n    out[0] = ay * bz - az * by;\n    out[1] = az * bx - ax * bz;\n    out[2] = ax * by - ay * bx;\n    return out;\n}\n/**\n * Performs a linear interpolation between two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a the first operand\n * @param {ReadonlyVec3} b the second operand\n * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n * @returns {vec3} out\n */\nfunction lerp(out, a, b, t) {\n    var ax = a[0];\n    var ay = a[1];\n    var az = a[2];\n    out[0] = ax + t * (b[0] - ax);\n    out[1] = ay + t * (b[1] - ay);\n    out[2] = az + t * (b[2] - az);\n    return out;\n}\n/**\n * Performs a hermite interpolation with two control points\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a the first operand\n * @param {ReadonlyVec3} b the second operand\n * @param {ReadonlyVec3} c the third operand\n * @param {ReadonlyVec3} d the fourth operand\n * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n * @returns {vec3} out\n */\nfunction hermite(out, a, b, c, d, t) {\n    var factorTimes2 = t * t;\n    var factor1 = factorTimes2 * (2 * t - 3) + 1;\n    var factor2 = factorTimes2 * (t - 2) + t;\n    var factor3 = factorTimes2 * (t - 1);\n    var factor4 = factorTimes2 * (3 - 2 * t);\n    out[0] = a[0] * factor1 + b[0] * factor2 + c[0] * factor3 + d[0] * factor4;\n    out[1] = a[1] * factor1 + b[1] * factor2 + c[1] * factor3 + d[1] * factor4;\n    out[2] = a[2] * factor1 + b[2] * factor2 + c[2] * factor3 + d[2] * factor4;\n    return out;\n}\n/**\n * Performs a bezier interpolation with two control points\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a the first operand\n * @param {ReadonlyVec3} b the second operand\n * @param {ReadonlyVec3} c the third operand\n * @param {ReadonlyVec3} d the fourth operand\n * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n * @returns {vec3} out\n */\nfunction bezier(out, a, b, c, d, t) {\n    var inverseFactor = 1 - t;\n    var inverseFactorTimesTwo = inverseFactor * inverseFactor;\n    var factorTimes2 = t * t;\n    var factor1 = inverseFactorTimesTwo * inverseFactor;\n    var factor2 = 3 * t * inverseFactorTimesTwo;\n    var factor3 = 3 * factorTimes2 * inverseFactor;\n    var factor4 = factorTimes2 * t;\n    out[0] = a[0] * factor1 + b[0] * factor2 + c[0] * factor3 + d[0] * factor4;\n    out[1] = a[1] * factor1 + b[1] * factor2 + c[1] * factor3 + d[1] * factor4;\n    out[2] = a[2] * factor1 + b[2] * factor2 + c[2] * factor3 + d[2] * factor4;\n    return out;\n}\n/**\n * Generates a random vector with the given scale\n *\n * @param {vec3} out the receiving vector\n * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned\n * @returns {vec3} out\n */\nfunction random(out, scale) {\n    scale = scale || 1.0;\n    var r = glMatrix.RANDOM() * 2.0 * Math.PI;\n    var z = glMatrix.RANDOM() * 2.0 - 1.0;\n    var zScale = Math.sqrt(1.0 - z * z) * scale;\n    out[0] = Math.cos(r) * zScale;\n    out[1] = Math.sin(r) * zScale;\n    out[2] = z * scale;\n    return out;\n}\n/**\n * Transforms the vec3 with a mat4.\n * 4th vector component is implicitly '1'\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a the vector to transform\n * @param {ReadonlyMat4} m matrix to transform with\n * @returns {vec3} out\n */\nfunction transformMat4(out, a, m) {\n    var x = a[0], y = a[1], z = a[2];\n    var w = m[3] * x + m[7] * y + m[11] * z + m[15];\n    w = w || 1.0;\n    out[0] = (m[0] * x + m[4] * y + m[8] * z + m[12]) / w;\n    out[1] = (m[1] * x + m[5] * y + m[9] * z + m[13]) / w;\n    out[2] = (m[2] * x + m[6] * y + m[10] * z + m[14]) / w;\n    return out;\n}\n/**\n * Transforms the vec3 with a mat3.\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a the vector to transform\n * @param {ReadonlyMat3} m the 3x3 matrix to transform with\n * @returns {vec3} out\n */\nfunction transformMat3(out, a, m) {\n    var x = a[0], y = a[1], z = a[2];\n    out[0] = x * m[0] + y * m[3] + z * m[6];\n    out[1] = x * m[1] + y * m[4] + z * m[7];\n    out[2] = x * m[2] + y * m[5] + z * m[8];\n    return out;\n}\n/**\n * Transforms the vec3 with a quat\n * Can also be used for dual quaternions. (Multiply it with the real part)\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec3} a the vector to transform\n * @param {ReadonlyQuat} q quaternion to transform with\n * @returns {vec3} out\n */\nfunction transformQuat(out, a, q) {\n    // benchmarks: https://jsperf.com/quaternion-transform-vec3-implementations-fixed\n    var qx = q[0], qy = q[1], qz = q[2], qw = q[3];\n    var x = a[0], y = a[1], z = a[2]; // var qvec = [qx, qy, qz];\n    // var uv = vec3.cross([], qvec, a);\n    var uvx = qy * z - qz * y, uvy = qz * x - qx * z, uvz = qx * y - qy * x; // var uuv = vec3.cross([], qvec, uv);\n    var uuvx = qy * uvz - qz * uvy, uuvy = qz * uvx - qx * uvz, uuvz = qx * uvy - qy * uvx; // vec3.scale(uv, uv, 2 * w);\n    var w2 = qw * 2;\n    uvx *= w2;\n    uvy *= w2;\n    uvz *= w2; // vec3.scale(uuv, uuv, 2);\n    uuvx *= 2;\n    uuvy *= 2;\n    uuvz *= 2; // return vec3.add(out, a, vec3.add(out, uv, uuv));\n    out[0] = x + uvx + uuvx;\n    out[1] = y + uvy + uuvy;\n    out[2] = z + uvz + uuvz;\n    return out;\n}\n/**\n * Rotate a 3D vector around the x-axis\n * @param {vec3} out The receiving vec3\n * @param {ReadonlyVec3} a The vec3 point to rotate\n * @param {ReadonlyVec3} b The origin of the rotation\n * @param {Number} rad The angle of rotation in radians\n * @returns {vec3} out\n */\nfunction rotateX(out, a, b, rad) {\n    var p = [], r = []; //Translate point to the origin\n    p[0] = a[0] - b[0];\n    p[1] = a[1] - b[1];\n    p[2] = a[2] - b[2]; //perform rotation\n    r[0] = p[0];\n    r[1] = p[1] * Math.cos(rad) - p[2] * Math.sin(rad);\n    r[2] = p[1] * Math.sin(rad) + p[2] * Math.cos(rad); //translate to correct position\n    out[0] = r[0] + b[0];\n    out[1] = r[1] + b[1];\n    out[2] = r[2] + b[2];\n    return out;\n}\n/**\n * Rotate a 3D vector around the y-axis\n * @param {vec3} out The receiving vec3\n * @param {ReadonlyVec3} a The vec3 point to rotate\n * @param {ReadonlyVec3} b The origin of the rotation\n * @param {Number} rad The angle of rotation in radians\n * @returns {vec3} out\n */\nfunction rotateY(out, a, b, rad) {\n    var p = [], r = []; //Translate point to the origin\n    p[0] = a[0] - b[0];\n    p[1] = a[1] - b[1];\n    p[2] = a[2] - b[2]; //perform rotation\n    r[0] = p[2] * Math.sin(rad) + p[0] * Math.cos(rad);\n    r[1] = p[1];\n    r[2] = p[2] * Math.cos(rad) - p[0] * Math.sin(rad); //translate to correct position\n    out[0] = r[0] + b[0];\n    out[1] = r[1] + b[1];\n    out[2] = r[2] + b[2];\n    return out;\n}\n/**\n * Rotate a 3D vector around the z-axis\n * @param {vec3} out The receiving vec3\n * @param {ReadonlyVec3} a The vec3 point to rotate\n * @param {ReadonlyVec3} b The origin of the rotation\n * @param {Number} rad The angle of rotation in radians\n * @returns {vec3} out\n */\nfunction rotateZ(out, a, b, rad) {\n    var p = [], r = []; //Translate point to the origin\n    p[0] = a[0] - b[0];\n    p[1] = a[1] - b[1];\n    p[2] = a[2] - b[2]; //perform rotation\n    r[0] = p[0] * Math.cos(rad) - p[1] * Math.sin(rad);\n    r[1] = p[0] * Math.sin(rad) + p[1] * Math.cos(rad);\n    r[2] = p[2]; //translate to correct position\n    out[0] = r[0] + b[0];\n    out[1] = r[1] + b[1];\n    out[2] = r[2] + b[2];\n    return out;\n}\n/**\n * Get the angle between two 3D vectors\n * @param {ReadonlyVec3} a The first operand\n * @param {ReadonlyVec3} b The second operand\n * @returns {Number} The angle in radians\n */\nfunction angle(a, b) {\n    var ax = a[0], ay = a[1], az = a[2], bx = b[0], by = b[1], bz = b[2], mag1 = Math.sqrt(ax * ax + ay * ay + az * az), mag2 = Math.sqrt(bx * bx + by * by + bz * bz), mag = mag1 * mag2, cosine = mag && dot(a, b) / mag;\n    return Math.acos(Math.min(Math.max(cosine, -1), 1));\n}\n/**\n * Set the components of a vec3 to zero\n *\n * @param {vec3} out the receiving vector\n * @returns {vec3} out\n */\nfunction zero(out) {\n    out[0] = 0.0;\n    out[1] = 0.0;\n    out[2] = 0.0;\n    return out;\n}\n/**\n * Returns a string representation of a vector\n *\n * @param {ReadonlyVec3} a vector to represent as a string\n * @returns {String} string representation of the vector\n */\nfunction str(a) {\n    return \"vec3(\" + a[0] + \", \" + a[1] + \", \" + a[2] + \")\";\n}\n/**\n * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===)\n *\n * @param {ReadonlyVec3} a The first vector.\n * @param {ReadonlyVec3} b The second vector.\n * @returns {Boolean} True if the vectors are equal, false otherwise.\n */\nfunction exactEquals(a, b) {\n    return a[0] === b[0] && a[1] === b[1] && a[2] === b[2];\n}\n/**\n * Returns whether or not the vectors have approximately the same elements in the same position.\n *\n * @param {ReadonlyVec3} a The first vector.\n * @param {ReadonlyVec3} b The second vector.\n * @returns {Boolean} True if the vectors are equal, false otherwise.\n */\nfunction equals(a, b) {\n    var a0 = a[0], a1 = a[1], a2 = a[2];\n    var b0 = b[0], b1 = b[1], b2 = b[2];\n    return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2));\n}\n/**\n * Alias for {@link vec3.subtract}\n * @function\n */\nexports.sub = subtract;\n/**\n * Alias for {@link vec3.multiply}\n * @function\n */\nexports.mul = multiply;\n/**\n * Alias for {@link vec3.divide}\n * @function\n */\nexports.div = divide;\n/**\n * Alias for {@link vec3.distance}\n * @function\n */\nexports.dist = distance;\n/**\n * Alias for {@link vec3.squaredDistance}\n * @function\n */\nexports.sqrDist = squaredDistance;\n/**\n * Alias for {@link vec3.length}\n * @function\n */\nexports.len = length;\n/**\n * Alias for {@link vec3.squaredLength}\n * @function\n */\nexports.sqrLen = squaredLength;\n/**\n * Perform some operation over an array of vec3s.\n *\n * @param {Array} a the array of vectors to iterate over\n * @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed\n * @param {Number} offset Number of elements to skip at the beginning of the array\n * @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array\n * @param {Function} fn Function to call for each vector in the array\n * @param {Object} [arg] additional argument to pass to fn\n * @returns {Array} a\n * @function\n */\nexports.forEach = function () {\n    var vec = create();\n    return function (a, stride, offset, count, fn, arg) {\n        var i, l;\n        if (!stride) {\n            stride = 3;\n        }\n        if (!offset) {\n            offset = 0;\n        }\n        if (count) {\n            l = Math.min(count * stride + offset, a.length);\n        }\n        else {\n            l = a.length;\n        }\n        for (i = offset; i < l; i += stride) {\n            vec[0] = a[i];\n            vec[1] = a[i + 1];\n            vec[2] = a[i + 2];\n            fn(vec, vec, arg);\n            a[i] = vec[0];\n            a[i + 1] = vec[1];\n            a[i + 2] = vec[2];\n        }\n        return a;\n    };\n}();\n","type":"js","dependency_paths":[["./common.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/common.js"]],"dependency_map":[],"exported":[{"type":"named","name":"create"},{"type":"named","name":"clone"},{"type":"named","name":"length"},{"type":"named","name":"fromValues"},{"type":"named","name":"copy"},{"type":"named","name":"set"},{"type":"named","name":"add"},{"type":"named","name":"subtract"},{"type":"named","name":"multiply"},{"type":"named","name":"divide"},{"type":"named","name":"ceil"},{"type":"named","name":"floor"},{"type":"named","name":"min"},{"type":"named","name":"max"},{"type":"named","name":"round"},{"type":"named","name":"scale"},{"type":"named","name":"scaleAndAdd"},{"type":"named","name":"distance"},{"type":"named","name":"squaredDistance"},{"type":"named","name":"squaredLength"},{"type":"named","name":"negate"},{"type":"named","name":"inverse"},{"type":"named","name":"normalize"},{"type":"named","name":"dot"},{"type":"named","name":"cross"},{"type":"named","name":"lerp"},{"type":"named","name":"hermite"},{"type":"named","name":"bezier"},{"type":"named","name":"random"},{"type":"named","name":"transformMat4"},{"type":"named","name":"transformMat3"},{"type":"named","name":"transformQuat"},{"type":"named","name":"rotateX"},{"type":"named","name":"rotateY"},{"type":"named","name":"rotateZ"},{"type":"named","name":"angle"},{"type":"named","name":"zero"},{"type":"named","name":"str"},{"type":"named","name":"exactEquals"},{"type":"named","name":"equals"}],"externals":[],"shims":[]},"code":{"source":"/* gl-matrix/esm/vec3.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.create = create;\n    exports.clone = clone;\n    exports.length = length;\n    exports.fromValues = fromValues;\n    exports.copy = copy;\n    exports.set = set;\n    exports.add = add;\n    exports.subtract = subtract;\n    exports.multiply = multiply;\n    exports.divide = divide;\n    exports.ceil = ceil;\n    exports.floor = floor;\n    exports.min = min;\n    exports.max = max;\n    exports.round = round;\n    exports.scale = scale;\n    exports.scaleAndAdd = scaleAndAdd;\n    exports.distance = distance;\n    exports.squaredDistance = squaredDistance;\n    exports.squaredLength = squaredLength;\n    exports.negate = negate;\n    exports.inverse = inverse;\n    exports.normalize = normalize;\n    exports.dot = dot;\n    exports.cross = cross;\n    exports.lerp = lerp;\n    exports.hermite = hermite;\n    exports.bezier = bezier;\n    exports.random = random;\n    exports.transformMat4 = transformMat4;\n    exports.transformMat3 = transformMat3;\n    exports.transformQuat = transformQuat;\n    exports.rotateX = rotateX;\n    exports.rotateY = rotateY;\n    exports.rotateZ = rotateZ;\n    exports.angle = angle;\n    exports.zero = zero;\n    exports.str = str;\n    exports.exactEquals = exactEquals;\n    exports.equals = equals;\n    const tslib_1 = require(\"tslib\");\n    const glMatrix = tslib_1.__importStar(require(\"7d825b979e\") /* ./common.js */);\n    /**\n     * 3 Dimensional Vector\n     * @module vec3\n     */\n    /**\n     * Creates a new, empty vec3\n     *\n     * @returns {vec3} a new 3D vector\n     */\n    function create() {\n        var out = new glMatrix.ARRAY_TYPE(3);\n        if (glMatrix.ARRAY_TYPE != Float32Array) {\n            out[0] = 0;\n            out[1] = 0;\n            out[2] = 0;\n        }\n        return out;\n    }\n    /**\n     * Creates a new vec3 initialized with values from an existing vector\n     *\n     * @param {ReadonlyVec3} a vector to clone\n     * @returns {vec3} a new 3D vector\n     */\n    function clone(a) {\n        var out = new glMatrix.ARRAY_TYPE(3);\n        out[0] = a[0];\n        out[1] = a[1];\n        out[2] = a[2];\n        return out;\n    }\n    /**\n     * Calculates the length of a vec3\n     *\n     * @param {ReadonlyVec3} a vector to calculate length of\n     * @returns {Number} length of a\n     */\n    function length(a) {\n        var x = a[0];\n        var y = a[1];\n        var z = a[2];\n        return Math.hypot(x, y, z);\n    }\n    /**\n     * Creates a new vec3 initialized with the given values\n     *\n     * @param {Number} x X component\n     * @param {Number} y Y component\n     * @param {Number} z Z component\n     * @returns {vec3} a new 3D vector\n     */\n    function fromValues(x, y, z) {\n        var out = new glMatrix.ARRAY_TYPE(3);\n        out[0] = x;\n        out[1] = y;\n        out[2] = z;\n        return out;\n    }\n    /**\n     * Copy the values from one vec3 to another\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a the source vector\n     * @returns {vec3} out\n     */\n    function copy(out, a) {\n        out[0] = a[0];\n        out[1] = a[1];\n        out[2] = a[2];\n        return out;\n    }\n    /**\n     * Set the components of a vec3 to the given values\n     *\n     * @param {vec3} out the receiving vector\n     * @param {Number} x X component\n     * @param {Number} y Y component\n     * @param {Number} z Z component\n     * @returns {vec3} out\n     */\n    function set(out, x, y, z) {\n        out[0] = x;\n        out[1] = y;\n        out[2] = z;\n        return out;\n    }\n    /**\n     * Adds two vec3's\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a the first operand\n     * @param {ReadonlyVec3} b the second operand\n     * @returns {vec3} out\n     */\n    function add(out, a, b) {\n        out[0] = a[0] + b[0];\n        out[1] = a[1] + b[1];\n        out[2] = a[2] + b[2];\n        return out;\n    }\n    /**\n     * Subtracts vector b from vector a\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a the first operand\n     * @param {ReadonlyVec3} b the second operand\n     * @returns {vec3} out\n     */\n    function subtract(out, a, b) {\n        out[0] = a[0] - b[0];\n        out[1] = a[1] - b[1];\n        out[2] = a[2] - b[2];\n        return out;\n    }\n    /**\n     * Multiplies two vec3's\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a the first operand\n     * @param {ReadonlyVec3} b the second operand\n     * @returns {vec3} out\n     */\n    function multiply(out, a, b) {\n        out[0] = a[0] * b[0];\n        out[1] = a[1] * b[1];\n        out[2] = a[2] * b[2];\n        return out;\n    }\n    /**\n     * Divides two vec3's\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a the first operand\n     * @param {ReadonlyVec3} b the second operand\n     * @returns {vec3} out\n     */\n    function divide(out, a, b) {\n        out[0] = a[0] / b[0];\n        out[1] = a[1] / b[1];\n        out[2] = a[2] / b[2];\n        return out;\n    }\n    /**\n     * Math.ceil the components of a vec3\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a vector to ceil\n     * @returns {vec3} out\n     */\n    function ceil(out, a) {\n        out[0] = Math.ceil(a[0]);\n        out[1] = Math.ceil(a[1]);\n        out[2] = Math.ceil(a[2]);\n        return out;\n    }\n    /**\n     * Math.floor the components of a vec3\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a vector to floor\n     * @returns {vec3} out\n     */\n    function floor(out, a) {\n        out[0] = Math.floor(a[0]);\n        out[1] = Math.floor(a[1]);\n        out[2] = Math.floor(a[2]);\n        return out;\n    }\n    /**\n     * Returns the minimum of two vec3's\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a the first operand\n     * @param {ReadonlyVec3} b the second operand\n     * @returns {vec3} out\n     */\n    function min(out, a, b) {\n        out[0] = Math.min(a[0], b[0]);\n        out[1] = Math.min(a[1], b[1]);\n        out[2] = Math.min(a[2], b[2]);\n        return out;\n    }\n    /**\n     * Returns the maximum of two vec3's\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a the first operand\n     * @param {ReadonlyVec3} b the second operand\n     * @returns {vec3} out\n     */\n    function max(out, a, b) {\n        out[0] = Math.max(a[0], b[0]);\n        out[1] = Math.max(a[1], b[1]);\n        out[2] = Math.max(a[2], b[2]);\n        return out;\n    }\n    /**\n     * Math.round the components of a vec3\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a vector to round\n     * @returns {vec3} out\n     */\n    function round(out, a) {\n        out[0] = Math.round(a[0]);\n        out[1] = Math.round(a[1]);\n        out[2] = Math.round(a[2]);\n        return out;\n    }\n    /**\n     * Scales a vec3 by a scalar number\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a the vector to scale\n     * @param {Number} b amount to scale the vector by\n     * @returns {vec3} out\n     */\n    function scale(out, a, b) {\n        out[0] = a[0] * b;\n        out[1] = a[1] * b;\n        out[2] = a[2] * b;\n        return out;\n    }\n    /**\n     * Adds two vec3's after scaling the second operand by a scalar value\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a the first operand\n     * @param {ReadonlyVec3} b the second operand\n     * @param {Number} scale the amount to scale b by before adding\n     * @returns {vec3} out\n     */\n    function scaleAndAdd(out, a, b, scale) {\n        out[0] = a[0] + b[0] * scale;\n        out[1] = a[1] + b[1] * scale;\n        out[2] = a[2] + b[2] * scale;\n        return out;\n    }\n    /**\n     * Calculates the euclidian distance between two vec3's\n     *\n     * @param {ReadonlyVec3} a the first operand\n     * @param {ReadonlyVec3} b the second operand\n     * @returns {Number} distance between a and b\n     */\n    function distance(a, b) {\n        var x = b[0] - a[0];\n        var y = b[1] - a[1];\n        var z = b[2] - a[2];\n        return Math.hypot(x, y, z);\n    }\n    /**\n     * Calculates the squared euclidian distance between two vec3's\n     *\n     * @param {ReadonlyVec3} a the first operand\n     * @param {ReadonlyVec3} b the second operand\n     * @returns {Number} squared distance between a and b\n     */\n    function squaredDistance(a, b) {\n        var x = b[0] - a[0];\n        var y = b[1] - a[1];\n        var z = b[2] - a[2];\n        return x * x + y * y + z * z;\n    }\n    /**\n     * Calculates the squared length of a vec3\n     *\n     * @param {ReadonlyVec3} a vector to calculate squared length of\n     * @returns {Number} squared length of a\n     */\n    function squaredLength(a) {\n        var x = a[0];\n        var y = a[1];\n        var z = a[2];\n        return x * x + y * y + z * z;\n    }\n    /**\n     * Negates the components of a vec3\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a vector to negate\n     * @returns {vec3} out\n     */\n    function negate(out, a) {\n        out[0] = -a[0];\n        out[1] = -a[1];\n        out[2] = -a[2];\n        return out;\n    }\n    /**\n     * Returns the inverse of the components of a vec3\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a vector to invert\n     * @returns {vec3} out\n     */\n    function inverse(out, a) {\n        out[0] = 1.0 / a[0];\n        out[1] = 1.0 / a[1];\n        out[2] = 1.0 / a[2];\n        return out;\n    }\n    /**\n     * Normalize a vec3\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a vector to normalize\n     * @returns {vec3} out\n     */\n    function normalize(out, a) {\n        var x = a[0];\n        var y = a[1];\n        var z = a[2];\n        var len = x * x + y * y + z * z;\n        if (len > 0) {\n            //TODO: evaluate use of glm_invsqrt here?\n            len = 1 / Math.sqrt(len);\n        }\n        out[0] = a[0] * len;\n        out[1] = a[1] * len;\n        out[2] = a[2] * len;\n        return out;\n    }\n    /**\n     * Calculates the dot product of two vec3's\n     *\n     * @param {ReadonlyVec3} a the first operand\n     * @param {ReadonlyVec3} b the second operand\n     * @returns {Number} dot product of a and b\n     */\n    function dot(a, b) {\n        return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\n    }\n    /**\n     * Computes the cross product of two vec3's\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a the first operand\n     * @param {ReadonlyVec3} b the second operand\n     * @returns {vec3} out\n     */\n    function cross(out, a, b) {\n        var ax = a[0], ay = a[1], az = a[2];\n        var bx = b[0], by = b[1], bz = b[2];\n        out[0] = ay * bz - az * by;\n        out[1] = az * bx - ax * bz;\n        out[2] = ax * by - ay * bx;\n        return out;\n    }\n    /**\n     * Performs a linear interpolation between two vec3's\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a the first operand\n     * @param {ReadonlyVec3} b the second operand\n     * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n     * @returns {vec3} out\n     */\n    function lerp(out, a, b, t) {\n        var ax = a[0];\n        var ay = a[1];\n        var az = a[2];\n        out[0] = ax + t * (b[0] - ax);\n        out[1] = ay + t * (b[1] - ay);\n        out[2] = az + t * (b[2] - az);\n        return out;\n    }\n    /**\n     * Performs a hermite interpolation with two control points\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a the first operand\n     * @param {ReadonlyVec3} b the second operand\n     * @param {ReadonlyVec3} c the third operand\n     * @param {ReadonlyVec3} d the fourth operand\n     * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n     * @returns {vec3} out\n     */\n    function hermite(out, a, b, c, d, t) {\n        var factorTimes2 = t * t;\n        var factor1 = factorTimes2 * (2 * t - 3) + 1;\n        var factor2 = factorTimes2 * (t - 2) + t;\n        var factor3 = factorTimes2 * (t - 1);\n        var factor4 = factorTimes2 * (3 - 2 * t);\n        out[0] = a[0] * factor1 + b[0] * factor2 + c[0] * factor3 + d[0] * factor4;\n        out[1] = a[1] * factor1 + b[1] * factor2 + c[1] * factor3 + d[1] * factor4;\n        out[2] = a[2] * factor1 + b[2] * factor2 + c[2] * factor3 + d[2] * factor4;\n        return out;\n    }\n    /**\n     * Performs a bezier interpolation with two control points\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a the first operand\n     * @param {ReadonlyVec3} b the second operand\n     * @param {ReadonlyVec3} c the third operand\n     * @param {ReadonlyVec3} d the fourth operand\n     * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n     * @returns {vec3} out\n     */\n    function bezier(out, a, b, c, d, t) {\n        var inverseFactor = 1 - t;\n        var inverseFactorTimesTwo = inverseFactor * inverseFactor;\n        var factorTimes2 = t * t;\n        var factor1 = inverseFactorTimesTwo * inverseFactor;\n        var factor2 = 3 * t * inverseFactorTimesTwo;\n        var factor3 = 3 * factorTimes2 * inverseFactor;\n        var factor4 = factorTimes2 * t;\n        out[0] = a[0] * factor1 + b[0] * factor2 + c[0] * factor3 + d[0] * factor4;\n        out[1] = a[1] * factor1 + b[1] * factor2 + c[1] * factor3 + d[1] * factor4;\n        out[2] = a[2] * factor1 + b[2] * factor2 + c[2] * factor3 + d[2] * factor4;\n        return out;\n    }\n    /**\n     * Generates a random vector with the given scale\n     *\n     * @param {vec3} out the receiving vector\n     * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned\n     * @returns {vec3} out\n     */\n    function random(out, scale) {\n        scale = scale || 1.0;\n        var r = glMatrix.RANDOM() * 2.0 * Math.PI;\n        var z = glMatrix.RANDOM() * 2.0 - 1.0;\n        var zScale = Math.sqrt(1.0 - z * z) * scale;\n        out[0] = Math.cos(r) * zScale;\n        out[1] = Math.sin(r) * zScale;\n        out[2] = z * scale;\n        return out;\n    }\n    /**\n     * Transforms the vec3 with a mat4.\n     * 4th vector component is implicitly '1'\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a the vector to transform\n     * @param {ReadonlyMat4} m matrix to transform with\n     * @returns {vec3} out\n     */\n    function transformMat4(out, a, m) {\n        var x = a[0], y = a[1], z = a[2];\n        var w = m[3] * x + m[7] * y + m[11] * z + m[15];\n        w = w || 1.0;\n        out[0] = (m[0] * x + m[4] * y + m[8] * z + m[12]) / w;\n        out[1] = (m[1] * x + m[5] * y + m[9] * z + m[13]) / w;\n        out[2] = (m[2] * x + m[6] * y + m[10] * z + m[14]) / w;\n        return out;\n    }\n    /**\n     * Transforms the vec3 with a mat3.\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a the vector to transform\n     * @param {ReadonlyMat3} m the 3x3 matrix to transform with\n     * @returns {vec3} out\n     */\n    function transformMat3(out, a, m) {\n        var x = a[0], y = a[1], z = a[2];\n        out[0] = x * m[0] + y * m[3] + z * m[6];\n        out[1] = x * m[1] + y * m[4] + z * m[7];\n        out[2] = x * m[2] + y * m[5] + z * m[8];\n        return out;\n    }\n    /**\n     * Transforms the vec3 with a quat\n     * Can also be used for dual quaternions. (Multiply it with the real part)\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec3} a the vector to transform\n     * @param {ReadonlyQuat} q quaternion to transform with\n     * @returns {vec3} out\n     */\n    function transformQuat(out, a, q) {\n        // benchmarks: https://jsperf.com/quaternion-transform-vec3-implementations-fixed\n        var qx = q[0], qy = q[1], qz = q[2], qw = q[3];\n        var x = a[0], y = a[1], z = a[2]; // var qvec = [qx, qy, qz];\n        // var uv = vec3.cross([], qvec, a);\n        var uvx = qy * z - qz * y, uvy = qz * x - qx * z, uvz = qx * y - qy * x; // var uuv = vec3.cross([], qvec, uv);\n        var uuvx = qy * uvz - qz * uvy, uuvy = qz * uvx - qx * uvz, uuvz = qx * uvy - qy * uvx; // vec3.scale(uv, uv, 2 * w);\n        var w2 = qw * 2;\n        uvx *= w2;\n        uvy *= w2;\n        uvz *= w2; // vec3.scale(uuv, uuv, 2);\n        uuvx *= 2;\n        uuvy *= 2;\n        uuvz *= 2; // return vec3.add(out, a, vec3.add(out, uv, uuv));\n        out[0] = x + uvx + uuvx;\n        out[1] = y + uvy + uuvy;\n        out[2] = z + uvz + uuvz;\n        return out;\n    }\n    /**\n     * Rotate a 3D vector around the x-axis\n     * @param {vec3} out The receiving vec3\n     * @param {ReadonlyVec3} a The vec3 point to rotate\n     * @param {ReadonlyVec3} b The origin of the rotation\n     * @param {Number} rad The angle of rotation in radians\n     * @returns {vec3} out\n     */\n    function rotateX(out, a, b, rad) {\n        var p = [], r = []; //Translate point to the origin\n        p[0] = a[0] - b[0];\n        p[1] = a[1] - b[1];\n        p[2] = a[2] - b[2]; //perform rotation\n        r[0] = p[0];\n        r[1] = p[1] * Math.cos(rad) - p[2] * Math.sin(rad);\n        r[2] = p[1] * Math.sin(rad) + p[2] * Math.cos(rad); //translate to correct position\n        out[0] = r[0] + b[0];\n        out[1] = r[1] + b[1];\n        out[2] = r[2] + b[2];\n        return out;\n    }\n    /**\n     * Rotate a 3D vector around the y-axis\n     * @param {vec3} out The receiving vec3\n     * @param {ReadonlyVec3} a The vec3 point to rotate\n     * @param {ReadonlyVec3} b The origin of the rotation\n     * @param {Number} rad The angle of rotation in radians\n     * @returns {vec3} out\n     */\n    function rotateY(out, a, b, rad) {\n        var p = [], r = []; //Translate point to the origin\n        p[0] = a[0] - b[0];\n        p[1] = a[1] - b[1];\n        p[2] = a[2] - b[2]; //perform rotation\n        r[0] = p[2] * Math.sin(rad) + p[0] * Math.cos(rad);\n        r[1] = p[1];\n        r[2] = p[2] * Math.cos(rad) - p[0] * Math.sin(rad); //translate to correct position\n        out[0] = r[0] + b[0];\n        out[1] = r[1] + b[1];\n        out[2] = r[2] + b[2];\n        return out;\n    }\n    /**\n     * Rotate a 3D vector around the z-axis\n     * @param {vec3} out The receiving vec3\n     * @param {ReadonlyVec3} a The vec3 point to rotate\n     * @param {ReadonlyVec3} b The origin of the rotation\n     * @param {Number} rad The angle of rotation in radians\n     * @returns {vec3} out\n     */\n    function rotateZ(out, a, b, rad) {\n        var p = [], r = []; //Translate point to the origin\n        p[0] = a[0] - b[0];\n        p[1] = a[1] - b[1];\n        p[2] = a[2] - b[2]; //perform rotation\n        r[0] = p[0] * Math.cos(rad) - p[1] * Math.sin(rad);\n        r[1] = p[0] * Math.sin(rad) + p[1] * Math.cos(rad);\n        r[2] = p[2]; //translate to correct position\n        out[0] = r[0] + b[0];\n        out[1] = r[1] + b[1];\n        out[2] = r[2] + b[2];\n        return out;\n    }\n    /**\n     * Get the angle between two 3D vectors\n     * @param {ReadonlyVec3} a The first operand\n     * @param {ReadonlyVec3} b The second operand\n     * @returns {Number} The angle in radians\n     */\n    function angle(a, b) {\n        var ax = a[0], ay = a[1], az = a[2], bx = b[0], by = b[1], bz = b[2], mag1 = Math.sqrt(ax * ax + ay * ay + az * az), mag2 = Math.sqrt(bx * bx + by * by + bz * bz), mag = mag1 * mag2, cosine = mag && dot(a, b) / mag;\n        return Math.acos(Math.min(Math.max(cosine, -1), 1));\n    }\n    /**\n     * Set the components of a vec3 to zero\n     *\n     * @param {vec3} out the receiving vector\n     * @returns {vec3} out\n     */\n    function zero(out) {\n        out[0] = 0.0;\n        out[1] = 0.0;\n        out[2] = 0.0;\n        return out;\n    }\n    /**\n     * Returns a string representation of a vector\n     *\n     * @param {ReadonlyVec3} a vector to represent as a string\n     * @returns {String} string representation of the vector\n     */\n    function str(a) {\n        return \"vec3(\" + a[0] + \", \" + a[1] + \", \" + a[2] + \")\";\n    }\n    /**\n     * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===)\n     *\n     * @param {ReadonlyVec3} a The first vector.\n     * @param {ReadonlyVec3} b The second vector.\n     * @returns {Boolean} True if the vectors are equal, false otherwise.\n     */\n    function exactEquals(a, b) {\n        return a[0] === b[0] && a[1] === b[1] && a[2] === b[2];\n    }\n    /**\n     * Returns whether or not the vectors have approximately the same elements in the same position.\n     *\n     * @param {ReadonlyVec3} a The first vector.\n     * @param {ReadonlyVec3} b The second vector.\n     * @returns {Boolean} True if the vectors are equal, false otherwise.\n     */\n    function equals(a, b) {\n        var a0 = a[0], a1 = a[1], a2 = a[2];\n        var b0 = b[0], b1 = b[1], b2 = b[2];\n        return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2));\n    }\n    /**\n     * Alias for {@link vec3.subtract}\n     * @function\n     */\n    exports.sub = subtract;\n    /**\n     * Alias for {@link vec3.multiply}\n     * @function\n     */\n    exports.mul = multiply;\n    /**\n     * Alias for {@link vec3.divide}\n     * @function\n     */\n    exports.div = divide;\n    /**\n     * Alias for {@link vec3.distance}\n     * @function\n     */\n    exports.dist = distance;\n    /**\n     * Alias for {@link vec3.squaredDistance}\n     * @function\n     */\n    exports.sqrDist = squaredDistance;\n    /**\n     * Alias for {@link vec3.length}\n     * @function\n     */\n    exports.len = length;\n    /**\n     * Alias for {@link vec3.squaredLength}\n     * @function\n     */\n    exports.sqrLen = squaredLength;\n    /**\n     * Perform some operation over an array of vec3s.\n     *\n     * @param {Array} a the array of vectors to iterate over\n     * @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed\n     * @param {Number} offset Number of elements to skip at the beginning of the array\n     * @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array\n     * @param {Function} fn Function to call for each vector in the array\n     * @param {Object} [arg] additional argument to pass to fn\n     * @returns {Array} a\n     * @function\n     */\n    exports.forEach = function () {\n        var vec = create();\n        return function (a, stride, offset, count, fn, arg) {\n            var i, l;\n            if (!stride) {\n                stride = 3;\n            }\n            if (!offset) {\n                offset = 0;\n            }\n            if (count) {\n                l = Math.min(count * stride + offset, a.length);\n            }\n            else {\n                l = a.length;\n            }\n            for (i = offset; i < l; i += stride) {\n                vec[0] = a[i];\n                vec[1] = a[i + 1];\n                vec[2] = a[i + 2];\n                fn(vec, vec, arg);\n                a[i] = vec[0];\n                a[i + 1] = vec[1];\n                a[i + 2] = vec[2];\n            }\n            return a;\n        };\n    }();\n}\n","min_source":"function _(t,n,r,a,u){a(),r.create=o,r.clone=function(t){var n=new e.ARRAY_TYPE(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n},r.length=i,r.fromValues=function(t,n,r){var a=new e.ARRAY_TYPE(3);return a[0]=t,a[1]=n,a[2]=r,a},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},r.set=function(t,n,r,a){return t[0]=n,t[1]=r,t[2]=a,t},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t},r.subtract=c,r.multiply=h,r.divide=M,r.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},r.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},r.min=function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t},r.max=function(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t},r.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},r.scale=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t},r.scaleAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t},r.distance=s,r.squaredDistance=f,r.squaredLength=v,r.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},r.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t},r.normalize=function(t,n){var r=n[0],a=n[1],u=n[2],e=r*r+a*a+u*u;e>0&&(e=1/Math.sqrt(e));return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t},r.dot=l,r.cross=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[0],i=r[1],c=r[2];return t[0]=u*c-e*i,t[1]=e*o-a*c,t[2]=a*i-u*o,t},r.lerp=function(t,n,r,a){var u=n[0],e=n[1],o=n[2];return t[0]=u+a*(r[0]-u),t[1]=e+a*(r[1]-e),t[2]=o+a*(r[2]-o),t},r.hermite=function(t,n,r,a,u,e){var o=e*e,i=o*(2*e-3)+1,c=o*(e-2)+e,h=o*(e-1),M=o*(3-2*e);return t[0]=n[0]*i+r[0]*c+a[0]*h+u[0]*M,t[1]=n[1]*i+r[1]*c+a[1]*h+u[1]*M,t[2]=n[2]*i+r[2]*c+a[2]*h+u[2]*M,t},r.bezier=function(t,n,r,a,u,e){var o=1-e,i=o*o,c=e*e,h=i*o,M=3*e*i,s=3*c*o,f=c*e;return t[0]=n[0]*h+r[0]*M+a[0]*s+u[0]*f,t[1]=n[1]*h+r[1]*M+a[1]*s+u[1]*f,t[2]=n[2]*h+r[2]*M+a[2]*s+u[2]*f,t},r.random=function(t,n){n=n||1;var r=2*e.RANDOM()*Math.PI,a=2*e.RANDOM()-1,u=Math.sqrt(1-a*a)*n;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=a*n,t},r.transformMat4=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[3]*a+r[7]*u+r[11]*e+r[15];return o=o||1,t[0]=(r[0]*a+r[4]*u+r[8]*e+r[12])/o,t[1]=(r[1]*a+r[5]*u+r[9]*e+r[13])/o,t[2]=(r[2]*a+r[6]*u+r[10]*e+r[14])/o,t},r.transformMat3=function(t,n,r){var a=n[0],u=n[1],e=n[2];return t[0]=a*r[0]+u*r[3]+e*r[6],t[1]=a*r[1]+u*r[4]+e*r[7],t[2]=a*r[2]+u*r[5]+e*r[8],t},r.transformQuat=function(t,n,r){var a=r[0],u=r[1],e=r[2],o=r[3],i=n[0],c=n[1],h=n[2],M=u*h-e*c,s=e*i-a*h,f=a*c-u*i,v=u*f-e*s,l=e*M-a*f,m=a*s-u*M,d=2*o;return M*=d,s*=d,f*=d,v*=2,l*=2,m*=2,t[0]=i+M+v,t[1]=c+s+l,t[2]=h+f+m,t},r.rotateX=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[0],e[1]=u[1]*Math.cos(a)-u[2]*Math.sin(a),e[2]=u[1]*Math.sin(a)+u[2]*Math.cos(a),t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.rotateY=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[2]*Math.sin(a)+u[0]*Math.cos(a),e[1]=u[1],e[2]=u[2]*Math.cos(a)-u[0]*Math.sin(a),t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.rotateZ=function(t,n,r,a){var u=[],e=[];return u[0]=n[0]-r[0],u[1]=n[1]-r[1],u[2]=n[2]-r[2],e[0]=u[0]*Math.cos(a)-u[1]*Math.sin(a),e[1]=u[0]*Math.sin(a)+u[1]*Math.cos(a),e[2]=u[2],t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},r.angle=function(t,n){var r=t[0],a=t[1],u=t[2],e=n[0],o=n[1],i=n[2],c=Math.sqrt(r*r+a*a+u*u),h=Math.sqrt(e*e+o*o+i*i),M=c*h,s=M&&l(t,n)/M;return Math.acos(Math.min(Math.max(s,-1),1))},r.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t},r.str=function(t){return\"vec3(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\")\"},r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]},r.equals=function(t,n){var r=t[0],a=t[1],u=t[2],o=n[0],i=n[1],c=n[2];return Math.abs(r-o)<=e.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(a-i)<=e.EPSILON*Math.max(1,Math.abs(a),Math.abs(i))&&Math.abs(u-c)<=e.EPSILON*Math.max(1,Math.abs(u),Math.abs(c))};const e=t(\"tslib\").__importStar(t(\"7d825b979e\"));function o(){var t=new e.ARRAY_TYPE(3);return e.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function i(t){var n=t[0],r=t[1],a=t[2];return Math.hypot(n,r,a)}function c(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function h(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function M(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function s(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2];return Math.hypot(r,a,u)}function f(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2];return r*r+a*a+u*u}function v(t){var n=t[0],r=t[1],a=t[2];return n*n+r*r+a*a}function l(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}var m;r.sub=c,r.mul=h,r.div=M,r.dist=s,r.sqrDist=f,r.len=i,r.sqrLen=v,r.forEach=(m=o(),function(t,n,r,a,u,e){var o,i;for(n||(n=3),r||(r=0),i=a?Math.min(a*n+r,t.length):t.length,o=r;o<i;o+=n)m[0]=t[o],m[1]=t[o+1],m[2]=t[o+2],u(m,m,e),t[o]=m[0],t[o+1]=m[1],t[o+2]=m[2];return t})}\n//# sourceMappingURL=vec3.min.js.map","min_map":"{\"version\":3,\"file\":\"vec3.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"create\",\"clone\",\"a\",\"out\",\"glMatrix\",\"ARRAY_TYPE\",\"length\",\"fromValues\",\"x\",\"y\",\"z\",\"copy\",\"set\",\"add\",\"b\",\"subtract\",\"multiply\",\"divide\",\"ceil\",\"Math\",\"floor\",\"min\",\"max\",\"round\",\"scale\",\"scaleAndAdd\",\"distance\",\"squaredDistance\",\"squaredLength\",\"negate\",\"inverse\",\"normalize\",\"len\",\"sqrt\",\"dot\",\"cross\",\"ax\",\"ay\",\"az\",\"bx\",\"by\",\"bz\",\"lerp\",\"t\",\"hermite\",\"c\",\"d\",\"factorTimes2\",\"factor1\",\"factor2\",\"factor3\",\"factor4\",\"bezier\",\"inverseFactor\",\"inverseFactorTimesTwo\",\"random\",\"r\",\"RANDOM\",\"PI\",\"zScale\",\"cos\",\"sin\",\"transformMat4\",\"m\",\"w\",\"transformMat3\",\"transformQuat\",\"q\",\"qx\",\"qy\",\"qz\",\"qw\",\"uvx\",\"uvy\",\"uvz\",\"uuvx\",\"uuvy\",\"uuvz\",\"w2\",\"rotateX\",\"rad\",\"p\",\"rotateY\",\"rotateZ\",\"angle\",\"mag1\",\"mag2\",\"mag\",\"cosine\",\"acos\",\"zero\",\"str\",\"exactEquals\",\"equals\",\"a0\",\"a1\",\"a2\",\"b0\",\"b1\",\"b2\",\"abs\",\"EPSILON\",\"__importStar\",\"Float32Array\",\"hypot\",\"vec\",\"sub\",\"mul\",\"div\",\"dist\",\"sqrDist\",\"sqrLen\",\"forEach\",\"stride\",\"offset\",\"count\",\"fn\",\"arg\",\"i\",\"l\"],\"sources\":[\"0\"],\"mappings\":\"AAA4B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzED,IACAD,EAAQG,OAASA,EACjBH,EAAQI,MAiER,SAAeC,GACX,IAAIC,EAAM,IAAIC,EAASC,WAAW,GAIlC,OAHAF,EAAI,GAAKD,EAAE,GACXC,EAAI,GAAKD,EAAE,GACXC,EAAI,GAAKD,EAAE,GACJC,CACX,EAtEAN,EAAQS,O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,OAAOZ,EAAE,GAAKY,EAAE,GAAKZ,EAAE,GAAKY,EAAE,GAAKZ,EAAE,GAAKY,EAAE,EAChD,CAkUkB,IACV2F,EA5CR5G,EAAQ6G,IAAM3F,EAKdlB,EAAQ8G,IAAM3F,EAKdnB,EAAQ+G,IAAM3F,EAKdpB,EAAQgH,KAAOnF,EAKf7B,EAAQiH,QAAUnF,EAKlB9B,EAAQmC,IAAM1B,EAKdT,EAAQkH,OAASnF,EAajB/B,EAAQmH,SACAP,EAAMzG,IACH,SAAUE,EAAG+G,EAAQC,EAAQC,EAAOC,EAAIC,GAC3C,IAAIC,EAAGC,EAaP,IAZKN,IACDA,EAAS,GAERC,IACDA,EAAS,GAGTK,EADAJ,EACIhG,KAAKE,IAAI8F,EAAQF,EAASC,EAAQhH,EAAEI,QAGpCJ,EAAEI,OAELgH,EAAIJ,EAAQI,EAAIC,EAAGD,GAAKL,EACzBR,EAAI,GAAKvG,EAAEoH,GACXb,EAAI,GAAKvG,EAAEoH,EAAI,GACfb,EAAI,GAAKvG,EAAEoH,EAAI,GACfF,EAAGX,EAAKA,EAAKY,GACbnH,EAAEoH,GAAKb,EAAI,GACXvG,EAAEoH,EAAI,GAAKb,EAAI,GACfvG,EAAEoH,EAAI,GAAKb,EAAI,GAEnB,OAAOvG,CACX,EAER\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/vec4.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"gl-matrix/esm/vec4.js","resolution":"ESM","id":"11562bccc5","hash":"11562bccc50e673427238bb5f498802256b8d946098b9fc58efd76677ce18087","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.forEach = exports.sqrLen = exports.len = exports.sqrDist = exports.dist = exports.div = exports.mul = exports.sub = void 0;\nexports.create = create;\nexports.clone = clone;\nexports.fromValues = fromValues;\nexports.copy = copy;\nexports.set = set;\nexports.add = add;\nexports.subtract = subtract;\nexports.multiply = multiply;\nexports.divide = divide;\nexports.ceil = ceil;\nexports.floor = floor;\nexports.min = min;\nexports.max = max;\nexports.round = round;\nexports.scale = scale;\nexports.scaleAndAdd = scaleAndAdd;\nexports.distance = distance;\nexports.squaredDistance = squaredDistance;\nexports.length = length;\nexports.squaredLength = squaredLength;\nexports.negate = negate;\nexports.inverse = inverse;\nexports.normalize = normalize;\nexports.dot = dot;\nexports.cross = cross;\nexports.lerp = lerp;\nexports.random = random;\nexports.transformMat4 = transformMat4;\nexports.transformQuat = transformQuat;\nexports.zero = zero;\nexports.str = str;\nexports.exactEquals = exactEquals;\nexports.equals = equals;\nconst tslib_1 = require(\"tslib\");\nconst glMatrix = tslib_1.__importStar(require(\"./common.js\"));\n/**\n * 4 Dimensional Vector\n * @module vec4\n */\n/**\n * Creates a new, empty vec4\n *\n * @returns {vec4} a new 4D vector\n */\nfunction create() {\n    var out = new glMatrix.ARRAY_TYPE(4);\n    if (glMatrix.ARRAY_TYPE != Float32Array) {\n        out[0] = 0;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 0;\n    }\n    return out;\n}\n/**\n * Creates a new vec4 initialized with values from an existing vector\n *\n * @param {ReadonlyVec4} a vector to clone\n * @returns {vec4} a new 4D vector\n */\nfunction clone(a) {\n    var out = new glMatrix.ARRAY_TYPE(4);\n    out[0] = a[0];\n    out[1] = a[1];\n    out[2] = a[2];\n    out[3] = a[3];\n    return out;\n}\n/**\n * Creates a new vec4 initialized with the given values\n *\n * @param {Number} x X component\n * @param {Number} y Y component\n * @param {Number} z Z component\n * @param {Number} w W component\n * @returns {vec4} a new 4D vector\n */\nfunction fromValues(x, y, z, w) {\n    var out = new glMatrix.ARRAY_TYPE(4);\n    out[0] = x;\n    out[1] = y;\n    out[2] = z;\n    out[3] = w;\n    return out;\n}\n/**\n * Copy the values from one vec4 to another\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a the source vector\n * @returns {vec4} out\n */\nfunction copy(out, a) {\n    out[0] = a[0];\n    out[1] = a[1];\n    out[2] = a[2];\n    out[3] = a[3];\n    return out;\n}\n/**\n * Set the components of a vec4 to the given values\n *\n * @param {vec4} out the receiving vector\n * @param {Number} x X component\n * @param {Number} y Y component\n * @param {Number} z Z component\n * @param {Number} w W component\n * @returns {vec4} out\n */\nfunction set(out, x, y, z, w) {\n    out[0] = x;\n    out[1] = y;\n    out[2] = z;\n    out[3] = w;\n    return out;\n}\n/**\n * Adds two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a the first operand\n * @param {ReadonlyVec4} b the second operand\n * @returns {vec4} out\n */\nfunction add(out, a, b) {\n    out[0] = a[0] + b[0];\n    out[1] = a[1] + b[1];\n    out[2] = a[2] + b[2];\n    out[3] = a[3] + b[3];\n    return out;\n}\n/**\n * Subtracts vector b from vector a\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a the first operand\n * @param {ReadonlyVec4} b the second operand\n * @returns {vec4} out\n */\nfunction subtract(out, a, b) {\n    out[0] = a[0] - b[0];\n    out[1] = a[1] - b[1];\n    out[2] = a[2] - b[2];\n    out[3] = a[3] - b[3];\n    return out;\n}\n/**\n * Multiplies two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a the first operand\n * @param {ReadonlyVec4} b the second operand\n * @returns {vec4} out\n */\nfunction multiply(out, a, b) {\n    out[0] = a[0] * b[0];\n    out[1] = a[1] * b[1];\n    out[2] = a[2] * b[2];\n    out[3] = a[3] * b[3];\n    return out;\n}\n/**\n * Divides two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a the first operand\n * @param {ReadonlyVec4} b the second operand\n * @returns {vec4} out\n */\nfunction divide(out, a, b) {\n    out[0] = a[0] / b[0];\n    out[1] = a[1] / b[1];\n    out[2] = a[2] / b[2];\n    out[3] = a[3] / b[3];\n    return out;\n}\n/**\n * Math.ceil the components of a vec4\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a vector to ceil\n * @returns {vec4} out\n */\nfunction ceil(out, a) {\n    out[0] = Math.ceil(a[0]);\n    out[1] = Math.ceil(a[1]);\n    out[2] = Math.ceil(a[2]);\n    out[3] = Math.ceil(a[3]);\n    return out;\n}\n/**\n * Math.floor the components of a vec4\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a vector to floor\n * @returns {vec4} out\n */\nfunction floor(out, a) {\n    out[0] = Math.floor(a[0]);\n    out[1] = Math.floor(a[1]);\n    out[2] = Math.floor(a[2]);\n    out[3] = Math.floor(a[3]);\n    return out;\n}\n/**\n * Returns the minimum of two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a the first operand\n * @param {ReadonlyVec4} b the second operand\n * @returns {vec4} out\n */\nfunction min(out, a, b) {\n    out[0] = Math.min(a[0], b[0]);\n    out[1] = Math.min(a[1], b[1]);\n    out[2] = Math.min(a[2], b[2]);\n    out[3] = Math.min(a[3], b[3]);\n    return out;\n}\n/**\n * Returns the maximum of two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a the first operand\n * @param {ReadonlyVec4} b the second operand\n * @returns {vec4} out\n */\nfunction max(out, a, b) {\n    out[0] = Math.max(a[0], b[0]);\n    out[1] = Math.max(a[1], b[1]);\n    out[2] = Math.max(a[2], b[2]);\n    out[3] = Math.max(a[3], b[3]);\n    return out;\n}\n/**\n * Math.round the components of a vec4\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a vector to round\n * @returns {vec4} out\n */\nfunction round(out, a) {\n    out[0] = Math.round(a[0]);\n    out[1] = Math.round(a[1]);\n    out[2] = Math.round(a[2]);\n    out[3] = Math.round(a[3]);\n    return out;\n}\n/**\n * Scales a vec4 by a scalar number\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a the vector to scale\n * @param {Number} b amount to scale the vector by\n * @returns {vec4} out\n */\nfunction scale(out, a, b) {\n    out[0] = a[0] * b;\n    out[1] = a[1] * b;\n    out[2] = a[2] * b;\n    out[3] = a[3] * b;\n    return out;\n}\n/**\n * Adds two vec4's after scaling the second operand by a scalar value\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a the first operand\n * @param {ReadonlyVec4} b the second operand\n * @param {Number} scale the amount to scale b by before adding\n * @returns {vec4} out\n */\nfunction scaleAndAdd(out, a, b, scale) {\n    out[0] = a[0] + b[0] * scale;\n    out[1] = a[1] + b[1] * scale;\n    out[2] = a[2] + b[2] * scale;\n    out[3] = a[3] + b[3] * scale;\n    return out;\n}\n/**\n * Calculates the euclidian distance between two vec4's\n *\n * @param {ReadonlyVec4} a the first operand\n * @param {ReadonlyVec4} b the second operand\n * @returns {Number} distance between a and b\n */\nfunction distance(a, b) {\n    var x = b[0] - a[0];\n    var y = b[1] - a[1];\n    var z = b[2] - a[2];\n    var w = b[3] - a[3];\n    return Math.hypot(x, y, z, w);\n}\n/**\n * Calculates the squared euclidian distance between two vec4's\n *\n * @param {ReadonlyVec4} a the first operand\n * @param {ReadonlyVec4} b the second operand\n * @returns {Number} squared distance between a and b\n */\nfunction squaredDistance(a, b) {\n    var x = b[0] - a[0];\n    var y = b[1] - a[1];\n    var z = b[2] - a[2];\n    var w = b[3] - a[3];\n    return x * x + y * y + z * z + w * w;\n}\n/**\n * Calculates the length of a vec4\n *\n * @param {ReadonlyVec4} a vector to calculate length of\n * @returns {Number} length of a\n */\nfunction length(a) {\n    var x = a[0];\n    var y = a[1];\n    var z = a[2];\n    var w = a[3];\n    return Math.hypot(x, y, z, w);\n}\n/**\n * Calculates the squared length of a vec4\n *\n * @param {ReadonlyVec4} a vector to calculate squared length of\n * @returns {Number} squared length of a\n */\nfunction squaredLength(a) {\n    var x = a[0];\n    var y = a[1];\n    var z = a[2];\n    var w = a[3];\n    return x * x + y * y + z * z + w * w;\n}\n/**\n * Negates the components of a vec4\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a vector to negate\n * @returns {vec4} out\n */\nfunction negate(out, a) {\n    out[0] = -a[0];\n    out[1] = -a[1];\n    out[2] = -a[2];\n    out[3] = -a[3];\n    return out;\n}\n/**\n * Returns the inverse of the components of a vec4\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a vector to invert\n * @returns {vec4} out\n */\nfunction inverse(out, a) {\n    out[0] = 1.0 / a[0];\n    out[1] = 1.0 / a[1];\n    out[2] = 1.0 / a[2];\n    out[3] = 1.0 / a[3];\n    return out;\n}\n/**\n * Normalize a vec4\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a vector to normalize\n * @returns {vec4} out\n */\nfunction normalize(out, a) {\n    var x = a[0];\n    var y = a[1];\n    var z = a[2];\n    var w = a[3];\n    var len = x * x + y * y + z * z + w * w;\n    if (len > 0) {\n        len = 1 / Math.sqrt(len);\n    }\n    out[0] = x * len;\n    out[1] = y * len;\n    out[2] = z * len;\n    out[3] = w * len;\n    return out;\n}\n/**\n * Calculates the dot product of two vec4's\n *\n * @param {ReadonlyVec4} a the first operand\n * @param {ReadonlyVec4} b the second operand\n * @returns {Number} dot product of a and b\n */\nfunction dot(a, b) {\n    return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3];\n}\n/**\n * Returns the cross-product of three vectors in a 4-dimensional space\n *\n * @param {ReadonlyVec4} result the receiving vector\n * @param {ReadonlyVec4} U the first vector\n * @param {ReadonlyVec4} V the second vector\n * @param {ReadonlyVec4} W the third vector\n * @returns {vec4} result\n */\nfunction cross(out, u, v, w) {\n    var A = v[0] * w[1] - v[1] * w[0], B = v[0] * w[2] - v[2] * w[0], C = v[0] * w[3] - v[3] * w[0], D = v[1] * w[2] - v[2] * w[1], E = v[1] * w[3] - v[3] * w[1], F = v[2] * w[3] - v[3] * w[2];\n    var G = u[0];\n    var H = u[1];\n    var I = u[2];\n    var J = u[3];\n    out[0] = H * F - I * E + J * D;\n    out[1] = -(G * F) + I * C - J * B;\n    out[2] = G * E - H * C + J * A;\n    out[3] = -(G * D) + H * B - I * A;\n    return out;\n}\n/**\n * Performs a linear interpolation between two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a the first operand\n * @param {ReadonlyVec4} b the second operand\n * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n * @returns {vec4} out\n */\nfunction lerp(out, a, b, t) {\n    var ax = a[0];\n    var ay = a[1];\n    var az = a[2];\n    var aw = a[3];\n    out[0] = ax + t * (b[0] - ax);\n    out[1] = ay + t * (b[1] - ay);\n    out[2] = az + t * (b[2] - az);\n    out[3] = aw + t * (b[3] - aw);\n    return out;\n}\n/**\n * Generates a random vector with the given scale\n *\n * @param {vec4} out the receiving vector\n * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned\n * @returns {vec4} out\n */\nfunction random(out, scale) {\n    scale = scale || 1.0; // Marsaglia, George. Choosing a Point from the Surface of a\n    // Sphere. Ann. Math. Statist. 43 (1972), no. 2, 645--646.\n    // http://projecteuclid.org/euclid.aoms/1177692644;\n    var v1, v2, v3, v4;\n    var s1, s2;\n    do {\n        v1 = glMatrix.RANDOM() * 2 - 1;\n        v2 = glMatrix.RANDOM() * 2 - 1;\n        s1 = v1 * v1 + v2 * v2;\n    } while (s1 >= 1);\n    do {\n        v3 = glMatrix.RANDOM() * 2 - 1;\n        v4 = glMatrix.RANDOM() * 2 - 1;\n        s2 = v3 * v3 + v4 * v4;\n    } while (s2 >= 1);\n    var d = Math.sqrt((1 - s1) / s2);\n    out[0] = scale * v1;\n    out[1] = scale * v2;\n    out[2] = scale * v3 * d;\n    out[3] = scale * v4 * d;\n    return out;\n}\n/**\n * Transforms the vec4 with a mat4.\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a the vector to transform\n * @param {ReadonlyMat4} m matrix to transform with\n * @returns {vec4} out\n */\nfunction transformMat4(out, a, m) {\n    var x = a[0], y = a[1], z = a[2], w = a[3];\n    out[0] = m[0] * x + m[4] * y + m[8] * z + m[12] * w;\n    out[1] = m[1] * x + m[5] * y + m[9] * z + m[13] * w;\n    out[2] = m[2] * x + m[6] * y + m[10] * z + m[14] * w;\n    out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w;\n    return out;\n}\n/**\n * Transforms the vec4 with a quat\n *\n * @param {vec4} out the receiving vector\n * @param {ReadonlyVec4} a the vector to transform\n * @param {ReadonlyQuat} q quaternion to transform with\n * @returns {vec4} out\n */\nfunction transformQuat(out, a, q) {\n    var x = a[0], y = a[1], z = a[2];\n    var qx = q[0], qy = q[1], qz = q[2], qw = q[3]; // calculate quat * vec\n    var ix = qw * x + qy * z - qz * y;\n    var iy = qw * y + qz * x - qx * z;\n    var iz = qw * z + qx * y - qy * x;\n    var iw = -qx * x - qy * y - qz * z; // calculate result * inverse quat\n    out[0] = ix * qw + iw * -qx + iy * -qz - iz * -qy;\n    out[1] = iy * qw + iw * -qy + iz * -qx - ix * -qz;\n    out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx;\n    out[3] = a[3];\n    return out;\n}\n/**\n * Set the components of a vec4 to zero\n *\n * @param {vec4} out the receiving vector\n * @returns {vec4} out\n */\nfunction zero(out) {\n    out[0] = 0.0;\n    out[1] = 0.0;\n    out[2] = 0.0;\n    out[3] = 0.0;\n    return out;\n}\n/**\n * Returns a string representation of a vector\n *\n * @param {ReadonlyVec4} a vector to represent as a string\n * @returns {String} string representation of the vector\n */\nfunction str(a) {\n    return \"vec4(\" + a[0] + \", \" + a[1] + \", \" + a[2] + \", \" + a[3] + \")\";\n}\n/**\n * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===)\n *\n * @param {ReadonlyVec4} a The first vector.\n * @param {ReadonlyVec4} b The second vector.\n * @returns {Boolean} True if the vectors are equal, false otherwise.\n */\nfunction exactEquals(a, b) {\n    return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3];\n}\n/**\n * Returns whether or not the vectors have approximately the same elements in the same position.\n *\n * @param {ReadonlyVec4} a The first vector.\n * @param {ReadonlyVec4} b The second vector.\n * @returns {Boolean} True if the vectors are equal, false otherwise.\n */\nfunction equals(a, b) {\n    var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3];\n    var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3];\n    return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3));\n}\n/**\n * Alias for {@link vec4.subtract}\n * @function\n */\nexports.sub = subtract;\n/**\n * Alias for {@link vec4.multiply}\n * @function\n */\nexports.mul = multiply;\n/**\n * Alias for {@link vec4.divide}\n * @function\n */\nexports.div = divide;\n/**\n * Alias for {@link vec4.distance}\n * @function\n */\nexports.dist = distance;\n/**\n * Alias for {@link vec4.squaredDistance}\n * @function\n */\nexports.sqrDist = squaredDistance;\n/**\n * Alias for {@link vec4.length}\n * @function\n */\nexports.len = length;\n/**\n * Alias for {@link vec4.squaredLength}\n * @function\n */\nexports.sqrLen = squaredLength;\n/**\n * Perform some operation over an array of vec4s.\n *\n * @param {Array} a the array of vectors to iterate over\n * @param {Number} stride Number of elements between the start of each vec4. If 0 assumes tightly packed\n * @param {Number} offset Number of elements to skip at the beginning of the array\n * @param {Number} count Number of vec4s to iterate over. If 0 iterates over entire array\n * @param {Function} fn Function to call for each vector in the array\n * @param {Object} [arg] additional argument to pass to fn\n * @returns {Array} a\n * @function\n */\nexports.forEach = function () {\n    var vec = create();\n    return function (a, stride, offset, count, fn, arg) {\n        var i, l;\n        if (!stride) {\n            stride = 4;\n        }\n        if (!offset) {\n            offset = 0;\n        }\n        if (count) {\n            l = Math.min(count * stride + offset, a.length);\n        }\n        else {\n            l = a.length;\n        }\n        for (i = offset; i < l; i += stride) {\n            vec[0] = a[i];\n            vec[1] = a[i + 1];\n            vec[2] = a[i + 2];\n            vec[3] = a[i + 3];\n            fn(vec, vec, arg);\n            a[i] = vec[0];\n            a[i + 1] = vec[1];\n            a[i + 2] = vec[2];\n            a[i + 3] = vec[3];\n        }\n        return a;\n    };\n}();\n","type":"js","dependency_paths":[["./common.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/common.js"]],"dependency_map":[],"exported":[{"type":"named","name":"create"},{"type":"named","name":"clone"},{"type":"named","name":"fromValues"},{"type":"named","name":"copy"},{"type":"named","name":"set"},{"type":"named","name":"add"},{"type":"named","name":"subtract"},{"type":"named","name":"multiply"},{"type":"named","name":"divide"},{"type":"named","name":"ceil"},{"type":"named","name":"floor"},{"type":"named","name":"min"},{"type":"named","name":"max"},{"type":"named","name":"round"},{"type":"named","name":"scale"},{"type":"named","name":"scaleAndAdd"},{"type":"named","name":"distance"},{"type":"named","name":"squaredDistance"},{"type":"named","name":"length"},{"type":"named","name":"squaredLength"},{"type":"named","name":"negate"},{"type":"named","name":"inverse"},{"type":"named","name":"normalize"},{"type":"named","name":"dot"},{"type":"named","name":"cross"},{"type":"named","name":"lerp"},{"type":"named","name":"random"},{"type":"named","name":"transformMat4"},{"type":"named","name":"transformQuat"},{"type":"named","name":"zero"},{"type":"named","name":"str"},{"type":"named","name":"exactEquals"},{"type":"named","name":"equals"}],"externals":[],"shims":[]},"code":{"source":"/* gl-matrix/esm/vec4.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.create = create;\n    exports.clone = clone;\n    exports.fromValues = fromValues;\n    exports.copy = copy;\n    exports.set = set;\n    exports.add = add;\n    exports.subtract = subtract;\n    exports.multiply = multiply;\n    exports.divide = divide;\n    exports.ceil = ceil;\n    exports.floor = floor;\n    exports.min = min;\n    exports.max = max;\n    exports.round = round;\n    exports.scale = scale;\n    exports.scaleAndAdd = scaleAndAdd;\n    exports.distance = distance;\n    exports.squaredDistance = squaredDistance;\n    exports.length = length;\n    exports.squaredLength = squaredLength;\n    exports.negate = negate;\n    exports.inverse = inverse;\n    exports.normalize = normalize;\n    exports.dot = dot;\n    exports.cross = cross;\n    exports.lerp = lerp;\n    exports.random = random;\n    exports.transformMat4 = transformMat4;\n    exports.transformQuat = transformQuat;\n    exports.zero = zero;\n    exports.str = str;\n    exports.exactEquals = exactEquals;\n    exports.equals = equals;\n    const tslib_1 = require(\"tslib\");\n    const glMatrix = tslib_1.__importStar(require(\"7d825b979e\") /* ./common.js */);\n    /**\n     * 4 Dimensional Vector\n     * @module vec4\n     */\n    /**\n     * Creates a new, empty vec4\n     *\n     * @returns {vec4} a new 4D vector\n     */\n    function create() {\n        var out = new glMatrix.ARRAY_TYPE(4);\n        if (glMatrix.ARRAY_TYPE != Float32Array) {\n            out[0] = 0;\n            out[1] = 0;\n            out[2] = 0;\n            out[3] = 0;\n        }\n        return out;\n    }\n    /**\n     * Creates a new vec4 initialized with values from an existing vector\n     *\n     * @param {ReadonlyVec4} a vector to clone\n     * @returns {vec4} a new 4D vector\n     */\n    function clone(a) {\n        var out = new glMatrix.ARRAY_TYPE(4);\n        out[0] = a[0];\n        out[1] = a[1];\n        out[2] = a[2];\n        out[3] = a[3];\n        return out;\n    }\n    /**\n     * Creates a new vec4 initialized with the given values\n     *\n     * @param {Number} x X component\n     * @param {Number} y Y component\n     * @param {Number} z Z component\n     * @param {Number} w W component\n     * @returns {vec4} a new 4D vector\n     */\n    function fromValues(x, y, z, w) {\n        var out = new glMatrix.ARRAY_TYPE(4);\n        out[0] = x;\n        out[1] = y;\n        out[2] = z;\n        out[3] = w;\n        return out;\n    }\n    /**\n     * Copy the values from one vec4 to another\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a the source vector\n     * @returns {vec4} out\n     */\n    function copy(out, a) {\n        out[0] = a[0];\n        out[1] = a[1];\n        out[2] = a[2];\n        out[3] = a[3];\n        return out;\n    }\n    /**\n     * Set the components of a vec4 to the given values\n     *\n     * @param {vec4} out the receiving vector\n     * @param {Number} x X component\n     * @param {Number} y Y component\n     * @param {Number} z Z component\n     * @param {Number} w W component\n     * @returns {vec4} out\n     */\n    function set(out, x, y, z, w) {\n        out[0] = x;\n        out[1] = y;\n        out[2] = z;\n        out[3] = w;\n        return out;\n    }\n    /**\n     * Adds two vec4's\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a the first operand\n     * @param {ReadonlyVec4} b the second operand\n     * @returns {vec4} out\n     */\n    function add(out, a, b) {\n        out[0] = a[0] + b[0];\n        out[1] = a[1] + b[1];\n        out[2] = a[2] + b[2];\n        out[3] = a[3] + b[3];\n        return out;\n    }\n    /**\n     * Subtracts vector b from vector a\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a the first operand\n     * @param {ReadonlyVec4} b the second operand\n     * @returns {vec4} out\n     */\n    function subtract(out, a, b) {\n        out[0] = a[0] - b[0];\n        out[1] = a[1] - b[1];\n        out[2] = a[2] - b[2];\n        out[3] = a[3] - b[3];\n        return out;\n    }\n    /**\n     * Multiplies two vec4's\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a the first operand\n     * @param {ReadonlyVec4} b the second operand\n     * @returns {vec4} out\n     */\n    function multiply(out, a, b) {\n        out[0] = a[0] * b[0];\n        out[1] = a[1] * b[1];\n        out[2] = a[2] * b[2];\n        out[3] = a[3] * b[3];\n        return out;\n    }\n    /**\n     * Divides two vec4's\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a the first operand\n     * @param {ReadonlyVec4} b the second operand\n     * @returns {vec4} out\n     */\n    function divide(out, a, b) {\n        out[0] = a[0] / b[0];\n        out[1] = a[1] / b[1];\n        out[2] = a[2] / b[2];\n        out[3] = a[3] / b[3];\n        return out;\n    }\n    /**\n     * Math.ceil the components of a vec4\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a vector to ceil\n     * @returns {vec4} out\n     */\n    function ceil(out, a) {\n        out[0] = Math.ceil(a[0]);\n        out[1] = Math.ceil(a[1]);\n        out[2] = Math.ceil(a[2]);\n        out[3] = Math.ceil(a[3]);\n        return out;\n    }\n    /**\n     * Math.floor the components of a vec4\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a vector to floor\n     * @returns {vec4} out\n     */\n    function floor(out, a) {\n        out[0] = Math.floor(a[0]);\n        out[1] = Math.floor(a[1]);\n        out[2] = Math.floor(a[2]);\n        out[3] = Math.floor(a[3]);\n        return out;\n    }\n    /**\n     * Returns the minimum of two vec4's\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a the first operand\n     * @param {ReadonlyVec4} b the second operand\n     * @returns {vec4} out\n     */\n    function min(out, a, b) {\n        out[0] = Math.min(a[0], b[0]);\n        out[1] = Math.min(a[1], b[1]);\n        out[2] = Math.min(a[2], b[2]);\n        out[3] = Math.min(a[3], b[3]);\n        return out;\n    }\n    /**\n     * Returns the maximum of two vec4's\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a the first operand\n     * @param {ReadonlyVec4} b the second operand\n     * @returns {vec4} out\n     */\n    function max(out, a, b) {\n        out[0] = Math.max(a[0], b[0]);\n        out[1] = Math.max(a[1], b[1]);\n        out[2] = Math.max(a[2], b[2]);\n        out[3] = Math.max(a[3], b[3]);\n        return out;\n    }\n    /**\n     * Math.round the components of a vec4\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a vector to round\n     * @returns {vec4} out\n     */\n    function round(out, a) {\n        out[0] = Math.round(a[0]);\n        out[1] = Math.round(a[1]);\n        out[2] = Math.round(a[2]);\n        out[3] = Math.round(a[3]);\n        return out;\n    }\n    /**\n     * Scales a vec4 by a scalar number\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a the vector to scale\n     * @param {Number} b amount to scale the vector by\n     * @returns {vec4} out\n     */\n    function scale(out, a, b) {\n        out[0] = a[0] * b;\n        out[1] = a[1] * b;\n        out[2] = a[2] * b;\n        out[3] = a[3] * b;\n        return out;\n    }\n    /**\n     * Adds two vec4's after scaling the second operand by a scalar value\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a the first operand\n     * @param {ReadonlyVec4} b the second operand\n     * @param {Number} scale the amount to scale b by before adding\n     * @returns {vec4} out\n     */\n    function scaleAndAdd(out, a, b, scale) {\n        out[0] = a[0] + b[0] * scale;\n        out[1] = a[1] + b[1] * scale;\n        out[2] = a[2] + b[2] * scale;\n        out[3] = a[3] + b[3] * scale;\n        return out;\n    }\n    /**\n     * Calculates the euclidian distance between two vec4's\n     *\n     * @param {ReadonlyVec4} a the first operand\n     * @param {ReadonlyVec4} b the second operand\n     * @returns {Number} distance between a and b\n     */\n    function distance(a, b) {\n        var x = b[0] - a[0];\n        var y = b[1] - a[1];\n        var z = b[2] - a[2];\n        var w = b[3] - a[3];\n        return Math.hypot(x, y, z, w);\n    }\n    /**\n     * Calculates the squared euclidian distance between two vec4's\n     *\n     * @param {ReadonlyVec4} a the first operand\n     * @param {ReadonlyVec4} b the second operand\n     * @returns {Number} squared distance between a and b\n     */\n    function squaredDistance(a, b) {\n        var x = b[0] - a[0];\n        var y = b[1] - a[1];\n        var z = b[2] - a[2];\n        var w = b[3] - a[3];\n        return x * x + y * y + z * z + w * w;\n    }\n    /**\n     * Calculates the length of a vec4\n     *\n     * @param {ReadonlyVec4} a vector to calculate length of\n     * @returns {Number} length of a\n     */\n    function length(a) {\n        var x = a[0];\n        var y = a[1];\n        var z = a[2];\n        var w = a[3];\n        return Math.hypot(x, y, z, w);\n    }\n    /**\n     * Calculates the squared length of a vec4\n     *\n     * @param {ReadonlyVec4} a vector to calculate squared length of\n     * @returns {Number} squared length of a\n     */\n    function squaredLength(a) {\n        var x = a[0];\n        var y = a[1];\n        var z = a[2];\n        var w = a[3];\n        return x * x + y * y + z * z + w * w;\n    }\n    /**\n     * Negates the components of a vec4\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a vector to negate\n     * @returns {vec4} out\n     */\n    function negate(out, a) {\n        out[0] = -a[0];\n        out[1] = -a[1];\n        out[2] = -a[2];\n        out[3] = -a[3];\n        return out;\n    }\n    /**\n     * Returns the inverse of the components of a vec4\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a vector to invert\n     * @returns {vec4} out\n     */\n    function inverse(out, a) {\n        out[0] = 1.0 / a[0];\n        out[1] = 1.0 / a[1];\n        out[2] = 1.0 / a[2];\n        out[3] = 1.0 / a[3];\n        return out;\n    }\n    /**\n     * Normalize a vec4\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a vector to normalize\n     * @returns {vec4} out\n     */\n    function normalize(out, a) {\n        var x = a[0];\n        var y = a[1];\n        var z = a[2];\n        var w = a[3];\n        var len = x * x + y * y + z * z + w * w;\n        if (len > 0) {\n            len = 1 / Math.sqrt(len);\n        }\n        out[0] = x * len;\n        out[1] = y * len;\n        out[2] = z * len;\n        out[3] = w * len;\n        return out;\n    }\n    /**\n     * Calculates the dot product of two vec4's\n     *\n     * @param {ReadonlyVec4} a the first operand\n     * @param {ReadonlyVec4} b the second operand\n     * @returns {Number} dot product of a and b\n     */\n    function dot(a, b) {\n        return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3];\n    }\n    /**\n     * Returns the cross-product of three vectors in a 4-dimensional space\n     *\n     * @param {ReadonlyVec4} result the receiving vector\n     * @param {ReadonlyVec4} U the first vector\n     * @param {ReadonlyVec4} V the second vector\n     * @param {ReadonlyVec4} W the third vector\n     * @returns {vec4} result\n     */\n    function cross(out, u, v, w) {\n        var A = v[0] * w[1] - v[1] * w[0], B = v[0] * w[2] - v[2] * w[0], C = v[0] * w[3] - v[3] * w[0], D = v[1] * w[2] - v[2] * w[1], E = v[1] * w[3] - v[3] * w[1], F = v[2] * w[3] - v[3] * w[2];\n        var G = u[0];\n        var H = u[1];\n        var I = u[2];\n        var J = u[3];\n        out[0] = H * F - I * E + J * D;\n        out[1] = -(G * F) + I * C - J * B;\n        out[2] = G * E - H * C + J * A;\n        out[3] = -(G * D) + H * B - I * A;\n        return out;\n    }\n    /**\n     * Performs a linear interpolation between two vec4's\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a the first operand\n     * @param {ReadonlyVec4} b the second operand\n     * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n     * @returns {vec4} out\n     */\n    function lerp(out, a, b, t) {\n        var ax = a[0];\n        var ay = a[1];\n        var az = a[2];\n        var aw = a[3];\n        out[0] = ax + t * (b[0] - ax);\n        out[1] = ay + t * (b[1] - ay);\n        out[2] = az + t * (b[2] - az);\n        out[3] = aw + t * (b[3] - aw);\n        return out;\n    }\n    /**\n     * Generates a random vector with the given scale\n     *\n     * @param {vec4} out the receiving vector\n     * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned\n     * @returns {vec4} out\n     */\n    function random(out, scale) {\n        scale = scale || 1.0; // Marsaglia, George. Choosing a Point from the Surface of a\n        // Sphere. Ann. Math. Statist. 43 (1972), no. 2, 645--646.\n        // http://projecteuclid.org/euclid.aoms/1177692644;\n        var v1, v2, v3, v4;\n        var s1, s2;\n        do {\n            v1 = glMatrix.RANDOM() * 2 - 1;\n            v2 = glMatrix.RANDOM() * 2 - 1;\n            s1 = v1 * v1 + v2 * v2;\n        } while (s1 >= 1);\n        do {\n            v3 = glMatrix.RANDOM() * 2 - 1;\n            v4 = glMatrix.RANDOM() * 2 - 1;\n            s2 = v3 * v3 + v4 * v4;\n        } while (s2 >= 1);\n        var d = Math.sqrt((1 - s1) / s2);\n        out[0] = scale * v1;\n        out[1] = scale * v2;\n        out[2] = scale * v3 * d;\n        out[3] = scale * v4 * d;\n        return out;\n    }\n    /**\n     * Transforms the vec4 with a mat4.\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a the vector to transform\n     * @param {ReadonlyMat4} m matrix to transform with\n     * @returns {vec4} out\n     */\n    function transformMat4(out, a, m) {\n        var x = a[0], y = a[1], z = a[2], w = a[3];\n        out[0] = m[0] * x + m[4] * y + m[8] * z + m[12] * w;\n        out[1] = m[1] * x + m[5] * y + m[9] * z + m[13] * w;\n        out[2] = m[2] * x + m[6] * y + m[10] * z + m[14] * w;\n        out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w;\n        return out;\n    }\n    /**\n     * Transforms the vec4 with a quat\n     *\n     * @param {vec4} out the receiving vector\n     * @param {ReadonlyVec4} a the vector to transform\n     * @param {ReadonlyQuat} q quaternion to transform with\n     * @returns {vec4} out\n     */\n    function transformQuat(out, a, q) {\n        var x = a[0], y = a[1], z = a[2];\n        var qx = q[0], qy = q[1], qz = q[2], qw = q[3]; // calculate quat * vec\n        var ix = qw * x + qy * z - qz * y;\n        var iy = qw * y + qz * x - qx * z;\n        var iz = qw * z + qx * y - qy * x;\n        var iw = -qx * x - qy * y - qz * z; // calculate result * inverse quat\n        out[0] = ix * qw + iw * -qx + iy * -qz - iz * -qy;\n        out[1] = iy * qw + iw * -qy + iz * -qx - ix * -qz;\n        out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx;\n        out[3] = a[3];\n        return out;\n    }\n    /**\n     * Set the components of a vec4 to zero\n     *\n     * @param {vec4} out the receiving vector\n     * @returns {vec4} out\n     */\n    function zero(out) {\n        out[0] = 0.0;\n        out[1] = 0.0;\n        out[2] = 0.0;\n        out[3] = 0.0;\n        return out;\n    }\n    /**\n     * Returns a string representation of a vector\n     *\n     * @param {ReadonlyVec4} a vector to represent as a string\n     * @returns {String} string representation of the vector\n     */\n    function str(a) {\n        return \"vec4(\" + a[0] + \", \" + a[1] + \", \" + a[2] + \", \" + a[3] + \")\";\n    }\n    /**\n     * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===)\n     *\n     * @param {ReadonlyVec4} a The first vector.\n     * @param {ReadonlyVec4} b The second vector.\n     * @returns {Boolean} True if the vectors are equal, false otherwise.\n     */\n    function exactEquals(a, b) {\n        return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3];\n    }\n    /**\n     * Returns whether or not the vectors have approximately the same elements in the same position.\n     *\n     * @param {ReadonlyVec4} a The first vector.\n     * @param {ReadonlyVec4} b The second vector.\n     * @returns {Boolean} True if the vectors are equal, false otherwise.\n     */\n    function equals(a, b) {\n        var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3];\n        var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3];\n        return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3));\n    }\n    /**\n     * Alias for {@link vec4.subtract}\n     * @function\n     */\n    exports.sub = subtract;\n    /**\n     * Alias for {@link vec4.multiply}\n     * @function\n     */\n    exports.mul = multiply;\n    /**\n     * Alias for {@link vec4.divide}\n     * @function\n     */\n    exports.div = divide;\n    /**\n     * Alias for {@link vec4.distance}\n     * @function\n     */\n    exports.dist = distance;\n    /**\n     * Alias for {@link vec4.squaredDistance}\n     * @function\n     */\n    exports.sqrDist = squaredDistance;\n    /**\n     * Alias for {@link vec4.length}\n     * @function\n     */\n    exports.len = length;\n    /**\n     * Alias for {@link vec4.squaredLength}\n     * @function\n     */\n    exports.sqrLen = squaredLength;\n    /**\n     * Perform some operation over an array of vec4s.\n     *\n     * @param {Array} a the array of vectors to iterate over\n     * @param {Number} stride Number of elements between the start of each vec4. If 0 assumes tightly packed\n     * @param {Number} offset Number of elements to skip at the beginning of the array\n     * @param {Number} count Number of vec4s to iterate over. If 0 iterates over entire array\n     * @param {Function} fn Function to call for each vector in the array\n     * @param {Object} [arg] additional argument to pass to fn\n     * @returns {Array} a\n     * @function\n     */\n    exports.forEach = function () {\n        var vec = create();\n        return function (a, stride, offset, count, fn, arg) {\n            var i, l;\n            if (!stride) {\n                stride = 4;\n            }\n            if (!offset) {\n                offset = 0;\n            }\n            if (count) {\n                l = Math.min(count * stride + offset, a.length);\n            }\n            else {\n                l = a.length;\n            }\n            for (i = offset; i < l; i += stride) {\n                vec[0] = a[i];\n                vec[1] = a[i + 1];\n                vec[2] = a[i + 2];\n                vec[3] = a[i + 3];\n                fn(vec, vec, arg);\n                a[i] = vec[0];\n                a[i + 1] = vec[1];\n                a[i + 2] = vec[2];\n                a[i + 3] = vec[3];\n            }\n            return a;\n        };\n    }();\n}\n","min_source":"function _(t,n,r,a,u){a(),r.create=o,r.clone=function(t){var n=new e.ARRAY_TYPE(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},r.fromValues=function(t,n,r,a){var u=new e.ARRAY_TYPE(4);return u[0]=t,u[1]=n,u[2]=r,u[3]=a,u},r.copy=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},r.set=function(t,n,r,a,u){return t[0]=n,t[1]=r,t[2]=a,t[3]=u,t},r.add=function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t},r.subtract=i,r.multiply=c,r.divide=h,r.ceil=function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},r.floor=function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},r.min=function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t[3]=Math.min(n[3],r[3]),t},r.max=function(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t[3]=Math.max(n[3],r[3]),t},r.round=function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},r.scale=function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t},r.scaleAndAdd=function(t,n,r,a){return t[0]=n[0]+r[0]*a,t[1]=n[1]+r[1]*a,t[2]=n[2]+r[2]*a,t[3]=n[3]+r[3]*a,t},r.distance=M,r.squaredDistance=f,r.length=s,r.squaredLength=l,r.negate=function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},r.inverse=function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},r.normalize=function(t,n){var r=n[0],a=n[1],u=n[2],e=n[3],o=r*r+a*a+u*u+e*e;o>0&&(o=1/Math.sqrt(o));return t[0]=r*o,t[1]=a*o,t[2]=u*o,t[3]=e*o,t},r.dot=function(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]},r.cross=function(t,n,r,a){var u=r[0]*a[1]-r[1]*a[0],e=r[0]*a[2]-r[2]*a[0],o=r[0]*a[3]-r[3]*a[0],i=r[1]*a[2]-r[2]*a[1],c=r[1]*a[3]-r[3]*a[1],h=r[2]*a[3]-r[3]*a[2],M=n[0],f=n[1],s=n[2],l=n[3];return t[0]=f*h-s*c+l*i,t[1]=-M*h+s*o-l*e,t[2]=M*c-f*o+l*u,t[3]=-M*i+f*e-s*u,t},r.lerp=function(t,n,r,a){var u=n[0],e=n[1],o=n[2],i=n[3];return t[0]=u+a*(r[0]-u),t[1]=e+a*(r[1]-e),t[2]=o+a*(r[2]-o),t[3]=i+a*(r[3]-i),t},r.random=function(t,n){var r,a,u,o,i,c;n=n||1;do{i=(r=2*e.RANDOM()-1)*r+(a=2*e.RANDOM()-1)*a}while(i>=1);do{c=(u=2*e.RANDOM()-1)*u+(o=2*e.RANDOM()-1)*o}while(c>=1);var h=Math.sqrt((1-i)/c);return t[0]=n*r,t[1]=n*a,t[2]=n*u*h,t[3]=n*o*h,t},r.transformMat4=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=n[3];return t[0]=r[0]*a+r[4]*u+r[8]*e+r[12]*o,t[1]=r[1]*a+r[5]*u+r[9]*e+r[13]*o,t[2]=r[2]*a+r[6]*u+r[10]*e+r[14]*o,t[3]=r[3]*a+r[7]*u+r[11]*e+r[15]*o,t},r.transformQuat=function(t,n,r){var a=n[0],u=n[1],e=n[2],o=r[0],i=r[1],c=r[2],h=r[3],M=h*a+i*e-c*u,f=h*u+c*a-o*e,s=h*e+o*u-i*a,l=-o*a-i*u-c*e;return t[0]=M*h+l*-o+f*-c-s*-i,t[1]=f*h+l*-i+s*-o-M*-c,t[2]=s*h+l*-c+M*-i-f*-o,t[3]=n[3],t},r.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},r.str=function(t){return\"vec4(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\")\"},r.exactEquals=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},r.equals=function(t,n){var r=t[0],a=t[1],u=t[2],o=t[3],i=n[0],c=n[1],h=n[2],M=n[3];return Math.abs(r-i)<=e.EPSILON*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-c)<=e.EPSILON*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(u-h)<=e.EPSILON*Math.max(1,Math.abs(u),Math.abs(h))&&Math.abs(o-M)<=e.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))};const e=t(\"tslib\").__importStar(t(\"7d825b979e\"));function o(){var t=new e.ARRAY_TYPE(4);return e.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function i(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t}function c(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t[3]=n[3]*r[3],t}function h(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t[3]=n[3]/r[3],t}function M(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2],e=n[3]-t[3];return Math.hypot(r,a,u,e)}function f(t,n){var r=n[0]-t[0],a=n[1]-t[1],u=n[2]-t[2],e=n[3]-t[3];return r*r+a*a+u*u+e*e}function s(t){var n=t[0],r=t[1],a=t[2],u=t[3];return Math.hypot(n,r,a,u)}function l(t){var n=t[0],r=t[1],a=t[2],u=t[3];return n*n+r*r+a*a+u*u}var m;r.sub=i,r.mul=c,r.div=h,r.dist=M,r.sqrDist=f,r.len=s,r.sqrLen=l,r.forEach=(m=o(),function(t,n,r,a,u,e){var o,i;for(n||(n=4),r||(r=0),i=a?Math.min(a*n+r,t.length):t.length,o=r;o<i;o+=n)m[0]=t[o],m[1]=t[o+1],m[2]=t[o+2],m[3]=t[o+3],u(m,m,e),t[o]=m[0],t[o+1]=m[1],t[o+2]=m[2],t[o+3]=m[3];return t})}\n//# sourceMappingURL=vec4.min.js.map","min_map":"{\"version\":3,\"file\":\"vec4.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"create\",\"clone\",\"a\",\"out\",\"glMatrix\",\"ARRAY_TYPE\",\"fromValues\",\"x\",\"y\",\"z\",\"w\",\"copy\",\"set\",\"add\",\"b\",\"subtract\",\"multiply\",\"divide\",\"ceil\",\"Math\",\"floor\",\"min\",\"max\",\"round\",\"scale\",\"scaleAndAdd\",\"distance\",\"squaredDistance\",\"length\",\"squaredLength\",\"negate\",\"inverse\",\"normalize\",\"len\",\"sqrt\",\"dot\",\"cross\",\"u\",\"v\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"lerp\",\"t\",\"ax\",\"ay\",\"az\",\"aw\",\"random\",\"v1\",\"v2\",\"v3\",\"v4\",\"s1\",\"s2\",\"RANDOM\",\"d\",\"transformMat4\",\"m\",\"transformQuat\",\"q\",\"qx\",\"qy\",\"qz\",\"qw\",\"ix\",\"iy\",\"iz\",\"iw\",\"zero\",\"str\",\"exactEquals\",\"equals\",\"a0\",\"a1\",\"a2\",\"a3\",\"b0\",\"b1\",\"b2\",\"b3\",\"abs\",\"EPSILON\",\"__importStar\",\"Float32Array\",\"hypot\",\"vec\",\"sub\",\"mul\",\"div\",\"dist\",\"sqrDist\",\"sqrLen\",\"forEach\",\"stride\",\"offset\",\"count\",\"fn\",\"arg\",\"i\",\"l\"],\"sources\":[\"0\"],\"mappings\":\"AAA4B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzED,IACAD,EAAQG,OAASA,EACjBH,EAAQI,MA2DR,SAAeC,GACX,IAAIC,EAAM,IAAIC,EAASC,WAAW,GAKlC,OAJAF,EAAI,GAAKD,EAAE,GACXC,EAAI,GAAKD,EAAE,GACXC,EAAI,GAAKD,EAAE,GACXC,EAAI,GAAKD,EAAE,GACJC,CACX,EAjEAN,EAAQS,WA2ER,SAAoBC,EAAGC,EAAGC,EAAGC,GACzB,IAAIP,EAAM,IAAIC,EAASC,WAAW,GAKlC,OAJAF,EAAI,GAAKI,EACTJ,EAAI,GAAKK,EACTL,EAAI,GAAKM,EACTN,EAAI,GAAKO,EACFP,CACX,EAjFAN,EAAQc,KAyFR,SAAcR,EAAKD,GAKf,OAJAC,EAAI,GAAKD,EAAE,GACXC,EAAI,GAAKD,EAAE,GACXC,EAAI,GAAKD,EAAE,GACXC,EAAI,GAAKD,EAAE,GACJC,CACX,EA9FAN,EAAQe,IAyGR,SAAaT,EAAKI,EAAGC,EAAGC,EAAGC,GAKvB,OAJAP,EAAI,GAAKI,EACTJ,EAAI,GAAKK,EACTL,EAAI,GAAKM,EACTN,EAAI,GAAKO,EACFP,CACX,EA9GAN,EAAQgB,IAuHR,SAAaV,EAAKD,EAAGY,GAKjB,OAJAX,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N,EAAE,GACNO,EAAIP,EAAE,GACNQ,EAAIR,EAAE,GACV,OAAOK,EAAIA,EAAIC,EAAIA,EAAIC,EAAIA,EAAIC,EAAIA,CACvC,CAoQkB,IACVmF,EA5CRhG,EAAQiG,IAAM/E,EAKdlB,EAAQkG,IAAM/E,EAKdnB,EAAQmG,IAAM/E,EAKdpB,EAAQoG,KAAOvE,EAKf7B,EAAQqG,QAAUvE,EAKlB9B,EAAQoC,IAAML,EAKd/B,EAAQsG,OAAStE,EAajBhC,EAAQuG,SACAP,EAAM7F,IACH,SAAUE,EAAGmG,EAAQC,EAAQC,EAAOC,EAAIC,GAC3C,IAAIC,EAAGC,EAaP,IAZKN,IACDA,EAAS,GAERC,IACDA,EAAS,GAGTK,EADAJ,EACIpF,KAAKE,IAAIkF,EAAQF,EAASC,EAAQpG,EAAE0B,QAGpC1B,EAAE0B,OAEL8E,EAAIJ,EAAQI,EAAIC,EAAGD,GAAKL,EACzBR,EAAI,GAAK3F,EAAEwG,GACXb,EAAI,GAAK3F,EAAEwG,EAAI,GACfb,EAAI,GAAK3F,EAAEwG,EAAI,GACfb,EAAI,GAAK3F,EAAEwG,EAAI,GACfF,EAAGX,EAAKA,EAAKY,GACbvG,EAAEwG,GAAKb,EAAI,GACX3F,EAAEwG,EAAI,GAAKb,EAAI,GACf3F,EAAEwG,EAAI,GAAKb,EAAI,GACf3F,EAAEwG,EAAI,GAAKb,EAAI,GAEnB,OAAO3F,CACX,EAER\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/quat2.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"gl-matrix/esm/quat2.js","resolution":"ESM","id":"fb9294db61","hash":"fb9294db615f862226d1665ca20195481faf2f2d2f7b14f1537b04664ff54aa6","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sqrLen = exports.squaredLength = exports.len = exports.length = exports.dot = exports.mul = exports.setReal = exports.getReal = void 0;\nexports.create = create;\nexports.clone = clone;\nexports.fromValues = fromValues;\nexports.fromRotationTranslationValues = fromRotationTranslationValues;\nexports.fromRotationTranslation = fromRotationTranslation;\nexports.fromTranslation = fromTranslation;\nexports.fromRotation = fromRotation;\nexports.fromMat4 = fromMat4;\nexports.copy = copy;\nexports.identity = identity;\nexports.set = set;\nexports.getDual = getDual;\nexports.setDual = setDual;\nexports.getTranslation = getTranslation;\nexports.translate = translate;\nexports.rotateX = rotateX;\nexports.rotateY = rotateY;\nexports.rotateZ = rotateZ;\nexports.rotateByQuatAppend = rotateByQuatAppend;\nexports.rotateByQuatPrepend = rotateByQuatPrepend;\nexports.rotateAroundAxis = rotateAroundAxis;\nexports.add = add;\nexports.multiply = multiply;\nexports.scale = scale;\nexports.lerp = lerp;\nexports.invert = invert;\nexports.conjugate = conjugate;\nexports.normalize = normalize;\nexports.str = str;\nexports.exactEquals = exactEquals;\nexports.equals = equals;\nconst tslib_1 = require(\"tslib\");\nconst glMatrix = tslib_1.__importStar(require(\"./common.js\"));\nconst quat = tslib_1.__importStar(require(\"./quat.js\"));\nconst mat4 = tslib_1.__importStar(require(\"./mat4.js\"));\n/**\n * Dual Quaternion<br>\n * Format: [real, dual]<br>\n * Quaternion format: XYZW<br>\n * Make sure to have normalized dual quaternions, otherwise the functions may not work as intended.<br>\n * @module quat2\n */\n/**\n * Creates a new identity dual quat\n *\n * @returns {quat2} a new dual quaternion [real -> rotation, dual -> translation]\n */\nfunction create() {\n    var dq = new glMatrix.ARRAY_TYPE(8);\n    if (glMatrix.ARRAY_TYPE != Float32Array) {\n        dq[0] = 0;\n        dq[1] = 0;\n        dq[2] = 0;\n        dq[4] = 0;\n        dq[5] = 0;\n        dq[6] = 0;\n        dq[7] = 0;\n    }\n    dq[3] = 1;\n    return dq;\n}\n/**\n * Creates a new quat initialized with values from an existing quaternion\n *\n * @param {ReadonlyQuat2} a dual quaternion to clone\n * @returns {quat2} new dual quaternion\n * @function\n */\nfunction clone(a) {\n    var dq = new glMatrix.ARRAY_TYPE(8);\n    dq[0] = a[0];\n    dq[1] = a[1];\n    dq[2] = a[2];\n    dq[3] = a[3];\n    dq[4] = a[4];\n    dq[5] = a[5];\n    dq[6] = a[6];\n    dq[7] = a[7];\n    return dq;\n}\n/**\n * Creates a new dual quat initialized with the given values\n *\n * @param {Number} x1 X component\n * @param {Number} y1 Y component\n * @param {Number} z1 Z component\n * @param {Number} w1 W component\n * @param {Number} x2 X component\n * @param {Number} y2 Y component\n * @param {Number} z2 Z component\n * @param {Number} w2 W component\n * @returns {quat2} new dual quaternion\n * @function\n */\nfunction fromValues(x1, y1, z1, w1, x2, y2, z2, w2) {\n    var dq = new glMatrix.ARRAY_TYPE(8);\n    dq[0] = x1;\n    dq[1] = y1;\n    dq[2] = z1;\n    dq[3] = w1;\n    dq[4] = x2;\n    dq[5] = y2;\n    dq[6] = z2;\n    dq[7] = w2;\n    return dq;\n}\n/**\n * Creates a new dual quat from the given values (quat and translation)\n *\n * @param {Number} x1 X component\n * @param {Number} y1 Y component\n * @param {Number} z1 Z component\n * @param {Number} w1 W component\n * @param {Number} x2 X component (translation)\n * @param {Number} y2 Y component (translation)\n * @param {Number} z2 Z component (translation)\n * @returns {quat2} new dual quaternion\n * @function\n */\nfunction fromRotationTranslationValues(x1, y1, z1, w1, x2, y2, z2) {\n    var dq = new glMatrix.ARRAY_TYPE(8);\n    dq[0] = x1;\n    dq[1] = y1;\n    dq[2] = z1;\n    dq[3] = w1;\n    var ax = x2 * 0.5, ay = y2 * 0.5, az = z2 * 0.5;\n    dq[4] = ax * w1 + ay * z1 - az * y1;\n    dq[5] = ay * w1 + az * x1 - ax * z1;\n    dq[6] = az * w1 + ax * y1 - ay * x1;\n    dq[7] = -ax * x1 - ay * y1 - az * z1;\n    return dq;\n}\n/**\n * Creates a dual quat from a quaternion and a translation\n *\n * @param {ReadonlyQuat2} dual quaternion receiving operation result\n * @param {ReadonlyQuat} q a normalized quaternion\n * @param {ReadonlyVec3} t tranlation vector\n * @returns {quat2} dual quaternion receiving operation result\n * @function\n */\nfunction fromRotationTranslation(out, q, t) {\n    var ax = t[0] * 0.5, ay = t[1] * 0.5, az = t[2] * 0.5, bx = q[0], by = q[1], bz = q[2], bw = q[3];\n    out[0] = bx;\n    out[1] = by;\n    out[2] = bz;\n    out[3] = bw;\n    out[4] = ax * bw + ay * bz - az * by;\n    out[5] = ay * bw + az * bx - ax * bz;\n    out[6] = az * bw + ax * by - ay * bx;\n    out[7] = -ax * bx - ay * by - az * bz;\n    return out;\n}\n/**\n * Creates a dual quat from a translation\n *\n * @param {ReadonlyQuat2} dual quaternion receiving operation result\n * @param {ReadonlyVec3} t translation vector\n * @returns {quat2} dual quaternion receiving operation result\n * @function\n */\nfunction fromTranslation(out, t) {\n    out[0] = 0;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 1;\n    out[4] = t[0] * 0.5;\n    out[5] = t[1] * 0.5;\n    out[6] = t[2] * 0.5;\n    out[7] = 0;\n    return out;\n}\n/**\n * Creates a dual quat from a quaternion\n *\n * @param {ReadonlyQuat2} dual quaternion receiving operation result\n * @param {ReadonlyQuat} q the quaternion\n * @returns {quat2} dual quaternion receiving operation result\n * @function\n */\nfunction fromRotation(out, q) {\n    out[0] = q[0];\n    out[1] = q[1];\n    out[2] = q[2];\n    out[3] = q[3];\n    out[4] = 0;\n    out[5] = 0;\n    out[6] = 0;\n    out[7] = 0;\n    return out;\n}\n/**\n * Creates a new dual quat from a matrix (4x4)\n *\n * @param {quat2} out the dual quaternion\n * @param {ReadonlyMat4} a the matrix\n * @returns {quat2} dual quat receiving operation result\n * @function\n */\nfunction fromMat4(out, a) {\n    //TODO Optimize this\n    var outer = quat.create();\n    mat4.getRotation(outer, a);\n    var t = new glMatrix.ARRAY_TYPE(3);\n    mat4.getTranslation(t, a);\n    fromRotationTranslation(out, outer, t);\n    return out;\n}\n/**\n * Copy the values from one dual quat to another\n *\n * @param {quat2} out the receiving dual quaternion\n * @param {ReadonlyQuat2} a the source dual quaternion\n * @returns {quat2} out\n * @function\n */\nfunction copy(out, a) {\n    out[0] = a[0];\n    out[1] = a[1];\n    out[2] = a[2];\n    out[3] = a[3];\n    out[4] = a[4];\n    out[5] = a[5];\n    out[6] = a[6];\n    out[7] = a[7];\n    return out;\n}\n/**\n * Set a dual quat to the identity dual quaternion\n *\n * @param {quat2} out the receiving quaternion\n * @returns {quat2} out\n */\nfunction identity(out) {\n    out[0] = 0;\n    out[1] = 0;\n    out[2] = 0;\n    out[3] = 1;\n    out[4] = 0;\n    out[5] = 0;\n    out[6] = 0;\n    out[7] = 0;\n    return out;\n}\n/**\n * Set the components of a dual quat to the given values\n *\n * @param {quat2} out the receiving quaternion\n * @param {Number} x1 X component\n * @param {Number} y1 Y component\n * @param {Number} z1 Z component\n * @param {Number} w1 W component\n * @param {Number} x2 X component\n * @param {Number} y2 Y component\n * @param {Number} z2 Z component\n * @param {Number} w2 W component\n * @returns {quat2} out\n * @function\n */\nfunction set(out, x1, y1, z1, w1, x2, y2, z2, w2) {\n    out[0] = x1;\n    out[1] = y1;\n    out[2] = z1;\n    out[3] = w1;\n    out[4] = x2;\n    out[5] = y2;\n    out[6] = z2;\n    out[7] = w2;\n    return out;\n}\n/**\n * Gets the real part of a dual quat\n * @param  {quat} out real part\n * @param  {ReadonlyQuat2} a Dual Quaternion\n * @return {quat} real part\n */\nexports.getReal = quat.copy;\n/**\n * Gets the dual part of a dual quat\n * @param  {quat} out dual part\n * @param  {ReadonlyQuat2} a Dual Quaternion\n * @return {quat} dual part\n */\nfunction getDual(out, a) {\n    out[0] = a[4];\n    out[1] = a[5];\n    out[2] = a[6];\n    out[3] = a[7];\n    return out;\n}\n/**\n * Set the real component of a dual quat to the given quaternion\n *\n * @param {quat2} out the receiving quaternion\n * @param {ReadonlyQuat} q a quaternion representing the real part\n * @returns {quat2} out\n * @function\n */\nexports.setReal = quat.copy;\n/**\n * Set the dual component of a dual quat to the given quaternion\n *\n * @param {quat2} out the receiving quaternion\n * @param {ReadonlyQuat} q a quaternion representing the dual part\n * @returns {quat2} out\n * @function\n */\nfunction setDual(out, q) {\n    out[4] = q[0];\n    out[5] = q[1];\n    out[6] = q[2];\n    out[7] = q[3];\n    return out;\n}\n/**\n * Gets the translation of a normalized dual quat\n * @param  {vec3} out translation\n * @param  {ReadonlyQuat2} a Dual Quaternion to be decomposed\n * @return {vec3} translation\n */\nfunction getTranslation(out, a) {\n    var ax = a[4], ay = a[5], az = a[6], aw = a[7], bx = -a[0], by = -a[1], bz = -a[2], bw = a[3];\n    out[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2;\n    out[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2;\n    out[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2;\n    return out;\n}\n/**\n * Translates a dual quat by the given vector\n *\n * @param {quat2} out the receiving dual quaternion\n * @param {ReadonlyQuat2} a the dual quaternion to translate\n * @param {ReadonlyVec3} v vector to translate by\n * @returns {quat2} out\n */\nfunction translate(out, a, v) {\n    var ax1 = a[0], ay1 = a[1], az1 = a[2], aw1 = a[3], bx1 = v[0] * 0.5, by1 = v[1] * 0.5, bz1 = v[2] * 0.5, ax2 = a[4], ay2 = a[5], az2 = a[6], aw2 = a[7];\n    out[0] = ax1;\n    out[1] = ay1;\n    out[2] = az1;\n    out[3] = aw1;\n    out[4] = aw1 * bx1 + ay1 * bz1 - az1 * by1 + ax2;\n    out[5] = aw1 * by1 + az1 * bx1 - ax1 * bz1 + ay2;\n    out[6] = aw1 * bz1 + ax1 * by1 - ay1 * bx1 + az2;\n    out[7] = -ax1 * bx1 - ay1 * by1 - az1 * bz1 + aw2;\n    return out;\n}\n/**\n * Rotates a dual quat around the X axis\n *\n * @param {quat2} out the receiving dual quaternion\n * @param {ReadonlyQuat2} a the dual quaternion to rotate\n * @param {number} rad how far should the rotation be\n * @returns {quat2} out\n */\nfunction rotateX(out, a, rad) {\n    var bx = -a[0], by = -a[1], bz = -a[2], bw = a[3], ax = a[4], ay = a[5], az = a[6], aw = a[7], ax1 = ax * bw + aw * bx + ay * bz - az * by, ay1 = ay * bw + aw * by + az * bx - ax * bz, az1 = az * bw + aw * bz + ax * by - ay * bx, aw1 = aw * bw - ax * bx - ay * by - az * bz;\n    quat.rotateX(out, a, rad);\n    bx = out[0];\n    by = out[1];\n    bz = out[2];\n    bw = out[3];\n    out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by;\n    out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz;\n    out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx;\n    out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz;\n    return out;\n}\n/**\n * Rotates a dual quat around the Y axis\n *\n * @param {quat2} out the receiving dual quaternion\n * @param {ReadonlyQuat2} a the dual quaternion to rotate\n * @param {number} rad how far should the rotation be\n * @returns {quat2} out\n */\nfunction rotateY(out, a, rad) {\n    var bx = -a[0], by = -a[1], bz = -a[2], bw = a[3], ax = a[4], ay = a[5], az = a[6], aw = a[7], ax1 = ax * bw + aw * bx + ay * bz - az * by, ay1 = ay * bw + aw * by + az * bx - ax * bz, az1 = az * bw + aw * bz + ax * by - ay * bx, aw1 = aw * bw - ax * bx - ay * by - az * bz;\n    quat.rotateY(out, a, rad);\n    bx = out[0];\n    by = out[1];\n    bz = out[2];\n    bw = out[3];\n    out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by;\n    out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz;\n    out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx;\n    out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz;\n    return out;\n}\n/**\n * Rotates a dual quat around the Z axis\n *\n * @param {quat2} out the receiving dual quaternion\n * @param {ReadonlyQuat2} a the dual quaternion to rotate\n * @param {number} rad how far should the rotation be\n * @returns {quat2} out\n */\nfunction rotateZ(out, a, rad) {\n    var bx = -a[0], by = -a[1], bz = -a[2], bw = a[3], ax = a[4], ay = a[5], az = a[6], aw = a[7], ax1 = ax * bw + aw * bx + ay * bz - az * by, ay1 = ay * bw + aw * by + az * bx - ax * bz, az1 = az * bw + aw * bz + ax * by - ay * bx, aw1 = aw * bw - ax * bx - ay * by - az * bz;\n    quat.rotateZ(out, a, rad);\n    bx = out[0];\n    by = out[1];\n    bz = out[2];\n    bw = out[3];\n    out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by;\n    out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz;\n    out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx;\n    out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz;\n    return out;\n}\n/**\n * Rotates a dual quat by a given quaternion (a * q)\n *\n * @param {quat2} out the receiving dual quaternion\n * @param {ReadonlyQuat2} a the dual quaternion to rotate\n * @param {ReadonlyQuat} q quaternion to rotate by\n * @returns {quat2} out\n */\nfunction rotateByQuatAppend(out, a, q) {\n    var qx = q[0], qy = q[1], qz = q[2], qw = q[3], ax = a[0], ay = a[1], az = a[2], aw = a[3];\n    out[0] = ax * qw + aw * qx + ay * qz - az * qy;\n    out[1] = ay * qw + aw * qy + az * qx - ax * qz;\n    out[2] = az * qw + aw * qz + ax * qy - ay * qx;\n    out[3] = aw * qw - ax * qx - ay * qy - az * qz;\n    ax = a[4];\n    ay = a[5];\n    az = a[6];\n    aw = a[7];\n    out[4] = ax * qw + aw * qx + ay * qz - az * qy;\n    out[5] = ay * qw + aw * qy + az * qx - ax * qz;\n    out[6] = az * qw + aw * qz + ax * qy - ay * qx;\n    out[7] = aw * qw - ax * qx - ay * qy - az * qz;\n    return out;\n}\n/**\n * Rotates a dual quat by a given quaternion (q * a)\n *\n * @param {quat2} out the receiving dual quaternion\n * @param {ReadonlyQuat} q quaternion to rotate by\n * @param {ReadonlyQuat2} a the dual quaternion to rotate\n * @returns {quat2} out\n */\nfunction rotateByQuatPrepend(out, q, a) {\n    var qx = q[0], qy = q[1], qz = q[2], qw = q[3], bx = a[0], by = a[1], bz = a[2], bw = a[3];\n    out[0] = qx * bw + qw * bx + qy * bz - qz * by;\n    out[1] = qy * bw + qw * by + qz * bx - qx * bz;\n    out[2] = qz * bw + qw * bz + qx * by - qy * bx;\n    out[3] = qw * bw - qx * bx - qy * by - qz * bz;\n    bx = a[4];\n    by = a[5];\n    bz = a[6];\n    bw = a[7];\n    out[4] = qx * bw + qw * bx + qy * bz - qz * by;\n    out[5] = qy * bw + qw * by + qz * bx - qx * bz;\n    out[6] = qz * bw + qw * bz + qx * by - qy * bx;\n    out[7] = qw * bw - qx * bx - qy * by - qz * bz;\n    return out;\n}\n/**\n * Rotates a dual quat around a given axis. Does the normalisation automatically\n *\n * @param {quat2} out the receiving dual quaternion\n * @param {ReadonlyQuat2} a the dual quaternion to rotate\n * @param {ReadonlyVec3} axis the axis to rotate around\n * @param {Number} rad how far the rotation should be\n * @returns {quat2} out\n */\nfunction rotateAroundAxis(out, a, axis, rad) {\n    //Special case for rad = 0\n    if (Math.abs(rad) < glMatrix.EPSILON) {\n        return copy(out, a);\n    }\n    var axisLength = Math.hypot(axis[0], axis[1], axis[2]);\n    rad = rad * 0.5;\n    var s = Math.sin(rad);\n    var bx = s * axis[0] / axisLength;\n    var by = s * axis[1] / axisLength;\n    var bz = s * axis[2] / axisLength;\n    var bw = Math.cos(rad);\n    var ax1 = a[0], ay1 = a[1], az1 = a[2], aw1 = a[3];\n    out[0] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by;\n    out[1] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz;\n    out[2] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx;\n    out[3] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz;\n    var ax = a[4], ay = a[5], az = a[6], aw = a[7];\n    out[4] = ax * bw + aw * bx + ay * bz - az * by;\n    out[5] = ay * bw + aw * by + az * bx - ax * bz;\n    out[6] = az * bw + aw * bz + ax * by - ay * bx;\n    out[7] = aw * bw - ax * bx - ay * by - az * bz;\n    return out;\n}\n/**\n * Adds two dual quat's\n *\n * @param {quat2} out the receiving dual quaternion\n * @param {ReadonlyQuat2} a the first operand\n * @param {ReadonlyQuat2} b the second operand\n * @returns {quat2} out\n * @function\n */\nfunction add(out, a, b) {\n    out[0] = a[0] + b[0];\n    out[1] = a[1] + b[1];\n    out[2] = a[2] + b[2];\n    out[3] = a[3] + b[3];\n    out[4] = a[4] + b[4];\n    out[5] = a[5] + b[5];\n    out[6] = a[6] + b[6];\n    out[7] = a[7] + b[7];\n    return out;\n}\n/**\n * Multiplies two dual quat's\n *\n * @param {quat2} out the receiving dual quaternion\n * @param {ReadonlyQuat2} a the first operand\n * @param {ReadonlyQuat2} b the second operand\n * @returns {quat2} out\n */\nfunction multiply(out, a, b) {\n    var ax0 = a[0], ay0 = a[1], az0 = a[2], aw0 = a[3], bx1 = b[4], by1 = b[5], bz1 = b[6], bw1 = b[7], ax1 = a[4], ay1 = a[5], az1 = a[6], aw1 = a[7], bx0 = b[0], by0 = b[1], bz0 = b[2], bw0 = b[3];\n    out[0] = ax0 * bw0 + aw0 * bx0 + ay0 * bz0 - az0 * by0;\n    out[1] = ay0 * bw0 + aw0 * by0 + az0 * bx0 - ax0 * bz0;\n    out[2] = az0 * bw0 + aw0 * bz0 + ax0 * by0 - ay0 * bx0;\n    out[3] = aw0 * bw0 - ax0 * bx0 - ay0 * by0 - az0 * bz0;\n    out[4] = ax0 * bw1 + aw0 * bx1 + ay0 * bz1 - az0 * by1 + ax1 * bw0 + aw1 * bx0 + ay1 * bz0 - az1 * by0;\n    out[5] = ay0 * bw1 + aw0 * by1 + az0 * bx1 - ax0 * bz1 + ay1 * bw0 + aw1 * by0 + az1 * bx0 - ax1 * bz0;\n    out[6] = az0 * bw1 + aw0 * bz1 + ax0 * by1 - ay0 * bx1 + az1 * bw0 + aw1 * bz0 + ax1 * by0 - ay1 * bx0;\n    out[7] = aw0 * bw1 - ax0 * bx1 - ay0 * by1 - az0 * bz1 + aw1 * bw0 - ax1 * bx0 - ay1 * by0 - az1 * bz0;\n    return out;\n}\n/**\n * Alias for {@link quat2.multiply}\n * @function\n */\nexports.mul = multiply;\n/**\n * Scales a dual quat by a scalar number\n *\n * @param {quat2} out the receiving dual quat\n * @param {ReadonlyQuat2} a the dual quat to scale\n * @param {Number} b amount to scale the dual quat by\n * @returns {quat2} out\n * @function\n */\nfunction scale(out, a, b) {\n    out[0] = a[0] * b;\n    out[1] = a[1] * b;\n    out[2] = a[2] * b;\n    out[3] = a[3] * b;\n    out[4] = a[4] * b;\n    out[5] = a[5] * b;\n    out[6] = a[6] * b;\n    out[7] = a[7] * b;\n    return out;\n}\n/**\n * Calculates the dot product of two dual quat's (The dot product of the real parts)\n *\n * @param {ReadonlyQuat2} a the first operand\n * @param {ReadonlyQuat2} b the second operand\n * @returns {Number} dot product of a and b\n * @function\n */\nexports.dot = quat.dot;\n/**\n * Performs a linear interpolation between two dual quats's\n * NOTE: The resulting dual quaternions won't always be normalized (The error is most noticeable when t = 0.5)\n *\n * @param {quat2} out the receiving dual quat\n * @param {ReadonlyQuat2} a the first operand\n * @param {ReadonlyQuat2} b the second operand\n * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n * @returns {quat2} out\n */\nfunction lerp(out, a, b, t) {\n    var mt = 1 - t;\n    if ((0, exports.dot)(a, b) < 0)\n        t = -t;\n    out[0] = a[0] * mt + b[0] * t;\n    out[1] = a[1] * mt + b[1] * t;\n    out[2] = a[2] * mt + b[2] * t;\n    out[3] = a[3] * mt + b[3] * t;\n    out[4] = a[4] * mt + b[4] * t;\n    out[5] = a[5] * mt + b[5] * t;\n    out[6] = a[6] * mt + b[6] * t;\n    out[7] = a[7] * mt + b[7] * t;\n    return out;\n}\n/**\n * Calculates the inverse of a dual quat. If they are normalized, conjugate is cheaper\n *\n * @param {quat2} out the receiving dual quaternion\n * @param {ReadonlyQuat2} a dual quat to calculate inverse of\n * @returns {quat2} out\n */\nfunction invert(out, a) {\n    var sqlen = (0, exports.squaredLength)(a);\n    out[0] = -a[0] / sqlen;\n    out[1] = -a[1] / sqlen;\n    out[2] = -a[2] / sqlen;\n    out[3] = a[3] / sqlen;\n    out[4] = -a[4] / sqlen;\n    out[5] = -a[5] / sqlen;\n    out[6] = -a[6] / sqlen;\n    out[7] = a[7] / sqlen;\n    return out;\n}\n/**\n * Calculates the conjugate of a dual quat\n * If the dual quaternion is normalized, this function is faster than quat2.inverse and produces the same result.\n *\n * @param {quat2} out the receiving quaternion\n * @param {ReadonlyQuat2} a quat to calculate conjugate of\n * @returns {quat2} out\n */\nfunction conjugate(out, a) {\n    out[0] = -a[0];\n    out[1] = -a[1];\n    out[2] = -a[2];\n    out[3] = a[3];\n    out[4] = -a[4];\n    out[5] = -a[5];\n    out[6] = -a[6];\n    out[7] = a[7];\n    return out;\n}\n/**\n * Calculates the length of a dual quat\n *\n * @param {ReadonlyQuat2} a dual quat to calculate length of\n * @returns {Number} length of a\n * @function\n */\nexports.length = quat.length;\n/**\n * Alias for {@link quat2.length}\n * @function\n */\nexports.len = exports.length;\n/**\n * Calculates the squared length of a dual quat\n *\n * @param {ReadonlyQuat2} a dual quat to calculate squared length of\n * @returns {Number} squared length of a\n * @function\n */\nexports.squaredLength = quat.squaredLength;\n/**\n * Alias for {@link quat2.squaredLength}\n * @function\n */\nexports.sqrLen = exports.squaredLength;\n/**\n * Normalize a dual quat\n *\n * @param {quat2} out the receiving dual quaternion\n * @param {ReadonlyQuat2} a dual quaternion to normalize\n * @returns {quat2} out\n * @function\n */\nfunction normalize(out, a) {\n    var magnitude = (0, exports.squaredLength)(a);\n    if (magnitude > 0) {\n        magnitude = Math.sqrt(magnitude);\n        var a0 = a[0] / magnitude;\n        var a1 = a[1] / magnitude;\n        var a2 = a[2] / magnitude;\n        var a3 = a[3] / magnitude;\n        var b0 = a[4];\n        var b1 = a[5];\n        var b2 = a[6];\n        var b3 = a[7];\n        var a_dot_b = a0 * b0 + a1 * b1 + a2 * b2 + a3 * b3;\n        out[0] = a0;\n        out[1] = a1;\n        out[2] = a2;\n        out[3] = a3;\n        out[4] = (b0 - a0 * a_dot_b) / magnitude;\n        out[5] = (b1 - a1 * a_dot_b) / magnitude;\n        out[6] = (b2 - a2 * a_dot_b) / magnitude;\n        out[7] = (b3 - a3 * a_dot_b) / magnitude;\n    }\n    return out;\n}\n/**\n * Returns a string representation of a dual quatenion\n *\n * @param {ReadonlyQuat2} a dual quaternion to represent as a string\n * @returns {String} string representation of the dual quat\n */\nfunction str(a) {\n    return \"quat2(\" + a[0] + \", \" + a[1] + \", \" + a[2] + \", \" + a[3] + \", \" + a[4] + \", \" + a[5] + \", \" + a[6] + \", \" + a[7] + \")\";\n}\n/**\n * Returns whether or not the dual quaternions have exactly the same elements in the same position (when compared with ===)\n *\n * @param {ReadonlyQuat2} a the first dual quaternion.\n * @param {ReadonlyQuat2} b the second dual quaternion.\n * @returns {Boolean} true if the dual quaternions are equal, false otherwise.\n */\nfunction exactEquals(a, b) {\n    return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7];\n}\n/**\n * Returns whether or not the dual quaternions have approximately the same elements in the same position.\n *\n * @param {ReadonlyQuat2} a the first dual quat.\n * @param {ReadonlyQuat2} b the second dual quat.\n * @returns {Boolean} true if the dual quats are equal, false otherwise.\n */\nfunction equals(a, b) {\n    var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5], a6 = a[6], a7 = a[7];\n    var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3], b4 = b[4], b5 = b[5], b6 = b[6], b7 = b[7];\n    return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7));\n}\n","type":"js","dependency_paths":[["./common.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/common.js"],["./quat.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/quat.js"],["./mat4.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/mat4.js"]],"dependency_map":[],"exported":[{"type":"named","name":"create"},{"type":"named","name":"clone"},{"type":"named","name":"fromValues"},{"type":"named","name":"fromRotationTranslationValues"},{"type":"named","name":"fromRotationTranslation"},{"type":"named","name":"fromTranslation"},{"type":"named","name":"fromRotation"},{"type":"named","name":"fromMat4"},{"type":"named","name":"copy"},{"type":"named","name":"identity"},{"type":"named","name":"set"},{"type":"named","name":"getDual"},{"type":"named","name":"setDual"},{"type":"named","name":"getTranslation"},{"type":"named","name":"translate"},{"type":"named","name":"rotateX"},{"type":"named","name":"rotateY"},{"type":"named","name":"rotateZ"},{"type":"named","name":"rotateByQuatAppend"},{"type":"named","name":"rotateByQuatPrepend"},{"type":"named","name":"rotateAroundAxis"},{"type":"named","name":"add"},{"type":"named","name":"multiply"},{"type":"named","name":"scale"},{"type":"named","name":"lerp"},{"type":"named","name":"invert"},{"type":"named","name":"conjugate"},{"type":"named","name":"normalize"},{"type":"named","name":"str"},{"type":"named","name":"exactEquals"},{"type":"named","name":"equals"}],"externals":[],"shims":[]},"code":{"source":"/* gl-matrix/esm/quat2.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.create = create;\n    exports.clone = clone;\n    exports.fromValues = fromValues;\n    exports.fromRotationTranslationValues = fromRotationTranslationValues;\n    exports.fromRotationTranslation = fromRotationTranslation;\n    exports.fromTranslation = fromTranslation;\n    exports.fromRotation = fromRotation;\n    exports.fromMat4 = fromMat4;\n    exports.copy = copy;\n    exports.identity = identity;\n    exports.set = set;\n    exports.getDual = getDual;\n    exports.setDual = setDual;\n    exports.getTranslation = getTranslation;\n    exports.translate = translate;\n    exports.rotateX = rotateX;\n    exports.rotateY = rotateY;\n    exports.rotateZ = rotateZ;\n    exports.rotateByQuatAppend = rotateByQuatAppend;\n    exports.rotateByQuatPrepend = rotateByQuatPrepend;\n    exports.rotateAroundAxis = rotateAroundAxis;\n    exports.add = add;\n    exports.multiply = multiply;\n    exports.scale = scale;\n    exports.lerp = lerp;\n    exports.invert = invert;\n    exports.conjugate = conjugate;\n    exports.normalize = normalize;\n    exports.str = str;\n    exports.exactEquals = exactEquals;\n    exports.equals = equals;\n    const tslib_1 = require(\"tslib\");\n    const glMatrix = tslib_1.__importStar(require(\"7d825b979e\") /* ./common.js */);\n    const quat = tslib_1.__importStar(require(\"f83fe7c413\") /* ./quat.js */);\n    const mat4 = tslib_1.__importStar(require(\"83bad9e639\") /* ./mat4.js */);\n    /**\n     * Dual Quaternion<br>\n     * Format: [real, dual]<br>\n     * Quaternion format: XYZW<br>\n     * Make sure to have normalized dual quaternions, otherwise the functions may not work as intended.<br>\n     * @module quat2\n     */\n    /**\n     * Creates a new identity dual quat\n     *\n     * @returns {quat2} a new dual quaternion [real -> rotation, dual -> translation]\n     */\n    function create() {\n        var dq = new glMatrix.ARRAY_TYPE(8);\n        if (glMatrix.ARRAY_TYPE != Float32Array) {\n            dq[0] = 0;\n            dq[1] = 0;\n            dq[2] = 0;\n            dq[4] = 0;\n            dq[5] = 0;\n            dq[6] = 0;\n            dq[7] = 0;\n        }\n        dq[3] = 1;\n        return dq;\n    }\n    /**\n     * Creates a new quat initialized with values from an existing quaternion\n     *\n     * @param {ReadonlyQuat2} a dual quaternion to clone\n     * @returns {quat2} new dual quaternion\n     * @function\n     */\n    function clone(a) {\n        var dq = new glMatrix.ARRAY_TYPE(8);\n        dq[0] = a[0];\n        dq[1] = a[1];\n        dq[2] = a[2];\n        dq[3] = a[3];\n        dq[4] = a[4];\n        dq[5] = a[5];\n        dq[6] = a[6];\n        dq[7] = a[7];\n        return dq;\n    }\n    /**\n     * Creates a new dual quat initialized with the given values\n     *\n     * @param {Number} x1 X component\n     * @param {Number} y1 Y component\n     * @param {Number} z1 Z component\n     * @param {Number} w1 W component\n     * @param {Number} x2 X component\n     * @param {Number} y2 Y component\n     * @param {Number} z2 Z component\n     * @param {Number} w2 W component\n     * @returns {quat2} new dual quaternion\n     * @function\n     */\n    function fromValues(x1, y1, z1, w1, x2, y2, z2, w2) {\n        var dq = new glMatrix.ARRAY_TYPE(8);\n        dq[0] = x1;\n        dq[1] = y1;\n        dq[2] = z1;\n        dq[3] = w1;\n        dq[4] = x2;\n        dq[5] = y2;\n        dq[6] = z2;\n        dq[7] = w2;\n        return dq;\n    }\n    /**\n     * Creates a new dual quat from the given values (quat and translation)\n     *\n     * @param {Number} x1 X component\n     * @param {Number} y1 Y component\n     * @param {Number} z1 Z component\n     * @param {Number} w1 W component\n     * @param {Number} x2 X component (translation)\n     * @param {Number} y2 Y component (translation)\n     * @param {Number} z2 Z component (translation)\n     * @returns {quat2} new dual quaternion\n     * @function\n     */\n    function fromRotationTranslationValues(x1, y1, z1, w1, x2, y2, z2) {\n        var dq = new glMatrix.ARRAY_TYPE(8);\n        dq[0] = x1;\n        dq[1] = y1;\n        dq[2] = z1;\n        dq[3] = w1;\n        var ax = x2 * 0.5, ay = y2 * 0.5, az = z2 * 0.5;\n        dq[4] = ax * w1 + ay * z1 - az * y1;\n        dq[5] = ay * w1 + az * x1 - ax * z1;\n        dq[6] = az * w1 + ax * y1 - ay * x1;\n        dq[7] = -ax * x1 - ay * y1 - az * z1;\n        return dq;\n    }\n    /**\n     * Creates a dual quat from a quaternion and a translation\n     *\n     * @param {ReadonlyQuat2} dual quaternion receiving operation result\n     * @param {ReadonlyQuat} q a normalized quaternion\n     * @param {ReadonlyVec3} t tranlation vector\n     * @returns {quat2} dual quaternion receiving operation result\n     * @function\n     */\n    function fromRotationTranslation(out, q, t) {\n        var ax = t[0] * 0.5, ay = t[1] * 0.5, az = t[2] * 0.5, bx = q[0], by = q[1], bz = q[2], bw = q[3];\n        out[0] = bx;\n        out[1] = by;\n        out[2] = bz;\n        out[3] = bw;\n        out[4] = ax * bw + ay * bz - az * by;\n        out[5] = ay * bw + az * bx - ax * bz;\n        out[6] = az * bw + ax * by - ay * bx;\n        out[7] = -ax * bx - ay * by - az * bz;\n        return out;\n    }\n    /**\n     * Creates a dual quat from a translation\n     *\n     * @param {ReadonlyQuat2} dual quaternion receiving operation result\n     * @param {ReadonlyVec3} t translation vector\n     * @returns {quat2} dual quaternion receiving operation result\n     * @function\n     */\n    function fromTranslation(out, t) {\n        out[0] = 0;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 1;\n        out[4] = t[0] * 0.5;\n        out[5] = t[1] * 0.5;\n        out[6] = t[2] * 0.5;\n        out[7] = 0;\n        return out;\n    }\n    /**\n     * Creates a dual quat from a quaternion\n     *\n     * @param {ReadonlyQuat2} dual quaternion receiving operation result\n     * @param {ReadonlyQuat} q the quaternion\n     * @returns {quat2} dual quaternion receiving operation result\n     * @function\n     */\n    function fromRotation(out, q) {\n        out[0] = q[0];\n        out[1] = q[1];\n        out[2] = q[2];\n        out[3] = q[3];\n        out[4] = 0;\n        out[5] = 0;\n        out[6] = 0;\n        out[7] = 0;\n        return out;\n    }\n    /**\n     * Creates a new dual quat from a matrix (4x4)\n     *\n     * @param {quat2} out the dual quaternion\n     * @param {ReadonlyMat4} a the matrix\n     * @returns {quat2} dual quat receiving operation result\n     * @function\n     */\n    function fromMat4(out, a) {\n        //TODO Optimize this\n        var outer = quat.create();\n        mat4.getRotation(outer, a);\n        var t = new glMatrix.ARRAY_TYPE(3);\n        mat4.getTranslation(t, a);\n        fromRotationTranslation(out, outer, t);\n        return out;\n    }\n    /**\n     * Copy the values from one dual quat to another\n     *\n     * @param {quat2} out the receiving dual quaternion\n     * @param {ReadonlyQuat2} a the source dual quaternion\n     * @returns {quat2} out\n     * @function\n     */\n    function copy(out, a) {\n        out[0] = a[0];\n        out[1] = a[1];\n        out[2] = a[2];\n        out[3] = a[3];\n        out[4] = a[4];\n        out[5] = a[5];\n        out[6] = a[6];\n        out[7] = a[7];\n        return out;\n    }\n    /**\n     * Set a dual quat to the identity dual quaternion\n     *\n     * @param {quat2} out the receiving quaternion\n     * @returns {quat2} out\n     */\n    function identity(out) {\n        out[0] = 0;\n        out[1] = 0;\n        out[2] = 0;\n        out[3] = 1;\n        out[4] = 0;\n        out[5] = 0;\n        out[6] = 0;\n        out[7] = 0;\n        return out;\n    }\n    /**\n     * Set the components of a dual quat to the given values\n     *\n     * @param {quat2} out the receiving quaternion\n     * @param {Number} x1 X component\n     * @param {Number} y1 Y component\n     * @param {Number} z1 Z component\n     * @param {Number} w1 W component\n     * @param {Number} x2 X component\n     * @param {Number} y2 Y component\n     * @param {Number} z2 Z component\n     * @param {Number} w2 W component\n     * @returns {quat2} out\n     * @function\n     */\n    function set(out, x1, y1, z1, w1, x2, y2, z2, w2) {\n        out[0] = x1;\n        out[1] = y1;\n        out[2] = z1;\n        out[3] = w1;\n        out[4] = x2;\n        out[5] = y2;\n        out[6] = z2;\n        out[7] = w2;\n        return out;\n    }\n    /**\n     * Gets the real part of a dual quat\n     * @param  {quat} out real part\n     * @param  {ReadonlyQuat2} a Dual Quaternion\n     * @return {quat} real part\n     */\n    exports.getReal = quat.copy;\n    /**\n     * Gets the dual part of a dual quat\n     * @param  {quat} out dual part\n     * @param  {ReadonlyQuat2} a Dual Quaternion\n     * @return {quat} dual part\n     */\n    function getDual(out, a) {\n        out[0] = a[4];\n        out[1] = a[5];\n        out[2] = a[6];\n        out[3] = a[7];\n        return out;\n    }\n    /**\n     * Set the real component of a dual quat to the given quaternion\n     *\n     * @param {quat2} out the receiving quaternion\n     * @param {ReadonlyQuat} q a quaternion representing the real part\n     * @returns {quat2} out\n     * @function\n     */\n    exports.setReal = quat.copy;\n    /**\n     * Set the dual component of a dual quat to the given quaternion\n     *\n     * @param {quat2} out the receiving quaternion\n     * @param {ReadonlyQuat} q a quaternion representing the dual part\n     * @returns {quat2} out\n     * @function\n     */\n    function setDual(out, q) {\n        out[4] = q[0];\n        out[5] = q[1];\n        out[6] = q[2];\n        out[7] = q[3];\n        return out;\n    }\n    /**\n     * Gets the translation of a normalized dual quat\n     * @param  {vec3} out translation\n     * @param  {ReadonlyQuat2} a Dual Quaternion to be decomposed\n     * @return {vec3} translation\n     */\n    function getTranslation(out, a) {\n        var ax = a[4], ay = a[5], az = a[6], aw = a[7], bx = -a[0], by = -a[1], bz = -a[2], bw = a[3];\n        out[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2;\n        out[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2;\n        out[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2;\n        return out;\n    }\n    /**\n     * Translates a dual quat by the given vector\n     *\n     * @param {quat2} out the receiving dual quaternion\n     * @param {ReadonlyQuat2} a the dual quaternion to translate\n     * @param {ReadonlyVec3} v vector to translate by\n     * @returns {quat2} out\n     */\n    function translate(out, a, v) {\n        var ax1 = a[0], ay1 = a[1], az1 = a[2], aw1 = a[3], bx1 = v[0] * 0.5, by1 = v[1] * 0.5, bz1 = v[2] * 0.5, ax2 = a[4], ay2 = a[5], az2 = a[6], aw2 = a[7];\n        out[0] = ax1;\n        out[1] = ay1;\n        out[2] = az1;\n        out[3] = aw1;\n        out[4] = aw1 * bx1 + ay1 * bz1 - az1 * by1 + ax2;\n        out[5] = aw1 * by1 + az1 * bx1 - ax1 * bz1 + ay2;\n        out[6] = aw1 * bz1 + ax1 * by1 - ay1 * bx1 + az2;\n        out[7] = -ax1 * bx1 - ay1 * by1 - az1 * bz1 + aw2;\n        return out;\n    }\n    /**\n     * Rotates a dual quat around the X axis\n     *\n     * @param {quat2} out the receiving dual quaternion\n     * @param {ReadonlyQuat2} a the dual quaternion to rotate\n     * @param {number} rad how far should the rotation be\n     * @returns {quat2} out\n     */\n    function rotateX(out, a, rad) {\n        var bx = -a[0], by = -a[1], bz = -a[2], bw = a[3], ax = a[4], ay = a[5], az = a[6], aw = a[7], ax1 = ax * bw + aw * bx + ay * bz - az * by, ay1 = ay * bw + aw * by + az * bx - ax * bz, az1 = az * bw + aw * bz + ax * by - ay * bx, aw1 = aw * bw - ax * bx - ay * by - az * bz;\n        quat.rotateX(out, a, rad);\n        bx = out[0];\n        by = out[1];\n        bz = out[2];\n        bw = out[3];\n        out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by;\n        out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz;\n        out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx;\n        out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz;\n        return out;\n    }\n    /**\n     * Rotates a dual quat around the Y axis\n     *\n     * @param {quat2} out the receiving dual quaternion\n     * @param {ReadonlyQuat2} a the dual quaternion to rotate\n     * @param {number} rad how far should the rotation be\n     * @returns {quat2} out\n     */\n    function rotateY(out, a, rad) {\n        var bx = -a[0], by = -a[1], bz = -a[2], bw = a[3], ax = a[4], ay = a[5], az = a[6], aw = a[7], ax1 = ax * bw + aw * bx + ay * bz - az * by, ay1 = ay * bw + aw * by + az * bx - ax * bz, az1 = az * bw + aw * bz + ax * by - ay * bx, aw1 = aw * bw - ax * bx - ay * by - az * bz;\n        quat.rotateY(out, a, rad);\n        bx = out[0];\n        by = out[1];\n        bz = out[2];\n        bw = out[3];\n        out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by;\n        out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz;\n        out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx;\n        out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz;\n        return out;\n    }\n    /**\n     * Rotates a dual quat around the Z axis\n     *\n     * @param {quat2} out the receiving dual quaternion\n     * @param {ReadonlyQuat2} a the dual quaternion to rotate\n     * @param {number} rad how far should the rotation be\n     * @returns {quat2} out\n     */\n    function rotateZ(out, a, rad) {\n        var bx = -a[0], by = -a[1], bz = -a[2], bw = a[3], ax = a[4], ay = a[5], az = a[6], aw = a[7], ax1 = ax * bw + aw * bx + ay * bz - az * by, ay1 = ay * bw + aw * by + az * bx - ax * bz, az1 = az * bw + aw * bz + ax * by - ay * bx, aw1 = aw * bw - ax * bx - ay * by - az * bz;\n        quat.rotateZ(out, a, rad);\n        bx = out[0];\n        by = out[1];\n        bz = out[2];\n        bw = out[3];\n        out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by;\n        out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz;\n        out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx;\n        out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz;\n        return out;\n    }\n    /**\n     * Rotates a dual quat by a given quaternion (a * q)\n     *\n     * @param {quat2} out the receiving dual quaternion\n     * @param {ReadonlyQuat2} a the dual quaternion to rotate\n     * @param {ReadonlyQuat} q quaternion to rotate by\n     * @returns {quat2} out\n     */\n    function rotateByQuatAppend(out, a, q) {\n        var qx = q[0], qy = q[1], qz = q[2], qw = q[3], ax = a[0], ay = a[1], az = a[2], aw = a[3];\n        out[0] = ax * qw + aw * qx + ay * qz - az * qy;\n        out[1] = ay * qw + aw * qy + az * qx - ax * qz;\n        out[2] = az * qw + aw * qz + ax * qy - ay * qx;\n        out[3] = aw * qw - ax * qx - ay * qy - az * qz;\n        ax = a[4];\n        ay = a[5];\n        az = a[6];\n        aw = a[7];\n        out[4] = ax * qw + aw * qx + ay * qz - az * qy;\n        out[5] = ay * qw + aw * qy + az * qx - ax * qz;\n        out[6] = az * qw + aw * qz + ax * qy - ay * qx;\n        out[7] = aw * qw - ax * qx - ay * qy - az * qz;\n        return out;\n    }\n    /**\n     * Rotates a dual quat by a given quaternion (q * a)\n     *\n     * @param {quat2} out the receiving dual quaternion\n     * @param {ReadonlyQuat} q quaternion to rotate by\n     * @param {ReadonlyQuat2} a the dual quaternion to rotate\n     * @returns {quat2} out\n     */\n    function rotateByQuatPrepend(out, q, a) {\n        var qx = q[0], qy = q[1], qz = q[2], qw = q[3], bx = a[0], by = a[1], bz = a[2], bw = a[3];\n        out[0] = qx * bw + qw * bx + qy * bz - qz * by;\n        out[1] = qy * bw + qw * by + qz * bx - qx * bz;\n        out[2] = qz * bw + qw * bz + qx * by - qy * bx;\n        out[3] = qw * bw - qx * bx - qy * by - qz * bz;\n        bx = a[4];\n        by = a[5];\n        bz = a[6];\n        bw = a[7];\n        out[4] = qx * bw + qw * bx + qy * bz - qz * by;\n        out[5] = qy * bw + qw * by + qz * bx - qx * bz;\n        out[6] = qz * bw + qw * bz + qx * by - qy * bx;\n        out[7] = qw * bw - qx * bx - qy * by - qz * bz;\n        return out;\n    }\n    /**\n     * Rotates a dual quat around a given axis. Does the normalisation automatically\n     *\n     * @param {quat2} out the receiving dual quaternion\n     * @param {ReadonlyQuat2} a the dual quaternion to rotate\n     * @param {ReadonlyVec3} axis the axis to rotate around\n     * @param {Number} rad how far the rotation should be\n     * @returns {quat2} out\n     */\n    function rotateAroundAxis(out, a, axis, rad) {\n        //Special case for rad = 0\n        if (Math.abs(rad) < glMatrix.EPSILON) {\n            return copy(out, a);\n        }\n        var axisLength = Math.hypot(axis[0], axis[1], axis[2]);\n        rad = rad * 0.5;\n        var s = Math.sin(rad);\n        var bx = s * axis[0] / axisLength;\n        var by = s * axis[1] / axisLength;\n        var bz = s * axis[2] / axisLength;\n        var bw = Math.cos(rad);\n        var ax1 = a[0], ay1 = a[1], az1 = a[2], aw1 = a[3];\n        out[0] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by;\n        out[1] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz;\n        out[2] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx;\n        out[3] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz;\n        var ax = a[4], ay = a[5], az = a[6], aw = a[7];\n        out[4] = ax * bw + aw * bx + ay * bz - az * by;\n        out[5] = ay * bw + aw * by + az * bx - ax * bz;\n        out[6] = az * bw + aw * bz + ax * by - ay * bx;\n        out[7] = aw * bw - ax * bx - ay * by - az * bz;\n        return out;\n    }\n    /**\n     * Adds two dual quat's\n     *\n     * @param {quat2} out the receiving dual quaternion\n     * @param {ReadonlyQuat2} a the first operand\n     * @param {ReadonlyQuat2} b the second operand\n     * @returns {quat2} out\n     * @function\n     */\n    function add(out, a, b) {\n        out[0] = a[0] + b[0];\n        out[1] = a[1] + b[1];\n        out[2] = a[2] + b[2];\n        out[3] = a[3] + b[3];\n        out[4] = a[4] + b[4];\n        out[5] = a[5] + b[5];\n        out[6] = a[6] + b[6];\n        out[7] = a[7] + b[7];\n        return out;\n    }\n    /**\n     * Multiplies two dual quat's\n     *\n     * @param {quat2} out the receiving dual quaternion\n     * @param {ReadonlyQuat2} a the first operand\n     * @param {ReadonlyQuat2} b the second operand\n     * @returns {quat2} out\n     */\n    function multiply(out, a, b) {\n        var ax0 = a[0], ay0 = a[1], az0 = a[2], aw0 = a[3], bx1 = b[4], by1 = b[5], bz1 = b[6], bw1 = b[7], ax1 = a[4], ay1 = a[5], az1 = a[6], aw1 = a[7], bx0 = b[0], by0 = b[1], bz0 = b[2], bw0 = b[3];\n        out[0] = ax0 * bw0 + aw0 * bx0 + ay0 * bz0 - az0 * by0;\n        out[1] = ay0 * bw0 + aw0 * by0 + az0 * bx0 - ax0 * bz0;\n        out[2] = az0 * bw0 + aw0 * bz0 + ax0 * by0 - ay0 * bx0;\n        out[3] = aw0 * bw0 - ax0 * bx0 - ay0 * by0 - az0 * bz0;\n        out[4] = ax0 * bw1 + aw0 * bx1 + ay0 * bz1 - az0 * by1 + ax1 * bw0 + aw1 * bx0 + ay1 * bz0 - az1 * by0;\n        out[5] = ay0 * bw1 + aw0 * by1 + az0 * bx1 - ax0 * bz1 + ay1 * bw0 + aw1 * by0 + az1 * bx0 - ax1 * bz0;\n        out[6] = az0 * bw1 + aw0 * bz1 + ax0 * by1 - ay0 * bx1 + az1 * bw0 + aw1 * bz0 + ax1 * by0 - ay1 * bx0;\n        out[7] = aw0 * bw1 - ax0 * bx1 - ay0 * by1 - az0 * bz1 + aw1 * bw0 - ax1 * bx0 - ay1 * by0 - az1 * bz0;\n        return out;\n    }\n    /**\n     * Alias for {@link quat2.multiply}\n     * @function\n     */\n    exports.mul = multiply;\n    /**\n     * Scales a dual quat by a scalar number\n     *\n     * @param {quat2} out the receiving dual quat\n     * @param {ReadonlyQuat2} a the dual quat to scale\n     * @param {Number} b amount to scale the dual quat by\n     * @returns {quat2} out\n     * @function\n     */\n    function scale(out, a, b) {\n        out[0] = a[0] * b;\n        out[1] = a[1] * b;\n        out[2] = a[2] * b;\n        out[3] = a[3] * b;\n        out[4] = a[4] * b;\n        out[5] = a[5] * b;\n        out[6] = a[6] * b;\n        out[7] = a[7] * b;\n        return out;\n    }\n    /**\n     * Calculates the dot product of two dual quat's (The dot product of the real parts)\n     *\n     * @param {ReadonlyQuat2} a the first operand\n     * @param {ReadonlyQuat2} b the second operand\n     * @returns {Number} dot product of a and b\n     * @function\n     */\n    exports.dot = quat.dot;\n    /**\n     * Performs a linear interpolation between two dual quats's\n     * NOTE: The resulting dual quaternions won't always be normalized (The error is most noticeable when t = 0.5)\n     *\n     * @param {quat2} out the receiving dual quat\n     * @param {ReadonlyQuat2} a the first operand\n     * @param {ReadonlyQuat2} b the second operand\n     * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n     * @returns {quat2} out\n     */\n    function lerp(out, a, b, t) {\n        var mt = 1 - t;\n        if ((0, exports.dot)(a, b) < 0)\n            t = -t;\n        out[0] = a[0] * mt + b[0] * t;\n        out[1] = a[1] * mt + b[1] * t;\n        out[2] = a[2] * mt + b[2] * t;\n        out[3] = a[3] * mt + b[3] * t;\n        out[4] = a[4] * mt + b[4] * t;\n        out[5] = a[5] * mt + b[5] * t;\n        out[6] = a[6] * mt + b[6] * t;\n        out[7] = a[7] * mt + b[7] * t;\n        return out;\n    }\n    /**\n     * Calculates the inverse of a dual quat. If they are normalized, conjugate is cheaper\n     *\n     * @param {quat2} out the receiving dual quaternion\n     * @param {ReadonlyQuat2} a dual quat to calculate inverse of\n     * @returns {quat2} out\n     */\n    function invert(out, a) {\n        var sqlen = (0, exports.squaredLength)(a);\n        out[0] = -a[0] / sqlen;\n        out[1] = -a[1] / sqlen;\n        out[2] = -a[2] / sqlen;\n        out[3] = a[3] / sqlen;\n        out[4] = -a[4] / sqlen;\n        out[5] = -a[5] / sqlen;\n        out[6] = -a[6] / sqlen;\n        out[7] = a[7] / sqlen;\n        return out;\n    }\n    /**\n     * Calculates the conjugate of a dual quat\n     * If the dual quaternion is normalized, this function is faster than quat2.inverse and produces the same result.\n     *\n     * @param {quat2} out the receiving quaternion\n     * @param {ReadonlyQuat2} a quat to calculate conjugate of\n     * @returns {quat2} out\n     */\n    function conjugate(out, a) {\n        out[0] = -a[0];\n        out[1] = -a[1];\n        out[2] = -a[2];\n        out[3] = a[3];\n        out[4] = -a[4];\n        out[5] = -a[5];\n        out[6] = -a[6];\n        out[7] = a[7];\n        return out;\n    }\n    /**\n     * Calculates the length of a dual quat\n     *\n     * @param {ReadonlyQuat2} a dual quat to calculate length of\n     * @returns {Number} length of a\n     * @function\n     */\n    exports.length = quat.length;\n    /**\n     * Alias for {@link quat2.length}\n     * @function\n     */\n    exports.len = exports.length;\n    /**\n     * Calculates the squared length of a dual quat\n     *\n     * @param {ReadonlyQuat2} a dual quat to calculate squared length of\n     * @returns {Number} squared length of a\n     * @function\n     */\n    exports.squaredLength = quat.squaredLength;\n    /**\n     * Alias for {@link quat2.squaredLength}\n     * @function\n     */\n    exports.sqrLen = exports.squaredLength;\n    /**\n     * Normalize a dual quat\n     *\n     * @param {quat2} out the receiving dual quaternion\n     * @param {ReadonlyQuat2} a dual quaternion to normalize\n     * @returns {quat2} out\n     * @function\n     */\n    function normalize(out, a) {\n        var magnitude = (0, exports.squaredLength)(a);\n        if (magnitude > 0) {\n            magnitude = Math.sqrt(magnitude);\n            var a0 = a[0] / magnitude;\n            var a1 = a[1] / magnitude;\n            var a2 = a[2] / magnitude;\n            var a3 = a[3] / magnitude;\n            var b0 = a[4];\n            var b1 = a[5];\n            var b2 = a[6];\n            var b3 = a[7];\n            var a_dot_b = a0 * b0 + a1 * b1 + a2 * b2 + a3 * b3;\n            out[0] = a0;\n            out[1] = a1;\n            out[2] = a2;\n            out[3] = a3;\n            out[4] = (b0 - a0 * a_dot_b) / magnitude;\n            out[5] = (b1 - a1 * a_dot_b) / magnitude;\n            out[6] = (b2 - a2 * a_dot_b) / magnitude;\n            out[7] = (b3 - a3 * a_dot_b) / magnitude;\n        }\n        return out;\n    }\n    /**\n     * Returns a string representation of a dual quatenion\n     *\n     * @param {ReadonlyQuat2} a dual quaternion to represent as a string\n     * @returns {String} string representation of the dual quat\n     */\n    function str(a) {\n        return \"quat2(\" + a[0] + \", \" + a[1] + \", \" + a[2] + \", \" + a[3] + \", \" + a[4] + \", \" + a[5] + \", \" + a[6] + \", \" + a[7] + \")\";\n    }\n    /**\n     * Returns whether or not the dual quaternions have exactly the same elements in the same position (when compared with ===)\n     *\n     * @param {ReadonlyQuat2} a the first dual quaternion.\n     * @param {ReadonlyQuat2} b the second dual quaternion.\n     * @returns {Boolean} true if the dual quaternions are equal, false otherwise.\n     */\n    function exactEquals(a, b) {\n        return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7];\n    }\n    /**\n     * Returns whether or not the dual quaternions have approximately the same elements in the same position.\n     *\n     * @param {ReadonlyQuat2} a the first dual quat.\n     * @param {ReadonlyQuat2} b the second dual quat.\n     * @returns {Boolean} true if the dual quats are equal, false otherwise.\n     */\n    function equals(a, b) {\n        var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5], a6 = a[6], a7 = a[7];\n        var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3], b4 = b[4], b5 = b[5], b6 = b[6], b7 = b[7];\n        return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7));\n    }\n}\n","min_source":"function _(t,a,n,r,e){r(),n.create=function(){var t=new o.ARRAY_TYPE(8);o.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0);return t[3]=1,t},n.clone=function(t){var a=new o.ARRAY_TYPE(8);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a},n.fromValues=function(t,a,n,r,e,u,i,s){var h=new o.ARRAY_TYPE(8);return h[0]=t,h[1]=a,h[2]=n,h[3]=r,h[4]=e,h[5]=u,h[6]=i,h[7]=s,h},n.fromRotationTranslationValues=function(t,a,n,r,e,u,i){var s=new o.ARRAY_TYPE(8);s[0]=t,s[1]=a,s[2]=n,s[3]=r;var h=.5*e,c=.5*u,f=.5*i;return s[4]=h*r+c*n-f*a,s[5]=c*r+f*t-h*n,s[6]=f*r+h*a-c*t,s[7]=-h*t-c*a-f*n,s},n.fromRotationTranslation=h,n.fromTranslation=function(t,a){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*a[0],t[5]=.5*a[1],t[6]=.5*a[2],t[7]=0,t},n.fromRotation=function(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},n.fromMat4=function(t,a){var n=i.create();s.getRotation(n,a);var r=new o.ARRAY_TYPE(3);return s.getTranslation(r,a),h(t,n,r),t},n.copy=c,n.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},n.set=function(t,a,n,r,e,u,o,i,s){return t[0]=a,t[1]=n,t[2]=r,t[3]=e,t[4]=u,t[5]=o,t[6]=i,t[7]=s,t},n.getDual=function(t,a){return t[0]=a[4],t[1]=a[5],t[2]=a[6],t[3]=a[7],t},n.setDual=function(t,a){return t[4]=a[0],t[5]=a[1],t[6]=a[2],t[7]=a[3],t},n.getTranslation=function(t,a){var n=a[4],r=a[5],e=a[6],u=a[7],o=-a[0],i=-a[1],s=-a[2],h=a[3];return t[0]=2*(n*h+u*o+r*s-e*i),t[1]=2*(r*h+u*i+e*o-n*s),t[2]=2*(e*h+u*s+n*i-r*o),t},n.translate=function(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=.5*n[0],s=.5*n[1],h=.5*n[2],c=a[4],f=a[5],M=a[6],b=a[7];return t[0]=r,t[1]=e,t[2]=u,t[3]=o,t[4]=o*i+e*h-u*s+c,t[5]=o*s+u*i-r*h+f,t[6]=o*h+r*s-e*i+M,t[7]=-r*i-e*s-u*h+b,t},n.rotateX=function(t,a,n){var r=-a[0],e=-a[1],u=-a[2],o=a[3],s=a[4],h=a[5],c=a[6],f=a[7],M=s*o+f*r+h*u-c*e,b=h*o+f*e+c*r-s*u,l=c*o+f*u+s*e-h*r,v=f*o-s*r-h*e-c*u;return i.rotateX(t,a,n),r=t[0],e=t[1],u=t[2],o=t[3],t[4]=M*o+v*r+b*u-l*e,t[5]=b*o+v*e+l*r-M*u,t[6]=l*o+v*u+M*e-b*r,t[7]=v*o-M*r-b*e-l*u,t},n.rotateY=function(t,a,n){var r=-a[0],e=-a[1],u=-a[2],o=a[3],s=a[4],h=a[5],c=a[6],f=a[7],M=s*o+f*r+h*u-c*e,b=h*o+f*e+c*r-s*u,l=c*o+f*u+s*e-h*r,v=f*o-s*r-h*e-c*u;return i.rotateY(t,a,n),r=t[0],e=t[1],u=t[2],o=t[3],t[4]=M*o+v*r+b*u-l*e,t[5]=b*o+v*e+l*r-M*u,t[6]=l*o+v*u+M*e-b*r,t[7]=v*o-M*r-b*e-l*u,t},n.rotateZ=function(t,a,n){var r=-a[0],e=-a[1],u=-a[2],o=a[3],s=a[4],h=a[5],c=a[6],f=a[7],M=s*o+f*r+h*u-c*e,b=h*o+f*e+c*r-s*u,l=c*o+f*u+s*e-h*r,v=f*o-s*r-h*e-c*u;return i.rotateZ(t,a,n),r=t[0],e=t[1],u=t[2],o=t[3],t[4]=M*o+v*r+b*u-l*e,t[5]=b*o+v*e+l*r-M*u,t[6]=l*o+v*u+M*e-b*r,t[7]=v*o-M*r-b*e-l*u,t},n.rotateByQuatAppend=function(t,a,n){var r=n[0],e=n[1],u=n[2],o=n[3],i=a[0],s=a[1],h=a[2],c=a[3];return t[0]=i*o+c*r+s*u-h*e,t[1]=s*o+c*e+h*r-i*u,t[2]=h*o+c*u+i*e-s*r,t[3]=c*o-i*r-s*e-h*u,i=a[4],s=a[5],h=a[6],c=a[7],t[4]=i*o+c*r+s*u-h*e,t[5]=s*o+c*e+h*r-i*u,t[6]=h*o+c*u+i*e-s*r,t[7]=c*o-i*r-s*e-h*u,t},n.rotateByQuatPrepend=function(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=n[0],s=n[1],h=n[2],c=n[3];return t[0]=r*c+o*i+e*h-u*s,t[1]=e*c+o*s+u*i-r*h,t[2]=u*c+o*h+r*s-e*i,t[3]=o*c-r*i-e*s-u*h,i=n[4],s=n[5],h=n[6],c=n[7],t[4]=r*c+o*i+e*h-u*s,t[5]=e*c+o*s+u*i-r*h,t[6]=u*c+o*h+r*s-e*i,t[7]=o*c-r*i-e*s-u*h,t},n.rotateAroundAxis=function(t,a,n,r){if(Math.abs(r)<o.EPSILON)return c(t,a);var e=Math.hypot(n[0],n[1],n[2]);r*=.5;var u=Math.sin(r),i=u*n[0]/e,s=u*n[1]/e,h=u*n[2]/e,f=Math.cos(r),M=a[0],b=a[1],l=a[2],v=a[3];t[0]=M*f+v*i+b*h-l*s,t[1]=b*f+v*s+l*i-M*h,t[2]=l*f+v*h+M*s-b*i,t[3]=v*f-M*i-b*s-l*h;var m=a[4],R=a[5],d=a[6],A=a[7];return t[4]=m*f+A*i+R*h-d*s,t[5]=R*f+A*s+d*i-m*h,t[6]=d*f+A*h+m*s-R*i,t[7]=A*f-m*i-R*s-d*h,t},n.add=function(t,a,n){return t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t[3]=a[3]+n[3],t[4]=a[4]+n[4],t[5]=a[5]+n[5],t[6]=a[6]+n[6],t[7]=a[7]+n[7],t},n.multiply=f,n.scale=function(t,a,n){return t[0]=a[0]*n,t[1]=a[1]*n,t[2]=a[2]*n,t[3]=a[3]*n,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t},n.lerp=function(t,a,r,e){var u=1-e;(0,n.dot)(a,r)<0&&(e=-e);return t[0]=a[0]*u+r[0]*e,t[1]=a[1]*u+r[1]*e,t[2]=a[2]*u+r[2]*e,t[3]=a[3]*u+r[3]*e,t[4]=a[4]*u+r[4]*e,t[5]=a[5]*u+r[5]*e,t[6]=a[6]*u+r[6]*e,t[7]=a[7]*u+r[7]*e,t},n.invert=function(t,a){var r=(0,n.squaredLength)(a);return t[0]=-a[0]/r,t[1]=-a[1]/r,t[2]=-a[2]/r,t[3]=a[3]/r,t[4]=-a[4]/r,t[5]=-a[5]/r,t[6]=-a[6]/r,t[7]=a[7]/r,t},n.conjugate=function(t,a){return t[0]=-a[0],t[1]=-a[1],t[2]=-a[2],t[3]=a[3],t[4]=-a[4],t[5]=-a[5],t[6]=-a[6],t[7]=a[7],t},n.normalize=function(t,a){var r=(0,n.squaredLength)(a);if(r>0){r=Math.sqrt(r);var e=a[0]/r,u=a[1]/r,o=a[2]/r,i=a[3]/r,s=a[4],h=a[5],c=a[6],f=a[7],M=e*s+u*h+o*c+i*f;t[0]=e,t[1]=u,t[2]=o,t[3]=i,t[4]=(s-e*M)/r,t[5]=(h-u*M)/r,t[6]=(c-o*M)/r,t[7]=(f-i*M)/r}return t},n.str=function(t){return\"quat2(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\", \"+t[4]+\", \"+t[5]+\", \"+t[6]+\", \"+t[7]+\")\"},n.exactEquals=function(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]},n.equals=function(t,a){var n=t[0],r=t[1],e=t[2],u=t[3],i=t[4],s=t[5],h=t[6],c=t[7],f=a[0],M=a[1],b=a[2],l=a[3],v=a[4],m=a[5],R=a[6],d=a[7];return Math.abs(n-f)<=o.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-M)<=o.EPSILON*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(e-b)<=o.EPSILON*Math.max(1,Math.abs(e),Math.abs(b))&&Math.abs(u-l)<=o.EPSILON*Math.max(1,Math.abs(u),Math.abs(l))&&Math.abs(i-v)<=o.EPSILON*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(s-m)<=o.EPSILON*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(h-R)<=o.EPSILON*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(c-d)<=o.EPSILON*Math.max(1,Math.abs(c),Math.abs(d))};const u=t(\"tslib\"),o=u.__importStar(t(\"7d825b979e\")),i=u.__importStar(t(\"f83fe7c413\")),s=u.__importStar(t(\"83bad9e639\"));function h(t,a,n){var r=.5*n[0],e=.5*n[1],u=.5*n[2],o=a[0],i=a[1],s=a[2],h=a[3];return t[0]=o,t[1]=i,t[2]=s,t[3]=h,t[4]=r*h+e*s-u*i,t[5]=e*h+u*o-r*s,t[6]=u*h+r*i-e*o,t[7]=-r*o-e*i-u*s,t}function c(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t}function f(t,a,n){var r=a[0],e=a[1],u=a[2],o=a[3],i=n[4],s=n[5],h=n[6],c=n[7],f=a[4],M=a[5],b=a[6],l=a[7],v=n[0],m=n[1],R=n[2],d=n[3];return t[0]=r*d+o*v+e*R-u*m,t[1]=e*d+o*m+u*v-r*R,t[2]=u*d+o*R+r*m-e*v,t[3]=o*d-r*v-e*m-u*R,t[4]=r*c+o*i+e*h-u*s+f*d+l*v+M*R-b*m,t[5]=e*c+o*s+u*i-r*h+M*d+l*m+b*v-f*R,t[6]=u*c+o*h+r*s-e*i+b*d+l*R+f*m-M*v,t[7]=o*c-r*i-e*s-u*h+l*d-f*v-M*m-b*R,t}n.getReal=i.copy,n.setReal=i.copy,n.mul=f,n.dot=i.dot,n.length=i.length,n.len=n.length,n.squaredLength=i.squaredLength,n.sqrLen=n.squaredLength}\n//# sourceMappingURL=quat2.min.js.map","min_map":"{\"version\":3,\"file\":\"quat2.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"create\",\"dq\",\"glMatrix\",\"ARRAY_TYPE\",\"Float32Array\",\"clone\",\"a\",\"fromValues\",\"x1\",\"y1\",\"z1\",\"w1\",\"x2\",\"y2\",\"z2\",\"w2\",\"fromRotationTranslationValues\",\"ax\",\"ay\",\"az\",\"fromRotationTranslation\",\"fromTranslation\",\"out\",\"t\",\"fromRotation\",\"q\",\"fromMat4\",\"outer\",\"quat\",\"mat4\",\"getRotation\",\"getTranslation\",\"copy\",\"identity\",\"set\",\"getDual\",\"setDual\",\"aw\",\"bx\",\"by\",\"bz\",\"bw\",\"translate\",\"v\",\"ax1\",\"ay1\",\"az1\",\"aw1\",\"bx1\",\"by1\",\"bz1\",\"ax2\",\"ay2\",\"az2\",\"aw2\",\"rotateX\",\"rad\",\"rotateY\",\"rotateZ\",\"rotateByQuatAppend\",\"qx\",\"qy\",\"qz\",\"qw\",\"rotateByQuatPrepend\",\"rotateAroundAxis\",\"axis\",\"Math\",\"abs\",\"EPSILON\",\"axisLength\",\"hypot\",\"s\",\"sin\",\"cos\",\"add\",\"b\",\"multiply\",\"scale\",\"lerp\",\"mt\",\"dot\",\"invert\",\"sqlen\",\"squaredLength\",\"conjugate\",\"normalize\",\"magnitude\",\"sqrt\",\"a0\",\"a1\",\"a2\",\"a3\",\"b0\",\"b1\",\"b2\",\"b3\",\"a_dot_b\",\"str\",\"exactEquals\",\"equals\",\"a4\",\"a5\",\"a6\",\"a7\",\"b4\",\"b5\",\"b6\",\"b7\",\"max\",\"tslib_1\",\"__importStar\",\"ax0\",\"ay0\",\"az0\",\"aw0\",\"bw1\",\"bx0\",\"by0\",\"bz0\",\"bw0\",\"getReal\",\"setReal\",\"mul\",\"length\",\"len\",\"sqrLen\"],\"sources\":[\"0\"],\"mappings\":\"AAA6B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC1ED,IACAD,EAAQG,OA+CR,WACI,IAAIC,EAAK,IAAIC,EAASC,WAAW,GAC7BD,EAASC,YAAcC,eACvBH,EAAG,GAAK,EACRA,EAAG,GAAK,EACRA,EAAG,GAAK,EACRA,EAAG,GAAK,EACRA,EAAG,GAAK,EACRA,EAAG,GAAK,EACRA,EAAG,GAAK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AAQiI,OAASjI,EAAQuF,aAgE7B\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/vec2.js","base":"/home/runner/work/panel/panel/panel/node_modules","base_path":"gl-matrix/esm/vec2.js","resolution":"ESM","id":"58c71a9bd3","hash":"58c71a9bd30e1faba0530cf2f96cb6c90161283ed368d05936340ea65e13dad6","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.forEach = exports.sqrLen = exports.sqrDist = exports.dist = exports.div = exports.mul = exports.sub = exports.len = void 0;\nexports.create = create;\nexports.clone = clone;\nexports.fromValues = fromValues;\nexports.copy = copy;\nexports.set = set;\nexports.add = add;\nexports.subtract = subtract;\nexports.multiply = multiply;\nexports.divide = divide;\nexports.ceil = ceil;\nexports.floor = floor;\nexports.min = min;\nexports.max = max;\nexports.round = round;\nexports.scale = scale;\nexports.scaleAndAdd = scaleAndAdd;\nexports.distance = distance;\nexports.squaredDistance = squaredDistance;\nexports.length = length;\nexports.squaredLength = squaredLength;\nexports.negate = negate;\nexports.inverse = inverse;\nexports.normalize = normalize;\nexports.dot = dot;\nexports.cross = cross;\nexports.lerp = lerp;\nexports.random = random;\nexports.transformMat2 = transformMat2;\nexports.transformMat2d = transformMat2d;\nexports.transformMat3 = transformMat3;\nexports.transformMat4 = transformMat4;\nexports.rotate = rotate;\nexports.angle = angle;\nexports.zero = zero;\nexports.str = str;\nexports.exactEquals = exactEquals;\nexports.equals = equals;\nconst tslib_1 = require(\"tslib\");\nconst glMatrix = tslib_1.__importStar(require(\"./common.js\"));\n/**\n * 2 Dimensional Vector\n * @module vec2\n */\n/**\n * Creates a new, empty vec2\n *\n * @returns {vec2} a new 2D vector\n */\nfunction create() {\n    var out = new glMatrix.ARRAY_TYPE(2);\n    if (glMatrix.ARRAY_TYPE != Float32Array) {\n        out[0] = 0;\n        out[1] = 0;\n    }\n    return out;\n}\n/**\n * Creates a new vec2 initialized with values from an existing vector\n *\n * @param {ReadonlyVec2} a vector to clone\n * @returns {vec2} a new 2D vector\n */\nfunction clone(a) {\n    var out = new glMatrix.ARRAY_TYPE(2);\n    out[0] = a[0];\n    out[1] = a[1];\n    return out;\n}\n/**\n * Creates a new vec2 initialized with the given values\n *\n * @param {Number} x X component\n * @param {Number} y Y component\n * @returns {vec2} a new 2D vector\n */\nfunction fromValues(x, y) {\n    var out = new glMatrix.ARRAY_TYPE(2);\n    out[0] = x;\n    out[1] = y;\n    return out;\n}\n/**\n * Copy the values from one vec2 to another\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a the source vector\n * @returns {vec2} out\n */\nfunction copy(out, a) {\n    out[0] = a[0];\n    out[1] = a[1];\n    return out;\n}\n/**\n * Set the components of a vec2 to the given values\n *\n * @param {vec2} out the receiving vector\n * @param {Number} x X component\n * @param {Number} y Y component\n * @returns {vec2} out\n */\nfunction set(out, x, y) {\n    out[0] = x;\n    out[1] = y;\n    return out;\n}\n/**\n * Adds two vec2's\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a the first operand\n * @param {ReadonlyVec2} b the second operand\n * @returns {vec2} out\n */\nfunction add(out, a, b) {\n    out[0] = a[0] + b[0];\n    out[1] = a[1] + b[1];\n    return out;\n}\n/**\n * Subtracts vector b from vector a\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a the first operand\n * @param {ReadonlyVec2} b the second operand\n * @returns {vec2} out\n */\nfunction subtract(out, a, b) {\n    out[0] = a[0] - b[0];\n    out[1] = a[1] - b[1];\n    return out;\n}\n/**\n * Multiplies two vec2's\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a the first operand\n * @param {ReadonlyVec2} b the second operand\n * @returns {vec2} out\n */\nfunction multiply(out, a, b) {\n    out[0] = a[0] * b[0];\n    out[1] = a[1] * b[1];\n    return out;\n}\n/**\n * Divides two vec2's\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a the first operand\n * @param {ReadonlyVec2} b the second operand\n * @returns {vec2} out\n */\nfunction divide(out, a, b) {\n    out[0] = a[0] / b[0];\n    out[1] = a[1] / b[1];\n    return out;\n}\n/**\n * Math.ceil the components of a vec2\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a vector to ceil\n * @returns {vec2} out\n */\nfunction ceil(out, a) {\n    out[0] = Math.ceil(a[0]);\n    out[1] = Math.ceil(a[1]);\n    return out;\n}\n/**\n * Math.floor the components of a vec2\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a vector to floor\n * @returns {vec2} out\n */\nfunction floor(out, a) {\n    out[0] = Math.floor(a[0]);\n    out[1] = Math.floor(a[1]);\n    return out;\n}\n/**\n * Returns the minimum of two vec2's\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a the first operand\n * @param {ReadonlyVec2} b the second operand\n * @returns {vec2} out\n */\nfunction min(out, a, b) {\n    out[0] = Math.min(a[0], b[0]);\n    out[1] = Math.min(a[1], b[1]);\n    return out;\n}\n/**\n * Returns the maximum of two vec2's\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a the first operand\n * @param {ReadonlyVec2} b the second operand\n * @returns {vec2} out\n */\nfunction max(out, a, b) {\n    out[0] = Math.max(a[0], b[0]);\n    out[1] = Math.max(a[1], b[1]);\n    return out;\n}\n/**\n * Math.round the components of a vec2\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a vector to round\n * @returns {vec2} out\n */\nfunction round(out, a) {\n    out[0] = Math.round(a[0]);\n    out[1] = Math.round(a[1]);\n    return out;\n}\n/**\n * Scales a vec2 by a scalar number\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a the vector to scale\n * @param {Number} b amount to scale the vector by\n * @returns {vec2} out\n */\nfunction scale(out, a, b) {\n    out[0] = a[0] * b;\n    out[1] = a[1] * b;\n    return out;\n}\n/**\n * Adds two vec2's after scaling the second operand by a scalar value\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a the first operand\n * @param {ReadonlyVec2} b the second operand\n * @param {Number} scale the amount to scale b by before adding\n * @returns {vec2} out\n */\nfunction scaleAndAdd(out, a, b, scale) {\n    out[0] = a[0] + b[0] * scale;\n    out[1] = a[1] + b[1] * scale;\n    return out;\n}\n/**\n * Calculates the euclidian distance between two vec2's\n *\n * @param {ReadonlyVec2} a the first operand\n * @param {ReadonlyVec2} b the second operand\n * @returns {Number} distance between a and b\n */\nfunction distance(a, b) {\n    var x = b[0] - a[0], y = b[1] - a[1];\n    return Math.hypot(x, y);\n}\n/**\n * Calculates the squared euclidian distance between two vec2's\n *\n * @param {ReadonlyVec2} a the first operand\n * @param {ReadonlyVec2} b the second operand\n * @returns {Number} squared distance between a and b\n */\nfunction squaredDistance(a, b) {\n    var x = b[0] - a[0], y = b[1] - a[1];\n    return x * x + y * y;\n}\n/**\n * Calculates the length of a vec2\n *\n * @param {ReadonlyVec2} a vector to calculate length of\n * @returns {Number} length of a\n */\nfunction length(a) {\n    var x = a[0], y = a[1];\n    return Math.hypot(x, y);\n}\n/**\n * Calculates the squared length of a vec2\n *\n * @param {ReadonlyVec2} a vector to calculate squared length of\n * @returns {Number} squared length of a\n */\nfunction squaredLength(a) {\n    var x = a[0], y = a[1];\n    return x * x + y * y;\n}\n/**\n * Negates the components of a vec2\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a vector to negate\n * @returns {vec2} out\n */\nfunction negate(out, a) {\n    out[0] = -a[0];\n    out[1] = -a[1];\n    return out;\n}\n/**\n * Returns the inverse of the components of a vec2\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a vector to invert\n * @returns {vec2} out\n */\nfunction inverse(out, a) {\n    out[0] = 1.0 / a[0];\n    out[1] = 1.0 / a[1];\n    return out;\n}\n/**\n * Normalize a vec2\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a vector to normalize\n * @returns {vec2} out\n */\nfunction normalize(out, a) {\n    var x = a[0], y = a[1];\n    var len = x * x + y * y;\n    if (len > 0) {\n        //TODO: evaluate use of glm_invsqrt here?\n        len = 1 / Math.sqrt(len);\n    }\n    out[0] = a[0] * len;\n    out[1] = a[1] * len;\n    return out;\n}\n/**\n * Calculates the dot product of two vec2's\n *\n * @param {ReadonlyVec2} a the first operand\n * @param {ReadonlyVec2} b the second operand\n * @returns {Number} dot product of a and b\n */\nfunction dot(a, b) {\n    return a[0] * b[0] + a[1] * b[1];\n}\n/**\n * Computes the cross product of two vec2's\n * Note that the cross product must by definition produce a 3D vector\n *\n * @param {vec3} out the receiving vector\n * @param {ReadonlyVec2} a the first operand\n * @param {ReadonlyVec2} b the second operand\n * @returns {vec3} out\n */\nfunction cross(out, a, b) {\n    var z = a[0] * b[1] - a[1] * b[0];\n    out[0] = out[1] = 0;\n    out[2] = z;\n    return out;\n}\n/**\n * Performs a linear interpolation between two vec2's\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a the first operand\n * @param {ReadonlyVec2} b the second operand\n * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n * @returns {vec2} out\n */\nfunction lerp(out, a, b, t) {\n    var ax = a[0], ay = a[1];\n    out[0] = ax + t * (b[0] - ax);\n    out[1] = ay + t * (b[1] - ay);\n    return out;\n}\n/**\n * Generates a random vector with the given scale\n *\n * @param {vec2} out the receiving vector\n * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned\n * @returns {vec2} out\n */\nfunction random(out, scale) {\n    scale = scale || 1.0;\n    var r = glMatrix.RANDOM() * 2.0 * Math.PI;\n    out[0] = Math.cos(r) * scale;\n    out[1] = Math.sin(r) * scale;\n    return out;\n}\n/**\n * Transforms the vec2 with a mat2\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a the vector to transform\n * @param {ReadonlyMat2} m matrix to transform with\n * @returns {vec2} out\n */\nfunction transformMat2(out, a, m) {\n    var x = a[0], y = a[1];\n    out[0] = m[0] * x + m[2] * y;\n    out[1] = m[1] * x + m[3] * y;\n    return out;\n}\n/**\n * Transforms the vec2 with a mat2d\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a the vector to transform\n * @param {ReadonlyMat2d} m matrix to transform with\n * @returns {vec2} out\n */\nfunction transformMat2d(out, a, m) {\n    var x = a[0], y = a[1];\n    out[0] = m[0] * x + m[2] * y + m[4];\n    out[1] = m[1] * x + m[3] * y + m[5];\n    return out;\n}\n/**\n * Transforms the vec2 with a mat3\n * 3rd vector component is implicitly '1'\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a the vector to transform\n * @param {ReadonlyMat3} m matrix to transform with\n * @returns {vec2} out\n */\nfunction transformMat3(out, a, m) {\n    var x = a[0], y = a[1];\n    out[0] = m[0] * x + m[3] * y + m[6];\n    out[1] = m[1] * x + m[4] * y + m[7];\n    return out;\n}\n/**\n * Transforms the vec2 with a mat4\n * 3rd vector component is implicitly '0'\n * 4th vector component is implicitly '1'\n *\n * @param {vec2} out the receiving vector\n * @param {ReadonlyVec2} a the vector to transform\n * @param {ReadonlyMat4} m matrix to transform with\n * @returns {vec2} out\n */\nfunction transformMat4(out, a, m) {\n    var x = a[0];\n    var y = a[1];\n    out[0] = m[0] * x + m[4] * y + m[12];\n    out[1] = m[1] * x + m[5] * y + m[13];\n    return out;\n}\n/**\n * Rotate a 2D vector\n * @param {vec2} out The receiving vec2\n * @param {ReadonlyVec2} a The vec2 point to rotate\n * @param {ReadonlyVec2} b The origin of the rotation\n * @param {Number} rad The angle of rotation in radians\n * @returns {vec2} out\n */\nfunction rotate(out, a, b, rad) {\n    //Translate point to the origin\n    var p0 = a[0] - b[0], p1 = a[1] - b[1], sinC = Math.sin(rad), cosC = Math.cos(rad); //perform rotation and translate to correct position\n    out[0] = p0 * cosC - p1 * sinC + b[0];\n    out[1] = p0 * sinC + p1 * cosC + b[1];\n    return out;\n}\n/**\n * Get the angle between two 2D vectors\n * @param {ReadonlyVec2} a The first operand\n * @param {ReadonlyVec2} b The second operand\n * @returns {Number} The angle in radians\n */\nfunction angle(a, b) {\n    var x1 = a[0], y1 = a[1], x2 = b[0], y2 = b[1], \n    // mag is the product of the magnitudes of a and b\n    mag = Math.sqrt(x1 * x1 + y1 * y1) * Math.sqrt(x2 * x2 + y2 * y2), \n    // mag &&.. short circuits if mag == 0\n    cosine = mag && (x1 * x2 + y1 * y2) / mag; // Math.min(Math.max(cosine, -1), 1) clamps the cosine between -1 and 1\n    return Math.acos(Math.min(Math.max(cosine, -1), 1));\n}\n/**\n * Set the components of a vec2 to zero\n *\n * @param {vec2} out the receiving vector\n * @returns {vec2} out\n */\nfunction zero(out) {\n    out[0] = 0.0;\n    out[1] = 0.0;\n    return out;\n}\n/**\n * Returns a string representation of a vector\n *\n * @param {ReadonlyVec2} a vector to represent as a string\n * @returns {String} string representation of the vector\n */\nfunction str(a) {\n    return \"vec2(\" + a[0] + \", \" + a[1] + \")\";\n}\n/**\n * Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===)\n *\n * @param {ReadonlyVec2} a The first vector.\n * @param {ReadonlyVec2} b The second vector.\n * @returns {Boolean} True if the vectors are equal, false otherwise.\n */\nfunction exactEquals(a, b) {\n    return a[0] === b[0] && a[1] === b[1];\n}\n/**\n * Returns whether or not the vectors have approximately the same elements in the same position.\n *\n * @param {ReadonlyVec2} a The first vector.\n * @param {ReadonlyVec2} b The second vector.\n * @returns {Boolean} True if the vectors are equal, false otherwise.\n */\nfunction equals(a, b) {\n    var a0 = a[0], a1 = a[1];\n    var b0 = b[0], b1 = b[1];\n    return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1));\n}\n/**\n * Alias for {@link vec2.length}\n * @function\n */\nexports.len = length;\n/**\n * Alias for {@link vec2.subtract}\n * @function\n */\nexports.sub = subtract;\n/**\n * Alias for {@link vec2.multiply}\n * @function\n */\nexports.mul = multiply;\n/**\n * Alias for {@link vec2.divide}\n * @function\n */\nexports.div = divide;\n/**\n * Alias for {@link vec2.distance}\n * @function\n */\nexports.dist = distance;\n/**\n * Alias for {@link vec2.squaredDistance}\n * @function\n */\nexports.sqrDist = squaredDistance;\n/**\n * Alias for {@link vec2.squaredLength}\n * @function\n */\nexports.sqrLen = squaredLength;\n/**\n * Perform some operation over an array of vec2s.\n *\n * @param {Array} a the array of vectors to iterate over\n * @param {Number} stride Number of elements between the start of each vec2. If 0 assumes tightly packed\n * @param {Number} offset Number of elements to skip at the beginning of the array\n * @param {Number} count Number of vec2s to iterate over. If 0 iterates over entire array\n * @param {Function} fn Function to call for each vector in the array\n * @param {Object} [arg] additional argument to pass to fn\n * @returns {Array} a\n * @function\n */\nexports.forEach = function () {\n    var vec = create();\n    return function (a, stride, offset, count, fn, arg) {\n        var i, l;\n        if (!stride) {\n            stride = 2;\n        }\n        if (!offset) {\n            offset = 0;\n        }\n        if (count) {\n            l = Math.min(count * stride + offset, a.length);\n        }\n        else {\n            l = a.length;\n        }\n        for (i = offset; i < l; i += stride) {\n            vec[0] = a[i];\n            vec[1] = a[i + 1];\n            fn(vec, vec, arg);\n            a[i] = vec[0];\n            a[i + 1] = vec[1];\n        }\n        return a;\n    };\n}();\n","type":"js","dependency_paths":[["./common.js","/home/runner/work/panel/panel/panel/node_modules/gl-matrix/esm/common.js"]],"dependency_map":[],"exported":[{"type":"named","name":"create"},{"type":"named","name":"clone"},{"type":"named","name":"fromValues"},{"type":"named","name":"copy"},{"type":"named","name":"set"},{"type":"named","name":"add"},{"type":"named","name":"subtract"},{"type":"named","name":"multiply"},{"type":"named","name":"divide"},{"type":"named","name":"ceil"},{"type":"named","name":"floor"},{"type":"named","name":"min"},{"type":"named","name":"max"},{"type":"named","name":"round"},{"type":"named","name":"scale"},{"type":"named","name":"scaleAndAdd"},{"type":"named","name":"distance"},{"type":"named","name":"squaredDistance"},{"type":"named","name":"length"},{"type":"named","name":"squaredLength"},{"type":"named","name":"negate"},{"type":"named","name":"inverse"},{"type":"named","name":"normalize"},{"type":"named","name":"dot"},{"type":"named","name":"cross"},{"type":"named","name":"lerp"},{"type":"named","name":"random"},{"type":"named","name":"transformMat2"},{"type":"named","name":"transformMat2d"},{"type":"named","name":"transformMat3"},{"type":"named","name":"transformMat4"},{"type":"named","name":"rotate"},{"type":"named","name":"angle"},{"type":"named","name":"zero"},{"type":"named","name":"str"},{"type":"named","name":"exactEquals"},{"type":"named","name":"equals"}],"externals":[],"shims":[]},"code":{"source":"/* gl-matrix/esm/vec2.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.create = create;\n    exports.clone = clone;\n    exports.fromValues = fromValues;\n    exports.copy = copy;\n    exports.set = set;\n    exports.add = add;\n    exports.subtract = subtract;\n    exports.multiply = multiply;\n    exports.divide = divide;\n    exports.ceil = ceil;\n    exports.floor = floor;\n    exports.min = min;\n    exports.max = max;\n    exports.round = round;\n    exports.scale = scale;\n    exports.scaleAndAdd = scaleAndAdd;\n    exports.distance = distance;\n    exports.squaredDistance = squaredDistance;\n    exports.length = length;\n    exports.squaredLength = squaredLength;\n    exports.negate = negate;\n    exports.inverse = inverse;\n    exports.normalize = normalize;\n    exports.dot = dot;\n    exports.cross = cross;\n    exports.lerp = lerp;\n    exports.random = random;\n    exports.transformMat2 = transformMat2;\n    exports.transformMat2d = transformMat2d;\n    exports.transformMat3 = transformMat3;\n    exports.transformMat4 = transformMat4;\n    exports.rotate = rotate;\n    exports.angle = angle;\n    exports.zero = zero;\n    exports.str = str;\n    exports.exactEquals = exactEquals;\n    exports.equals = equals;\n    const tslib_1 = require(\"tslib\");\n    const glMatrix = tslib_1.__importStar(require(\"7d825b979e\") /* ./common.js */);\n    /**\n     * 2 Dimensional Vector\n     * @module vec2\n     */\n    /**\n     * Creates a new, empty vec2\n     *\n     * @returns {vec2} a new 2D vector\n     */\n    function create() {\n        var out = new glMatrix.ARRAY_TYPE(2);\n        if (glMatrix.ARRAY_TYPE != Float32Array) {\n            out[0] = 0;\n            out[1] = 0;\n        }\n        return out;\n    }\n    /**\n     * Creates a new vec2 initialized with values from an existing vector\n     *\n     * @param {ReadonlyVec2} a vector to clone\n     * @returns {vec2} a new 2D vector\n     */\n    function clone(a) {\n        var out = new glMatrix.ARRAY_TYPE(2);\n        out[0] = a[0];\n        out[1] = a[1];\n        return out;\n    }\n    /**\n     * Creates a new vec2 initialized with the given values\n     *\n     * @param {Number} x X component\n     * @param {Number} y Y component\n     * @returns {vec2} a new 2D vector\n     */\n    function fromValues(x, y) {\n        var out = new glMatrix.ARRAY_TYPE(2);\n        out[0] = x;\n        out[1] = y;\n        return out;\n    }\n    /**\n     * Copy the values from one vec2 to another\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a the source vector\n     * @returns {vec2} out\n     */\n    function copy(out, a) {\n        out[0] = a[0];\n        out[1] = a[1];\n        return out;\n    }\n    /**\n     * Set the components of a vec2 to the given values\n     *\n     * @param {vec2} out the receiving vector\n     * @param {Number} x X component\n     * @param {Number} y Y component\n     * @returns {vec2} out\n     */\n    function set(out, x, y) {\n        out[0] = x;\n        out[1] = y;\n        return out;\n    }\n    /**\n     * Adds two vec2's\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a the first operand\n     * @param {ReadonlyVec2} b the second operand\n     * @returns {vec2} out\n     */\n    function add(out, a, b) {\n        out[0] = a[0] + b[0];\n        out[1] = a[1] + b[1];\n        return out;\n    }\n    /**\n     * Subtracts vector b from vector a\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a the first operand\n     * @param {ReadonlyVec2} b the second operand\n     * @returns {vec2} out\n     */\n    function subtract(out, a, b) {\n        out[0] = a[0] - b[0];\n        out[1] = a[1] - b[1];\n        return out;\n    }\n    /**\n     * Multiplies two vec2's\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a the first operand\n     * @param {ReadonlyVec2} b the second operand\n     * @returns {vec2} out\n     */\n    function multiply(out, a, b) {\n        out[0] = a[0] * b[0];\n        out[1] = a[1] * b[1];\n        return out;\n    }\n    /**\n     * Divides two vec2's\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a the first operand\n     * @param {ReadonlyVec2} b the second operand\n     * @returns {vec2} out\n     */\n    function divide(out, a, b) {\n        out[0] = a[0] / b[0];\n        out[1] = a[1] / b[1];\n        return out;\n    }\n    /**\n     * Math.ceil the components of a vec2\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a vector to ceil\n     * @returns {vec2} out\n     */\n    function ceil(out, a) {\n        out[0] = Math.ceil(a[0]);\n        out[1] = Math.ceil(a[1]);\n        return out;\n    }\n    /**\n     * Math.floor the components of a vec2\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a vector to floor\n     * @returns {vec2} out\n     */\n    function floor(out, a) {\n        out[0] = Math.floor(a[0]);\n        out[1] = Math.floor(a[1]);\n        return out;\n    }\n    /**\n     * Returns the minimum of two vec2's\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a the first operand\n     * @param {ReadonlyVec2} b the second operand\n     * @returns {vec2} out\n     */\n    function min(out, a, b) {\n        out[0] = Math.min(a[0], b[0]);\n        out[1] = Math.min(a[1], b[1]);\n        return out;\n    }\n    /**\n     * Returns the maximum of two vec2's\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a the first operand\n     * @param {ReadonlyVec2} b the second operand\n     * @returns {vec2} out\n     */\n    function max(out, a, b) {\n        out[0] = Math.max(a[0], b[0]);\n        out[1] = Math.max(a[1], b[1]);\n        return out;\n    }\n    /**\n     * Math.round the components of a vec2\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a vector to round\n     * @returns {vec2} out\n     */\n    function round(out, a) {\n        out[0] = Math.round(a[0]);\n        out[1] = Math.round(a[1]);\n        return out;\n    }\n    /**\n     * Scales a vec2 by a scalar number\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a the vector to scale\n     * @param {Number} b amount to scale the vector by\n     * @returns {vec2} out\n     */\n    function scale(out, a, b) {\n        out[0] = a[0] * b;\n        out[1] = a[1] * b;\n        return out;\n    }\n    /**\n     * Adds two vec2's after scaling the second operand by a scalar value\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a the first operand\n     * @param {ReadonlyVec2} b the second operand\n     * @param {Number} scale the amount to scale b by before adding\n     * @returns {vec2} out\n     */\n    function scaleAndAdd(out, a, b, scale) {\n        out[0] = a[0] + b[0] * scale;\n        out[1] = a[1] + b[1] * scale;\n        return out;\n    }\n    /**\n     * Calculates the euclidian distance between two vec2's\n     *\n     * @param {ReadonlyVec2} a the first operand\n     * @param {ReadonlyVec2} b the second operand\n     * @returns {Number} distance between a and b\n     */\n    function distance(a, b) {\n        var x = b[0] - a[0], y = b[1] - a[1];\n        return Math.hypot(x, y);\n    }\n    /**\n     * Calculates the squared euclidian distance between two vec2's\n     *\n     * @param {ReadonlyVec2} a the first operand\n     * @param {ReadonlyVec2} b the second operand\n     * @returns {Number} squared distance between a and b\n     */\n    function squaredDistance(a, b) {\n        var x = b[0] - a[0], y = b[1] - a[1];\n        return x * x + y * y;\n    }\n    /**\n     * Calculates the length of a vec2\n     *\n     * @param {ReadonlyVec2} a vector to calculate length of\n     * @returns {Number} length of a\n     */\n    function length(a) {\n        var x = a[0], y = a[1];\n        return Math.hypot(x, y);\n    }\n    /**\n     * Calculates the squared length of a vec2\n     *\n     * @param {ReadonlyVec2} a vector to calculate squared length of\n     * @returns {Number} squared length of a\n     */\n    function squaredLength(a) {\n        var x = a[0], y = a[1];\n        return x * x + y * y;\n    }\n    /**\n     * Negates the components of a vec2\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a vector to negate\n     * @returns {vec2} out\n     */\n    function negate(out, a) {\n        out[0] = -a[0];\n        out[1] = -a[1];\n        return out;\n    }\n    /**\n     * Returns the inverse of the components of a vec2\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a vector to invert\n     * @returns {vec2} out\n     */\n    function inverse(out, a) {\n        out[0] = 1.0 / a[0];\n        out[1] = 1.0 / a[1];\n        return out;\n    }\n    /**\n     * Normalize a vec2\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a vector to normalize\n     * @returns {vec2} out\n     */\n    function normalize(out, a) {\n        var x = a[0], y = a[1];\n        var len = x * x + y * y;\n        if (len > 0) {\n            //TODO: evaluate use of glm_invsqrt here?\n            len = 1 / Math.sqrt(len);\n        }\n        out[0] = a[0] * len;\n        out[1] = a[1] * len;\n        return out;\n    }\n    /**\n     * Calculates the dot product of two vec2's\n     *\n     * @param {ReadonlyVec2} a the first operand\n     * @param {ReadonlyVec2} b the second operand\n     * @returns {Number} dot product of a and b\n     */\n    function dot(a, b) {\n        return a[0] * b[0] + a[1] * b[1];\n    }\n    /**\n     * Computes the cross product of two vec2's\n     * Note that the cross product must by definition produce a 3D vector\n     *\n     * @param {vec3} out the receiving vector\n     * @param {ReadonlyVec2} a the first operand\n     * @param {ReadonlyVec2} b the second operand\n     * @returns {vec3} out\n     */\n    function cross(out, a, b) {\n        var z = a[0] * b[1] - a[1] * b[0];\n        out[0] = out[1] = 0;\n        out[2] = z;\n        return out;\n    }\n    /**\n     * Performs a linear interpolation between two vec2's\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a the first operand\n     * @param {ReadonlyVec2} b the second operand\n     * @param {Number} t interpolation amount, in the range [0-1], between the two inputs\n     * @returns {vec2} out\n     */\n    function lerp(out, a, b, t) {\n        var ax = a[0], ay = a[1];\n        out[0] = ax + t * (b[0] - ax);\n        out[1] = ay + t * (b[1] - ay);\n        return out;\n    }\n    /**\n     * Generates a random vector with the given scale\n     *\n     * @param {vec2} out the receiving vector\n     * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned\n     * @returns {vec2} out\n     */\n    function random(out, scale) {\n        scale = scale || 1.0;\n        var r = glMatrix.RANDOM() * 2.0 * Math.PI;\n        out[0] = Math.cos(r) * scale;\n        out[1] = Math.sin(r) * scale;\n        return out;\n    }\n    /**\n     * Transforms the vec2 with a mat2\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a the vector to transform\n     * @param {ReadonlyMat2} m matrix to transform with\n     * @returns {vec2} out\n     */\n    function transformMat2(out, a, m) {\n        var x = a[0], y = a[1];\n        out[0] = m[0] * x + m[2] * y;\n        out[1] = m[1] * x + m[3] * y;\n        return out;\n    }\n    /**\n     * Transforms the vec2 with a mat2d\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a the vector to transform\n     * @param {ReadonlyMat2d} m matrix to transform with\n     * @returns {vec2} out\n     */\n    function transformMat2d(out, a, m) {\n        var x = a[0], y = a[1];\n        out[0] = m[0] * x + m[2] * y + m[4];\n        out[1] = m[1] * x + m[3] * y + m[5];\n        return out;\n    }\n    /**\n     * Transforms the vec2 with a mat3\n     * 3rd vector component is implicitly '1'\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a the vector to transform\n     * @param {ReadonlyMat3} m matrix to transform with\n     * @returns {vec2} out\n     */\n    function transformMat3(out, a, m) {\n        var x = a[0], y = a[1];\n        out[0] = m[0] * x + m[3] * y + m[6];\n        out[1] = m[1] * x + m[4] * y + m[7];\n        return out;\n    }\n    /**\n     * Transforms the vec2 with a mat4\n     * 3rd vector component is implicitly '0'\n     * 4th vector component is implicitly '1'\n     *\n     * @param {vec2} out the receiving vector\n     * @param {ReadonlyVec2} a the vector to transform\n     * @param {ReadonlyMat4} m matrix to transform with\n     * @returns {vec2} out\n     */\n    function transformMat4(out, a, m) {\n        var x = a[0];\n        var y = a[1];\n        out[0] = m[0] * x + m[4] * y + m[12];\n        out[1] = m[1] * x + m[5] * y + m[13];\n        return out;\n    }\n    /**\n     * Rotate a 2D vector\n     * @param {vec2} out The receiving vec2\n     * @param {ReadonlyVec2} a The vec2 point to rotate\n     * @param {ReadonlyVec2} b The origin of the rotation\n     * @param {Number} rad The angle of rotation in radians\n     * @returns {vec2} out\n     */\n    function rotate(out, a, b, rad) {\n        //Translate point to the origin\n        var p0 = a[0] - b[0], p1 = a[1] - b[1], sinC = Math.sin(rad), cosC = Math.cos(rad); //perform rotation and translate to correct position\n        out[0] = p0 * cosC - p1 * sinC + b[0];\n        out[1] = p0 * sinC + p1 * cosC + b[1];\n        return out;\n    }\n    /**\n     * Get the angle between two 2D vectors\n     * @param {ReadonlyVec2} a The first operand\n     * @param {ReadonlyVec2} b The second operand\n     * @returns {Number} The angle in radians\n     */\n    function angle(a, b) {\n        var x1 = a[0], y1 = a[1], x2 = b[0], y2 = b[1], \n        // mag is the product of the magnitudes of a and b\n        mag = Math.sqrt(x1 * x1 + y1 * y1) * Math.sqrt(x2 * x2 + y2 * y2), \n        // mag &&.. short circuits if mag == 0\n        cosine = mag && (x1 * x2 + y1 * y2) / mag; // Math.min(Math.max(cosine, -1), 1) clamps the cosine between -1 and 1\n        return Math.acos(Math.min(Math.max(cosine, -1), 1));\n    }\n    /**\n     * Set the components of a vec2 to zero\n     *\n     * @param {vec2} out the receiving vector\n     * @returns {vec2} out\n     */\n    function zero(out) {\n        out[0] = 0.0;\n        out[1] = 0.0;\n        return out;\n    }\n    /**\n     * Returns a string representation of a vector\n     *\n     * @param {ReadonlyVec2} a vector to represent as a string\n     * @returns {String} string representation of the vector\n     */\n    function str(a) {\n        return \"vec2(\" + a[0] + \", \" + a[1] + \")\";\n    }\n    /**\n     * Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===)\n     *\n     * @param {ReadonlyVec2} a The first vector.\n     * @param {ReadonlyVec2} b The second vector.\n     * @returns {Boolean} True if the vectors are equal, false otherwise.\n     */\n    function exactEquals(a, b) {\n        return a[0] === b[0] && a[1] === b[1];\n    }\n    /**\n     * Returns whether or not the vectors have approximately the same elements in the same position.\n     *\n     * @param {ReadonlyVec2} a The first vector.\n     * @param {ReadonlyVec2} b The second vector.\n     * @returns {Boolean} True if the vectors are equal, false otherwise.\n     */\n    function equals(a, b) {\n        var a0 = a[0], a1 = a[1];\n        var b0 = b[0], b1 = b[1];\n        return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1));\n    }\n    /**\n     * Alias for {@link vec2.length}\n     * @function\n     */\n    exports.len = length;\n    /**\n     * Alias for {@link vec2.subtract}\n     * @function\n     */\n    exports.sub = subtract;\n    /**\n     * Alias for {@link vec2.multiply}\n     * @function\n     */\n    exports.mul = multiply;\n    /**\n     * Alias for {@link vec2.divide}\n     * @function\n     */\n    exports.div = divide;\n    /**\n     * Alias for {@link vec2.distance}\n     * @function\n     */\n    exports.dist = distance;\n    /**\n     * Alias for {@link vec2.squaredDistance}\n     * @function\n     */\n    exports.sqrDist = squaredDistance;\n    /**\n     * Alias for {@link vec2.squaredLength}\n     * @function\n     */\n    exports.sqrLen = squaredLength;\n    /**\n     * Perform some operation over an array of vec2s.\n     *\n     * @param {Array} a the array of vectors to iterate over\n     * @param {Number} stride Number of elements between the start of each vec2. If 0 assumes tightly packed\n     * @param {Number} offset Number of elements to skip at the beginning of the array\n     * @param {Number} count Number of vec2s to iterate over. If 0 iterates over entire array\n     * @param {Function} fn Function to call for each vector in the array\n     * @param {Object} [arg] additional argument to pass to fn\n     * @returns {Array} a\n     * @function\n     */\n    exports.forEach = function () {\n        var vec = create();\n        return function (a, stride, offset, count, fn, arg) {\n            var i, l;\n            if (!stride) {\n                stride = 2;\n            }\n            if (!offset) {\n                offset = 0;\n            }\n            if (count) {\n                l = Math.min(count * stride + offset, a.length);\n            }\n            else {\n                l = a.length;\n            }\n            for (i = offset; i < l; i += stride) {\n                vec[0] = a[i];\n                vec[1] = a[i + 1];\n                fn(vec, vec, arg);\n                a[i] = vec[0];\n                a[i + 1] = vec[1];\n            }\n            return a;\n        };\n    }();\n}\n","min_source":"function _(n,t,r,a,u){a(),r.create=o,r.clone=function(n){var t=new e.ARRAY_TYPE(2);return t[0]=n[0],t[1]=n[1],t},r.fromValues=function(n,t){var r=new e.ARRAY_TYPE(2);return r[0]=n,r[1]=t,r},r.copy=function(n,t){return n[0]=t[0],n[1]=t[1],n},r.set=function(n,t,r){return n[0]=t,n[1]=r,n},r.add=function(n,t,r){return n[0]=t[0]+r[0],n[1]=t[1]+r[1],n},r.subtract=i,r.multiply=c,r.divide=f,r.ceil=function(n,t){return n[0]=Math.ceil(t[0]),n[1]=Math.ceil(t[1]),n},r.floor=function(n,t){return n[0]=Math.floor(t[0]),n[1]=Math.floor(t[1]),n},r.min=function(n,t,r){return n[0]=Math.min(t[0],r[0]),n[1]=Math.min(t[1],r[1]),n},r.max=function(n,t,r){return n[0]=Math.max(t[0],r[0]),n[1]=Math.max(t[1],r[1]),n},r.round=function(n,t){return n[0]=Math.round(t[0]),n[1]=Math.round(t[1]),n},r.scale=function(n,t,r){return n[0]=t[0]*r,n[1]=t[1]*r,n},r.scaleAndAdd=function(n,t,r,a){return n[0]=t[0]+r[0]*a,n[1]=t[1]+r[1]*a,n},r.distance=s,r.squaredDistance=h,r.length=M,r.squaredLength=l,r.negate=function(n,t){return n[0]=-t[0],n[1]=-t[1],n},r.inverse=function(n,t){return n[0]=1/t[0],n[1]=1/t[1],n},r.normalize=function(n,t){var r=t[0],a=t[1],u=r*r+a*a;u>0&&(u=1/Math.sqrt(u));return n[0]=t[0]*u,n[1]=t[1]*u,n},r.dot=function(n,t){return n[0]*t[0]+n[1]*t[1]},r.cross=function(n,t,r){var a=t[0]*r[1]-t[1]*r[0];return n[0]=n[1]=0,n[2]=a,n},r.lerp=function(n,t,r,a){var u=t[0],e=t[1];return n[0]=u+a*(r[0]-u),n[1]=e+a*(r[1]-e),n},r.random=function(n,t){t=t||1;var r=2*e.RANDOM()*Math.PI;return n[0]=Math.cos(r)*t,n[1]=Math.sin(r)*t,n},r.transformMat2=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[2]*u,n[1]=r[1]*a+r[3]*u,n},r.transformMat2d=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[2]*u+r[4],n[1]=r[1]*a+r[3]*u+r[5],n},r.transformMat3=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[3]*u+r[6],n[1]=r[1]*a+r[4]*u+r[7],n},r.transformMat4=function(n,t,r){var a=t[0],u=t[1];return n[0]=r[0]*a+r[4]*u+r[12],n[1]=r[1]*a+r[5]*u+r[13],n},r.rotate=function(n,t,r,a){var u=t[0]-r[0],e=t[1]-r[1],o=Math.sin(a),i=Math.cos(a);return n[0]=u*i-e*o+r[0],n[1]=u*o+e*i+r[1],n},r.angle=function(n,t){var r=n[0],a=n[1],u=t[0],e=t[1],o=Math.sqrt(r*r+a*a)*Math.sqrt(u*u+e*e),i=o&&(r*u+a*e)/o;return Math.acos(Math.min(Math.max(i,-1),1))},r.zero=function(n){return n[0]=0,n[1]=0,n},r.str=function(n){return\"vec2(\"+n[0]+\", \"+n[1]+\")\"},r.exactEquals=function(n,t){return n[0]===t[0]&&n[1]===t[1]},r.equals=function(n,t){var r=n[0],a=n[1],u=t[0],o=t[1];return Math.abs(r-u)<=e.EPSILON*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(a-o)<=e.EPSILON*Math.max(1,Math.abs(a),Math.abs(o))};const e=n(\"tslib\").__importStar(n(\"7d825b979e\"));function o(){var n=new e.ARRAY_TYPE(2);return e.ARRAY_TYPE!=Float32Array&&(n[0]=0,n[1]=0),n}function i(n,t,r){return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n}function c(n,t,r){return n[0]=t[0]*r[0],n[1]=t[1]*r[1],n}function f(n,t,r){return n[0]=t[0]/r[0],n[1]=t[1]/r[1],n}function s(n,t){var r=t[0]-n[0],a=t[1]-n[1];return Math.hypot(r,a)}function h(n,t){var r=t[0]-n[0],a=t[1]-n[1];return r*r+a*a}function M(n){var t=n[0],r=n[1];return Math.hypot(t,r)}function l(n){var t=n[0],r=n[1];return t*t+r*r}var v;r.len=M,r.sub=i,r.mul=c,r.div=f,r.dist=s,r.sqrDist=h,r.sqrLen=l,r.forEach=(v=o(),function(n,t,r,a,u,e){var o,i;for(t||(t=2),r||(r=0),i=a?Math.min(a*t+r,n.length):n.length,o=r;o<i;o+=t)v[0]=n[o],v[1]=n[o+1],u(v,v,e),n[o]=v[0],n[o+1]=v[1];return n})}\n//# sourceMappingURL=vec2.min.js.map","min_map":"{\"version\":3,\"file\":\"vec2.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"create\",\"clone\",\"a\",\"out\",\"glMatrix\",\"ARRAY_TYPE\",\"fromValues\",\"x\",\"y\",\"copy\",\"set\",\"add\",\"b\",\"subtract\",\"multiply\",\"divide\",\"ceil\",\"Math\",\"floor\",\"min\",\"max\",\"round\",\"scale\",\"scaleAndAdd\",\"distance\",\"squaredDistance\",\"length\",\"squaredLength\",\"negate\",\"inverse\",\"normalize\",\"len\",\"sqrt\",\"dot\",\"cross\",\"z\",\"lerp\",\"t\",\"ax\",\"ay\",\"random\",\"r\",\"RANDOM\",\"PI\",\"cos\",\"sin\",\"transformMat2\",\"m\",\"transformMat2d\",\"transformMat3\",\"transformMat4\",\"rotate\",\"rad\",\"p0\",\"p1\",\"sinC\",\"cosC\",\"angle\",\"x1\",\"y1\",\"x2\",\"y2\",\"mag\",\"cosine\",\"acos\",\"zero\",\"str\",\"exactEquals\",\"equals\",\"a0\",\"a1\",\"b0\",\"b1\",\"abs\",\"EPSILON\",\"__importStar\",\"Float32Array\",\"hypot\",\"vec\",\"sub\",\"mul\",\"div\",\"dist\",\"sqrDist\",\"sqrLen\",\"forEach\",\"stride\",\"offset\",\"count\",\"fn\",\"arg\",\"i\",\"l\"],\"sources\":[\"0\"],\"mappings\":\"AAA4B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACzED,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IL,EAAIK,EAAE,GAAKV,EAAE,GAAIM,EAAII,EAAE,GAAKV,EAAE,GAClC,OAAOe,KAAK4D,MAAMtE,EAAGC,EACzB,CAQA,SAASiB,EAAgBvB,EAAGU,GACxB,IAAIL,EAAIK,EAAE,GAAKV,EAAE,GAAIM,EAAII,EAAE,GAAKV,EAAE,GAClC,OAAOK,EAAIA,EAAIC,EAAIA,CACvB,CAOA,SAASkB,EAAOxB,GACZ,IAAIK,EAAIL,EAAE,GAAIM,EAAIN,EAAE,GACpB,OAAOe,KAAK4D,MAAMtE,EAAGC,EACzB,CAOA,SAASmB,EAAczB,GACnB,IAAIK,EAAIL,EAAE,GAAIM,EAAIN,EAAE,GACpB,OAAOK,EAAIA,EAAIC,EAAIA,CACvB,CAmRkB,IACVsE,EA5CRjF,EAAQkC,IAAML,EAKd7B,EAAQkF,IAAMlE,EAKdhB,EAAQmF,IAAMlE,EAKdjB,EAAQoF,IAAMlE,EAKdlB,EAAQqF,KAAO1D,EAKf3B,EAAQsF,QAAU1D,EAKlB5B,EAAQuF,OAASzD,EAajB9B,EAAQwF,SACAP,EAAM9E,IACH,SAAUE,EAAGoF,EAAQC,EAAQC,EAAOC,EAAIC,GAC3C,IAAIC,EAAGC,EAaP,IAZKN,IACDA,EAAS,GAERC,IACDA,EAAS,GAGTK,EADAJ,EACIvE,KAAKE,IAAIqE,EAAQF,EAASC,EAAQrF,EAAEwB,QAGpCxB,EAAEwB,OAELiE,EAAIJ,EAAQI,EAAIC,EAAGD,GAAKL,EACzBR,EAAI,GAAK5E,EAAEyF,GACXb,EAAI,GAAK5E,EAAEyF,EAAI,GACfF,EAAGX,EAAKA,EAAKY,GACbxF,EAAEyF,GAAKb,EAAI,GACX5E,EAAEyF,EAAI,GAAKb,EAAI,GAEnB,OAAO5E,CACX,EAER\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/vtk/vtkvolume.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/vtk/vtkvolume.js","canonical":"models/vtk/vtkvolume","resolution":"ESM","id":"18592eecef","hash":"18592eecef806cf1071a64f331be41e715e6f88910a87b4cb89252a11df0b62d","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VTKVolumePlot = exports.VTKVolumePlotView = void 0;\nconst vtklayout_1 = require(\"./vtklayout\");\nconst util_1 = require(\"./util\");\nclass VTKVolumePlotView extends vtklayout_1.AbstractVTKView {\n    connect_signals() {\n        super.connect_signals();\n        const { data, colormap, shadow, sampling, edge_gradient, rescale, ambient, diffuse, camera, specular, specular_power, display_volume, display_slices, slice_i, slice_j, slice_k, render_background, interpolation, controller_expanded, nan_opacity, } = this.model.properties;\n        this.on_change(data, () => {\n            this._vtk_image_data = (0, util_1.data2VTKImageData)(this.model.data);\n            this.invalidate_render();\n        });\n        this.on_change(colormap, () => {\n            this.colormap_selector.value = this.model.colormap;\n            const event = new Event(\"change\");\n            this.colormap_selector.dispatchEvent(event);\n        });\n        this.on_change(shadow, () => {\n            this.shadow_selector.value = this.model.shadow ? \"1\" : \"0\";\n            const event = new Event(\"change\");\n            this.shadow_selector.dispatchEvent(event);\n        });\n        this.on_change(sampling, () => {\n            this.sampling_slider.value = this.model.sampling.toFixed(2);\n            const event = new Event(\"input\");\n            this.sampling_slider.dispatchEvent(event);\n        });\n        this.on_change(edge_gradient, () => {\n            this.edge_gradient_slider.value = this.model.edge_gradient.toFixed(2);\n            const event = new Event(\"input\");\n            this.edge_gradient_slider.dispatchEvent(event);\n        });\n        this.on_change(rescale, () => {\n            this._controllerWidget.setRescaleColorMap(this.model.rescale);\n            this._vtk_renwin.getRenderWindow().render();\n        });\n        this.on_change(ambient, () => {\n            this.volume.getProperty().setAmbient(this.model.ambient);\n            this._vtk_renwin.getRenderWindow().render();\n        });\n        this.on_change(diffuse, () => {\n            this.volume.getProperty().setDiffuse(this.model.diffuse);\n            this._vtk_renwin.getRenderWindow().render();\n        });\n        this.on_change(camera, () => {\n            if (!this._setting_camera) {\n                this._set_camera_state();\n                this._vtk_renwin.getRenderWindow().render();\n            }\n        });\n        this.on_change(specular, () => {\n            this.volume.getProperty().setSpecular(this.model.specular);\n            this._vtk_renwin.getRenderWindow().render();\n        });\n        this.on_change(specular_power, () => {\n            this.volume.getProperty().setSpecularPower(this.model.specular_power);\n            this._vtk_renwin.getRenderWindow().render();\n        });\n        this.on_change(display_volume, () => {\n            this._set_volume_visibility(this.model.display_volume);\n            this._vtk_renwin.getRenderWindow().render();\n        });\n        this.on_change(display_slices, () => {\n            this._set_slices_visibility(this.model.display_slices);\n            this._vtk_renwin.getRenderWindow().render();\n        });\n        this.on_change(slice_i, () => {\n            if (this.image_actor_i !== undefined) {\n                this.image_actor_i.getMapper().setISlice(this.model.slice_i);\n                this._vtk_renwin.getRenderWindow().render();\n            }\n        });\n        this.on_change(slice_j, () => {\n            if (this.image_actor_j !== undefined) {\n                this.image_actor_j.getMapper().setJSlice(this.model.slice_j);\n                this._vtk_renwin.getRenderWindow().render();\n            }\n        });\n        this.on_change(slice_k, () => {\n            if (this.image_actor_k !== undefined) {\n                this.image_actor_k.getMapper().setKSlice(this.model.slice_k);\n                this._vtk_renwin.getRenderWindow().render();\n            }\n        });\n        this.on_change(render_background, () => {\n            this._vtk_renwin\n                .getRenderer()\n                .setBackground(...(0, util_1.hexToRGB)(this.model.render_background));\n            this._vtk_renwin.getRenderWindow().render();\n        });\n        this.on_change(interpolation, () => {\n            this._set_interpolation(this.model.interpolation);\n            this._vtk_renwin.getRenderWindow().render();\n        });\n        this.on_change(controller_expanded, () => {\n            if (this._controllerWidget != null) {\n                this._controllerWidget.setExpanded(this.model.controller_expanded);\n            }\n        });\n        this.on_change(nan_opacity, () => {\n            const scalar_opacity = this.image_actor_i.getProperty().getScalarOpacity();\n            scalar_opacity.get([\"nodes\"]).nodes[0].y = this.model.nan_opacity;\n            scalar_opacity.modified();\n            this._vtk_renwin.getRenderWindow().render();\n        });\n    }\n    render() {\n        this._vtk_renwin = null;\n        this._orientationWidget = null;\n        this._axes = null;\n        super.render();\n        this._create_orientation_widget();\n        this._set_axes();\n        this._vtk_renwin.getRenderer().resetCamera();\n        if (Object.keys(this.model.camera).length > 0) {\n            this._set_camera_state();\n        }\n        this._get_camera_state();\n    }\n    invalidate_render() {\n        this._vtk_renwin = null;\n        super.invalidate_render();\n    }\n    init_vtk_renwin() {\n        this._vtk_renwin = util_1.vtkns.FullScreenRenderWindow.newInstance({\n            rootContainer: this.shadow_el,\n            container: this._vtk_container,\n        });\n    }\n    plot() {\n        this._controllerWidget = util_1.vtkns.VolumeController.newInstance({\n            size: [400, 150],\n            rescaleColorMap: this.model.rescale,\n        });\n        this._plot_volume();\n        this._plot_slices();\n        this._controllerWidget.setupContent(this._vtk_renwin.getRenderWindow(), this.volume, true);\n        this._controllerWidget.setContainer(this.el);\n        this._controllerWidget.setExpanded(this.model.controller_expanded);\n        this._connect_js_controls();\n        this._vtk_renwin.getRenderWindow().getInteractor();\n        this._vtk_renwin.getRenderWindow().getInteractor().setDesiredUpdateRate(45);\n        this._set_volume_visibility(this.model.display_volume);\n        this._set_slices_visibility(this.model.display_slices);\n        this._vtk_renwin\n            .getRenderer()\n            .setBackground(...(0, util_1.hexToRGB)(this.model.render_background));\n        this._set_interpolation(this.model.interpolation);\n        this._set_camera_state();\n    }\n    get vtk_image_data() {\n        if (!this._vtk_image_data) {\n            this._vtk_image_data = (0, util_1.data2VTKImageData)(this.model.data);\n        }\n        return this._vtk_image_data;\n    }\n    get volume() {\n        return this._vtk_renwin.getRenderer().getVolumes()[0];\n    }\n    get image_actor_i() {\n        return this._vtk_renwin.getRenderer().getActors()[0];\n    }\n    get image_actor_j() {\n        return this._vtk_renwin.getRenderer().getActors()[1];\n    }\n    get image_actor_k() {\n        return this._vtk_renwin.getRenderer().getActors()[2];\n    }\n    get shadow_selector() {\n        return this.el.querySelector(\".js-shadow\");\n    }\n    get edge_gradient_slider() {\n        return this.el.querySelector(\".js-edge\");\n    }\n    get sampling_slider() {\n        return this.el.querySelector(\".js-spacing\");\n    }\n    get colormap_selector() {\n        return this.el.querySelector(\".js-color-preset\");\n    }\n    _connect_js_controls() {\n        const { el: controller_el } = this._controllerWidget.get(\"el\");\n        if (controller_el !== undefined) {\n            const controller_button = controller_el.querySelector(\".js-button\");\n            controller_button.addEventListener(\"click\", () => this.model.controller_expanded = this._controllerWidget.getExpanded());\n        }\n        // Colormap selector\n        this.colormap_selector.addEventListener(\"change\", () => {\n            this.model.colormap = this.colormap_selector.value;\n        });\n        if (!this.model.colormap) {\n            this.model.colormap = this.colormap_selector.value;\n        }\n        else {\n            this.model.properties.colormap.change.emit();\n        }\n        // Shadow selector\n        this.shadow_selector.addEventListener(\"change\", () => {\n            this.model.shadow = !!Number(this.shadow_selector.value);\n        });\n        if ((this.model.shadow = !!Number(this.shadow_selector.value))) {\n            this.model.properties.shadow.change.emit();\n        }\n        // Sampling slider\n        this.sampling_slider.addEventListener(\"input\", () => {\n            const js_sampling_value = Number(this.sampling_slider.value);\n            if (Math.abs(this.model.sampling - js_sampling_value) >= 5e-3) {\n                this.model.sampling = js_sampling_value;\n            }\n        });\n        if (Math.abs(this.model.sampling - Number(this.shadow_selector.value)) >= 5e-3) {\n            this.model.properties.sampling.change.emit();\n        }\n        // Edge Gradient slider\n        this.edge_gradient_slider.addEventListener(\"input\", () => {\n            const js_edge_gradient_value = Number(this.edge_gradient_slider.value);\n            if (Math.abs(this.model.edge_gradient - js_edge_gradient_value) >= 5e-3) {\n                this.model.edge_gradient = js_edge_gradient_value;\n            }\n        });\n        if (Math.abs(this.model.edge_gradient - Number(this.edge_gradient_slider.value)) >= 5e-3) {\n            this.model.properties.edge_gradient.change.emit();\n        }\n    }\n    _plot_slices() {\n        const source = this._vtk_image_data;\n        const image_actor_i = util_1.vtkns.ImageSlice.newInstance();\n        const image_actor_j = util_1.vtkns.ImageSlice.newInstance();\n        const image_actor_k = util_1.vtkns.ImageSlice.newInstance();\n        const image_mapper_i = util_1.vtkns.ImageMapper.newInstance();\n        const image_mapper_j = util_1.vtkns.ImageMapper.newInstance();\n        const image_mapper_k = util_1.vtkns.ImageMapper.newInstance();\n        image_mapper_i.setInputData(source);\n        image_mapper_i.setISlice(this.model.slice_i);\n        image_actor_i.setMapper(image_mapper_i);\n        image_mapper_j.setInputData(source);\n        image_mapper_j.setJSlice(this.model.slice_j);\n        image_actor_j.setMapper(image_mapper_j);\n        image_mapper_k.setInputData(source);\n        image_mapper_k.setKSlice(this.model.slice_k);\n        image_actor_k.setMapper(image_mapper_k);\n        // set_color and opacity\n        const piecewiseFunction = util_1.vtkns.PiecewiseFunction.newInstance();\n        const lookupTable = this.volume.getProperty().getRGBTransferFunction(0);\n        const range = this.volume.getMapper().getInputData().getPointData().getScalars().getRange();\n        piecewiseFunction.removeAllPoints();\n        piecewiseFunction.addPoint(range[0] - 1, this.model.nan_opacity);\n        piecewiseFunction.addPoint(range[0], 1);\n        piecewiseFunction.addPoint(range[1], 1);\n        const property = image_actor_i.getProperty();\n        image_actor_j.setProperty(property);\n        image_actor_k.setProperty(property);\n        property.setRGBTransferFunction(lookupTable);\n        property.setScalarOpacity(piecewiseFunction);\n        const renderer = this._vtk_renwin.getRenderer();\n        renderer.addActor(image_actor_i);\n        renderer.addActor(image_actor_j);\n        renderer.addActor(image_actor_k);\n    }\n    _plot_volume() {\n        //Create vtk volume and add it to the scene\n        const source = this.vtk_image_data;\n        const actor = util_1.vtkns.Volume.newInstance();\n        const mapper = util_1.vtkns.VolumeMapper.newInstance();\n        actor.setMapper(mapper);\n        mapper.setInputData(source);\n        const dataArray = source.getPointData().getScalars() || source.getPointData().getArrays()[0];\n        const dataRange = dataArray.getRange();\n        const lookupTable = util_1.vtkns.ColorTransferFunction.newInstance();\n        if (this.model.colormap != null) {\n            const preset = util_1.vtkns.ColorTransferFunction.vtkColorMaps.getPresetByName(this.model.colormap);\n            lookupTable.applyColorMap(preset);\n        }\n        lookupTable.onModified(() => (this.model.mapper = (0, util_1.vtkLutToMapper)(lookupTable)));\n        const piecewiseFunction = util_1.vtkns.PiecewiseFunction.newInstance();\n        const sampleDistance = 0.7 *\n            Math.sqrt(source\n                .getSpacing()\n                .map((v) => v * v)\n                .reduce((a, b) => a + b, 0));\n        mapper.setSampleDistance(sampleDistance);\n        actor.getProperty().setRGBTransferFunction(0, lookupTable);\n        actor.getProperty().setScalarOpacity(0, piecewiseFunction);\n        actor.getProperty().setInterpolationTypeToFastLinear();\n        // actor.getProperty().setInterpolationTypeToLinear();\n        // For better looking volume rendering\n        // - distance in world coordinates a scalar opacity of 1.0\n        actor\n            .getProperty()\n            .setScalarOpacityUnitDistance(0, util_1.vtkns.BoundingBox.getDiagonalLength(source.getBounds()) /\n            Math.max(...source.getDimensions()));\n        // - control how we emphasize surface boundaries\n        //  => max should be around the average gradient magnitude for the\n        //     volume or maybe average plus one std dev of the gradient magnitude\n        //     (adjusted for spacing, this is a world coordinate gradient, not a\n        //     pixel gradient)\n        //  => max hack: (dataRange[1] - dataRange[0]) * 0.05\n        actor.getProperty().setGradientOpacityMinimumValue(0, 0);\n        actor\n            .getProperty()\n            .setGradientOpacityMaximumValue(0, (dataRange[1] - dataRange[0]) * 0.05);\n        // - Use shading based on gradient\n        actor.getProperty().setShade(this.model.shadow);\n        actor.getProperty().setUseGradientOpacity(0, true);\n        // - generic good default\n        actor.getProperty().setGradientOpacityMinimumOpacity(0, 0.0);\n        actor.getProperty().setGradientOpacityMaximumOpacity(0, 1.0);\n        actor.getProperty().setAmbient(this.model.ambient);\n        actor.getProperty().setDiffuse(this.model.diffuse);\n        actor.getProperty().setSpecular(this.model.specular);\n        actor.getProperty().setSpecularPower(this.model.specular_power);\n        this._vtk_renwin.getRenderer().addVolume(actor);\n    }\n    _set_interpolation(interpolation) {\n        if (interpolation == \"fast_linear\") {\n            this.volume.getProperty().setInterpolationTypeToFastLinear();\n            this.image_actor_i.getProperty().setInterpolationTypeToLinear();\n        }\n        else if (interpolation == \"linear\") {\n            this.volume.getProperty().setInterpolationTypeToLinear();\n            this.image_actor_i.getProperty().setInterpolationTypeToLinear();\n        }\n        else {\n            //nearest\n            this.volume.getProperty().setInterpolationTypeToNearest();\n            this.image_actor_i.getProperty().setInterpolationTypeToNearest();\n        }\n    }\n    _set_slices_visibility(visibility) {\n        this.image_actor_i.setVisibility(visibility);\n        this.image_actor_j.setVisibility(visibility);\n        this.image_actor_k.setVisibility(visibility);\n    }\n    _set_volume_visibility(visibility) {\n        this.volume.setVisibility(visibility);\n    }\n}\nexports.VTKVolumePlotView = VTKVolumePlotView;\nVTKVolumePlotView.__name__ = \"VTKVolumePlotView\";\nclass VTKVolumePlot extends vtklayout_1.AbstractVTKPlot {\n    constructor(attrs) {\n        super(attrs);\n    }\n}\nexports.VTKVolumePlot = VTKVolumePlot;\n_a = VTKVolumePlot;\nVTKVolumePlot.__name__ = \"VTKVolumePlot\";\n(() => {\n    _a.prototype.default_view = VTKVolumePlotView;\n    _a.define(({ Any, Array, Boolean, Int, Number, String, Struct }) => ({\n        ambient: [Number, 0.2],\n        colormap: [String],\n        data: [Any],\n        diffuse: [Number, 0.7],\n        display_slices: [Boolean, false],\n        display_volume: [Boolean, true],\n        edge_gradient: [Number, 0.2],\n        interpolation: [util_1.Interpolation, \"fast_linear\"],\n        mapper: [Struct({ palette: Array(String), low: Number, high: Number }), { palette: [], low: 0, high: 0 }],\n        nan_opacity: [Number, 1],\n        render_background: [String, \"#52576e\"],\n        rescale: [Boolean, false],\n        sampling: [Number, 0.4],\n        shadow: [Boolean, true],\n        slice_i: [Int, 0],\n        slice_j: [Int, 0],\n        slice_k: [Int, 0],\n        specular: [Number, 0.3],\n        specular_power: [Number, 8.0],\n        controller_expanded: [Boolean, true],\n    }));\n    _a.override({\n        height: 300,\n        width: 300,\n    });\n})();\n//# sourceMappingURL=vtkvolume.js.map\n","type":"js","dependency_paths":[["./vtklayout","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/vtklayout.js"],["./util","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/util.js"]],"dependency_map":[],"exported":[{"type":"named","name":"VTKVolumePlotView"},{"type":"named","name":"VTKVolumePlot"}],"externals":[],"shims":[]},"code":{"source":"/* models/vtk/vtkvolume.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const vtklayout_1 = require(\"b06d05fa3e\") /* ./vtklayout */;\n    const util_1 = require(\"df9946ff52\") /* ./util */;\n    class VTKVolumePlotView extends vtklayout_1.AbstractVTKView {\n        connect_signals() {\n            super.connect_signals();\n            const { data, colormap, shadow, sampling, edge_gradient, rescale, ambient, diffuse, camera, specular, specular_power, display_volume, display_slices, slice_i, slice_j, slice_k, render_background, interpolation, controller_expanded, nan_opacity, } = this.model.properties;\n            this.on_change(data, () => {\n                this._vtk_image_data = (0, util_1.data2VTKImageData)(this.model.data);\n                this.invalidate_render();\n            });\n            this.on_change(colormap, () => {\n                this.colormap_selector.value = this.model.colormap;\n                const event = new Event(\"change\");\n                this.colormap_selector.dispatchEvent(event);\n            });\n            this.on_change(shadow, () => {\n                this.shadow_selector.value = this.model.shadow ? \"1\" : \"0\";\n                const event = new Event(\"change\");\n                this.shadow_selector.dispatchEvent(event);\n            });\n            this.on_change(sampling, () => {\n                this.sampling_slider.value = this.model.sampling.toFixed(2);\n                const event = new Event(\"input\");\n                this.sampling_slider.dispatchEvent(event);\n            });\n            this.on_change(edge_gradient, () => {\n                this.edge_gradient_slider.value = this.model.edge_gradient.toFixed(2);\n                const event = new Event(\"input\");\n                this.edge_gradient_slider.dispatchEvent(event);\n            });\n            this.on_change(rescale, () => {\n                this._controllerWidget.setRescaleColorMap(this.model.rescale);\n                this._vtk_renwin.getRenderWindow().render();\n            });\n            this.on_change(ambient, () => {\n                this.volume.getProperty().setAmbient(this.model.ambient);\n                this._vtk_renwin.getRenderWindow().render();\n            });\n            this.on_change(diffuse, () => {\n                this.volume.getProperty().setDiffuse(this.model.diffuse);\n                this._vtk_renwin.getRenderWindow().render();\n            });\n            this.on_change(camera, () => {\n                if (!this._setting_camera) {\n                    this._set_camera_state();\n                    this._vtk_renwin.getRenderWindow().render();\n                }\n            });\n            this.on_change(specular, () => {\n                this.volume.getProperty().setSpecular(this.model.specular);\n                this._vtk_renwin.getRenderWindow().render();\n            });\n            this.on_change(specular_power, () => {\n                this.volume.getProperty().setSpecularPower(this.model.specular_power);\n                this._vtk_renwin.getRenderWindow().render();\n            });\n            this.on_change(display_volume, () => {\n                this._set_volume_visibility(this.model.display_volume);\n                this._vtk_renwin.getRenderWindow().render();\n            });\n            this.on_change(display_slices, () => {\n                this._set_slices_visibility(this.model.display_slices);\n                this._vtk_renwin.getRenderWindow().render();\n            });\n            this.on_change(slice_i, () => {\n                if (this.image_actor_i !== undefined) {\n                    this.image_actor_i.getMapper().setISlice(this.model.slice_i);\n                    this._vtk_renwin.getRenderWindow().render();\n                }\n            });\n            this.on_change(slice_j, () => {\n                if (this.image_actor_j !== undefined) {\n                    this.image_actor_j.getMapper().setJSlice(this.model.slice_j);\n                    this._vtk_renwin.getRenderWindow().render();\n                }\n            });\n            this.on_change(slice_k, () => {\n                if (this.image_actor_k !== undefined) {\n                    this.image_actor_k.getMapper().setKSlice(this.model.slice_k);\n                    this._vtk_renwin.getRenderWindow().render();\n                }\n            });\n            this.on_change(render_background, () => {\n                this._vtk_renwin\n                    .getRenderer()\n                    .setBackground(...(0, util_1.hexToRGB)(this.model.render_background));\n                this._vtk_renwin.getRenderWindow().render();\n            });\n            this.on_change(interpolation, () => {\n                this._set_interpolation(this.model.interpolation);\n                this._vtk_renwin.getRenderWindow().render();\n            });\n            this.on_change(controller_expanded, () => {\n                if (this._controllerWidget != null) {\n                    this._controllerWidget.setExpanded(this.model.controller_expanded);\n                }\n            });\n            this.on_change(nan_opacity, () => {\n                const scalar_opacity = this.image_actor_i.getProperty().getScalarOpacity();\n                scalar_opacity.get([\"nodes\"]).nodes[0].y = this.model.nan_opacity;\n                scalar_opacity.modified();\n                this._vtk_renwin.getRenderWindow().render();\n            });\n        }\n        render() {\n            this._vtk_renwin = null;\n            this._orientationWidget = null;\n            this._axes = null;\n            super.render();\n            this._create_orientation_widget();\n            this._set_axes();\n            this._vtk_renwin.getRenderer().resetCamera();\n            if (Object.keys(this.model.camera).length > 0) {\n                this._set_camera_state();\n            }\n            this._get_camera_state();\n        }\n        invalidate_render() {\n            this._vtk_renwin = null;\n            super.invalidate_render();\n        }\n        init_vtk_renwin() {\n            this._vtk_renwin = util_1.vtkns.FullScreenRenderWindow.newInstance({\n                rootContainer: this.shadow_el,\n                container: this._vtk_container,\n            });\n        }\n        plot() {\n            this._controllerWidget = util_1.vtkns.VolumeController.newInstance({\n                size: [400, 150],\n                rescaleColorMap: this.model.rescale,\n            });\n            this._plot_volume();\n            this._plot_slices();\n            this._controllerWidget.setupContent(this._vtk_renwin.getRenderWindow(), this.volume, true);\n            this._controllerWidget.setContainer(this.el);\n            this._controllerWidget.setExpanded(this.model.controller_expanded);\n            this._connect_js_controls();\n            this._vtk_renwin.getRenderWindow().getInteractor();\n            this._vtk_renwin.getRenderWindow().getInteractor().setDesiredUpdateRate(45);\n            this._set_volume_visibility(this.model.display_volume);\n            this._set_slices_visibility(this.model.display_slices);\n            this._vtk_renwin\n                .getRenderer()\n                .setBackground(...(0, util_1.hexToRGB)(this.model.render_background));\n            this._set_interpolation(this.model.interpolation);\n            this._set_camera_state();\n        }\n        get vtk_image_data() {\n            if (!this._vtk_image_data) {\n                this._vtk_image_data = (0, util_1.data2VTKImageData)(this.model.data);\n            }\n            return this._vtk_image_data;\n        }\n        get volume() {\n            return this._vtk_renwin.getRenderer().getVolumes()[0];\n        }\n        get image_actor_i() {\n            return this._vtk_renwin.getRenderer().getActors()[0];\n        }\n        get image_actor_j() {\n            return this._vtk_renwin.getRenderer().getActors()[1];\n        }\n        get image_actor_k() {\n            return this._vtk_renwin.getRenderer().getActors()[2];\n        }\n        get shadow_selector() {\n            return this.el.querySelector(\".js-shadow\");\n        }\n        get edge_gradient_slider() {\n            return this.el.querySelector(\".js-edge\");\n        }\n        get sampling_slider() {\n            return this.el.querySelector(\".js-spacing\");\n        }\n        get colormap_selector() {\n            return this.el.querySelector(\".js-color-preset\");\n        }\n        _connect_js_controls() {\n            const { el: controller_el } = this._controllerWidget.get(\"el\");\n            if (controller_el !== undefined) {\n                const controller_button = controller_el.querySelector(\".js-button\");\n                controller_button.addEventListener(\"click\", () => this.model.controller_expanded = this._controllerWidget.getExpanded());\n            }\n            // Colormap selector\n            this.colormap_selector.addEventListener(\"change\", () => {\n                this.model.colormap = this.colormap_selector.value;\n            });\n            if (!this.model.colormap) {\n                this.model.colormap = this.colormap_selector.value;\n            }\n            else {\n                this.model.properties.colormap.change.emit();\n            }\n            // Shadow selector\n            this.shadow_selector.addEventListener(\"change\", () => {\n                this.model.shadow = !!Number(this.shadow_selector.value);\n            });\n            if ((this.model.shadow = !!Number(this.shadow_selector.value))) {\n                this.model.properties.shadow.change.emit();\n            }\n            // Sampling slider\n            this.sampling_slider.addEventListener(\"input\", () => {\n                const js_sampling_value = Number(this.sampling_slider.value);\n                if (Math.abs(this.model.sampling - js_sampling_value) >= 5e-3) {\n                    this.model.sampling = js_sampling_value;\n                }\n            });\n            if (Math.abs(this.model.sampling - Number(this.shadow_selector.value)) >= 5e-3) {\n                this.model.properties.sampling.change.emit();\n            }\n            // Edge Gradient slider\n            this.edge_gradient_slider.addEventListener(\"input\", () => {\n                const js_edge_gradient_value = Number(this.edge_gradient_slider.value);\n                if (Math.abs(this.model.edge_gradient - js_edge_gradient_value) >= 5e-3) {\n                    this.model.edge_gradient = js_edge_gradient_value;\n                }\n            });\n            if (Math.abs(this.model.edge_gradient - Number(this.edge_gradient_slider.value)) >= 5e-3) {\n                this.model.properties.edge_gradient.change.emit();\n            }\n        }\n        _plot_slices() {\n            const source = this._vtk_image_data;\n            const image_actor_i = util_1.vtkns.ImageSlice.newInstance();\n            const image_actor_j = util_1.vtkns.ImageSlice.newInstance();\n            const image_actor_k = util_1.vtkns.ImageSlice.newInstance();\n            const image_mapper_i = util_1.vtkns.ImageMapper.newInstance();\n            const image_mapper_j = util_1.vtkns.ImageMapper.newInstance();\n            const image_mapper_k = util_1.vtkns.ImageMapper.newInstance();\n            image_mapper_i.setInputData(source);\n            image_mapper_i.setISlice(this.model.slice_i);\n            image_actor_i.setMapper(image_mapper_i);\n            image_mapper_j.setInputData(source);\n            image_mapper_j.setJSlice(this.model.slice_j);\n            image_actor_j.setMapper(image_mapper_j);\n            image_mapper_k.setInputData(source);\n            image_mapper_k.setKSlice(this.model.slice_k);\n            image_actor_k.setMapper(image_mapper_k);\n            // set_color and opacity\n            const piecewiseFunction = util_1.vtkns.PiecewiseFunction.newInstance();\n            const lookupTable = this.volume.getProperty().getRGBTransferFunction(0);\n            const range = this.volume.getMapper().getInputData().getPointData().getScalars().getRange();\n            piecewiseFunction.removeAllPoints();\n            piecewiseFunction.addPoint(range[0] - 1, this.model.nan_opacity);\n            piecewiseFunction.addPoint(range[0], 1);\n            piecewiseFunction.addPoint(range[1], 1);\n            const property = image_actor_i.getProperty();\n            image_actor_j.setProperty(property);\n            image_actor_k.setProperty(property);\n            property.setRGBTransferFunction(lookupTable);\n            property.setScalarOpacity(piecewiseFunction);\n            const renderer = this._vtk_renwin.getRenderer();\n            renderer.addActor(image_actor_i);\n            renderer.addActor(image_actor_j);\n            renderer.addActor(image_actor_k);\n        }\n        _plot_volume() {\n            //Create vtk volume and add it to the scene\n            const source = this.vtk_image_data;\n            const actor = util_1.vtkns.Volume.newInstance();\n            const mapper = util_1.vtkns.VolumeMapper.newInstance();\n            actor.setMapper(mapper);\n            mapper.setInputData(source);\n            const dataArray = source.getPointData().getScalars() || source.getPointData().getArrays()[0];\n            const dataRange = dataArray.getRange();\n            const lookupTable = util_1.vtkns.ColorTransferFunction.newInstance();\n            if (this.model.colormap != null) {\n                const preset = util_1.vtkns.ColorTransferFunction.vtkColorMaps.getPresetByName(this.model.colormap);\n                lookupTable.applyColorMap(preset);\n            }\n            lookupTable.onModified(() => (this.model.mapper = (0, util_1.vtkLutToMapper)(lookupTable)));\n            const piecewiseFunction = util_1.vtkns.PiecewiseFunction.newInstance();\n            const sampleDistance = 0.7 *\n                Math.sqrt(source\n                    .getSpacing()\n                    .map((v) => v * v)\n                    .reduce((a, b) => a + b, 0));\n            mapper.setSampleDistance(sampleDistance);\n            actor.getProperty().setRGBTransferFunction(0, lookupTable);\n            actor.getProperty().setScalarOpacity(0, piecewiseFunction);\n            actor.getProperty().setInterpolationTypeToFastLinear();\n            // actor.getProperty().setInterpolationTypeToLinear();\n            // For better looking volume rendering\n            // - distance in world coordinates a scalar opacity of 1.0\n            actor\n                .getProperty()\n                .setScalarOpacityUnitDistance(0, util_1.vtkns.BoundingBox.getDiagonalLength(source.getBounds()) /\n                Math.max(...source.getDimensions()));\n            // - control how we emphasize surface boundaries\n            //  => max should be around the average gradient magnitude for the\n            //     volume or maybe average plus one std dev of the gradient magnitude\n            //     (adjusted for spacing, this is a world coordinate gradient, not a\n            //     pixel gradient)\n            //  => max hack: (dataRange[1] - dataRange[0]) * 0.05\n            actor.getProperty().setGradientOpacityMinimumValue(0, 0);\n            actor\n                .getProperty()\n                .setGradientOpacityMaximumValue(0, (dataRange[1] - dataRange[0]) * 0.05);\n            // - Use shading based on gradient\n            actor.getProperty().setShade(this.model.shadow);\n            actor.getProperty().setUseGradientOpacity(0, true);\n            // - generic good default\n            actor.getProperty().setGradientOpacityMinimumOpacity(0, 0.0);\n            actor.getProperty().setGradientOpacityMaximumOpacity(0, 1.0);\n            actor.getProperty().setAmbient(this.model.ambient);\n            actor.getProperty().setDiffuse(this.model.diffuse);\n            actor.getProperty().setSpecular(this.model.specular);\n            actor.getProperty().setSpecularPower(this.model.specular_power);\n            this._vtk_renwin.getRenderer().addVolume(actor);\n        }\n        _set_interpolation(interpolation) {\n            if (interpolation == \"fast_linear\") {\n                this.volume.getProperty().setInterpolationTypeToFastLinear();\n                this.image_actor_i.getProperty().setInterpolationTypeToLinear();\n            }\n            else if (interpolation == \"linear\") {\n                this.volume.getProperty().setInterpolationTypeToLinear();\n                this.image_actor_i.getProperty().setInterpolationTypeToLinear();\n            }\n            else {\n                //nearest\n                this.volume.getProperty().setInterpolationTypeToNearest();\n                this.image_actor_i.getProperty().setInterpolationTypeToNearest();\n            }\n        }\n        _set_slices_visibility(visibility) {\n            this.image_actor_i.setVisibility(visibility);\n            this.image_actor_j.setVisibility(visibility);\n            this.image_actor_k.setVisibility(visibility);\n        }\n        _set_volume_visibility(visibility) {\n            this.volume.setVisibility(visibility);\n        }\n    }\n    exports.VTKVolumePlotView = VTKVolumePlotView;\n    VTKVolumePlotView.__name__ = \"VTKVolumePlotView\";\n    class VTKVolumePlot extends vtklayout_1.AbstractVTKPlot {\n        constructor(attrs) {\n            super(attrs);\n        }\n    }\n    exports.VTKVolumePlot = VTKVolumePlot;\n    _a = VTKVolumePlot;\n    VTKVolumePlot.__name__ = \"VTKVolumePlot\";\n    (() => {\n        _a.prototype.default_view = VTKVolumePlotView;\n        _a.define(({ Any, Array, Boolean, Int, Number, String, Struct }) => ({\n            ambient: [Number, 0.2],\n            colormap: [String],\n            data: [Any],\n            diffuse: [Number, 0.7],\n            display_slices: [Boolean, false],\n            display_volume: [Boolean, true],\n            edge_gradient: [Number, 0.2],\n            interpolation: [util_1.Interpolation, \"fast_linear\"],\n            mapper: [Struct({ palette: Array(String), low: Number, high: Number }), { palette: [], low: 0, high: 0 }],\n            nan_opacity: [Number, 1],\n            render_background: [String, \"#52576e\"],\n            rescale: [Boolean, false],\n            sampling: [Number, 0.4],\n            shadow: [Boolean, true],\n            slice_i: [Int, 0],\n            slice_j: [Int, 0],\n            slice_k: [Int, 0],\n            specular: [Number, 0.3],\n            specular_power: [Number, 8.0],\n            controller_expanded: [Boolean, true],\n        }));\n        _a.override({\n            height: 300,\n            width: 300,\n        });\n    })();\n}\n","min_source":"function _(e,t,i,s,n){var r;s();const o=e(\"b06d05fa3e\"),a=e(\"df9946ff52\");class l extends o.AbstractVTKView{connect_signals(){super.connect_signals();const{data:e,colormap:t,shadow:i,sampling:s,edge_gradient:n,rescale:r,ambient:o,diffuse:l,camera:d,specular:_,specular_power:c,display_volume:h,display_slices:g,slice_i:p,slice_j:m,slice_k:u,render_background:v,interpolation:w,controller_expanded:y,nan_opacity:k}=this.model.properties;this.on_change(e,(()=>{this._vtk_image_data=(0,a.data2VTKImageData)(this.model.data),this.invalidate_render()})),this.on_change(t,(()=>{this.colormap_selector.value=this.model.colormap;const e=new Event(\"change\");this.colormap_selector.dispatchEvent(e)})),this.on_change(i,(()=>{this.shadow_selector.value=this.model.shadow?\"1\":\"0\";const e=new Event(\"change\");this.shadow_selector.dispatchEvent(e)})),this.on_change(s,(()=>{this.sampling_slider.value=this.model.sampling.toFixed(2);const e=new Event(\"input\");this.sampling_slider.dispatchEvent(e)})),this.on_change(n,(()=>{this.edge_gradient_slider.value=this.model.edge_gradient.toFixed(2);const e=new Event(\"input\");this.edge_gradient_slider.dispatchEvent(e)})),this.on_change(r,(()=>{this._controllerWidget.setRescaleColorMap(this.model.rescale),this._vtk_renwin.getRenderWindow().render()})),this.on_change(o,(()=>{this.volume.getProperty().setAmbient(this.model.ambient),this._vtk_renwin.getRenderWindow().render()})),this.on_change(l,(()=>{this.volume.getProperty().setDiffuse(this.model.diffuse),this._vtk_renwin.getRenderWindow().render()})),this.on_change(d,(()=>{this._setting_camera||(this._set_camera_state(),this._vtk_renwin.getRenderWindow().render())})),this.on_change(_,(()=>{this.volume.getProperty().setSpecular(this.model.specular),this._vtk_renwin.getRenderWindow().render()})),this.on_change(c,(()=>{this.volume.getProperty().setSpecularPower(this.model.specular_power),this._vtk_renwin.getRenderWindow().render()})),this.on_change(h,(()=>{this._set_volume_visibility(this.model.display_volume),this._vtk_renwin.getRenderWindow().render()})),this.on_change(g,(()=>{this._set_slices_visibility(this.model.display_slices),this._vtk_renwin.getRenderWindow().render()})),this.on_change(p,(()=>{void 0!==this.image_actor_i&&(this.image_actor_i.getMapper().setISlice(this.model.slice_i),this._vtk_renwin.getRenderWindow().render())})),this.on_change(m,(()=>{void 0!==this.image_actor_j&&(this.image_actor_j.getMapper().setJSlice(this.model.slice_j),this._vtk_renwin.getRenderWindow().render())})),this.on_change(u,(()=>{void 0!==this.image_actor_k&&(this.image_actor_k.getMapper().setKSlice(this.model.slice_k),this._vtk_renwin.getRenderWindow().render())})),this.on_change(v,(()=>{this._vtk_renwin.getRenderer().setBackground(...(0,a.hexToRGB)(this.model.render_background)),this._vtk_renwin.getRenderWindow().render()})),this.on_change(w,(()=>{this._set_interpolation(this.model.interpolation),this._vtk_renwin.getRenderWindow().render()})),this.on_change(y,(()=>{null!=this._controllerWidget&&this._controllerWidget.setExpanded(this.model.controller_expanded)})),this.on_change(k,(()=>{const e=this.image_actor_i.getProperty().getScalarOpacity();e.get([\"nodes\"]).nodes[0].y=this.model.nan_opacity,e.modified(),this._vtk_renwin.getRenderWindow().render()}))}render(){this._vtk_renwin=null,this._orientationWidget=null,this._axes=null,super.render(),this._create_orientation_widget(),this._set_axes(),this._vtk_renwin.getRenderer().resetCamera(),Object.keys(this.model.camera).length>0&&this._set_camera_state(),this._get_camera_state()}invalidate_render(){this._vtk_renwin=null,super.invalidate_render()}init_vtk_renwin(){this._vtk_renwin=a.vtkns.FullScreenRenderWindow.newInstance({rootContainer:this.shadow_el,container:this._vtk_container})}plot(){this._controllerWidget=a.vtkns.VolumeController.newInstance({size:[400,150],rescaleColorMap:this.model.rescale}),this._plot_volume(),this._plot_slices(),this._controllerWidget.setupContent(this._vtk_renwin.getRenderWindow(),this.volume,!0),this._controllerWidget.setContainer(this.el),this._controllerWidget.setExpanded(this.model.controller_expanded),this._connect_js_controls(),this._vtk_renwin.getRenderWindow().getInteractor(),this._vtk_renwin.getRenderWindow().getInteractor().setDesiredUpdateRate(45),this._set_volume_visibility(this.model.display_volume),this._set_slices_visibility(this.model.display_slices),this._vtk_renwin.getRenderer().setBackground(...(0,a.hexToRGB)(this.model.render_background)),this._set_interpolation(this.model.interpolation),this._set_camera_state()}get vtk_image_data(){return this._vtk_image_data||(this._vtk_image_data=(0,a.data2VTKImageData)(this.model.data)),this._vtk_image_data}get volume(){return this._vtk_renwin.getRenderer().getVolumes()[0]}get image_actor_i(){return this._vtk_renwin.getRenderer().getActors()[0]}get image_actor_j(){return this._vtk_renwin.getRenderer().getActors()[1]}get image_actor_k(){return this._vtk_renwin.getRenderer().getActors()[2]}get shadow_selector(){return this.el.querySelector(\".js-shadow\")}get edge_gradient_slider(){return this.el.querySelector(\".js-edge\")}get sampling_slider(){return this.el.querySelector(\".js-spacing\")}get colormap_selector(){return this.el.querySelector(\".js-color-preset\")}_connect_js_controls(){const{el:e}=this._controllerWidget.get(\"el\");if(void 0!==e){e.querySelector(\".js-button\").addEventListener(\"click\",(()=>this.model.controller_expanded=this._controllerWidget.getExpanded()))}this.colormap_selector.addEventListener(\"change\",(()=>{this.model.colormap=this.colormap_selector.value})),this.model.colormap?this.model.properties.colormap.change.emit():this.model.colormap=this.colormap_selector.value,this.shadow_selector.addEventListener(\"change\",(()=>{this.model.shadow=!!Number(this.shadow_selector.value)})),(this.model.shadow=!!Number(this.shadow_selector.value))&&this.model.properties.shadow.change.emit(),this.sampling_slider.addEventListener(\"input\",(()=>{const e=Number(this.sampling_slider.value);Math.abs(this.model.sampling-e)>=.005&&(this.model.sampling=e)})),Math.abs(this.model.sampling-Number(this.shadow_selector.value))>=.005&&this.model.properties.sampling.change.emit(),this.edge_gradient_slider.addEventListener(\"input\",(()=>{const e=Number(this.edge_gradient_slider.value);Math.abs(this.model.edge_gradient-e)>=.005&&(this.model.edge_gradient=e)})),Math.abs(this.model.edge_gradient-Number(this.edge_gradient_slider.value))>=.005&&this.model.properties.edge_gradient.change.emit()}_plot_slices(){const e=this._vtk_image_data,t=a.vtkns.ImageSlice.newInstance(),i=a.vtkns.ImageSlice.newInstance(),s=a.vtkns.ImageSlice.newInstance(),n=a.vtkns.ImageMapper.newInstance(),r=a.vtkns.ImageMapper.newInstance(),o=a.vtkns.ImageMapper.newInstance();n.setInputData(e),n.setISlice(this.model.slice_i),t.setMapper(n),r.setInputData(e),r.setJSlice(this.model.slice_j),i.setMapper(r),o.setInputData(e),o.setKSlice(this.model.slice_k),s.setMapper(o);const l=a.vtkns.PiecewiseFunction.newInstance(),d=this.volume.getProperty().getRGBTransferFunction(0),_=this.volume.getMapper().getInputData().getPointData().getScalars().getRange();l.removeAllPoints(),l.addPoint(_[0]-1,this.model.nan_opacity),l.addPoint(_[0],1),l.addPoint(_[1],1);const c=t.getProperty();i.setProperty(c),s.setProperty(c),c.setRGBTransferFunction(d),c.setScalarOpacity(l);const h=this._vtk_renwin.getRenderer();h.addActor(t),h.addActor(i),h.addActor(s)}_plot_volume(){const e=this.vtk_image_data,t=a.vtkns.Volume.newInstance(),i=a.vtkns.VolumeMapper.newInstance();t.setMapper(i),i.setInputData(e);const s=(e.getPointData().getScalars()||e.getPointData().getArrays()[0]).getRange(),n=a.vtkns.ColorTransferFunction.newInstance();if(null!=this.model.colormap){const e=a.vtkns.ColorTransferFunction.vtkColorMaps.getPresetByName(this.model.colormap);n.applyColorMap(e)}n.onModified((()=>this.model.mapper=(0,a.vtkLutToMapper)(n)));const r=a.vtkns.PiecewiseFunction.newInstance(),o=.7*Math.sqrt(e.getSpacing().map((e=>e*e)).reduce(((e,t)=>e+t),0));i.setSampleDistance(o),t.getProperty().setRGBTransferFunction(0,n),t.getProperty().setScalarOpacity(0,r),t.getProperty().setInterpolationTypeToFastLinear(),t.getProperty().setScalarOpacityUnitDistance(0,a.vtkns.BoundingBox.getDiagonalLength(e.getBounds())/Math.max(...e.getDimensions())),t.getProperty().setGradientOpacityMinimumValue(0,0),t.getProperty().setGradientOpacityMaximumValue(0,.05*(s[1]-s[0])),t.getProperty().setShade(this.model.shadow),t.getProperty().setUseGradientOpacity(0,!0),t.getProperty().setGradientOpacityMinimumOpacity(0,0),t.getProperty().setGradientOpacityMaximumOpacity(0,1),t.getProperty().setAmbient(this.model.ambient),t.getProperty().setDiffuse(this.model.diffuse),t.getProperty().setSpecular(this.model.specular),t.getProperty().setSpecularPower(this.model.specular_power),this._vtk_renwin.getRenderer().addVolume(t)}_set_interpolation(e){\"fast_linear\"==e?(this.volume.getProperty().setInterpolationTypeToFastLinear(),this.image_actor_i.getProperty().setInterpolationTypeToLinear()):\"linear\"==e?(this.volume.getProperty().setInterpolationTypeToLinear(),this.image_actor_i.getProperty().setInterpolationTypeToLinear()):(this.volume.getProperty().setInterpolationTypeToNearest(),this.image_actor_i.getProperty().setInterpolationTypeToNearest())}_set_slices_visibility(e){this.image_actor_i.setVisibility(e),this.image_actor_j.setVisibility(e),this.image_actor_k.setVisibility(e)}_set_volume_visibility(e){this.volume.setVisibility(e)}}i.VTKVolumePlotView=l,l.__name__=\"VTKVolumePlotView\";class d extends o.AbstractVTKPlot{constructor(e){super(e)}}i.VTKVolumePlot=d,r=d,d.__name__=\"VTKVolumePlot\",r.prototype.default_view=l,r.define((({Any:e,Array:t,Boolean:i,Int:s,Number:n,String:r,Struct:o})=>({ambient:[n,.2],colormap:[r],data:[e],diffuse:[n,.7],display_slices:[i,!1],display_volume:[i,!0],edge_gradient:[n,.2],interpolation:[a.Interpolation,\"fast_linear\"],mapper:[o({palette:t(r),low:n,high:n}),{palette:[],low:0,high:0}],nan_opacity:[n,1],render_background:[r,\"#52576e\"],rescale:[i,!1],sampling:[n,.4],shadow:[i,!0],slice_i:[s,0],slice_j:[s,0],slice_k:[s,0],specular:[n,.3],specular_power:[n,8],controller_expanded:[i,!0]}))),r.override({height:300,width:300})}\n//# sourceMappingURL=vtkvolume.min.js.map","min_map":"{\"version\":3,\"file\":\"vtkvolume.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"vtklayout_1\",\"util_1\",\"VTKVolumePlotView\",\"AbstractVTKView\",\"connect_signals\",\"super\",\"data\",\"colormap\",\"shadow\",\"sampling\",\"edge_gradient\",\"rescale\",\"ambient\",\"diffuse\",\"camera\",\"specular\",\"specular_power\",\"display_volume\",\"display_slices\",\"slice_i\",\"slice_j\",\"slice_k\",\"render_background\",\"interpolation\",\"controller_expanded\",\"nan_opacity\",\"this\",\"model\",\"properties\",\"on_change\",\"_vtk_image_data\",\"data2VTKImageData\",\"invalidate_render\",\"colormap_selector\",\"value\",\"event\",\"Event\",\"dispatchEvent\",\"shadow_selector\",\"sampling_slider\",\"toFixed\",\"edge_gradient_slider\",\"_controllerWidget\",\"setRescaleColorMap\",\"_vtk_renwin\",\"getRenderWindow\",\"render\",\"volume\",\"getProperty\",\"setAmbient\",\"setDiffuse\",\"_setting_camera\",\"_set_camera_state\",\"setSpecular\",\"setSpecularPower\",\"_set_volume_visibility\",\"_set_slices_visibility\",\"undefined\",\"image_actor_i\",\"getMapper\",\"setISlice\",\"image_actor_j\",\"setJSlice\",\"image_actor_k\",\"setKSlice\",\"getRenderer\",\"setBackground\",\"hexToRGB\",\"_set_interpolation\",\"setExpanded\",\"scalar_opacity\",\"getScalarOpacity\",\"get\",\"nodes\",\"y\",\"modified\",\"_orientationWidget\",\"_axes\",\"_create_orientation_widget\",\"_set_axes\",\"resetCamera\",\"Object\",\"keys\",\"length\",\"_get_camera_state\",\"init_vtk_renwin\",\"vtkns\",\"FullScreenRenderWindow\",\"newInstance\",\"rootContainer\",\"shadow_el\",\"container\",\"_vtk_container\",\"plot\",\"VolumeController\",\"size\",\"rescaleColorMap\",\"_plot_volume\",\"_plot_slices\",\"setupContent\",\"setContainer\",\"el\",\"_connect_js_controls\",\"getInteractor\",\"setDesiredUpdateRate\",\"vtk_image_data\",\"getVolumes\",\"getActors\",\"querySelector\",\"controller_el\",\"addEventListener\",\"getExpanded\",\"change\",\"emit\",\"Number\",\"js_sampling_value\",\"Math\",\"abs\",\"js_edge_gradient_value\",\"source\",\"ImageSlice\",\"image_mapper_i\",\"ImageMapper\",\"image_mapper_j\",\"image_mapper_k\",\"setInputData\",\"setMapper\",\"piecewiseFunction\",\"PiecewiseFunction\",\"lookupTable\",\"getRGBTransferFunction\",\"range\",\"getInputData\",\"getPointData\",\"getScalars\",\"getRange\",\"removeAllPoints\",\"addPoint\",\"property\",\"setProperty\",\"setRGBTransferFunction\",\"setScalarOpacity\",\"renderer\",\"addActor\",\"actor\",\"Volume\",\"mapper\",\"VolumeMapper\",\"dataRange\",\"getArrays\",\"ColorTransferFunction\",\"preset\",\"vtkColorMaps\",\"getPresetByName\",\"applyColorMap\",\"onModified\",\"vtkLutToMapper\",\"sampleDistance\",\"sqrt\",\"getSpacing\",\"map\",\"v\",\"reduce\",\"a\",\"b\",\"setSampleDistance\",\"setInterpolationTypeToFastLinear\",\"setScalarOpacityUnitDistance\",\"BoundingBox\",\"getDiagonalLength\",\"getBounds\",\"max\",\"getDimensions\",\"setGradientOpacityMinimumValue\",\"setGradientOpacityMaximumValue\",\"setShade\",\"setUseGradientOpacity\",\"setGradientOpacityMinimumOpacity\",\"setGradientOpacityMaximumOpacity\",\"addVolume\",\"setInterpolationTypeToLinear\",\"setInterpolationTypeToNearest\",\"visibility\",\"setVisibility\",\"__name__\",\"VTKVolumePlot\",\"AbstractVTKPlot\",\"constructor\",\"attrs\",\"prototype\",\"default_view\",\"define\",\"Any\",\"Array\",\"Boolean\",\"Int\",\"String\",\"Struct\",\"Interpolation\",\"palette\",\"low\",\"high\",\"override\",\"height\",\"width\"],\"sources\":[\"0\"],\"mappings\":\"AAA8B,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GAC3E,IAAIC,EACJF,IACA,MAAMG,EAAcN,EAAQ,cACtBO,EAASP,EAAQ,cACvB,MAAMQ,UAA0BF,EAAYG,gBACxC,eAAAC,GACIC,MAAMD,kBACN,MAAME,KAAEA,EAAIC,SAAEA,EAAQC,OAAEA,EAAMC,SAAEA,EAAQC,cAAEA,EAAaC,QAAEA,EAAOC,QAAEA,EAAOC,QAAEA,EAAOC,OAAEA,EAAMC,SAAEA,EAAQC,eAAEA,EAAcC,eAAEA,EAAcC,eAAEA,EAAcC,QAAEA,EAAOC,QAAEA,EAAOC,QAAEA,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,KAGnB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/vtk/vtksynchronized.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/vtk/vtksynchronized.js","canonical":"models/vtk/vtksynchronized","resolution":"ESM","id":"a4e5946204","hash":"a4e5946204bd53fd5f8eed9bb6d295eca3bcf0db698a0a5ff8b845ba835a835b","source":"\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VTKSynchronizedPlot = exports.VTKSynchronizedPlotView = void 0;\nconst object_1 = require(\"@bokehjs/core/util/object\");\nconst debounce_1 = require(\"debounce\");\nconst vtklayout_1 = require(\"./vtklayout\");\nconst panel_fullscreen_renwin_sync_1 = require(\"./panel_fullscreen_renwin_sync\");\nconst util_1 = require(\"./util\");\nconst CONTEXT_NAME = \"panel\";\nclass VTKSynchronizedPlotView extends vtklayout_1.AbstractVTKView {\n    initialize() {\n        super.initialize();\n        this._renderable = false;\n        // Context initialization\n        this._synchronizer_context = util_1.vtkns.SynchronizableRenderWindow.getSynchronizerContext(`${CONTEXT_NAME}-{this.model.id}`);\n    }\n    connect_signals() {\n        super.connect_signals();\n        const { arrays, scene, one_time_reset } = this.model.properties;\n        this.on_change([arrays, scene], (0, debounce_1.debounce)(() => {\n            this._vtk_renwin.delete();\n            this._vtk_renwin = null;\n            this.invalidate_render();\n        }, 20));\n        this.on_change(one_time_reset, () => {\n            this._vtk_renwin.getRenderWindow().clearOneTimeUpdaters();\n        });\n    }\n    init_vtk_renwin() {\n        this._vtk_renwin = util_1.vtkns.FullScreenRenderWindowSynchronized.newInstance({\n            rootContainer: this.el,\n            container: this._vtk_container,\n            synchronizerContext: this._synchronizer_context,\n        });\n    }\n    remove() {\n        if (this._vtk_renwin) {\n            this._vtk_renwin.delete();\n        }\n        super.remove();\n    }\n    plot() {\n        this._vtk_renwin.getRenderWindow().clearOneTimeUpdaters();\n        const state = (0, object_1.clone)(this.model.scene);\n        this._sync_plot(state, () => this._on_scene_ready()).then(() => {\n            this._set_camera_state();\n            this._get_camera_state();\n        });\n    }\n    _on_scene_ready() {\n        this._renderable = true;\n        this._camera_callbacks.push(this._vtk_renwin\n            .getRenderer()\n            .getActiveCamera()\n            .onModified(() => this._vtk_render()));\n        if (!this._orientationWidget) {\n            this._create_orientation_widget();\n        }\n        if (!this._axes) {\n            this._set_axes();\n        }\n        this._vtk_renwin.resize();\n        this._vtk_render();\n    }\n    _sync_plot(state, onSceneReady) {\n        // Need to ensure all promises are resolved before calling this function\n        this._renderable = false;\n        this._unsubscribe_camera_cb();\n        this._synchronizer_context.setFetchArrayFunction((hash) => {\n            return Promise.resolve(this.model.arrays[hash]);\n        });\n        const renderer = this._synchronizer_context.getInstance(this.model.scene.dependencies[0].id);\n        if (renderer && !this._vtk_renwin.getRenderer()) {\n            this._vtk_renwin.getRenderWindow().addRenderer(renderer);\n        }\n        return this._vtk_renwin\n            .getRenderWindow()\n            .synchronize(state).then(onSceneReady);\n    }\n}\nexports.VTKSynchronizedPlotView = VTKSynchronizedPlotView;\nVTKSynchronizedPlotView.__name__ = \"VTKSynchronizedPlotView\";\nclass VTKSynchronizedPlot extends vtklayout_1.AbstractVTKPlot {\n    constructor(attrs) {\n        super(attrs);\n        (0, panel_fullscreen_renwin_sync_1.initialize_fullscreen_render)();\n        this.outline = util_1.vtkns.OutlineFilter.newInstance(); //use to display bounding box of a selected actor\n        const mapper = util_1.vtkns.Mapper.newInstance();\n        mapper.setInputConnection(this.outline.getOutputPort());\n        this.outline_actor = util_1.vtkns.Actor.newInstance();\n        this.outline_actor.setMapper(mapper);\n    }\n    getActors(ptr_ref) {\n        let actors = this.renderer_el.getRenderer().getActors();\n        if (ptr_ref) {\n            const context = this.renderer_el.getSynchronizerContext(CONTEXT_NAME);\n            actors = actors.filter((actor) => {\n                const id_actor = context.getInstanceId(actor);\n                return id_actor ? id_actor.slice(-16) == ptr_ref.slice(1, 17) : false;\n            });\n        }\n        return actors;\n    }\n}\nexports.VTKSynchronizedPlot = VTKSynchronizedPlot;\n_a = VTKSynchronizedPlot;\nVTKSynchronizedPlot.__name__ = \"VTKSynchronizedPlot\";\nVTKSynchronizedPlot.__module__ = \"panel.models.vtk\";\n(() => {\n    _a.prototype.default_view = VTKSynchronizedPlotView;\n    _a.define(({ Any, Array, Boolean, Bytes, Dict, String }) => ({\n        arrays: [Dict(Bytes), {}],\n        arrays_processed: [Array(String), []],\n        enable_keybindings: [Boolean, false],\n        one_time_reset: [Boolean, false],\n        rebuild: [Boolean, false],\n        scene: [Any, {}],\n    }));\n    _a.override({\n        height: 300,\n        width: 300,\n    });\n})();\n//# sourceMappingURL=vtksynchronized.js.map\n","type":"js","dependency_paths":[["debounce","/home/runner/work/panel/panel/panel/node_modules/debounce/index.js"],["./vtklayout","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/vtklayout.js"],["./panel_fullscreen_renwin_sync","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/panel_fullscreen_renwin_sync.js"],["./util","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/util.js"]],"dependency_map":[],"exported":[{"type":"named","name":"VTKSynchronizedPlotView"},{"type":"named","name":"VTKSynchronizedPlot"}],"externals":[],"shims":[]},"code":{"source":"/* models/vtk/vtksynchronized.js */ function _(require, module, exports, __esModule, __esExport) {\n    var _a;\n    __esModule();\n    const object_1 = require(\"@bokehjs/core/util/object\");\n    const debounce_1 = require(\"99a25e6992\") /* debounce */;\n    const vtklayout_1 = require(\"b06d05fa3e\") /* ./vtklayout */;\n    const panel_fullscreen_renwin_sync_1 = require(\"5e89c7b3eb\") /* ./panel_fullscreen_renwin_sync */;\n    const util_1 = require(\"df9946ff52\") /* ./util */;\n    const CONTEXT_NAME = \"panel\";\n    class VTKSynchronizedPlotView extends vtklayout_1.AbstractVTKView {\n        initialize() {\n            super.initialize();\n            this._renderable = false;\n            // Context initialization\n            this._synchronizer_context = util_1.vtkns.SynchronizableRenderWindow.getSynchronizerContext(`${CONTEXT_NAME}-{this.model.id}`);\n        }\n        connect_signals() {\n            super.connect_signals();\n            const { arrays, scene, one_time_reset } = this.model.properties;\n            this.on_change([arrays, scene], (0, debounce_1.debounce)(() => {\n                this._vtk_renwin.delete();\n                this._vtk_renwin = null;\n                this.invalidate_render();\n            }, 20));\n            this.on_change(one_time_reset, () => {\n                this._vtk_renwin.getRenderWindow().clearOneTimeUpdaters();\n            });\n        }\n        init_vtk_renwin() {\n            this._vtk_renwin = util_1.vtkns.FullScreenRenderWindowSynchronized.newInstance({\n                rootContainer: this.el,\n                container: this._vtk_container,\n                synchronizerContext: this._synchronizer_context,\n            });\n        }\n        remove() {\n            if (this._vtk_renwin) {\n                this._vtk_renwin.delete();\n            }\n            super.remove();\n        }\n        plot() {\n            this._vtk_renwin.getRenderWindow().clearOneTimeUpdaters();\n            const state = (0, object_1.clone)(this.model.scene);\n            this._sync_plot(state, () => this._on_scene_ready()).then(() => {\n                this._set_camera_state();\n                this._get_camera_state();\n            });\n        }\n        _on_scene_ready() {\n            this._renderable = true;\n            this._camera_callbacks.push(this._vtk_renwin\n                .getRenderer()\n                .getActiveCamera()\n                .onModified(() => this._vtk_render()));\n            if (!this._orientationWidget) {\n                this._create_orientation_widget();\n            }\n            if (!this._axes) {\n                this._set_axes();\n            }\n            this._vtk_renwin.resize();\n            this._vtk_render();\n        }\n        _sync_plot(state, onSceneReady) {\n            // Need to ensure all promises are resolved before calling this function\n            this._renderable = false;\n            this._unsubscribe_camera_cb();\n            this._synchronizer_context.setFetchArrayFunction((hash) => {\n                return Promise.resolve(this.model.arrays[hash]);\n            });\n            const renderer = this._synchronizer_context.getInstance(this.model.scene.dependencies[0].id);\n            if (renderer && !this._vtk_renwin.getRenderer()) {\n                this._vtk_renwin.getRenderWindow().addRenderer(renderer);\n            }\n            return this._vtk_renwin\n                .getRenderWindow()\n                .synchronize(state).then(onSceneReady);\n        }\n    }\n    exports.VTKSynchronizedPlotView = VTKSynchronizedPlotView;\n    VTKSynchronizedPlotView.__name__ = \"VTKSynchronizedPlotView\";\n    class VTKSynchronizedPlot extends vtklayout_1.AbstractVTKPlot {\n        constructor(attrs) {\n            super(attrs);\n            (0, panel_fullscreen_renwin_sync_1.initialize_fullscreen_render)();\n            this.outline = util_1.vtkns.OutlineFilter.newInstance(); //use to display bounding box of a selected actor\n            const mapper = util_1.vtkns.Mapper.newInstance();\n            mapper.setInputConnection(this.outline.getOutputPort());\n            this.outline_actor = util_1.vtkns.Actor.newInstance();\n            this.outline_actor.setMapper(mapper);\n        }\n        getActors(ptr_ref) {\n            let actors = this.renderer_el.getRenderer().getActors();\n            if (ptr_ref) {\n                const context = this.renderer_el.getSynchronizerContext(CONTEXT_NAME);\n                actors = actors.filter((actor) => {\n                    const id_actor = context.getInstanceId(actor);\n                    return id_actor ? id_actor.slice(-16) == ptr_ref.slice(1, 17) : false;\n                });\n            }\n            return actors;\n        }\n    }\n    exports.VTKSynchronizedPlot = VTKSynchronizedPlot;\n    _a = VTKSynchronizedPlot;\n    VTKSynchronizedPlot.__name__ = \"VTKSynchronizedPlot\";\n    VTKSynchronizedPlot.__module__ = \"panel.models.vtk\";\n    (() => {\n        _a.prototype.default_view = VTKSynchronizedPlotView;\n        _a.define(({ Any, Array, Boolean, Bytes, Dict, String }) => ({\n            arrays: [Dict(Bytes), {}],\n            arrays_processed: [Array(String), []],\n            enable_keybindings: [Boolean, false],\n            one_time_reset: [Boolean, false],\n            rebuild: [Boolean, false],\n            scene: [Any, {}],\n        }));\n        _a.override({\n            height: 300,\n            width: 300,\n        });\n    })();\n}\n","min_source":"function _(e,t,n,i,r){var s;i();const _=e(\"@bokehjs/core/util/object\"),o=e(\"99a25e6992\"),c=e(\"b06d05fa3e\"),a=e(\"5e89c7b3eb\"),h=e(\"df9946ff52\"),d=\"panel\";class l extends c.AbstractVTKView{initialize(){super.initialize(),this._renderable=!1,this._synchronizer_context=h.vtkns.SynchronizableRenderWindow.getSynchronizerContext(`${d}-{this.model.id}`)}connect_signals(){super.connect_signals();const{arrays:e,scene:t,one_time_reset:n}=this.model.properties;this.on_change([e,t],(0,o.debounce)((()=>{this._vtk_renwin.delete(),this._vtk_renwin=null,this.invalidate_render()}),20)),this.on_change(n,(()=>{this._vtk_renwin.getRenderWindow().clearOneTimeUpdaters()}))}init_vtk_renwin(){this._vtk_renwin=h.vtkns.FullScreenRenderWindowSynchronized.newInstance({rootContainer:this.el,container:this._vtk_container,synchronizerContext:this._synchronizer_context})}remove(){this._vtk_renwin&&this._vtk_renwin.delete(),super.remove()}plot(){this._vtk_renwin.getRenderWindow().clearOneTimeUpdaters();const e=(0,_.clone)(this.model.scene);this._sync_plot(e,(()=>this._on_scene_ready())).then((()=>{this._set_camera_state(),this._get_camera_state()}))}_on_scene_ready(){this._renderable=!0,this._camera_callbacks.push(this._vtk_renwin.getRenderer().getActiveCamera().onModified((()=>this._vtk_render()))),this._orientationWidget||this._create_orientation_widget(),this._axes||this._set_axes(),this._vtk_renwin.resize(),this._vtk_render()}_sync_plot(e,t){this._renderable=!1,this._unsubscribe_camera_cb(),this._synchronizer_context.setFetchArrayFunction((e=>Promise.resolve(this.model.arrays[e])));const n=this._synchronizer_context.getInstance(this.model.scene.dependencies[0].id);return n&&!this._vtk_renwin.getRenderer()&&this._vtk_renwin.getRenderWindow().addRenderer(n),this._vtk_renwin.getRenderWindow().synchronize(e).then(t)}}n.VTKSynchronizedPlotView=l,l.__name__=\"VTKSynchronizedPlotView\";class v extends c.AbstractVTKPlot{constructor(e){super(e),(0,a.initialize_fullscreen_render)(),this.outline=h.vtkns.OutlineFilter.newInstance();const t=h.vtkns.Mapper.newInstance();t.setInputConnection(this.outline.getOutputPort()),this.outline_actor=h.vtkns.Actor.newInstance(),this.outline_actor.setMapper(t)}getActors(e){let t=this.renderer_el.getRenderer().getActors();if(e){const n=this.renderer_el.getSynchronizerContext(d);t=t.filter((t=>{const i=n.getInstanceId(t);return!!i&&i.slice(-16)==e.slice(1,17)}))}return t}}n.VTKSynchronizedPlot=v,s=v,v.__name__=\"VTKSynchronizedPlot\",v.__module__=\"panel.models.vtk\",s.prototype.default_view=l,s.define((({Any:e,Array:t,Boolean:n,Bytes:i,Dict:r,String:s})=>({arrays:[r(i),{}],arrays_processed:[t(s),[]],enable_keybindings:[n,!1],one_time_reset:[n,!1],rebuild:[n,!1],scene:[e,{}]}))),s.override({height:300,width:300})}\n//# sourceMappingURL=vtksynchronized.min.js.map","min_map":"{\"version\":3,\"file\":\"vtksynchronized.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"_a\",\"object_1\",\"debounce_1\",\"vtklayout_1\",\"panel_fullscreen_renwin_sync_1\",\"util_1\",\"CONTEXT_NAME\",\"VTKSynchronizedPlotView\",\"AbstractVTKView\",\"initialize\",\"super\",\"this\",\"_renderable\",\"_synchronizer_context\",\"vtkns\",\"SynchronizableRenderWindow\",\"getSynchronizerContext\",\"connect_signals\",\"arrays\",\"scene\",\"one_time_reset\",\"model\",\"properties\",\"on_change\",\"debounce\",\"_vtk_renwin\",\"delete\",\"invalidate_render\",\"getRenderWindow\",\"clearOneTimeUpdaters\",\"init_vtk_renwin\",\"FullScreenRenderWindowSynchronized\",\"newInstance\",\"rootContainer\",\"el\",\"container\",\"_vtk_container\",\"synchronizerContext\",\"remove\",\"plot\",\"state\",\"clone\",\"_sync_plot\",\"_on_scene_ready\",\"then\",\"_set_camera_state\",\"_get_camera_state\",\"_camera_callbacks\",\"push\",\"getRenderer\",\"getActiveCamera\",\"onModified\",\"_vtk_render\",\"_orientationWidget\",\"_create_orientation_widget\",\"_axes\",\"_set_axes\",\"resize\",\"onSceneReady\",\"_unsubscribe_camera_cb\",\"setFetchArrayFunction\",\"hash\",\"Promise\",\"resolve\",\"renderer\",\"getInstance\",\"dependencies\",\"id\",\"addRenderer\",\"synchronize\",\"__name__\",\"VTKSynchronizedPlot\",\"AbstractVTKPlot\",\"constructor\",\"attrs\",\"initialize_fullscreen_render\",\"outline\",\"OutlineFilter\",\"mapper\",\"Mapper\",\"setInputConnection\",\"getOutputPort\",\"outline_actor\",\"Actor\",\"setMapper\",\"getActors\",\"ptr_ref\",\"actors\",\"renderer_el\",\"context\",\"filter\",\"actor\",\"id_actor\",\"getInstanceId\",\"slice\",\"__module__\",\"prototype\",\"default_view\",\"define\",\"Any\",\"Array\",\"Boolean\",\"Bytes\",\"Dict\",\"String\",\"arrays_processed\",\"enable_keybindings\",\"rebuild\",\"override\",\"height\",\"width\"],\"sources\":[\"0\"],\"mappings\":\"AAAoC,SAASA,EAAEC,EAASC,EAAQC,EAASC,EAAYC,GACjF,IAAIC,EACJF,IACA,MAAMG,EAAWN,EAAQ,6BACnBO,EAAaP,EAAQ,cACrBQ,EAAcR,EAAQ,cACtBS,EAAiCT,EAAQ,cACzCU,EAASV,EAAQ,cACjBW,EAAe,QACrB,MAAMC,UAAgCJ,EAAYK,gBAC9C,UAAAC,GACIC,MAAMD,aACNE,KAAKC,aAAc,EAEnBD,KAAKE,sBAAwBR,EAAOS,MAAMC,2BAA2BC,uBAAuB,GAAGV,oBACnG,CACA,eAAAW,GACIP,MAAMO,kBACN,MAAMC,OAAEA,EAAMC,MAAEA,EAAKC,eAAEA,GAAmBT,KAAKU,MAAMC,WACrDX,KAAKY,UAAU,CAACL,EAAQC,IAAQ,EAAIjB,EAAWsB,WAAU,KACrDb,KAAKc,YAAYC,SACjBf,KAAKc,YAAc,KACnBd,KAAKgB,mBAAmB,GACzB,KACHhB,KAAKY,UAAUH,GAAgB,KAC3BT,KAAKc,YAAYG,kBAAkBC,sBAAsB,GAEjE,CACA,eAAAC,GACInB,KAAKc,YAAcpB,EAAOS,MAAMiB,mCAAmCC,YAAY,CAC3EC,cAAetB,KAAKuB,GACpBC,UAAWxB,KAAKyB,eAChBC,oBAAqB1B,KAAKE,uBAElC,CACA,MAAAyB,GACQ3B,KAAKc,aACLd,KAAKc,YAAYC,SAErBhB,MAAM4B,QACV,CACA,IAAAC,GACI5B,KAAKc,YAAYG,kBAAkBC,uBACnC,MAAMW,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AAU9E,KAAK6E,YAAYxE,uBAAuBV,GACxDiF,EAASA,EAAOG,QAAQC,IACpB,MAAMC,EAAWH,EAAQI,cAAcF,GACvC,QAAOC,GAAWA,EAASE,OAAO,KAAOR,EAAQQ,MAAM,EAAG,GAAW,GAE7E,CACA,OAAOP,CACX,EAEJ1F,EAAQ0E,oBAAsBA,EAC9BvE,EAAKuE,EACLA,EAAoBD,SAAW,sBAC/BC,EAAoBwB,WAAa,mBAE7B/F,EAAGgG,UAAUC,aAAe1F,EAC5BP,EAAGkG,QAAO,EAAGC,MAAKC,QAAOC,UAASC,QAAOC,OAAMC,aAAa,CACxDtF,OAAQ,CAACqF,EAAKD,GAAQ,CAAC,GACvBG,iBAAkB,CAACL,EAAMI,GAAS,IAClCE,mBAAoB,CAACL,GAAS,GAC9BjF,eAAgB,CAACiF,GAAS,GAC1BM,QAAS,CAACN,GAAS,GACnBlF,MAAO,CAACgF,EAAK,CAAC,OAElBnG,EAAG4G,SAAS,CACRC,OAAQ,IACRC,MAAO,KAGnB\",\"ignoreList\":[]}"}},{"module":{"file":"/home/runner/work/panel/panel/panel/dist/lib/models/vtk/panel_fullscreen_renwin_sync.js","base":"/home/runner/work/panel/panel/panel/dist/lib","base_path":"models/vtk/panel_fullscreen_renwin_sync.js","canonical":"models/vtk/panel_fullscreen_renwin_sync","resolution":"ESM","id":"5e89c7b3eb","hash":"5e89c7b3eb54c7ef590bb9c65ba3d92847014ce567dff686657b957ce8aae33c","source":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.initialize_fullscreen_render = initialize_fullscreen_render;\nconst util_1 = require(\"./util\");\n//------------------------//\n//Custom Extended Classes\n//------------------------//\nconst DEFAULT_VALUES = {\n    containerStyle: null,\n    controlPanelStyle: null,\n    listenWindowResize: true,\n    resizeCallback: null,\n    controllerVisibility: true,\n    synchronizerContextName: \"default\",\n};\nconst STYLE_CONTROL_PANEL = {\n    position: \"absolute\",\n    left: \"25px\",\n    top: \"25px\",\n    backgroundColor: \"white\",\n    borderRadius: \"5px\",\n    listStyle: \"none\",\n    padding: \"5px 10px\",\n    margin: \"0\",\n    display: \"block\",\n    border: \"solid 1px black\",\n    maxWidth: \"calc(100vw - 70px)\",\n    maxHeight: \"calc(100vh - 60px)\",\n    overflow: \"auto\",\n};\nfunction panelFullScreenRenderWindowSynchronized(publicAPI, model) {\n    // Panel (modification) synchronizable renderWindow\n    model.renderWindow = util_1.vtkns.SynchronizableRenderWindow.newInstance({\n        synchronizerContext: model.synchronizerContext,\n    });\n    // OpenGlRenderWindow\n    model.openGLRenderWindow = util_1.vtkns.OpenGLRenderWindow.newInstance();\n    model.openGLRenderWindow.setContainer(model.container);\n    model.renderWindow.addView(model.openGLRenderWindow);\n    // Interactor\n    model.interactor = util_1.vtkns.RenderWindowInteractor.newInstance();\n    model.interactor.setInteractorStyle(util_1.vtkns.InteractorStyleTrackballCamera.newInstance());\n    model.interactor.setView(model.openGLRenderWindow);\n    model.interactor.initialize();\n    model.interactor.bindEvents(model.container);\n    publicAPI.getRenderer = () => model.renderWindow.getRenderers()[0];\n    publicAPI.removeController = () => {\n        const el = model.controlContainer;\n        if (el) {\n            el.parentNode.removeChild(el);\n        }\n    };\n    publicAPI.setControllerVisibility = (visible) => {\n        model.controllerVisibility = visible;\n        if (model.controlContainer) {\n            if (visible) {\n                model.controlContainer.style.display = \"block\";\n            }\n            else {\n                model.controlContainer.style.display = \"none\";\n            }\n        }\n    };\n    publicAPI.toggleControllerVisibility = () => {\n        publicAPI.setControllerVisibility(!model.controllerVisibility);\n    };\n    publicAPI.addController = (html) => {\n        model.controlContainer = document.createElement(\"div\");\n        (0, util_1.applyStyle)(model.controlContainer, model.controlPanelStyle || STYLE_CONTROL_PANEL);\n        model.rootContainer.appendChild(model.controlContainer);\n        model.controlContainer.innerHTML = html;\n        publicAPI.setControllerVisibility(model.controllerVisibility);\n        model.rootContainer.addEventListener(\"keypress\", (e) => {\n            if (String.fromCharCode(e.charCode) === \"c\") {\n                publicAPI.toggleControllerVisibility();\n            }\n        });\n    };\n    // Properly release GL context\n    publicAPI.delete = window.vtk.macro.chain(publicAPI.setContainer, model.openGLRenderWindow.delete, publicAPI.delete);\n    // Handle window resize\n    publicAPI.resize = () => {\n        const dims = model.container.getBoundingClientRect();\n        const devicePixelRatio = window.devicePixelRatio || 1;\n        model.openGLRenderWindow.setSize(Math.floor(dims.width * devicePixelRatio), Math.floor(dims.height * devicePixelRatio));\n        if (model.resizeCallback) {\n            model.resizeCallback(dims);\n        }\n        model.renderWindow.render();\n    };\n    publicAPI.setResizeCallback = (cb) => {\n        model.resizeCallback = cb;\n        publicAPI.resize();\n    };\n    if (model.listenWindowResize) {\n        window.addEventListener(\"resize\", publicAPI.resize);\n    }\n    publicAPI.resize();\n}\nfunction initialize_fullscreen_render() {\n    const FullScreenRenderWindowSynchronized = {\n        newInstance: window.vtk.macro.newInstance((publicAPI, model, initialValues = {}) => {\n            Object.assign(model, DEFAULT_VALUES, initialValues);\n            // Object methods\n            window.vtk.macro.obj(publicAPI, model);\n            window.vtk.macro.get(publicAPI, model, [\n                \"renderWindow\",\n                \"openGLRenderWindow\",\n                \"interactor\",\n                \"rootContainer\",\n                \"container\",\n                \"controlContainer\",\n                \"synchronizerContext\",\n            ]);\n            // Object specific methods\n            panelFullScreenRenderWindowSynchronized(publicAPI, model);\n        }),\n    };\n    util_1.vtkns.FullScreenRenderWindowSynchronized = FullScreenRenderWindowSynchronized;\n}\n//# sourceMappingURL=panel_fullscreen_renwin_sync.js.map\n","type":"js","dependency_paths":[["./util","/home/runner/work/panel/panel/panel/dist/lib/models/vtk/util.js"]],"dependency_map":[],"exported":[{"type":"named","name":"initialize_fullscreen_render"}],"externals":[],"shims":[]},"code":{"source":"/* models/vtk/panel_fullscreen_renwin_sync.js */ function _(require, module, exports, __esModule, __esExport) {\n    __esModule();\n    exports.initialize_fullscreen_render = initialize_fullscreen_render;\n    const util_1 = require(\"df9946ff52\") /* ./util */;\n    //------------------------//\n    //Custom Extended Classes\n    //------------------------//\n    const DEFAULT_VALUES = {\n        containerStyle: null,\n        controlPanelStyle: null,\n        listenWindowResize: true,\n        resizeCallback: null,\n        controllerVisibility: true,\n        synchronizerContextName: \"default\",\n    };\n    const STYLE_CONTROL_PANEL = {\n        position: \"absolute\",\n        left: \"25px\",\n        top: \"25px\",\n        backgroundColor: \"white\",\n        borderRadius: \"5px\",\n        listStyle: \"none\",\n        padding: \"5px 10px\",\n        margin: \"0\",\n        display: \"block\",\n        border: \"solid 1px black\",\n        maxWidth: \"calc(100vw - 70px)\",\n        maxHeight: \"calc(100vh - 60px)\",\n        overflow: \"auto\",\n    };\n    function panelFullScreenRenderWindowSynchronized(publicAPI, model) {\n        // Panel (modification) synchronizable renderWindow\n        model.renderWindow = util_1.vtkns.SynchronizableRenderWindow.newInstance({\n            synchronizerContext: model.synchronizerContext,\n        });\n        // OpenGlRenderWindow\n        model.openGLRenderWindow = util_1.vtkns.OpenGLRenderWindow.newInstance();\n        model.openGLRenderWindow.setContainer(model.container);\n        model.renderWindow.addView(model.openGLRenderWindow);\n        // Interactor\n        model.interactor = util_1.vtkns.RenderWindowInteractor.newInstance();\n        model.interactor.setInteractorStyle(util_1.vtkns.InteractorStyleTrackballCamera.newInstance());\n        model.interactor.setView(model.openGLRenderWindow);\n        model.interactor.initialize();\n        model.interactor.bindEvents(model.container);\n        publicAPI.getRenderer = () => model.renderWindow.getRenderers()[0];\n        publicAPI.removeController = () => {\n            const el = model.controlContainer;\n            if (el) {\n                el.parentNode.removeChild(el);\n            }\n        };\n        publicAPI.setControllerVisibility = (visible) => {\n            model.controllerVisibility = visible;\n            if (model.controlContainer) {\n                if (visible) {\n                    model.controlContainer.style.display = \"block\";\n                }\n                else {\n                    model.controlContainer.style.display = \"none\";\n                }\n            }\n        };\n        publicAPI.toggleControllerVisibility = () => {\n            publicAPI.setControllerVisibility(!model.controllerVisibility);\n        };\n        publicAPI.addController = (html) => {\n            model.controlContainer = document.createElement(\"div\");\n            (0, util_1.applyStyle)(model.controlContainer, model.controlPanelStyle || STYLE_CONTROL_PANEL);\n            model.rootContainer.appendChild(model.controlContainer);\n            model.controlContainer.innerHTML = html;\n            publicAPI.setControllerVisibility(model.controllerVisibility);\n            model.rootContainer.addEventListener(\"keypress\", (e) => {\n                if (String.fromCharCode(e.charCode) === \"c\") {\n                    publicAPI.toggleControllerVisibility();\n                }\n            });\n        };\n        // Properly release GL context\n        publicAPI.delete = window.vtk.macro.chain(publicAPI.setContainer, model.openGLRenderWindow.delete, publicAPI.delete);\n        // Handle window resize\n        publicAPI.resize = () => {\n            const dims = model.container.getBoundingClientRect();\n            const devicePixelRatio = window.devicePixelRatio || 1;\n            model.openGLRenderWindow.setSize(Math.floor(dims.width * devicePixelRatio), Math.floor(dims.height * devicePixelRatio));\n            if (model.resizeCallback) {\n                model.resizeCallback(dims);\n            }\n            model.renderWindow.render();\n        };\n        publicAPI.setResizeCallback = (cb) => {\n            model.resizeCallback = cb;\n            publicAPI.resize();\n        };\n        if (model.listenWindowResize) {\n            window.addEventListener(\"resize\", publicAPI.resize);\n        }\n        publicAPI.resize();\n    }\n    function initialize_fullscreen_render() {\n        const FullScreenRenderWindowSynchronized = {\n            newInstance: window.vtk.macro.newInstance((publicAPI, model, initialValues = {}) => {\n                Object.assign(model, DEFAULT_VALUES, initialValues);\n                // Object methods\n                window.vtk.macro.obj(publicAPI, model);\n                window.vtk.macro.get(publicAPI, model, [\n                    \"renderWindow\",\n                    \"openGLRenderWindow\",\n                    \"interactor\",\n                    \"rootContainer\",\n                    \"container\",\n                    \"controlContainer\",\n                    \"synchronizerContext\",\n                ]);\n                // Object specific methods\n                panelFullScreenRenderWindowSynchronized(publicAPI, model);\n            }),\n        };\n        util_1.vtkns.FullScreenRenderWindowSynchronized = FullScreenRenderWindowSynchronized;\n    }\n}\n","min_source":"function _(e,n,o,t,r){t(),o.initialize_fullscreen_render=function(){const e={newInstance:window.vtk.macro.newInstance(((e,n,o={})=>{Object.assign(n,l,o),window.vtk.macro.obj(e,n),window.vtk.macro.get(e,n,[\"renderWindow\",\"openGLRenderWindow\",\"interactor\",\"rootContainer\",\"container\",\"controlContainer\",\"synchronizerContext\"]),function(e,n){n.renderWindow=i.vtkns.SynchronizableRenderWindow.newInstance({synchronizerContext:n.synchronizerContext}),n.openGLRenderWindow=i.vtkns.OpenGLRenderWindow.newInstance(),n.openGLRenderWindow.setContainer(n.container),n.renderWindow.addView(n.openGLRenderWindow),n.interactor=i.vtkns.RenderWindowInteractor.newInstance(),n.interactor.setInteractorStyle(i.vtkns.InteractorStyleTrackballCamera.newInstance()),n.interactor.setView(n.openGLRenderWindow),n.interactor.initialize(),n.interactor.bindEvents(n.container),e.getRenderer=()=>n.renderWindow.getRenderers()[0],e.removeController=()=>{const e=n.controlContainer;e&&e.parentNode.removeChild(e)},e.setControllerVisibility=e=>{n.controllerVisibility=e,n.controlContainer&&(n.controlContainer.style.display=e?\"block\":\"none\")},e.toggleControllerVisibility=()=>{e.setControllerVisibility(!n.controllerVisibility)},e.addController=o=>{n.controlContainer=document.createElement(\"div\"),(0,i.applyStyle)(n.controlContainer,n.controlPanelStyle||a),n.rootContainer.appendChild(n.controlContainer),n.controlContainer.innerHTML=o,e.setControllerVisibility(n.controllerVisibility),n.rootContainer.addEventListener(\"keypress\",(n=>{\"c\"===String.fromCharCode(n.charCode)&&e.toggleControllerVisibility()}))},e.delete=window.vtk.macro.chain(e.setContainer,n.openGLRenderWindow.delete,e.delete),e.resize=()=>{const e=n.container.getBoundingClientRect(),o=window.devicePixelRatio||1;n.openGLRenderWindow.setSize(Math.floor(e.width*o),Math.floor(e.height*o)),n.resizeCallback&&n.resizeCallback(e),n.renderWindow.render()},e.setResizeCallback=o=>{n.resizeCallback=o,e.resize()},n.listenWindowResize&&window.addEventListener(\"resize\",e.resize);e.resize()}(e,n)}))};i.vtkns.FullScreenRenderWindowSynchronized=e};const i=e(\"df9946ff52\"),l={containerStyle:null,controlPanelStyle:null,listenWindowResize:!0,resizeCallback:null,controllerVisibility:!0,synchronizerContextName:\"default\"},a={position:\"absolute\",left:\"25px\",top:\"25px\",backgroundColor:\"white\",borderRadius:\"5px\",listStyle:\"none\",padding:\"5px 10px\",margin:\"0\",display:\"block\",border:\"solid 1px black\",maxWidth:\"calc(100vw - 70px)\",maxHeight:\"calc(100vh - 60px)\",overflow:\"auto\"}}\n//# sourceMappingURL=panel_fullscreen_renwin_sync.min.js.map","min_map":"{\"version\":3,\"file\":\"panel_fullscreen_renwin_sync.min.js\",\"names\":[\"_\",\"require\",\"module\",\"exports\",\"__esModule\",\"__esExport\",\"initialize_fullscreen_render\",\"FullScreenRenderWindowSynchronized\",\"newInstance\",\"window\",\"vtk\",\"macro\",\"publicAPI\",\"model\",\"initialValues\",\"Object\",\"assign\",\"DEFAULT_VALUES\",\"obj\",\"get\",\"renderWindow\",\"util_1\",\"vtkns\",\"SynchronizableRenderWindow\",\"synchronizerContext\",\"openGLRenderWindow\",\"OpenGLRenderWindow\",\"setContainer\",\"container\",\"addView\",\"interactor\",\"RenderWindowInteractor\",\"setInteractorStyle\",\"InteractorStyleTrackballCamera\",\"setView\",\"initialize\",\"bindEvents\",\"getRenderer\",\"getRenderers\",\"removeController\",\"el\",\"controlContainer\",\"parentNode\",\"removeChild\",\"setControllerVisibility\",\"visible\",\"controllerVisibility\",\"style\",\"display\",\"toggleControllerVisibility\",\"addController\",\"html\",\"document\",\"createElement\",\"applyStyle\",\"controlPanelStyle\",\"STYLE_CONTROL_PANEL\",\"rootContainer\",\"appendChild\",\"innerHTML\",\"addEventListener\",\"e\",\"String\",\"fromCharCode\",\"charCode\",\"delete\",\"chain\",\"resize\",\"dims\",\"getBoundingClientRect\",\"devicePixelRatio\",\"setSize\",\"Math\",\"floor\",\"width\",\"height\",\"resizeCallback\",\"render\",\"setResizeCallback\",\"cb\",\"listenWindowResize\",\"panelFullScreenRenderWindowSynchronized\",\"containerStyle\",\"synchronizerContextName\",\"position\",\"left\",\"top\",\"backgroundColor\",\"borderRadius\",\"listStyle\",\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