summaryrefslogtreecommitdiffhomepage
path: root/8573.cd4468b19759e767bbc1.js
blob: 8073afde152c3fc79a1ba13f3e0efddc3f82569c (plain)
1
2
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8573],{27926:function(n,e,r){r.d(e,{Z:function(){return E}});var t=r(93379),o=r.n(t),i=r(7795),a=r.n(i),l=r(90569),c=r.n(l),u=r(3565),s=r.n(u),A=r(19216),d=r.n(A),f=r(44589),p=r.n(f),b=r(56281),m={};m.styleTagTransform=p(),m.setAttributes=s(),m.insert=c().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=d(),o()(b.Z,m);var y=b.Z&&b.Z.locals?b.Z.locals:void 0,h=r(85893);function v(n){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},v(n)}var C=["children","secondary","className"];function g(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function x(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){j(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}function j(n,e,r){return(e=function(n){var e=function(n,e){if("object"!==v(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var t=r.call(n,"string");if("object"!==v(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===v(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function B(n){var e=n.children,r=n.secondary,t=n.className,o=function(n,e){if(null==n)return{};var r,t,o=function(n,e){if(null==n)return{};var r,t,o={},i=Object.keys(n);for(t=0;t<i.length;t++)r=i[t],e.indexOf(r)>=0||(o[r]=n[r]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(t=0;t<i.length;t++)r=i[t],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(n,r)&&(o[r]=n[r])}return o}(n,C);return(0,h.jsx)("button",x(x({className:[t,y.action,r&&y.secondary].join(" ")},o),{},{children:e}))}B.defaultProps={className:""};var E=B},2062:function(n,e,r){r.d(e,{Z:function(){return C}});var t=r(41051),o=r(93379),i=r.n(o),a=r(7795),l=r.n(a),c=r(90569),u=r.n(c),s=r(3565),A=r.n(s),d=r(19216),f=r.n(d),p=r(44589),b=r.n(p),m=r(528),y={};y.styleTagTransform=b(),y.setAttributes=A(),y.insert=u().bind(null,"head"),y.domAPI=l(),y.insertStyleElement=f(),i()(m.Z,y);var h=m.Z&&m.Z.locals?m.Z.locals:void 0,v=r(85893);function C(n){var e=n.children,r=n.className,o=void 0===r?"":r,i=[h.tip,o].join(" ");return(0,v.jsxs)("div",{className:i,children:[(0,v.jsx)(t.Z,{className:"fa-flip-horizontal",name:"hand-point-up"})," ",e]})}},81404:function(n,e,r){r.d(e,{Z:function(){return f}});var t=r(67294),o=r(39693),i=r.n(o),a=r(35161),l=r.n(a),c=r(52156),u=r(61953),s=r(74871),A=r(85893);function d(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}function f(n){var e,r=n.node,o=n.onSelect,a=n.expanded,f=void 0!==a&&a,p=(0,t.useCallback)((function(n){n.stopPropagation(),o({node:r,type:"tree"})}),[r,o]),b=(0,t.useMemo)((function(){return l()((0,s.H)(r),"source")}),[r]),m=(0,t.useMemo)((function(){return b.at(-1)}),[b]),y=(0,t.useMemo)((function(){return b.slice(0,-1).reduce((function(n,e){return"".concat(e.code,"(").concat(n,")")}),null==m?void 0:m.code)}),[b,null==m?void 0:m.code]),h=(0,t.useMemo)((function(){return b.map(c.r8).map((function(n,e){return(0,A.jsx)("span",{children:n},e)})).reduce((function(n,e){return 0===n.length?[e]:[].concat(function(n){if(Array.isArray(n))return d(n)}(r=n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(r)||function(n,e){if(n){if("string"==typeof n)return d(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(n,e):void 0}}(r)||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.")}(),[" ",e]);var r}),[])}),[b]),v=(0,t.useMemo)((function(){return b.map(c.rG).join(" + ")}),[b]),C=(0,t.useMemo)((function(){return b.map((function(n){return n?n.description||n.name:"⦸"})).join(" + ")}),[b]),g=void 0===(null===(e=r.source)||void 0===e?void 0:e.code)||void 0===r.value||r._isPlaceholder,x=f?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("code",{children:y}),(0,A.jsx)("span",{children:C})]}):h;return(0,A.jsx)("span",{className:i()([u.Z.code,g&&u.Z.missingValue]).join(" "),title:v,onClick:p,children:g?(0,A.jsx)(c.J1,{}):x})}},74871:function(n,e,r){function t(n,e){if(n){if("string"==typeof n)return i(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(n,e):void 0}}function o(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}function i(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}function a(n){return n.params.length>0?[n].concat(function(n){if(Array.isArray(n))return i(n)}(e=a(n.params[0]))||o(e)||t(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.")}()):[n];var e}function l(n){var e,r=function(n){if(Array.isArray(n))return n}(e=n)||o(e)||t(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=r[0],a=r.slice(1);return{value:i,params:0===a.length?[]:[l(a)]}}r.d(e,{H:function(){return a},n:function(){return l}})},83197:function(n,e,r){r.d(e,{N:function(){return Y},Z:function(){return q}});var t=r(27361),o=r.n(t),i=r(45697),a=r.n(i),l=r(67294),c=r(67069),u=r(52156),s=r(81404),A=r(93379),d=r.n(A),f=r(7795),p=r.n(f),b=r(90569),m=r.n(b),y=r(3565),h=r.n(y),v=r(19216),C=r.n(v),g=r(44589),x=r.n(g),j=r(33151),B={};B.styleTagTransform=x(),B.setAttributes=h(),B.insert=m().bind(null,"head"),B.domAPI=p(),B.insertStyleElement=C(),d()(j.Z,B);var E=j.Z&&j.Z.locals?j.Z.locals:void 0,w=r(85893);function O(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}var S=function(n){var e,r,t=n.node,o=n.onSelect,i=(e=t.params,r=3,function(n){if(Array.isArray(n))return n}(e)||function(n,e){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(n)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==e);c=!0);}catch(n){u=!0,o=n}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,r)||function(n,e){if(n){if("string"==typeof n)return O(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(n,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],c=i[1],s=i[2],A=(0,l.useCallback)((function(n){var e;null==n||null===(e=n.stopPropagation)||void 0===e||e.call(n),o({node:t,type:"tree"})}),[t,o]),d=(0,l.useMemo)((function(){return[a,c,s].some((function(n){return void 0===(null==n?void 0:n.value)||(null==n?void 0:n._isPlaceholder)}))}),[a,c,s]),f=(0,l.useMemo)((function(){return[a,c,s].some((function(n){return void 0===(null==n?void 0:n.value)}))?{}:{backgroundColor:"hsl(".concat(a.value,", ").concat(c.value,"%, ").concat(s.value,"%)"),border:".1em solid hsl(".concat(a.value,", ").concat(c.value,"%, ").concat(.75*s.value,"%)"),boxSizing:"border-box"}}),[a,c,s]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(u.ZP,{node:t,onSelect:o}),d?(0,w.jsx)(u.ZP,{node:{},onSelect:A}):(0,w.jsx)("div",{onClick:A,className:E.colorIconWrapper,children:(0,w.jsx)("div",{className:E.colorIcon,title:f.backgroundColor,style:f})})]})},k=r(61953);function P(n){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},P(n)}function Z(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function T(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(r),!0).forEach((function(e){I(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}function I(n,e,r){return(e=function(n){var e=function(n,e){if("object"!==P(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var t=r.call(n,"string");if("object"!==P(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===P(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function D(n){var e=n.node,r=n.onSelect,t=n.expanded;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(u.ZP,{node:e,onSelect:r,expanded:t}),o()(e,"source.params.length")>0?(0,w.jsx)(M,{slots:e.source.params,params:e.params,onSelect:r}):null]})}function Y(n){var e=n.node,r=n.onSelect,t=n.slot,o=n.expanded,i=void 0!==o&&o,a=(0,l.useMemo)((function(){var n;return"hsb-color-picker"===(null===(n=e.source)||void 0===n?void 0:n.helper)?S:"code"===t?s.Z:D}),[e,t]);return(0,w.jsx)("span",{className:k.Z.param,children:(0,w.jsx)(a,{node:e,onSelect:r,expanded:i})})}function M(n){var e=n.slots,r=n.params,t=n.onSelect,o=n.root,i=n.wrapperProps;return(0,w.jsx)("span",T(T({className:k.Z.params,"data-is-root":!!o,"data-param-count":r.length},i),{},{children:e.map((function(n,e){return"placeholder"!==n.type&&(0,w.jsx)(Y,{slot:n,node:r[e],onSelect:t},e)}))}))}M.propTypes={slots:a().arrayOf(c.wu).isRequired,params:a().arrayOf(c.le).isRequired,source:c.qz,onSelect:a().func.isRequired};var q=M},52156:function(n,e,r){r.d(e,{J1:function(){return d},r8:function(){return p},rG:function(){return f}});var t=r(39693),o=r.n(t),i=r(67294),a=r(45697),l=r.n(a),c=r(67069),u=r(61953),s=r(41051),A=r(85893);function d(){return(0,A.jsx)("span",{children:"⦸"})}function f(n){var e=(null==n?void 0:n.displayName)||(null==n?void 0:n.description);return n&&"(".concat(n.code,") ").concat(e)}function p(n){var e,r=(null==n?void 0:n.symbol)||(null==n||null===(e=n.code)||void 0===e?void 0:e.toString());return(null==n?void 0:n.faIcon)&&(0,A.jsx)(s.Z,{name:null==n?void 0:n.faIcon})||r||(0,A.jsx)(d,{})}function b(n){var e,r,t=n.value,o=n.expanded;if(void 0===o||!o)return p(t);if(!t)return(0,A.jsx)(d,{});var i=t.faIcon?(0,A.jsx)(s.Z,{name:t.faIcon}):t.symbol,a=null===(e=t.code)||void 0===e||null===(r=e.toString)||void 0===r?void 0:r.call(e),l=t.displayName||t.description||t.name;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("code",{children:a}),l&&(0,A.jsx)("span",{children:l})," ",i]})}function m(n){var e=n.node,r=n.onSelect,t=n.expanded,a=void 0!==t&&t,l=e.value,c=e.source,s=e._isPlaceholder,p=f(c),m=(0,i.useCallback)((function(n){n.stopPropagation(),r({node:e})}),[e,r]);return(0,A.jsx)("span",{className:o()([u.Z.code,(void 0===l||s)&&u.Z.missingValue]).join(" "),title:p,onClick:m,children:s?(0,A.jsx)(d,{}):(0,A.jsx)(b,{value:c,expanded:a})})}m.propTypes={node:c.le.isRequired,onSelect:l().func.isRequired},e.ZP=m},27213:function(n,e,r){var t=r(39693),o=r.n(t),i=r(45697),a=r.n(i),l=r(55326),c=r(83197),u=r(67069),s=r(39017),A=r(61953),d=r(41051),f=r(65919),p=r(85893);function b(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}function m(n){var e,r,t,i,a=n.context,u=void 0===a?"none":a,m=n.hideBehaviour,y=n.value,h=n.params,v=n.paramIndex,C=n.onUpdate,g=(t=(0,l.Z)({value:y,params:h},v,C),i=2,function(n){if(Array.isArray(n))return n}(t)||function(n,e){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(n)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==e);c=!0);}catch(n){u=!0,o=n}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,i)||function(n,e){if(n){if("string"==typeof n)return b(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(n,e):void 0}}(t,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=g[0],j=x.behavior,B=x.behaviorParams,E=x.bindTree,w=x.bindTreeParams,O=x.editing,S=x.invalid,k=g[1],P=k.selectNodeForEditing,Z=k.clearEditing,T=k.handleUpdateAndConfirm,I=k.handleChange,D=k.handleConfirm;return(0,p.jsxs)(p.Fragment,{children:[j&&!m?(0,p.jsx)("span",{className:o()([A.Z["behaviour-binding"],!(null!==(e=E.source)&&void 0!==e&&e.code)&&A.Z.missingValue]).join(" "),onClick:function(){return P({node:E})},children:(null===(r=E.source)||void 0===r?void 0:r.code)||"⦸"}):null,S&&(0,p.jsx)(d.Z,{name:"warning",className:A.Z.missing,title:"Binding has missing value(s)"}),(0,p.jsx)(c.Z,{root:!0,slots:B,params:w,onSelect:P,wrapperProps:{"data-simple":(0,s.Gg)(E),"data-long":(0,s.Mc)(E,B)}}),O&&(0,p.jsx)(f.Z,{node:O.node,type:O.type,behaviour:j,context:u,prompt:(0,s._I)(O.node.slot),searchKey:"code",onSelect:T,onConfirm:D,onChange:I,onCancel:Z})]})}m.propTypes={context:a().string,hideBehaviour:a().bool.isRequired,value:u.S3.isRequired,params:a().arrayOf(u.dH),onUpdate:a().func.isRequired},m.defaultProps={hideBehaviour:!1},e.Z=m},67069:function(n,e,r){r.d(e,{S3:function(){return c},dH:function(){return A},le:function(){return d},qz:function(){return u},wu:function(){return a}});var t=r(45697),o=r.n(t),i=o().oneOfType([o().number,o().shape({name:o().string,type:o().string,description:o().string,code:o().any})]),a=o().oneOfType([o().oneOf(["code","layer"]),o().shape({type:o().oneOf(["placeholder"])}),o().shape({enum:o().arrayOf(i),raw:o().bool,name:o().string,type:o().string.isRequired})]),l=o().arrayOf(a),c=o().oneOfType([o().string,o().number]),u=o().shape({params:l,code:c.isRequired,description:o().string,symbol:o().string,faIcon:o().string}),s={value:c,source:u};s.params=o().arrayOf(o().shape(s));var A=o().shape(s),d=A;o().arrayOf(A)},55326:function(n,e,r){r.d(e,{Z:function(){return v}});var t=r(50361),o=r.n(t),i=r(27361),a=r.n(i),l=r(67294),c=r(81485),u=r(39017),s=r(41696);function A(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}function d(n,e){var r=e.nodeIndex,t=e.updatedNode,i=o()(n),a=(0,u.He)(i),l=a[r];return l.value=t.value,l.params=t.params,delete l._isPlaceholder,a.forEach((function(n){delete n.source,delete n.slot})),i}function f(n,e){var r,t,i,a=e.nodeIndex,l=e.source,c=e.behaviorParameters,s=o()(n),d=(0,u.He)(s),f=d[a];f.slot.raw&&"number"===f.slot.type&&(l.code=Number(l.code));var p=(null===(r=f.source)||void 0===r||null===(t=r.additionalParams)||void 0===t?void 0:t.length)||0;((null===(i=l.additionalParams)||void 0===i?void 0:i.length)||0)<p&&(d[0].params.splice(1,d[0].params.length-1),d.splice(2,d.length-1));var b=function(n,e){var r=n.params,t=n.source,o=(null==t?void 0:t.params)||[];return e.reduce((function(n,e,t){return[].concat(function(n){if(Array.isArray(n))return A(n)}(i=n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(i)||function(n,e){if(n){if("string"==typeof n)return A(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(n,e):void 0}}(i)||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.")}(),[o[t]!==e?{value:0,_isPlaceholder:!0}:r[t]]);var i}),[])}(f,"behaviour"===f.slot?c[l.code]||[]:(null==l?void 0:l.params)||[]);return delete f._isPlaceholder,f.value=l.code,f.params=b,d.forEach((function(n){delete n.source,delete n.slot})),s}function p(n){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},p(n)}function b(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function m(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){y(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}function y(n,e,r){return(e=function(n){var e=function(n,e){if("object"!==p(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var t=r.call(n,"string");if("object"!==p(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===p(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function h(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}function v(n,e,r){var t,i,A,p,b=(0,l.useContext)(c.c),y=b.sources,v=(A=(0,l.useState)(null),p=2,function(n){if(Array.isArray(n))return n}(A)||function(n,e){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(n)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==e);c=!0);}catch(n){u=!0,o=n}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(A,p)||function(n,e){if(n){if("string"==typeof n)return h(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(n,e):void 0}}(A,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),C=v[0],g=v[1],x=(0,l.useMemo)((function(){return(0,u.K4)((null==C?void 0:C.pending)||n,b)}),[n,null==C?void 0:C.pending,b]),j=void 0===e?[0]:[e,e+1],B=n.value,E=a()(y.behaviours,B,{}),w=(t=(0,s.L)(n,b.behaviorParameters)).slice.apply(t,j),O=(i=x.params).slice.apply(i,j),S=(0,u.He)(x),k=(0,l.useMemo)((function(){return(0,u.wx)(S)}),[S]),P=(0,l.useCallback)((function(){return g(null)}),[g]),Z=(0,l.useCallback)((function(n){var e=C.nodeIndex,t="tree"===C.type?d(x,{nodeIndex:e,updatedNode:n}):f(x,{source:n,nodeIndex:e,behaviorParameters:b.behaviorParameters});r((0,u.FY)(t)),P()}),[x,C,P,r,b.behaviorParameters]),T=(0,l.useCallback)((function(){C.pending&&(r((0,u.FY)(C.pending)),P())}),[null==C?void 0:C.pending,r,P]),I=(0,l.useCallback)((function(n){var e=C.pending,r=C.nodeIndex,t="tree"===C.type?d(e,{nodeIndex:r,updatedNode:n}):f(e,{source:n,nodeIndex:r,behaviorParameters:b.behaviorParameters}),o=(0,u.K4)(t,b),i=(0,u.He)(o),a=i[r];g(m(m({},C),{},{pending:o,index:i,node:a}))}),[C,g,b]),D=(0,l.useCallback)((function(n){var e=n.node,r=n.type,t=void 0===r?"value":r,i=o()(x),a=(0,u._I)(e.slot,e,t),l=S.indexOf(e);(null==C?void 0:C.nodeIndex)!==l||(null==C?void 0:C.type)!==t?g({pending:i,node:e,type:t,nodeIndex:l,prompt:a}):T()}),[C,x,S,g,T]),Y=(0,l.useMemo)((function(){return{behavior:E,behaviorParams:w,bindTree:x,bindTreeParams:O,editing:C,index:S,invalid:k}}),[E,w,x,O,C,S,k]),M=(0,l.useMemo)((function(){return{clearEditing:P,handleChange:I,handleConfirm:T,handleUpdateAndConfirm:Z,handleUpdateBindValue:Z,selectNodeForEditing:D}}),[P,D,I,T,Z]);return(0,l.useMemo)((function(){return[Y,M]}),[Y,M])}},39017:function(n,e,r){r.d(e,{FY:function(){return v},Gg:function(){return C},He:function(){return h},K4:function(){return B},Mc:function(){return g},_I:function(){return x},wx:function(){return j}});var t=r(50361),o=r.n(t),i=r(13311),a=r.n(i),l=r(27361),c=r.n(l),u=r(41696);function s(n){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},s(n)}function A(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function d(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?A(Object(r),!0).forEach((function(e){f(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}function f(n,e,r){return(e=function(n){var e=function(n,e){if("object"!==s(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var t=r.call(n,"string");if("object"!==s(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===s(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function p(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(n)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==e);c=!0);}catch(n){u=!0,o=n}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,e)||m(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(n,e){var r="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!r){if(Array.isArray(n)||(r=m(n))||e&&n&&"number"==typeof n.length){r&&(n=r);var t=0,o=function(){};return{s:o,n:function(){return t>=n.length?{done:!0}:{done:!1,value:n[t++]}},e:function(n){throw n},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){r=r.call(n)},n:function(){var n=r.next();return a=n.done,n},e:function(n){l=!0,i=n},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}function m(n,e){if(n){if("string"==typeof n)return y(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(n,e):void 0}}function y(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}function h(n){var e=[];return function n(r){var t=r.params||[];e.push(r),t.forEach(n)}(n),e}function v(n){var e,r=o()(n),t=b(h(r));try{for(t.s();!(e=t.n()).done;){var i=e.value;for(var a in i)"_isPlaceholder"===a&&i._isPlaceholder||["value","params"].includes(a)||delete i[a]}}catch(n){t.e(n)}finally{t.f()}return r}function C(n){var e=p(n.params,1)[0],r=c()(e,"source.symbol",c()(e,"source.code","")),t=!!c()(e,"source.faIcon")||1===r.length;return 1===n.params.length&&t}function g(n,e){var r=p(n.params,1)[0],t=c()(r,"source.symbol",c()(r,"value","")),o=!c()(r,"source.faIcon")&&t.length>4,i=e.length>1,a=c()(r,"params",[]).length>0;return o||i||a}function x(n,e,r){var t={layer:"Assign layer",mod:"Assign modifier",behaviour:"Assign behavior",keycode:"Assign key code"};if("tree"===r&&e){var o,i=null===(o=e.source)||void 0===o?void 0:o.helperPrompt;if(i)return i}return n.name?"Assign ".concat(n.name):n.raw?"Enter raw value":t[n]||t.keycode}function j(n){if(!n[0].source.code)return!0;var e,r=b(n);try{for(r.s();!(e=r.n()).done;){var t,o=e.value;if(((null===(t=o.source)||void 0===t?void 0:t.params)||[]).length>o.params.length)return!0;if(o.params.some((function(n){var e;return"placeholder"!==(null===(e=n.slot)||void 0===e?void 0:e.type)&&(void 0===n.value||""===n.value||void 0===n.source||n._isPlaceholder)})))return!0}}catch(n){r.e(n)}finally{r.f()}}function B(n,e){var r=n.value,t=n.params,o=e.sources,i=e.mergedGlyphs,l=e.behaviorParameters,s=r;function A(n,e){if(!n)return{value:void 0,slot:e,params:[]};var r=n.value,t=n.params,l=n._isPlaceholder,u=function(n,e){var r;return n=c()(o.defines,n,n),Number.isNaN(Number(n))||(n=Number(n)),e.raw?{code:n}:e.enum?a()(e.enum,{code:n})||a()(e.enum,n)||{code:n}:"placeholder"===e.type?{code:n}:null==o||null===(r=o[e])||void 0===r?void 0:r[n]}(r,e);return{value:r,_isPlaceholder:l,slot:e,source:d(d({},u),{},{symbol:c()(i,[null==u?void 0:u.name,"symbol"],null==u?void 0:u.symbol),faIcon:c()(i,[null==u?void 0:u.name,"faIcon"],null==u?void 0:u.faIcon)}),params:c()(u,"params",[]).map((function(n,e){return A(t[e],n)}))}}return{value:r,slot:"behaviour",source:c()(o.behaviours,s,{}),params:(0,u.L)(n,l).map((function(n,e){return A(t[e],n)}))}}},62417:function(n,e,r){function t(n){return n.length>31?"maximum length: 31":n.match(/^[^a-zA-Z]/)?"first character must be a letter":n.match(/[^a-zA-Z0-9,._+-]/)?"valid characters: a-zA-Z0-9,._+-":void 0}r.d(e,{G3:function(){return o},Gk:function(){return t},zq:function(){return i}});var o=t;function i(n){return n.length>31?"maximum length: 31":n.match(/^[^a-zA-Z]/)?"first character must be a letter":n.match(/[^a-zA-Z0-9_]/)?"valid characters: a-zA-Z0-9_":void 0}},82607:function(n,e,r){var t=r(45697),o=r.n(t),i=r(91118),a=r(27213),l=r(67069),c=r(85893);function u(n){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},u(n)}function s(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function A(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){d(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}function d(n,e,r){return(e=function(n){var e=function(n,e){if("object"!==u(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var t=r.call(n,"string");if("object"!==u(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===u(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function f(n){var e=n.context,r=n.value,t=n.params,o=n.keyWrapperProps,l=void 0===o?{}:o,u=n.onUpdate;return(0,c.jsx)(i.Z,A(A({},l),{},{children:(0,c.jsx)(a.Z,{context:e,value:r,params:t,onUpdate:u})}))}f.propTypes={label:o().string,value:l.S3.isRequired,params:o().arrayOf(l.dH),onUpdate:o().func.isRequired},e.Z=f},91118:function(n,e,r){var t=r(39693),o=r.n(t),i=r(61953),a=r(85893);function l(n){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},l(n)}var c=["children","selectable","themeClass","className"];function u(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function s(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){A(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}function A(n,e,r){return(e=function(n){var e=function(n,e){if("object"!==l(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var t=r.call(n,"string");if("object"!==l(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===l(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}e.Z=function(n){var e=n.children,r=n.selectable,t=void 0===r||r,l=n.themeClass,u=void 0===l?void 0:l,A=n.className,d=void 0===A?"":A,f=function(n,e){if(null==n)return{};var r,t,o=function(n,e){if(null==n)return{};var r,t,o={},i=Object.keys(n);for(t=0;t<i.length;t++)r=i[t],e.indexOf(r)>=0||(o[r]=n[r]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(t=0;t<i.length;t++)r=i[t],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(n,r)&&(o[r]=n[r])}return o}(n,c),p=o()([i.Z.key,t&&i.Z.selectable,null!=u?u:i.Z.keyDefaultTheme,d]).join(" ");return(0,a.jsx)("div",s(s({className:p},f),{},{children:e}))}},65919:function(n,e,r){r.d(e,{b:function(){return _n},Z:function(){return Vn}});var t=r(94184),o=r.n(t),i=r(78718),a=r.n(i),l=r(45697),c=r.n(l),u=r(67294),s=r(96186),A=r(64261),d=r(81485),f=function(n,e){var r=(e+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1))%n.length;return r<0?n.length+r:r},p=r(93379),b=r.n(p),m=r(7795),y=r.n(m),h=r(90569),v=r.n(h),C=r(3565),g=r.n(C),x=r(19216),j=r.n(x),B=r(44589),E=r.n(B),w=r(47881),O={};O.styleTagTransform=E(),O.setAttributes=g(),O.insert=v().bind(null,"head"),O.domAPI=y(),O.insertStyleElement=j(),b()(w.Z,O);var S=w.Z&&w.Z.locals?w.Z.locals:void 0,k=r(85893);function P(n){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},P(n)}function Z(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function T(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(r),!0).forEach((function(e){I(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}function I(n,e,r){return(e=function(n){var e=function(n,e){if("object"!==P(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var t=r.call(n,"string");if("object"!==P(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===P(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function D(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}function Y(n){var e,r,t=n.results,o=n.onSelect,i=n.initialChoice,a=n.renderResult,l=(0,u.useRef)(null),c=(0,u.useMemo)((function(){return t.findIndex((function(n){return n.code===i}))}),[t,i]),s=(e=(0,u.useState)({cursorIndex:c,touched:!1}),r=2,function(n){if(Array.isArray(n))return n}(e)||function(n,e){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(n)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==e);c=!0);}catch(n){u=!0,o=n}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,r)||function(n,e){if(n){if("string"==typeof n)return D(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(n,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),A=s[0],d=A.cursorIndex,p=A.touched,b=s[1],m=(0,u.useCallback)((function(n){return b((function(e){return T(T({},e),{},{cursorIndex:n,touched:!0})}))}),[b]),y=(0,u.useCallback)((function(n){var e,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t='li[data-result-index="'.concat(n,'"]');!function(n,e){var r=n.offsetParent.scrollTop,t=n.offsetParent.offsetHeight,o=n.offsetTop,i=o+n.scrollHeight;(o<r||i>r+t)&&n.scrollIntoView(e)}(null===(e=l.current)||void 0===e?void 0:e.querySelector(t),r)}),[l]);(0,u.useEffect)((function(){p||-1===c||y(c,{behavior:"auto",block:"center"})}),[p,y,c]);var h=(0,u.useCallback)((function(n,e){if(0!==t.length)if(void 0!==e){var r=null!==d?f(t,d,e):n;y(r,{behavior:"auto",block:"nearest"}),m(r)}else m(n);else m(null)}),[t,d,m,y]),v=(0,u.useCallback)((function(){h(0,1)}),[h]),C=(0,u.useCallback)((function(){h(t.length-1,-1)}),[h,t]),g=(0,u.useCallback)((function(n){o(t[d],n)}),[t,d,o]),x=(0,u.useCallback)((function(n){if("BUTTON"!==n.target.nodeName){var e={ArrowDown:v,ArrowUp:C,Enter:g}[n.key];e&&(n.preventDefault(),n.stopPropagation(),e(n))}}),[v,C,g]);return(0,u.useEffect)((function(){return document.body.addEventListener("keydown",x),function(){return document.body.removeEventListener("keydown",x)}}),[l,x]),(0,k.jsx)("ul",{className:S.results,ref:l,children:t.map((function(n,e){return(0,k.jsx)("li",{className:d===e?S.highlighted:"",title:n.description,"data-result-index":e,onClick:function(e){return o(n,e)},onDoubleClick:function(e){return o(n,e)},onMouseOver:function(){return h(e)},children:a(n,e)},e)}))})}Y.propTypes={results:c().array.isRequired,onSelect:c().func.isRequired,renderResult:c().func.isRequired};var M=r(67069),q={onCancel:c().func,onChange:c().func,onSelect:c().func.isRequired,node:M.le.isRequired,searchKey:c().string.isRequired,searchThreshold:c().number};function R(n){var e=(0,u.useContext)(d.c).getSearchTargets,r=n.node,t=n.param,o=n.onSelect,i=(0,u.useMemo)((function(){return e(t)}),[e,t]);return(0,k.jsx)(Y,{results:i,initialChoice:null==r?void 0:r.value,onSelect:o,renderResult:function(n){return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("span",{children:n.displayName||n.name||n.code}),n.description&&(0,k.jsx)("p",{className:S.description,children:n.description})]})}})}R.propTypes=q;var U=r(87360),z=r.n(U),L=r(41051);function N(n){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},N(n)}function K(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function Q(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?K(Object(r),!0).forEach((function(e){X(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}function X(n,e,r){return(e=function(n){var e=function(n,e){if("object"!==N(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var t=r.call(n,"string");if("object"!==N(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===N(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function W(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(n)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==e);c=!0);}catch(n){u=!0,o=n}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,e)||function(n,e){if(n){if("string"==typeof n)return F(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?F(n,e):void 0}}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}var J=10;function G(n){var e=n.choices,r=n.searchKey,t=n.searchKeys,o=n.renderResults,i=n.initialQuery,a=!e.length||e.length>J,l=function(n){var e=n.choices,r=n.searchKey,t=n.searchKeys,o=W((0,u.useState)({query:"",touched:!1}),2),i=o[0],a=i.query,l=i.touched,c=o[1],s=(0,u.useMemo)((function(){if(!a)return e;var n=t?{keys:t,limit:30}:{key:r,limit:30};return z().go(a,e,n).map((function(n){return Q(Q({},n.obj),{},{search:n})}))}),[a,e,r,t]),A=(0,u.useCallback)((function(n){c({query:n.target.value,touched:!0})}),[c]),d=(0,u.useCallback)((function(n){c({query:"",touched:!0})}),[c]);return[(0,u.useMemo)((function(){return{query:a,filtered:s,touched:l}}),[a,s,l]),(0,u.useMemo)((function(){return{handleChange:A,handleClearSearch:d}}),[A,d])]}({choices:e,searchKey:r,searchKeys:t,initialQuery:i}),c=W(l,2),s=c[0],A=s.query,d=s.filtered,f=c[1],p=f.handleChange,b=f.handleClearSearch,m=(0,u.useMemo)((function(){return a?d:e}),[a,d,e]);return(0,k.jsxs)(k.Fragment,{children:[a&&(0,k.jsx)(H,{value:A,onChange:p,onClear:b}),o(m)]})}function H(n){var e=n.value,r=n.onChange,t=n.onClear,o=(0,u.useRef)(null);return(0,u.useEffect)((function(){o.current.focus()}),[]),(0,k.jsxs)("div",{className:S.searchWrapper,children:[(0,k.jsx)("input",{ref:o,type:"text",value:e,onChange:r}),(0,k.jsx)(L.Z,{className:S.searchIcon,name:"search"}),(0,k.jsx)(L.Z,{className:S.clearSearchIcon,name:"times",onClick:t})]})}function _(n){var e=n.searchKey,r=n.node,t=n.param,o=n.behaviour,i=n.context,a=n.onSelect,l=(0,u.useContext)(d.c).getSearchTargets,c=(0,u.useMemo)((function(){return l(t,o.code,i)}),[l,t,o,i]);return(0,k.jsx)(G,{choices:c,searchKey:e,renderResults:function(n){return n&&(0,k.jsx)(Y,{results:n,initialChoice:r.value,onSelect:a,renderResult:V})}})}function V(n){var e=n.search?(0,k.jsx)("span",{children:z().highlight(n.search,(function(n,e){return(0,k.jsx)("b",{children:n},e)}))}):(0,k.jsx)("span",{children:n.code}),r=n.displayName||n.description;return(0,k.jsxs)(k.Fragment,{children:[e,r&&(0,k.jsx)("p",{className:S.description,children:r})]})}G.propTypes={choices:c().array.isRequired,searchKey:c().string,initialQuery:c().string.isRequired,renderResults:c().func.isRequired},G.defaultProps={initialQuery:""},H.propTypes={value:c().string.isRequired,onChange:c().func.isRequired,onClear:c().func.isRequired},_.propTypes=q;var $=r(55651),nn=r(27926);function en(n){return en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},en(n)}function rn(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function tn(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rn(Object(r),!0).forEach((function(e){on(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):rn(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}function on(n,e,r){return(e=function(n){var e=function(n,e){if("object"!==en(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var t=r.call(n,"string");if("object"!==en(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===en(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function an(n){var e=n.node,r=n.onChange,t=n.onConfirm,o=n.inline,i=(0,u.useMemo)((function(){return{h:Number(e.params[0].value),s:Number(e.params[1].value),l:Number(e.params[2].value)}}),[e.params]),a=(0,u.useCallback)((function(n){var t=n.h,o=n.s,i=n.l;r(tn(tn({},e),{},{params:[{value:Math.round(t)},{value:Math.round(o)},{value:Math.round(i)}]}))}),[e,r]);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,k.jsx)($.Jz,{color:i,onChange:a})}),!o&&(0,k.jsx)("p",{style:{textAlign:"center"},children:(0,k.jsx)(nn.Z,{onClick:t,children:"Confirm"})})]})}an.propTypes=q;var ln=r(39693),cn=r.n(ln),un=r(35161),sn=r.n(un),An=r(2062),dn=r(39017),fn=r(91118),pn=r(74871),bn=r(82569),mn=r.n(bn);function yn(n,e){if(n){if("string"==typeof n)return hn(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hn(n,e):void 0}}function hn(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}var vn=r(14409),Cn={};Cn.styleTagTransform=E(),Cn.setAttributes=g(),Cn.insert=v().bind(null,"head"),Cn.domAPI=y(),Cn.insertStyleElement=j(),b()(vn.Z,Cn);var gn=vn.Z&&vn.Z.locals?vn.Z.locals:void 0;function xn(n){return xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xn(n)}function jn(n){return function(n){if(Array.isArray(n))return Bn(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(n){if("string"==typeof n)return Bn(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bn(n,e):void 0}}(n)||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 Bn(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}function En(n,e,r){return(e=function(n){var e=function(n,e){if("object"!==xn(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var t=r.call(n,"string");if("object"!==xn(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===xn(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}var wn=["LS","LA","LC","LG"],On=["RS","RA","RC","RG"],Sn={LS:{short:"LSHFT",full:"Left Shift"},LC:{short:"LCTRL",full:"Left Control"},LA:{short:"LALT",full:"Left Alt"},LG:{short:"LGUI",full:"Left Gui"},RS:{short:"RSHFT",full:"Right Shift"},RC:{short:"RCTRL",full:"Right Control"},RA:{short:"RALT",full:"Right Alt"},RG:{short:"RGUI",full:"Right Gui"}},kn=" (This modifier is implicitly used by the active keycode and cannot be de-selected)";function Pn(n){var e=n.selected,r=n.implicit,t=n.row,i=n.onChange;return(0,k.jsx)("ul",{className:gn.modifiers,children:t.map((function(n,t){var a;return(0,k.jsx)("li",{title:Sn[n].full+(r.includes(n)?kn:""),className:o()((a={},En(a,gn.selected,e.includes(n)),En(a,gn.implicit,r.includes(n)),a)),children:(0,k.jsxs)("label",{children:[(0,k.jsx)("input",{type:"checkbox",checked:e.includes(n)||r.includes(n),disabled:r.includes(n),onChange:function(r){i(r.target.checked?[].concat(jn(e),[n]):mn()(e,n))}})," ",(0,k.jsx)("span",{children:Sn[n].short})]})},t)}))})}function Zn(n){var e=n.selected,r=n.implicit,t=n.onChange;return function(n,e,r){!function(n){var e,r,t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).singleKeyOnly,o=void 0!==t&&t,i=(e=(0,u.useState)([]),r=2,function(n){if(Array.isArray(n))return n}(e)||function(n,e){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(n)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==e);c=!0);}catch(n){u=!0,o=n}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,r)||yn(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1],a=(0,u.useCallback)((function(){return i([])}),[i]);(0,u.useEffect)((function(){function e(n){i((function(e){return o?[n.code]:[].concat(function(n){return function(n){if(Array.isArray(n))return hn(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||yn(n)||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.")}()}(e),[n.code])}))}function r(e){i((function(r){return r.includes(e.code)&&setTimeout((function(){return n(e)})),mn()(r,e.code)}))}return document.body.addEventListener("keydown",e),document.body.addEventListener("keyup",r),document.body.addEventListener("focusout",a),function(){document.body.removeEventListener("keydown",e),document.body.removeEventListener("keyup",r),document.body.removeEventListener("focusout",a)}}),[o,i,n,a])}((0,u.useCallback)((function(t){var o=function(n){var e,r={Control:"C",Shift:"S",Alt:"A",Meta:"G"}[n.key],t=(e={},En(e,KeyboardEvent.DOM_KEY_LOCATION_LEFT,"L"),En(e,KeyboardEvent.DOM_KEY_LOCATION_RIGHT,"R"),e)[n.location];return r&&t?"".concat(t).concat(r):null}(t);o&&!e.includes(o)&&r(n.includes(o)?mn()(n,o):[].concat(jn(n),[o]))}),[n,e,r]),{singleKeyOnly:!0})}(e,r,t),(0,k.jsxs)("div",{className:gn.allModifiers,children:[(0,k.jsx)(Pn,{row:wn,selected:e,implicit:r,onChange:t}),(0,k.jsx)(Pn,{row:On,selected:e,implicit:r,onChange:t})]})}Zn.propTypes={selected:c().arrayOf(c().string),implicit:c().arrayOf(c().string),onChange:c().func.isRequired};var Tn=r(81404);function In(n){return function(n){if(Array.isArray(n))return Yn(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||Dn(n)||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 Dn(n,e){if(n){if("string"==typeof n)return Yn(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yn(n,e):void 0}}function Yn(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}function Mn(n){var e=n.node,r=n.onSelect,t=n.onChange,o=n.onConfirm,i=n.behaviour,a=n.inline,l=(0,u.useContext)(d.c).getSearchTargets,c=(0,u.useMemo)((function(){return sn()((0,pn.H)(e),"source")}),[e]),s=(0,u.useMemo)((function(){return c.at(-1)}),[c]),A=(0,u.useMemo)((function(){var n;return null===(n=c.at(-1))||void 0===n?void 0:n.code}),[c]),f=(0,u.useMemo)((function(){return sn()(1===c.length?[]:c.slice(0,-1),"code")}),[c]),p=(0,u.useMemo)((function(){return l("code",i.code).filter((function(n){return 0===n.params.length}))}),[l,i]),b=(0,u.useCallback)((function(n){t((0,pn.n)(cn()([].concat(In(n),[A]))))}),[t,A]),m=(0,u.useCallback)((function(n){t((0,pn.n)(cn()([].concat(In(f),[null==n?void 0:n.code]))))}),[t,f]),y=(0,u.useCallback)((function(n,e){"dblclick"!==e.type?m(n):r((0,pn.n)(cn()([].concat(In(f),[null==n?void 0:n.code]))))}),[r,m,f]),h=a?Rn:qn;return(0,k.jsx)(h,{selectedModifiers:f,selectedKeycode:A,keycodeDefinition:s,choices:p,handleChangeModifiers:b,handleSelectKeycode:y,handleCancel:function(){r(e)},onConfirm:o})}function qn(n){var e=(0,u.useContext)(d.c),r=n.selectedModifiers,t=n.selectedKeycode,i=n.keycodeDefinition,a=n.choices,l=n.handleChangeModifiers,c=n.handleSelectKeycode,s=n.handleCancel,A=n.onConfirm,f=(0,dn.K4)({value:"&kp",params:[{value:t,params:[]}]},e);return(0,k.jsxs)("div",{className:o()(S.dialog,gn.wrapper),children:[(0,k.jsxs)("div",{style:{display:"flex",gap:"10px"},children:[(0,k.jsxs)("div",{children:[(0,k.jsx)("h3",{children:"Keycode"}),(0,k.jsx)(fn.Z,{className:gn.previewKeycode,selectable:!1,children:(0,k.jsx)(Tn.Z,{node:f.params[0],onSelect:function(){}})})]}),(0,k.jsxs)("div",{children:[(0,k.jsx)("h3",{children:"Modifiers"}),(0,k.jsx)(Zn,{selected:r,implicit:(null==i?void 0:i.modifiers)||[],onChange:l})]})]}),(0,k.jsx)("h3",{children:"Available Keycodes"}),(0,k.jsx)(G,{choices:a,initialQuery:t,searchKeys:["code","symbol"],renderResults:function(n){return n&&(0,k.jsx)(Y,{results:n,initialChoice:t,onSelect:c,renderResult:Un})}}),(0,k.jsx)(An.Z,{className:gn.quickCloseTip,children:(0,k.jsx)("span",{children:"Double-click to select and close the dialog"})}),(0,k.jsxs)("div",{style:{marginTop:"10px",textAlign:"center"},children:[(0,k.jsx)(nn.Z,{disabled:!t,onClick:A,children:"Confirm"}),(0,k.jsx)(nn.Z,{onClick:s,secondary:!0,children:"Cancel"})]})]})}function Rn(n){var e=n.selectedModifiers,r=n.selectedKeycode,t=n.keycodeDefinition,o=n.choices,i=n.handleChangeModifiers,a=n.handleSelectKeycode;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("h3",{children:"Modifiers"}),(0,k.jsx)(Zn,{selected:e,implicit:(null==t?void 0:t.modifiers)||[],onChange:i}),(0,k.jsx)("h3",{children:"Available Keycodes"}),(0,k.jsx)(G,{choices:o,initialQuery:r,searchKeys:["code","symbol"],renderResults:function(n){return n&&(0,k.jsx)(Y,{results:n,onSelect:a,initialChoice:r,renderResult:Un})}})]})}function Un(n){var e,r,t=(e=n.search||[],r=1,function(n){if(Array.isArray(n))return n}(e)||function(n,e){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(n)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==e);c=!0);}catch(n){u=!0,o=n}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,r)||Dn(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],o=t?(0,k.jsx)("span",{dangerouslySetInnerHTML:{__html:z().highlight(t)}}):(0,k.jsx)("span",{children:n.code}),i=function(n){var e=null==n?void 0:n.symbol,r=null==n?void 0:n.faIcon;return r?(0,k.jsx)(L.Z,{name:r}):e&&!n.aliases.includes(e)?e:void 0}(n);return(0,k.jsxs)("div",{className:gn.resultItem,children:[(0,k.jsxs)("div",{className:gn.description,children:[o,(0,k.jsx)("p",{className:S.description,children:n.description})]}),i&&(0,k.jsx)("div",{className:gn.symbol,children:i})]})}function zn(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}function Ln(n){n&&(n.focus(),n.select())}function Nn(n){var e,r,t=n.value,o=n.param,i=n.onSelect,a=(e=(0,u.useState)(t),r=2,function(n){if(Array.isArray(n))return n}(e)||function(n,e){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(n)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==e);c=!0);}catch(n){u=!0,o=n}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,r)||function(n,e){if(n){if("string"==typeof n)return zn(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zn(n,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=a[0],c=a[1],s=(0,u.useCallback)((function(n){"Enter"===n.key&&i({code:l})}),[l,i]),A=(0,u.useCallback)((function(n){var e=n.target.value;"number"===o.type&&(e=Number(e),Number.isNaN(e))||c(e)}),[o,c]);return(0,k.jsx)("input",{ref:Ln,type:"text",value:l,onChange:A,onKeyDown:s})}Mn.propTypes=q,Nn.propTypes=q;var Kn=r(95998),Qn=r(80736);function Xn(n){var e=n.node,r=n.onSelect,t=(0,Kn.v9)(Qn.vl),o=(0,u.useMemo)((function(){return t.map((function(n,e){return{code:e.toString(),description:n.name||"Layer ".concat(e)}}))}),[t]);return(0,k.jsx)(Y,{results:o,initialChoice:e.value,onSelect:r,renderResult:function(n){return(0,k.jsxs)(k.Fragment,{children:[n.code,n.description&&(0,k.jsx)("p",{className:S.description,children:n.description})]})}})}Xn.propTypes=q;var Wn=["prompt","onCancel"];function Fn(n){return Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fn(n)}function Jn(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function Gn(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jn(Object(r),!0).forEach((function(e){Hn(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Jn(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}function Hn(n,e,r){return(e=function(n){var e=function(n,e){if("object"!==Fn(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var t=r.call(n,"string");if("object"!==Fn(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===Fn(e)?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function _n(n){var e=n.node,r=n.type,t=n.onSelect,i=n.onChange,l=n.onConfirm,c=a()(n,["node","value","prompt","param","behaviour","context","searchKey","inline"]),s=(0,u.useMemo)((function(){var n;return"tree"===r&&"hsb-color-picker"===(null===(n=e.source)||void 0===n?void 0:n.helper)?an:e.slot.raw||"placeholder"===e.slot.type?Nn:e.slot.enum?R:"code"===e.slot?Mn:"layer"===e.slot?Xn:_}),[e,r]);return(0,k.jsx)("div",{className:o()(S.wrapper,Hn({},S.inline,n.inline)),children:(0,k.jsx)(s,Gn(Gn({},c),{},{param:e.slot,onSelect:t,onChange:i,onConfirm:l}))})}function Vn(n){var e=n.prompt,r=n.onCancel,t=function(n,e){if(null==n)return{};var r,t,o=function(n,e){if(null==n)return{};var r,t,o={},i=Object.keys(n);for(t=0;t<i.length;t++)r=i[t],e.indexOf(r)>=0||(o[r]=n[r]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(t=0;t<i.length;t++)r=i[t],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(n,r)&&(o[r]=n[r])}return o}(n,Wn);return(0,k.jsx)(A.Z,{onDismiss:r,children:(0,k.jsxs)(s.Z,{dismissText:null,classes:[S.dialogWrapper],children:[(0,k.jsx)("h2",{children:e}),(0,k.jsx)(_n,Gn({},t))]})})}_n.propTypes={type:c().string.isRequired,node:M.le.isRequired,behaviour:c().object.isRequired,searchKey:c().string.isRequired,searchThreshold:c().number,inline:c().bool,onCancel:c().func,onUpdate:c().func,onSelect:c().func.isRequired},_n.defaultProps={type:"value",value:"",freeForm:!1,inline:!1,searchThreshold:10},Vn.propTypes={type:c().string.isRequired,node:M.le.isRequired,behaviour:c().object.isRequired,prompt:c().string.isRequired,searchKey:c().string.isRequired,searchThreshold:c().number,onCancel:c().func.isRequired,onChange:c().func,onSelect:c().func.isRequired}},56281:function(n,e,r){var t=r(87537),o=r.n(t),i=r(23645),a=r.n(i)()(o());a.push([n.id,"button.pi2Ig8c3Fdh4H2Jpxdo7 {\n  display: inline-block;\n  cursor: pointer;\n  background-color: var(--hover-selection);\n  color: white;\n\n  font-size: 16px;\n  border: none;\n  border-radius: 5px;\n  padding: 0 5px;\n\n  height: 30px;\n  line-height: 30px;\n  vertical-align: middle;\n}\n\nbutton.Ctpu4E2dZYJ6g8CUGFOF {\n  color: var(--fg);\n  background-color: transparent;\n}\n\nbutton.pi2Ig8c3Fdh4H2Jpxdo7[disabled] {\n  filter: saturate(20%);\n  opacity: .5;\n  cursor: not-allowed;\n}\n","",{version:3,sources:["webpack://./src/Common/action-button.module.css"],names:[],mappings:"AAAA;EACE,qBAAqB;EACrB,eAAe;EACf,wCAAwC;EACxC,YAAY;;EAEZ,eAAe;EACf,YAAY;EACZ,kBAAkB;EAClB,cAAc;;EAEd,YAAY;EACZ,iBAAiB;EACjB,sBAAsB;AACxB;;AAEA;EACE,gBAAgB;EAChB,6BAA6B;AAC/B;;AAEA;EACE,qBAAqB;EACrB,WAAW;EACX,mBAAmB;AACrB",sourcesContent:["button.action {\n  display: inline-block;\n  cursor: pointer;\n  background-color: var(--hover-selection);\n  color: white;\n\n  font-size: 16px;\n  border: none;\n  border-radius: 5px;\n  padding: 0 5px;\n\n  height: 30px;\n  line-height: 30px;\n  vertical-align: middle;\n}\n\nbutton.secondary {\n  color: var(--fg);\n  background-color: transparent;\n}\n\nbutton.action[disabled] {\n  filter: saturate(20%);\n  opacity: .5;\n  cursor: not-allowed;\n}\n"],sourceRoot:""}]),a.locals={action:"pi2Ig8c3Fdh4H2Jpxdo7",secondary:"Ctpu4E2dZYJ6g8CUGFOF"},e.Z=a},528:function(n,e,r){var t=r(87537),o=r.n(t),i=r(23645),a=r.n(i)()(o());a.push([n.id,".sq9i7hQeTeeKuarmO8oA {\n  display: inline-block;\n  font-size: 70%;\n  background: rgba(0, 0, 0, 0.5);\n  color: white;\n  padding: 4px;\n  border-radius: 4px;\n  width: max-content;\n}\n","",{version:3,sources:["webpack://./src/Common/tip.module.css"],names:[],mappings:"AAAA;EACE,qBAAqB;EACrB,cAAc;EACd,8BAA8B;EAC9B,YAAY;EACZ,YAAY;EACZ,kBAAkB;EAClB,kBAAkB;AACpB",sourcesContent:[".tip {\n  display: inline-block;\n  font-size: 70%;\n  background: rgba(0, 0, 0, 0.5);\n  color: white;\n  padding: 4px;\n  border-radius: 4px;\n  width: max-content;\n}\n"],sourceRoot:""}]),a.locals={tip:"sq9i7hQeTeeKuarmO8oA"},e.Z=a},14409:function(n,e,r){var t=r(87537),o=r.n(t),i=r(23645),a=r.n(i)()(o());a.push([n.id,'.AmikJd3HeM7NGUa8io2A {\n  width: 350px;\n}\n\n.dAV6OQxNVA4AUwWKyxqw {\n  width: 100%;\n  background-color: transparent;\n}\n\n.AmikJd3HeM7NGUa8io2A h3:first-child {\n  margin-top: 0px;\n}\n\n.xCOOsvxL5qQ3kR8ri91A {\n  pointer-events: none;\n  box-shadow: 0 4px 10px 0px rgba(0, 0, 0, 0.5);\n}\n\n.Ox9WHfAMFuthXo6ZOJoI {\n  padding: 2px 0;\n}\n\n.u4uW9U2E0DfbUM9vP9pf {\n  padding: 0;\n  margin: 0;\n}\n\n.u4uW9U2E0DfbUM9vP9pf li {\n  display: inline-block;\n  font-family: monospace, monospace;\n  font-size: 70%;\n  margin: 2px;\n  border-radius: 2px;\n\n  background-color: rgba(0, 0, 0, .5);\n  opacity: 0.5;\n  color: white;\n}\n.u4uW9U2E0DfbUM9vP9pf li label {\n  display: inline-block;\n  padding: 4px;\n}\n\n.u4uW9U2E0DfbUM9vP9pf li.YcHSun3PLo8dCb9qIZtc {\n  opacity: 1;\n  background-color: var(--selection);\n  color: white;\n}\n\n.u4uW9U2E0DfbUM9vP9pf li.Ix6wQt3EBFUH2PUcsqgm {\n  background-color: var(--error-highlight);\n  filter: saturate(50%);\n}\n\n.u4uW9U2E0DfbUM9vP9pf li:not(.Ix6wQt3EBFUH2PUcsqgm):hover {\n  opacity: 1;\n  background-color: var(--hover-selection);\n}\n\n.u4uW9U2E0DfbUM9vP9pf li.Ix6wQt3EBFUH2PUcsqgm:hover * {\n  cursor: not-allowed;\n}\n\n.u4uW9U2E0DfbUM9vP9pf li input[type="checkbox"] {\n  margin: 0;\n  vertical-align: text-bottom;\n}\n\n.d3hMEDpEkH8H7YLG_NjI {\n  width: 100% !important;\n  box-sizing: border-box;\n  text-align: center;\n}\n\n.gFHbtpz6TuduOVYLXwHu {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n}\n\n.AfAg5j2RJEcA0Zh3z7mX {\n  flex-grow: 1;\n}\n\n.YeOANHLbze2W1EGYOFiI {\n  font-size: 120%;\n  padding: 6px 10px;\n  color: white !important;\n  background-color: rgba(30, 30, 30, 0.4);\n  border-radius: 5px;\n}',"",{version:3,sources:["webpack://./src/EnhancedPickers/Keycode/styles.module.css"],names:[],mappings:"AAAA;EACE,YAAY;AACd;;AAEA;EACE,WAAW;EACX,6BAA6B;AAC/B;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,oBAAoB;EACpB,6CAA6C;AAC/C;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,UAAU;EACV,SAAS;AACX;;AAEA;EACE,qBAAqB;EACrB,iCAAiC;EACjC,cAAc;EACd,WAAW;EACX,kBAAkB;;EAElB,mCAAmC;EACnC,YAAY;EACZ,YAAY;AACd;AACA;EACE,qBAAqB;EACrB,YAAY;AACd;;AAEA;EACE,UAAU;EACV,kCAAkC;EAClC,YAAY;AACd;;AAEA;EACE,wCAAwC;EACxC,qBAAqB;AACvB;;AAEA;EACE,UAAU;EACV,wCAAwC;AAC1C;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,SAAS;EACT,2BAA2B;AAC7B;;AAEA;EACE,sBAAsB;EACtB,sBAAsB;EACtB,kBAAkB;AACpB;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,mBAAmB;AACrB;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,eAAe;EACf,iBAAiB;EACjB,uBAAuB;EACvB,uCAAuC;EACvC,kBAAkB;AACpB",sourcesContent:['.wrapper {\n  width: 350px;\n}\n\n.inline {\n  width: 100%;\n  background-color: transparent;\n}\n\n.wrapper h3:first-child {\n  margin-top: 0px;\n}\n\n.previewKeycode {\n  pointer-events: none;\n  box-shadow: 0 4px 10px 0px rgba(0, 0, 0, 0.5);\n}\n\n.allModifiers {\n  padding: 2px 0;\n}\n\n.modifiers {\n  padding: 0;\n  margin: 0;\n}\n\n.modifiers li {\n  display: inline-block;\n  font-family: monospace, monospace;\n  font-size: 70%;\n  margin: 2px;\n  border-radius: 2px;\n\n  background-color: rgba(0, 0, 0, .5);\n  opacity: 0.5;\n  color: white;\n}\n.modifiers li label {\n  display: inline-block;\n  padding: 4px;\n}\n\n.modifiers li.selected {\n  opacity: 1;\n  background-color: var(--selection);\n  color: white;\n}\n\n.modifiers li.implicit {\n  background-color: var(--error-highlight);\n  filter: saturate(50%);\n}\n\n.modifiers li:not(.implicit):hover {\n  opacity: 1;\n  background-color: var(--hover-selection);\n}\n\n.modifiers li.implicit:hover * {\n  cursor: not-allowed;\n}\n\n.modifiers li input[type="checkbox"] {\n  margin: 0;\n  vertical-align: text-bottom;\n}\n\n.quickCloseTip {\n  width: 100% !important;\n  box-sizing: border-box;\n  text-align: center;\n}\n\n.resultItem {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n}\n\n.description {\n  flex-grow: 1;\n}\n\n.symbol {\n  font-size: 120%;\n  padding: 6px 10px;\n  color: white !important;\n  background-color: rgba(30, 30, 30, 0.4);\n  border-radius: 5px;\n}'],sourceRoot:""}]),a.locals={wrapper:"AmikJd3HeM7NGUa8io2A",inline:"dAV6OQxNVA4AUwWKyxqw",previewKeycode:"xCOOsvxL5qQ3kR8ri91A",allModifiers:"Ox9WHfAMFuthXo6ZOJoI",modifiers:"u4uW9U2E0DfbUM9vP9pf",selected:"YcHSun3PLo8dCb9qIZtc",implicit:"Ix6wQt3EBFUH2PUcsqgm",quickCloseTip:"d3hMEDpEkH8H7YLG_NjI",resultItem:"gFHbtpz6TuduOVYLXwHu",description:"AfAg5j2RJEcA0Zh3z7mX",symbol:"YeOANHLbze2W1EGYOFiI"},e.Z=a},33151:function(n,e,r){var t=r(87537),o=r.n(t),i=r(23645),a=r.n(i),l=r(2),c=a()(o());c.i(l.Z,"",!0),c.push([n.id,'/* @import "../../Keyboard/Keys/styles.module.css"; */\n\n.'+l.Z.locals.key+" .ElYzpTlttqVbs6KKy9ob {\n  align-self: center;\n}\n."+l.Z.locals.extracted+" .ElYzpTlttqVbs6KKy9ob {\n  display: inline-block;\n  border-bottom: .15em dotted var(--key-color-base);\n  box-sizing: border-box;\n  padding: 6px .25em;\n}\n\n:hover .ElYzpTlttqVbs6KKy9ob:hover {\n  cursor: pointer;\n  background-color: var(--hover-selection);\n  border-radius: 0;\n  border-radius: 3px;\n}\n\n.rdE_HhSUTcg2dK35N2WA {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 1em;\n  aspect-ratio: 1;\n  border-radius: 2px;\n}\n\n."+l.Z.locals.extracted+" .rdE_HhSUTcg2dK35N2WA {\n  display: inline-block;\n}\n","",{version:3,sources:["webpack://./src/EnhancedPickers/RGB/styles.module.css"],names:[],mappings:"AAAA,qDAAqD;;AAMrD;EACE,kBAAkB;AACpB;AACA;EACE,qBAAqB;EACrB,iDAAiD;EACjD,sBAAsB;EACtB,kBAAkB;AACpB;;AAEA;EACE,eAAe;EACf,wCAAwC;EACxC,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,eAAe;EACf,kBAAkB;AACpB;;AAEA;EACE,qBAAqB;AACvB",sourcesContent:['/* @import "../../Keyboard/Keys/styles.module.css"; */\n:import("../../Keyboard/Keys/styles.module.css") {\n  key: key;\n  extracted: extracted;\n}\n\n.key .colorIconWrapper {\n  align-self: center;\n}\n.extracted .colorIconWrapper {\n  display: inline-block;\n  border-bottom: .15em dotted var(--key-color-base);\n  box-sizing: border-box;\n  padding: 6px .25em;\n}\n\n:hover .colorIconWrapper:hover {\n  cursor: pointer;\n  background-color: var(--hover-selection);\n  border-radius: 0;\n  border-radius: 3px;\n}\n\n.colorIcon {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 1em;\n  aspect-ratio: 1;\n  border-radius: 2px;\n}\n\n.extracted .colorIcon {\n  display: inline-block;\n}\n'],sourceRoot:""}]),c.locals={colorIconWrapper:"ElYzpTlttqVbs6KKy9ob",colorIcon:"rdE_HhSUTcg2dK35N2WA"},e.Z=c},2:function(n,e,r){var t=r(87537),o=r.n(t),i=r(23645),a=r.n(i)()(o());a.push([n.id,'.CoLZlKR1WcMrFd9XhDMC {\n\tposition: relative;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\n\tfont-family: Quicksand, avenir, sans-serif;\n\n\t/* TODO: remove this once I have a wrapper with size defaults */\n\twidth: 65px;\n\theight: 65px;\n\n\tfont-size: 110%;\n\tborder-radius: 5px;\n}\n\n.CoLZlKR1WcMrFd9XhDMC.MZMfZSmJbwqqfp28UUOi { cursor: pointer; }\n.CoLZlKR1WcMrFd9XhDMC.MZMfZSmJbwqqfp28UUOi * {\n\tpointer-events: none;\n\tborder: none;\n\ttext-decoration: none !important;\n}\n\n\n.CT4uGhwl8sY0LwT3p39g:not(:hover) .UNzQquWsoIanOpIN0Q9L,\n.OsA2qRpHoDPcN93o_TUX:not(:hover) .DejZXCvvhJILPbs9Q8ht.UNzQquWsoIanOpIN0Q9L {\n\ttext-decoration: underline wavy var(--error-highlight);\n\ttext-underline-offset: 4px;\n\tcolor: var(--error-highlight);\n\tfont-weight: bold;\n}\n\n.Y5EVt8b0BaXNd9uLxhfh {\n\tposition: absolute;\n\tleft: 2px;\n\tbottom: 2px;\n\tfont-size: 80%;\n\n\tanimation: sYr3l9y03JxO_2AP73jr ease-in-out 1s alternate-reverse;\n}\n.Y5EVt8b0BaXNd9uLxhfh:hover {\n\tcolor: rgb(255, 225, 0);\n}\n\n@keyframes sYr3l9y03JxO_2AP73jr {\n\t0% { color: var(--key-color-base) }\n\t100% { color: var(--key-color-extreme) }\n}\n\n.CoLZlKR1WcMrFd9XhDMC:hover .DejZXCvvhJILPbs9Q8ht,\n.CoLZlKR1WcMrFd9XhDMC:hover .DejZXCvvhJILPbs9Q8ht :before,\n.CoLZlKR1WcMrFd9XhDMC:hover .GliE4Ybwli9X6TNTjD1_ {\n\tborder-bottom-left-radius: 0;\n\tborder-bottom-right-radius: 0;\n\ttext-decoration: underline dotted white 2px;\n\ttext-underline-offset: 4px;\n}\n\n\n.huQDP3GbTLThbVIP8wFp {\n\tcolor: var(--key-color-base);\n\tbackground-color: var(--key-bg-base);\n}\n\n.PpMmKpJfEi37Ldw7AeBT {\n\tborder-radius: 100%;\n\tbackground-color: var(--key-bg-base);\n\tcolor: var(--key-color-base);\n}\n\n._F1Vep3btfY3Rl4VJaUQ {\n\twidth: 80px;\n\theight: 80px;\n\tborder-radius: 100%;\n\tbackground-color: var(--key-bg-base);\n\tcolor: var(--key-color-base);\n}\n\n._F1Vep3btfY3Rl4VJaUQ .GliE4Ybwli9X6TNTjD1_ {\n\tleft: 50%;\n\ttransform: translateX(-50%);\n}\n._F1Vep3btfY3Rl4VJaUQ .ApHDJFJGYUaGTgzMeIKZ[data-is-root="true"] {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n._F1Vep3btfY3Rl4VJaUQ .ApHDJFJGYUaGTgzMeIKZ[data-is-root="true"] .mLz637Atn0jZXey6Rx4v:first-child::before {\n\tcontent: "⟳";\n\tfont-size: 140%;\n\tfont-weight: bold;\n}\n._F1Vep3btfY3Rl4VJaUQ .ApHDJFJGYUaGTgzMeIKZ[data-is-root="true"] .mLz637Atn0jZXey6Rx4v:nth-child(2)::before {\n\tcontent: "⟲";\n\tfont-size: 140%;\n\tfont-weight: bold;\n}\n._F1Vep3btfY3Rl4VJaUQ:hover .ApHDJFJGYUaGTgzMeIKZ[data-is-root="true"] .mLz637Atn0jZXey6Rx4v:first-child::before,\n._F1Vep3btfY3Rl4VJaUQ:hover .ApHDJFJGYUaGTgzMeIKZ[data-is-root="true"] .mLz637Atn0jZXey6Rx4v:nth-child(2)::before {\n\tcolor: white;\n}\n\n\n.k2EIh8YlFvp9sBuklSxx {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 50%;\n\ttransform: translateX(-50%);\n\tfont-size: 50%;\n}\n\n.CoLZlKR1WcMrFd9XhDMC:hover, .PpMmKpJfEi37Ldw7AeBT:hover {\n\tbackground-color: var(--hover-selection);\n\ttransition: 200ms;\n\tz-index: 1;\n}\n.CoLZlKR1WcMrFd9XhDMC:hover .DejZXCvvhJILPbs9Q8ht, .CoLZlKR1WcMrFd9XhDMC:hover .GliE4Ybwli9X6TNTjD1_ {\n\tcolor: var(--key-color-hover);\n}\n.CoLZlKR1WcMrFd9XhDMC > .DejZXCvvhJILPbs9Q8ht {\n\tpadding: 5px;\n}\n\n.mLz637Atn0jZXey6Rx4v {\n\tdisplay: inline-flex;\n\talign-items: center;\n}\n\n[data-simple="true"] { font-size: 140%; }\n[data-long="true"] { font-size: 60%; }\n\n.ApHDJFJGYUaGTgzMeIKZ:not([data-is-root="true"])::before { content: \'(\'; opacity: 0.4; font-weight: bold; margin: 2px; }\n.ApHDJFJGYUaGTgzMeIKZ:not([data-is-root="true"])::after { content: \')\'; opacity: 0.4; font-weight: bold; margin: 2px; }\n.ApHDJFJGYUaGTgzMeIKZ:not([data-is-root="true"]) .mLz637Atn0jZXey6Rx4v:not(:last-child)::after { content: \',\'; }\n\n.DejZXCvvhJILPbs9Q8ht {\n\tcursor: default;\n\tpadding: 0px 4px;\n\tmargin-left: -2px;\n\tmargin-right: -2px;\n}\n\n.CT4uGhwl8sY0LwT3p39g .DejZXCvvhJILPbs9Q8ht {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\tbox-sizing: content-box;\n\tmin-width: 0.5em;\n\ttext-align: center;\n\tborder-radius: 4px;\n}\n.CoLZlKR1WcMrFd9XhDMC .DejZXCvvhJILPbs9Q8ht:hover {\n\tbackground-color: white !important;\n\tcolor: var(--hover-selection) !important;\n\tborder-radius: 4px !important;\n}\n\n.DejZXCvvhJILPbs9Q8ht * {\n\tpointer-events: none;\n}\n\n.OsA2qRpHoDPcN93o_TUX {\n\t/* display: inline-block; */\n\tmargin: 0 5px;\n\tfont-family: Quicksand, avenir, sans-serif;\n\tfont-size: 110%;\n}\n.OsA2qRpHoDPcN93o_TUX .mLz637Atn0jZXey6Rx4v {\n\talign-items: center;\n\tgap: 6px;\n}\n.OsA2qRpHoDPcN93o_TUX .DejZXCvvhJILPbs9Q8ht {\n\talign-items: center;\n\tpadding: 6px 12px;\n\tborder-radius: 5px;\n\tcolor: var(--key-color-base);\n\tborder-bottom: .15em dotted var(--key-color-base);\n\tborder-radius: 0;\n}\n\n.OsA2qRpHoDPcN93o_TUX .DejZXCvvhJILPbs9Q8ht:hover,\n.OsA2qRpHoDPcN93o_TUX.sqfL6SjYMWzHXm3D6bOd .DejZXCvvhJILPbs9Q8ht {\n\tbackground-color: var(--hover-selection);\n\tborder-radius: 5px;\n\tcolor: white;\n\tcursor: pointer;\n}\n\n.DejZXCvvhJILPbs9Q8ht code+*::before {\n\tcontent: "|";\n\tbackground-color: transparent;\n\tmargin: auto 5px;\n}\n\n.GliE4Ybwli9X6TNTjD1_ {\n  position: absolute;\n  top: 0;\n  left: 0;\n  font-size: 10px;\n  padding: 2px;\n  opacity: 0.8;\n}\n\n.GliE4Ybwli9X6TNTjD1_:hover {\n  cursor: pointer;\n  color: var(--hover-selection) !important;\n  background-color: var(--key-bg-hover);\n  border-radius: 5px 0;\n  opacity: 1;\n}\n',"",{version:3,sources:["webpack://./src/Keyboard/Keys/styles.module.css"],names:[],mappings:"AAAA;CACC,kBAAkB;CAClB,aAAa;CACb,uBAAuB;CACvB,mBAAmB;;CAEnB,0CAA0C;;CAE1C,+DAA+D;CAC/D,WAAW;CACX,YAAY;;CAEZ,eAAe;CACf,kBAAkB;AACnB;;AAEA,6CAAe,eAAe,EAAE;AAChC;CACC,oBAAoB;CACpB,YAAY;CACZ,gCAAgC;AACjC;;;AAGA;;CAEC,sDAAsD;CACtD,0BAA0B;CAC1B,6BAA6B;CAC7B,iBAAiB;AAClB;;AAEA;CACC,kBAAkB;CAClB,SAAS;CACT,WAAW;CACX,cAAc;;CAEd,gEAAiD;AAClD;AACA;CACC,uBAAuB;AACxB;;AAEA;CACC,KAAK,6BAA6B;CAClC,OAAO,gCAAgC;AACxC;;AAEA;;;CAGC,4BAA4B;CAC5B,6BAA6B;CAC7B,2CAA2C;CAC3C,0BAA0B;AAC3B;;;AAGA;CACC,4BAA4B;CAC5B,oCAAoC;AACrC;;AAEA;CACC,mBAAmB;CACnB,oCAAoC;CACpC,4BAA4B;AAC7B;;AAEA;CACC,WAAW;CACX,YAAY;CACZ,mBAAmB;CACnB,oCAAoC;CACpC,4BAA4B;AAC7B;;AAEA;CACC,SAAS;CACT,2BAA2B;AAC5B;AACA;CACC,aAAa;CACb,sBAAsB;AACvB;AACA;CACC,YAAY;CACZ,eAAe;CACf,iBAAiB;AAClB;AACA;CACC,YAAY;CACZ,eAAe;CACf,iBAAiB;AAClB;AACA;;CAEC,YAAY;AACb;;;AAGA;CACC,kBAAkB;CAClB,MAAM;CACN,SAAS;CACT,2BAA2B;CAC3B,cAAc;AACf;;AAEA;CACC,wCAAwC;CACxC,iBAAiB;CACjB,UAAU;AACX;AACA;CACC,6BAA6B;AAC9B;AACA;CACC,YAAY;AACb;;AAEA;CACC,oBAAoB;CACpB,mBAAmB;AACpB;;AAEA,uBAAuB,eAAe,EAAE;AACxC,qBAAqB,cAAc,EAAE;;AAErC,2DAA6C,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE;AACzG,0DAA4C,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE;AACxG,iGAAoE,YAAY,EAAE;;AAElF;CACC,eAAe;CACf,gBAAgB;CAChB,iBAAiB;CACjB,kBAAkB;AACnB;;AAEA;CACC,eAAe;CACf,qBAAqB;CACrB,uBAAuB;CACvB,gBAAgB;CAChB,kBAAkB;CAClB,kBAAkB;AACnB;AACA;CACC,kCAAkC;CAClC,wCAAwC;CACxC,6BAA6B;AAC9B;;AAEA;CACC,oBAAoB;AACrB;;AAEA;CACC,2BAA2B;CAC3B,aAAa;CACb,0CAA0C;CAC1C,eAAe;AAChB;AACA;CACC,mBAAmB;CACnB,QAAQ;AACT;AACA;CACC,mBAAmB;CACnB,iBAAiB;CACjB,kBAAkB;CAClB,4BAA4B;CAC5B,iDAAiD;CACjD,gBAAgB;AACjB;;AAEA;;CAEC,wCAAwC;CACxC,kBAAkB;CAClB,YAAY;CACZ,eAAe;AAChB;;AAEA;CACC,YAAY;CACZ,6BAA6B;CAC7B,gBAAgB;AACjB;;AAEA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,eAAe;EACf,YAAY;EACZ,YAAY;AACd;;AAEA;EACE,eAAe;EACf,wCAAwC;EACxC,qCAAqC;EACrC,oBAAoB;EACpB,UAAU;AACZ",sourcesContent:['.key {\n\tposition: relative;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\n\tfont-family: Quicksand, avenir, sans-serif;\n\n\t/* TODO: remove this once I have a wrapper with size defaults */\n\twidth: 65px;\n\theight: 65px;\n\n\tfont-size: 110%;\n\tborder-radius: 5px;\n}\n\n.key.unified { cursor: pointer; }\n.key.unified * {\n\tpointer-events: none;\n\tborder: none;\n\ttext-decoration: none !important;\n}\n\n\n.selectable:not(:hover) .missingValue,\n.extracted:not(:hover) .code.missingValue {\n\ttext-decoration: underline wavy var(--error-highlight);\n\ttext-underline-offset: 4px;\n\tcolor: var(--error-highlight);\n\tfont-weight: bold;\n}\n\n.missing {\n\tposition: absolute;\n\tleft: 2px;\n\tbottom: 2px;\n\tfont-size: 80%;\n\n\tanimation: pulse ease-in-out 1s alternate-reverse;\n}\n.missing:hover {\n\tcolor: rgb(255, 225, 0);\n}\n\n@keyframes pulse {\n\t0% { color: var(--key-color-base) }\n\t100% { color: var(--key-color-extreme) }\n}\n\n.key:hover .code,\n.key:hover .code :before,\n.key:hover .behaviour-binding {\n\tborder-bottom-left-radius: 0;\n\tborder-bottom-right-radius: 0;\n\ttext-decoration: underline dotted white 2px;\n\ttext-underline-offset: 4px;\n}\n\n\n.keyDefaultTheme {\n\tcolor: var(--key-color-base);\n\tbackground-color: var(--key-bg-base);\n}\n\n.encoder {\n\tborder-radius: 100%;\n\tbackground-color: var(--key-bg-base);\n\tcolor: var(--key-color-base);\n}\n\n.encoder2 {\n\twidth: 80px;\n\theight: 80px;\n\tborder-radius: 100%;\n\tbackground-color: var(--key-bg-base);\n\tcolor: var(--key-color-base);\n}\n\n.encoder2 .behaviour-binding {\n\tleft: 50%;\n\ttransform: translateX(-50%);\n}\n.encoder2 .params[data-is-root="true"] {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n.encoder2 .params[data-is-root="true"] .param:first-child::before {\n\tcontent: "⟳";\n\tfont-size: 140%;\n\tfont-weight: bold;\n}\n.encoder2 .params[data-is-root="true"] .param:nth-child(2)::before {\n\tcontent: "⟲";\n\tfont-size: 140%;\n\tfont-weight: bold;\n}\n.encoder2:hover .params[data-is-root="true"] .param:first-child::before,\n.encoder2:hover .params[data-is-root="true"] .param:nth-child(2)::before {\n\tcolor: white;\n}\n\n\n.encoderDirection {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 50%;\n\ttransform: translateX(-50%);\n\tfont-size: 50%;\n}\n\n.key:hover, .encoder:hover {\n\tbackground-color: var(--hover-selection);\n\ttransition: 200ms;\n\tz-index: 1;\n}\n.key:hover .code, .key:hover .behaviour-binding {\n\tcolor: var(--key-color-hover);\n}\n.key > .code {\n\tpadding: 5px;\n}\n\n.param {\n\tdisplay: inline-flex;\n\talign-items: center;\n}\n\n[data-simple="true"] { font-size: 140%; }\n[data-long="true"] { font-size: 60%; }\n\n.params:not([data-is-root="true"])::before { content: \'(\'; opacity: 0.4; font-weight: bold; margin: 2px; }\n.params:not([data-is-root="true"])::after { content: \')\'; opacity: 0.4; font-weight: bold; margin: 2px; }\n.params:not([data-is-root="true"]) .param:not(:last-child)::after { content: \',\'; }\n\n.code {\n\tcursor: default;\n\tpadding: 0px 4px;\n\tmargin-left: -2px;\n\tmargin-right: -2px;\n}\n\n.selectable .code {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\tbox-sizing: content-box;\n\tmin-width: 0.5em;\n\ttext-align: center;\n\tborder-radius: 4px;\n}\n.key .code:hover {\n\tbackground-color: white !important;\n\tcolor: var(--hover-selection) !important;\n\tborder-radius: 4px !important;\n}\n\n.code * {\n\tpointer-events: none;\n}\n\n.extracted {\n\t/* display: inline-block; */\n\tmargin: 0 5px;\n\tfont-family: Quicksand, avenir, sans-serif;\n\tfont-size: 110%;\n}\n.extracted .param {\n\talign-items: center;\n\tgap: 6px;\n}\n.extracted .code {\n\talign-items: center;\n\tpadding: 6px 12px;\n\tborder-radius: 5px;\n\tcolor: var(--key-color-base);\n\tborder-bottom: .15em dotted var(--key-color-base);\n\tborder-radius: 0;\n}\n\n.extracted .code:hover,\n.extracted.highlight .code {\n\tbackground-color: var(--hover-selection);\n\tborder-radius: 5px;\n\tcolor: white;\n\tcursor: pointer;\n}\n\n.code code+*::before {\n\tcontent: "|";\n\tbackground-color: transparent;\n\tmargin: auto 5px;\n}\n\n.behaviour-binding {\n  position: absolute;\n  top: 0;\n  left: 0;\n  font-size: 10px;\n  padding: 2px;\n  opacity: 0.8;\n}\n\n.behaviour-binding:hover {\n  cursor: pointer;\n  color: var(--hover-selection) !important;\n  background-color: var(--key-bg-hover);\n  border-radius: 5px 0;\n  opacity: 1;\n}\n'],sourceRoot:""}]),a.locals={key:"CoLZlKR1WcMrFd9XhDMC",unified:"MZMfZSmJbwqqfp28UUOi",selectable:"CT4uGhwl8sY0LwT3p39g",missingValue:"UNzQquWsoIanOpIN0Q9L",extracted:"OsA2qRpHoDPcN93o_TUX",code:"DejZXCvvhJILPbs9Q8ht",missing:"Y5EVt8b0BaXNd9uLxhfh",pulse:"sYr3l9y03JxO_2AP73jr","behaviour-binding":"GliE4Ybwli9X6TNTjD1_",keyDefaultTheme:"huQDP3GbTLThbVIP8wFp",encoder:"PpMmKpJfEi37Ldw7AeBT",encoder2:"_F1Vep3btfY3Rl4VJaUQ",params:"ApHDJFJGYUaGTgzMeIKZ",param:"mLz637Atn0jZXey6Rx4v",encoderDirection:"k2EIh8YlFvp9sBuklSxx",highlight:"sqfL6SjYMWzHXm3D6bOd"},e.Z=a},47881:function(n,e,r){var t=r(87537),o=r.n(t),i=r(23645),a=r.n(i)()(o());a.push([n.id,'.sP2kDRoTZElZUTNHq033 {\n\twidth: 300px;\n\tbackground-color: var(--dialog-bg);\n}\n\n.yaxqlR_GEWJ1lBISL3_N {\n  min-width: 300px;\n\tpadding: 15px\n}\n\n.lPSkq707ZDxmzbGw5Qqy.CKvAtM2VhDdTBOb8bZBb {\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n}\n\n.lPSkq707ZDxmzbGw5Qqy input[type="text"] {\n\tdisplay: block;\n\twidth: 100%;\n\theight: 30px;\n\tline-height: 30px;\n\n\tfont-size: 120%;\n\tmargin: 0;\n\tpadding: 4px;\n\tborder: none;\n\tborder-radius: 4px;\n  box-sizing: border-box;\n}\nul.inAS9Qunkf3g5K3xz6o6 {\n\tposition: relative;\n\tfont-family: monospace;\n\tlist-style-position: inside;\n\tlist-style-type: none;\n\tmax-height: 300px;\n\toverflow: scroll;\n\tpadding: 4px;\n  margin: 4px 0;\n\tbackground: rgba(0, 0, 0, 0.75);\n\tborder-radius: 4px;\n}\n.CKvAtM2VhDdTBOb8bZBb ul.inAS9Qunkf3g5K3xz6o6 {\n\tflex-grow: 1;\n\tmax-height: initial;\n}\n.inAS9Qunkf3g5K3xz6o6 li {\n\tcursor: pointer;\n\tcolor: white;\n\tpadding: 5px;\n}\n.inAS9Qunkf3g5K3xz6o6 li:hover, .inAS9Qunkf3g5K3xz6o6 li.BL7Cxrn_efblQXY3W1Sw {\n\tbackground: white;\n\tcolor: black;\n}\n.inAS9Qunkf3g5K3xz6o6 li b { color: dodgerblue; }\n.inAS9Qunkf3g5K3xz6o6 li .uld0XaeoQaQJJwp0LT0X {\n\tfont-style: italic;\n\tfont-size: 90%;\n\tmargin: 0;\n\tcolor: gray;\n}\n\n.pqiZQublKXvmnT_ESDxQ {\n  font-size: 10px;\n}\n\n.pqiZQublKXvmnT_ESDxQ a {\n  color: var(--selection);\n  border-bottom: 1px dotted var(--selection);\n  cursor: pointer;\n}\n\n.ECUs4g2j1rekP4xxgQDr {\n  position: relative;\n}\n.lPSkq707ZDxmzbGw5Qqy .ECUs4g2j1rekP4xxgQDr input {\n  padding-left: 30px;\n}\n\n.xDUAgQZeBp0TZSOqCwHm {\n  position: absolute;\n\ttop: 50%;\n\tleft: 10px;\n\ttransform: translateY(-50%);\n\tpointer-events: none;\n}\n.eY5zRl49sESLjXmizMEP {\n  position: absolute;\n\ttop: 50%;\n\tright: 10px;\n\ttransform: translateY(-50%);\n\tcursor: pointer;\n}',"",{version:3,sources:["webpack://./src/ValuePicker/style.module.css"],names:[],mappings:"AAAA;CACC,YAAY;CACZ,kCAAkC;AACnC;;AAEA;EACE,gBAAgB;CACjB;AACD;;AAEA;CACC,YAAY;CACZ,aAAa;CACb,sBAAsB;CACtB,uBAAuB;AACxB;;AAEA;CACC,cAAc;CACd,WAAW;CACX,YAAY;CACZ,iBAAiB;;CAEjB,eAAe;CACf,SAAS;CACT,YAAY;CACZ,YAAY;CACZ,kBAAkB;EACjB,sBAAsB;AACxB;AACA;CACC,kBAAkB;CAClB,sBAAsB;CACtB,2BAA2B;CAC3B,qBAAqB;CACrB,iBAAiB;CACjB,gBAAgB;CAChB,YAAY;EACX,aAAa;CACd,+BAA+B;CAC/B,kBAAkB;AACnB;AACA;CACC,YAAY;CACZ,mBAAmB;AACpB;AACA;CACC,eAAe;CACf,YAAY;CACZ,YAAY;AACb;AACA;CACC,iBAAiB;CACjB,YAAY;AACb;AACA,6BAAgB,iBAAiB,EAAE;AACnC;CACC,kBAAkB;CAClB,cAAc;CACd,SAAS;CACT,WAAW;AACZ;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,uBAAuB;EACvB,0CAA0C;EAC1C,eAAe;AACjB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;CACnB,QAAQ;CACR,UAAU;CACV,2BAA2B;CAC3B,oBAAoB;AACrB;AACA;EACE,kBAAkB;CACnB,QAAQ;CACR,WAAW;CACX,2BAA2B;CAC3B,eAAe;AAChB",sourcesContent:['.dialog {\n\twidth: 300px;\n\tbackground-color: var(--dialog-bg);\n}\n\n.dialogWrapper {\n  min-width: 300px;\n\tpadding: 15px\n}\n\n.wrapper.inline {\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n}\n\n.wrapper input[type="text"] {\n\tdisplay: block;\n\twidth: 100%;\n\theight: 30px;\n\tline-height: 30px;\n\n\tfont-size: 120%;\n\tmargin: 0;\n\tpadding: 4px;\n\tborder: none;\n\tborder-radius: 4px;\n  box-sizing: border-box;\n}\nul.results {\n\tposition: relative;\n\tfont-family: monospace;\n\tlist-style-position: inside;\n\tlist-style-type: none;\n\tmax-height: 300px;\n\toverflow: scroll;\n\tpadding: 4px;\n  margin: 4px 0;\n\tbackground: rgba(0, 0, 0, 0.75);\n\tborder-radius: 4px;\n}\n.inline ul.results {\n\tflex-grow: 1;\n\tmax-height: initial;\n}\n.results li {\n\tcursor: pointer;\n\tcolor: white;\n\tpadding: 5px;\n}\n.results li:hover, .results li.highlighted {\n\tbackground: white;\n\tcolor: black;\n}\n.results li b { color: dodgerblue; }\n.results li .description {\n\tfont-style: italic;\n\tfont-size: 90%;\n\tmargin: 0;\n\tcolor: gray;\n}\n\n.choices-counter {\n  font-size: 10px;\n}\n\n.choices-counter a {\n  color: var(--selection);\n  border-bottom: 1px dotted var(--selection);\n  cursor: pointer;\n}\n\n.searchWrapper {\n  position: relative;\n}\n.wrapper .searchWrapper input {\n  padding-left: 30px;\n}\n\n.searchIcon {\n  position: absolute;\n\ttop: 50%;\n\tleft: 10px;\n\ttransform: translateY(-50%);\n\tpointer-events: none;\n}\n.clearSearchIcon {\n  position: absolute;\n\ttop: 50%;\n\tright: 10px;\n\ttransform: translateY(-50%);\n\tcursor: pointer;\n}'],sourceRoot:""}]),a.locals={dialog:"sP2kDRoTZElZUTNHq033",dialogWrapper:"yaxqlR_GEWJ1lBISL3_N",wrapper:"lPSkq707ZDxmzbGw5Qqy",inline:"CKvAtM2VhDdTBOb8bZBb",results:"inAS9Qunkf3g5K3xz6o6",highlighted:"BL7Cxrn_efblQXY3W1Sw",description:"uld0XaeoQaQJJwp0LT0X","choices-counter":"pqiZQublKXvmnT_ESDxQ",searchWrapper:"ECUs4g2j1rekP4xxgQDr",searchIcon:"xDUAgQZeBp0TZSOqCwHm",clearSearchIcon:"eY5zRl49sESLjXmizMEP"},e.Z=a},61953:function(n,e,r){var t=r(93379),o=r.n(t),i=r(7795),a=r.n(i),l=r(90569),c=r.n(l),u=r(3565),s=r.n(u),A=r(19216),d=r.n(A),f=r(44589),p=r.n(f),b=r(2),m={};m.styleTagTransform=p(),m.setAttributes=s(),m.insert=c().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=d(),o()(b.Z,m),e.Z=b.Z&&b.Z.locals?b.Z.locals:void 0}}]);
//# sourceMappingURL=8573.cd4468b19759e767bbc1.js.map