summaryrefslogtreecommitdiffhomepage
path: root/8573.002ec481952931399d0e.js
blob: 2f1d447649129f5fc2b00175357828bc0e5bea40 (plain)
1
2
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8573],{27926:function(e,n,r){r.d(n,{Z:function(){return w}});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),p=r.n(A),d=r(44589),f=r.n(d),b=r(56281),m={};m.styleTagTransform=f(),m.setAttributes=s(),m.insert=c().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),o()(b.Z,m);var y=b.Z&&b.Z.locals?b.Z.locals:void 0,h=r(85893);function v(e){return v="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},v(e)}var g=["children","secondary","className"];function C(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function x(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?C(Object(r),!0).forEach((function(n){j(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function j(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==v(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==v(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===v(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function B(e){var n=e.children,r=e.secondary,t=e.className,o=function(e,n){if(null==e)return{};var r,t,o=function(e,n){if(null==e)return{};var r,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,g);return(0,h.jsx)("button",x(x({className:[t,y.action,r&&y.secondary].join(" ")},o),{},{children:n}))}B.defaultProps={className:""};var w=B},2062:function(e,n,r){r.d(n,{Z:function(){return g}});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),p=r(19216),d=r.n(p),f=r(44589),b=r.n(f),m=r(528),y={};y.styleTagTransform=b(),y.setAttributes=A(),y.insert=u().bind(null,"head"),y.domAPI=l(),y.insertStyleElement=d(),i()(m.Z,y);var h=m.Z&&m.Z.locals?m.Z.locals:void 0,v=r(85893);function g(e){var n=e.children,r=e.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"})," ",n]})}},81404:function(e,n,r){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 p(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}n.Z=function(e){var n,r=e.node,o=e.onSelect,a=(0,t.useCallback)((function(e){e.stopPropagation(),o({node:r,type:"tree"})}),[r,o]),d=(0,t.useMemo)((function(){return l()((0,s.H)(r),"source")}),[r]),f=(0,t.useMemo)((function(){return d.map(c.r8).map((function(e,n){return(0,A.jsx)(t.Fragment,{children:e},n)})).reduce((function(e,n){return 0===e.length?[n]:[].concat(function(e){if(Array.isArray(e))return p(e)}(r=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return p(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,n):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.")}(),[" ",n]);var r}),[])}),[d]),b=(0,t.useMemo)((function(){return d.map(c.rG).join(" + ")}),[d]),m=void 0===(null===(n=r.source)||void 0===n?void 0:n.code)||void 0===r.value||r._isPlaceholder;return(0,A.jsx)("span",{className:i()([u.Z.code,m&&u.Z.missingValue]).join(" "),title:b,onClick:a,children:f})}},74871:function(e,n,r){function t(e,n){if(e){if("string"==typeof e)return i(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,n):void 0}}function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function a(e){return e.params.length>0?[e].concat(function(e){if(Array.isArray(e))return i(e)}(n=a(e.params[0]))||o(n)||t(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];var n}function l(e){var n,r=function(e){if(Array.isArray(e))return e}(n=e)||o(n)||t(n)||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(n,{H:function(){return a},n:function(){return l}})},52156:function(e,n,r){r.d(n,{r8:function(){return f},rG:function(){return d}});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 p(){return(0,A.jsx)("span",{children:"⦸"})}function d(e){return e&&"(".concat(e.code,") ").concat(e.description)}function f(e){var n,r=e&&((null==e?void 0:e.symbol)||(null==e||null===(n=e.code)||void 0===n?void 0:n.toString()));return(null==e?void 0:e.faIcon)&&(0,A.jsx)(s.Z,{name:e.faIcon})||r||(0,A.jsx)(p,{})}function b(e){var n=e.node,r=e.onSelect,t=n.value,a=n.source,l=n._isPlaceholder,c=d(a),s=(0,i.useCallback)((function(e){e.stopPropagation(),r({node:n})}),[n,r]);return(0,A.jsx)("span",{className:o()([u.Z.code,(void 0===t||l)&&u.Z.missingValue]).join(" "),title:c,onClick:s,children:l?(0,A.jsx)(p,{}):f(a)})}b.propTypes={node:c.le.isRequired,onSelect:l().func.isRequired},n.ZP=b},7567:function(e,n,r){r.d(n,{Z:function(){return X}});var t=r(39693),o=r.n(t),i=r(45697),a=r.n(i),l=r(50361),c=r.n(l),u=r(27361),s=r.n(u),A=r(78718),p=r.n(A),d=r(67294),f=r(81485),b=r(39017),m=r(41696);function y(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}var h=r(67069),v=r(52156),g=r(81404),C=r(61953),x=r(85893);function j(e){return j="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},j(e)}function B(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function w(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?B(Object(r),!0).forEach((function(n){E(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function E(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==j(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==j(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===j(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}var O={display:"inline-block",cursor:"pointer",verticalAlign:"text-top",border:"0.75px solid var(--key-color-base)",borderRadius:"3px"},k={display:"flex",justifyContent:"center",alignItems:"center",width:"10px",height:"10px",margin:"1px",borderRadius:"2px"},P=function(e){var n,r,t=e.node,o=e.onSelect,i=(n=t.params,r=3,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,r)||function(e,n){if(e){if("string"==typeof e)return S(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,n):void 0}}(n,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],l=i[1],c=i[2],u=(0,d.useCallback)((function(e){e.stopPropagation(),o({node:t,type:"params"})}),[t,o]),s=(0,d.useMemo)((function(){return[a,l,c].some((function(e){return void 0===(null==e?void 0:e.value)}))}),[a,l,c]);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(v.ZP,{node:t,onSelect:o}),s?(0,x.jsx)(v.ZP,{node:{},onSelect:u}):(0,x.jsx)("div",{onClick:u,style:O,children:(0,x.jsx)("div",{className:s?C.Z.missingValue:null,style:w(w({},k),{},{backgroundColor:"hsl(".concat(a.value,", ").concat(l.value,"%, ").concat(c.value,"%)")})})})]})};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},Z(e)}function T(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function Y(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?T(Object(r),!0).forEach((function(n){I(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function I(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==Z(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==Z(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Z(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function R(e){var n=e.node,r=e.onSelect;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(v.ZP,{node:n,onSelect:r}),s()(n,"source.params.length")>0?(0,x.jsx)(q,{slots:n.source.params,params:n.params,onSelect:r}):null]})}function D(e){var n=e.node,r=e.onSelect,t=e.slot,o=(0,d.useMemo)((function(){var e;return"hsb-color-picker"===(null===(e=n.source)||void 0===e?void 0:e.helper)?P:"code"===t?g.Z:R}),[n,t]);return(0,x.jsx)("span",{className:C.Z.param,children:(0,x.jsx)(o,{node:n,onSelect:r})})}function q(e){var n=e.slots,r=e.params,t=e.onSelect,o=e.root,i=e.wrapperProps;return(0,x.jsx)("span",Y(Y({className:C.Z.params,"data-is-root":!!o,"data-param-count":r.length},i),{},{children:n.map((function(e,n){return"placeholder"!==e.type&&(0,x.jsx)(D,{slot:e,node:r[n],onSelect:t},n)}))}))}q.propTypes={slots:a().arrayOf(h.wu).isRequired,params:a().arrayOf(h.le).isRequired,source:h.qz,onSelect:a().func.isRequired};var U=q,M=r(41051),L=r(93480);function z(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function N(e){var n,r,t=e.context,i=void 0===t?"none":t,a=e.hideBehaviour,l=function(e,n,r,t){var o,i,a,l,u=(0,d.useContext)(f.c),A=u.sources,h=u.mergedGlyphs,v=(a=(0,d.useState)(null),l=2,function(e){if(Array.isArray(e))return e}(a)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(a,l)||function(e,n){if(e){if("string"==typeof e)return y(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,n):void 0}}(a,l)||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.")}()),g=v[0],C=v[1],x=(0,d.useMemo)((function(){return(0,b.K4)(e.value,e.params,A,n,h)}),[e,A,n,h]),j=void 0===r?[0]:[r,r+1],B=e.value,w=s()(A.behavioursByContext[n],B,{}),E=(o=(0,m.a)(e.params,w)).slice.apply(o,j),S=(i=x.params).slice.apply(i,j),O=(0,b.He)(x),k=(0,d.useMemo)((function(){return(0,b.wx)(O)}),[O]),P=(0,d.useCallback)((function(e){var n=e.node,r=e.type,t=void 0===r?"value":r,o=(0,b._I)(n.slot);C({node:n,type:t,nodeIndex:O.indexOf(n),prompt:o})}),[O,C]),Z=(0,d.useCallback)((function(){return C(null)}),[C]),T=(0,d.useCallback)((function(e){var n=e.value,r=e.params,o=g.nodeIndex,i=c()(x),a=(0,b.He)(i),l=a[o];l.value=n,l.params=r,delete l._isPlaceholder,a.forEach((function(e){delete e.source,delete e.slot})),C(null),t(p()(i,["value","params"]))}),[x,g,C,t]),Y=(0,d.useCallback)((function(e){var n=g.nodeIndex,r=c()(x),o=(0,b.He)(r);o[n].params=e,o.forEach((function(e){delete e.source,delete e.slot})),C(null),t(p()(r,["value","params"]))}),[x,g,C,t]),I=(0,d.useCallback)((function(e,n,r){var o=c()(x),i=(0,b.He)(o),a=i[n];if(e.slot.raw)"number"===e.slot.type&&(r.code=Number(r.code));else if(e.slot.enum){var l,u,s,A=(null===(l=a.source)||void 0===l||null===(u=l.additionalParams)||void 0===u?void 0:u.length)||0;if(((null===(s=r.additionalParams)||void 0===s?void 0:s.length)||0)<A){var d=i[0];d.params.splice(1,d.params.length-1),i.splice(2,i.length-1)}}a.value=r.code,delete a._isPlaceholder,a.params=((null==r?void 0:r.params)||[]).reduce((function(e,n,t){var o,i;return(null===(o=a.source)||void 0===o||null===(i=o.params)||void 0===i?void 0:i[t])===r.params[t]?e.push(a.params[t]):e.push({value:0,_isPlaceholder:!0}),e}),[]),i.forEach((function(e){delete e.source,delete e.slot})),C(null),t(p()(o,["value","params","_isPlaceholder"]))}),[x,C,t]),R=(0,d.useCallback)((function(e){if("tree"===g.type)return T(e);if("params"===g.type)return Y(e);var n=g.node,r=g.nodeIndex;I(n,r,e)}),[g,I,T,Y]),D=(0,d.useMemo)((function(){return{behavior:w,behaviorParams:E,bindTree:x,bindTreeParams:S,editing:g,index:O,invalid:k}}),[w,E,x,S,g,O,k]),q=(0,d.useMemo)((function(){return{clearEditing:Z,handleUpdateBindValue:R,handleUpdateNode:I,selectNodeForEditing:P}}),[P,Z,R,I]);return(0,d.useMemo)((function(){return[D,q]}),[D,q])}({value:e.value,params:e.params},i,e.paramIndex,e.onUpdate),u=(r=2,function(e){if(Array.isArray(e))return e}(n=l)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,r)||function(e,n){if(e){if("string"==typeof e)return z(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?z(e,n):void 0}}(n,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=u[0],h=A.behavior,v=A.behaviorParams,g=A.bindTree,j=A.bindTreeParams,B=A.editing,w=A.invalid,E=u[1],S=E.selectNodeForEditing,O=E.clearEditing,k=E.handleUpdateBindValue;return(0,x.jsxs)(x.Fragment,{children:[h&&!a?(0,x.jsx)("span",{className:o()([C.Z["behaviour-binding"],!h.code&&C.Z.missingValue]).join(" "),onClick:function(){return S({node:g})},children:h.code||"⦸"}):null,w&&(0,x.jsx)(M.Z,{name:"warning",className:C.Z.missing,title:"Binding has missing value(s)"}),(0,x.jsx)(U,{root:!0,slots:v,params:j,onSelect:S,wrapperProps:{"data-simple":(0,b.Gg)(g),"data-long":(0,b.Mc)(g,v)}}),B&&(0,x.jsx)(L.Z,{node:B.node,type:B.type,behaviour:h,context:i,prompt:(0,b._I)(B.node.slot),searchKey:"code",onSelect:k,onCancel:O})]})}N.propTypes={context:a().string,hideBehaviour:a().bool.isRequired,value:h.S3.isRequired,params:a().arrayOf(h.dH),onUpdate:a().func.isRequired},N.defaultProps={hideBehaviour:!1};var X=N},67069:function(e,n,r){r.d(n,{S3:function(){return c},dH:function(){return A},le:function(){return p},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),p=A;o().arrayOf(A)},39017:function(e,n,r){r.d(n,{Gg:function(){return m},He:function(){return b},K4:function(){return g},Mc:function(){return y},_I:function(){return h},wx:function(){return v}});var t=r(13311),o=r.n(t),i=r(27361),a=r.n(i),l=r(41696);function c(e){return c="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},c(e)}function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function s(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach((function(n){A(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function A(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==c(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function p(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,n)||d(e,n)||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 d(e,n){if(e){if("string"==typeof e)return f(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,n):void 0}}function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function b(e){var n=[];return function e(r){var t=r.params||[];n.push(r),t.forEach(e)}(e),n}function m(e){var n=p(e.params,1)[0],r=a()(n,"source.symbol",a()(n,"source.code","")),t=!!a()(n,"source.faIcon")||1===r.length;return 1===e.params.length&&t}function y(e,n){var r=p(e.params,1)[0],t=a()(r,"source.symbol",a()(r,"value","")),o=!a()(r,"source.faIcon")&&t.length>4,i=n.length>1,l=a()(r,"params",[]).length>0;return o||i||l}function h(e){var n={layer:"Select layer",mod:"Select modifier",behaviour:"Select behaviour",keycode:"Select key code"};return e.name?"Select ".concat(e.name):n[e]||n.keycode}function v(e){if(!e[0].source.code)return!0;var n,r=function(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=d(e))){r&&(e=r);var t=0,o=function(){};return{s:o,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},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(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}(e);try{for(r.s();!(n=r.n()).done;){var t,o=n.value;if(((null===(t=o.source)||void 0===t?void 0:t.params)||[]).length>o.params.length)return!0;if(o.params.some((function(e){return void 0===e.value||""===e.value||void 0===e.source||e._isPlaceholder})))return!0}}catch(e){r.e(e)}finally{r.f()}}function g(e,n,r){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",i=arguments.length>4?arguments[4]:void 0,c=e,u=a()(r.behavioursByContext[t],c,{});function A(e,n){if(!e)return{value:void 0,slot:n,params:[]};var t=e.value,l=e.params,c=e._isPlaceholder,u=function(e,n){var t;return e=a()(r.defines,e,e),Number.isNaN(Number(e))||(e=Number(e)),n.raw?{code:e}:n.enum?o()(n.enum,{code:e})||o()(n.enum,e)||{code:e}:"placeholder"===n.type?{code:e}:null==r||null===(t=r[n])||void 0===t?void 0:t[e]}(t,n);return{value:t,_isPlaceholder:c,slot:n,source:s(s({},u),{},{symbol:a()(i,[null==u?void 0:u.name,"symbol"],null==u?void 0:u.symbol),faIcon:a()(i,[null==u?void 0:u.name,"faIcon"],null==u?void 0:u.faIcon)}),params:a()(u,"params",[]).map((function(e,n){return A(l[n],e)}))}}return{value:e,slot:"behaviour",source:u,params:(0,l.a)(n,u).map((function(e,r){return A(n[r],e)}))}}},62417:function(e,n,r){function t(e){return e.length>31?"maximum length: 31":e.match(/^[^a-zA-Z]/)?"first character must be a letter":e.match(/[^a-zA-Z0-9,._+-]/)?"valid characters: a-zA-Z0-9,._+-":void 0}r.d(n,{G3:function(){return o},Gk:function(){return t},zq:function(){return i}});var o=t;function i(e){return e.length>31?"maximum length: 31":e.match(/^[^a-zA-Z]/)?"first character must be a letter":e.match(/[^a-zA-Z0-9_]/)?"valid characters: a-zA-Z0-9_":void 0}},82607:function(e,n,r){var t=r(45697),o=r.n(t),i=r(91118),a=r(7567),l=r(67069),c=r(85893);function u(e){return u="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},u(e)}function s(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function A(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?s(Object(r),!0).forEach((function(n){p(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function p(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==u(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===u(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function d(e){var n=e.context,r=e.value,t=e.params,o=e.keyWrapperProps,l=void 0===o?{}:o,u=e.onUpdate;return(0,c.jsx)(i.Z,A(A({},l),{},{children:(0,c.jsx)(a.Z,{context:n,value:r,params:t,onUpdate:u})}))}d.propTypes={label:o().string,value:l.S3.isRequired,params:o().arrayOf(l.dH),onUpdate:o().func.isRequired},n.Z=d},91118:function(e,n,r){var t=r(39693),o=r.n(t),i=r(61953),a=r(85893);function l(e){return l="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},l(e)}var c=["children","selectable","themeClass","className"];function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function s(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach((function(n){A(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function A(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==l(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}n.Z=function(e){var n=e.children,r=e.selectable,t=void 0===r||r,l=e.themeClass,u=void 0===l?void 0:l,A=e.className,p=void 0===A?"":A,d=function(e,n){if(null==e)return{};var r,t,o=function(e,n){if(null==e)return{};var r,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,c),f=o()([i.Z.key,t&&i.Z.selectable,null!=u?u:i.Z.keyDefaultTheme,p]).join(" ");return(0,a.jsx)("div",s(s({className:f},d),{},{children:n}))}},49519:function(e,n,r){r.d(n,{Z:function(){return A}});var t=r(45697),o=r.n(t),i=r(67294),a=function(e,n){var r=(n+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1))%e.length;return r<0?e.length+r:r},l=r(45944),c=r(85893);function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function s(e){var n,r,t=e.results,o=e.onSelect,s=e.renderResult,A=(n=(0,i.useState)(0),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,r)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,n):void 0}}(n,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.")}()),p=A[0],d=A[1],f=(0,i.useRef)(null),b=(0,i.useCallback)((function(e,n){var r,o,i,l,c,u;if(0!==t.length)if(void 0!==n){var s=null!==p?a(t,p,n):e,A='li[data-result-index="'.concat(s,'"]');o=null===(r=f.current)||void 0===r?void 0:r.querySelector(A),i=o.offsetParent.scrollTop,l=o.offsetParent.offsetHeight,c=o.offsetTop,u=c+o.scrollHeight,(c<i||u>i+l)&&o.scrollIntoView(!1),d(s)}else d(e);else d(null)}),[t,p,d]),m=(0,i.useCallback)((function(){b(0,1)}),[b]),y=(0,i.useCallback)((function(){b(t.length-1,-1)}),[b,t]),h=(0,i.useCallback)((function(e){o(t[p],e)}),[t,p,o]),v=(0,i.useCallback)((function(e){var n={ArrowDown:m,ArrowUp:y,Enter:h}[e.key];n&&(e.preventDefault(),e.stopPropagation(),n(e))}),[m,y,h]);return(0,i.useEffect)((function(){return document.body.addEventListener("keydown",v),function(){return document.body.removeEventListener("keydown",v)}}),[f,v]),(0,c.jsx)("ul",{className:l.Z.results,ref:f,children:t.map((function(e,n){return(0,c.jsx)("li",{className:p===n?l.Z.highlighted:"",title:e.description,"data-result-index":n,onClick:function(n){return o(e,n)},onDoubleClick:function(n){return o(e,n)},onMouseOver:function(){return b(n)},children:s(e,n)},n)}))})}s.propTypes={results:o().array.isRequired,onSelect:o().func.isRequired,renderResult:o().func.isRequired};var A=s},49671:function(e,n,r){var t=r(87360),o=r.n(t),i=r(45697),a=r.n(i),l=r(67294),c=r(41051),u=r(45944),s=r(85893);function A(e){return A="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},A(e)}function p(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?p(Object(r),!0).forEach((function(n){f(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function f(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==A(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==A(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===A(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function b(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function m(e){e&&(e.focus(),e.select())}var y=function(e){var n,r,t=e.choices,i=e.searchKey,a=e.searchKeys,A=e.renderResults,p=e.initialQuery,f=!t.length||t.length>10,y=(n=(0,l.useState)(p),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,r)||function(e,n){if(e){if("string"==typeof e)return b(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,n):void 0}}(n,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.")}()),h=y[0],v=y[1],g=(0,l.useMemo)((function(){if(!h||!f)return t;var e=a?{keys:a,limit:30}:{key:i,limit:30};return o().go(h,t,e).map((function(e){return d(d({},e.obj),{},{search:e})}))}),[f,h,t,i,a]),C=(0,l.useCallback)((function(e){v(e.target.value)}),[v]);return(0,s.jsxs)(s.Fragment,{children:[f&&(0,s.jsxs)("div",{className:u.Z.searchWrapper,children:[(0,s.jsx)("input",{ref:m,type:"text",value:h,onChange:C}),(0,s.jsx)(c.Z,{className:u.Z.searchIcon,name:"search"}),(0,s.jsx)(c.Z,{className:u.Z.clearSearchIcon,name:"times",onClick:function(){return v("")}})]}),A(g)]})};y.propTypes={choices:a().array.isRequired,searchKey:a().string,initialQuery:a().string.isRequired,renderResults:a().func.isRequired},y.defaultProps={initialQuery:""},n.Z=y},93480:function(e,n,r){r.d(n,{Z:function(){return Oe}});var t=r(78718),o=r.n(t),i=r(45697),a=r.n(i),l=r(67294),c=r(64261),u=r(81485),s=r(49519),A=r(45944),p=r(85893);function d(e){var n=(0,l.useContext)(u.c).getSearchTargets,r=e.param,t=e.prompt,o=e.onSelect,i=(0,l.useMemo)((function(){return n(r)}),[n,r]);return(0,p.jsxs)("div",{className:A.Z.dialog,children:[(0,p.jsx)("p",{children:t}),(0,p.jsx)(s.Z,{results:i,onSelect:o,renderResult:function(e){return e.code}})]})}d.propTypes={value:a().any.isRequired,param:a().object.isRequired,prompt:a().string.isRequired,onSelect:a().func.isRequired},d.defaultProps={value:""};var f=d,b=r(67069),m=r(87360),y=r.n(m),h=r(49671);function v(e){var n=e.prompt,r=e.searchKey,t=e.node,o=e.param,i=e.behaviour,a=e.context,c=e.onSelect,d=(0,l.useContext)(u.c).getSearchTargets,f=(0,l.useCallback)((function(e){var n=e.search?(0,p.jsx)("span",{children:y().highlight(e.search,(function(e,n){return(0,p.jsx)("b",{children:e},n)}))}):(0,p.jsx)("span",{children:e.code});return(0,p.jsxs)(p.Fragment,{children:[n,e.description&&(0,p.jsx)("p",{className:A.Z.description,children:e.description})]})}),[]),b=(0,l.useMemo)((function(){return d(o,i.code,a)}),[d,o,i,a]);return(0,p.jsxs)("div",{className:A.Z.dialog,children:[(0,p.jsx)("p",{children:n}),(0,p.jsx)(h.Z,{choices:b,initialQuery:t.value||"",searchKey:r,renderResults:function(e){return e&&(0,p.jsx)(s.Z,{results:e,onSelect:c,renderResult:f})}})]})}v.propTypes={node:b.le.isRequired,param:a().oneOfType([a().string,a().shape({enum:a().array,raw:a().bool,type:a().string})]).isRequired,prompt:a().string.isRequired,searchKey:a().string.isRequired,behaviour:a().object.isRequired,context:a().string.isRequired,onSelect:a().func.isRequired};var g=v,C=r(55651),x=r(27926);function j(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function B(e){var n,r,t=e.node,o=e.onSelect,i=(n=(0,l.useState)({h:Number(t.params[0].value),s:Number(t.params[1].value),l:Number(t.params[2].value)}),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,r)||function(e,n){if(e){if("string"==typeof e)return j(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(e,n):void 0}}(n,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],u=(0,l.useCallback)((function(){o([{value:Math.round(a.h)},{value:Math.round(a.s)},{value:Math.round(a.l)}])}),[a,o]);return(0,p.jsxs)("div",{children:[(0,p.jsx)("p",{children:"Select colour"}),(0,p.jsx)(C.Jz,{color:a,onChange:c}),(0,p.jsx)("p",{style:{textAlign:"center"},children:(0,p.jsx)(x.Z,{onClick:u,children:"Confirm"})})]})}B.propTypes={value:a().any.isRequired,prompt:a().string.isRequired,param:a().oneOfType([a().shape({enum:a().array,raw:a().bool,type:a().string})]).isRequired,onSelect:a().func.isRequired},B.defaultProps={value:""};var w=B,E=r(94184),S=r.n(E),O=r(39693),k=r.n(O),P=r(35161),Z=r.n(P),T=r(74871),Y=r(93379),I=r.n(Y),R=r(7795),D=r.n(R),q=r(90569),U=r.n(q),M=r(3565),L=r.n(M),z=r(19216),N=r.n(z),X=r(44589),G=r.n(X),Q=r(14409),F={};F.styleTagTransform=G(),F.setAttributes=L(),F.insert=U().bind(null,"head"),F.domAPI=D(),F.insertStyleElement=N(),I()(Q.Z,F);var J=Q.Z&&Q.Z.locals?Q.Z.locals:void 0;function K(e){return K="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},K(e)}function H(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function W(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==K(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==K(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===K(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var _=["LS","LA","LC","LG"],V=["RS","RA","RC","RG"],$={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:"Left Shift"},RC:{short:"RCTRL",full:"Left Control"},RA:{short:"RALT",full:"Left Alt"},RG:{short:"RGUI",full:"Left Gui"}},ee=" (This modifier is implicitly used by the active keycode and cannot be de-selected)";function ne(e){var n=e.selected,r=e.implicit,t=e.row,o=e.onSelect;return(0,p.jsx)("ul",{className:J.modifiers,children:t.map((function(e,t){var i;return(0,p.jsx)("li",{title:$[e].full+(r.includes(e)?ee:""),className:S()((i={},W(i,J.selected,n.includes(e)),W(i,J.implicit,r.includes(e)),i)),onClick:function(){return!r.includes(e)&&o(e)},children:$[e].short},t)}))})}function re(e){var n=e.selected,r=e.implicit,t=e.onChange;function o(e){var r;t(n.includes(e)?n.filter((function(n){return n!==e})):[].concat(function(e){if(Array.isArray(e))return H(e)}(r=n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return H(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?H(e,n):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]))}return(0,p.jsxs)("div",{className:J.allModifiers,children:[(0,p.jsx)(ne,{row:_,selected:n,implicit:r,onSelect:o}),(0,p.jsx)(ne,{row:V,selected:n,implicit:r,onSelect:o})]})}re.propTypes={selected:a().arrayOf(a().string),implicit:a().arrayOf(a().string)};var te=re,oe=r(81404),ie=r(39017),ae=r(91118),le=r(2062),ce=r(41051);function ue(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,n)||se(e,n)||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 se(e,n){if(e){if("string"==typeof e)return Ae(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ae(e,n):void 0}}function Ae(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function pe(e){var n=ue(e.search||[],1)[0],r=n?(0,p.jsx)("span",{dangerouslySetInnerHTML:{__html:y().highlight(n)}}):(0,p.jsx)("span",{children:e.code}),t=function(e){var n=null==e?void 0:e.symbol,r=null==e?void 0:e.faIcon;return r?(0,p.jsx)(ce.Z,{name:r}):n&&!e.aliases.includes(n)?n:void 0}(e);return(0,p.jsxs)("div",{className:J.resultItem,children:[(0,p.jsxs)("div",{className:J.description,children:[r,(0,p.jsx)("p",{className:A.Z.description,children:e.description})]}),t&&(0,p.jsx)("div",{className:J.symbol,children:t})]})}function de(e){var n=e.node,r=e.onSelect,t=e.behaviour,o=(0,l.useContext)(u.c),i=o.getSearchTargets,a=o.sources,c=o.mergedGlyphs,d=(0,l.useMemo)((function(){return Z()((0,T.H)(n),"source")}),[n]),f=1===d.length?[]:d.slice(0,-1),b=ue((0,l.useState)(Z()(f,"code")),2),m=b[0],y=b[1],v=ue((0,l.useState)(d.at(-1)),2),g=v[0],C=v[1],j=(0,l.useMemo)((function(){return i("code",t.code).filter((function(e){return 0===e.params.length}))}),[i,t]),B=(0,ie.K4)("&kp",[{value:null==g?void 0:g.code,params:null==g?void 0:g.params}],a,void 0,c),w=(0,l.useCallback)((function(e,n){var t,o=(0,T.n)(k()([].concat(function(e){if(Array.isArray(e))return Ae(e)}(t=n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||se(t)||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.")}(),[null==e?void 0:e.code])));r(o)}),[r]),E=(0,l.useCallback)((function(e,n){"dblclick"!==n.type?C(e):w(e,m)}),[w,m,C]);return(0,p.jsxs)("div",{className:S()(A.Z.dialog,J.dialog),children:[(0,p.jsxs)("div",{style:{display:"flex",gap:"10px"},children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("h3",{children:"Keycode"}),(0,p.jsx)(ae.Z,{className:J.previewKeycode,selectable:!1,children:(0,p.jsx)(oe.Z,{node:B.params[0],onSelect:function(){}})})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("h3",{children:"Modifiers"}),(0,p.jsx)(te,{selected:m,implicit:(null==g?void 0:g.modifiers)||[],onChange:y})]})]}),(0,p.jsx)("h3",{children:"Available Keycodes"}),(0,p.jsx)(h.Z,{choices:j,initialQuery:null==g?void 0:g.code,searchKeys:["code","symbol"],renderResults:function(e){return e&&(0,p.jsx)(s.Z,{results:e,onSelect:E,renderResult:pe})}}),(0,p.jsx)(le.Z,{className:J.quickCloseTip,children:"Double-click to select and close the dialog"}),(0,p.jsxs)("div",{style:{marginTop:"10px",textAlign:"center"},children:[(0,p.jsx)(x.Z,{onClick:function(){w(g,m)},children:"Confirm"}),(0,p.jsx)(x.Z,{onClick:function(){r(n)},secondary:!0,children:"Cancel"})]})]})}de.propTypes={node:b.le.isRequired,param:a().oneOfType([a().string,a().shape({enum:a().array,raw:a().bool,type:a().string})]).isRequired,prompt:a().string.isRequired,searchKey:a().string.isRequired,behaviour:a().object.isRequired,context:a().string.isRequired,onSelect:a().func.isRequired};var fe=de;function be(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function me(e){e&&(e.focus(),e.select())}function ye(e){var n,r,t=e.value,o=e.param,i=e.onSelect,a=(n=(0,l.useState)(t),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,r)||function(e,n){if(e){if("string"==typeof e)return be(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?be(e,n):void 0}}(n,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.")}()),c=a[0],u=a[1],s=(0,l.useCallback)((function(e){"Enter"===e.key&&i({code:c})}),[c,i]),d=(0,l.useCallback)((function(e){var n=e.target.value;"number"===o.type&&(n=Number(n),Number.isNaN(n))||u(n)}),[o,u]);return(0,p.jsxs)("div",{className:A.Z.dialog,children:[(0,p.jsx)("p",{children:"Enter raw value"}),(0,p.jsx)("input",{ref:me,type:"text",value:c,onChange:d,onKeyDown:s})]})}ye.propTypes={value:a().any.isRequired,prompt:a().string.isRequired,param:a().oneOfType([a().shape({enum:a().array,raw:a().bool,type:a().string})]).isRequired,onSelect:a().func.isRequired},ye.defaultProps={value:""};var he=ye,ve=r(95998),ge=r(80736);function Ce(e){var n=e.onSelect,r=(0,ve.v9)(ge.vl),t=(0,l.useMemo)((function(){return r.map((function(e,n){return{code:n,description:e.name||"Layer ".concat(n)}}))}),[r]);return(0,p.jsxs)("div",{className:A.Z.dialog,children:[(0,p.jsx)("p",{children:"Select layer"}),(0,p.jsx)(s.Z,{results:t,onSelect:n,renderResult:function(e){return(0,p.jsxs)(p.Fragment,{children:[e.code,e.description&&(0,p.jsx)("p",{className:A.Z.description,children:e.description})]})}})]})}Ce.propTypes={value:a().string.isRequired,behaviour:a().object.isRequired,onSelect:a().func.isRequired},Ce.defaultProps={value:""};var xe=Ce;function je(e){return je="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},je(e)}function Be(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function we(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Be(Object(r),!0).forEach((function(n){Ee(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function Ee(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==je(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==je(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===je(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Se(e){var n=e.node,r=e.type,t=e.onCancel,i=e.onSelect,a=o()(e,["node","value","prompt","param","node","behaviour","context","searchKey"]),u=(0,l.useMemo)((function(){var e;return"params"===r&&"hsb-color-picker"===(null===(e=n.source)||void 0===e?void 0:e.helper)?w:n.slot.raw||"placeholder"===n.slot.type?he:n.slot.enum?f:"code"===n.slot?fe:"layer"===n.slot?xe:g}),[n,r]);return(0,p.jsx)(c.Z,{onDismiss:t,children:(0,p.jsx)(u,we(we({},a),{},{param:n.slot,onSelect:i}))})}Se.propTypes={type:a().string.isRequired,node:b.le.isRequired,behaviour:a().object.isRequired,prompt:a().string.isRequired,searchKey:a().string.isRequired,searchThreshold:a().number,onCancel:a().func.isRequired,onSelect:a().func.isRequired},Se.defaultProps={type:"value",value:"",freeForm:!1,searchThreshold:10};var Oe=Se},56281:function(e,n,r){var t=r(87537),o=r.n(t),i=r(23645),a=r.n(i)()(o());a.push([e.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"},n.Z=a},528:function(e,n,r){var t=r(87537),o=r.n(t),i=r(23645),a=r.n(i)()(o());a.push([e.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"},n.Z=a},14409:function(e,n,r){var t=r(87537),o=r.n(t),i=r(23645),a=r.n(i)()(o());a.push([e.id,".yXRk1JUOXleNM2qgqUYN {\n  width: 350px;\n  padding: 15px;\n}\n\n.yXRk1JUOXleNM2qgqUYN h3:first-child {\n  margin-top: 0px;\n}\n\n.xCOOsvxL5qQ3kR8ri91A {\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  text-align: center;\n  padding: 0;\n  margin: 0;\n}\n\n.u4uW9U2E0DfbUM9vP9pf li {\n  display: inline-block;\n  font-family: monospace;\n  font-size: 120%;\n  margin: 2px 2px;\n  padding: 4px 8px;\n  border-radius: 2px;\n  cursor: pointer;\n\n  background-color: rgba(0, 0, 0, .5);\n  opacity: 0.5;\n  color: white;\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.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;EACZ,aAAa;AACf;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,6CAA6C;AAC/C;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,kBAAkB;EAClB,UAAU;EACV,SAAS;AACX;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;EACtB,eAAe;EACf,eAAe;EACf,gBAAgB;EAChB,kBAAkB;EAClB,eAAe;;EAEf,mCAAmC;EACnC,YAAY;EACZ,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,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:[".dialog {\n  width: 350px;\n  padding: 15px;\n}\n\n.dialog h3:first-child {\n  margin-top: 0px;\n}\n\n.previewKeycode {\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  text-align: center;\n  padding: 0;\n  margin: 0;\n}\n\n.modifiers li {\n  display: inline-block;\n  font-family: monospace;\n  font-size: 120%;\n  margin: 2px 2px;\n  padding: 4px 8px;\n  border-radius: 2px;\n  cursor: pointer;\n\n  background-color: rgba(0, 0, 0, .5);\n  opacity: 0.5;\n  color: white;\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.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={dialog:"yXRk1JUOXleNM2qgqUYN",previewKeycode:"xCOOsvxL5qQ3kR8ri91A",allModifiers:"Ox9WHfAMFuthXo6ZOJoI",modifiers:"u4uW9U2E0DfbUM9vP9pf",selected:"YcHSun3PLo8dCb9qIZtc",implicit:"Ix6wQt3EBFUH2PUcsqgm",quickCloseTip:"d3hMEDpEkH8H7YLG_NjI",resultItem:"gFHbtpz6TuduOVYLXwHu",description:"AfAg5j2RJEcA0Zh3z7mX",symbol:"YeOANHLbze2W1EGYOFiI"},n.Z=a},2:function(e,n,r){var t=r(87537),o=r.n(t),i=r(23645),a=r.n(i)()(o());a.push([e.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.CT4uGhwl8sY0LwT3p39g:not(:hover) .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.CT4uGhwl8sY0LwT3p39g: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\n.CoLZlKR1WcMrFd9XhDMC.CT4uGhwl8sY0LwT3p39g:hover .DejZXCvvhJILPbs9Q8ht,\n.CoLZlKR1WcMrFd9XhDMC.CT4uGhwl8sY0LwT3p39g: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.CT4uGhwl8sY0LwT3p39g:hover, .PpMmKpJfEi37Ldw7AeBT.CT4uGhwl8sY0LwT3p39g:hover {\n\tbackground-color: var(--hover-selection);\n\ttransition: 200ms;\n\tz-index: 1;\n}\n.CoLZlKR1WcMrFd9XhDMC.CT4uGhwl8sY0LwT3p39g:hover .DejZXCvvhJILPbs9Q8ht, .CoLZlKR1WcMrFd9XhDMC.CT4uGhwl8sY0LwT3p39g:hover .GliE4Ybwli9X6TNTjD1_ {\n\tcolor: var(--key-color-hover);\n}\n.CoLZlKR1WcMrFd9XhDMC > .DejZXCvvhJILPbs9Q8ht {\n\tpadding: 5px;\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.CT4uGhwl8sY0LwT3p39g .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.GliE4Ybwli9X6TNTjD1_ {\n  position: absolute;\n  top: 0;\n  left: 0;\n  font-size: 10px;\n  padding: 2px;\n  opacity: 0.65;\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;CACC,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;;;AAGA;;CAEC,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,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;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,eAAe;EACf,YAAY;EACZ,aAAa;AACf;;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.selectable:not(:hover) .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.selectable: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\n.key.selectable:hover .code,\n.key.selectable: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.selectable:hover, .encoder.selectable:hover {\n\tbackground-color: var(--hover-selection);\n\ttransition: 200ms;\n\tz-index: 1;\n}\n.key.selectable:hover .code, .key.selectable:hover .behaviour-binding {\n\tcolor: var(--key-color-hover);\n}\n.key > .code {\n\tpadding: 5px;\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.selectable .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.behaviour-binding {\n  position: absolute;\n  top: 0;\n  left: 0;\n  font-size: 10px;\n  padding: 2px;\n  opacity: 0.65;\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",selectable:"CT4uGhwl8sY0LwT3p39g",missingValue:"UNzQquWsoIanOpIN0Q9L",missing:"Y5EVt8b0BaXNd9uLxhfh",pulse:"sYr3l9y03JxO_2AP73jr",code:"DejZXCvvhJILPbs9Q8ht","behaviour-binding":"GliE4Ybwli9X6TNTjD1_",keyDefaultTheme:"huQDP3GbTLThbVIP8wFp",encoder:"PpMmKpJfEi37Ldw7AeBT",encoder2:"_F1Vep3btfY3Rl4VJaUQ",params:"ApHDJFJGYUaGTgzMeIKZ",param:"mLz637Atn0jZXey6Rx4v",encoderDirection:"k2EIh8YlFvp9sBuklSxx"},n.Z=a},47881:function(e,n,r){var t=r(87537),o=r.n(t),i=r(23645),a=r.n(i)()(o());a.push([e.id,".sP2kDRoTZElZUTNHq033 {\n  width: 300px;\n\tpadding: 10px;\n\tborder-radius: 4px;\n\tbackground: radial-gradient(\n\t\trgba(var(--bg-rgb), 1) 20%,\n\t\trgba(var(--bg-rgb), .6) 100%\n\t);\n}\n.sP2kDRoTZElZUTNHq033 input {\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.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.ECUs4g2j1rekP4xxgQDr input {\n  padding: 4px 4px 4px 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;EACE,YAAY;CACb,aAAa;CACb,kBAAkB;CAClB;;;EAGC;AACF;AACA;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,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,yBAAyB;AAC3B;;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  width: 300px;\n\tpadding: 10px;\n\tborder-radius: 4px;\n\tbackground: radial-gradient(\n\t\trgba(var(--bg-rgb), 1) 20%,\n\t\trgba(var(--bg-rgb), .6) 100%\n\t);\n}\n.dialog input {\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.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.searchWrapper input {\n  padding: 4px 4px 4px 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",results:"inAS9Qunkf3g5K3xz6o6",highlighted:"BL7Cxrn_efblQXY3W1Sw",description:"uld0XaeoQaQJJwp0LT0X","choices-counter":"pqiZQublKXvmnT_ESDxQ",searchWrapper:"ECUs4g2j1rekP4xxgQDr",searchIcon:"xDUAgQZeBp0TZSOqCwHm",clearSearchIcon:"eY5zRl49sESLjXmizMEP"},n.Z=a},61953:function(e,n,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),p=r.n(A),d=r(44589),f=r.n(d),b=r(2),m={};m.styleTagTransform=f(),m.setAttributes=s(),m.insert=c().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),o()(b.Z,m),n.Z=b.Z&&b.Z.locals?b.Z.locals:void 0},45944:function(e,n,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),p=r.n(A),d=r(44589),f=r.n(d),b=r(47881),m={};m.styleTagTransform=f(),m.setAttributes=s(),m.insert=c().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),o()(b.Z,m),n.Z=b.Z&&b.Z.locals?b.Z.locals:void 0}}]);
//# sourceMappingURL=8573.002ec481952931399d0e.js.map