feffery_utils_components 0.2.0-rc11 → 0.2.0-rc13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESCRIPTION +1 -1
- package/NAMESPACE +2 -0
- package/Project.toml +1 -1
- package/README.md +1 -1
- package/assets/demo.jpg +0 -0
- package/feffery_utils_components/FefferySetFavicon.py +45 -0
- package/feffery_utils_components/FefferySetTitle.py +7 -4
- package/feffery_utils_components/FefferySliderCaptcha.py +109 -0
- package/feffery_utils_components/__init__.py +2 -1
- package/feffery_utils_components/_imports_.py +4 -0
- package/feffery_utils_components/async-feffery_animated_3d_background_p5.js +1 -1
- package/feffery_utils_components/async-feffery_animated_3d_background_three.js +2 -2
- package/feffery_utils_components/async-feffery_animated_image.js +1 -1
- package/feffery_utils_components/async-feffery_aplayer.js +1 -1
- package/feffery_utils_components/async-feffery_auto_animate.js +1 -1
- package/feffery_utils_components/async-feffery_auto_fit.js +1 -1
- package/feffery_utils_components/async-feffery_captcha.js +1 -1
- package/feffery_utils_components/async-feffery_color_pickers.js +1 -1
- package/feffery_utils_components/async-feffery_dom2image.js +1 -1
- package/feffery_utils_components/async-feffery_dplayer.js +1 -1
- package/feffery_utils_components/async-feffery_emoji_picker.js +1 -1
- package/feffery_utils_components/async-feffery_excel_preview.js +1 -1
- package/feffery_utils_components/async-feffery_extra_spinner.js +1 -1
- package/feffery_utils_components/async-feffery_fancy_button.js +1 -1
- package/feffery_utils_components/async-feffery_grid.js +1 -1
- package/feffery_utils_components/async-feffery_image_cropper.js +1 -1
- package/feffery_utils_components/async-feffery_json_viewer.js +1 -1
- package/feffery_utils_components/async-feffery_local_large_storage.js +1 -1
- package/feffery_utils_components/async-feffery_markdown_editor.js +2 -2
- package/feffery_utils_components/async-feffery_motion.js +1 -1
- package/feffery_utils_components/async-feffery_music_player.js +1 -1
- package/feffery_utils_components/async-feffery_photo_sphere_viewer.js +1 -1
- package/feffery_utils_components/async-feffery_resizable.js +1 -1
- package/feffery_utils_components/async-feffery_rich_text_editor.js +2 -2
- package/feffery_utils_components/async-feffery_rnd.js +1 -1
- package/feffery_utils_components/async-feffery_seamless_scroll.js +1 -1
- package/feffery_utils_components/async-feffery_shortcut_panel.js +1 -1
- package/feffery_utils_components/async-feffery_slider_captcha.js +1 -0
- package/feffery_utils_components/async-feffery_slider_captcha.js.LICENSE.txt +1 -0
- package/feffery_utils_components/async-feffery_sortable.js +1 -1
- package/feffery_utils_components/async-feffery_word_preview.js +1 -1
- package/feffery_utils_components/async-fuc-shared.js +2 -2
- package/feffery_utils_components/feffery_utils_components.min.js +2 -2
- package/feffery_utils_components/metadata.json +298 -1
- package/feffery_utils_components/package-info.json +3 -1
- package/package.json +3 -1
- package/src/lib/components/FefferySetFavicon.react.js +58 -0
- package/src/lib/components/FefferySetTitle.react.js +21 -6
- package/src/lib/components/FefferySliderCaptcha.react.js +160 -0
- package/src/lib/fragments/FefferySliderCaptcha.react.js +102 -0
- package/src/lib/index.js +5 -1
- package/usage.py +20 -48
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[27],{500: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_FefferyShortcutPanel_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(176),lodash__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(22),lodash__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__),ninja_keys__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(893),_components_FefferyStyle_react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(90);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 n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach(function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty(e,t,n){(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:String(e)}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=_typeof(n))return n;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_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_FefferyShortcutPanel_react__WEBPACK_IMPORTED_MODULE_1__.b,FefferyShortcutPanel.propTypes=_components_FefferyShortcutPanel_react__WEBPACK_IMPORTED_MODULE_1__.c},893:function(R,B,e){"use strict";function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e){return(I="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 U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e){if("object"!=I(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);t=t.call(e,"string");if("object"!=I(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e);return"symbol"==I(e)?e:String(e)}(r.key),r)}}function K(r){for(var e=arguments.length,t=new Array(1<e?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];var o=1===r.length?r[0]:t.reduce(function(e,t,n){return e+function(){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.")}()+r[n+1]},r[0]);return new F(o,r,W)}var N=window,z=N.ShadowRoot&&(void 0===N.ShadyCSS||N.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,W=Symbol(),V=new WeakMap,F=(U((t=q).prototype,[{key:"styleSheet",get:function(){var e,t=this.o,n=this.t;return z&&void 0===t&&void 0===(t=(e=void 0!==n&&1===n.length)?V.get(n):t)&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e)&&V.set(n,t),t}},{key:"toString",value:function(){return this.cssText}}]),Object.defineProperty(t,"prototype",{writable:!1}),q),G=z?function(e){return e}:function(e){if(e instanceof CSSStyleSheet){var t,n="",r=function(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return o=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){o=!0,n=e},f:function(){try{r||null==a.return||a.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(a=function(e){var t;if(e)return"string"==typeof e?H(e,void 0):"Map"===(t="Object"===(t=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?H(e,void 0):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.cssRules);try{for(r.s();!(t=r.n()).done;)n+=t.value.cssText}catch(e){r.e(e)}finally{r.f()}return new F("string"==typeof n?n:n+"",void 0,W)}return e};function q(e,t,n){if(!(this instanceof q))throw new TypeError("Cannot call a class as a function");if(this._$cssResult$=!0,n!==W)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}function J(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return o=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){o=!0,n=e},f:function(){try{r||null==a.return||a.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(a=Q(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Z(e){return function(e){if(Array.isArray(e))return Y(e)}(e)||function(){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}()||Q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){var n;if(e)return"string"==typeof e?Y(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(e,t):void 0}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(e){return(O="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 X(){X=function(){return a};var l,a={},e=Object.prototype,c=e.hasOwnProperty,u=Object.defineProperty||function(e,t,n){e[t]=n.value},t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",n=t.asyncIterator||"@@asyncIterator",o=t.toStringTag||"@@toStringTag";function i(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(l){i=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o,i,a,s,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype),r=new j(r||[]);return u(t,"_invoke",{value:(o=e,i=n,a=r,s=d,function(e,t){if(s===p)throw new Error("Generator is already running");if(s===f){if("throw"===e)throw t;return{value:l,done:!0}}for(a.method=e,a.arg=t;;){var n=a.delegate;if(n){n=function e(t,n){var r=n.method,o=t.iterator[r];if(o===l)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=l,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),_;r=h(o,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,_;o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=l),n.delegate=null,_):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,_)}(n,a);if(n){if(n===_)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===d)throw s=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=p;n=h(o,i,a);if("normal"===n.type){if(s=a.done?f:"suspendedYield",n.arg===_)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s=f,a.method="throw",a.arg=n.arg)}})}),t}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}a.wrap=s;var d="suspendedStart",p="executing",f="completed",_={};function y(){}function v(){}function m(){}var t={},b=(i(t,r,function(){return this}),Object.getPrototypeOf),b=b&&b(b(A([]))),g=(b&&b!==e&&c.call(b,r)&&(t=b),m.prototype=y.prototype=Object.create(t));function w(e){["next","throw","return"].forEach(function(t){i(e,t,function(e){return this._invoke(t,e)})})}function E(a,s){var t;u(this,"_invoke",{value:function(n,r){function e(){return new s(function(e,t){!function t(e,n,r,o){var i,e=h(a[e],a,n);if("throw"!==e.type)return(n=(i=e.arg).value)&&"object"==O(n)&&c.call(n,"__await")?s.resolve(n.__await).then(function(e){t("next",e,r,o)},function(e){t("throw",e,r,o)}):s.resolve(n).then(function(e){i.value=e,r(i)},function(e){return t("throw",e,r,o)});o(e.arg)}(n,r,e,t)})}return t=t?t.then(e,e):e()}})}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function $(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function A(t){if(t||""===t){var n,e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return n=-1,(e=function e(){for(;++n<t.length;)if(c.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=l,e.done=!0,e}).next=e}throw new TypeError(O(t)+" is not iterable")}return u(g,"constructor",{value:v.prototype=m,configurable:!0}),u(m,"constructor",{value:v,configurable:!0}),v.displayName=i(m,o,"GeneratorFunction"),a.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,i(e,o,"GeneratorFunction")),e.prototype=Object.create(g),e},a.awrap=function(e){return{__await:e}},w(E.prototype),i(E.prototype,n,function(){return this}),a.AsyncIterator=E,a.async=function(e,t,n,r,o){void 0===o&&(o=Promise);var i=new E(s(e,t,n,r),o);return a.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},w(g),i(g,o,"Generator"),i(g,r,function(){return this}),i(g,"toString",function(){return"[object Generator]"}),a.keys=function(e){var t,n=Object(e),r=[];for(t in n)r.push(t);return r.reverse(),function e(){for(;r.length;){var t=r.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},a.values=A,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach($),!e)for(var t in this)"t"===t.charAt(0)&&c.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=l)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function e(e,t){return i.type="throw",i.arg=n,r.next=e,t&&(r.method="next",r.arg=l),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var o=this.tryEntries[t],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=c.call(o,"catchLoc"),s=c.call(o,"finallyLoc");if(a&&s){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&c.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}var i=(o=o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc?null:o)?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,_):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),_},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),$(n),_}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n,r,o=this.tryEntries[t];if(o.tryLoc===e)return"throw"===(n=o.completion).type&&(r=n.arg,$(o)),r}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=l),_}},a}function ee(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e){if("object"!=O(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);t=t.call(e,"string");if("object"!=O(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e);return"symbol"==O(e)?e:String(e)}(r.key),r)}}function ne(e){var n="function"==typeof Map?new Map:void 0;return function(e){if(null===e||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return function(e,t,n){var r;return re()?Reflect.construct.apply(null,arguments):((r=[null]).push.apply(r,t),t=new(e.bind.apply(e,r)),n&&oe(t,n.prototype),t)}(e,arguments,ie(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),oe(t,e)}(e)}function re(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(re=function(){return!!e})()}function oe(e,t){return(oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var t=window,n=t.trustedTypes,ae=n?n.emptyScript:"",n=t.reactiveElementPolyfillSupport,se={toAttribute:function(e,t){switch(t){case Boolean:e=e?ae:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){var n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},le=function(e,t){return t!==e&&(t==t||e==e)},ce={attribute:!0,type:String,converter:se,reflect:!1,hasChanged:le},r=function(e){function t(){var e;if(this instanceof t)return(e=function(e,t,n){t=ie(t);var r=e;if(!(t=re()?Reflect.construct(t,n||[],ie(e).constructor):t.apply(e,n))||"object"!==O(t)&&"function"!=typeof t){if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(t=r))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}(this,t))._$Ei=new Map,e.isUpdatePending=!1,e.hasUpdated=!1,e._$El=null,e._$Eu(),e;throw new TypeError("Cannot call a class as a function")}var n,s,r,o=t;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");return o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&oe(o,e),o=t,e=[{key:"_$Eu",value:function(){var e,t=this;this._$E_=new Promise(function(e){return t.enableUpdating=e}),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null!=(e=this.constructor.h)&&e.forEach(function(e){return e(t)})}},{key:"addController",value:function(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)}},{key:"removeController",value:function(e){var t;null!=(t=this._$ES)&&t.splice(this._$ES.indexOf(e)>>>0,1)}},{key:"_$Eg",value:function(){var n=this;this.constructor.elementProperties.forEach(function(e,t){n.hasOwnProperty(t)&&(n._$Ei.set(t,n[t]),delete n[t])})}},{key:"createRenderRoot",value:function(){var r,e,t=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return r=t,e=this.constructor.elementStyles,z?r.adoptedStyleSheets=e.map(function(e){return e instanceof CSSStyleSheet?e:e.styleSheet}):e.forEach(function(e){var t=document.createElement("style"),n=N.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=e.cssText,r.appendChild(t)}),t}},{key:"connectedCallback",value:function(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null!=(e=this._$ES)&&e.forEach(function(e){var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null!=(e=this._$ES)&&e.forEach(function(e){var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}},{key:"attributeChangedCallback",value:function(e,t,n){this._$AK(e,n)}},{key:"_$EO",value:function(e,t){var n,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:ce,o=this.constructor._$Ep(e,r);void 0!==o&&!0===r.reflect&&(n=(void 0!==(null==(n=r.converter)?void 0:n.toAttribute)?r.converter:se).toAttribute(t,r.type),this._$El=e,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null)}},{key:"_$AK",value:function(e,t){var n,r=this.constructor,e=r._$Ev.get(e);void 0!==e&&this._$El!==e&&(n="function"==typeof(r=r.getPropertyOptions(e)).converter?{fromAttribute:r.converter}:void 0!==(null==(n=r.converter)?void 0:n.fromAttribute)?r.converter:se,this._$El=e,this[e]=n.fromAttribute(t,r.type),this._$El=null)}},{key:"requestUpdate",value:function(e,t,n){var r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||le)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}},{key:"_$Ej",value:(s=X().mark(function e(){var t;return X().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.isUpdatePending=!0,e.prev=1,e.next=4,this._$E_;case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),Promise.reject(e.t0);case 9:if(t=this.scheduleUpdate(),e.t1=null!=t,e.t1)return e.next=14,t;e.next=14;break;case 14:return e.abrupt("return",!this.isUpdatePending);case 15:case"end":return e.stop()}},e,this,[[1,6]])}),r=function(){var e=this,a=arguments;return new Promise(function(t,n){var r=s.apply(e,a);function o(e){ee(r,t,n,o,i,"next",e)}function i(e){ee(r,t,n,o,i,"throw",e)}o(void 0)})},function(){return r.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){var e,n=this;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach(function(e,t){return n[t]=e}),this._$Ei=void 0);var t=!1,r=this._$AL;try{(t=this.shouldUpdate(r))?(this.willUpdate(r),null!=(e=this._$ES)&&e.forEach(function(e){var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(r)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(r)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null!=(t=this._$ES)&&t.forEach(function(e){var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{key:"_$Ek",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$E_}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var n=this;void 0!==this._$EC&&(this._$EC.forEach(function(e,t){return n._$EO(t,n[t],e)}),this._$EC=void 0),this._$Ek()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],n=[{key:"addInitializer",value:function(e){var t;this.finalize(),(null!=(t=this.h)?t:this.h=[]).push(e)}},{key:"observedAttributes",get:function(){var n=this,r=(this.finalize(),[]);return this.elementProperties.forEach(function(e,t){e=n._$Ep(t,e);void 0!==e&&(n._$Ev.set(e,t),r.push(e))}),r}},{key:"createProperty",value:function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ce;n.state&&(n.attribute=!1),this.finalize(),this.elementProperties.set(e,n),n.noAccessor||this.prototype.hasOwnProperty(e)||(t="symbol"==O(e)?Symbol():"__"+e,void 0!==(t=this.getPropertyDescriptor(e,t,n))&&Object.defineProperty(this.prototype,e,t))}},{key:"getPropertyDescriptor",value:function(n,r,o){return{get:function(){return this[r]},set:function(e){var t=this[n];this[r]=e,this.requestUpdate(n,t,o)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){return this.elementProperties.get(e)||ce}},{key:"finalize",value:function(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=Z(e.h)),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){var t,n=this.properties,r=J([].concat(Z(Object.getOwnPropertyNames(n)),Z(Object.getOwnPropertySymbols(n))));try{for(r.s();!(t=r.n()).done;){var o=t.value;this.createProperty(o,n[o])}}catch(e){r.e(e)}finally{r.f()}}return this.elementStyles=this.finalizeStyles(this.styles),!0}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var n,r=J(new Set(e.flat(1/0).reverse()));try{for(r.s();!(n=r.n()).done;){var o=n.value;t.unshift(G(o))}}catch(e){r.e(e)}finally{r.f()}}else void 0!==e&&t.push(G(e));return t}},{key:"_$Ep",value:function(e,t){t=t.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof e?e.toLowerCase():void 0}}],te(o.prototype,e),te(o,n),Object.defineProperty(o,"prototype",{writable:!1}),t}(ne(HTMLElement));r.finalized=!0,r.elementProperties=new Map,r.elementStyles=[],r.shadowRootOptions={mode:"open"},null!=n&&n({ReactiveElement:r}),(null!=(n=t.reactiveElementVersions)?n:t.reactiveElementVersions=[]).push("1.6.3");const ue=window,c=ue.trustedTypes,he=c?c.createPolicy("lit-html",{createHTML:e=>e}):void 0,d=`lit$${(Math.random()+"").slice(9)}$`,de="?"+d,pe=`<${de}>`,l=document,u=()=>l.createComment(""),h=e=>null===e||"object"!=typeof e&&"function"!=typeof e,fe=Array.isArray,_e=e=>fe(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]),p=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ye=/-->/g,ve=/>/g,f=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),me=/'/g,be=/"/g,ge=/^(?:script|style|textarea|title)$/i,we=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),i=we(1),_=(we(2),Symbol.for("lit-noChange")),y=Symbol.for("lit-nothing"),Ee=new WeakMap,v=l.createTreeWalker(l,129,null,!1);function ke(e,t){if(Array.isArray(e)&&e.hasOwnProperty("raw"))return void 0!==he?he.createHTML(t):t;throw Error("invalid template strings array")}const $e=(i,e)=>{const a=i.length-1,s=[];let l,c=2===e?"<svg>":"",u=p;for(let o=0;o<a;o++){const a=i[o];let e,t,n=-1,r=0;for(;r<a.length&&(u.lastIndex=r,null!==(t=u.exec(a)));)r=u.lastIndex,u===p?"!--"===t[1]?u=ye:void 0!==t[1]?u=ve:void 0!==t[2]?(ge.test(t[2])&&(l=RegExp("</"+t[2],"g")),u=f):void 0!==t[3]&&(u=f):u===f?">"===t[0]?(u=null!=l?l:p,n=-1):void 0===t[1]?n=-2:(n=u.lastIndex-t[2].length,e=t[1],u=void 0===t[3]?f:'"'===t[3]?be:me):u===be||u===me?u=f:u===ye||u===ve?u=p:(u=f,l=void 0);var h=u===f&&i[o+1].startsWith("/>")?" ":"";c+=u===p?a+pe:0<=n?(s.push(e),a.slice(0,n)+"$lit$"+a.slice(n)+d+h):a+d+(-2===n?(s.push(void 0),o):h)}return[ke(i,c+(i[a]||"<?>")+(2===e?"</svg>":"")),s]};class je{constructor({strings:t,_$litType$:n},e){var r;this.parts=[];let o=0,i=0;var a=t.length-1,s=this.parts,[t,l]=$e(t,n);if(this.el=je.createElement(t,e),v.currentNode=this.el.content,2===n){const t=this.el.content,n=t.firstChild;n.remove(),t.append(...n.childNodes)}for(;null!==(r=v.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const n of r.getAttributeNames())if(n.endsWith("$lit$")||n.startsWith(d)){const e=l[i++];if(t.push(n),void 0!==e){const t=r.getAttribute(e.toLowerCase()+"$lit$").split(d),n=/([.?@])?(.*)/.exec(e);s.push({type:1,index:o,name:n[2],strings:t,ctor:"."===n[1]?Oe:"?"===n[1]?Pe:"@"===n[1]?Se:g})}else s.push({type:6,index:o})}for(const n of t)r.removeAttribute(n)}if(ge.test(r.tagName)){const t=r.textContent.split(d),n=t.length-1;if(0<n){r.textContent=c?c.emptyScript:"";for(let e=0;e<n;e++)r.append(t[e],u()),v.nextNode(),s.push({type:2,index:++o});r.append(t[n],u())}}}else if(8===r.nodeType)if(r.data===de)s.push({type:2,index:o});else{let e=-1;for(;-1!==(e=r.data.indexOf(d,e+1));)s.push({type:7,index:o}),e+=d.length-1}o++}}static createElement(e,t){var n=l.createElement("template");return n.innerHTML=e,n}}function m(t,n,r=t,o){var i;if(n!==_){let e=void 0!==o?null==(a=r._$Co)?void 0:a[o]:r._$Cl;var a=h(n)?void 0:n._$litDirective$;(null==e?void 0:e.constructor)!==a&&(null!=(i=null==e?void 0:e._$AO)&&i.call(e,!1),void 0===a?e=void 0:(e=new a(t))._$AT(t,r,o),void 0!==o?(null!=(i=r._$Co)?i:r._$Co=[])[o]=e:r._$Cl=e),void 0!==e&&(n=m(t,e._$AS(t,n.values),e,o))}return n}class Ae{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:n}=this._$AD,r=(null!=(r=null==t?void 0:t.creationScope)?r:l).importNode(e,!0);v.currentNode=r;let o=v.nextNode(),i=0,a=0,s=n[0];for(;void 0!==s;){if(i===s.index){let e;2===s.type?e=new b(o,o.nextSibling,this,t):1===s.type?e=new s.ctor(o,s.name,s.strings,this,t):6===s.type&&(e=new Me(o,this,t)),this._$AV.push(e),s=n[++a]}i!==(null==s?void 0:s.index)&&(o=v.nextNode(),i++)}return v.currentNode=l,r}v(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class b{constructor(e,t,n,r){this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cp=null==(e=null==r?void 0:r.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),h(e)?e===y||null==e||""===e?(this._$AH!==y&&this._$AR(),this._$AH=y):e!==this._$AH&&e!==_&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):_e(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!==y&&h(this._$AH)?this._$AA.nextSibling.data=e:this.$(l.createTextNode(e)),this._$AH=e}g(e){var t,{values:n,_$litType$:r}=e,r="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=je.createElement(ke(r.h,r.h[0]),this.options)),r);if((null==(t=this._$AH)?void 0:t._$AD)===r)this._$AH.v(n);else{const e=new Ae(r,this),t=e.u(this.options);e.v(n),this.$(t),this._$AH=e}}_$AC(e){let t=Ee.get(e.strings);return void 0===t&&Ee.set(e.strings,t=new je(e)),t}T(e){fe(this._$AH)||(this._$AH=[],this._$AR());var t=this._$AH;let n,r=0;for(const o of e)r===t.length?t.push(n=new b(this.k(u()),this.k(u()),this,this.options)):n=t[r],n._$AI(o),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var n;for(null!=(n=this._$AP)&&n.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null!=(t=this._$AP))&&t.call(this,e)}}class g{constructor(e,t,n,r,o){this.type=1,this._$AH=y,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=o,2<n.length||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(n,r=this,o,i){var a=this.strings;let s=!1;if(void 0===a)n=m(this,n,r,0),(s=!h(n)||n!==this._$AH&&n!==_)&&(this._$AH=n);else{const i=n;let e,t;for(n=a[0],e=0;e<a.length-1;e++)(t=m(this,i[o+e],r,e))===_&&(t=this._$AH[e]),s=s||!h(t)||t!==this._$AH[e],t===y?n=y:n!==y&&(n+=(null!=t?t:"")+a[e+1]),this._$AH[e]=t}s&&!i&&this.j(n)}j(e){e===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Oe extends g{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===y?void 0:e}}const xe=c?c.emptyScript:"";class Pe extends g{constructor(){super(...arguments),this.type=4}j(e){e&&e!==y?this.element.setAttribute(this.name,xe):this.element.removeAttribute(this.name)}}class Se extends g{constructor(e,t,n,r,o){super(e,t,n,r,o),this.type=5}_$AI(e,t=this){var n,r;(e=null!=(t=m(this,e,t,0))?t:y)!==_&&(t=this._$AH,n=e===y&&t!==y||e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive,r=e!==y&&(t===y||n),n&&this.element.removeEventListener(this.name,this,t),r&&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 Me{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){m(this,e)}}var n={O:"$lit$",P:d,A:de,C:1,M:$e,L:Ae,R:_e,D:m,I:b,V:g,H:Pe,N:Se,U:Oe,F:Me},t=ue.litHtmlPolyfillSupport;null!=t&&t(je,b),(null!=(t=ue.litHtmlVersions)?t:ue.litHtmlVersions=[]).push("2.8.0");class o extends r{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,n)=>{var r,o=null!=(o=null==n?void 0:n.renderBefore)?o:t;let i=o._$litPart$;if(void 0===i){const e=null!=(r=null==n?void 0:n.renderBefore)?r:null;o._$litPart$=i=new b(t.insertBefore(u(),e),e,void 0,null!=n?n:{})}return i._$AI(e),i})(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 _}}o.finalized=!0,o._$litElement$=!0,null!=(t=globalThis.litElementHydrateSupport)&&t.call(globalThis,{LitElement:o});function Ce(r){return function(e){return"function"==typeof e?(n=e,customElements.define(r,n),n):(t=r,{kind:e.kind,elements:e.elements,finisher:function(e){customElements.define(t,e)}});var t,n}}var r=globalThis.litElementPolyfillSupport;null!=r&&r({LitElement:o}),(null!=(t=globalThis.litElementVersions)?t:globalThis.litElementVersions=[]).push("3.3.3");function De(e){return(De="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 Le(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Te(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Le(Object(i),!0).forEach(function(e){var t,n,r;t=o,n=i[e=e],r=function(e){if("object"!=De(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);t=t.call(e,"string");if("object"!=De(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e),(e="symbol"==De(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):Le(Object(i)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))})}return o}function a(o){return function(e,t){return void 0!==t?void e.constructor.createProperty(t,o):(n=o,"method"!==(r=e).kind||!r.descriptor||"value"in r.descriptor?{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:r.key,initializer:function(){"function"==typeof r.initializer&&(this[r.key]=r.initializer.call(this))},finisher:function(e){e.createProperty(r.key,n)}}:Te(Te({},r),{},{finisher:function(e){e.createProperty(r.key,n)}}));var n,r}}function Re(e){return(Re="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 Be(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function He(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Be(Object(i),!0).forEach(function(e){var t,n,r;t=o,n=i[e=e],r=function(e){if("object"!=Re(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);t=t.call(e,"string");if("object"!=Re(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e),(e="symbol"==Re(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):Be(Object(i)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))})}return o}function s(e){return a(He(He({},e),{},{state:!0}))}null!=(r=window.HTMLSlotElement)&&r.prototype.assignedElements;const Ie=2,w=t=>(...e)=>({_$litDirective$:t,values:e});class E{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const Ue=n["I"],Ke=e=>void 0===e.strings,Ne=()=>document.createComment(""),k=(t,n,r)=>{var o,i=t._$AA.parentNode,a=void 0===n?t._$AB:n._$AA;if(void 0===r){const n=i.insertBefore(Ne(),a),o=i.insertBefore(Ne(),a);r=new Ue(n,o,t,t.options)}else{const n=r._$AB.nextSibling,s=r._$AM,e=s!==t;if(e){let e;null!=(o=r._$AQ)&&o.call(r,t),r._$AM=t,void 0!==r._$AP&&(e=t._$AU)!==s._$AU&&r._$AP(e)}if(n!==a||e){let e=r._$AA;for(;e!==n;){const n=e.nextSibling;i.insertBefore(e,a),e=n}}}return r},$=(e,t,n=e)=>(e._$AI(t,n),e),ze={},We=(e,t=ze)=>e._$AH=t,Ve=e=>{var t;null!=(t=e._$AP)&&t.call(e,!1,!0);let n=e._$AA;for(var r=e._$AB.nextSibling;n!==r;){const e=n.nextSibling;n.remove(),n=e}},Fe=(t,n,r)=>{var o=new Map;for(let e=n;e<=r;e++)o.set(t[e],e);return o},Ge=w(class extends E{constructor(e){if(super(e),e.type!==Ie)throw Error("repeat() can only be used in text expressions")}ct(e,t,n){let r;void 0===n?n=t:void 0!==t&&(r=t);var o=[],i=[];let a=0;for(const t of e)o[a]=r?r(t,a):a,i[a]=n(t,a),a++;return{values:i,keys:o}}render(e,t,n){return this.ct(e,t,n).values}update(e,[t,n,r]){var o=e._$AH,{values:i,keys:a}=this.ct(t,n,r);if(!Array.isArray(o))return this.ut=a,i;var s=null!=(t=this.ut)?t:this.ut=[],l=[];let c,u,h=0,d=o.length-1,p=0,f=i.length-1;for(;h<=d&&p<=f;)if(null===o[h])h++;else if(null===o[d])d--;else if(s[h]===a[p])l[p]=$(o[h],i[p]),h++,p++;else if(s[d]===a[f])l[f]=$(o[d],i[f]),d--,f--;else if(s[h]===a[f])l[f]=$(o[h],i[f]),k(e,l[f+1],o[h]),h++,f--;else if(s[d]===a[p])l[p]=$(o[d],i[p]),k(e,o[h],o[d]),d--,p++;else if(void 0===c&&(c=Fe(a,p,f),u=Fe(s,h,d)),c.has(s[h]))if(c.has(s[d])){const t=u.get(a[p]),n=void 0!==t?o[t]:null;if(null===n){const t=k(e,o[h]);$(t,i[p]),l[p]=t}else l[p]=$(n,i[p]),k(e,o[h],n),o[t]=null;p++}else Ve(o[d]),d--;else Ve(o[h]),h++;for(;p<=f;){const t=k(e,l[f+1]);$(t,i[p]),l[p++]=t}for(;h<=d;){const e=o[h++];null!==e&&Ve(e)}return this.ut=a,We(e,l),_}}),qe=w(class extends E{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(!Ke(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t!==_&&t!==y){var n=e.element,r=e.name;if(3===e.type){if(t===n[r])return _}else if(4===e.type){if(!!t===n.hasAttribute(r))return _}else if(1===e.type&&n.getAttribute(r)===t+"")return _;We(e)}return t}}),j=(e,t)=>{var n,r,o=e._$AN;if(void 0===o)return!1;for(const e of o)null!=(r=(n=e)._$AO)&&r.call(n,t,!1),j(e,t);return!0},Je=e=>{let t,n;for(;void 0!==(t=e._$AM)&&((n=t._$AN).delete(e),e=t,0===(null==n?void 0:n.size)););},Ze=n=>{for(let t;t=n._$AM;n=t){let e=t._$AN;if(void 0===e)t._$AN=e=new Set;else if(e.has(n))break;e.add(n),r=t,0,r.type==Ie&&(null==r._$AP&&(r._$AP=Ye),null==r._$AQ)&&(r._$AQ=Qe)}var r};function Qe(e){void 0!==this._$AN?(Je(this),this._$AM=e,Ze(this)):this._$AM=e}function Ye(e,t=!1,n=0){var r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(r))for(let e=n;e<r.length;e++)j(r[e],!1),Je(r[e]);else null!=r&&(j(r,!1),Je(r));else j(this,e)}class Xe extends E{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),Ze(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n;e!==this.isConnected&&((this.isConnected=e)?null!=(n=this.reconnected)&&n.call(this):null!=(n=this.disconnected)&&n.call(this)),t&&(j(this,e),Je(this))}setValue(e){var t;Ke(this._$Ct)?this._$Ct._$AI(e,this):((t=[...this._$Ct._$AH])[this._$Ci]=e,this._$Ct._$AI(t,this,0))}disconnected(){}reconnected(){}}const et=()=>new tt;class tt{}const nt=new WeakMap,rt=w(class extends Xe{render(e){return y}update(e,[t]){var n=t!==this.G;return n&&void 0!==this.G&&this.ot(void 0),!n&&this.rt===this.lt||(this.G=t,this.dt=null==(n=e.options)?void 0:n.host,this.ot(this.lt=e.element)),y}ot(t){if("function"==typeof this.G){var n=null!=(n=this.dt)?n:globalThis;let e=nt.get(n);void 0===e&&(e=new WeakMap,nt.set(n,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=nt.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)}}),ot=w(class extends E{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,[t]){var n,r;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(const e in t)!t[e]||null!=(n=this.nt)&&n.has(e)||this.it.add(e);return this.render(t)}const o=e.element.classList;this.it.forEach(e=>{e in t||(o.remove(e),this.it.delete(e))});for(const e in t){const n=!!t[e];n===this.it.has(e)||null!=(r=this.nt)&&r.has(e)||(n?(o.add(e),this.it.add(e)):(o.remove(e),this.it.delete(e)))}return _}});t="undefined"!=typeof navigator&&0<navigator.userAgent.toLowerCase().indexOf("firefox");function it(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function at(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function st(e){for(var t=(e=(e="string"!=typeof e?"":e).replace(/\s/g,"")).split(","),n=t.lastIndexOf("");0<=n;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var lt={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,"-":t?173:189,"=":t?61:187,";":t?59:186,"'":222,"[":219,"]":221,"\\":220},A={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},ct={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},x={16:!1,18:!1,17:!1,91:!1},P={},ut=1;ut<20;ut++)lt["f".concat(ut)]=111+ut;var S=[],ht="all",dt=[],pt=function(e){return lt[e.toLowerCase()]||A[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function ft(e){ht=e||"all"}function M(){return ht||"all"}function _t(e){var t=e.key,r=e.scope,o=e.method,a=void 0===(e=e.splitKey)?"+":e;st(t).forEach(function(e){var i,e=e.split(a),t=e.length,n=e[t-1],n="*"===n?"*":pt(n);P[n]&&(r=r||M(),i=1<t?at(A,e):[],P[n]=P[n].map(function(e){return o&&e.method!==o||e.scope!==r||!function(e){for(var t=e.length>=i.length?e:i,n=e.length>=i.length?i:e,r=!0,o=0;o<t.length;o++)-1===n.indexOf(t[o])&&(r=!1);return r}(e.mods)?e:{}}))})}function yt(e,t,n){var r;if(t.scope===n||"all"===t.scope){for(var o in r=0<t.mods.length,x)Object.prototype.hasOwnProperty.call(x,o)&&(!x[o]&&-1<t.mods.indexOf(+o)||x[o]&&-1===t.mods.indexOf(+o))&&(r=!1);(0!==t.mods.length||x[16]||x[18]||x[17]||x[91])&&!r&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble)&&(e.cancelBubble=!0)}}function vt(n){var e=P["*"],t=n.keyCode||n.which||n.charCode;if(C.filter.call(this,n)){if(-1===S.indexOf(t=93!==t&&224!==t?t:91)&&229!==t&&S.push(t),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(e){var t=ct[e];n[e]&&-1===S.indexOf(t)?S.push(t):!n[e]&&-1<S.indexOf(t)?S.splice(S.indexOf(t),1):"metaKey"!==e||!n[e]||3!==S.length||n.ctrlKey||n.shiftKey||n.altKey||(S=S.slice(S.indexOf(t)))}),t in x){for(var r in x[t]=!0,A)A[r]===t&&(C[r]=!0);if(!e)return}for(var o in x)Object.prototype.hasOwnProperty.call(x,o)&&(x[o]=n[ct[o]]);n.getModifierState&&(!n.altKey||n.ctrlKey)&&n.getModifierState("AltGraph")&&(-1===S.indexOf(17)&&S.push(17),-1===S.indexOf(18)&&S.push(18),x[17]=!0,x[18]=!0);var i=M();if(e)for(var a=0;a<e.length;a++)e[a].scope===i&&("keydown"===n.type&&e[a].keydown||"keyup"===n.type&&e[a].keyup)&&yt(n,e[a],i);if(t in P)for(var s=0;s<P[t].length;s++)if(("keydown"===n.type&&P[t][s].keydown||"keyup"===n.type&&P[t][s].keyup)&&P[t][s].key){for(var l=P[t][s],c=l.splitKey,u=l.key.split(c),h=[],d=0;d<u.length;d++)h.push(pt(u[d]));h.sort().join("")===S.sort().join("")&&yt(n,l,i)}}}function C(e,t,n){S=[];var r=st(e),o=[],i="all",a=document,s=0,l=!1,c=!0,u="+";for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(l=t.keyup),void 0!==t.keydown&&(c=t.keydown),"string"==typeof t.splitKey)&&(u=t.splitKey),"string"==typeof t&&(i=t);s<r.length;s++)o=[],1<(e=r[s].split(u)).length&&(o=at(A,e)),(e="*"===(e=e[e.length-1])?"*":pt(e))in P||(P[e]=[]),P[e].push({keyup:l,keydown:c,scope:i,mods:o,shortcut:r[s],method:n,key:r[s],splitKey:u});void 0===a||(t=a,-1<dt.indexOf(t))||!window||(dt.push(a),it(a,"keydown",function(e){vt(e)}),it(window,"focus",function(){S=[]}),it(a,"keyup",function(e){vt(e);var t=e.keyCode||e.which||e.charCode,n=S.indexOf(t);if(0<=n&&S.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&S.splice(0,S.length),(t=93!==t&&224!==t?t:91)in x)for(var r in x[t]=!1,A)A[r]===t&&(C[r]=!1)}))}var mt,bt,gt={setScope:ft,getScope:M,deleteScope:function(e,t){var n,r,o;for(o in e=e||M(),P)if(Object.prototype.hasOwnProperty.call(P,o))for(n=P[o],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;M()===e&&ft(t||"all")},getPressedKeyCodes:function(){return S.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=pt(e)),-1!==S.indexOf(e)},filter:function(e){var e=e.target||e.srcElement,t=e.tagName,n=!0;return n=!e.isContentEditable&&("INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t||e.readOnly)?n:!1},unbind:function(e){if(e){if(Array.isArray(e))e.forEach(function(e){e.key&&_t(e)});else if("object"==typeof e)e.key&&_t(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n[0],i=n[1];"function"==typeof o&&(i=o,o=""),_t({key:e,scope:o,method:i,splitKey:"+"})}}else Object.keys(P).forEach(function(e){return delete P[e]})}};for(mt in gt)Object.prototype.hasOwnProperty.call(gt,mt)&&(C[mt]=gt[mt]);"undefined"!=typeof window&&(bt=window.hotkeys,C.noConflict=function(e){return e&&window.hotkeys===C&&(window.hotkeys=bt),C},window.hotkeys=C);function D(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;0<=s;s--)(o=e[s])&&(a=(i<3?o(a):3<i?o(t,n,a):o(t,n))||a);return 3<i&&a&&Object.defineProperty(t,n,a),a}var L=C,r=class extends o{constructor(){super(...arguments),this.placeholder="",this.hideBreadcrumbs=!1,this.breadcrumbHome="Home",this.breadcrumbs=[],this._inputRef=et()}render(){let e="";if(!this.hideBreadcrumbs){var t=[];for(const e of this.breadcrumbs)t.push(i`<button
|
|
1
|
+
(window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[27],{501: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_FefferyShortcutPanel_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(176),lodash__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(22),lodash__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__),ninja_keys__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(897),_components_FefferyStyle_react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(90);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 n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach(function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty(e,t,n){(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:String(e)}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=_typeof(n))return n;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_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_FefferyShortcutPanel_react__WEBPACK_IMPORTED_MODULE_1__.b,FefferyShortcutPanel.propTypes=_components_FefferyShortcutPanel_react__WEBPACK_IMPORTED_MODULE_1__.c},897:function(R,B,e){"use strict";function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e){return(I="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 U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e){if("object"!=I(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);t=t.call(e,"string");if("object"!=I(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e);return"symbol"==I(e)?e:String(e)}(r.key),r)}}function K(r){for(var e=arguments.length,t=new Array(1<e?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];var o=1===r.length?r[0]:t.reduce(function(e,t,n){return e+function(){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.")}()+r[n+1]},r[0]);return new F(o,r,W)}var N=window,z=N.ShadowRoot&&(void 0===N.ShadyCSS||N.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,W=Symbol(),V=new WeakMap,F=(U((t=q).prototype,[{key:"styleSheet",get:function(){var e,t=this.o,n=this.t;return z&&void 0===t&&void 0===(t=(e=void 0!==n&&1===n.length)?V.get(n):t)&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e)&&V.set(n,t),t}},{key:"toString",value:function(){return this.cssText}}]),Object.defineProperty(t,"prototype",{writable:!1}),q),G=z?function(e){return e}:function(e){if(e instanceof CSSStyleSheet){var t,n="",r=function(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return o=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){o=!0,n=e},f:function(){try{r||null==a.return||a.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(a=function(e){var t;if(e)return"string"==typeof e?H(e,void 0):"Map"===(t="Object"===(t=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?H(e,void 0):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.cssRules);try{for(r.s();!(t=r.n()).done;)n+=t.value.cssText}catch(e){r.e(e)}finally{r.f()}return new F("string"==typeof n?n:n+"",void 0,W)}return e};function q(e,t,n){if(!(this instanceof q))throw new TypeError("Cannot call a class as a function");if(this._$cssResult$=!0,n!==W)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}function J(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return o=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){o=!0,n=e},f:function(){try{r||null==a.return||a.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(a=Q(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Z(e){return function(e){if(Array.isArray(e))return Y(e)}(e)||function(){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}()||Q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){var n;if(e)return"string"==typeof e?Y(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(e,t):void 0}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(e){return(O="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 X(){X=function(){return a};var l,a={},e=Object.prototype,c=e.hasOwnProperty,u=Object.defineProperty||function(e,t,n){e[t]=n.value},t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",n=t.asyncIterator||"@@asyncIterator",o=t.toStringTag||"@@toStringTag";function i(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(l){i=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o,i,a,s,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype),r=new j(r||[]);return u(t,"_invoke",{value:(o=e,i=n,a=r,s=d,function(e,t){if(s===p)throw new Error("Generator is already running");if(s===f){if("throw"===e)throw t;return{value:l,done:!0}}for(a.method=e,a.arg=t;;){var n=a.delegate;if(n){n=function e(t,n){var r=n.method,o=t.iterator[r];if(o===l)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=l,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),_;r=h(o,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,_;o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=l),n.delegate=null,_):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,_)}(n,a);if(n){if(n===_)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===d)throw s=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=p;n=h(o,i,a);if("normal"===n.type){if(s=a.done?f:"suspendedYield",n.arg===_)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s=f,a.method="throw",a.arg=n.arg)}})}),t}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}a.wrap=s;var d="suspendedStart",p="executing",f="completed",_={};function y(){}function v(){}function m(){}var t={},b=(i(t,r,function(){return this}),Object.getPrototypeOf),b=b&&b(b(A([]))),g=(b&&b!==e&&c.call(b,r)&&(t=b),m.prototype=y.prototype=Object.create(t));function w(e){["next","throw","return"].forEach(function(t){i(e,t,function(e){return this._invoke(t,e)})})}function E(a,s){var t;u(this,"_invoke",{value:function(n,r){function e(){return new s(function(e,t){!function t(e,n,r,o){var i,e=h(a[e],a,n);if("throw"!==e.type)return(n=(i=e.arg).value)&&"object"==O(n)&&c.call(n,"__await")?s.resolve(n.__await).then(function(e){t("next",e,r,o)},function(e){t("throw",e,r,o)}):s.resolve(n).then(function(e){i.value=e,r(i)},function(e){return t("throw",e,r,o)});o(e.arg)}(n,r,e,t)})}return t=t?t.then(e,e):e()}})}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function $(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function A(t){if(t||""===t){var n,e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return n=-1,(e=function e(){for(;++n<t.length;)if(c.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=l,e.done=!0,e}).next=e}throw new TypeError(O(t)+" is not iterable")}return u(g,"constructor",{value:v.prototype=m,configurable:!0}),u(m,"constructor",{value:v,configurable:!0}),v.displayName=i(m,o,"GeneratorFunction"),a.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,i(e,o,"GeneratorFunction")),e.prototype=Object.create(g),e},a.awrap=function(e){return{__await:e}},w(E.prototype),i(E.prototype,n,function(){return this}),a.AsyncIterator=E,a.async=function(e,t,n,r,o){void 0===o&&(o=Promise);var i=new E(s(e,t,n,r),o);return a.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},w(g),i(g,o,"Generator"),i(g,r,function(){return this}),i(g,"toString",function(){return"[object Generator]"}),a.keys=function(e){var t,n=Object(e),r=[];for(t in n)r.push(t);return r.reverse(),function e(){for(;r.length;){var t=r.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},a.values=A,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach($),!e)for(var t in this)"t"===t.charAt(0)&&c.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=l)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function e(e,t){return i.type="throw",i.arg=n,r.next=e,t&&(r.method="next",r.arg=l),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var o=this.tryEntries[t],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=c.call(o,"catchLoc"),s=c.call(o,"finallyLoc");if(a&&s){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&c.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}var i=(o=o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc?null:o)?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,_):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),_},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),$(n),_}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n,r,o=this.tryEntries[t];if(o.tryLoc===e)return"throw"===(n=o.completion).type&&(r=n.arg,$(o)),r}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=l),_}},a}function ee(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){e=function(e){if("object"!=O(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);t=t.call(e,"string");if("object"!=O(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e);return"symbol"==O(e)?e:String(e)}(r.key),r)}}function ne(e){var n="function"==typeof Map?new Map:void 0;return function(e){if(null===e||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return function(e,t,n){var r;return re()?Reflect.construct.apply(null,arguments):((r=[null]).push.apply(r,t),t=new(e.bind.apply(e,r)),n&&oe(t,n.prototype),t)}(e,arguments,ie(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),oe(t,e)}(e)}function re(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(re=function(){return!!e})()}function oe(e,t){return(oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var t=window,n=t.trustedTypes,ae=n?n.emptyScript:"",n=t.reactiveElementPolyfillSupport,se={toAttribute:function(e,t){switch(t){case Boolean:e=e?ae:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){var n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},le=function(e,t){return t!==e&&(t==t||e==e)},ce={attribute:!0,type:String,converter:se,reflect:!1,hasChanged:le},r=function(e){function t(){var e;if(this instanceof t)return(e=function(e,t,n){t=ie(t);var r=e;if(!(t=re()?Reflect.construct(t,n||[],ie(e).constructor):t.apply(e,n))||"object"!==O(t)&&"function"!=typeof t){if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(t=r))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}(this,t))._$Ei=new Map,e.isUpdatePending=!1,e.hasUpdated=!1,e._$El=null,e._$Eu(),e;throw new TypeError("Cannot call a class as a function")}var n,s,r,o=t;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");return o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&oe(o,e),o=t,e=[{key:"_$Eu",value:function(){var e,t=this;this._$E_=new Promise(function(e){return t.enableUpdating=e}),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null!=(e=this.constructor.h)&&e.forEach(function(e){return e(t)})}},{key:"addController",value:function(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)}},{key:"removeController",value:function(e){var t;null!=(t=this._$ES)&&t.splice(this._$ES.indexOf(e)>>>0,1)}},{key:"_$Eg",value:function(){var n=this;this.constructor.elementProperties.forEach(function(e,t){n.hasOwnProperty(t)&&(n._$Ei.set(t,n[t]),delete n[t])})}},{key:"createRenderRoot",value:function(){var r,e,t=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return r=t,e=this.constructor.elementStyles,z?r.adoptedStyleSheets=e.map(function(e){return e instanceof CSSStyleSheet?e:e.styleSheet}):e.forEach(function(e){var t=document.createElement("style"),n=N.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=e.cssText,r.appendChild(t)}),t}},{key:"connectedCallback",value:function(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null!=(e=this._$ES)&&e.forEach(function(e){var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null!=(e=this._$ES)&&e.forEach(function(e){var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}},{key:"attributeChangedCallback",value:function(e,t,n){this._$AK(e,n)}},{key:"_$EO",value:function(e,t){var n,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:ce,o=this.constructor._$Ep(e,r);void 0!==o&&!0===r.reflect&&(n=(void 0!==(null==(n=r.converter)?void 0:n.toAttribute)?r.converter:se).toAttribute(t,r.type),this._$El=e,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null)}},{key:"_$AK",value:function(e,t){var n,r=this.constructor,e=r._$Ev.get(e);void 0!==e&&this._$El!==e&&(n="function"==typeof(r=r.getPropertyOptions(e)).converter?{fromAttribute:r.converter}:void 0!==(null==(n=r.converter)?void 0:n.fromAttribute)?r.converter:se,this._$El=e,this[e]=n.fromAttribute(t,r.type),this._$El=null)}},{key:"requestUpdate",value:function(e,t,n){var r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||le)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}},{key:"_$Ej",value:(s=X().mark(function e(){var t;return X().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.isUpdatePending=!0,e.prev=1,e.next=4,this._$E_;case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),Promise.reject(e.t0);case 9:if(t=this.scheduleUpdate(),e.t1=null!=t,e.t1)return e.next=14,t;e.next=14;break;case 14:return e.abrupt("return",!this.isUpdatePending);case 15:case"end":return e.stop()}},e,this,[[1,6]])}),r=function(){var e=this,a=arguments;return new Promise(function(t,n){var r=s.apply(e,a);function o(e){ee(r,t,n,o,i,"next",e)}function i(e){ee(r,t,n,o,i,"throw",e)}o(void 0)})},function(){return r.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){var e,n=this;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach(function(e,t){return n[t]=e}),this._$Ei=void 0);var t=!1,r=this._$AL;try{(t=this.shouldUpdate(r))?(this.willUpdate(r),null!=(e=this._$ES)&&e.forEach(function(e){var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(r)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(r)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null!=(t=this._$ES)&&t.forEach(function(e){var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{key:"_$Ek",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$E_}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var n=this;void 0!==this._$EC&&(this._$EC.forEach(function(e,t){return n._$EO(t,n[t],e)}),this._$EC=void 0),this._$Ek()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],n=[{key:"addInitializer",value:function(e){var t;this.finalize(),(null!=(t=this.h)?t:this.h=[]).push(e)}},{key:"observedAttributes",get:function(){var n=this,r=(this.finalize(),[]);return this.elementProperties.forEach(function(e,t){e=n._$Ep(t,e);void 0!==e&&(n._$Ev.set(e,t),r.push(e))}),r}},{key:"createProperty",value:function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ce;n.state&&(n.attribute=!1),this.finalize(),this.elementProperties.set(e,n),n.noAccessor||this.prototype.hasOwnProperty(e)||(t="symbol"==O(e)?Symbol():"__"+e,void 0!==(t=this.getPropertyDescriptor(e,t,n))&&Object.defineProperty(this.prototype,e,t))}},{key:"getPropertyDescriptor",value:function(n,r,o){return{get:function(){return this[r]},set:function(e){var t=this[n];this[r]=e,this.requestUpdate(n,t,o)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){return this.elementProperties.get(e)||ce}},{key:"finalize",value:function(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=Z(e.h)),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){var t,n=this.properties,r=J([].concat(Z(Object.getOwnPropertyNames(n)),Z(Object.getOwnPropertySymbols(n))));try{for(r.s();!(t=r.n()).done;){var o=t.value;this.createProperty(o,n[o])}}catch(e){r.e(e)}finally{r.f()}}return this.elementStyles=this.finalizeStyles(this.styles),!0}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var n,r=J(new Set(e.flat(1/0).reverse()));try{for(r.s();!(n=r.n()).done;){var o=n.value;t.unshift(G(o))}}catch(e){r.e(e)}finally{r.f()}}else void 0!==e&&t.push(G(e));return t}},{key:"_$Ep",value:function(e,t){t=t.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof e?e.toLowerCase():void 0}}],te(o.prototype,e),te(o,n),Object.defineProperty(o,"prototype",{writable:!1}),t}(ne(HTMLElement));r.finalized=!0,r.elementProperties=new Map,r.elementStyles=[],r.shadowRootOptions={mode:"open"},null!=n&&n({ReactiveElement:r}),(null!=(n=t.reactiveElementVersions)?n:t.reactiveElementVersions=[]).push("1.6.3");const ue=window,c=ue.trustedTypes,he=c?c.createPolicy("lit-html",{createHTML:e=>e}):void 0,d=`lit$${(Math.random()+"").slice(9)}$`,de="?"+d,pe=`<${de}>`,l=document,u=()=>l.createComment(""),h=e=>null===e||"object"!=typeof e&&"function"!=typeof e,fe=Array.isArray,_e=e=>fe(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]),p=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ye=/-->/g,ve=/>/g,f=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),me=/'/g,be=/"/g,ge=/^(?:script|style|textarea|title)$/i,we=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),i=we(1),_=(we(2),Symbol.for("lit-noChange")),y=Symbol.for("lit-nothing"),Ee=new WeakMap,v=l.createTreeWalker(l,129,null,!1);function ke(e,t){if(Array.isArray(e)&&e.hasOwnProperty("raw"))return void 0!==he?he.createHTML(t):t;throw Error("invalid template strings array")}const $e=(i,e)=>{const a=i.length-1,s=[];let l,c=2===e?"<svg>":"",u=p;for(let o=0;o<a;o++){const a=i[o];let e,t,n=-1,r=0;for(;r<a.length&&(u.lastIndex=r,null!==(t=u.exec(a)));)r=u.lastIndex,u===p?"!--"===t[1]?u=ye:void 0!==t[1]?u=ve:void 0!==t[2]?(ge.test(t[2])&&(l=RegExp("</"+t[2],"g")),u=f):void 0!==t[3]&&(u=f):u===f?">"===t[0]?(u=null!=l?l:p,n=-1):void 0===t[1]?n=-2:(n=u.lastIndex-t[2].length,e=t[1],u=void 0===t[3]?f:'"'===t[3]?be:me):u===be||u===me?u=f:u===ye||u===ve?u=p:(u=f,l=void 0);var h=u===f&&i[o+1].startsWith("/>")?" ":"";c+=u===p?a+pe:0<=n?(s.push(e),a.slice(0,n)+"$lit$"+a.slice(n)+d+h):a+d+(-2===n?(s.push(void 0),o):h)}return[ke(i,c+(i[a]||"<?>")+(2===e?"</svg>":"")),s]};class je{constructor({strings:t,_$litType$:n},e){var r;this.parts=[];let o=0,i=0;var a=t.length-1,s=this.parts,[t,l]=$e(t,n);if(this.el=je.createElement(t,e),v.currentNode=this.el.content,2===n){const t=this.el.content,n=t.firstChild;n.remove(),t.append(...n.childNodes)}for(;null!==(r=v.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const n of r.getAttributeNames())if(n.endsWith("$lit$")||n.startsWith(d)){const e=l[i++];if(t.push(n),void 0!==e){const t=r.getAttribute(e.toLowerCase()+"$lit$").split(d),n=/([.?@])?(.*)/.exec(e);s.push({type:1,index:o,name:n[2],strings:t,ctor:"."===n[1]?Oe:"?"===n[1]?Pe:"@"===n[1]?Se:g})}else s.push({type:6,index:o})}for(const n of t)r.removeAttribute(n)}if(ge.test(r.tagName)){const t=r.textContent.split(d),n=t.length-1;if(0<n){r.textContent=c?c.emptyScript:"";for(let e=0;e<n;e++)r.append(t[e],u()),v.nextNode(),s.push({type:2,index:++o});r.append(t[n],u())}}}else if(8===r.nodeType)if(r.data===de)s.push({type:2,index:o});else{let e=-1;for(;-1!==(e=r.data.indexOf(d,e+1));)s.push({type:7,index:o}),e+=d.length-1}o++}}static createElement(e,t){var n=l.createElement("template");return n.innerHTML=e,n}}function m(t,n,r=t,o){var i;if(n!==_){let e=void 0!==o?null==(a=r._$Co)?void 0:a[o]:r._$Cl;var a=h(n)?void 0:n._$litDirective$;(null==e?void 0:e.constructor)!==a&&(null!=(i=null==e?void 0:e._$AO)&&i.call(e,!1),void 0===a?e=void 0:(e=new a(t))._$AT(t,r,o),void 0!==o?(null!=(i=r._$Co)?i:r._$Co=[])[o]=e:r._$Cl=e),void 0!==e&&(n=m(t,e._$AS(t,n.values),e,o))}return n}class Ae{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:n}=this._$AD,r=(null!=(r=null==t?void 0:t.creationScope)?r:l).importNode(e,!0);v.currentNode=r;let o=v.nextNode(),i=0,a=0,s=n[0];for(;void 0!==s;){if(i===s.index){let e;2===s.type?e=new b(o,o.nextSibling,this,t):1===s.type?e=new s.ctor(o,s.name,s.strings,this,t):6===s.type&&(e=new Me(o,this,t)),this._$AV.push(e),s=n[++a]}i!==(null==s?void 0:s.index)&&(o=v.nextNode(),i++)}return v.currentNode=l,r}v(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class b{constructor(e,t,n,r){this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cp=null==(e=null==r?void 0:r.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),h(e)?e===y||null==e||""===e?(this._$AH!==y&&this._$AR(),this._$AH=y):e!==this._$AH&&e!==_&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):_e(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!==y&&h(this._$AH)?this._$AA.nextSibling.data=e:this.$(l.createTextNode(e)),this._$AH=e}g(e){var t,{values:n,_$litType$:r}=e,r="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=je.createElement(ke(r.h,r.h[0]),this.options)),r);if((null==(t=this._$AH)?void 0:t._$AD)===r)this._$AH.v(n);else{const e=new Ae(r,this),t=e.u(this.options);e.v(n),this.$(t),this._$AH=e}}_$AC(e){let t=Ee.get(e.strings);return void 0===t&&Ee.set(e.strings,t=new je(e)),t}T(e){fe(this._$AH)||(this._$AH=[],this._$AR());var t=this._$AH;let n,r=0;for(const o of e)r===t.length?t.push(n=new b(this.k(u()),this.k(u()),this,this.options)):n=t[r],n._$AI(o),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var n;for(null!=(n=this._$AP)&&n.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null!=(t=this._$AP))&&t.call(this,e)}}class g{constructor(e,t,n,r,o){this.type=1,this._$AH=y,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=o,2<n.length||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(n,r=this,o,i){var a=this.strings;let s=!1;if(void 0===a)n=m(this,n,r,0),(s=!h(n)||n!==this._$AH&&n!==_)&&(this._$AH=n);else{const i=n;let e,t;for(n=a[0],e=0;e<a.length-1;e++)(t=m(this,i[o+e],r,e))===_&&(t=this._$AH[e]),s=s||!h(t)||t!==this._$AH[e],t===y?n=y:n!==y&&(n+=(null!=t?t:"")+a[e+1]),this._$AH[e]=t}s&&!i&&this.j(n)}j(e){e===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Oe extends g{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===y?void 0:e}}const xe=c?c.emptyScript:"";class Pe extends g{constructor(){super(...arguments),this.type=4}j(e){e&&e!==y?this.element.setAttribute(this.name,xe):this.element.removeAttribute(this.name)}}class Se extends g{constructor(e,t,n,r,o){super(e,t,n,r,o),this.type=5}_$AI(e,t=this){var n,r;(e=null!=(t=m(this,e,t,0))?t:y)!==_&&(t=this._$AH,n=e===y&&t!==y||e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive,r=e!==y&&(t===y||n),n&&this.element.removeEventListener(this.name,this,t),r&&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 Me{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){m(this,e)}}var n={O:"$lit$",P:d,A:de,C:1,M:$e,L:Ae,R:_e,D:m,I:b,V:g,H:Pe,N:Se,U:Oe,F:Me},t=ue.litHtmlPolyfillSupport;null!=t&&t(je,b),(null!=(t=ue.litHtmlVersions)?t:ue.litHtmlVersions=[]).push("2.8.0");class o extends r{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,n)=>{var r,o=null!=(o=null==n?void 0:n.renderBefore)?o:t;let i=o._$litPart$;if(void 0===i){const e=null!=(r=null==n?void 0:n.renderBefore)?r:null;o._$litPart$=i=new b(t.insertBefore(u(),e),e,void 0,null!=n?n:{})}return i._$AI(e),i})(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 _}}o.finalized=!0,o._$litElement$=!0,null!=(t=globalThis.litElementHydrateSupport)&&t.call(globalThis,{LitElement:o});function Ce(r){return function(e){return"function"==typeof e?(n=e,customElements.define(r,n),n):(t=r,{kind:e.kind,elements:e.elements,finisher:function(e){customElements.define(t,e)}});var t,n}}var r=globalThis.litElementPolyfillSupport;null!=r&&r({LitElement:o}),(null!=(t=globalThis.litElementVersions)?t:globalThis.litElementVersions=[]).push("3.3.3");function De(e){return(De="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 Le(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Te(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Le(Object(i),!0).forEach(function(e){var t,n,r;t=o,n=i[e=e],r=function(e){if("object"!=De(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);t=t.call(e,"string");if("object"!=De(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e),(e="symbol"==De(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):Le(Object(i)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))})}return o}function a(o){return function(e,t){return void 0!==t?void e.constructor.createProperty(t,o):(n=o,"method"!==(r=e).kind||!r.descriptor||"value"in r.descriptor?{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:r.key,initializer:function(){"function"==typeof r.initializer&&(this[r.key]=r.initializer.call(this))},finisher:function(e){e.createProperty(r.key,n)}}:Te(Te({},r),{},{finisher:function(e){e.createProperty(r.key,n)}}));var n,r}}function Re(e){return(Re="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 Be(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function He(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Be(Object(i),!0).forEach(function(e){var t,n,r;t=o,n=i[e=e],r=function(e){if("object"!=Re(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);t=t.call(e,"string");if("object"!=Re(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e),(e="symbol"==Re(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):Be(Object(i)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))})}return o}function s(e){return a(He(He({},e),{},{state:!0}))}null!=(r=window.HTMLSlotElement)&&r.prototype.assignedElements;const Ie=2,w=t=>(...e)=>({_$litDirective$:t,values:e});class E{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const Ue=n["I"],Ke=e=>void 0===e.strings,Ne=()=>document.createComment(""),k=(t,n,r)=>{var o,i=t._$AA.parentNode,a=void 0===n?t._$AB:n._$AA;if(void 0===r){const n=i.insertBefore(Ne(),a),o=i.insertBefore(Ne(),a);r=new Ue(n,o,t,t.options)}else{const n=r._$AB.nextSibling,s=r._$AM,e=s!==t;if(e){let e;null!=(o=r._$AQ)&&o.call(r,t),r._$AM=t,void 0!==r._$AP&&(e=t._$AU)!==s._$AU&&r._$AP(e)}if(n!==a||e){let e=r._$AA;for(;e!==n;){const n=e.nextSibling;i.insertBefore(e,a),e=n}}}return r},$=(e,t,n=e)=>(e._$AI(t,n),e),ze={},We=(e,t=ze)=>e._$AH=t,Ve=e=>{var t;null!=(t=e._$AP)&&t.call(e,!1,!0);let n=e._$AA;for(var r=e._$AB.nextSibling;n!==r;){const e=n.nextSibling;n.remove(),n=e}},Fe=(t,n,r)=>{var o=new Map;for(let e=n;e<=r;e++)o.set(t[e],e);return o},Ge=w(class extends E{constructor(e){if(super(e),e.type!==Ie)throw Error("repeat() can only be used in text expressions")}ct(e,t,n){let r;void 0===n?n=t:void 0!==t&&(r=t);var o=[],i=[];let a=0;for(const t of e)o[a]=r?r(t,a):a,i[a]=n(t,a),a++;return{values:i,keys:o}}render(e,t,n){return this.ct(e,t,n).values}update(e,[t,n,r]){var o=e._$AH,{values:i,keys:a}=this.ct(t,n,r);if(!Array.isArray(o))return this.ut=a,i;var s=null!=(t=this.ut)?t:this.ut=[],l=[];let c,u,h=0,d=o.length-1,p=0,f=i.length-1;for(;h<=d&&p<=f;)if(null===o[h])h++;else if(null===o[d])d--;else if(s[h]===a[p])l[p]=$(o[h],i[p]),h++,p++;else if(s[d]===a[f])l[f]=$(o[d],i[f]),d--,f--;else if(s[h]===a[f])l[f]=$(o[h],i[f]),k(e,l[f+1],o[h]),h++,f--;else if(s[d]===a[p])l[p]=$(o[d],i[p]),k(e,o[h],o[d]),d--,p++;else if(void 0===c&&(c=Fe(a,p,f),u=Fe(s,h,d)),c.has(s[h]))if(c.has(s[d])){const t=u.get(a[p]),n=void 0!==t?o[t]:null;if(null===n){const t=k(e,o[h]);$(t,i[p]),l[p]=t}else l[p]=$(n,i[p]),k(e,o[h],n),o[t]=null;p++}else Ve(o[d]),d--;else Ve(o[h]),h++;for(;p<=f;){const t=k(e,l[f+1]);$(t,i[p]),l[p++]=t}for(;h<=d;){const e=o[h++];null!==e&&Ve(e)}return this.ut=a,We(e,l),_}}),qe=w(class extends E{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(!Ke(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t!==_&&t!==y){var n=e.element,r=e.name;if(3===e.type){if(t===n[r])return _}else if(4===e.type){if(!!t===n.hasAttribute(r))return _}else if(1===e.type&&n.getAttribute(r)===t+"")return _;We(e)}return t}}),j=(e,t)=>{var n,r,o=e._$AN;if(void 0===o)return!1;for(const e of o)null!=(r=(n=e)._$AO)&&r.call(n,t,!1),j(e,t);return!0},Je=e=>{let t,n;for(;void 0!==(t=e._$AM)&&((n=t._$AN).delete(e),e=t,0===(null==n?void 0:n.size)););},Ze=n=>{for(let t;t=n._$AM;n=t){let e=t._$AN;if(void 0===e)t._$AN=e=new Set;else if(e.has(n))break;e.add(n),r=t,0,r.type==Ie&&(null==r._$AP&&(r._$AP=Ye),null==r._$AQ)&&(r._$AQ=Qe)}var r};function Qe(e){void 0!==this._$AN?(Je(this),this._$AM=e,Ze(this)):this._$AM=e}function Ye(e,t=!1,n=0){var r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(r))for(let e=n;e<r.length;e++)j(r[e],!1),Je(r[e]);else null!=r&&(j(r,!1),Je(r));else j(this,e)}class Xe extends E{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),Ze(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n;e!==this.isConnected&&((this.isConnected=e)?null!=(n=this.reconnected)&&n.call(this):null!=(n=this.disconnected)&&n.call(this)),t&&(j(this,e),Je(this))}setValue(e){var t;Ke(this._$Ct)?this._$Ct._$AI(e,this):((t=[...this._$Ct._$AH])[this._$Ci]=e,this._$Ct._$AI(t,this,0))}disconnected(){}reconnected(){}}const et=()=>new tt;class tt{}const nt=new WeakMap,rt=w(class extends Xe{render(e){return y}update(e,[t]){var n=t!==this.G;return n&&void 0!==this.G&&this.ot(void 0),!n&&this.rt===this.lt||(this.G=t,this.dt=null==(n=e.options)?void 0:n.host,this.ot(this.lt=e.element)),y}ot(t){if("function"==typeof this.G){var n=null!=(n=this.dt)?n:globalThis;let e=nt.get(n);void 0===e&&(e=new WeakMap,nt.set(n,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=nt.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)}}),ot=w(class extends E{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,[t]){var n,r;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(const e in t)!t[e]||null!=(n=this.nt)&&n.has(e)||this.it.add(e);return this.render(t)}const o=e.element.classList;this.it.forEach(e=>{e in t||(o.remove(e),this.it.delete(e))});for(const e in t){const n=!!t[e];n===this.it.has(e)||null!=(r=this.nt)&&r.has(e)||(n?(o.add(e),this.it.add(e)):(o.remove(e),this.it.delete(e)))}return _}});t="undefined"!=typeof navigator&&0<navigator.userAgent.toLowerCase().indexOf("firefox");function it(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function at(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function st(e){for(var t=(e=(e="string"!=typeof e?"":e).replace(/\s/g,"")).split(","),n=t.lastIndexOf("");0<=n;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var lt={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,"-":t?173:189,"=":t?61:187,";":t?59:186,"'":222,"[":219,"]":221,"\\":220},A={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},ct={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},x={16:!1,18:!1,17:!1,91:!1},P={},ut=1;ut<20;ut++)lt["f".concat(ut)]=111+ut;var S=[],ht="all",dt=[],pt=function(e){return lt[e.toLowerCase()]||A[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function ft(e){ht=e||"all"}function M(){return ht||"all"}function _t(e){var t=e.key,r=e.scope,o=e.method,a=void 0===(e=e.splitKey)?"+":e;st(t).forEach(function(e){var i,e=e.split(a),t=e.length,n=e[t-1],n="*"===n?"*":pt(n);P[n]&&(r=r||M(),i=1<t?at(A,e):[],P[n]=P[n].map(function(e){return o&&e.method!==o||e.scope!==r||!function(e){for(var t=e.length>=i.length?e:i,n=e.length>=i.length?i:e,r=!0,o=0;o<t.length;o++)-1===n.indexOf(t[o])&&(r=!1);return r}(e.mods)?e:{}}))})}function yt(e,t,n){var r;if(t.scope===n||"all"===t.scope){for(var o in r=0<t.mods.length,x)Object.prototype.hasOwnProperty.call(x,o)&&(!x[o]&&-1<t.mods.indexOf(+o)||x[o]&&-1===t.mods.indexOf(+o))&&(r=!1);(0!==t.mods.length||x[16]||x[18]||x[17]||x[91])&&!r&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble)&&(e.cancelBubble=!0)}}function vt(n){var e=P["*"],t=n.keyCode||n.which||n.charCode;if(C.filter.call(this,n)){if(-1===S.indexOf(t=93!==t&&224!==t?t:91)&&229!==t&&S.push(t),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(e){var t=ct[e];n[e]&&-1===S.indexOf(t)?S.push(t):!n[e]&&-1<S.indexOf(t)?S.splice(S.indexOf(t),1):"metaKey"!==e||!n[e]||3!==S.length||n.ctrlKey||n.shiftKey||n.altKey||(S=S.slice(S.indexOf(t)))}),t in x){for(var r in x[t]=!0,A)A[r]===t&&(C[r]=!0);if(!e)return}for(var o in x)Object.prototype.hasOwnProperty.call(x,o)&&(x[o]=n[ct[o]]);n.getModifierState&&(!n.altKey||n.ctrlKey)&&n.getModifierState("AltGraph")&&(-1===S.indexOf(17)&&S.push(17),-1===S.indexOf(18)&&S.push(18),x[17]=!0,x[18]=!0);var i=M();if(e)for(var a=0;a<e.length;a++)e[a].scope===i&&("keydown"===n.type&&e[a].keydown||"keyup"===n.type&&e[a].keyup)&&yt(n,e[a],i);if(t in P)for(var s=0;s<P[t].length;s++)if(("keydown"===n.type&&P[t][s].keydown||"keyup"===n.type&&P[t][s].keyup)&&P[t][s].key){for(var l=P[t][s],c=l.splitKey,u=l.key.split(c),h=[],d=0;d<u.length;d++)h.push(pt(u[d]));h.sort().join("")===S.sort().join("")&&yt(n,l,i)}}}function C(e,t,n){S=[];var r=st(e),o=[],i="all",a=document,s=0,l=!1,c=!0,u="+";for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(l=t.keyup),void 0!==t.keydown&&(c=t.keydown),"string"==typeof t.splitKey)&&(u=t.splitKey),"string"==typeof t&&(i=t);s<r.length;s++)o=[],1<(e=r[s].split(u)).length&&(o=at(A,e)),(e="*"===(e=e[e.length-1])?"*":pt(e))in P||(P[e]=[]),P[e].push({keyup:l,keydown:c,scope:i,mods:o,shortcut:r[s],method:n,key:r[s],splitKey:u});void 0===a||(t=a,-1<dt.indexOf(t))||!window||(dt.push(a),it(a,"keydown",function(e){vt(e)}),it(window,"focus",function(){S=[]}),it(a,"keyup",function(e){vt(e);var t=e.keyCode||e.which||e.charCode,n=S.indexOf(t);if(0<=n&&S.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&S.splice(0,S.length),(t=93!==t&&224!==t?t:91)in x)for(var r in x[t]=!1,A)A[r]===t&&(C[r]=!1)}))}var mt,bt,gt={setScope:ft,getScope:M,deleteScope:function(e,t){var n,r,o;for(o in e=e||M(),P)if(Object.prototype.hasOwnProperty.call(P,o))for(n=P[o],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;M()===e&&ft(t||"all")},getPressedKeyCodes:function(){return S.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=pt(e)),-1!==S.indexOf(e)},filter:function(e){var e=e.target||e.srcElement,t=e.tagName,n=!0;return n=!e.isContentEditable&&("INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t||e.readOnly)?n:!1},unbind:function(e){if(e){if(Array.isArray(e))e.forEach(function(e){e.key&&_t(e)});else if("object"==typeof e)e.key&&_t(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n[0],i=n[1];"function"==typeof o&&(i=o,o=""),_t({key:e,scope:o,method:i,splitKey:"+"})}}else Object.keys(P).forEach(function(e){return delete P[e]})}};for(mt in gt)Object.prototype.hasOwnProperty.call(gt,mt)&&(C[mt]=gt[mt]);"undefined"!=typeof window&&(bt=window.hotkeys,C.noConflict=function(e){return e&&window.hotkeys===C&&(window.hotkeys=bt),C},window.hotkeys=C);function D(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;0<=s;s--)(o=e[s])&&(a=(i<3?o(a):3<i?o(t,n,a):o(t,n))||a);return 3<i&&a&&Object.defineProperty(t,n,a),a}var L=C,r=class extends o{constructor(){super(...arguments),this.placeholder="",this.hideBreadcrumbs=!1,this.breadcrumbHome="Home",this.breadcrumbs=[],this._inputRef=et()}render(){let e="";if(!this.hideBreadcrumbs){var t=[];for(const e of this.breadcrumbs)t.push(i`<button
|
|
2
2
|
tabindex="-1"
|
|
3
3
|
@click=${()=>this.selectParent(e)}
|
|
4
4
|
class="breadcrumb"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[28],{529:function(b,e,t){"use strict";t.r(e);var ue=t(1),se=t.n(ue),fe=t(2),r=t(39),de=t.n(r),je=function(e){t=Object(ue.useRef)(!1),Object(ue.useEffect)(function(){return t.current=!1,function(){t.current=!0}},[]);var t,r=t,e=Object(fe.f)(Object(ue.useState)(e),2),n=e[0],o=e[1];return[n,Object(ue.useCallback)(function(e){r.current||o(e)},[])]},Oe=function(e){var t=Object(ue.useRef)(e);return t.current=e,t},he=(r="@-webkit-keyframes slider-icon-animate_spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes slider-icon-animate_spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.rc-slider-captcha-icon {\n display: inline-block;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.rc-slider-captcha-icon > svg {\n line-height: 1;\n}\n.rc-slider-captcha-icon-spin {\n -webkit-animation: slider-icon-animate_spin 1s infinite linear;\n animation: slider-icon-animate_spin 1s infinite linear;\n}\n.rc-slider-captcha-button {\n display: inline-block;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 40px;\n height: 100%;\n padding: 5px 0;\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n font-size: 22px;\n line-height: 1;\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n border-radius: 2px;\n box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);\n cursor: -webkit-grab;\n cursor: grab;\n transition-timing-function: linear;\n transition-duration: 0.2s;\n transition-property: background-color, color;\n touch-action: none;\n}\n.rc-slider-captcha-button-active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-verify {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-pc:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-active,\n.rc-slider-captcha-button:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.rc-slider-captcha-button-verify,\n.rc-slider-captcha-button-verify:active {\n cursor: wait;\n}\n.rc-slider-captcha-button-error {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-error:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-error:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-success {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-success:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-success:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-disabled {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-button-disabled:hover {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-button-disabled:active {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-loading {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n padding: 15px;\n color: #45494c;\n color: var(--rcsc-text-color, #45494c);\n font-size: 14px;\n text-align: center;\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n}\n.rc-slider-captcha-loading-icon {\n font-size: 30px;\n}\n.rc-slider-captcha-loading-text {\n margin-top: 5px;\n}\n.rc-slider-captcha {\n position: relative;\n}\n.rc-slider-captcha > * {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.rc-slider-captcha-control {\n position: relative;\n box-sizing: border-box;\n width: 100%;\n min-height: 42px;\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n border: 1px solid #e4e7eb;\n border: 1px solid var(--rcsc-border-color, #e4e7eb);\n border-radius: 2px;\n}\n.rc-slider-captcha-control-button {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n}\n.rc-slider-captcha-control-indicator {\n position: absolute;\n top: -1px;\n bottom: -1px;\n left: -1px;\n display: none;\n box-sizing: border-box;\n width: 0;\n background-color: #d1e9fe;\n background-color: var(--rcsc-primary-light, #d1e9fe);\n border: 1px solid #1991fa;\n border: 1px solid var(--rcsc-primary, #1991fa);\n border-radius: 2px;\n}\n.rc-slider-captcha-control-tips {\n position: relative;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px 0;\n color: #45494c;\n color: var(--rcsc-text-color, #45494c);\n font-size: 14px;\n line-height: 20px;\n text-align: center;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.rc-slider-captcha-control-moving .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-verify .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-error .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-success .rc-slider-captcha-control-indicator {\n display: block;\n}\n.rc-slider-captcha-control-error .rc-slider-captcha-control-indicator {\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-success .rc-slider-captcha-control-indicator {\n background-color: #d2f4ef;\n background-color: var(--rcsc-success-light, #d2f4ef);\n border-color: #52ccba;\n border-color: var(--rcsc-success, #52ccba);\n}\n.rc-slider-captcha-control-errors {\n padding-left: 0;\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-button,\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-indicator {\n display: none;\n}\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-tips {\n color: #f57a7a;\n color: var(--rcsc-error, #f57a7a);\n cursor: pointer;\n}\n.rc-slider-captcha-jigsaw {\n position: relative;\n background-color: #f7f9fa;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.rc-slider-captcha-jigsaw img {\n position: absolute;\n}\n.rc-slider-captcha-jigsaw-bg {\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n.rc-slider-captcha-jigsaw-puzzle {\n width: 60px;\n height: 100%;\n touch-action: none;\n}\n.rc-slider-captcha-jigsaw-puzzle:hover {\n cursor: -webkit-grab;\n cursor: grab;\n}\n.rc-slider-captcha-jigsaw-puzzle:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.rc-slider-captcha-jigsaw-refresh {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 2;\n padding: 5px;\n color: #fff;\n font-size: 22px;\n line-height: 0;\n cursor: pointer;\n opacity: 0.75;\n transition: opacity 0.2s linear;\n}\n.rc-slider-captcha-jigsaw-refresh:hover {\n opacity: 1;\n}\n.rc-slider-captcha-jigsaw-refresh-disabled {\n cursor: not-allowed;\n}\n.rc-slider-captcha-jigsaw-refresh-disabled:hover {\n opacity: 0.75;\n}\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle {\n pointer-events: none;\n}\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle:hover,\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle:active {\n cursor: default;\n}\n.rc-slider-captcha-panel {\n padding-bottom: 15px;\n}\n.rc-slider-captcha-panel-inner {\n overflow: hidden;\n border-radius: 2px;\n}\n.rc-slider-captcha-float .rc-slider-captcha-panel {\n position: absolute;\n left: 0;\n display: none;\n opacity: 0;\n transition-timing-function: ease-out;\n transition-duration: 0.3s;\n transition-property: top, bottom, opacity;\n}\n.rc-slider-captcha-float-top .rc-slider-captcha-panel {\n bottom: 22px;\n}\n.rc-slider-captcha-float-bottom .rc-slider-captcha-panel {\n top: 22px;\n padding: 15px 0 0;\n}\n",m=(m=void 0===m?{}:m).insertAt,"undefined"!=typeof document&&(n=document.head||document.getElementsByTagName("head")[0],(a=document.createElement("style")).type="text/css","top"===m&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r))),"rc-slider-captcha");function pe(e){var t=0,r=0;return"number"==typeof e.clientX&&"number"==typeof e.clientY?(t=e.clientX,r=e.clientY):e.touches&&e.touches[0]?(t=e.touches[0].clientX,r=e.touches[0].clientY):e.changedTouches&&e.changedTouches[0]&&(t=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY),{clientX:t,clientY:r}}function me(e,t){if(void 0===t&&(t={}),e)for(var r in t)e.style[r]=t[r]}function g(e){var t,r=e.className,n=e.spin,e=Object(fe.g)(e,["className","spin"]);return se.a.createElement("span",Object(fe.a)({className:de()(y,((t={})["".concat(y,"-spin")]=n,t),r)},e))}function o(e){var t=e.type,e=Object(fe.g)(e,["type"]);return se.a.createElement(g,Object(fe.a)({},e),w[t])}function v(e){function _(){Object(fe.b)(void 0,void 0,void 0,function(){var t;return Object(fe.e)(this,function(e){switch(e.label){case 0:return w?[2]:F?(Z?J.current=setTimeout(function(){h(ge.Loading)},a):h(ge.Loading),[4,F()]):[3,2];case 1:t=e.sent(),Z&&clearTimeout(J.current),Y(t),h(ge.Default),e.label=2;case 2:return[2]}})})}function U(e){void 0===e&&(e=300),"float"===y&&p.current!==ge.Success&&(clearTimeout(ee.current),clearTimeout(re.current),clearTimeout(te.current),te.current=setTimeout(function(){var e;me(v.current,{display:"block"}),null!=(e=v.current)&&e.scrollTop,me(v.current,((e={})[K]="42px",e.opacity="1",e))},e))}function r(e){var t,r;p.current===ge.Default&&(e.preventDefault(),t=e.currentTarget)&&m.current&&(w||b.current)&&(r=(e=pe(e)).clientX,e=e.clientY,z.current={x:r,y:e,timestamp:(new Date).getTime()},Q.current=[[z.current.x,z.current.y]],$.current=m.current.clientWidth,S.current.button=j.width-$.current-2,S.current.puzzle=j.width-O.width-O.left,k.current=t.getAttribute("data-id"),T.current=S.current.puzzle/S.current.button,k.current===be.Puzzle&&(T.current=1/T.current),ve&&U(0),R.current=!0,document.addEventListener(Ee.move,ce),document.addEventListener(Ee.end,P),document.addEventListener("touchcancel",P))}var t=void 0===(n=e.mode)?"embed":n,o=void 0===(n=e.limitErrorCount)?0:n,A=e.tipText,D=e.tipIcon,H=e.bgSize,B=e.puzzleSize,F=e.request,q=void 0===(n=e.autoRequest)||n,V=e.onVerify,G=void 0===(n=e.autoRefreshOnError)||n,n=e.actionRef,c=void 0===(c=e.showRefreshIcon)||c,X=e.jigsawContent,W=void 0===(l=e.errorHoldDuration)?500:l,a=void 0===(l=e.loadingDelay)?0:l,i=void 0===(l=e.placement)?"top":l,l=e.loadingBoxProps,u=e.sliderButtonProps,s=e.className,e=e.style,f=(C=je())[0],Y=C[1],d=(C=je(ge.Default))[0],h=C[1],p=Oe(d),J=Object(ue.useRef)(null),Z="number"==typeof a&&0<a,m=Object(ue.useRef)(null),b=Object(ue.useRef)(null),g=Object(ue.useRef)(null),v=Object(ue.useRef)(null),y=Object(ue.useMemo)(function(){return"float"===t||"slider"===t?t:"embed"},[t]),w="slider"===y,x=Object(ue.useMemo)(function(){return Object(fe.a)(Object(fe.a)({},xe.tipText),A)},[A]),E=Object(ue.useMemo)(function(){return Object(fe.a)(Object(fe.a)({},xe.tipIcon),D)},[D]),j=Object(ue.useMemo)(function(){return Object(fe.a)(Object(fe.a)({},xe.bgSize),H)},[H]),O=Object(ue.useMemo)(function(){return Object(fe.a)(Object(fe.a)({},xe.puzzleSize),B)},[B]),K=Object(ue.useMemo)(function(){return"bottom"===i?"top":"bottom"},[i]),k=Object(ue.useRef)(be.Button),L=Object(ue.useRef)(0),z=Object(ue.useRef)({x:0,y:0,timestamp:0}),Q=Object(ue.useRef)([]),R=Object(ue.useRef)(!1),$=Object(ue.useRef)(40),ee=Object(ue.useRef)(null),te=Object(ue.useRef)(null),re=Object(ue.useRef)(null),ne=Object(ue.useRef)(null),N=p.current===ge.Error&&0<o&&L.current>=o,T=Object(ue.useRef)(1),S=Object(ue.useRef)({button:0,puzzle:0}),M=function(e){void 0===e&&(e=300),"float"===y&&(clearTimeout(ee.current),clearTimeout(re.current),clearTimeout(te.current),re.current=setTimeout(function(){var e;me(v.current,((e={})[K]="22px",e.opacity="0",e)),ee.current=setTimeout(function(){me(v.current,{display:"none"})},300)},e))},oe=function(){R.current=!1,h(ge.Default),me(m.current,{left:"0"}),me(g.current,{width:"0"}),me(b.current,{left:O.left+"px"})},I=function(e){(e=void 0===e?!1:e)&&(L.current=0),clearTimeout(ne.current),p.current!==ge.Loading&&(oe(),_())},ce=function(e){var t,r;R.current&&(e.preventDefault(),r=(e=pe(e)).clientX,e=e.clientY,t=r-z.current.x,Q.current.push([r,e]),p.current!==ge.Moving&&0<t&&h(ge.Moving),e=r=t,k.current===be.Puzzle?(r=(t=Math.max(0,Math.min(t,S.current.puzzle)))+O.left,e=t*T.current):(e=t=Math.max(0,Math.min(t,S.current.button)),r=t*T.current+O.left),me(m.current,{left:e+"px"}),me(g.current,{width:e+$.current+2+"px"}),me(b.current,{left:r+"px"}))},P=function(e){var t,r,n;document.removeEventListener(Ee.move,ce),document.removeEventListener(Ee.end,P),document.removeEventListener("touchcancel",P),R.current&&(p.current!==ge.Moving?(R.current=!1,ve&&M()):V?(R.current=!1,h(ge.Verify),t=(new Date).getTime(),r=(e=pe(e)).clientX,e=e.clientY-z.current.y,n=r=r-z.current.x,k.current===be.Puzzle?n=(r=Math.max(0,Math.min(r,S.current.puzzle)))*T.current:(n=r=Math.max(0,Math.min(r,S.current.button)),r*=T.current),V({x:r,y:e,sliderOffsetX:n,duration:t-z.current.timestamp,trail:Q.current,targetType:k.current,errorCount:L.current}).then(function(){L.current=0,h(ge.Success),M()}).catch(function(){L.current+=1,h(ge.Error),ve&&M(),(o<=0||L.current<o)&&G&&(ne.current=setTimeout(function(){I()},W))})):oe())},C=(Object(ue.useEffect)(function(){q&&_();var e=m.current,t=b.current;if(ke&&e)return e.addEventListener(Ee.start,r),t&&t.addEventListener(Ee.start,r),function(){e.removeEventListener(Ee.start,r),t&&t.removeEventListener(Ee.start,r),document.removeEventListener(Ee.move,ce),document.removeEventListener(Ee.end,P),document.removeEventListener("touchcancel",P)}},[]),d===ge.Loading),ae=d===ge.Verify||d===ge.Error||d===ge.Success,ie=Object(ue.useMemo)(function(){return d===ge.Default?x.default:d===ge.Loading?x.loading:d===ge.Moving?x.moving:d===ge.Verify?x.verifying:N?x.errors:d===ge.Error?x.error:d===ge.Success?x.success:null},[d,x,N]),le=Object(ue.useMemo)(function(){return d===ge.Success?E.success:d===ge.Error?E.error:d===ge.Verify?E.loading:E.default},[d,E]);return se.a.useImperativeHandle(n,function(){return{refresh:I,get status(){return p.current}}}),se.a.createElement("div",{className:de()(he,s,"".concat(he,"-").concat(y),((n={})["".concat(he,"-").concat(y,"-").concat(i)]="float"===y,n)),style:Object(fe.a)({width:j.width},e),onMouseEnter:function(){ve||U()},onMouseLeave:function(){ve||M()}},!w&&se.a.createElement("div",{className:"".concat(he,"-panel"),ref:v},se.a.createElement("div",{className:"".concat(he,"-panel-inner"),style:{height:j.height}},se.a.createElement("div",{className:de()(we,((s={})["".concat(we,"-stop")]=ae,s)),style:Object(fe.a)(Object(fe.a)({},j),C||null==f||!f.bgUrl?{display:"none"}:{})},se.a.createElement("img",{className:"".concat(we,"-bg"),style:j,src:null==f?void 0:f.bgUrl,alt:""}),se.a.createElement("img",{className:"".concat(we,"-puzzle"),style:O,src:null==f?void 0:f.puzzleUrl,alt:"","data-id":be.Puzzle,ref:b}),c&&d!==ge.Success&&E.refresh&&se.a.createElement("div",{className:de()("".concat(we,"-refresh"),((n={})["".concat(we,"-refresh-disabled")]=d===ge.Verify||N,n)),onClick:function(){d===ge.Verify||N||I()}},E.refresh),X),se.a.createElement(Le,Object(fe.a)({},l,{style:Object(fe.a)(Object(fe.a)(Object(fe.a)({},null==l?void 0:l.style),j),C?{}:{display:"none"})})))),se.a.createElement("div",{className:de()(ye,((e={})["".concat(ye,"-loading")]=C,e["".concat(ye,"-moving")]=d===ge.Moving,e["".concat(ye,"-verify")]=d===ge.Verify,e["".concat(ye,"-success")]=d===ge.Success,e["".concat(ye,"-error")]=d===ge.Error,e["".concat(ye,"-errors")]=N,e)),onClick:function(){N&&I(!0)}},se.a.createElement("div",{className:de()("".concat(ye,"-indicator")),ref:g}),se.a.createElement(ze,Object(fe.a)({},u,{className:de()("".concat(ye,"-button"),null==u?void 0:u.className),disabled:C,active:d===ge.Moving,verify:d===ge.Verify,success:d===ge.Success,error:d===ge.Error,"data-id":be.Button,mobile:ve,ref:m}),le),ie&&se.a.createElement("div",{className:de()("".concat(ye,"-tips"))},ie)))}var be,ge,n,ke="object"==typeof window&&window&&"object"==typeof document&&document&&window.document===document&&!!document.addEventListener,ve=ke&&"ontouchstart"in window,y="".concat(he,"-icon"),w={arrowRight:se.a.createElement(function(e){return se.a.createElement("svg",Object(fe.a)({viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),se.a.createElement("path",{d:"M116.9408 561.4592m0-40.96l0 0q0-40.96 40.96-40.96l573.44 0q40.96 0 40.96 40.96l0 0q0 40.96-40.96 40.96l-573.44 0q-40.96 0-40.96-40.96Z"}),se.a.createElement("path",{d:"M769.82272 519.43424l-203.22304-203.22304a40.96 40.96 0 1 1 57.91744-57.91744l231.71072 231.71072a40.96 40.96 0 0 1 0.45056 58.44992L624.9472 780.12416a40.96 40.96 0 0 1-57.93792-57.91744l202.79296-202.79296z"}))},null),check:se.a.createElement(function(e){return se.a.createElement("svg",Object(fe.a)({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),se.a.createElement("path",{d:"M864.554667 268.501333a42.666667 42.666667 0 0 1 0 60.330667L412.032 781.397333a42.453333 42.453333 0 0 1-22.613333 11.818667l-5.034667 0.597333H379.306667a42.496 42.496 0 0 1-27.648-12.416l-211.2-211.2a42.666667 42.666667 0 1 1 60.330666-60.330666l180.992 180.992 422.4-422.4a42.666667 42.666667 0 0 1 60.330667 0z"}))},null),loading:se.a.createElement(function(e){return se.a.createElement("svg",Object(fe.a)({viewBox:"0 0 120 120",width:"1em",height:"1em"},e),se.a.createElement("defs",null,se.a.createElement("line",{id:"l",x1:"60",x2:"60",y1:"7",y2:"27",stroke:"currentColor",strokeWidth:"11",strokeLinecap:"round"})),se.a.createElement("g",null,se.a.createElement("use",{xlinkHref:"#l",opacity:".27"}),se.a.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(30 60,60)"}),se.a.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(60 60,60)"}),se.a.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(90 60,60)"}),se.a.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(120 60,60)"}),se.a.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(150 60,60)"}),se.a.createElement("use",{xlinkHref:"#l",opacity:".37",transform:"rotate(180 60,60)"}),se.a.createElement("use",{xlinkHref:"#l",opacity:".46",transform:"rotate(210 60,60)"}),se.a.createElement("use",{xlinkHref:"#l",opacity:".56",transform:"rotate(240 60,60)"}),se.a.createElement("use",{xlinkHref:"#l",opacity:".66",transform:"rotate(270 60,60)"}),se.a.createElement("use",{xlinkHref:"#l",opacity:".75",transform:"rotate(300 60,60)"}),se.a.createElement("use",{xlinkHref:"#l",opacity:".85",transform:"rotate(330 60,60)"})))},null),refresh:se.a.createElement(function(e){return se.a.createElement("svg",Object(fe.a)({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),se.a.createElement("path",{d:"M866.133333 573.013333a42.666667 42.666667 0 0 0-53.333333 27.733334A304.64 304.64 0 0 1 519.68 810.666667 302.933333 302.933333 0 0 1 213.333333 512a302.933333 302.933333 0 0 1 306.346667-298.666667 309.76 309.76 0 0 1 198.4 71.253334l-92.586667-15.36a42.666667 42.666667 0 0 0-49.066666 35.413333 42.666667 42.666667 0 0 0 35.413333 49.066667l180.906667 29.866666h7.253333a42.666667 42.666667 0 0 0 14.506667-2.56 14.08 14.08 0 0 0 4.266666-2.56 33.28 33.28 0 0 0 8.533334-4.693333l3.84-4.693333c0-2.133333 3.84-3.84 5.546666-6.4s0-4.266667 2.133334-5.973334a57.173333 57.173333 0 0 0 2.986666-7.68l32-170.666666a42.666667 42.666667 0 0 0-85.333333-16.213334l-11.52 61.866667A392.96 392.96 0 0 0 519.68 128 388.266667 388.266667 0 0 0 128 512a388.266667 388.266667 0 0 0 391.68 384A389.12 389.12 0 0 0 896 626.346667a42.666667 42.666667 0 0 0-29.866667-53.333334z"}))},null),x:se.a.createElement(function(e){return se.a.createElement("svg",Object(fe.a)({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),se.a.createElement("path",{d:"M572.96896 524.6976l217.23136 217.25184a40.96 40.96 0 1 1-57.93792 57.91744L515.072 582.63552l-212.3776 212.3776a40.96 40.96 0 1 1-57.9584-57.91744l212.39808-212.3776-217.21088-217.23136a40.96 40.96 0 1 1 57.91744-57.91744l217.23136 217.21088L737.0752 244.736a40.96 40.96 0 1 1 57.93792 57.91744L572.96896 524.71808z"}))},null)},c="".concat(he,"-loading"),Le=function(e){var t=e.icon,t=void 0===t?se.a.createElement(o,{type:"loading",spin:!0}):t,r=e.text,r=void 0===r?"加载中...":r,n=e.className,e=Object(fe.g)(e,["icon","text","className"]);return se.a.createElement("div",Object(fe.a)({className:de()(c,n)},e),se.a.createElement("div",{className:"".concat(c,"-icon")},t),se.a.createElement("div",{className:"".concat(c,"-text")},r))},u="".concat(he,"-button"),ze=se.a.forwardRef(function(e,t){var r=e.className,n=e.disabled,o=e.active,c=e.success,a=e.error,i=e.verify,l=e.mobile,e=Object(fe.g)(e,["className","disabled","active","success","error","verify","mobile"]);return se.a.createElement("span",Object(fe.a)({className:de()(u,r,((r={})["".concat(u,"-disabled")]=n,r["".concat(u,"-active")]=o,r["".concat(u,"-verify")]=i,r["".concat(u,"-success")]=c,r["".concat(u,"-error")]=a,r["".concat(u,"-pc")]=!l,r)),ref:t},e))}),ye=(ze.displayName="SliderButton",(m=be=be||{}).Puzzle="puzzle",m.Button="button",(n=ge=ge||{})[n.Default=1]="Default",n[n.Loading=2]="Loading",n[n.Moving=3]="Moving",n[n.Verify=4]="Verify",n[n.Success=5]="Success",n[n.Error=6]="Error","".concat(he,"-control")),we="".concat(he,"-jigsaw"),xe={bgSize:{width:320,height:160},puzzleSize:{width:60,left:0},tipText:{default:"向右拖动滑块填充拼图",loading:"加载中...",moving:null,verifying:null,success:null,error:null,errors:se.a.createElement(se.a.Fragment,null,se.a.createElement(o,{type:"x",style:{fontSize:20}})," 失败过多,点击重试")},tipIcon:{default:se.a.createElement(o,{type:"arrowRight"}),loading:se.a.createElement(o,{type:"loading",spin:!0}),error:se.a.createElement(o,{type:"x"}),success:se.a.createElement(o,{type:"check"}),refresh:se.a.createElement(o,{type:"refresh"})}},Ee=ve?{start:"touchstart",move:"touchmove",end:"touchend"}:{start:"mousedown",move:"mousemove",end:"mouseup"},a="undefined"!=typeof URL,k=Object.keys,_=(Object.values,a?URL.createObjectURL:function(){return""}),U=a?URL.revokeObjectURL:function(){},O=t(568);function L(e){return O.e.call(e)}var N="undefined"!=typeof Blob,T=[200,304];function A(o,c){return new Promise(function(r,n){var a,i,l,u,s,f,d,h,e,p,m,b,g,v,y,w,x,E,j,t;t=o,N&&t instanceof Blob||L(t)===O.b?r(o):(a=o,e=(t=Object(fe.a)({responseType:"blob"},c)||{}).method,i=void 0===e?"get":e,e=t.data,l=void 0===e?null:e,u=t.timeout,s=t.headers,e=t.withCredentials,f=void 0!==e&&e,e=t.async,d=void 0===e||e,e=t.user,h=void 0===e?null:e,e=t.password,p=void 0===e?null:e,m=t.responseType,b=t.onReadyStateChange,g=t.onLoadStart,v=t.onProgress,y=t.onAbort,w=t.onTimeout,x=t.onError,E=t.onLoad,j=t.onLoadEnd,new Promise(function(t,r){var n=new XMLHttpRequest;n.open(i.toLowerCase(),a,d,h,p),b&&(n.onreadystatechange=b),"number"==typeof u&&0<u&&(n.timeout=u),n.withCredentials=f,m&&(n.responseType=m),"object"==typeof s&&k(s).map(function(e){n.setRequestHeader(e,s[e])});function e(t){return function(e){r(e),null!=t&&t.call(n,e)}}var o,c={loadstart:g,progress:v,abort:e(y),timeout:e(w),error:e(x),load:(o=E,function(e){t(e),null!=o&&o.call(n,e)}),loadend:j};k(c).map(function(e){var t=c[e];t&&n.addEventListener(e,t)}),n.send(l)}).then(function(e){var t=e.target.status;-1!==T.indexOf(t)?r(e.target.response):(e=new Error("The file does not support get requests, responseStatus ".concat(t,", '").concat(o,"'.")),console.error(e),n(e))}).catch(function(e){console.error(new Error("Failed to request file. ".concat(e))),n(e)}))})}function i(){this.handler={}}function x(e){return e}i.prototype.eventNames=function(){return Object.keys(this.handler)},i.prototype.listeners=function(e){return this.handler[e]||[]},i.prototype.hasListener=function(e,t){return this.listeners(e).some(function(e){return e===t})},i.prototype.on=function(e,t){return this.handler[e]?this.hasListener(e,t)||this.handler[e].push(t):this.handler[e]=[t],this},i.prototype.off=function(e,t){return this.handler[e]&&("function"==typeof t?this.handler[e]=this.handler[e].filter(function(e){return e!==t}):delete this.handler[e]),this},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e=this.listeners(e);return 0<e.length&&(e.forEach(function(e){e.apply(void 0,t)}),!0)},i.prototype.once=function(r,n){function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.apply(void 0,e),c.off(r,o)}var c=this;return this.on(r,o)},i.prototype.offAll=function(){return this.handler={},this};function E(e,t){void 0===t&&(t=x);for(var r,n,o,c=!(null!=(r=e)&&"number"==typeof(o=r.length)&&-1<o&&o%1==0&&o<=O.a&&"function"!=typeof r&&(n=L(r),!O.c.some(function(e){return e===n})))&&("function"==(r=typeof(o=e))||"object"==r&&o?Object(O.d)(o):[]),a=(c||e).length,i=0;0<=i&&i<a;){var l=c?c[i]:i;if(!1===t(e[l],l,e))break;i+=1}}l=i,Object(fe.d)(s,l),s.prototype.has=function(t){return!!this.data.find(function(e){return e.k===t})},s.prototype.get=function(t){var e;return null==(e=this.data.find(function(e){return e.k===t}))?void 0:e.v},s.prototype.checkLimit=function(){var e,t=this;0!==this.options.max&&0<=(e=this.data.length-this.options.max)&&(e=this.data.splice(0,1+e),E(e,function(e){t.emit("del",e.v,e.k)}))},s.prototype.set=function(t,e){var r,e={k:t,v:e};this.has(t)?(r=this.data.findIndex(function(e){return e.k===t}),this.data.splice(r,1,e)):(this.checkLimit(),this.data.push(e))};var l,I=new s({max:1});function s(e){var t=l.call(this)||this;return t.data=[],t.options=Object(fe.a)({max:10},e),t}I.on("del",function(e){if(e.r)try{U(e.data.image.src)}catch(e){}});var f,d=Math.PI,h=((r=f=f||{})[r.None=0]="None",r[r.Outer=1]="Outer",r[r.Inner=2]="Inner",[f.None,f.Outer,f.Inner]);function P(e,t){return void 0===t&&(t=0),Math.max(Math.floor(Math.random()*e),t)}function p(e){return e[P(e.length)]}function D(e){var t,r,n={top:p(h),right:p(h),bottom:p(h),left:p(h)},o=Object.keys(n),c=["top","bottom"],a=["left","right"];return n.top===f.Outer&&n.bottom===f.Outer?n[p(c)]=f.Inner:n.top!==f.Outer&&n.bottom!==f.Outer&&(n[p(c)]=f.Outer),n.left===f.Outer&&n.right===f.Outer?n[p(a)]=f.Inner:n.left!==f.Outer&&n.right!==f.Outer&&(n[p(a)]=f.Outer),e&&(t=[],r=[],o.forEach(function(e){n[e]===f.Inner?t.push(e):n[e]===f.None&&r.push(e)}),2===e?t.forEach(function(e){return n[e]=f.None}):3===e?0===t.length?n[p(r)]=f.Inner:2===t.length&&(n[p(t)]=f.None):4==e&&r.forEach(function(e){return n[e]=f.Inner})),n}function H(e,t){var r=(t=void 0===t?{}:t).x,r=void 0===r?0:r,n=t.y,n=void 0===n?0:n,o=t.w,o=void 0===o?60:o,c=t.h,c=void 0===c?60:c,a=t.points,t=t.margin,t=(t=void 0===t?0:t)<=0?0:t,i=("number"!=typeof a&&a||(a=D(a)),.15*(Math.min(o,c)-2*t)),l=Math.hypot(i,i)/2,u=i+l,r={x:r+t,y:n+t,w:o-u-2*t,h:c-u-2*t},n=r.w/2,o=r.h/2;a.left===f.Outer&&(r.x+=u),a.top===f.Outer&&(r.y+=u),e.beginPath(),e.lineWidth=2,e.moveTo(r.x,r.y),a.top!==f.None&&(e.lineTo(r.x+n-l,r.y),a.top===f.Inner?e.arc(r.x+n,r.y+l,i,1.25*d,1.75*d,!0):e.arc(r.x+n,r.y-l,i,.75*d,.25*d)),e.lineTo(r.x+r.w,r.y),a.right!==f.None&&(e.lineTo(r.x+r.w,r.y+o-l),a.right===f.Inner?e.arc(r.x+r.w-l,r.y+o,i,1.75*d,.25*d,!0):e.arc(r.x+r.w+l,r.y+o,i,1.25*d,.75*d)),e.lineTo(r.x+r.w,r.y+r.h),a.bottom!==f.None&&(e.lineTo(r.x+n+l,r.y+r.h),a.bottom===f.Inner?e.arc(r.x+n,r.y+r.h-l,i,.25*d,.75*d,!0):e.arc(r.x+n,r.y+r.h+l,i,1.75*d,1.25*d)),e.lineTo(r.x,r.y+r.h),a.left!==f.None&&(e.lineTo(r.x,r.y+o+l),a.left===f.Inner?e.arc(r.x+l,r.y+o,i,.75*d,1.25*d,!0):e.arc(r.x-l,r.y+o,i,.25*d,1.75*d)),e.lineTo(r.x,r.y),e.stroke(),e.closePath()}function B(r,e,n,o){return new Promise(function(t){e?r.toBlob(function(e){t(e?URL.createObjectURL(e):r.toDataURL(n,o))},n,o):t(r.toDataURL(n,o))})}var F="image/jpeg",q="image/png",C=[];function j(r,e){var t=(e=void 0===e?{}:e).borderWidth,p=void 0===t?2:t,t=e.borderColor,m=void 0===t?"rgba(255,255,255,0.7)":t,t=e.fillColor,b=void 0===t?"rgba(255,255,255,0.7)":t,g=e.points,t=e.width,v=void 0===t?60:t,t=e.height,y=void 0===t?60:t,w=e.x,x=e.y,t=e.margin,E=void 0===t?2:t,t=e.equalHeight,j=void 0===t||t,O=e.imageWidth,k=e.imageHeight,L=e.bgWidth,z=e.bgHeight,t=e.bgOffset,R=void 0===t?[0,0]:t,t=e.bgImageType,N=void 0===t?F:t,t=e.quality,T=void 0===t?.8:t,t=e.format,S=void 0===t?"dataURL":t,t=e.cacheImage,n=void 0===t||t,t=e.autoRevokePreviousBlobUrl,M=void 0===t||t,o=e.ajaxOptions;return new Promise(function(l,u){var a,e,t,i,s=document.createElement("canvas"),f=document.createElement("canvas"),d=s.getContext("2d"),h=f.getContext("2d");a=r,t=o,i={useCache:"object"==typeof(e=void 0===(e=n)?!0:e)?!1!==e.useCache:!1!==e,autoRevokeOnDel:"object"==typeof e?!1!==e.autoRevokeOnDel:!!e},new Promise(function(o,c){i.useCache&&I.has(a)?o(I.get(a).data):A(a,t).then(function(t){var r=_(t),n=new Image;n.onload=function(){var e={blob:t,image:n};i.useCache&&I.set(a,{data:e,r:i.autoRevokeOnDel}),o(e)},n.onerror=function(e){U(r),console.error("[loadImageWithBlob] The image load failed, '".concat(a,"'.")),c(e)},n.src=r}).catch(c)}).then(function(e){var e=e.image,t=(O&&(e.width=O),k&&(e.height=k),"number"==typeof L&&0<L?v<L?L:v:e.width),r="number"==typeof z&&0<z?y<z?z:y:e.height,n=(s.width=t,s.height=r,t-v),o=r-y,c=void 0===w?P(n,v):w||0,a=void 0===x?P(o):x||0,n=(c<0?c=0:n<c&&(c=n),a<0?a=0:o<a&&(a=o),"number"!=typeof g&&g?g:D(g)),o="function"==typeof R?R(e.width,e.height):R,n=(d.strokeStyle=m,d.lineWidth=p,d.fillStyle=b,H(d,{x:c,y:a,w:v,h:y,points:n,margin:E}),d.fillStyle=b,d.fill(),d.globalCompositeOperation="destination-over",d.drawImage(e,o[0],o[1],e.width,e.height),f.width=t,f.height=r,h.strokeStyle=m,h.lineWidth=p,H(h,{x:c,y:a,w:v,h:y,points:n,margin:E}),h.globalCompositeOperation="destination-over",h.clip(),h.drawImage(e,o[0],o[1],e.width,e.height),h.getImageData(c,a,v,y)),i=(h.clearRect(0,0,t,r),f.width=v,f.height=j?r:y,h.putImageData(n,0,j?a:0),"blob"===S),o=B(f,i,q,T),e=B(s,i,N,T);Promise.all([o,e]).then(function(e){var t=e[0],e=e[1];M&&(C.length&&(C.forEach(function(e){URL.revokeObjectURL(e)}),C.length=0),i)&&C.push(e,t),l({puzzleUrl:t,bgUrl:e,x:c,y:j?0:a})}).catch(u)}).catch(u)})}var m=t(230);function z(e){return(z="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 R(){R=function(){return a};var l,a={},e=Object.prototype,u=e.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",o=t.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(l){c=function(e,t,r){return e[t]=r}}function i(e,t,r,n){var o,c,a,i,t=t&&t.prototype instanceof b?t:b,t=Object.create(t.prototype),n=new k(n||[]);return s(t,"_invoke",{value:(o=e,c=r,a=n,i=d,function(e,t){if(i===h)throw new Error("Generator is already running");if(i===p){if("throw"===e)throw t;return{value:l,done:!0}}for(a.method=e,a.arg=t;;){var r=a.delegate;if(r){r=function e(t,r){var n=r.method,o=t.iterator[n];if(o===l)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=l,e(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;n=f(o,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,m;o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=l),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}(r,a);if(r){if(r===m)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===d)throw i=p,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=h;r=f(o,c,a);if("normal"===r.type){if(i=a.done?p:"suspendedYield",r.arg===m)continue;return{value:r.arg,done:a.done}}"throw"===r.type&&(i=p,a.method="throw",a.arg=r.arg)}})}),t}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}a.wrap=i;var d="suspendedStart",h="executing",p="completed",m={};function b(){}function g(){}function v(){}var t={},y=(c(t,n,function(){return this}),Object.getPrototypeOf),y=y&&y(y(L([]))),w=(y&&y!==e&&u.call(y,n)&&(t=y),v.prototype=b.prototype=Object.create(t));function x(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function E(a,i){var t;s(this,"_invoke",{value:function(r,n){function e(){return new i(function(e,t){!function t(e,r,n,o){var c,e=f(a[e],a,r);if("throw"!==e.type)return(r=(c=e.arg).value)&&"object"==z(r)&&u.call(r,"__await")?i.resolve(r.__await).then(function(e){t("next",e,n,o)},function(e){t("throw",e,n,o)}):i.resolve(r).then(function(e){c.value=e,n(c)},function(e){return t("throw",e,n,o)});o(e.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}})}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function L(t){if(t||""===t){var r,e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return r=-1,(e=function e(){for(;++r<t.length;)if(u.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=l,e.done=!0,e}).next=e}throw new TypeError(z(t)+" is not iterable")}return s(w,"constructor",{value:g.prototype=v,configurable:!0}),s(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,o,"GeneratorFunction"),a.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,o,"GeneratorFunction")),e.prototype=Object.create(w),e},a.awrap=function(e){return{__await:e}},x(E.prototype),c(E.prototype,r,function(){return this}),a.AsyncIterator=E,a.async=function(e,t,r,n,o){void 0===o&&(o=Promise);var c=new E(i(e,t,r,n),o);return a.isGeneratorFunction(t)?c:c.next().then(function(e){return e.done?e.value:c.next()})},x(w),c(w,o,"Generator"),c(w,n,function(){return this}),c(w,"toString",function(){return"[object Generator]"}),a.keys=function(e){var t,r=Object(e),n=[];for(t in r)n.push(t);return n.reverse(),function e(){for(;n.length;){var t=n.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},a.values=L,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&u.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=l)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function e(e,t){return c.type="throw",c.arg=r,n.next=e,t&&(n.method="next",n.arg=l),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var o=this.tryEntries[t],c=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=u.call(o,"catchLoc"),i=u.call(o,"finallyLoc");if(a&&i){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!i)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&u.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var c=(o=o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc?null:o)?o.completion:{};return c.type=e,c.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(c)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r,n,o=this.tryEntries[t];if(o.tryLoc===e)return"throw"===(r=o.completion).type&&(n=r.arg,O(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=l),m}},a}function S(e,t,r,n,o,c,a){try{var i=e[c](a),l=i.value}catch(e){return r(e)}i.done?t(l):Promise.resolve(l).then(n,o)}function M(e){var t=e.id,r=e.style,n=e.className,o=e.imgSrc,c=e.xOffset,a=e.imgWidth,i=e.mode,l=e.tipText,u=e.showRefreshIcon,s=e.autoRefreshOnError,f=e.errorHoldDuration,d=e.placement,h=e.refresh,p=e.setProps,e=e.loading_state,m=Object(ue.useRef)(0),b=Object(ue.useRef)();return Object(ue.useEffect)(function(){var e;h&&(null!=(e=b.current)&&e.refresh(),p({refresh:!1}))},[h]),se.a.createElement(v,{id:t,style:r,className:n,actionRef:b,request:function(){return j(o,{format:"blob"}).then(function(e){return m.current=e.x,{bgUrl:e.bgUrl,puzzleUrl:e.puzzleUrl}})},onVerify:function(){var i;i=R().mark(function e(t){return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.x>=m.current-c&&t.x<m.current+c)return p({verifyResult:{status:"success",timestamp:Date.now()}}),e.abrupt("return",Promise.resolve());e.next=3;break;case 3:return p({verifyResult:{status:"error",timestamp:Date.now()}}),e.abrupt("return",Promise.reject());case 5:case"end":return e.stop()}},e)});return function(e){return function(){var e=this,a=arguments;return new Promise(function(t,r){var n=i.apply(e,a);function o(e){S(n,t,r,o,c,"next",e)}function c(e){S(n,t,r,o,c,"throw",e)}o(void 0)})}.apply(this,arguments)}}(),bgSize:{width:a},mode:i,tipText:l,showRefreshIcon:u,autoRefreshOnError:s,errorHoldDuration:f,placement:d,"data-dash-is-loading":e&&e.is_loading||void 0})}(e.default=M).defaultProps=m.b,M.propTypes=m.c},568:function(e,i,l){"use strict";!function(e){l.d(i,"a",function(){return o}),l.d(i,"b",function(){return a}),l.d(i,"c",function(){return c}),l.d(i,"d",function(){return n}),l.d(i,"e",function(){return r});var t=Object.prototype,r=t.toString,n=(t.hasOwnProperty,t.propertyIsEnumerable,Object.getOwnPropertySymbols,Object.getPrototypeOf,Object.keys),o=(Function.prototype.toString,Array.prototype.slice,Math.min,Math.max,Math.random,Math.floor,Math.ceil,Math.abs,Number.isFinite,Number.isInteger,Number.isSafeInteger,Number.MAX_SAFE_INTEGER||9007199254740991),c=(Number.MIN_SAFE_INTEGER,["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"].map(function(e){return"[object "+e+"]"}),["Function","AsyncFunction","GeneratorFunction","Proxy"].map(function(e){return"[object "+e+"]"})),a="[object Blob]"}.call(this,l(30))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|