feffery_utils_components 0.2.0-rc24 → 0.2.0-rc25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/DESCRIPTION +1 -1
  2. package/MANIFEST.in +1 -1
  3. package/Project.toml +1 -1
  4. package/README.md +1 -1
  5. package/feffery_utils_components/FefferyDiv.py +12 -3
  6. package/feffery_utils_components/FefferyMotion.py +9 -3
  7. package/feffery_utils_components/__init__.py +23 -1
  8. package/feffery_utils_components/async-feffery_animated_3d_background_p5.js +3 -1
  9. package/feffery_utils_components/async-feffery_animated_3d_background_p5.js.map +1 -0
  10. package/feffery_utils_components/async-feffery_animated_3d_background_three.js +3 -1
  11. package/feffery_utils_components/async-feffery_animated_3d_background_three.js.map +1 -0
  12. package/feffery_utils_components/async-feffery_animated_image.js +4 -1
  13. package/feffery_utils_components/async-feffery_animated_image.js.map +1 -0
  14. package/feffery_utils_components/async-feffery_aplayer.js +3 -1
  15. package/feffery_utils_components/async-feffery_aplayer.js.map +1 -0
  16. package/feffery_utils_components/async-feffery_auto_animate.js +3 -1
  17. package/feffery_utils_components/async-feffery_auto_animate.js.map +1 -0
  18. package/feffery_utils_components/async-feffery_auto_fit.js +3 -1
  19. package/feffery_utils_components/async-feffery_auto_fit.js.map +1 -0
  20. package/feffery_utils_components/async-feffery_burger.js +3 -1
  21. package/feffery_utils_components/async-feffery_burger.js.map +1 -0
  22. package/feffery_utils_components/async-feffery_captcha.js +3 -1
  23. package/feffery_utils_components/async-feffery_captcha.js.map +1 -0
  24. package/feffery_utils_components/async-feffery_color_pickers.js +4 -1
  25. package/feffery_utils_components/async-feffery_color_pickers.js.map +1 -0
  26. package/feffery_utils_components/async-feffery_dom2image.js +4 -4
  27. package/feffery_utils_components/async-feffery_dom2image.js.map +1 -0
  28. package/feffery_utils_components/async-feffery_dplayer.js +4 -1
  29. package/feffery_utils_components/async-feffery_dplayer.js.map +1 -0
  30. package/feffery_utils_components/async-feffery_emoji_picker.js +4 -1
  31. package/feffery_utils_components/async-feffery_emoji_picker.js.map +1 -0
  32. package/feffery_utils_components/async-feffery_excel_preview.js +4 -1
  33. package/feffery_utils_components/async-feffery_excel_preview.js.map +1 -0
  34. package/feffery_utils_components/async-feffery_extra_spinner.js +4 -1
  35. package/feffery_utils_components/async-feffery_extra_spinner.js.map +1 -0
  36. package/feffery_utils_components/async-feffery_fancy_button.js +3 -1
  37. package/feffery_utils_components/async-feffery_fancy_button.js.map +1 -0
  38. package/feffery_utils_components/async-feffery_grid.js +3 -1
  39. package/feffery_utils_components/async-feffery_grid.js.map +1 -0
  40. package/feffery_utils_components/async-feffery_http_requests.js +4 -1
  41. package/feffery_utils_components/async-feffery_http_requests.js.map +1 -0
  42. package/feffery_utils_components/async-feffery_image_cropper.js +4 -1
  43. package/feffery_utils_components/async-feffery_image_cropper.js.map +1 -0
  44. package/feffery_utils_components/async-feffery_json_viewer.js +3 -1
  45. package/feffery_utils_components/async-feffery_json_viewer.js.map +1 -0
  46. package/feffery_utils_components/async-feffery_local_large_storage.js +4 -1
  47. package/feffery_utils_components/async-feffery_local_large_storage.js.map +1 -0
  48. package/feffery_utils_components/async-feffery_markdown_editor.js +3 -3
  49. package/feffery_utils_components/async-feffery_markdown_editor.js.map +1 -0
  50. package/feffery_utils_components/async-feffery_motion.js +3 -1
  51. package/feffery_utils_components/async-feffery_motion.js.map +1 -0
  52. package/feffery_utils_components/async-feffery_music_player.js +4 -1
  53. package/feffery_utils_components/async-feffery_music_player.js.map +1 -0
  54. package/feffery_utils_components/async-feffery_photo_sphere_viewer.js +4 -1
  55. package/feffery_utils_components/async-feffery_photo_sphere_viewer.js.map +1 -0
  56. package/feffery_utils_components/async-feffery_resizable.js +3 -1
  57. package/feffery_utils_components/async-feffery_resizable.js.map +1 -0
  58. package/feffery_utils_components/async-feffery_rich_text_editor.js +4 -4
  59. package/feffery_utils_components/async-feffery_rich_text_editor.js.map +1 -0
  60. package/feffery_utils_components/async-feffery_rnd.js +3 -1
  61. package/feffery_utils_components/async-feffery_rnd.js.map +1 -0
  62. package/feffery_utils_components/async-feffery_seamless_scroll.js +3 -1
  63. package/feffery_utils_components/async-feffery_seamless_scroll.js.map +1 -0
  64. package/feffery_utils_components/async-feffery_shortcut_panel.js +32 -29
  65. package/feffery_utils_components/async-feffery_shortcut_panel.js.map +1 -0
  66. package/feffery_utils_components/async-feffery_slider_captcha.js +4 -1
  67. package/feffery_utils_components/async-feffery_slider_captcha.js.map +1 -0
  68. package/feffery_utils_components/async-feffery_sortable.js +3 -1
  69. package/feffery_utils_components/async-feffery_sortable.js.map +1 -0
  70. package/feffery_utils_components/async-feffery_vditor.js +4 -1
  71. package/feffery_utils_components/async-feffery_vditor.js.map +1 -0
  72. package/feffery_utils_components/async-feffery_word_preview.js +4 -1
  73. package/feffery_utils_components/async-feffery_word_preview.js.map +1 -0
  74. package/feffery_utils_components/async-fuc-shared.js +4 -135
  75. package/feffery_utils_components/async-fuc-shared.js.map +1 -0
  76. package/feffery_utils_components/feffery_utils_components.min.js +27 -30
  77. package/feffery_utils_components/feffery_utils_components.min.js.map +1 -0
  78. package/feffery_utils_components/metadata.json +85 -0
  79. package/feffery_utils_components/package-info.json +1 -1
  80. package/package.json +1 -1
  81. package/src/lib/components/animations/FefferyMotion.react.js +12 -0
  82. package/src/lib/components/container/FefferyDiv.react.js +115 -55
  83. package/src/lib/fragments/animations/FefferyMotion.react.js +30 -23
  84. package/tests/MotionTest/app.py +50 -0
  85. package/usage.py +25 -25
  86. package/webpack.config.js +3 -11
@@ -1,10 +1,11 @@
1
- (window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[29],{524:function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_components_other_FefferyShortcutPanel_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(235),lodash__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(25),lodash__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__),ninja_keys__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(914),_components_styleControl_FefferyStyle_react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(92);function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var i,n=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)),n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(i),!0).forEach(function(e){_defineProperty(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function _defineProperty(e,t,i){(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0===i)return("string"===t?String:Number)(e);i=i.call(e,t||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}var footerHtmlEn=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{class:"modal-footer",slot:"footer"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{class:"help"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"ninja-examplekey esc"},"enter"),"to select"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"help"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ninja-examplekey",viewBox:"0 0 24 24"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ninja-examplekey",viewBox:"0 0 24 24"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"})),"to navigate"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"help"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"ninja-examplekey esc"},"esc"),"to close"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"help"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"ninja-examplekey esc"},"backspace"),"move to parent")),footerHtmlZh=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{className:"modal-footer",slot:"footer"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"help"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"ninja-examplekey esc"},"enter"),"选择"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"help"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ninja-examplekey",viewBox:"0 0 24 24"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ninja-examplekey",viewBox:"0 0 24 24"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"})),"上下切换"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"help"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"ninja-examplekey esc"},"esc"),"关闭面板"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"help"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"ninja-examplekey esc"},"backspace"),"回到上一级")),locale2footer=new Map([["en",footerHtmlEn],["zh",footerHtmlZh]]),locale2placeholder=new Map([["en","Type a command or search..."],["zh","输入指令或进行搜索..."]]),FefferyShortcutPanel=function FefferyShortcutPanel(props){var id=props.id,data=props.data,placeholder=props.placeholder,openHotkey=props.openHotkey,theme=props.theme,locale=props.locale,open=props.open,close=props.close,panelStyles=props.panelStyles,setProps=props.setProps,loading_state=props.loading_state,data=data.map(function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(e.handler)||e.hasOwnProperty("children")?e:_objectSpread(_objectSpread({},e),{handler:function(){setProps({triggeredHotkey:{id:e.id,timestamp:Date.parse(new Date)}})}})}),ninjaKeys=Object(react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);return Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function(){ninjaKeys.current&&ninjaKeys.current.addEventListener("change",function(e){setProps({searchValue:e.detail.search})})},[]),Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function(){ninjaKeys.current&&(ninjaKeys.current.data=data.map(function(item){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(item.handler)?_objectSpread(_objectSpread({},item),{handler:eval(item.handler)}):item}))},[data]),Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function(){ninjaKeys.current&&open&&(ninjaKeys.current.open(),setProps({open:!1}))},[open]),Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function(){ninjaKeys.current&&close&&(ninjaKeys.current.close(),setProps({close:!1}))},[close]),panelStyles=_objectSpread(_objectSpread({},{width:"640px",overflowBackground:"rgba(255, 255, 255, 0.5)",textColor:"rgb(60, 65, 73)",fontSize:"16px",top:"20%",accentColor:"rgb(110, 94, 210)",secondaryBackgroundColor:"rgb(239, 241, 244)",secondaryTextColor:"rgb(107, 111, 118)",selectedBackground:"rgb(248, 249, 251)",actionsHeight:"300px",groupTextColor:"rgb(144, 149, 157)",zIndex:1}),panelStyles),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_styleControl_FefferyStyle_react__WEBPACK_IMPORTED_MODULE_4__.a,{rawStyle:"\nninja-keys {\n --ninja-width: ".concat(panelStyles.width,";\n --ninja-overflow-background: ").concat(panelStyles.overflowBackground,";\n --ninja-text-color: ").concat(panelStyles.textColor,";\n --ninja-font-size: ").concat(panelStyles.fontSize,";\n --ninja-top: ").concat(panelStyles.top,";\n --ninja-accent-color: ").concat(panelStyles.accentColor,";\n --ninja-secondary-background-color: ").concat(panelStyles.secondaryBackgroundColor,";\n --ninja-secondary-text-color: ").concat(panelStyles.secondaryTextColor,";\n --ninja-selected-background: ").concat(panelStyles.selectedBackground,";\n --ninja-actions-height: ").concat(panelStyles.actionsHeight,";\n --ninja-group-text-color: ").concat(panelStyles.groupTextColor,";\n --ninja-z-index: ").concat(panelStyles.zIndex,";\n}\n")}),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ninja-keys",{id:id,class:theme,ref:ninjaKeys,placeholder:placeholder||locale2placeholder.get(locale),openHotkey:openHotkey,hotKeysJoinedView:!0,hideBreadcrumbs:!0,"data-dash-is-loading":loading_state&&loading_state.is_loading||void 0},locale2footer.get(locale)))};__webpack_exports__.default=FefferyShortcutPanel,FefferyShortcutPanel.defaultProps=_components_other_FefferyShortcutPanel_react__WEBPACK_IMPORTED_MODULE_1__.b,FefferyShortcutPanel.propTypes=_components_other_FefferyShortcutPanel_react__WEBPACK_IMPORTED_MODULE_1__.c},914:function(T,R,e){let B=window,L=B.ShadowRoot&&(void 0===B.ShadyCSS||B.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,I=Symbol(),K=new WeakMap;class N{constructor(e,t,i){if(this._$cssResult$=!0,i!==I)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;var t,i=this.t;return L&&void 0===e&&(t=void 0!==i&&1===i.length,void 0===(e=t?K.get(i):e))&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t)&&K.set(i,e),e}toString(){return this.cssText}}let z=(n,...e)=>{e=1===n.length?n[0]:e.reduce((e,t,i)=>e+(()=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})()+n[i+1],n[0]);return new N(e,n,I)},W=L?e=>e:t=>{if(!(t instanceof CSSStyleSheet))return t;{let e="";for(var i of t.cssRules)e+=i.cssText;return t=e,new N("string"==typeof t?t:t+"",void 0,I)}},V,q=window,F=q.trustedTypes,J=F?F.emptyScript:"",G=q.reactiveElementPolyfillSupport,Z={toAttribute(e,t){switch(t){case Boolean:e=e?J:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},Q=(e,t)=>t!==e&&(t==t||e==e),X={attribute:!0,type:String,converter:Z,reflect:!1,hasChanged:Q};class t extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!=(t=this.h)?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let i=[];return this.elementProperties.forEach((e,t)=>{e=this._$Ep(t,e);void 0!==e&&(this._$Ev.set(e,t),i.push(e))}),i}static createProperty(e,t=X){var i;t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e)||(i="symbol"==typeof e?Symbol():"__"+e,void 0!==(i=this.getPropertyDescriptor(e,i,t))&&Object.defineProperty(this.prototype,e,i))}static getPropertyDescriptor(i,n,s){return{get(){return this[n]},set(e){var t=this[i];this[n]=e,this.requestUpdate(i,t,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||X}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(var i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){var t=[];if(Array.isArray(e)){var i=new Set(e.flat(1/0).reverse());for(let e of i)t.unshift(W(e))}else void 0!==e&&t.push(W(e));return t}static _$Ep(e,t){t=t.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null!=(e=this.constructor.h)&&e.forEach(e=>e(this))}addController(e){var t;(null!=(t=this._$ES)?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&null!=(t=e.hostConnected)&&t.call(e)}removeController(e){var t;null!=(t=this._$ES)&&t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var n,e,t=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return n=t,e=this.constructor.elementStyles,L?n.adoptedStyleSheets=e.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):e.forEach(e=>{var t=document.createElement("style"),i=B.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=e.cssText,n.appendChild(t)}),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=X){var n,s=this.constructor._$Ep(e,i);void 0!==s&&!0===i.reflect&&(n=(void 0!==(null==(n=i.converter)?void 0:n.toAttribute)?i.converter:Z).toAttribute(t,i.type),this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null)}_$AK(e,i){var n=this.constructor,s=n._$Ev.get(e);if(void 0!==s&&this._$El!==s){let e=n.getPropertyOptions(s),t="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null==(n=e.converter)?void 0:n.fromAttribute)?e.converter:Z;this._$El=s,this[s]=t.fromAttribute(i,e.type),this._$El=null}}requestUpdate(e,t,i){let n=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||Q)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}var e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach((e,t)=>this[t]=e),this._$Ei=void 0);let e=!1;var i=this._$AL;try{(e=this.shouldUpdate(i))?(this.willUpdate(i),null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}}willUpdate(e){}_$AE(e){var t;null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}t.finalized=!0,t.elementProperties=new Map,t.elementStyles=[],t.shadowRootOptions={mode:"open"},null!=G&&G({ReactiveElement:t}),(null!=(V=q.reactiveElementVersions)?V:q.reactiveElementVersions=[]).push("1.6.3");let Y=window,c=Y.trustedTypes,ee=c?c.createPolicy("lit-html",{createHTML:e=>e}):void 0,p=`lit$${(Math.random()+"").slice(9)}$`,te="?"+p,ie=`<${te}>`,l=document,h=()=>l.createComment(""),d=e=>null===e||"object"!=typeof e&&"function"!=typeof e,ne=Array.isArray,se=e=>ne(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]),u=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,re=/-->/g,oe=/>/g,_=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),ae=/'/g,le=/"/g,ce=/^(?:script|style|textarea|title)$/i,he=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),r=he(1),f=(he(2),Symbol.for("lit-noChange")),v=Symbol.for("lit-nothing"),de=new WeakMap,y=l.createTreeWalker(l,129,null,!1);function pe(e,t){if(Array.isArray(e)&&e.hasOwnProperty("raw"))return void 0!==ee?ee.createHTML(t):t;throw Error("invalid template strings array")}let ue=(o,e)=>{let t=o.length-1,a=[],l,c=2===e?"<svg>":"",h=u;for(let r=0;r<t;r++){let e=o[r],t,i,n=-1,s=0;for(;s<e.length&&(h.lastIndex=s,null!==(i=h.exec(e)));)s=h.lastIndex,h===u?"!--"===i[1]?h=re:void 0!==i[1]?h=oe:void 0!==i[2]?(ce.test(i[2])&&(l=RegExp("</"+i[2],"g")),h=_):void 0!==i[3]&&(h=_):h===_?">"===i[0]?(h=null!=l?l:u,n=-1):void 0===i[1]?n=-2:(n=h.lastIndex-i[2].length,t=i[1],h=void 0===i[3]?_:'"'===i[3]?le:ae):h===le||h===ae?h=_:h===re||h===oe?h=u:(h=_,l=void 0);var d=h===_&&o[r+1].startsWith("/>")?" ":"";c+=h===u?e+ie:0<=n?(a.push(t),e.slice(0,n)+"$lit$"+e.slice(n)+p+d):e+p+(-2===n?(a.push(void 0),r):d)}return[pe(o,c+(o[t]||"<?>")+(2===e?"</svg>":"")),a]};class _e{constructor({strings:e,_$litType$:t},i){var n;this.parts=[];let s=0,r=0;var o=e.length-1,a=this.parts,[e,l]=ue(e,t);if(this.el=_e.createElement(e,i),y.currentNode=this.el.content,2===t){let e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=y.nextNode())&&a.length<o;){if(1===n.nodeType){if(n.hasAttributes()){let t=[];for(let e of n.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(p)){let i=l[r++];if(t.push(e),void 0!==i){let e=n.getAttribute(i.toLowerCase()+"$lit$").split(p),t=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:t[2],strings:e,ctor:"."===t[1]?me:"?"===t[1]?$e:"@"===t[1]?be:ye})}else a.push({type:6,index:s})}for(let e of t)n.removeAttribute(e)}if(ce.test(n.tagName)){let t=n.textContent.split(p),i=t.length-1;if(0<i){n.textContent=c?c.emptyScript:"";for(let e=0;e<i;e++)n.append(t[e],h()),y.nextNode(),a.push({type:2,index:++s});n.append(t[i],h())}}}else if(8===n.nodeType)if(n.data===te)a.push({type:2,index:s});else{let e=-1;for(;-1!==(e=n.data.indexOf(p,e+1));)a.push({type:7,index:s}),e+=p.length-1}s++}}static createElement(e,t){var i=l.createElement("template");return i.innerHTML=e,i}}function m(t,i,n=t,s){var r;if(i!==f){let e=void 0!==s?null==(o=n._$Co)?void 0:o[s]:n._$Cl;var o=d(i)?void 0:i._$litDirective$;(null==e?void 0:e.constructor)!==o&&(null!=(r=null==e?void 0:e._$AO)&&r.call(e,!1),void 0===o?e=void 0:(e=new o(t))._$AT(t,n,s),void 0!==s?(null!=(r=n._$Co)?r:n._$Co=[])[s]=e:n._$Cl=e),void 0!==e&&(i=m(t,e._$AS(t,i.values),e,s))}return i}class fe{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var{el:{content:e},parts:i}=this._$AD,n=(null!=(n=null==t?void 0:t.creationScope)?n:l).importNode(e,!0);y.currentNode=n;let s=y.nextNode(),r=0,o=0,a=i[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new ve(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new Ee(s,this,t)),this._$AV.push(e),a=i[++o]}r!==(null==a?void 0:a.index)&&(s=y.nextNode(),r++)}return y.currentNode=l,n}v(e){let t=0;for(var i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class ve{constructor(e,t,i,n){this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cp=null==(e=null==n?void 0:n.isConnected)||e}get _$AU(){var e;return null!=(e=null==(e=this._$AM)?void 0:e._$AU)?e:this._$Cp}get parentNode(){let e=this._$AA.parentNode;var t=this._$AM;return e=void 0!==t&&11===(null==e?void 0:e.nodeType)?t.parentNode:e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=m(this,e,t),d(e)?e===v||null==e||""===e?(this._$AH!==v&&this._$AR(),this._$AH=v):e!==this._$AH&&e!==f&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):se(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==v&&d(this._$AH)?this._$AA.nextSibling.data=e:this.$(l.createTextNode(e)),this._$AH=e}g(e){var t,{values:i,_$litType$:n}=e,n="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=_e.createElement(pe(n.h,n.h[0]),this.options)),n);if((null==(t=this._$AH)?void 0:t._$AD)===n)this._$AH.v(i);else{let e=new fe(n,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=de.get(e.strings);return void 0===t&&de.set(e.strings,t=new _e(e)),t}T(e){ne(this._$AH)||(this._$AH=[],this._$AR());var t,i=this._$AH;let n,s=0;for(t of e)s===i.length?i.push(n=new ve(this.k(h()),this.k(h()),this,this.options)):n=i[s],n._$AI(t),s++;s<i.length&&(this._$AR(n&&n._$AB.nextSibling,s),i.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null!=(i=this._$AP)&&i.call(this,!1,!0,e);t&&t!==this._$AB;){let e=t.nextSibling;t.remove(),t=e}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null!=(t=this._$AP))&&t.call(this,e)}}class ye{constructor(e,t,i,n,s){this.type=1,this._$AH=v,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=s,2<i.length||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=v}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(n,s=this,r,e){var o=this.strings;let a=!1;if(void 0===o)n=m(this,n,s,0),(a=!d(n)||n!==this._$AH&&n!==f)&&(this._$AH=n);else{let e=n,t,i;for(n=o[0],t=0;t<o.length-1;t++)(i=m(this,e[r+t],s,t))===f&&(i=this._$AH[t]),a=a||!d(i)||i!==this._$AH[t],i===v?n=v:n!==v&&(n+=(null!=i?i:"")+o[t+1]),this._$AH[t]=i}a&&!e&&this.j(n)}j(e){e===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class me extends ye{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===v?void 0:e}}let ge=c?c.emptyScript:"";class $e extends ye{constructor(){super(...arguments),this.type=4}j(e){e&&e!==v?this.element.setAttribute(this.name,ge):this.element.removeAttribute(this.name)}}class be extends ye{constructor(e,t,i,n,s){super(e,t,i,n,s),this.type=5}_$AI(e,t=this){var i,n;(e=null!=(t=m(this,e,t,0))?t:v)!==f&&(t=this._$AH,i=e===v&&t!==v||e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive,n=e!==v&&(t===v||i),i&&this.element.removeEventListener(this.name,this,t),n&&this.element.addEventListener(this.name,this,e),this._$AH=e)}handleEvent(e){var t;"function"==typeof this._$AH?this._$AH.call(null!=(t=null==(t=this.options)?void 0:t.host)?t:this.element,e):this._$AH.handleEvent(e)}}class Ee{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){m(this,e)}}var i={O:"$lit$",P:p,A:te,C:1,M:ue,L:fe,R:se,D:m,I:ve,V:ye,H:$e,N:be,U:me,F:Ee},n=Y.litHtmlPolyfillSupport;null!=n&&n(_e,ve),(null!=(n=Y.litHtmlVersions)?n:Y.litHtmlVersions=[]).push("2.8.0");class s extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t=super.createRenderRoot();return null==(e=this.renderOptions).renderBefore&&(e.renderBefore=t.firstChild),t}update(e){var t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var n,s=null!=(s=null==i?void 0:i.renderBefore)?s:t;let r=s._$litPart$;if(void 0===r){let e=null!=(n=null==i?void 0:i.renderBefore)?n:null;s._$litPart$=r=new ve(t.insertBefore(h(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null!=(e=this._$Do)&&e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null!=(e=this._$Do)&&e.setConnected(!1)}render(){return f}}s.finalized=!0,s._$litElement$=!0,null!=(n=globalThis.litElementHydrateSupport)&&n.call(globalThis,{LitElement:s});var n=globalThis.litElementPolyfillSupport;null!=n&&n({LitElement:s}),(null!=(n=globalThis.litElementVersions)?n:globalThis.litElementVersions=[]).push("3.3.3");let Ae=s=>e=>{var t,i,n;return"function"!=typeof e?(t=s,{kind:n,elements:i}=e,{kind:n,elements:i,finisher(e){customElements.define(t,e)}}):(n=e,customElements.define(s,n),n)};function o(s){return(e,t)=>{return void 0!==t?void e.constructor.createProperty(t,s):(i=s,"method"!==(n=e).kind||!n.descriptor||"value"in n.descriptor?{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:n.key,initializer(){"function"==typeof n.initializer&&(this[n.key]=n.initializer.call(this))},finisher(e){e.createProperty(n.key,i)}}:{...n,finisher(e){e.createProperty(n.key,i)}});var i,n}}function a(e){return o({...e,state:!0})}null!=(n=window.HTMLSlotElement)&&n.prototype.assignedElements;let we=2,ke=t=>(...e)=>({_$litDirective$:t,values:e});class xe{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}let Pe=i.I,je=e=>void 0===e.strings,Oe=()=>document.createComment(""),Se=(n,e,s)=>{var r,o=n._$AA.parentNode,a=void 0===e?n._$AB:e._$AA;if(void 0===s){let e=o.insertBefore(Oe(),a),t=o.insertBefore(Oe(),a);s=new Pe(e,t,n,n.options)}else{let e=s._$AB.nextSibling,t=s._$AM,i=t!==n;if(i){let e;null!=(r=s._$AQ)&&r.call(s,n),s._$AM=n,void 0!==s._$AP&&(e=n._$AU)!==t._$AU&&s._$AP(e)}if(e!==a||i){let t=s._$AA;for(;t!==e;){let e=t.nextSibling;o.insertBefore(t,a),t=e}}}return s},g=(e,t,i=e)=>(e._$AI(t,i),e),Ce={},Me=(e,t=Ce)=>e._$AH=t,De=e=>{var t;null!=(t=e._$AP)&&t.call(e,!1,!0);let i=e._$AA;for(var n=e._$AB.nextSibling;i!==n;){let e=i.nextSibling;i.remove(),i=e}},Ue=(t,i,n)=>{var s=new Map;for(let e=i;e<=n;e++)s.set(t[e],e);return s},He=ke(class extends xe{constructor(e){if(super(e),e.type!==we)throw Error("repeat() can only be used in text expressions")}ct(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);var s=[],r=[];let o=0;for(let e of t)s[o]=n?n(e,o):o,r[o]=i(e,o),o++;return{values:r,keys:s}}render(e,t,i){return this.ct(e,t,i).values}update(i,[e,t,n]){var s=i._$AH,{values:r,keys:o}=this.ct(e,t,n);if(!Array.isArray(s))return this.ut=o,r;var a=null!=(e=this.ut)?e:this.ut=[],l=[];let c,h,d=0,p=s.length-1,u=0,_=r.length-1;for(;d<=p&&u<=_;)if(null===s[d])d++;else if(null===s[p])p--;else if(a[d]===o[u])l[u]=g(s[d],r[u]),d++,u++;else if(a[p]===o[_])l[_]=g(s[p],r[_]),p--,_--;else if(a[d]===o[_])l[_]=g(s[d],r[_]),Se(i,l[_+1],s[d]),d++,_--;else if(a[p]===o[u])l[u]=g(s[p],r[u]),Se(i,s[d],s[p]),p--,u++;else if(void 0===c&&(c=Ue(o,u,_),h=Ue(a,d,p)),c.has(a[d]))if(c.has(a[p])){let e=h.get(o[u]),t=void 0!==e?s[e]:null;if(null===t){let e=Se(i,s[d]);g(e,r[u]),l[u]=e}else l[u]=g(t,r[u]),Se(i,s[d],t),s[e]=null;u++}else De(s[p]),p--;else De(s[d]),d++;for(;u<=_;){let e=Se(i,l[_+1]);g(e,r[u]),l[u++]=e}for(;d<=p;){let e=s[d++];null!==e&&De(e)}return this.ut=o,Me(i,l),f}}),Te=ke(class extends xe{constructor(e){if(super(e),3!==e.type&&1!==e.type&&4!==e.type)throw Error("The `live` directive is not allowed on child or event bindings");if(!je(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t!==f&&t!==v){var i=e.element,n=e.name;if(3===e.type){if(t===i[n])return f}else if(4===e.type){if(!!t===i.hasAttribute(n))return f}else if(1===e.type&&i.getAttribute(n)===t+"")return f;Me(e)}return t}}),Re=(e,t)=>{var i,n,s=e._$AN;if(void 0===s)return!1;for(let e of s)null!=(n=(i=e)._$AO)&&n.call(i,t,!1),Re(e,t);return!0},Be=e=>{let t,i;for(;void 0!==(t=e._$AM)&&((i=t._$AN).delete(e),e=t,0===(null==i?void 0:i.size)););},Le=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(void 0===e)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),Ne(t)}};function Ie(e){void 0!==this._$AN?(Be(this),this._$AM=e,Le(this)):this._$AM=e}function Ke(e,t=!1,i=0){var n=this._$AH,s=this._$AN;if(void 0!==s&&0!==s.size)if(t)if(Array.isArray(n))for(let e=i;e<n.length;e++)Re(n[e],!1),Be(n[e]);else null!=n&&(Re(n,!1),Be(n));else Re(this,e)}let Ne=e=>{e.type==we&&(null==e._$AP&&(e._$AP=Ke),null==e._$AQ)&&(e._$AQ=Ie)};class ze extends xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),Le(this),this.isConnected=e._$AU}_$AO(e,t=!0){var i;e!==this.isConnected&&((this.isConnected=e)?null!=(i=this.reconnected)&&i.call(this):null!=(i=this.disconnected)&&i.call(this)),t&&(Re(this,e),Be(this))}setValue(e){var t;je(this._$Ct)?this._$Ct._$AI(e,this):((t=[...this._$Ct._$AH])[this._$Ci]=e,this._$Ct._$AI(t,this,0))}disconnected(){}reconnected(){}}let We=()=>new Ve;class Ve{}let qe=new WeakMap,Fe=ke(class extends ze{render(e){return v}update(e,[t]){var i=t!==this.G;return i&&void 0!==this.G&&this.ot(void 0),!i&&this.rt===this.lt||(this.G=t,this.dt=null==(i=e.options)?void 0:i.host,this.ot(this.lt=e.element)),v}ot(t){if("function"==typeof this.G){var i=null!=(i=this.dt)?i:globalThis;let e=qe.get(i);void 0===e&&(e=new WeakMap,qe.set(i,e)),void 0!==e.get(this.G)&&this.G.call(this.dt,void 0),e.set(this.G,t),void 0!==t&&this.G.call(this.dt,t)}else this.G.value=t}get rt(){var e;return"function"==typeof this.G?null==(e=qe.get(null!=(e=this.dt)?e:globalThis))?void 0:e.get(this.G):null==(e=this.G)?void 0:e.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),Je=ke(class extends xe{constructor(e){if(super(e),1!==e.type||"class"!==e.name||2<(null==(e=e.strings)?void 0:e.length))throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(e,[i]){var t,n;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e)));for(let e in i)!i[e]||null!=(t=this.nt)&&t.has(e)||this.it.add(e);return this.render(i)}let s=e.element.classList;this.it.forEach(e=>{e in i||(s.remove(e),this.it.delete(e))});for(let t in i){let e=!!i[t];e===this.it.has(t)||null!=(n=this.nt)&&n.has(t)||(e?(s.add(t),this.it.add(t)):(s.remove(t),this.it.delete(t)))}return f}}),Ge="undefined"!=typeof navigator&&0<navigator.userAgent.toLowerCase().indexOf("firefox");function Ze(e,t,i){e.addEventListener?e.addEventListener(t,i,!1):e.attachEvent&&e.attachEvent("on".concat(t),function(){i(window.event)})}function Qe(e,t){for(var i=t.slice(0,t.length-1),n=0;n<i.length;n++)i[n]=e[i[n].toLowerCase()];return i}function Xe(e){for(var t=(e=(e="string"!=typeof e?"":e).replace(/\s/g,"")).split(","),i=t.lastIndexOf("");0<=i;)t[i-1]+=",",t.splice(i,1),i=t.lastIndexOf("");return t}for(var Ye={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Ge?173:189,"=":Ge?61:187,";":Ge?59:186,"'":222,"[":219,"]":221,"\\":220},$={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},et={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},b={16:!1,18:!1,17:!1,91:!1},E={},tt=1;tt<20;tt++)Ye["f".concat(tt)]=111+tt;var A=[],it="all",nt=[],st=function(e){return Ye[e.toLowerCase()]||$[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function rt(e){it=e||"all"}function ot(){return it||"all"}function at(e){var t=e.key,n=e.scope,s=e.method,o=void 0===(e=e.splitKey)?"+":e;Xe(t).forEach(function(e){var r,e=e.split(o),t=e.length,i=e[t-1],i="*"===i?"*":st(i);E[i]&&(n=n||ot(),r=1<t?Qe($,e):[],E[i]=E[i].map(function(e){return s&&e.method!==s||e.scope!==n||!(e=>{for(var t=e.length>=r.length?e:r,i=r.length<=e.length?r:e,n=!0,s=0;s<t.length;s++)-1===i.indexOf(t[s])&&(n=!1);return n})(e.mods)?e:{}}))})}function lt(e,t,i){var n;if(t.scope===i||"all"===t.scope){for(var s in n=0<t.mods.length,b)Object.prototype.hasOwnProperty.call(b,s)&&(!b[s]&&-1<t.mods.indexOf(+s)||b[s]&&-1===t.mods.indexOf(+s))&&(n=!1);(0!==t.mods.length||b[16]||b[18]||b[17]||b[91])&&!n&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble)&&(e.cancelBubble=!0)}}function ct(i){var e=E["*"],t=i.keyCode||i.which||i.charCode;if(w.filter.call(this,i)){if(-1===A.indexOf(t=93!==t&&224!==t?t:91)&&229!==t&&A.push(t),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(e){var t=et[e];i[e]&&-1===A.indexOf(t)?A.push(t):!i[e]&&-1<A.indexOf(t)?A.splice(A.indexOf(t),1):"metaKey"!==e||!i[e]||3!==A.length||i.ctrlKey||i.shiftKey||i.altKey||(A=A.slice(A.indexOf(t)))}),t in b){for(var n in b[t]=!0,$)$[n]===t&&(w[n]=!0);if(!e)return}for(var s in b)Object.prototype.hasOwnProperty.call(b,s)&&(b[s]=i[et[s]]);i.getModifierState&&(!i.altKey||i.ctrlKey)&&i.getModifierState("AltGraph")&&(-1===A.indexOf(17)&&A.push(17),-1===A.indexOf(18)&&A.push(18),b[17]=!0,b[18]=!0);var r=ot();if(e)for(var o=0;o<e.length;o++)e[o].scope===r&&("keydown"===i.type&&e[o].keydown||"keyup"===i.type&&e[o].keyup)&&lt(i,e[o],r);if(t in E)for(var a=0;a<E[t].length;a++)if(("keydown"===i.type&&E[t][a].keydown||"keyup"===i.type&&E[t][a].keyup)&&E[t][a].key){for(var l=E[t][a],c=l.splitKey,h=l.key.split(c),d=[],p=0;p<h.length;p++)d.push(st(h[p]));d.sort().join("")===A.sort().join("")&&lt(i,l,r)}}}function w(e,t,i){A=[];var n=Xe(e),s=[],r="all",o=document,a=0,l=!1,c=!0,h="+";for(void 0===i&&"function"==typeof t&&(i=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(r=t.scope),t.element&&(o=t.element),t.keyup&&(l=t.keyup),void 0!==t.keydown&&(c=t.keydown),"string"==typeof t.splitKey)&&(h=t.splitKey),"string"==typeof t&&(r=t);a<n.length;a++)s=[],1<(e=n[a].split(h)).length&&(s=Qe($,e)),(e="*"===(e=e[e.length-1])?"*":st(e))in E||(E[e]=[]),E[e].push({keyup:l,keydown:c,scope:r,mods:s,shortcut:n[a],method:i,key:n[a],splitKey:h});void 0===o||(t=o,-1<nt.indexOf(t))||!window||(nt.push(o),Ze(o,"keydown",function(e){ct(e)}),Ze(window,"focus",function(){A=[]}),Ze(o,"keyup",function(e){ct(e);var t=e.keyCode||e.which||e.charCode,i=A.indexOf(t);if(0<=i&&A.splice(i,1),e.key&&"meta"===e.key.toLowerCase()&&A.splice(0,A.length),(t=93!==t&&224!==t?t:91)in b)for(var n in b[t]=!1,$)$[n]===t&&(w[n]=!1)}))}var ht,dt,pt={setScope:rt,getScope:ot,deleteScope:function(e,t){var i,n,s;for(s in e=e||ot(),E)if(Object.prototype.hasOwnProperty.call(E,s))for(i=E[s],n=0;n<i.length;)i[n].scope===e?i.splice(n,1):n++;ot()===e&&rt(t||"all")},getPressedKeyCodes:function(){return A.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=st(e)),-1!==A.indexOf(e)},filter:function(e){var e=e.target||e.srcElement,t=e.tagName,i=!0;return i=!e.isContentEditable&&("INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t||e.readOnly)?i:!1},unbind:function(e){if(e){if(Array.isArray(e))e.forEach(function(e){e.key&&at(e)});else if("object"==typeof e)e.key&&at(e);else if("string"==typeof e){for(var t=arguments.length,i=new Array(1<t?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];var s=i[0],r=i[1];"function"==typeof s&&(r=s,s=""),at({key:e,scope:s,method:r,splitKey:"+"})}}else Object.keys(E).forEach(function(e){return delete E[e]})}};for(ht in pt)Object.prototype.hasOwnProperty.call(pt,ht)&&(w[ht]=pt[ht]);"undefined"!=typeof window&&(dt=window.hotkeys,w.noConflict=function(e){return e&&window.hotkeys===w&&(window.hotkeys=dt),w},window.hotkeys=w);function ut(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(s=e[a])&&(o=(r<3?s(o):3<r?s(t,i,o):s(t,i))||o);return 3<r&&o&&Object.defineProperty(t,i,o),o}var k=w,n=class extends s{constructor(){super(...arguments),this.placeholder="",this.hideBreadcrumbs=!1,this.breadcrumbHome="Home",this.breadcrumbs=[],this._inputRef=We()}render(){let e="";if(!this.hideBreadcrumbs){var t=[];for(let e of this.breadcrumbs)t.push(r`<button
1
+ /*! For license information please see async-feffery_shortcut_panel.js.LICENSE.txt */
2
+ (window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[29],{524:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_components_other_FefferyShortcutPanel_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(235),lodash__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(25),lodash__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__),ninja_keys__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(914),_components_styleControl_FefferyStyle_react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(92);function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ownKeys(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(i),!0).forEach((function(e){_defineProperty(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function _defineProperty(t,e,i){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var footerHtmlEn=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{class:"modal-footer",slot:"footer"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{class:"help"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"ninja-examplekey esc"},"enter"),"to select"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"help"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ninja-examplekey",viewBox:"0 0 24 24"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ninja-examplekey",viewBox:"0 0 24 24"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"})),"to navigate"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"help"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"ninja-examplekey esc"},"esc"),"to close"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"help"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"ninja-examplekey esc"},"backspace"),"move to parent")),footerHtmlZh=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{className:"modal-footer",slot:"footer"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"help"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"ninja-examplekey esc"},"enter"),"选择"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"help"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ninja-examplekey",viewBox:"0 0 24 24"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ninja-examplekey",viewBox:"0 0 24 24"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"})),"上下切换"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"help"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"ninja-examplekey esc"},"esc"),"关闭面板"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"help"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{className:"ninja-examplekey esc"},"backspace"),"回到上一级")),locale2footer=new Map([["en",footerHtmlEn],["zh",footerHtmlZh]]),locale2placeholder=new Map([["en","Type a command or search..."],["zh","输入指令或进行搜索..."]]),FefferyShortcutPanel=function FefferyShortcutPanel(props){var id=props.id,data=props.data,placeholder=props.placeholder,openHotkey=props.openHotkey,theme=props.theme,locale=props.locale,open=props.open,close=props.close,panelStyles=props.panelStyles,setProps=props.setProps,loading_state=props.loading_state;data=data.map((function(t){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(t.handler)||t.hasOwnProperty("children")?t:_objectSpread(_objectSpread({},t),{handler:function(){setProps({triggeredHotkey:{id:t.id,timestamp:Date.parse(new Date)}})}})}));var ninjaKeys=Object(react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);return Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){ninjaKeys.current&&ninjaKeys.current.addEventListener("change",(function(t){setProps({searchValue:t.detail.search})}))}),[]),Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){ninjaKeys.current&&(ninjaKeys.current.data=data.map((function(item){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(item.handler)?_objectSpread(_objectSpread({},item),{handler:eval(item.handler)}):item})))}),[data]),Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){ninjaKeys.current&&open&&(ninjaKeys.current.open(),setProps({open:!1}))}),[open]),Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){ninjaKeys.current&&close&&(ninjaKeys.current.close(),setProps({close:!1}))}),[close]),panelStyles=_objectSpread(_objectSpread({},{width:"640px",overflowBackground:"rgba(255, 255, 255, 0.5)",textColor:"rgb(60, 65, 73)",fontSize:"16px",top:"20%",accentColor:"rgb(110, 94, 210)",secondaryBackgroundColor:"rgb(239, 241, 244)",secondaryTextColor:"rgb(107, 111, 118)",selectedBackground:"rgb(248, 249, 251)",actionsHeight:"300px",groupTextColor:"rgb(144, 149, 157)",zIndex:1}),panelStyles),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_styleControl_FefferyStyle_react__WEBPACK_IMPORTED_MODULE_4__.a,{rawStyle:"\nninja-keys {\n --ninja-width: ".concat(panelStyles.width,";\n --ninja-overflow-background: ").concat(panelStyles.overflowBackground,";\n --ninja-text-color: ").concat(panelStyles.textColor,";\n --ninja-font-size: ").concat(panelStyles.fontSize,";\n --ninja-top: ").concat(panelStyles.top,";\n --ninja-accent-color: ").concat(panelStyles.accentColor,";\n --ninja-secondary-background-color: ").concat(panelStyles.secondaryBackgroundColor,";\n --ninja-secondary-text-color: ").concat(panelStyles.secondaryTextColor,";\n --ninja-selected-background: ").concat(panelStyles.selectedBackground,";\n --ninja-actions-height: ").concat(panelStyles.actionsHeight,";\n --ninja-group-text-color: ").concat(panelStyles.groupTextColor,";\n --ninja-z-index: ").concat(panelStyles.zIndex,";\n}\n")}),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ninja-keys",{id:id,class:theme,ref:ninjaKeys,placeholder:placeholder||locale2placeholder.get(locale),openHotkey:openHotkey,hotKeysJoinedView:!0,hideBreadcrumbs:!0,"data-dash-is-loading":loading_state&&loading_state.is_loading||void 0},locale2footer.get(locale)))};__webpack_exports__.default=FefferyShortcutPanel,FefferyShortcutPanel.defaultProps=_components_other_FefferyShortcutPanel_react__WEBPACK_IMPORTED_MODULE_1__.b,FefferyShortcutPanel.propTypes=_components_other_FefferyShortcutPanel_react__WEBPACK_IMPORTED_MODULE_1__.c},914:function(t,e,i){"use strict";const n=window,s=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),r=new WeakMap;class a{constructor(t,e,i){if(this._$cssResult$=!0,i!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&r.set(e,t))}return t}toString(){return this.cssText}}const l=(t,...e)=>{const i=1===t.length?t[0]:e.reduce((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1],t[0]);return new a(i,t,o)},c=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,o))(e)})(t):t;var h;const d=window,p=d.trustedTypes,u=p?p.emptyScript:"",_=d.reactiveElementPolyfillSupport,f={toAttribute(t,e){switch(e){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},v=(t,e)=>e!==t&&(e==e||t==t),y={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:v};class m extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const n=this._$Ep(i,e);void 0!==n&&(this._$Ev.set(n,i),t.push(n))}),t}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){const s=this[t];this[e]=n,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||y}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(c(t))}else void 0!==t&&e.push(c(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach(t=>t(this))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{s?t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(e=>{const i=document.createElement("style"),s=n.litNonce;void 0!==s&&i.setAttribute("nonce",s),i.textContent=e.cssText,t.appendChild(i)})})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)})}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=y){var n;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const o=(void 0!==(null===(n=i.converter)||void 0===n?void 0:n.toAttribute)?i.converter:f).toAttribute(e,i.type);this._$El=t,null==o?this.removeAttribute(s):this.setAttribute(s,o),this._$El=null}}_$AK(t,e){var i;const n=this.constructor,s=n._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=n.getPropertyOptions(s),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:f;this._$El=s,this[s]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||v)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((t,e)=>this[e]=t),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)}),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach(t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach((t,e)=>this._$EO(e,this[e],t)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var g;m.finalized=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},null==_||_({ReactiveElement:m}),(null!==(h=d.reactiveElementVersions)&&void 0!==h?h:d.reactiveElementVersions=[]).push("1.6.3");const $=window,b=$.trustedTypes,E=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,A=`lit$${(Math.random()+"").slice(9)}$`,w="?"+A,k=`<${w}>`,x=document,P=()=>x.createComment(""),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,S=t=>O(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,M=/-->/g,D=/>/g,U=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),H=/'/g,T=/"/g,R=/^(?:script|style|textarea|title)$/i,B=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),L=B(1),I=(B(2),Symbol.for("lit-noChange")),K=Symbol.for("lit-nothing"),N=new WeakMap,z=x.createTreeWalker(x,129,null,!1);function W(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==E?E.createHTML(e):e}const V=(t,e)=>{const i=t.length-1,n=[];let s,o=2===e?"<svg>":"",r=C;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(r.lastIndex=h,l=r.exec(i),null!==l);)h=r.lastIndex,r===C?"!--"===l[1]?r=M:void 0!==l[1]?r=D:void 0!==l[2]?(R.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=U):void 0!==l[3]&&(r=U):r===U?">"===l[0]?(r=null!=s?s:C,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?U:'"'===l[3]?T:H):r===T||r===H?r=U:r===M||r===D?r=C:(r=U,s=void 0);const d=r===U&&t[e+1].startsWith("/>")?" ":"";o+=r===C?i+k:c>=0?(n.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+A+d):i+A+(-2===c?(n.push(void 0),e):d)}return[W(t,o+(t[i]||"<?>")+(2===e?"</svg>":"")),n]};class q{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let s=0,o=0;const r=t.length-1,a=this.parts,[l,c]=V(t,e);if(this.el=q.createElement(l,i),z.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=z.nextNode())&&a.length<r;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(A)){const i=c[o++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+"$lit$").split(A),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?Q:"?"===e[1]?Y:"@"===e[1]?tt:Z})}else a.push({type:6,index:s})}for(const e of t)n.removeAttribute(e)}if(R.test(n.tagName)){const t=n.textContent.split(A),e=t.length-1;if(e>0){n.textContent=b?b.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],P()),z.nextNode(),a.push({type:2,index:++s});n.append(t[e],P())}}}else if(8===n.nodeType)if(n.data===w)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=n.data.indexOf(A,t+1));)a.push({type:7,index:s}),t+=A.length-1}s++}}static createElement(t,e){const i=x.createElement("template");return i.innerHTML=t,i}}function F(t,e,i=t,n){var s,o,r,a;if(e===I)return e;let l=void 0!==n?null===(s=i._$Co)||void 0===s?void 0:s[n]:i._$Cl;const c=j(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(e=F(t,l._$AS(t,e.values),l,n)),e}class J{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:n}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:x).importNode(i,!0);z.currentNode=s;let o=z.nextNode(),r=0,a=0,l=n[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new G(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new et(o,this,t)),this._$AV.push(e),l=n[++a]}r!==(null==l?void 0:l.index)&&(o=z.nextNode(),r++)}return z.currentNode=x,s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class G{constructor(t,e,i,n){var s;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cp=null===(s=null==n?void 0:n.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=F(this,t,e),j(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==I&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):S(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==K&&j(this._$AH)?this._$AA.nextSibling.data=t:this.$(x.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,s="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=q.createElement(W(n.h,n.h[0]),this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new J(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=N.get(t.strings);return void 0===e&&N.set(t.strings,e=new q(t)),e}T(t){O(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const s of t)n===e.length?e.push(i=new G(this.k(P()),this.k(P()),this,this.options)):i=e[n],i._$AI(s),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Z{constructor(t,e,i,n,s){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=K}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const s=this.strings;let o=!1;if(void 0===s)t=F(this,t,e,0),o=!j(t)||t!==this._$AH&&t!==I,o&&(this._$AH=t);else{const n=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=F(this,n[i+r],e,r),a===I&&(a=this._$AH[r]),o||(o=!j(a)||a!==this._$AH[r]),a===K?t=K:t!==K&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}o&&!n&&this.j(t)}j(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Q extends Z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===K?void 0:t}}const X=b?b.emptyScript:"";class Y extends Z{constructor(){super(...arguments),this.type=4}j(t){t&&t!==K?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class tt extends Z{constructor(t,e,i,n,s){super(t,e,i,n,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=F(this,t,e,0))&&void 0!==i?i:K)===I)return;const n=this._$AH,s=t===K&&n!==K||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==K&&(n===K||s);s&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class et{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){F(this,t)}}const it={O:"$lit$",P:A,A:w,C:1,M:V,L:J,R:S,D:F,I:G,V:Z,H:Y,N:tt,U:Q,F:et},nt=$.litHtmlPolyfillSupport;null==nt||nt(q,G),(null!==(g=$.litHtmlVersions)&&void 0!==g?g:$.litHtmlVersions=[]).push("2.8.0");var st,ot;class rt extends m{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var n,s;const o=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let r=o._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;o._$litPart$=r=new G(e.insertBefore(P(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return I}}rt.finalized=!0,rt._$litElement$=!0,null===(st=globalThis.litElementHydrateSupport)||void 0===st||st.call(globalThis,{LitElement:rt});const at=globalThis.litElementPolyfillSupport;null==at||at({LitElement:rt});(null!==(ot=globalThis.litElementVersions)&&void 0!==ot?ot:globalThis.litElementVersions=[]).push("3.3.3");const lt=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(e){customElements.define(t,e)}}})(t,e),ct=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function ht(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):ct(t,e)}function dt(t){return ht({...t,state:!0})}var pt;null===(pt=window.HTMLSlotElement)||void 0===pt||pt.prototype.assignedElements;const ut=1,_t=2,ft=3,vt=4,yt=t=>(...e)=>({_$litDirective$:t,values:e});class mt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const{I:gt}=it,$t=t=>void 0===t.strings,bt=()=>document.createComment(""),Et=(t,e,i)=>{var n;const s=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(bt(),o),n=s.insertBefore(bt(),o);i=new gt(e,n,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,a=r!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==o||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,o),t=e}}}return i},At=(t,e,i=t)=>(t._$AI(e,i),t),wt={},kt=(t,e=wt)=>t._$AH=e,xt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},Pt=(t,e,i)=>{const n=new Map;for(let s=e;s<=i;s++)n.set(t[s],s);return n},jt=yt(class extends mt{constructor(t){if(super(t),t.type!==_t)throw Error("repeat() can only be used in text expressions")}ct(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);const s=[],o=[];let r=0;for(const e of t)s[r]=n?n(e,r):r,o[r]=i(e,r),r++;return{values:o,keys:s}}render(t,e,i){return this.ct(t,e,i).values}update(t,[e,i,n]){var s;const o=t._$AH,{values:r,keys:a}=this.ct(e,i,n);if(!Array.isArray(o))return this.ut=a,r;const l=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],c=[];let h,d,p=0,u=o.length-1,_=0,f=r.length-1;for(;p<=u&&_<=f;)if(null===o[p])p++;else if(null===o[u])u--;else if(l[p]===a[_])c[_]=At(o[p],r[_]),p++,_++;else if(l[u]===a[f])c[f]=At(o[u],r[f]),u--,f--;else if(l[p]===a[f])c[f]=At(o[p],r[f]),Et(t,c[f+1],o[p]),p++,f--;else if(l[u]===a[_])c[_]=At(o[u],r[_]),Et(t,o[p],o[u]),u--,_++;else if(void 0===h&&(h=Pt(a,_,f),d=Pt(l,p,u)),h.has(l[p]))if(h.has(l[u])){const e=d.get(a[_]),i=void 0!==e?o[e]:null;if(null===i){const e=Et(t,o[p]);At(e,r[_]),c[_]=e}else c[_]=At(i,r[_]),Et(t,o[p],i),o[e]=null;_++}else xt(o[u]),u--;else xt(o[p]),p++;for(;_<=f;){const e=Et(t,c[f+1]);At(e,r[_]),c[_++]=e}for(;p<=u;){const t=o[p++];null!==t&&xt(t)}return this.ut=a,kt(t,c),I}}),Ot=yt(class extends mt{constructor(t){if(super(t),t.type!==ft&&t.type!==ut&&t.type!==vt)throw Error("The `live` directive is not allowed on child or event bindings");if(!$t(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===I||e===K)return e;const i=t.element,n=t.name;if(t.type===ft){if(e===i[n])return I}else if(t.type===vt){if(!!e===i.hasAttribute(n))return I}else if(t.type===ut&&i.getAttribute(n)===e+"")return I;return kt(t),e}}),St=(t,e)=>{var i,n;const s=t._$AN;if(void 0===s)return!1;for(const t of s)null===(n=(i=t)._$AO)||void 0===n||n.call(i,e,!1),St(t,e);return!0},Ct=t=>{let e,i;do{if(void 0===(e=t._$AM))break;i=e._$AN,i.delete(t),t=e}while(0===(null==i?void 0:i.size))},Mt=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(void 0===i)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),Ht(e)}};function Dt(t){void 0!==this._$AN?(Ct(this),this._$AM=t,Mt(this)):this._$AM=t}function Ut(t,e=!1,i=0){const n=this._$AH,s=this._$AN;if(void 0!==s&&0!==s.size)if(e)if(Array.isArray(n))for(let t=i;t<n.length;t++)St(n[t],!1),Ct(n[t]);else null!=n&&(St(n,!1),Ct(n));else St(this,t)}const Ht=t=>{var e,i,n,s;t.type==_t&&(null!==(e=(n=t)._$AP)&&void 0!==e||(n._$AP=Ut),null!==(i=(s=t)._$AQ)&&void 0!==i||(s._$AQ=Dt))};class Tt extends mt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),Mt(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,n;t!==this.isConnected&&(this.isConnected=t,t?null===(i=this.reconnected)||void 0===i||i.call(this):null===(n=this.disconnected)||void 0===n||n.call(this)),e&&(St(this,t),Ct(this))}setValue(t){if($t(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const Rt=()=>new Bt;class Bt{}const Lt=new WeakMap,It=yt(class extends Tt{render(t){return K}update(t,[e]){var i;const n=e!==this.G;return n&&void 0!==this.G&&this.ot(void 0),(n||this.rt!==this.lt)&&(this.G=e,this.dt=null===(i=t.options)||void 0===i?void 0:i.host,this.ot(this.lt=t.element)),K}ot(t){var e;if("function"==typeof this.G){const i=null!==(e=this.dt)&&void 0!==e?e:globalThis;let n=Lt.get(i);void 0===n&&(n=new WeakMap,Lt.set(i,n)),void 0!==n.get(this.G)&&this.G.call(this.dt,void 0),n.set(this.G,t),void 0!==t&&this.G.call(this.dt,t)}else this.G.value=t}get rt(){var t,e,i;return"function"==typeof this.G?null===(e=Lt.get(null!==(t=this.dt)&&void 0!==t?t:globalThis))||void 0===e?void 0:e.get(this.G):null===(i=this.G)||void 0===i?void 0:i.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),Kt=yt(class extends mt{constructor(t){var e;if(super(t),t.type!==ut||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const s=t.element.classList;this.it.forEach(t=>{t in e||(s.remove(t),this.it.delete(t))});for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(i?(s.add(t),this.it.add(t)):(s.remove(t),this.it.delete(t)))}return I}});var Nt="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function zt(t,e,i){t.addEventListener?t.addEventListener(e,i,!1):t.attachEvent&&t.attachEvent("on".concat(e),(function(){i(window.event)}))}function Wt(t,e){for(var i=e.slice(0,e.length-1),n=0;n<i.length;n++)i[n]=t[i[n].toLowerCase()];return i}function Vt(t){"string"!=typeof t&&(t="");for(var e=(t=t.replace(/\s/g,"")).split(","),i=e.lastIndexOf("");i>=0;)e[i-1]+=",",e.splice(i,1),i=e.lastIndexOf("");return e}for(var qt={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Nt?173:189,"=":Nt?61:187,";":Nt?59:186,"'":222,"[":219,"]":221,"\\":220},Ft={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Jt={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Gt={16:!1,18:!1,17:!1,91:!1},Zt={},Qt=1;Qt<20;Qt++)qt["f".concat(Qt)]=111+Qt;var Xt=[],Yt="all",te=[],ee=function(t){return qt[t.toLowerCase()]||Ft[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function ie(t){Yt=t||"all"}function ne(){return Yt||"all"}var se=function(t){var e=t.key,i=t.scope,n=t.method,s=t.splitKey,o=void 0===s?"+":s;Vt(e).forEach((function(t){var e=t.split(o),s=e.length,r=e[s-1],a="*"===r?"*":ee(r);if(Zt[a]){i||(i=ne());var l=s>1?Wt(Ft,e):[];Zt[a]=Zt[a].map((function(t){return(!n||t.method===n)&&t.scope===i&&function(t,e){for(var i=t.length>=e.length?t:e,n=t.length>=e.length?e:t,s=!0,o=0;o<i.length;o++)-1===n.indexOf(i[o])&&(s=!1);return s}(t.mods,l)?{}:t}))}}))};function oe(t,e,i){var n;if(e.scope===i||"all"===e.scope){for(var s in n=e.mods.length>0,Gt)Object.prototype.hasOwnProperty.call(Gt,s)&&(!Gt[s]&&e.mods.indexOf(+s)>-1||Gt[s]&&-1===e.mods.indexOf(+s))&&(n=!1);(0!==e.mods.length||Gt[16]||Gt[18]||Gt[17]||Gt[91])&&!n&&"*"!==e.shortcut||!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}function re(t){var e=Zt["*"],i=t.keyCode||t.which||t.charCode;if(ae.filter.call(this,t)){if(93!==i&&224!==i||(i=91),-1===Xt.indexOf(i)&&229!==i&&Xt.push(i),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(e){var i=Jt[e];t[e]&&-1===Xt.indexOf(i)?Xt.push(i):!t[e]&&Xt.indexOf(i)>-1?Xt.splice(Xt.indexOf(i),1):"metaKey"===e&&t[e]&&3===Xt.length&&(t.ctrlKey||t.shiftKey||t.altKey||(Xt=Xt.slice(Xt.indexOf(i))))})),i in Gt){for(var n in Gt[i]=!0,Ft)Ft[n]===i&&(ae[n]=!0);if(!e)return}for(var s in Gt)Object.prototype.hasOwnProperty.call(Gt,s)&&(Gt[s]=t[Jt[s]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===Xt.indexOf(17)&&Xt.push(17),-1===Xt.indexOf(18)&&Xt.push(18),Gt[17]=!0,Gt[18]=!0);var o=ne();if(e)for(var r=0;r<e.length;r++)e[r].scope===o&&("keydown"===t.type&&e[r].keydown||"keyup"===t.type&&e[r].keyup)&&oe(t,e[r],o);if(i in Zt)for(var a=0;a<Zt[i].length;a++)if(("keydown"===t.type&&Zt[i][a].keydown||"keyup"===t.type&&Zt[i][a].keyup)&&Zt[i][a].key){for(var l=Zt[i][a],c=l.splitKey,h=l.key.split(c),d=[],p=0;p<h.length;p++)d.push(ee(h[p]));d.sort().join("")===Xt.sort().join("")&&oe(t,l,o)}}}function ae(t,e,i){Xt=[];var n=Vt(t),s=[],o="all",r=document,a=0,l=!1,c=!0,h="+";for(void 0===i&&"function"==typeof e&&(i=e),"[object Object]"===Object.prototype.toString.call(e)&&(e.scope&&(o=e.scope),e.element&&(r=e.element),e.keyup&&(l=e.keyup),void 0!==e.keydown&&(c=e.keydown),"string"==typeof e.splitKey&&(h=e.splitKey)),"string"==typeof e&&(o=e);a<n.length;a++)s=[],(t=n[a].split(h)).length>1&&(s=Wt(Ft,t)),(t="*"===(t=t[t.length-1])?"*":ee(t))in Zt||(Zt[t]=[]),Zt[t].push({keyup:l,keydown:c,scope:o,mods:s,shortcut:n[a],method:i,key:n[a],splitKey:h});void 0!==r&&!function(t){return te.indexOf(t)>-1}(r)&&window&&(te.push(r),zt(r,"keydown",(function(t){re(t)})),zt(window,"focus",(function(){Xt=[]})),zt(r,"keyup",(function(t){re(t),function(t){var e=t.keyCode||t.which||t.charCode,i=Xt.indexOf(e);if(i>=0&&Xt.splice(i,1),t.key&&"meta"===t.key.toLowerCase()&&Xt.splice(0,Xt.length),93!==e&&224!==e||(e=91),e in Gt)for(var n in Gt[e]=!1,Ft)Ft[n]===e&&(ae[n]=!1)}(t)})))}var le={setScope:ie,getScope:ne,deleteScope:function(t,e){var i,n;for(var s in t||(t=ne()),Zt)if(Object.prototype.hasOwnProperty.call(Zt,s))for(i=Zt[s],n=0;n<i.length;)i[n].scope===t?i.splice(n,1):n++;ne()===t&&ie(e||"all")},getPressedKeyCodes:function(){return Xt.slice(0)},isPressed:function(t){return"string"==typeof t&&(t=ee(t)),-1!==Xt.indexOf(t)},filter:function(t){var e=t.target||t.srcElement,i=e.tagName,n=!0;return!e.isContentEditable&&("INPUT"!==i&&"TEXTAREA"!==i&&"SELECT"!==i||e.readOnly)||(n=!1),n},unbind:function(t){if(t){if(Array.isArray(t))t.forEach((function(t){t.key&&se(t)}));else if("object"==typeof t)t.key&&se(t);else if("string"==typeof t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];var s=i[0],o=i[1];"function"==typeof s&&(o=s,s=""),se({key:t,scope:s,method:o,splitKey:"+"})}}else Object.keys(Zt).forEach((function(t){return delete Zt[t]}))}};for(var ce in le)Object.prototype.hasOwnProperty.call(le,ce)&&(ae[ce]=le[ce]);if("undefined"!=typeof window){var he=window.hotkeys;ae.noConflict=function(t){return t&&window.hotkeys===ae&&(window.hotkeys=he),ae},window.hotkeys=ae}var de=ae,pe=function(t,e,i,n){var s,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,i,r):s(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};let ue=class extends rt{constructor(){super(...arguments),this.placeholder="",this.hideBreadcrumbs=!1,this.breadcrumbHome="Home",this.breadcrumbs=[],this._inputRef=Rt()}render(){let t="";if(!this.hideBreadcrumbs){const e=[];for(const t of this.breadcrumbs)e.push(L`<button
2
3
  tabindex="-1"
3
- @click=${()=>this.selectParent(e)}
4
+ @click=${()=>this.selectParent(t)}
4
5
  class="breadcrumb"
5
6
  >
6
- ${e}
7
- </button>`);e=r`<div class="breadcrumb-list">
7
+ ${t}
8
+ </button>`);t=L`<div class="breadcrumb-list">
8
9
  <button
9
10
  tabindex="-1"
10
11
  @click=${()=>this.selectParent()}
@@ -12,9 +13,9 @@
12
13
  >
13
14
  ${this.breadcrumbHome}
14
15
  </button>
15
- ${t}
16
- </div>`}return r`
17
- ${e}
16
+ ${e}
17
+ </div>`}return L`
18
+ ${t}
18
19
  <div part="ninja-input-wrapper" class="search-wrapper">
19
20
  <input
20
21
  part="ninja-input"
@@ -23,12 +24,12 @@
23
24
  spellcheck="false"
24
25
  autocomplete="off"
25
26
  @input="${this._handleInput}"
26
- ${Fe(this._inputRef)}
27
+ ${It(this._inputRef)}
27
28
  placeholder="${this.placeholder}"
28
29
  class="search"
29
30
  />
30
31
  </div>
31
- `}setSearch(e){this._inputRef.value&&(this._inputRef.value.value=e)}focusSearch(){requestAnimationFrame(()=>this._inputRef.value.focus())}_handleInput(e){e=e.target;this.dispatchEvent(new CustomEvent("change",{detail:{search:e.value},bubbles:!1,composed:!1}))}selectParent(e){this.dispatchEvent(new CustomEvent("setParent",{detail:{parent:e},bubbles:!0,composed:!0}))}firstUpdated(){this.focusSearch()}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}};n.styles=z`
32
+ `}setSearch(t){this._inputRef.value&&(this._inputRef.value.value=t)}focusSearch(){requestAnimationFrame(()=>this._inputRef.value.focus())}_handleInput(t){const e=t.target;this.dispatchEvent(new CustomEvent("change",{detail:{search:e.value},bubbles:!1,composed:!1}))}selectParent(t){this.dispatchEvent(new CustomEvent("setParent",{detail:{parent:t},bubbles:!0,composed:!0}))}firstUpdated(){this.focusSearch()}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}};ue.styles=l`
32
33
  :host {
33
34
  flex: 1;
34
35
  position: relative;
@@ -77,21 +78,21 @@
77
78
  display: flex;
78
79
  border-bottom: var(--ninja-separate-border);
79
80
  }
80
- `,ut([o()],n.prototype,"placeholder",void 0),ut([o({type:Boolean})],n.prototype,"hideBreadcrumbs",void 0),ut([o()],n.prototype,"breadcrumbHome",void 0),ut([o({type:Array})],n.prototype,"breadcrumbs",void 0),ut([Ae("ninja-header")],n);class _t extends xe{constructor(e){if(super(e),this.et=v,e.type!==we)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===v||null==e)return this.ft=void 0,this.et=e;if(e===f)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");return e===this.et?this.ft:(e=[this.et=e],this.ft={_$litType$:this.constructor.resultType,strings:e.raw=e,values:[]})}}_t.directiveName="unsafeHTML",_t.resultType=1;let ft=ke(_t),vt=e(2),yt=window,mt=yt.ShadowRoot&&(void 0===yt.ShadyCSS||yt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gt=Symbol(),$t=new WeakMap;class bt{constructor(e,t,i){if(this._$cssResult$=!0,i!==gt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;var t,i=this.t;return mt&&void 0===e&&(t=void 0!==i&&1===i.length,void 0===(e=t?$t.get(i):e))&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t)&&$t.set(i,e),e}toString(){return this.cssText}}let Et=mt?e=>e:t=>{if(!(t instanceof CSSStyleSheet))return t;{let e="";for(var i of t.cssRules)e+=i.cssText;return t=e,new bt("string"==typeof t?t:t+"",void 0,gt)}},At,wt=window,kt=wt.trustedTypes,xt=kt?kt.emptyScript:"",Pt=wt.reactiveElementPolyfillSupport,jt={toAttribute(e,t){switch(t){case Boolean:e=e?xt:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},Ot=(e,t)=>t!==e&&(t==t||e==e),St={attribute:!0,type:String,converter:jt,reflect:!1,hasChanged:Ot};class x extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!=(t=this.h)?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let i=[];return this.elementProperties.forEach((e,t)=>{e=this._$Ep(t,e);void 0!==e&&(this._$Ev.set(e,t),i.push(e))}),i}static createProperty(e,t=St){var i;t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e)||(i="symbol"==typeof e?Symbol():"__"+e,void 0!==(i=this.getPropertyDescriptor(e,i,t))&&Object.defineProperty(this.prototype,e,i))}static getPropertyDescriptor(i,n,s){return{get(){return this[n]},set(e){var t=this[i];this[n]=e,this.requestUpdate(i,t,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||St}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(var i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){var t=[];if(Array.isArray(e)){var i=new Set(e.flat(1/0).reverse());for(let e of i)t.unshift(Et(e))}else void 0!==e&&t.push(Et(e));return t}static _$Ep(e,t){t=t.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null!=(e=this.constructor.h)&&e.forEach(e=>e(this))}addController(e){var t;(null!=(t=this._$ES)?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&null!=(t=e.hostConnected)&&t.call(e)}removeController(e){var t;null!=(t=this._$ES)&&t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var n,e,t=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return n=t,e=this.constructor.elementStyles,mt?n.adoptedStyleSheets=e.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):e.forEach(e=>{var t=document.createElement("style"),i=yt.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=e.cssText,n.appendChild(t)}),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=St){var n,s=this.constructor._$Ep(e,i);void 0!==s&&!0===i.reflect&&(n=(void 0!==(null==(n=i.converter)?void 0:n.toAttribute)?i.converter:jt).toAttribute(t,i.type),this._$El=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null)}_$AK(e,i){var n=this.constructor,s=n._$Ev.get(e);if(void 0!==s&&this._$El!==s){let e=n.getPropertyOptions(s),t="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null==(n=e.converter)?void 0:n.fromAttribute)?e.converter:jt;this._$El=s,this[s]=t.fromAttribute(i,e.type),this._$El=null}}requestUpdate(e,t,i){let n=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||Ot)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}var e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach((e,t)=>this[t]=e),this._$Ei=void 0);let e=!1;var i=this._$AL;try{(e=this.shouldUpdate(i))?(this.willUpdate(i),null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}}willUpdate(e){}_$AE(e){var t;null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}x.finalized=!0,x.elementProperties=new Map,x.elementStyles=[],x.shadowRootOptions={mode:"open"},null!=Pt&&Pt({ReactiveElement:x}),(null!=(At=wt.reactiveElementVersions)?At:wt.reactiveElementVersions=[]).push("1.6.3");let Ct=window,P=Ct.trustedTypes,Mt=P?P.createPolicy("lit-html",{createHTML:e=>e}):void 0,j=`lit$${(Math.random()+"").slice(9)}$`,Dt="?"+j,Ut=`<${Dt}>`,O=document,Ht=()=>O.createComment(""),Tt=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Rt=Array.isArray,Bt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Lt=/-->/g,It=/>/g,S=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),Kt=/'/g,Nt=/"/g,zt=/^(?:script|style|textarea|title)$/i,Wt=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),Vt=Wt(1),C=(Wt(2),Symbol.for("lit-noChange")),M=Symbol.for("lit-nothing"),qt=new WeakMap,D=O.createTreeWalker(O,129,null,!1);function Ft(e,t){if(Array.isArray(e)&&e.hasOwnProperty("raw"))return void 0!==Mt?Mt.createHTML(t):t;throw Error("invalid template strings array")}class Jt{constructor({strings:e,_$litType$:t},i){var n;this.parts=[];let s=0,r=0;var o=e.length-1,a=this.parts,[e,l]=((o,e)=>{let t=o.length-1,a=[],l,c=2===e?"<svg>":"",h=Bt;for(let r=0;r<t;r++){let e=o[r],t,i,n=-1,s=0;for(;s<e.length&&(h.lastIndex=s,null!==(i=h.exec(e)));)s=h.lastIndex,h===Bt?"!--"===i[1]?h=Lt:void 0!==i[1]?h=It:void 0!==i[2]?(zt.test(i[2])&&(l=RegExp("</"+i[2],"g")),h=S):void 0!==i[3]&&(h=S):h===S?">"===i[0]?(h=null!=l?l:Bt,n=-1):void 0===i[1]?n=-2:(n=h.lastIndex-i[2].length,t=i[1],h=void 0===i[3]?S:'"'===i[3]?Nt:Kt):h===Nt||h===Kt?h=S:h===Lt||h===It?h=Bt:(h=S,l=void 0);var d=h===S&&o[r+1].startsWith("/>")?" ":"";c+=h===Bt?e+Ut:0<=n?(a.push(t),e.slice(0,n)+"$lit$"+e.slice(n)+j+d):e+j+(-2===n?(a.push(void 0),r):d)}return[Ft(o,c+(o[t]||"<?>")+(2===e?"</svg>":"")),a]})(e,t);if(this.el=Jt.createElement(e,i),D.currentNode=this.el.content,2===t){let e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=D.nextNode())&&a.length<o;){if(1===n.nodeType){if(n.hasAttributes()){let t=[];for(let e of n.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(j)){let i=l[r++];if(t.push(e),void 0!==i){let e=n.getAttribute(i.toLowerCase()+"$lit$").split(j),t=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:t[2],strings:e,ctor:"."===t[1]?Xt:"?"===t[1]?ei:"@"===t[1]?ti:Qt})}else a.push({type:6,index:s})}for(let e of t)n.removeAttribute(e)}if(zt.test(n.tagName)){let t=n.textContent.split(j),i=t.length-1;if(0<i){n.textContent=P?P.emptyScript:"";for(let e=0;e<i;e++)n.append(t[e],Ht()),D.nextNode(),a.push({type:2,index:++s});n.append(t[i],Ht())}}}else if(8===n.nodeType)if(n.data===Dt)a.push({type:2,index:s});else{let e=-1;for(;-1!==(e=n.data.indexOf(j,e+1));)a.push({type:7,index:s}),e+=j.length-1}s++}}static createElement(e,t){var i=O.createElement("template");return i.innerHTML=e,i}}function U(t,i,n=t,s){var r;if(i!==C){let e=void 0!==s?null==(o=n._$Co)?void 0:o[s]:n._$Cl;var o=Tt(i)?void 0:i._$litDirective$;(null==e?void 0:e.constructor)!==o&&(null!=(r=null==e?void 0:e._$AO)&&r.call(e,!1),void 0===o?e=void 0:(e=new o(t))._$AT(t,n,s),void 0!==s?(null!=(r=n._$Co)?r:n._$Co=[])[s]=e:n._$Cl=e),void 0!==e&&(i=U(t,e._$AS(t,i.values),e,s))}return i}class Gt{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var{el:{content:e},parts:i}=this._$AD,n=(null!=(n=null==t?void 0:t.creationScope)?n:O).importNode(e,!0);D.currentNode=n;let s=D.nextNode(),r=0,o=0,a=i[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new Zt(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new ii(s,this,t)),this._$AV.push(e),a=i[++o]}r!==(null==a?void 0:a.index)&&(s=D.nextNode(),r++)}return D.currentNode=O,n}v(e){let t=0;for(var i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class Zt{constructor(e,t,i,n){this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cp=null==(e=null==n?void 0:n.isConnected)||e}get _$AU(){var e;return null!=(e=null==(e=this._$AM)?void 0:e._$AU)?e:this._$Cp}get parentNode(){let e=this._$AA.parentNode;var t=this._$AM;return e=void 0!==t&&11===(null==e?void 0:e.nodeType)?t.parentNode:e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=U(this,e,t),Tt(e)?e===M||null==e||""===e?(this._$AH!==M&&this._$AR(),this._$AH=M):e!==this._$AH&&e!==C&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(t=e,Rt(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator])?this.T(e):this._(e))}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==M&&Tt(this._$AH)?this._$AA.nextSibling.data=e:this.$(O.createTextNode(e)),this._$AH=e}g(e){var t,{values:i,_$litType$:n}=e,n="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=Jt.createElement(Ft(n.h,n.h[0]),this.options)),n);if((null==(t=this._$AH)?void 0:t._$AD)===n)this._$AH.v(i);else{let e=new Gt(n,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=qt.get(e.strings);return void 0===t&&qt.set(e.strings,t=new Jt(e)),t}T(e){Rt(this._$AH)||(this._$AH=[],this._$AR());var t,i=this._$AH;let n,s=0;for(t of e)s===i.length?i.push(n=new Zt(this.k(Ht()),this.k(Ht()),this,this.options)):n=i[s],n._$AI(t),s++;s<i.length&&(this._$AR(n&&n._$AB.nextSibling,s),i.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null!=(i=this._$AP)&&i.call(this,!1,!0,e);t&&t!==this._$AB;){let e=t.nextSibling;t.remove(),t=e}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null!=(t=this._$AP))&&t.call(this,e)}}class Qt{constructor(e,t,i,n,s){this.type=1,this._$AH=M,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=s,2<i.length||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=M}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(n,s=this,r,e){var o=this.strings;let a=!1;if(void 0===o)n=U(this,n,s,0),(a=!Tt(n)||n!==this._$AH&&n!==C)&&(this._$AH=n);else{let e=n,t,i;for(n=o[0],t=0;t<o.length-1;t++)(i=U(this,e[r+t],s,t))===C&&(i=this._$AH[t]),a=a||!Tt(i)||i!==this._$AH[t],i===M?n=M:n!==M&&(n+=(null!=i?i:"")+o[t+1]),this._$AH[t]=i}a&&!e&&this.j(n)}j(e){e===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Xt extends Qt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===M?void 0:e}}let Yt=P?P.emptyScript:"";class ei extends Qt{constructor(){super(...arguments),this.type=4}j(e){e&&e!==M?this.element.setAttribute(this.name,Yt):this.element.removeAttribute(this.name)}}class ti extends Qt{constructor(e,t,i,n,s){super(e,t,i,n,s),this.type=5}_$AI(e,t=this){var i,n;(e=null!=(t=U(this,e,t,0))?t:M)!==C&&(t=this._$AH,i=e===M&&t!==M||e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive,n=e!==M&&(t===M||i),i&&this.element.removeEventListener(this.name,this,t),n&&this.element.addEventListener(this.name,this,e),this._$AH=e)}handleEvent(e){var t;"function"==typeof this._$AH?this._$AH.call(null!=(t=null==(t=this.options)?void 0:t.host)?t:this.element,e):this._$AH.handleEvent(e)}}class ii{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){U(this,e)}}i=Ct.litHtmlPolyfillSupport;null!=i&&i(Jt,Zt),(null!=(n=Ct.litHtmlVersions)?n:Ct.litHtmlVersions=[]).push("2.8.0");class ni extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t=super.createRenderRoot();return null==(e=this.renderOptions).renderBefore&&(e.renderBefore=t.firstChild),t}update(e){var t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var n,s=null!=(s=null==i?void 0:i.renderBefore)?s:t;let r=s._$litPart$;if(void 0===r){let e=null!=(n=null==i?void 0:i.renderBefore)?n:null;s._$litPart$=r=new Zt(t.insertBefore(Ht(),e),e,void 0,null!=i?i:{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null!=(e=this._$Do)&&e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null!=(e=this._$Do)&&e.setConnected(!1)}render(){return C}}ni.finalized=!0,ni._$litElement$=!0,null!=(e=globalThis.litElementHydrateSupport)&&e.call(globalThis,{LitElement:ni});function si(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(s=e[a])&&(o=(r<3?s(o):3<r?s(t,i,o):s(t,i))||o);return 3<r&&o&&Object.defineProperty(t,i,o),o}i=globalThis.litElementPolyfillSupport,null!=i&&i({LitElement:ni}),(null!=(n=globalThis.litElementVersions)?n:globalThis.litElementVersions=[]).push("3.3.3"),null!=(e=window.HTMLSlotElement)&&e.prototype.assignedElements,i=((n,...e)=>{e=1===n.length?n[0]:e.reduce((e,t,i)=>e+(()=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})()+n[i+1],n[0]);return new bt(e,n,gt)})`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`,n=class extends ni{render(){return Vt`<span><slot></slot></span>`}},n.styles=[i],Object(vt.c)([e=>{var t,i;return"function"!=typeof e?({kind:i,elements:t}=e,{kind:i,elements:t,finisher(e){customElements.define("mwc-icon",e)}}):(i=e,customElements.define("mwc-icon",i),i)}],n),e=class extends s{constructor(){super(),this.selected=!1,this.hotKeysJoinedView=!0,this.addEventListener("click",this.click)}ensureInView(){requestAnimationFrame(()=>this.scrollIntoView({block:"nearest"}))}click(){this.dispatchEvent(new CustomEvent("actionsSelected",{detail:this.action,bubbles:!0,composed:!0}))}updated(e){e.has("selected")&&this.selected&&this.ensureInView()}render(){let e,t;this.action.mdIcon?e=r`<mwc-icon part="ninja-icon" class="ninja-icon"
81
+ `,pe([ht()],ue.prototype,"placeholder",void 0),pe([ht({type:Boolean})],ue.prototype,"hideBreadcrumbs",void 0),pe([ht()],ue.prototype,"breadcrumbHome",void 0),pe([ht({type:Array})],ue.prototype,"breadcrumbs",void 0),ue=pe([lt("ninja-header")],ue);class _e extends mt{constructor(t){if(super(t),this.et=K,t.type!==_t)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this.ft=void 0,this.et=t;if(t===I)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}_e.directiveName="unsafeHTML",_e.resultType=1;const fe=yt(_e);var ve=i(2);const ye=window,me=ye.ShadowRoot&&(void 0===ye.ShadyCSS||ye.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ge=Symbol(),$e=new WeakMap;class be{constructor(t,e,i){if(this._$cssResult$=!0,i!==ge)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(me&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=$e.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&$e.set(e,t))}return t}toString(){return this.cssText}}const Ee=me?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new be("string"==typeof t?t:t+"",void 0,ge))(e)})(t):t;var Ae;const we=window,ke=we.trustedTypes,xe=ke?ke.emptyScript:"",Pe=we.reactiveElementPolyfillSupport,je={toAttribute(t,e){switch(e){case Boolean:t=t?xe:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},Oe=(t,e)=>e!==t&&(e==e||t==t),Se={attribute:!0,type:String,converter:je,reflect:!1,hasChanged:Oe};class Ce extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const n=this._$Ep(i,e);void 0!==n&&(this._$Ev.set(n,i),t.push(n))}),t}static createProperty(t,e=Se){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){const s=this[t];this[e]=n,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Se}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(Ee(t))}else void 0!==t&&e.push(Ee(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach(t=>t(this))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{me?t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(e=>{const i=document.createElement("style"),n=ye.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)})})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)})}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=Se){var n;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const o=(void 0!==(null===(n=i.converter)||void 0===n?void 0:n.toAttribute)?i.converter:je).toAttribute(e,i.type);this._$El=t,null==o?this.removeAttribute(s):this.setAttribute(s,o),this._$El=null}}_$AK(t,e){var i;const n=this.constructor,s=n._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=n.getPropertyOptions(s),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:je;this._$El=s,this[s]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Oe)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((t,e)=>this[e]=t),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)}),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach(t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach((t,e)=>this._$EO(e,this[e],t)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var Me;Ce.finalized=!0,Ce.elementProperties=new Map,Ce.elementStyles=[],Ce.shadowRootOptions={mode:"open"},null==Pe||Pe({ReactiveElement:Ce}),(null!==(Ae=we.reactiveElementVersions)&&void 0!==Ae?Ae:we.reactiveElementVersions=[]).push("1.6.3");const De=window,Ue=De.trustedTypes,He=Ue?Ue.createPolicy("lit-html",{createHTML:t=>t}):void 0,Te=`lit$${(Math.random()+"").slice(9)}$`,Re="?"+Te,Be=`<${Re}>`,Le=document,Ie=()=>Le.createComment(""),Ke=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Ne=Array.isArray,ze=t=>Ne(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),We=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ve=/-->/g,qe=/>/g,Fe=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),Je=/'/g,Ge=/"/g,Ze=/^(?:script|style|textarea|title)$/i,Qe=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),Xe=Qe(1),Ye=(Qe(2),Symbol.for("lit-noChange")),ti=Symbol.for("lit-nothing"),ei=new WeakMap,ii=Le.createTreeWalker(Le,129,null,!1);function ni(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==He?He.createHTML(e):e}const si=(t,e)=>{const i=t.length-1,n=[];let s,o=2===e?"<svg>":"",r=We;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(r.lastIndex=h,l=r.exec(i),null!==l);)h=r.lastIndex,r===We?"!--"===l[1]?r=Ve:void 0!==l[1]?r=qe:void 0!==l[2]?(Ze.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=Fe):void 0!==l[3]&&(r=Fe):r===Fe?">"===l[0]?(r=null!=s?s:We,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Fe:'"'===l[3]?Ge:Je):r===Ge||r===Je?r=Fe:r===Ve||r===qe?r=We:(r=Fe,s=void 0);const d=r===Fe&&t[e+1].startsWith("/>")?" ":"";o+=r===We?i+Be:c>=0?(n.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+Te+d):i+Te+(-2===c?(n.push(void 0),e):d)}return[ni(t,o+(t[i]||"<?>")+(2===e?"</svg>":"")),n]};class oi{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let s=0,o=0;const r=t.length-1,a=this.parts,[l,c]=si(t,e);if(this.el=oi.createElement(l,i),ii.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=ii.nextNode())&&a.length<r;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(Te)){const i=c[o++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+"$lit$").split(Te),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?hi:"?"===e[1]?pi:"@"===e[1]?ui:ci})}else a.push({type:6,index:s})}for(const e of t)n.removeAttribute(e)}if(Ze.test(n.tagName)){const t=n.textContent.split(Te),e=t.length-1;if(e>0){n.textContent=Ue?Ue.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],Ie()),ii.nextNode(),a.push({type:2,index:++s});n.append(t[e],Ie())}}}else if(8===n.nodeType)if(n.data===Re)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=n.data.indexOf(Te,t+1));)a.push({type:7,index:s}),t+=Te.length-1}s++}}static createElement(t,e){const i=Le.createElement("template");return i.innerHTML=t,i}}function ri(t,e,i=t,n){var s,o,r,a;if(e===Ye)return e;let l=void 0!==n?null===(s=i._$Co)||void 0===s?void 0:s[n]:i._$Cl;const c=Ke(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(e=ri(t,l._$AS(t,e.values),l,n)),e}class ai{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:n}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:Le).importNode(i,!0);ii.currentNode=s;let o=ii.nextNode(),r=0,a=0,l=n[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new li(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new _i(o,this,t)),this._$AV.push(e),l=n[++a]}r!==(null==l?void 0:l.index)&&(o=ii.nextNode(),r++)}return ii.currentNode=Le,s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class li{constructor(t,e,i,n){var s;this.type=2,this._$AH=ti,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cp=null===(s=null==n?void 0:n.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ri(this,t,e),Ke(t)?t===ti||null==t||""===t?(this._$AH!==ti&&this._$AR(),this._$AH=ti):t!==this._$AH&&t!==Ye&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):ze(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ti&&Ke(this._$AH)?this._$AA.nextSibling.data=t:this.$(Le.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,s="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=oi.createElement(ni(n.h,n.h[0]),this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new ai(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=ei.get(t.strings);return void 0===e&&ei.set(t.strings,e=new oi(t)),e}T(t){Ne(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const s of t)n===e.length?e.push(i=new li(this.k(Ie()),this.k(Ie()),this,this.options)):i=e[n],i._$AI(s),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ci{constructor(t,e,i,n,s){this.type=1,this._$AH=ti,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ti}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const s=this.strings;let o=!1;if(void 0===s)t=ri(this,t,e,0),o=!Ke(t)||t!==this._$AH&&t!==Ye,o&&(this._$AH=t);else{const n=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=ri(this,n[i+r],e,r),a===Ye&&(a=this._$AH[r]),o||(o=!Ke(a)||a!==this._$AH[r]),a===ti?t=ti:t!==ti&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}o&&!n&&this.j(t)}j(t){t===ti?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class hi extends ci{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ti?void 0:t}}const di=Ue?Ue.emptyScript:"";class pi extends ci{constructor(){super(...arguments),this.type=4}j(t){t&&t!==ti?this.element.setAttribute(this.name,di):this.element.removeAttribute(this.name)}}class ui extends ci{constructor(t,e,i,n,s){super(t,e,i,n,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ri(this,t,e,0))&&void 0!==i?i:ti)===Ye)return;const n=this._$AH,s=t===ti&&n!==ti||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==ti&&(n===ti||s);s&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class _i{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ri(this,t)}}const fi=De.litHtmlPolyfillSupport;null==fi||fi(oi,li),(null!==(Me=De.litHtmlVersions)&&void 0!==Me?Me:De.litHtmlVersions=[]).push("2.8.0");var vi,yi;class mi extends Ce{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var n,s;const o=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let r=o._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;o._$litPart$=r=new li(e.insertBefore(Ie(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Ye}}mi.finalized=!0,mi._$litElement$=!0,null===(vi=globalThis.litElementHydrateSupport)||void 0===vi||vi.call(globalThis,{LitElement:mi});const gi=globalThis.litElementPolyfillSupport;null==gi||gi({LitElement:mi});(null!==(yi=globalThis.litElementVersions)&&void 0!==yi?yi:globalThis.litElementVersions=[]).push("3.3.3");var $i;null===($i=window.HTMLSlotElement)||void 0===$i||$i.prototype.assignedElements;const bi=((t,...e)=>{const i=1===t.length?t[0]:e.reduce((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1],t[0]);return new be(i,t,ge)})`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`;let Ei=class extends mi{render(){return Xe`<span><slot></slot></span>`}};var Ai;Ei.styles=[bi],Ei=Object(ve.c)([(Ai="mwc-icon",t=>"function"==typeof t?((t,e)=>(customElements.define(t,e),e))(Ai,t):((t,e)=>{const{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(e){customElements.define(t,e)}}})(Ai,t))],Ei);var wi=function(t,e,i,n){var s,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,i,r):s(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};let ki=class extends rt{constructor(){super(),this.selected=!1,this.hotKeysJoinedView=!0,this.addEventListener("click",this.click)}ensureInView(){requestAnimationFrame(()=>this.scrollIntoView({block:"nearest"}))}click(){this.dispatchEvent(new CustomEvent("actionsSelected",{detail:this.action,bubbles:!0,composed:!0}))}updated(t){t.has("selected")&&this.selected&&this.ensureInView()}render(){let t,e;this.action.mdIcon?t=L`<mwc-icon part="ninja-icon" class="ninja-icon"
81
82
  >${this.action.mdIcon}</mwc-icon
82
- >`:this.action.icon&&(e=ft(this.action.icon||"")),this.action.hotkey&&(t=this.hotKeysJoinedView?this.action.hotkey.split(",").map(e=>{e=e.split("+"),e=r`${function*(t){if(void 0!==t){let e=-1;for(var i of t)-1<e&&(yield"+"),e++,yield i}}(e.map(e=>r`<kbd>${e}</kbd>`))}`;return r`<div class="ninja-hotkey ninja-hotkeys">
83
- ${e}
84
- </div>`}):this.action.hotkey.split(",").map(e=>{e=e.split("+").map(e=>r`<kbd class="ninja-hotkey">${e}</kbd>`);return r`<kbd class="ninja-hotkeys">${e}</kbd>`}));var i={selected:this.selected,"ninja-action":!0};return r`
83
+ >`:this.action.icon&&(t=fe(this.action.icon||"")),this.action.hotkey&&(e=this.hotKeysJoinedView?this.action.hotkey.split(",").map(t=>{const e=t.split("+"),i=L`${function*(t,e){const i="function"==typeof e;if(void 0!==t){let n=-1;for(const s of t)n>-1&&(yield i?e(n):e),n++,yield s}}(e.map(t=>L`<kbd>${t}</kbd>`),"+")}`;return L`<div class="ninja-hotkey ninja-hotkeys">
84
+ ${i}
85
+ </div>`}):this.action.hotkey.split(",").map(t=>{const e=t.split("+").map(t=>L`<kbd class="ninja-hotkey">${t}</kbd>`);return L`<kbd class="ninja-hotkeys">${e}</kbd>`}));const i={selected:this.selected,"ninja-action":!0};return L`
85
86
  <div
86
87
  class="ninja-action"
87
88
  part="ninja-action ${this.selected?"ninja-selected":""}"
88
- class=${Je(i)}
89
+ class=${Kt(i)}
89
90
  >
90
- ${e}
91
- <div class="ninja-title">${this.action.title}</div>
92
91
  ${t}
92
+ <div class="ninja-title">${this.action.title}</div>
93
+ ${e}
93
94
  </div>
94
- `}};e.styles=z`
95
+ `}};ki.styles=l`
95
96
  :host {
96
97
  display: flex;
97
98
  width: 100%;
@@ -160,7 +161,7 @@
160
161
  .ninja-hotkeys + .ninja-hotkeys {
161
162
  margin-left: 1em;
162
163
  }
163
- `,si([o({type:Object})],e.prototype,"action",void 0),si([o({type:Boolean})],e.prototype,"selected",void 0),si([o({type:Boolean})],e.prototype,"hotKeysJoinedView",void 0),si([Ae("ninja-action")],e);function H(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(s=e[a])&&(o=(r<3?s(o):3<r?s(t,i,o):s(t,i))||o);return 3<r&&o&&Object.defineProperty(t,i,o),o}let ri=r` <div class="modal-footer" slot="footer">
164
+ `,wi([ht({type:Object})],ki.prototype,"action",void 0),wi([ht({type:Boolean})],ki.prototype,"selected",void 0),wi([ht({type:Boolean})],ki.prototype,"hotKeysJoinedView",void 0),ki=wi([lt("ninja-action")],ki);const xi=L` <div class="modal-footer" slot="footer">
164
165
  <span class="help">
165
166
  <svg
166
167
  version="1.0"
@@ -215,7 +216,7 @@
215
216
  </svg>
216
217
  move to parent
217
218
  </span>
218
- </div>`,oi=z`
219
+ </div>`,Pi=l`
219
220
  :host {
220
221
  --ninja-width: 640px;
221
222
  --ninja-backdrop-filter: none;
@@ -396,31 +397,33 @@
396
397
  .ninja-examplekey.backspace {
397
398
  opacity: 0.7;
398
399
  }
399
- `;i=class extends s{constructor(){super(...arguments),this.placeholder="Type a command or search...",this.disableHotkeys=!1,this.hideBreadcrumbs=!1,this.openHotkey="cmd+k,ctrl+k",this.navigationUpHotkey="up,shift+tab",this.navigationDownHotkey="down,tab",this.closeHotkey="esc",this.goBackHotkey="backspace",this.selectHotkey="enter",this.hotKeysJoinedView=!1,this.noAutoLoadMdIcons=!1,this.data=[],this.visible=!1,this._bump=!0,this._actionMatches=[],this._search="",this._flatData=[],this._headerRef=We()}open(e={}){this._bump=!0,this.visible=!0,this._headerRef.value.focusSearch(),0<this._actionMatches.length&&(this._selected=this._actionMatches[0]),this.setParent(e.parent)}close(){this._bump=!1,this.visible=!1}setParent(e){this._currentRoot=e||void 0,this._selected=void 0,this._search="",this._headerRef.value.setSearch("")}get breadcrumbs(){var e,t=[];let i=null==(e=this._selected)?void 0:e.parent;if(i)for(t.push(i);i;){let e=this._flatData.find(e=>e.id===i);null!=e&&e.parent&&t.push(e.parent),i=e?e.parent:void 0}return t.reverse()}connectedCallback(){super.connectedCallback(),this.noAutoLoadMdIcons||document.fonts.load("24px Material Icons","apps").then(()=>{}),this._registerInternalHotkeys()}disconnectedCallback(){super.disconnectedCallback(),this._unregisterInternalHotkeys()}_flattern(e,n){let s=[];return(e=e||[]).map(e=>{var t=e.children&&e.children.some(e=>"string"==typeof e),i={...e,parent:e.parent||n};return t||(i.children&&i.children.length&&(n=e.id,s=[...s,...i.children]),i.children=i.children?i.children.map(e=>e.id):[]),i}).concat(s.length?this._flattern(s,n):s)}update(e){e.has("data")&&!this.disableHotkeys&&(this._flatData=this._flattern(this.data),this._flatData.filter(e=>!!e.hotkey).forEach(t=>{k(t.hotkey,e=>{e.preventDefault(),t.handler&&t.handler(t)})})),super.update(e)}_registerInternalHotkeys(){this.openHotkey&&k(this.openHotkey,e=>{e.preventDefault(),this.visible?this.close():this.open()}),this.selectHotkey&&k(this.selectHotkey,e=>{this.visible&&(e.preventDefault(),this._actionSelected(this._actionMatches[this._selectedIndex]))}),this.goBackHotkey&&k(this.goBackHotkey,e=>{!this.visible||this._search||(e.preventDefault(),this._goBack())}),this.navigationDownHotkey&&k(this.navigationDownHotkey,e=>{this.visible&&(e.preventDefault(),this._selectedIndex>=this._actionMatches.length-1?this._selected=this._actionMatches[0]:this._selected=this._actionMatches[this._selectedIndex+1])}),this.navigationUpHotkey&&k(this.navigationUpHotkey,e=>{this.visible&&(e.preventDefault(),0===this._selectedIndex?this._selected=this._actionMatches[this._actionMatches.length-1]:this._selected=this._actionMatches[this._selectedIndex-1])}),this.closeHotkey&&k(this.closeHotkey,()=>{this.visible&&this.close()})}_unregisterInternalHotkeys(){this.openHotkey&&k.unbind(this.openHotkey),this.selectHotkey&&k.unbind(this.selectHotkey),this.goBackHotkey&&k.unbind(this.goBackHotkey),this.navigationDownHotkey&&k.unbind(this.navigationDownHotkey),this.navigationUpHotkey&&k.unbind(this.navigationUpHotkey),this.closeHotkey&&k.unbind(this.closeHotkey)}_actionFocused(e,t){this._selected=e,t.target.ensureInView()}_onTransitionEnd(){this._bump=!1}_goBack(){var e=1<this.breadcrumbs.length?this.breadcrumbs[this.breadcrumbs.length-2]:void 0;this.setParent(e)}render(){var e={bump:this._bump,"modal-content":!0},t={visible:this.visible,modal:!0},i=this._flatData.filter(e=>{var t=new RegExp(this._search,"gi"),i=e.title.match(t)||(null==(i=e.keywords)?void 0:i.match(t));return(!this._currentRoot&&this._search||e.parent===this._currentRoot)&&i}).reduce((e,t)=>e.set(t.section,[...e.get(t.section)||[],t]),new Map);this._actionMatches=[...i.values()].flat(),0<this._actionMatches.length&&-1===this._selectedIndex&&(this._selected=this._actionMatches[0]),0===this._actionMatches.length&&(this._selected=void 0);let n=e=>r` ${He(e,e=>e.id,t=>{var e;return r`<ninja-action
400
+ `;var ji=function(t,e,i,n){var s,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,i,r):s(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};let Oi=class extends rt{constructor(){super(...arguments),this.placeholder="Type a command or search...",this.disableHotkeys=!1,this.hideBreadcrumbs=!1,this.openHotkey="cmd+k,ctrl+k",this.navigationUpHotkey="up,shift+tab",this.navigationDownHotkey="down,tab",this.closeHotkey="esc",this.goBackHotkey="backspace",this.selectHotkey="enter",this.hotKeysJoinedView=!1,this.noAutoLoadMdIcons=!1,this.data=[],this.visible=!1,this._bump=!0,this._actionMatches=[],this._search="",this._flatData=[],this._headerRef=Rt()}open(t={}){this._bump=!0,this.visible=!0,this._headerRef.value.focusSearch(),this._actionMatches.length>0&&(this._selected=this._actionMatches[0]),this.setParent(t.parent)}close(){this._bump=!1,this.visible=!1}setParent(t){this._currentRoot=t||void 0,this._selected=void 0,this._search="",this._headerRef.value.setSearch("")}get breadcrumbs(){var t;const e=[];let i=null===(t=this._selected)||void 0===t?void 0:t.parent;if(i)for(e.push(i);i;){const t=this._flatData.find(t=>t.id===i);(null==t?void 0:t.parent)&&e.push(t.parent),i=t?t.parent:void 0}return e.reverse()}connectedCallback(){super.connectedCallback(),this.noAutoLoadMdIcons||document.fonts.load("24px Material Icons","apps").then(()=>{}),this._registerInternalHotkeys()}disconnectedCallback(){super.disconnectedCallback(),this._unregisterInternalHotkeys()}_flattern(t,e){let i=[];return t||(t=[]),t.map(t=>{const n=t.children&&t.children.some(t=>"string"==typeof t),s={...t,parent:t.parent||e};return n||(s.children&&s.children.length&&(e=t.id,i=[...i,...s.children]),s.children=s.children?s.children.map(t=>t.id):[]),s}).concat(i.length?this._flattern(i,e):i)}update(t){t.has("data")&&!this.disableHotkeys&&(this._flatData=this._flattern(this.data),this._flatData.filter(t=>!!t.hotkey).forEach(t=>{de(t.hotkey,e=>{e.preventDefault(),t.handler&&t.handler(t)})})),super.update(t)}_registerInternalHotkeys(){this.openHotkey&&de(this.openHotkey,t=>{t.preventDefault(),this.visible?this.close():this.open()}),this.selectHotkey&&de(this.selectHotkey,t=>{this.visible&&(t.preventDefault(),this._actionSelected(this._actionMatches[this._selectedIndex]))}),this.goBackHotkey&&de(this.goBackHotkey,t=>{this.visible&&(this._search||(t.preventDefault(),this._goBack()))}),this.navigationDownHotkey&&de(this.navigationDownHotkey,t=>{this.visible&&(t.preventDefault(),this._selectedIndex>=this._actionMatches.length-1?this._selected=this._actionMatches[0]:this._selected=this._actionMatches[this._selectedIndex+1])}),this.navigationUpHotkey&&de(this.navigationUpHotkey,t=>{this.visible&&(t.preventDefault(),0===this._selectedIndex?this._selected=this._actionMatches[this._actionMatches.length-1]:this._selected=this._actionMatches[this._selectedIndex-1])}),this.closeHotkey&&de(this.closeHotkey,()=>{this.visible&&this.close()})}_unregisterInternalHotkeys(){this.openHotkey&&de.unbind(this.openHotkey),this.selectHotkey&&de.unbind(this.selectHotkey),this.goBackHotkey&&de.unbind(this.goBackHotkey),this.navigationDownHotkey&&de.unbind(this.navigationDownHotkey),this.navigationUpHotkey&&de.unbind(this.navigationUpHotkey),this.closeHotkey&&de.unbind(this.closeHotkey)}_actionFocused(t,e){this._selected=t,e.target.ensureInView()}_onTransitionEnd(){this._bump=!1}_goBack(){const t=this.breadcrumbs.length>1?this.breadcrumbs[this.breadcrumbs.length-2]:void 0;this.setParent(t)}render(){const t={bump:this._bump,"modal-content":!0},e={visible:this.visible,modal:!0},i=this._flatData.filter(t=>{var e;const i=new RegExp(this._search,"gi"),n=t.title.match(i)||(null===(e=t.keywords)||void 0===e?void 0:e.match(i));return(!this._currentRoot&&this._search||t.parent===this._currentRoot)&&n}).reduce((t,e)=>t.set(e.section,[...t.get(e.section)||[],e]),new Map);this._actionMatches=[...i.values()].flat(),this._actionMatches.length>0&&-1===this._selectedIndex&&(this._selected=this._actionMatches[0]),0===this._actionMatches.length&&(this._selected=void 0);const n=t=>L` ${jt(t,t=>t.id,t=>{var e;return L`<ninja-action
400
401
  exportparts="ninja-action,ninja-selected,ninja-icon"
401
- .selected=${Te(t.id===(null==(e=this._selected)?void 0:e.id))}
402
+ .selected=${Ot(t.id===(null===(e=this._selected)||void 0===e?void 0:e.id))}
402
403
  .hotKeysJoinedView=${this.hotKeysJoinedView}
403
404
  @mouseover=${e=>this._actionFocused(t,e)}
404
- @actionsSelected=${e=>this._actionSelected(e.detail)}
405
+ @actionsSelected=${t=>this._actionSelected(t.detail)}
405
406
  .action=${t}
406
- ></ninja-action>`})}`,s=[];return i.forEach((e,t)=>{t=t?r`<div class="group-header">${t}</div>`:void 0;s.push(r`${t}${n(e)}`)}),r`
407
- <div @click=${this._overlayClick} class=${Je(t)}>
408
- <div class=${Je(e)} @animationend=${this._onTransitionEnd}>
407
+ ></ninja-action>`})}`,s=[];return i.forEach((t,e)=>{const i=e?L`<div class="group-header">${e}</div>`:void 0;s.push(L`${i}${n(t)}`)}),L`
408
+ <div @click=${this._overlayClick} class=${Kt(e)}>
409
+ <div class=${Kt(t)} @animationend=${this._onTransitionEnd}>
409
410
  <ninja-header
410
411
  exportparts="ninja-input,ninja-input-wrapper"
411
- ${Fe(this._headerRef)}
412
+ ${It(this._headerRef)}
412
413
  .placeholder=${this.placeholder}
413
414
  .hideBreadcrumbs=${this.hideBreadcrumbs}
414
415
  .breadcrumbs=${this.breadcrumbs}
415
416
  @change=${this._handleInput}
416
- @setParent=${e=>this.setParent(e.detail.parent)}
417
+ @setParent=${t=>this.setParent(t.detail.parent)}
417
418
  @close=${this.close}
418
419
  >
419
420
  </ninja-header>
420
421
  <div class="modal-body">
421
422
  <div class="actions-list" part="actions-list">${s}</div>
422
423
  </div>
423
- <slot name="footer"> ${ri} </slot>
424
+ <slot name="footer"> ${xi} </slot>
424
425
  </div>
425
426
  </div>
426
- `}get _selectedIndex(){return this._selected?this._actionMatches.indexOf(this._selected):-1}_actionSelected(t){var e;if(this.dispatchEvent(new CustomEvent("selected",{detail:{search:this._search,action:t},bubbles:!0,composed:!0})),t){if(t.children&&0<(null==(e=t.children)?void 0:e.length)&&(this._currentRoot=t.id,this._search=""),this._headerRef.value.setSearch(""),this._headerRef.value.focusSearch(),t.handler){let e=t.handler(t);null!=e&&e.keepOpen||this.close()}this._bump=!0}}async _handleInput(e){this._search=e.detail.search,await this.updateComplete,this.dispatchEvent(new CustomEvent("change",{detail:{search:this._search,actions:this._actionMatches},bubbles:!0,composed:!0}))}_overlayClick(e){null!=(e=e.target)&&e.classList.contains("modal")&&this.close()}};i.styles=[oi],H([o({type:String})],i.prototype,"placeholder",void 0),H([o({type:Boolean})],i.prototype,"disableHotkeys",void 0),H([o({type:Boolean})],i.prototype,"hideBreadcrumbs",void 0),H([o()],i.prototype,"openHotkey",void 0),H([o()],i.prototype,"navigationUpHotkey",void 0),H([o()],i.prototype,"navigationDownHotkey",void 0),H([o()],i.prototype,"closeHotkey",void 0),H([o()],i.prototype,"goBackHotkey",void 0),H([o()],i.prototype,"selectHotkey",void 0),H([o({type:Boolean})],i.prototype,"hotKeysJoinedView",void 0),H([o({type:Boolean})],i.prototype,"noAutoLoadMdIcons",void 0),H([o({type:Array,hasChanged:()=>!0})],i.prototype,"data",void 0),H([a()],i.prototype,"visible",void 0),H([a()],i.prototype,"_bump",void 0),H([a()],i.prototype,"_actionMatches",void 0),H([a()],i.prototype,"_search",void 0),H([a()],i.prototype,"_currentRoot",void 0),H([a()],i.prototype,"_flatData",void 0),H([a()],i.prototype,"breadcrumbs",null),H([a()],i.prototype,"_selected",void 0),H([Ae("ninja-keys")],i)}}]);
427
+ `}get _selectedIndex(){return this._selected?this._actionMatches.indexOf(this._selected):-1}_actionSelected(t){var e;if(this.dispatchEvent(new CustomEvent("selected",{detail:{search:this._search,action:t},bubbles:!0,composed:!0})),t){if(t.children&&(null===(e=t.children)||void 0===e?void 0:e.length)>0&&(this._currentRoot=t.id,this._search=""),this._headerRef.value.setSearch(""),this._headerRef.value.focusSearch(),t.handler){const e=t.handler(t);(null==e?void 0:e.keepOpen)||this.close()}this._bump=!0}}async _handleInput(t){this._search=t.detail.search,await this.updateComplete,this.dispatchEvent(new CustomEvent("change",{detail:{search:this._search,actions:this._actionMatches},bubbles:!0,composed:!0}))}_overlayClick(t){var e;(null===(e=t.target)||void 0===e?void 0:e.classList.contains("modal"))&&this.close()}};Oi.styles=[Pi],ji([ht({type:String})],Oi.prototype,"placeholder",void 0),ji([ht({type:Boolean})],Oi.prototype,"disableHotkeys",void 0),ji([ht({type:Boolean})],Oi.prototype,"hideBreadcrumbs",void 0),ji([ht()],Oi.prototype,"openHotkey",void 0),ji([ht()],Oi.prototype,"navigationUpHotkey",void 0),ji([ht()],Oi.prototype,"navigationDownHotkey",void 0),ji([ht()],Oi.prototype,"closeHotkey",void 0),ji([ht()],Oi.prototype,"goBackHotkey",void 0),ji([ht()],Oi.prototype,"selectHotkey",void 0),ji([ht({type:Boolean})],Oi.prototype,"hotKeysJoinedView",void 0),ji([ht({type:Boolean})],Oi.prototype,"noAutoLoadMdIcons",void 0),ji([ht({type:Array,hasChanged:()=>!0})],Oi.prototype,"data",void 0),ji([dt()],Oi.prototype,"visible",void 0),ji([dt()],Oi.prototype,"_bump",void 0),ji([dt()],Oi.prototype,"_actionMatches",void 0),ji([dt()],Oi.prototype,"_search",void 0),ji([dt()],Oi.prototype,"_currentRoot",void 0),ji([dt()],Oi.prototype,"_flatData",void 0),ji([dt()],Oi.prototype,"breadcrumbs",null),ji([dt()],Oi.prototype,"_selected",void 0),Oi=ji([lt("ninja-keys")],Oi)}}]);
428
+ //# sourceMappingURL=async-feffery_shortcut_panel.js.map
429
+ //# sourceMappingURL=async-feffery_shortcut_panel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"async-feffery_shortcut_panel.js","sourceRoot":""}