polotno 2.32.0 → 2.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/canvas/tooltip.js CHANGED
@@ -1 +1 @@
1
- import e from"react";import{observer as t}from"mobx-react-lite";import{Html as n}from"react-konva-utils";import{Navbar as o,NavbarGroup as r}from"@blueprintjs/core";import{getTotalClientRect as l}from"../utils/math.js";import{extendToolbar as i}from"../toolbar/element-container.js";import{TextAiWrite as s}from"../toolbar/text-ai-write.js";import{DuplicateButton as a}from"../toolbar/duplicate-button.js";import{RemoveButton as u}from"../toolbar/remove-button.js";import{PositionPicker as c}from"../toolbar/position-picker.js";import{GroupButton as d}from"../toolbar/group-button.js";function m(e,t){return e.classList.contains(t)?e:e.parentElement?m(e.parentElement,t):null}const f=()=>null;export const Tooltip=t(({store:t,page:p,components:v,stageRef:h})=>{var g,E,b;const k=t.selectedShapes.every(e=>e.page===p),w=e.useRef(null),[y,x]=e.useState(!1),C=t._hasCroppedImages;t.selectedElements.length,e.useEffect(()=>{var e,t,n;const o=()=>{x(!0)},r=()=>{x(!1)};null===(e=null==h?void 0:h.current)||void 0===e||e.on("dragstart",o),null===(t=null==h?void 0:h.current)||void 0===t||t.on("dragend",r);const l=null===(n=null==h?void 0:h.current)||void 0===n?void 0:n.findOne("Transformer");return null==l||l.on("transformstart",o),null==l||l.on("transformend",r),()=>{var e,t;null===(e=null==h?void 0:h.current)||void 0===e||e.off("dragstart",o),null===(t=null==h?void 0:h.current)||void 0===t||t.off("dragend",r),null==l||l.off("transformstart",o),null==l||l.off("transformend",r)}},[]);const[I,j]=e.useState({fit:!0,needCalculate:!1,token:Math.random()});function N(){if(!w.current){return}if(!I.needCalculate){return}const e=m(w.current,"polotno-workspace-container");if(!e){return}const t=e.getBoundingClientRect(),n=w.current.getBoundingClientRect(),o=(n.right,t.left,n.top-t.top),r=(n.left,t.left,n.bottom-t.top);o<20&&I.fit?j({fit:!1,needCalculate:!1,token:I.token}):r-t.height>-20&&!I.fit?j({fit:!0,needCalculate:!1,token:I.token}):j({fit:I.fit,needCalculate:!1,token:I.token})}if(e.useEffect(()=>{0!==t.selectedElements.length&&j({fit:!0,needCalculate:!0,token:Math.random()})},[t.selectedElements,y]),e.useLayoutEffect(()=>{const e=setTimeout(()=>{N()},100);return()=>{clearTimeout(e)}},[I.needCalculate,w.current,I.token]),e.useEffect(()=>{if(!h.current){return}const e=m(h.current.content,"polotno-workspace-inner");if(!e){return}const n=()=>{t.selectedElements.length&&j({fit:!0,needCalculate:!0,token:Math.random()})};return null==e||e.addEventListener("scroll",n),()=>{null==e||e.removeEventListener("scroll",n)}},[]),0===t.selectedShapes.length){return null}if(y){return null}if(!k){return null}if(t.activePage!==p){return null}if(C){return null}const T=l(t.selectedShapes),O=(null==v?void 0:v.Position)||c,R=(null==v?void 0:v.Duplicate)||a,S=(null==v?void 0:v.Remove)||u,M=(null==v?void 0:v.Group)||d,Y=(null==v?void 0:v.Lock)||f,B=null===(g=t.selectedElements[0])||void 0===g?void 0:g.type,F=Object.assign({TextAiWrite:s},v),L=i({components:F,type:B,usedItems:[]}),P=(null===(b=null===(E=null==h?void 0:h.current)||void 0===E?void 0:E.findOne("Transformer"))||void 0===b?void 0:b.rotation())||0;let X=30;return Math.abs(P)<30&&I.fit&&(X=80),Math.abs(P)>140&&!I.fit&&(X=80),e.createElement(n,{parentNodeFunc:({stage:e})=>{var t,n;return(null===(t=null==e?void 0:e.container())||void 0===t?void 0:t.closest(".polotno-workspace-container"))||(null===(n=null==e?void 0:e.container())||void 0===n?void 0:n.parentNode)},transformFunc:e=>{var t;const n=T.x+T.width/2,o=I.fit?T.y*e.scaleY-X:T.y*e.scaleY+T.height*e.scaleY+X,r=null===(t=null==h?void 0:h.current)||void 0===t?void 0:t.container(),l=(null==r?void 0:r.getBoundingClientRect())||{left:0,top:0,width:0,height:0,right:0,bottom:0,x:0,y:0,toJSON:()=>({})},i=null==r?void 0:r.closest(".polotno-workspace-container"),s=(null==i?void 0:i.getBoundingClientRect())||{left:0,top:0,width:Number.POSITIVE_INFINITY,height:Number.POSITIVE_INFINITY,right:0,bottom:0,x:0,y:0,toJSON:()=>({})},a=l.left-s.left,u=l.top-s.top;let c=a+e.x+n*e.scaleX,d=c-T.width*e.scaleX/2,m=c+T.width*e.scaleX/2;const f=Math.min(50,T.width/2*e.scaleX),p=m>=f&&d<=s.width-f,v=w.current?w.current.getBoundingClientRect().width:0;if(Number.isFinite(s.width)&&v>0&&p){const e=8+v/2,t=s.width-8-v/2;t>=e&&(c=Math.max(e,Math.min(c,t)))}return m<f&&(c-=v+8),d>s.width-f&&(c+=v+8),Object.assign(Object.assign({},e),{x:c,y:u+e.y+o,scaleX:1,scaleY:1})},divProps:{style:{pointerEvents:"none",position:"absolute",visibility:I.needCalculate?"hidden":"visible",zIndex:9}}},e.createElement("div",{ref:e=>{w.current=e,!w.current&&e&&N()},style:{pointerEvents:"none"}},e.createElement(o,{style:{padding:"2px",borderRadius:"5px",height:"34px",transform:"translate(-50%, -50%)",pointerEvents:"auto"}},e.createElement(r,{style:{height:"30px"}},L.map(n=>{const o=F[n];return e.createElement(o,{elements:t.selectedElements,element:t.selectedElements[0],store:t,key:n})}),e.createElement(M,{store:t}),e.createElement(Y,{store:t}),e.createElement(R,{store:t}),e.createElement(S,{store:t}),e.createElement(O,{store:t})))))});
1
+ import e from"react";import{observer as t}from"mobx-react-lite";import{Html as n}from"react-konva-utils";import{Navbar as o,NavbarGroup as r}from"@blueprintjs/core";import{getTotalClientRect as l}from"../utils/math.js";import{extendToolbar as i}from"../toolbar/element-container.js";import{TextAiWrite as s}from"../toolbar/text-ai-write.js";import{flags as a}from"../utils/flags.js";import{DuplicateButton as u}from"../toolbar/duplicate-button.js";import{RemoveButton as c}from"../toolbar/remove-button.js";import{PositionPicker as d}from"../toolbar/position-picker.js";import{GroupButton as m}from"../toolbar/group-button.js";function f(e,t){return e.classList.contains(t)?e:e.parentElement?f(e.parentElement,t):null}const p=()=>null;export const Tooltip=t(({store:t,page:v,components:h,stageRef:g})=>{var E,b,k;const w=t.selectedShapes.every(e=>e.page===v),x=e.useRef(null),[y,C]=e.useState(!1),j=t._hasCroppedImages;t.selectedElements.length,e.useEffect(()=>{var e,t,n;const o=()=>{C(!0)},r=()=>{C(!1)};null===(e=null==g?void 0:g.current)||void 0===e||e.on("dragstart",o),null===(t=null==g?void 0:g.current)||void 0===t||t.on("dragend",r);const l=null===(n=null==g?void 0:g.current)||void 0===n?void 0:n.findOne("Transformer");return null==l||l.on("transformstart",o),null==l||l.on("transformend",r),()=>{var e,t;null===(e=null==g?void 0:g.current)||void 0===e||e.off("dragstart",o),null===(t=null==g?void 0:g.current)||void 0===t||t.off("dragend",r),null==l||l.off("transformstart",o),null==l||l.off("transformend",r)}},[]);const[I,N]=e.useState({fit:!0,needCalculate:!1,token:Math.random()});function T(){if(!x.current){return}if(!I.needCalculate){return}const e=f(x.current,"polotno-workspace-container");if(!e){return}const t=e.getBoundingClientRect(),n=x.current.getBoundingClientRect(),o=(n.right,t.left,n.top-t.top),r=(n.left,t.left,n.bottom-t.top);o<20&&I.fit?N({fit:!1,needCalculate:!1,token:I.token}):r-t.height>-20&&!I.fit?N({fit:!0,needCalculate:!1,token:I.token}):N({fit:I.fit,needCalculate:!1,token:I.token})}if(e.useEffect(()=>{0!==t.selectedElements.length&&N({fit:!0,needCalculate:!0,token:Math.random()})},[t.selectedElements,y]),e.useLayoutEffect(()=>{const e=setTimeout(()=>{T()},100);return()=>{clearTimeout(e)}},[I.needCalculate,x.current,I.token]),e.useEffect(()=>{if(!g.current){return}const e=f(g.current.content,"polotno-workspace-inner");if(!e){return}const n=()=>{t.selectedElements.length&&N({fit:!0,needCalculate:!0,token:Math.random()})};return null==e||e.addEventListener("scroll",n),()=>{null==e||e.removeEventListener("scroll",n)}},[]),0===t.selectedShapes.length){return null}if(y){return null}if(!w){return null}if(t.activePage!==v){return null}if(j){return null}const O=l(t.selectedShapes),R=(null==h?void 0:h.Position)||d,S=(null==h?void 0:h.Duplicate)||u,M=(null==h?void 0:h.Remove)||c,Y=(null==h?void 0:h.Group)||m,B=(null==h?void 0:h.Lock)||p,F=null===(E=t.selectedElements[0])||void 0===E?void 0:E.type,L=Object.assign(Object.assign({},a.aiTextEnabled?{TextAiWrite:s}:{}),h||{}),P=i({components:L,type:F,usedItems:[]}),X=(null===(k=null===(b=null==g?void 0:g.current)||void 0===b?void 0:b.findOne("Transformer"))||void 0===k?void 0:k.rotation())||0;let _=30;return Math.abs(X)<30&&I.fit&&(_=80),Math.abs(X)>140&&!I.fit&&(_=80),e.createElement(n,{parentNodeFunc:({stage:e})=>{var t,n;return(null===(t=null==e?void 0:e.container())||void 0===t?void 0:t.closest(".polotno-workspace-container"))||(null===(n=null==e?void 0:e.container())||void 0===n?void 0:n.parentNode)},transformFunc:e=>{var t;const n=O.x+O.width/2,o=I.fit?O.y*e.scaleY-_:O.y*e.scaleY+O.height*e.scaleY+_,r=null===(t=null==g?void 0:g.current)||void 0===t?void 0:t.container(),l=(null==r?void 0:r.getBoundingClientRect())||{left:0,top:0,width:0,height:0,right:0,bottom:0,x:0,y:0,toJSON:()=>({})},i=null==r?void 0:r.closest(".polotno-workspace-container"),s=(null==i?void 0:i.getBoundingClientRect())||{left:0,top:0,width:Number.POSITIVE_INFINITY,height:Number.POSITIVE_INFINITY,right:0,bottom:0,x:0,y:0,toJSON:()=>({})},a=l.left-s.left,u=l.top-s.top;let c=a+e.x+n*e.scaleX,d=c-O.width*e.scaleX/2,m=c+O.width*e.scaleX/2;const f=Math.min(50,O.width/2*e.scaleX),p=m>=f&&d<=s.width-f,v=x.current?x.current.getBoundingClientRect().width:0;if(Number.isFinite(s.width)&&v>0&&p){const e=8+v/2,t=s.width-8-v/2;t>=e&&(c=Math.max(e,Math.min(c,t)))}return m<f&&(c-=v+8),d>s.width-f&&(c+=v+8),Object.assign(Object.assign({},e),{x:c,y:u+e.y+o,scaleX:1,scaleY:1})},divProps:{style:{pointerEvents:"none",position:"absolute",visibility:I.needCalculate?"hidden":"visible",zIndex:9}}},e.createElement("div",{ref:e=>{x.current=e,!x.current&&e&&T()},style:{pointerEvents:"none"}},e.createElement(o,{style:{padding:"2px",borderRadius:"5px",height:"34px",transform:"translate(-50%, -50%)",pointerEvents:"auto"}},e.createElement(r,{style:{height:"30px"}},P.map(n=>{const o=L[n];return e.createElement(o,{elements:t.selectedElements,element:t.selectedElements[0],store:t,key:n})}),e.createElement(Y,{store:t}),e.createElement(B,{store:t}),e.createElement(S,{store:t}),e.createElement(M,{store:t}),e.createElement(R,{store:t})))))});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polotno",
3
- "version": "2.32.0",
3
+ "version": "2.32.1",
4
4
  "description": "Design Editor Framework",
5
5
  "author": "Anton Lavrenov",
6
6
  "keywords": [
package/polotno.bundle.js CHANGED
@@ -358,7 +358,7 @@ For simpler debugging here is the log of the parent element:`,uM=({store:e})=>(0
358
358
  ${iV(`
359
359
  width: auto !important;
360
360
  `)}
361
- `,yH=({type:e,usedItems:t,components:n})=>{let r=[];return Object.keys(n).forEach(i=>{if(0===i.toLowerCase().indexOf(e)&&i.toLowerCase()!==e){if(!n[i])return void console.error(`Polotno error: Toolbar has invalid React component "${i}"`);t.includes(i)||r.push(i)}}),t.filter(e=>!!e).concat(r)},yV=({items:e,itemRender:t})=>{let[n,r]=g(E).useState(0),i=g(E).useRef(null),o=()=>{if(null===i.current)return;let e=i.current.parentElement,t=0;[...i.current.parentElement.children].forEach(e=>{e!==i.current&&(t+=e.offsetWidth)}),r(Math.max(20,e.offsetWidth-t-10))};return g(E).useLayoutEffect(()=>{o()}),g(E).useLayoutEffect(()=>{let e=i.current.parentElement,t=e?.parentElement;if(window.ResizeObserver){let n=new ResizeObserver(o);e&&n.observe(e),t&&n.observe(t);let r=new MutationObserver(o);return e&&r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),()=>{n.disconnect(),r.disconnect()}}{let e=setInterval(o,100);return()=>clearInterval(e)}},[]),(0,C.jsx)(yB,{style:{width:n+"px"},ref:i,className:"bp5-navbar-group bp5-align-left",children:(0,C.jsx)(yI,{items:e,style:{width:"100%"},visibleItemRenderer:t,collapseFrom:"end",overflowRenderer:e=>(0,C.jsx)(yv,{content:(0,C.jsx)("div",{style:{padding:"10px",display:"flex"},children:e.map(t)}),position:da.BOTTOM,children:(0,C.jsx)(mc,{icon:(0,C.jsx)(yF,{}),minimal:!0,style:{marginLeft:"10px"},onMouseDownCapture:e=>{e.preventDefault()}})})})})};var E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),yU=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"small-cross",ref:t},e),E.createElement("path",{d:n?"M228.2 200L294 265.8C297.8 269.4 300 274.4 300 280C300 291 291 300 280 300C274.4000000000001 300 269.4000000000001 297.8 265.8 294.2L200 228.2L134.2 294.2C130.6 297.8 125.6 300 120 300C109 300 100 291 100 280C100 274.4 102.2 269.4 105.8 265.8L171.8 200L106 134.2000000000001C102.2 130.6 100 125.6 100 120C100 109 109 100 120 100C125.6 100 130.6 102.2 134.2 105.8L200 171.8L265.8 106C269.4000000000001 102.2 274.4000000000001 100 280 100C291 100 300 109 300 120C300 125.6 297.8 130.6 294.2000000000001 134.2000000000001L228.2 200z":"M188.2 160L234 205.8C237.8 209.4 240 214.4 240 220C240 231 231 240 220 240C214.4 240 209.4 237.8 205.8 234.2L160 188.2L114.2 234.2C110.6 237.8 105.6 240 100 240C89 240 80 231 80 220C80 214.4 82.2 209.4 85.8 205.8L131.8 160L86 114.2C82.2 110.6 80 105.6 80 100C80 89 89 80 100 80C105.6 80 110.6 82.2 114.2 85.8L160 131.8L205.8 86C209.4 82.2 214.4 80 220 80C231 80 240 89 240 100C240 105.6 237.8 110.6 234.2 114.2L188.2 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});yU.defaultProps={size:g6.IconSize.STANDARD},yU.displayName="Blueprint5.Icon.SmallCross";var uF=x("gztBd"),E=x("8NFma");function yG(e,t){return E.forwardRef(function(n,r){var i=n.className,o=n.children,a=(0,uF.__rest)(n,["className","children"]);return E.createElement(e,(0,uF.__assign)((0,uF.__assign)({},a),{className:g(uB)(t,i),ref:r}),o)})}yG("h1",d2),yG("h2",d2),yG("h3",d2),yG("h4",d2),yG("h5",d2);var yq=yG("h6",d2);yG("blockquote",dJ),yG("code",d0),yG("pre",d1),yG("label",fT),yG("ol",d3),yG("ul",d3);var y$=function(e){function t(t){var n=e.call(this,t)||this;n.childRef=E.createRef();var r=cY("bp-dialog");return n.titleId="title-".concat(r),n}return(0,uF.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.children,i=t.containerRef,o=t.style,a=t.title,l=t.role,s=(0,uF.__rest)(t,["className","children","containerRef","style","title","role"]);return E.createElement(yi,(0,uF.__assign)({},s,{className:c9.OVERLAY_SCROLL_CONTAINER,childRef:this.childRef,hasBackdrop:!0}),E.createElement("div",{className:c9.DIALOG_CONTAINER,ref:uq(i,this.childRef)},E.createElement("div",{className:g(uB)(c9.DIALOG,n),role:void 0===l?"dialog":l,"aria-modal":null!=(e=s.enforceFocus)?e:yr.enforceFocus,"aria-labelledby":this.props["aria-labelledby"]||(a?this.titleId:void 0),"aria-describedby":this.props["aria-describedby"],style:o},this.maybeRenderHeader(),r)))},t.prototype.validateProps=function(e){null==e.title&&(null!=e.icon&&console.warn(cI),null!=e.isCloseButtonShown&&console.warn(cD))},t.prototype.maybeRenderCloseButton=function(){return!1!==this.props.isCloseButtonShown?E.createElement(mc,{"aria-label":"Close",className:c9.DIALOG_CLOSE_BUTTON,icon:E.createElement(yU,{size:g6.IconSize.STANDARD}),onClick:this.props.onClose,variant:"minimal"}):void 0},t.prototype.maybeRenderHeader=function(){var e=this.props,t=e.icon,n=e.title;if(null!=n)return E.createElement("div",{className:c9.DIALOG_HEADER},E.createElement(mn,{icon:t,size:g6.IconSize.STANDARD,"aria-hidden":!0,tabIndex:-1}),E.createElement(yq,{id:this.titleId},n),this.maybeRenderCloseButton())},t.defaultProps={canOutsideClickClose:!0,isOpen:!1},t.displayName="".concat(gY,".Dialog"),t}(mf),uF=x("gztBd"),E=x("8NFma"),yW=function(e){var t=e.className,n=e.children,r=e.large,i=e.size,o=e.small,a=e.ulRef,l=(0,uF.__rest)(e,["className","children","large","size","small","ulRef"]);return E.createElement("ul",(0,uF.__assign)({role:"menu"},l,{className:g(uB)(t,c9.MENU,c9.sizeClass(void 0===i?"medium":i,{large:r,small:o})),ref:a}),n)};yW.displayName="".concat(gY,".Menu");var E=x("8NFma"),yY=function(e){var t=e.className,n=e.title,r=e.titleId,i=g(uB)(n?c9.MENU_HEADER:c9.MENU_DIVIDER,t);return E.createElement("li",{className:i,role:"separator"},n&&E.createElement(yq,{id:r},n))};yY.displayName="".concat(gY,".MenuDivider");var uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),yX=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"caret-right",ref:t},e),E.createElement("path",{d:n?"M280 200C280 206.2 277 211.4 272.6 215.2L272.8 215.4L152.8 315.4L152.6 315.2C149.2 318 144.8 320 140 320C129 320 120 311 120 300V100C120 89 129 80 140 80C144.8 80 149.2 82 152.6 84.8L152.8 84.6L272.8 184.6L272.6 184.8C277 188.6 280 193.8 280 200z":"M220 160C220 163 218.6 165.6 216.6 167.4L216.6 167.4L136.6 237.4L136.6 237.4C134.8 239 132.6 240 130 240C124.4 240 120 235.6 120 230V90C120 84.4 124.4 80 130 80C132.6 80 134.8 81 136.6 82.6C136.6 82.6 136.6 82.6 136.6 82.6L216.6 152.6L216.6 152.6C218.6 154.4 220 157 220 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});yX.defaultProps={size:g6.IconSize.STANDARD},yX.displayName="Blueprint5.Icon.CaretRight";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),yK=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"small-tick",ref:t},e),E.createElement("path",{d:n?"M300 300C294.4000000000001 300 289.4000000000001 297.8 285.8 294.2L160 168.2L114.2 214.2C110.6 217.8 105.6 220 100 220C89 220 80 211 80 200C80 194.4 82.2 189.4 85.8 185.8L145.8 125.8C149.4 122.2 154.4 120 160 120S170.6 122.2 174.2 125.8L314.2000000000001 265.8C317.8 269.4 320 274.4 320 280C320 291 311 300 300 300z":"M240 220C234.4 220 229.4 217.8 225.8 214.2L140 128.2L94.2 174.2C90.6 177.8 85.6 180 80 180C69 180 60 171 60 160C60 154.4 62.2 149.4 65.8 145.8L125.8 85.8C129.4 82.2 134.4 80 140 80S150.6 82.2 154.2 85.8L254.2 185.8C257.8 189.4 260 194.4 260 200C260 211 251 220 240 220z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});yK.defaultProps={size:g6.IconSize.STANDARD},yK.displayName="Blueprint5.Icon.SmallTick";var yZ=E.forwardRef(function(e,t){var n,r,i=e.active,o=e.className,a=e.children,l=e.disabled,s=void 0!==l&&l,u=e.icon,c=e.intent,d=e.labelClassName,h=e.labelElement,f=e.multiline,p=e.popoverProps,m=void 0===p?{}:p,v=e.roleStructure,y=void 0===v?"menuitem":v,b=e.selected,x=e.shouldDismissPopover,w=e.submenuProps,C=e.text,_=e.textClassName,S=e.tagName,k=e.htmlTitle,O=(0,uF.__rest)(e,["active","className","children","disabled","icon","intent","labelClassName","labelElement","multiline","popoverProps","roleStructure","selected","shouldDismissPopover","submenuProps","text","textClassName","tagName","htmlTitle"]),P="listoption"===y?["option",void 0,!!b]:"menuitem"===y?["none","menuitem",void 0]:"none"===y?["none",void 0,void 0]:[void 0,void 0,void 0],T=P[0],A=P[1],j=P[2],L="listoption"===y,R=L&&b,N=null!=u,M=null!=a,I=c9.intentClass(c),D=g(uB)(c9.MENU_ITEM,I,((n={})[c9.ACTIVE]=void 0!==i&&i,n[c9.DISABLED]=s,n[c9.POPOVER_DISMISS]=(void 0===x||x)&&!s&&!M,n[c9.MENU_ITEM_IS_SELECTABLE]=L,n[c9.SELECTED]=R,n),o),z=null==e.label&&null==h?null:E.createElement("span",{className:g(uB)(c9.MENU_ITEM_LABEL,d)},e.label,h),F=E.createElement(void 0===S?"a":S,(0,uF.__assign)((0,uF.__assign)((0,uF.__assign)({onKeyDown:cn(["Enter"," "]),role:M?"none":A,tabIndex:M?-1:0},gK(O)),s?yJ:{}),{className:D}),R?E.createElement(yK,{className:c9.MENU_ITEM_SELECTED_ICON}):void 0,N?E.createElement("span",{className:c9.MENU_ITEM_ICON},E.createElement(mn,{icon:u,"aria-hidden":!0,tabIndex:-1})):void 0,E.createElement(mu,{className:g(uB)(c9.FILL,_),ellipsize:!(void 0!==f&&f),title:k},void 0===C?"":C),z,M?E.createElement(yX,{className:c9.MENU_SUBMENU_ICON,title:"Open sub menu"}):void 0),B=g(uB)(((r={})[c9.MENU_SUBMENU]=M,r));return E.createElement("li",{className:B,ref:t,role:T,"aria-selected":j},null==a?F:E.createElement(yv,(0,uF.__assign)({autoFocus:!1,captureDismiss:!1,disabled:s,enforceFocus:!1,hoverCloseDelay:0,interactionKind:"hover",modifiers:yQ,targetProps:{role:A,tabIndex:0},placement:"right-start",usePortal:!1},m,{content:E.createElement(yW,(0,uF.__assign)({},w),a),minimal:!0,popoverClassName:g(uB)(c9.MENU_SUBMENU,null==m?void 0:m.popoverClassName)}),F))});yZ.displayName="".concat(gY,".MenuItem");var yQ={flip:{enabled:!0,options:{padding:20,rootBoundary:"viewport"}},offset:{enabled:!0,options:{offset:[-5,0]}},preventOverflow:{enabled:!0,options:{padding:20,rootBoundary:"viewport"}}},yJ={"aria-disabled":!0,href:void 0,onClick:void 0,onMouseDown:void 0,onMouseEnter:void 0,onMouseLeave:void 0,tabIndex:-1},uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=(x("8NFma"),x("8NFma")),y0=E.forwardRef(function(e,t){var n=e.value,r=e.onChange,i=e.onCompositionStart,o=e.onCompositionEnd,a=(0,uF.__rest)(e,["value","onChange","onCompositionStart","onCompositionEnd"]),l=function(e){var t=e.onCompositionStart,n=e.onCompositionEnd,r=e.value,i=e.onChange,o=E.useState(r),a=o[0],l=o[1],s=E.useState(r),u=s[0],c=s[1],d=E.useState(!1),h=d[0],f=d[1],p=E.useState(!1),g=p[0],m=p[1],v=E.useRef(),y=E.useCallback(function(e){var n;null==(n=v.current)||n.call(v),f(!0),null==t||t(e)},[t]),b=E.useCallback(function(){var e=window.setTimeout(function(){return f(!1)},10);return function(){return window.clearTimeout(e)}},[]),x=E.useCallback(function(e){v.current=b(),null==n||n(e)},[b,n]),w=E.useCallback(function(e){c(e.target.value),null==i||i(e)},[i]);if(!(h||void 0===r)){var C=u!==a;C&&r===u?(l(r),m(!1)):C&&r===a?g||m(!0):C&&r!==a?(l(r),c(r),m(!1)):!C&&(a!==r||g)&&(l(r),c(r),m(!1))}return{onChange:w,onCompositionEnd:x,onCompositionStart:y,value:h||g?u:a}}({onChange:r,onCompositionEnd:o,onCompositionStart:i,value:n}),s=l.value,u=l.onChange,c=l.onCompositionStart,d=l.onCompositionEnd;return E.createElement("textarea",(0,uF.__assign)({},a,{value:s,onChange:u,onCompositionStart:c,onCompositionEnd:d,ref:t}))});y0.displayName="".concat(gY,".AsyncControllableTextArea");var y1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.textareaElement=null,t.handleRef=uW(t,"textareaElement",t.props.inputRef),t.maybeSyncHeightToScrollHeight=function(){var e=t.props,n=e.autoResize,r=e.growVertically;if(null!=t.textareaElement){var i=t.textareaElement.scrollHeight;n?(t.textareaElement.style.height="0px",t.textareaElement.style.height=i.toString()+"px",t.setState({height:i})):r&&i>0&&t.setState({height:i})}if(t.props.autoResize&&null!=t.textareaElement){t.textareaElement.style.height="0px";var i=t.textareaElement.scrollHeight;t.textareaElement.style.height=i.toString()+"px",t.setState({height:i})}},t.handleChange=function(e){var n,r;t.maybeSyncHeightToScrollHeight(),null==(r=(n=t.props).onChange)||r.call(n,e)},t}return(0,uF.__extends)(t,e),t.prototype.componentDidMount=function(){this.maybeSyncHeightToScrollHeight()},t.prototype.componentDidUpdate=function(e){e.inputRef!==this.props.inputRef&&(uG(e.inputRef,null),this.handleRef=uW(this,"textareaElement",this.props.inputRef),uG(this.props.inputRef,this.textareaElement)),(e.value!==this.props.value||e.style!==this.props.style)&&this.maybeSyncHeightToScrollHeight()},t.prototype.render=function(){var e,t=this.props,n=t.asyncControl,r=t.autoResize,i=t.className,o=t.fill,a=t.growVertically,l=(t.inputRef,t.intent),s=t.large,u=t.size,c=t.small,d=(0,uF.__rest)(t,["asyncControl","autoResize","className","fill","growVertically","inputRef","intent","large","size","small"]),h=g(uB)(c9.INPUT,c9.TEXT_AREA,c9.intentClass(l),c9.sizeClass(void 0===u?"medium":u,{large:s,small:c}),((e={})[c9.FILL]=o,e[c9.TEXT_AREA_AUTO_RESIZE]=r,e),i),f=d.style,p=void 0===f?{}:f;(r||a)&&null!=this.state.height&&(p=(0,uF.__assign)((0,uF.__assign)({},p),{height:"".concat(this.state.height,"px")}));var m=n?y0:"textarea";return E.createElement(m,(0,uF.__assign)({},d,{className:h,onChange:this.handleChange,style:p,ref:this.handleRef}))},t.defaultProps={autoResize:!1,fill:!1,large:!1,size:"medium",small:!1},t.displayName="".concat(gY,".TextArea"),t}(mf),uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),y2=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"clean",ref:t},e),E.createElement("path",{d:n?"M140 400L100 300L0 260.0385184L100 220L140 120L180 220L280 259.8943316L180 300zM300 200L270 130.07389L200 100.102912L270 70.137224L300 0L330 70.137224L400 100L330 130.07389z":"M240 160L216 104.07387L160 80.08233L216 56.137188L240 0L264 56.137188L320 80L264 104.07387zM100 320L70 250L0 220.102913L70 190L100 120L130 190L200 220L130 250z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});y2.defaultProps={size:g6.IconSize.STANDARD},y2.displayName="Blueprint5.Icon.Clean";let y3=async({text:e="",command:t,tone:n})=>{try{let r=await fetch(lj.aiText(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:e,command:t,tone:n})});if(!r.ok){let e=await r.text();throw console.error(e),Error("Failed to rewrite text")}return(await r.json()).response}catch(t){return console.error(t),e}},y4=[{text:"friendly"},{text:"professional"},{text:"humorous"},{text:"formal"}],y8=I(({store:e})=>{let t=e.selectedElements.length>0,[n,r]=g(E).useState(!1),[i,o]=g(E).useState(!1),[a,l]=g(E).useState(1),[s,u]=g(E).useState(""),[c,d]=g(E).useState(""),[h,f]=g(E).useState(!1),p=g(E).useRef(null),m=e.selectedElements.some(e=>!e.contentEditable);g(E).useEffect(()=>{i&&1===a&&setTimeout(()=>{p.current?.focus()},100)},[i,a]);let v=async(t,n)=>{r(!0);let i=e.selectedElements[0].id,o=e.selectedElements[0].text,a=await y3({text:o,command:t,tone:n}),l=e.getElementById(i);l&&(l.set({text:a}),r(!1))},y=async()=>{f(!0),d(await y3({command:"custom",text:e.selectedElements[0].text,tone:s})),f(!1),l(2)};return m?null:n?(0,C.jsx)(mc,{icon:(0,C.jsx)(y2,{}),minimal:!0,text:"AI write",loading:!0}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(yv,{disabled:!t,content:(0,C.jsxs)(yW,{children:[(0,C.jsx)(yZ,{text:uR("toolbar.aiText.rewrite"),onClick:()=>{v("rewrite")}}),(0,C.jsx)(yZ,{text:uR("toolbar.aiText.shorten"),onClick:()=>{v("shorten")}}),(0,C.jsx)(yZ,{text:uR("toolbar.aiText.continue"),onClick:()=>{v("continue")}}),(0,C.jsx)(yZ,{text:uR("toolbar.aiText.proofread"),onClick:()=>{v("proofread")}}),(0,C.jsx)("li",{className:"bp5-menu-header",children:(0,C.jsx)("h6",{className:"bp5-heading",children:uR("toolbar.aiText.tones")})}),y4.map(e=>(0,C.jsx)(yZ,{text:uR(`toolbar.aiText.${e.text}`),onClick:()=>{v("tone",e.text)}},e.text)),(0,C.jsx)(yY,{}),(0,C.jsx)(yZ,{text:uR("toolbar.aiText.customPrompt"),onClick:e=>{e.preventDefault(),e.stopPropagation(),o(!0)}})]}),position:da.BOTTOM,children:(0,C.jsx)(mc,{icon:(0,C.jsx)(y2,{}),minimal:!0,text:uR("toolbar.aiText.aiWrite")})}),(0,C.jsx)(y$,{isOpen:i,onClose:()=>{h||(o(!1),l(1),u(""),d(""))},title:1===a?uR("toolbar.aiText.customPrompt"):uR("toolbar.aiText.generatedResult"),children:1===a?(0,C.jsxs)("div",{className:"bp5-dialog-body",children:[(0,C.jsx)(y1,{inputRef:p,value:s,onChange:e=>u(e.target.value),placeholder:uR("toolbar.aiText.promptPlaceholder"),fill:!0,disabled:h,style:{minHeight:100}}),(0,C.jsx)("div",{className:"bp5-dialog-footer",children:(0,C.jsxs)("div",{className:"bp5-dialog-footer-actions",children:[(0,C.jsx)(mc,{onClick:()=>o(!1),text:uR("toolbar.aiText.cancel"),disabled:h}),(0,C.jsx)(mc,{intent:"primary",onClick:y,loading:h,disabled:!s,text:uR("toolbar.aiText.generate")})]})})]}):(0,C.jsxs)("div",{className:"bp5-dialog-body",children:[(0,C.jsx)(y1,{value:c,onChange:e=>d(e.target.value),fill:!0,growVertically:!0,style:{minHeight:100}}),(0,C.jsx)("div",{className:"bp5-dialog-footer",children:(0,C.jsxs)("div",{className:"bp5-dialog-footer-actions",children:[(0,C.jsx)(mc,{onClick:()=>l(1),text:uR("toolbar.aiText.back"),disabled:h}),(0,C.jsx)(mc,{onClick:y,text:uR("toolbar.aiText.tryAgain"),loading:h}),(0,C.jsx)(mc,{intent:"primary",onClick:()=>{let t=e.selectedElements[0].id,n=e.getElementById(t);n&&n.set({text:c}),o(!1),l(1),u(""),d("")},text:uR("toolbar.aiText.insert"),disabled:h})]})})]})})]})});x("8NFma");var E=x("8NFma");let y6=({store:e})=>{let t=e.selectedElements.length>0,n=e.selectedElements.every(e=>!1===e.removable);return{duplicate:(0,E.useCallback)(()=>{ub(e.selectedElements,e)},[e]),disabled:!t||n}},y5=I(({store:e})=>{let{disabled:t,duplicate:n}=y6({store:e});return(0,C.jsx)(yC,{content:uR("toolbar.duplicateElements"),disabled:t,position:"bottom",children:(0,C.jsx)(mc,{icon:(0,C.jsx)(yO,{}),minimal:!0,onClick:()=>n(),disabled:t,"aria-label":uR("toolbar.duplicateElements")})})});x("8NFma");var E=x("8NFma");let y9=({store:e})=>{let t=e.selectedElements.filter(e=>e.removable),n=(0,E.useCallback)(()=>{e.deleteElements(t.map(e=>e.id))},[e,t]);return{disabled:!t.length,remove:n}},y7=I(({store:e})=>{let{disabled:t,remove:n}=y9({store:e});return(0,C.jsx)(yC,{content:uR("toolbar.removeElements"),disabled:t,position:"bottom",children:(0,C.jsx)(mc,{icon:(0,C.jsx)(yT,{}),minimal:!0,onClick:()=>n(),disabled:t,style:{marginLeft:"auto"},"aria-label":uR("toolbar.removeElements")})})});x("8NFma");var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),be=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"alignment-bottom",ref:t},e),E.createElement("path",{d:n?"M240 80H320C331 80 340 89 340 100V240C340 251 331 260 320 260H240C229 260 220 251 220 240V100C220 89 229 80 240 80zM380 40H20C9 40 0 31 0 20S9 0 20 0H380C391 0 400 9 400 20S391 40 380 40zM80 80H160C171 80 180 89 180 100V380C180 391 171 400 160 400H80C69 400 60 391 60 380V100C60 89 69 80 80 80z":"M200 80H260C271 80 280 89 280 100V180C280 191 271 200 260 200H200C189 200 180 191 180 180V100C180 89 189 80 200 80zM300 40H20C9 40 0 31 0 20S9 0 20 0H300C311 0 320 9 320 20S311 40 300 40zM60 80H120C131 80 140 89 140 100V280C140 291 131 300 120 300H60C49 300 40 291 40 280V100C40 89 49 80 60 80z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});be.defaultProps={size:g6.IconSize.STANDARD},be.displayName="Blueprint5.Icon.AlignmentBottom";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bt=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"alignment-horizontal-center",ref:t},e),E.createElement("path",{d:n?"M380 220H340V260C340 271 331 280 320 280H240C229 280 220 271 220 260V220H180V340C180 351 171 360 160 360H80C69 360 60 351 60 340V220H20C9 220 0 211 0 200C0 189 9 180 20 180H60V60C60 49 69 40 80 40H160C171 40 180 49 180 60V180H220V140C220 129 229 120 240 120H320C331 120 340 129 340 140V180H380C391 180 400 189 400 200C400 211 391 220 380 220z":"M300 180H280V200C280 211 271 220 260 220H200C189 220 180 211 180 200V180H140V260C140 271 131 280 120 280H60C49 280 40 271 40 260V180H20C9 180 0 171 0 160C0 149 9 140 20 140H40V60C40 49 49 40 60 40H120C131 40 140 49 140 60V140H180V120C180 109 189 100 200 100H260C271 100 280 109 280 120V140H300C311 140 320 149 320 160C320 171 311 180 300 180z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bt.defaultProps={size:g6.IconSize.STANDARD},bt.displayName="Blueprint5.Icon.AlignmentHorizontalCenter";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bn=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"alignment-left",ref:t},e),E.createElement("path",{d:n?"M20 400C9 400 0 391 0 380V20C0 9 9 0 20 0S40 9 40 20V380C40 391 31 400 20 400zM240 180H100C89 180 80 171 80 160V80C80 69 89 60 100 60H240C251 60 260 69 260 80V160C260 171 251 180 240 180zM380 340H100C89 340 80 331 80 320V240C80 229 89 220 100 220H380C391 220 400 229 400 240V320C400 331 391 340 380 340z":"M180 140H100C89 140 80 131 80 120V60C80 49 89 40 100 40H180C191 40 200 49 200 60V120C200 131 191 140 180 140zM20 320C9 320 0 311 0 300V20C0 9 9 0 20 0S40 9 40 20V300C40 311 31 320 20 320zM280 280H100C89 280 80 271 80 260V200C80 189 89 180 100 180H280C291 180 300 189 300 200V260C300 271 291 280 280 280z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bn.defaultProps={size:g6.IconSize.STANDARD},bn.displayName="Blueprint5.Icon.AlignmentLeft";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),br=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"alignment-right",ref:t},e),E.createElement("path",{d:n?"M380 400C369 400 360 391 360 380V20C360 9 369 0 380 0S400 9 400 20V380C400 391 391 400 380 400zM300 180H160C149 180 140 171 140 160V80C140 69 149 60 160 60H300C311 60 320 69 320 80V160C320 171 311 180 300 180zM300 340H20C9 340 0 331 0 320V240C0 229 9 220 20 220H300C311 220 320 229 320 240V320C320 331 311 340 300 340z":"M220 140H140C129 140 120 131 120 120V60C120 49 129 40 140 40H220C231 40 240 49 240 60V120C240 131 231 140 220 140zM300 320C289 320 280 311 280 300V20C280 9 289 0 300 0S320 9 320 20V300C320 311 311 320 300 320zM220 280H40C29 280 20 271 20 260V200C20 189 29 180 40 180H220C231 180 240 189 240 200V260C240 271 231 280 220 280z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});br.defaultProps={size:g6.IconSize.STANDARD},br.displayName="Blueprint5.Icon.AlignmentRight";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bi=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"alignment-top",ref:t},e),E.createElement("path",{d:n?"M160 320H80C69 320 60 311 60 300V20C60 9 69 0 80 0H160C171 0 180 9 180 20V300C180 311 171 320 160 320zM380 400H20C9 400 0 391 0 380S9 360 20 360H380C391 360 400 369 400 380S391 400 380 400zM320 320H240C229 320 220 311 220 300V160C220 149 229 140 240 140H320C331 140 340 149 340 160V300C340 311 331 320 320 320z":"M300 320H20C9 320 0 311 0 300S9 280 20 280H300C311 280 320 289 320 300S311 320 300 320zM120 240H60C49 240 40 231 40 220V40C40 29 49 20 60 20H120C131 20 140 29 140 40V220C140 231 131 240 120 240zM260 240H200C189 240 180 231 180 220V140C180 129 189 120 200 120H260C271 120 280 129 280 140V220C280 231 271 240 260 240z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bi.defaultProps={size:g6.IconSize.STANDARD},bi.displayName="Blueprint5.Icon.AlignmentTop";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bo=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"alignment-vertical-center",ref:t},e),E.createElement("path",{d:n?"M340 340H220V380C220 391 211 400 200 400S180 391 180 380V340H60C49 340 40 331 40 320V240C40 229 49 220 60 220H180V180H140C129 180 120 171 120 160V80C120 69 129 60 140 60H180V20C180 9 189 0 200 0S220 9 220 20V60H260C271 60 280 69 280 80V160C280 171 271 180 260 180H220V220H340C351 220 360 229 360 240V320C360 331 351 340 340 340z":"M260 280H180V300C180 311 171 320 160 320S140 311 140 300V280H60C49 280 40 271 40 260V200C40 189 49 180 60 180H140V140H120C109 140 100 131 100 120V60C100 49 109 40 120 40H140V20C140 9 149 0 160 0S180 9 180 20V40H200C211 40 220 49 220 60V120C220 131 211 140 200 140H180V180H260C271 180 280 189 280 200V260C280 271 271 280 260 280z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bo.defaultProps={size:g6.IconSize.STANDARD},bo.displayName="Blueprint5.Icon.AlignmentVerticalCenter";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),ba=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"double-chevron-down",ref:t},e),E.createElement("path",{d:n?"M185.8 185.8C189.4 182.2 194.4 180 200 180S210.6 182.2 214.2 185.8L334.2000000000001 305.8C337.8 309.4 340 314.4 340 320C340 331 331 340 320 340C314.4000000000001 340 309.4000000000001 337.8 305.8 334.2L200 228.2L94.2 334.2C90.6 337.8 85.6 340 80 340C69 340 60 331 60 320C60 314.4 62.2 309.4 65.8 305.8L185.8 185.8zM320 220C314.4000000000001 220 309.4000000000001 217.8 305.8 214.2L200 108.2L94.2 214.2C90.6 217.8 85.6 220 80 220C69 220 60 211 60 200C60 194.4 62.2 189.4 65.8 185.8L185.8 65.8C189.4 62.2 194.4 60 200 60S210.6 62.2 214.2 65.8L334.2000000000001 185.8C337.8 189.4 340 194.4 340 200C340 211 331 220 320 220z":"M145.8 145.8C149.4 142.2 154.4 140 160 140S170.6 142.2 174.2 145.8L254.2 225.8C257.8 229.4 260 234.4 260 240C260 251 251 260 240 260C234.4 260 229.4 257.8 225.8 254.2L160 188.2L94.2 254.2C90.6 257.8 85.6 260 80 260C69 260 60 251 60 240C60 234.4 62.2 229.4 65.8 225.8L145.8 145.8zM240 160C234.4 160 229.4 157.8 225.8 154.2L160 88.2L94.2 154.2C90.6 157.8 85.6 160 80 160C69 160 60 151 60 140C60 134.4 62.2 129.4 65.8 125.8L145.8 45.8C149.4 42.2 154.4 40 160 40S170.6 42.2 174.2 45.8L254.2 125.8C257.8 129.4 260 134.4 260 140C260 151 251 160 240 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});ba.defaultProps={size:g6.IconSize.STANDARD},ba.displayName="Blueprint5.Icon.DoubleChevronDown";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bl=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"double-chevron-up",ref:t},e),E.createElement("path",{d:n?"M80 180C85.6 180 90.6 182.2 94.2 185.8L200 291.8L305.8 186C309.4000000000001 182.2 314.4000000000001 180 320 180C331 180 340 189 340 200C340 205.6 337.8 210.6 334.2000000000001 214.2L214.2 334.2000000000001C210.6 337.8 205.6 340 200 340C194.4 340 189.4 337.8 185.8 334.2L65.8 214.2C62.2 210.6 60 205.6 60 200C60 189 69 180 80 180zM214.2 214.2C210.6 217.8 205.6 220 200 220C194.4 220 189.4 217.8 185.8 214.2L65.8 94.2000000000001C62.2 90.6 60 85.6 60 80C60 69 69 60 80 60C85.6 60 90.6 62.2 94.2 65.8L200 171.8L305.8 66C309.4000000000001 62.2 314.4000000000001 60 320 60C331 60 340 69 340 80C340 85.6 337.8 90.6 334.2000000000001 94.2000000000001L214.2 214.2z":"M80 160C85.6 160 90.6 162.2 94.2 165.8L160 231.8L225.8 166C229.4 162.2 234.4 160 240 160C251 160 260 169 260 180C260 185.6 257.8 190.6 254.2 194.2L174.2 274.2C170.6 277.8 165.6 280 160 280S149.4 277.8 145.8 274.2L65.8 194.2C62.2 190.6 60 185.6 60 180C60 169 69 160 80 160zM174.2 174.2C170.6 177.8 165.6 180 160 180S149.4 177.8 145.8 174.2L65.8 94.2C62.2 90.6 60 85.6 60 80C60 69 69 60 80 60C85.6 60 90.6 62.2 94.2 65.8L160 131.8L225.8 66C229.4 62.2 234.4 60 240 60C251 60 260 69 260 80C260 85.6 257.8 90.6 254.2 94.2L174.2 174.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bl.defaultProps={size:g6.IconSize.STANDARD},bl.displayName="Blueprint5.Icon.DoubleChevronUp";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bs=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"horizontal-distribution",ref:t},e),E.createElement("path",{d:n?"M240 360H160C149 360 140 351 140 340V60C140 49 149 40 160 40H240C251 40 260 49 260 60V340C260 351 251 360 240 360zM20 400C9 400 0 391 0 380V20C0 9 9 0 20 0S40 9 40 20V380C40 391 31 400 20 400zM380 400C369 400 360 391 360 380V20C360 9 369 0 380 0S400 9 400 20V380C400 391 391 400 380 400z":"M40 320C29 320 20 311 20 300V20C20 9 29 0 40 0S60 9 60 20V300C60 311 51 320 40 320zM300 320C289 320 280 311 280 300V20C280 9 289 0 300 0S320 9 320 20V300C320 311 311 320 300 320zM200 280H140C129 280 120 271 120 260V80C120 69 129 60 140 60H200C211 60 220 69 220 80V260C220 271 211 280 200 280z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bs.defaultProps={size:g6.IconSize.STANDARD},bs.displayName="Blueprint5.Icon.HorizontalDistribution";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bu=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"layers",ref:t},e),E.createElement("path",{d:n?"M10 262L10 262L190 162L190 162C194 160 196 160 200 160S206 160 210 162L210 162L390 262L390 262C396 266 400 272 400 280C400 288 396 294 390 298L390 298L210 398L210 398C206 400 204 400 200 400S194 400 190 398L190 398L10 298L10 298C4 294 0 288 0 280C0 272 4 266 10 262zM380 220C376 220 374 220 370 218L370 218L200 122L30 218L30 218C26 220 24 220 20 220C8 220 0 212 0 200C0 192 4 186 10 182L10 182L190 82L190 82C194 80 196 80 200 80S206 80 210 82L210 82L390 182L390 182C396 186 400 192 400 200C400 212 392 220 380 220zM380 140C376 140 374 140 370 138L370 138L200 42L30 136L30 136C26 140 24 140 20 140C8 140 0 132 0 120C0 112 4 106 10 102L10 102L190 2L190 2C194 0 196 0 200 0S206 0 210 2L210 2L390 102L390 102C396 106 400 112 400 120.0000000000001C400 132 392 140 380 140z":"M10.99952 222.2L150.9998 162.2C153.7998 160.8 156.7998 160 159.9998 160C163.1998 160 166.1998 160.8 168.9998 162.2L309 222.2C315.4 225.4 320 232.2 320 240C320 248.2 315 255.4 307.8 258.4L167.9998 318.4C165.3998 319.4 162.7998 320 159.9998 320C157.1998 320 154.5998 319.4 152.1998 318.4L12.39952 258.4C4.99952 255.4 -0.000487566 248.2 -0.000487566 240C-0.000487566 232.2 4.59952 225.4 10.99952 222.2zM300 100C296.8 100 293.8 99.2 291 97.8L159.9998 40L28.9998 98C26.1998 99.2 23.1998 100 19.99976 100C8.99976 100 -0.00024438 91 -0.00024438 80C-0.00024438 72.2 4.59976 65.4 10.99976 62.2L150.9998 2.2C153.7998 0.8 156.7998 0 159.9998 0C163.1998 0 166.1998 0.8 168.9998 2.2L309 62.2C315.4 65.4 320 72.2 320 80C320 91 311 100 300 100zM300 180.0002C296.8 180.0002 293.8 179.2002 291 177.8002L159.9998 120L28.9994 177.8C26.1994 179.2 23.1994 180 19.99938 180C8.99938 180 -0.000610352 171 -0.000610352 160C-0.000610352 152.2 4.5994 145.4 10.99938 142.2L150.9998 82.2C153.7998 80.8 156.7998 80 159.9998 80C163.1998 80 166.1998 80.8 168.9998 82.2L309 142.2002C315.4 145.4002 320 152.2002 320 160.0002C320 171.0002 311 180.0002 300 180.0002z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bu.defaultProps={size:g6.IconSize.STANDARD},bu.displayName="Blueprint5.Icon.Layers";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bc=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"vertical-distribution",ref:t},e),E.createElement("path",{d:n?"M20 360H380C391 360 400 369 400 380S391 400 380 400H20C9 400 0 391 0 380S9 360 20 360zM60 260C49 260 40 251 40 240V160C40 149 49 140 60 140H340C351 140 360 149 360 160V240C360 251 351 260 340 260H60zM380 40H20C9 40 0 31 0 20S9 0 20 0H380C391 0 400 9 400 20S391 40 380 40z":"M20 280H300C311 280 320 289 320 300S311 320 300 320H20C9 320 0 311 0 300S9 280 20 280zM300 60H20C9 60 0 51 0 40S9 20 20 20H300C311 20 320 29 320 40S311 60 300 60zM60 220C49 220 40 211 40 200V140C40 129 49 120 60 120H240C251 120 260 129 260 140V200C260 211 251 220 240 220H60z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bc.defaultProps={size:g6.IconSize.STANDARD},bc.displayName="Blueprint5.Icon.VerticalDistribution";let bd=e=>{if("group"!==e.type)return aI(e);let t=1/0,n=1/0,r=-1/0,i=-1/0;return e.children.forEach(e=>{let o=bd(e);t=Math.min(t,o.x),n=Math.min(n,o.y),r=Math.max(r,o.x+o.width),i=Math.max(i,o.y+o.height)}),{x:t,y:n,width:r-t,height:i-n}},bh=(e,t,n)=>{if("group"!==e.type){let r=aI(e),i=t-r.x,o=n-r.y;e.set({x:e.x+i,y:e.y+o})}else{let r=t-bd(e).x,i=n-bd(e).y;e.children.forEach(e=>{let t=bd(e);bh(e,t.x+r,t.y+i)})}},bf=I(({store:e})=>{let t=e.selectedElements.length>0,n=e.selectedElementsIds,r=e.selectedElements.every(e=>e.draggable),i=r&&e.selectedElements.length>1;return(0,C.jsx)(yv,{disabled:!t,content:(0,C.jsxs)(yW,{style:{width:"280px"},children:[(0,C.jsx)(yY,{title:uR("toolbar.layering")}),(0,C.jsxs)("div",{style:{display:"flex"},children:[(0,C.jsxs)("div",{style:{width:"50%"},children:[(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(yk,{}),text:uR("toolbar.up"),disabled:!e.activePage?.canMoveElementsUp(n),onClick:()=>{e.activePage?.moveElementsUp(n)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(bl,{}),text:uR("toolbar.toForward"),disabled:!e.activePage?.canMoveElementsTop(n),onClick:()=>{e.activePage?.moveElementsTop(n)}})]}),(0,C.jsxs)("div",{style:{width:"50%"},children:[(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(y_,{}),text:uR("toolbar.down"),disabled:!e.activePage?.canMoveElementsDown(n),onClick:()=>{e.activePage?.moveElementsDown(n)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(ba,{}),text:uR("toolbar.toBottom"),disabled:!e.activePage?.canMoveElementsBottom(n),onClick:()=>{e.activePage?.moveElementsBottom(n)}})]})]}),r&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(yY,{title:uR("toolbar.position")}),(0,C.jsxs)("div",{style:{display:"flex"},children:[(0,C.jsxs)("div",{style:{width:"50%"},children:[(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(bn,{}),text:uR("toolbar.alignLeft"),onClick:()=>{uC(e)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(bo,{}),text:uR("toolbar.alignCenter"),onClick:()=>{uO(e)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(br,{}),text:uR("toolbar.alignRight"),onClick:()=>{u_(e)}})]}),(0,C.jsxs)("div",{style:{width:"50%"},children:[(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(bi,{}),text:uR("toolbar.alignTop"),onClick:()=>{uS(e)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(bt,{}),text:uR("toolbar.alignMiddle"),onClick:()=>{uE(e)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(be,{}),text:uR("toolbar.alignBottom"),onClick:()=>{uk(e)}})]})]})]}),i&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(yY,{title:uR("toolbar.spaceEvenly")}),(0,C.jsxs)("div",{style:{display:"flex"},children:[(0,C.jsx)("div",{style:{width:"50%"},children:(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(bc,{}),text:uR("toolbar.verticalDistribution"),onClick:()=>{let t=e.activePage?.computedHeight,n=0,r=0;e.selectedElements.forEach(e=>{let i=bd(e);t=Math.min(t,i.y),n=Math.max(n,i.y+i.height),r+=i.height});let i=(n-t-r)/(e.selectedElements.length-1),o=e.selectedElements.slice().sort((e,t)=>{let n=bd(e),r=bd(t);return n.y-r.y}),a=0;o.forEach(e=>{let n=bd(e);bh(e,n.x,t+a),a+=n.height+i})}})}),(0,C.jsx)("div",{style:{width:"50%"},children:(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(bs,{}),text:uR("toolbar.horizontalDistribution"),onClick:()=>{let t=e.activePage?.computedWidth,n=0,r=0;e.selectedElements.forEach(e=>{let i=bd(e);t=Math.min(t,i.x),n=Math.max(n,i.x+i.width),r+=i.width});let i=(n-t-r)/(e.selectedElements.length-1),o=e.selectedElements.slice().sort((e,t)=>{let n=bd(e),r=bd(t);return n.x-r.x}),a=0;o.forEach(e=>{let n=bd(e);bh(e,t+a,n.y),a+=n.width+i})}})})]})]})]}),position:da.BOTTOM,children:(0,C.jsx)(mc,{icon:(0,C.jsx)(bu,{}),className:"polotno-position",minimal:!0,text:uR("toolbar.position"),disabled:!t})})});x("8NFma");let bp=I(({store:e})=>{let t=e.selectedElements.length>1,n=1===e.selectedElements.length&&"group"===e.selectedElements[0].type;return(0,C.jsxs)(C.Fragment,{children:[t&&(0,C.jsx)(mc,{minimal:!0,onClick:()=>{e.groupElements(e.selectedElements.map(e=>e.id))},style:{marginLeft:"auto"},children:uR("toolbar.groupElements")}),n&&(0,C.jsx)(mc,{minimal:!0,onClick:()=>{e.ungroupElements([e.selectedElements[0].id])},style:{marginLeft:"auto"},children:uR("toolbar.ungroupElements")})]})});function bg(e,t){return e.classList.contains(t)?e:e.parentElement?bg(e.parentElement,t):null}let bm=()=>null,bv=I(({store:e,page:t,components:n,stageRef:r})=>{let i=e.selectedShapes.every(e=>e.page===t),o=g(E).useRef(null),[a,l]=g(E).useState(!1),s=e._hasCroppedImages;e.selectedElements.length,g(E).useEffect(()=>{let e=()=>{l(!0)},t=()=>{l(!1)};r?.current?.on("dragstart",e),r?.current?.on("dragend",t);let n=r?.current?.findOne("Transformer");return n?.on("transformstart",e),n?.on("transformend",t),()=>{r?.current?.off("dragstart",e),r?.current?.off("dragend",t),n?.off("transformstart",e),n?.off("transformend",t)}},[]);let[u,c]=g(E).useState({fit:!0,needCalculate:!1,token:Math.random()});function d(){if(!o.current||!u.needCalculate)return;let e=bg(o.current,"polotno-workspace-container");if(!e)return;let t=e.getBoundingClientRect(),n=o.current.getBoundingClientRect();n.right,t.left;let r=n.top-t.top;n.left,t.left;let i=n.bottom-t.top;r<20&&u.fit?c({fit:!1,needCalculate:!1,token:u.token}):i-t.height>-20&&!u.fit?c({fit:!0,needCalculate:!1,token:u.token}):c({fit:u.fit,needCalculate:!1,token:u.token})}if(g(E).useEffect(()=>{0!==e.selectedElements.length&&c({fit:!0,needCalculate:!0,token:Math.random()})},[e.selectedElements,a]),g(E).useLayoutEffect(()=>{let e=setTimeout(()=>{d()},100);return()=>{clearTimeout(e)}},[u.needCalculate,o.current,u.token]),g(E).useEffect(()=>{if(!r.current)return;let t=bg(r.current.content,"polotno-workspace-inner");if(!t)return;let n=()=>{e.selectedElements.length&&c({fit:!0,needCalculate:!0,token:Math.random()})};return t?.addEventListener("scroll",n),()=>{t?.removeEventListener("scroll",n)}},[]),0===e.selectedShapes.length||a||!i||e.activePage!==t||s)return null;let h=aD(e.selectedShapes),f=n?.Position||bf,p=n?.Duplicate||y5,m=n?.Remove||y7,v=n?.Group||bp,y=n?.Lock||bm,b=e.selectedElements[0]?.type,x={TextAiWrite:y8,...n},w=yH({components:x,type:b,usedItems:[]}),_=r?.current?.findOne("Transformer")?.rotation()||0,S=30;return 30>Math.abs(_)&&u.fit&&(S=80),Math.abs(_)>140&&!u.fit&&(S=80),(0,C.jsx)(rB,{parentNodeFunc:({stage:e})=>{let t=e?.container()?.closest(".polotno-workspace-container");return t||e?.container()?.parentNode},transformFunc:e=>{let t=h.x+h.width/2,n=u.fit?h.y*e.scaleY-S:h.y*e.scaleY+h.height*e.scaleY+S,i=r?.current?.container(),a=i?.getBoundingClientRect()||{left:0,top:0,width:0,height:0,right:0,bottom:0,x:0,y:0,toJSON:()=>({})},l=i?.closest(".polotno-workspace-container"),s=l?.getBoundingClientRect()||{left:0,top:0,width:1/0,height:1/0,right:0,bottom:0,x:0,y:0,toJSON:()=>({})},c=a.left-s.left,d=a.top-s.top,f=c+e.x+t*e.scaleX,p=f-h.width*e.scaleX/2,g=f+h.width*e.scaleX/2,m=Math.min(50,h.width/2*e.scaleX),v=g>=m&&p<=s.width-m,y=o.current?o.current.getBoundingClientRect().width:0;if(Number.isFinite(s.width)&&y>0&&v){let e=8+y/2,t=s.width-8-y/2;t>=e&&(f=Math.max(e,Math.min(f,t)))}return g<m&&(f-=y+8),p>s.width-m&&(f+=y+8),{...e,x:f,y:d+e.y+n,scaleX:1,scaleY:1}},divProps:{style:{pointerEvents:"none",position:"absolute",visibility:u.needCalculate?"hidden":"visible",zIndex:9}},children:(0,C.jsx)("div",{ref:e=>{o.current=e,!o.current&&e&&d()},style:{pointerEvents:"none"},children:(0,C.jsx)(yN,{style:{padding:"2px",borderRadius:"5px",height:"34px",transform:"translate(-50%, -50%)",pointerEvents:"auto"},children:(0,C.jsxs)(yL,{style:{height:"30px"},children:[w.map(t=>{let n=x[t];return(0,C.jsx)(n,{elements:e.selectedElements,element:e.selectedElements[0],store:e},t)}),(0,C.jsx)(v,{store:e}),(0,C.jsx)(y,{store:e}),(0,C.jsx)(p,{store:e}),(0,C.jsx)(m,{store:e}),(0,C.jsx)(f,{store:e})]})})})})});var uF=x("gztBd"),E=x("8NFma"),by=E.memo(function(e){var t,n,r=e.content,i=e.popoverClassName,o=e.onClose,a=e.isDarkTheme,l=e.rootBoundary,s=e.targetOffset,u=e.transitionDuration,c=(0,uF.__rest)(e,["content","popoverClassName","onClose","isDarkTheme","rootBoundary","targetOffset","transitionDuration"]),d=E.useCallback(function(e){return e.preventDefault()},[]),h=E.useCallback(function(e){var t=e.ref;return E.createElement(v9,null,E.createElement("div",{className:c9.CONTEXT_MENU_VIRTUAL_TARGET,style:s,ref:t}))},[s]),f=E.useCallback(function(e){e||null==o||o()},[o]);return E.createElement(yv,(0,uF.__assign)({placement:"right-start",rootBoundary:void 0===l?"viewport":l,transitionDuration:void 0===u?100:u},c,{content:E.createElement("div",{onContextMenu:d},r),enforceFocus:!1,key:void 0===(t=s)?"default":"".concat(t.left,"x").concat(t.top),hasBackdrop:!0,backdropProps:{className:c9.CONTEXT_MENU_BACKDROP},minimal:!0,onInteraction:f,popoverClassName:g(uB)(c9.CONTEXT_MENU_POPOVER,i,((n={})[c9.DARK]=void 0!==a&&a,n)),positioningStrategy:"fixed",renderTarget:h}))});by.displayName="".concat(gY,".ContextMenuPopover"),x("8NFma");var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bb=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"lock",ref:t},e),E.createElement("path",{d:n?"M318.6 220H280V300.2C280 344.4 244.2 380.2 200 380.2S120 344.4 120 300.2V220H78.6C67.6 220 60 211.2 60 200.2V40.1999999999999C60 29.2 67.6 20 78.6 20H318.6C329.6 20 340 29.2 340 40.2V200.2000000000001C340 211.2 329.6 220 318.6 220zM160 220V300.2C160 322.2 178 340.2 200 340.2S240 322.2 240 300.2V220H160z":"M279.2000000000001 180H240V241C240 284.6 204.2 320 160 320S80 284.6 80 241V180H39.2C28.2 180 20 173 20 162V23.8C20 13 28.2 0 39.2 0H279.2000000000001C290.2000000000001 0 300 13 300 23.8V162C300 173 290.2 180 279.2000000000001 180zM120 180V241C120 262.8 138 280.4 160 280.4S200 262.8 200 241V180H120z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bb.defaultProps={size:g6.IconSize.STANDARD},bb.displayName="Blueprint5.Icon.Lock";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bx=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"unlock",ref:t},e),E.createElement("path",{d:n?"M280 380C235.8 380 200 344.2 200 300V220H40C29 220 20 211 20 200V40C20 29 29 20 40 20H280C291 20 300 29 300 40V200C300 211 291 220 280 220H240V300C240 322 258 340 280 340S320 322 320 300V260C320 249 329 240 340 240S360 249 360 260V300C360 344.2 324.2000000000001 380 280 380z":"M239.8 320.2C195.6 320.2 159.8 284.4 159.8 240.2V180.2H19.8C8.8 180.2 -0.2 171.2 -0.2 160.2V20.2C-0.2 9.2 8.8 0.2 19.8 0.2H259.8C270.8 0.2 279.8 9.2 279.8 20.2V160.2C279.8 171.2 270.8 180.2 259.8 180.2H199.8V240.2C199.8 262.2 217.8 280.2 239.8 280.2S279.8 262.2 279.8 240.2V220.2C279.8 209.2 288.8 200.2 299.8 200.2S319.8 209.2 319.8 220.2V240.2C319.8 284.4 284 320.2 239.8 320.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bx.defaultProps={size:g6.IconSize.STANDARD},bx.displayName="Blueprint5.Icon.Unlock";var E=x("8NFma");let bw=e=>{let[t,n]=(0,E.useState)(null);return(0,E.useEffect)(()=>{let r=e.selectedElements;t&&(r.forEach(e=>{var n;let r,i=(n=bO[e.type],r=new Set(bO[t.type]),[...new Set(n)].filter(e=>r.has(e))).reduce((e,n)=>{let r=t[n];return Array.isArray(r)?r=[...r]:"object"==typeof r&&null!==r&&(r={...r}),{...e,[n]:r}},{});e.type!==t.type&&bP.forEach(e=>{delete i[e]}),e.set({...i})}),n(null))},[e.selectedElements[0]]),{elementToCopy:t,disabled:1!==e.selectedElements.length,setElementToCopy:n}},bC=["opacity","visible","height","width","shadowEnabled","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","blurEnabled","blurRadius","brightnessEnabled","brightness","sepiaEnabled","grayscaleEnabled"],b_=[...bC,"fontSize","fontWeight","fontFamily","lineHeight","stroke","strokeWidth","textDecoration","fill","align","verticalAlign","letterSpacing","backgroundEnabled","backgroundColor","backgroundOpacity","backgroundCornerRadius","backgroundPadding"],bS=[...bC,"flipX","flipY","keepRatio","borderColor","borderSize","cornerRadius","cropX","cropY","cropWidth","cropHeight"],bE=[...bC,"flipX","flipY","keepRatio","borderColor","borderSize","cornerRadius","cropX","cropY","cropWidth","cropHeight"],bk=[...bC,"color","dash","endHead","startHead"],bO={figure:[...bC,"dash","cornerRadius","fill","stroke","strokeWidth"],image:bS,line:bk,svg:[...bC,"cornerRadius","borderColor","borderSize","colorsReplace","cropHeight","cropWidth","cropX","cropY","flipX","flipY","keepRatio"],text:b_,video:bE},bP=["width","height"];var E=x("8NFma");let bT=({store:e})=>{let t=e.selectedShapes.length>0,n=e.selectedShapes[0],r=n?.locked;return{disabled:!t,lock:(0,E.useCallback)(()=>{e.selectedShapes.forEach(e=>e.set({draggable:r,contentEditable:r,styleEditable:r,resizable:r,removable:r}))},[r,e]),locked:r}},bA=I(({store:e,isOpen:t,offset:n,setIsOpen:r})=>{let{disabled:i,duplicate:o}=y6({store:e}),{disabled:a,remove:l}=y9({store:e}),{setElementToCopy:s}=bw(e),{disabled:u,lock:c,locked:d}=bT({store:e}),h=d?(0,C.jsx)(bb,{}):(0,C.jsx)(bx,{}),f=e.selectedElementsIds;return 0===e.selectedElements.length?null:(0,C.jsx)(by,{isOpen:t,onClose:()=>{r(!1)},content:(0,C.jsxs)(yW,{children:[(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:h,text:d?uR("contextMenu.unlock"):uR("contextMenu.lock"),onClick:c,disabled:u}),(0,C.jsx)(yZ,{icon:(0,C.jsx)(yO,{}),text:uR("contextMenu.duplicate"),onClick:o,disabled:i}),(0,C.jsx)(yZ,{icon:(0,C.jsx)(yT,{}),text:uR("contextMenu.remove"),onClick:l,disabled:a}),(0,C.jsx)(yY,{}),(0,C.jsxs)(yZ,{icon:(0,C.jsx)(bu,{}),text:uR("toolbar.layering"),children:[(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(bl,{}),text:uR("toolbar.toForward"),disabled:!e.activePage?.canMoveElementsTop(f),onClick:()=>{e.activePage?.moveElementsTop(f)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(yk,{}),text:uR("toolbar.up"),disabled:!e.activePage?.canMoveElementsUp(f),onClick:()=>{e.activePage?.moveElementsUp(f)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(y_,{}),text:uR("toolbar.down"),disabled:!e.activePage?.canMoveElementsDown(f),onClick:()=>{e.activePage?.moveElementsDown(f)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(ba,{}),text:uR("toolbar.toBottom"),disabled:!e.activePage?.canMoveElementsBottom(f),onClick:()=>{e.activePage?.moveElementsBottom(f)}})]})]}),targetOffset:{top:n.y,left:n.x}})});var bj=({components:e,...t})=>((e=e||{}).PageControls=e.PageControls??yA,e.Tooltip=e.Tooltip??bv,e.ContextMenu=e.ContextMenu??bA,(0,C.jsx)(uz,{...t,components:e})),E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),bL=function(e){var t=e.className,n=e.tagName,r=(0,uF.__rest)(e,["className","tagName"]),i=g(uB)(hH,t);return E.createElement(void 0===n?"div":n,(0,uF.__assign)((0,uF.__assign)({},r),{className:i}))};bL.displayName="".concat(gY,".Divider"),x("8NFma");var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bR=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"redo",ref:t},e),E.createElement("path",{d:n?"M394.2000000000001 294.2L314.2000000000001 374.2C310.6 377.8 305.6 380 300 380C289 380 280 371 280 360C280 354.4 282.2 349.4 285.8 345.8L331.8 300H120C53.8 300 0 246.2 0 180C0 113.8 53.8 60 120 60H220V100H120C75.8 100 40 135.8 40 180C40 224.2 75.8 260 120 260H331.8L286 214.2C282.2 210.6 280 205.6 280 200C280 189 289 180 300 180C305.6 180 310.6 182.2 314.2000000000001 185.8L394.2000000000001 265.8C397.8 269.4 400 274.4 400 280C400 285.6 397.8 290.6 394.2000000000001 294.2zM300 120C278 120 260 102 260 80S278 40 300 40S340 58 340 80S322 120 300 120z":"M240 100C218 100 200 82 200 60S218 20 240 20S280 38 280 60S262 100 240 100zM314.2000000000001 234.2L254.2 294.2C250.6 297.8 245.6 300 240 300C229 300 220 291 220 280C220 274.4 222.2 269.4 225.8 265.8L251.8 240H100C44.8 240 0 195.2 0 140S44.8 40 100 40H180V80H100C66.8 80 40 106.8 40 140S66.8 200 100 200H251.8L226 174.2C222.2 170.6 220 165.6 220 160C220 149 229 140 240 140C245.6 140 250.6 142.2 254.2 145.8L314.2000000000001 205.8C317.8 209.4 320 214.4 320 220C320 225.6 317.8 230.6 314.2000000000001 234.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bR.defaultProps={size:g6.IconSize.STANDARD},bR.displayName="Blueprint5.Icon.Redo";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bN=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"undo",ref:t},e),E.createElement("path",{d:n?"M100 120C78 120 60 102 60 80C60 58 78 40 100 40S140 58 140 80C140 102 122 120 100 120zM280 300H68.2L114 345.8C117.8 349.4 120 354.4 120 360C120 371 111 380 100 380C94.4 380 89.4 377.8 85.8 374.2L5.8 294.2C2.2 290.6 0 285.6 0 280C0 274.4 2.2 269.4 5.8 265.8L85.8 185.8C89.4 182.2 94.4 180 100 180C111 180 120 189 120 200C120 205.6 117.8 210.6 114.2 214.2L68.2 260H280C324.2000000000001 260 360 224.2 360 180C360 135.8 324.2000000000001 100 280 100H180V60H280C346.2 60 400 113.8 400 180S346.2 300 280 300z":"M80 100C58 100 40 82 40 60S58 20 80 20S120 38 120 60S102 100 80 100zM220 240H68.2L94 265.8C97.8 269.4 100 274.4 100 280C100 291 91 300 80 300C74.4 300 69.4 297.8 65.8 294.2L5.8 234.2C2.2 230.6 0 225.6 0 220C0 214.4 2.2 209.4 5.8 205.8L65.8 145.8C69.4 142.2 74.4 140 80 140C91 140 100 149 100 160C100 165.6 97.8 170.6 94.2 174.2L68.2 200H220C253.2 200 280 173.2 280 140S253.2 80 220 80H140V40H220C275.2 40 320 84.8 320 140S275.2 240 220 240z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bN.defaultProps={size:g6.IconSize.STANDARD},bN.displayName="Blueprint5.Icon.Undo";let bM=I(({store:e})=>(0,C.jsxs)(yN.Group,{align:c7,style:{paddingRight:"10px"},children:[(0,C.jsx)(mc,{icon:(0,C.jsx)(bN,{}),minimal:!0,onClick:()=>{e.history.undo()},disabled:!e.history.canUndo,"aria-label":"Undo"}),(0,C.jsx)(mc,{icon:(0,C.jsx)(bR,{}),minimal:!0,onClick:()=>{e.history.redo()},disabled:!e.history.canRedo,"aria-label":"Redo"})]}));var E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),bI=E.forwardRef(function(e,t){var n,r=e.alignText,i=e.className,o=e.fill,a=e.minimal,l=e.outlined,s=e.large,u=e.size,c=e.variant,d=e.vertical,h=(0,uF.__rest)(e,["alignText","className","fill","minimal","outlined","large","size","variant","vertical"]),f=g(uB)(c9.BUTTON_GROUP,((n={})[c9.FILL]=o,n[c9.VERTICAL]=d,n),c9.alignmentClass(r),c9.sizeClass(void 0===u?"medium":u,{large:s}),c9.variantClass(void 0===c?"solid":c,{minimal:a,outlined:l}),i);return E.createElement("div",(0,uF.__assign)({},h,{ref:t,className:f}),e.children)});bI.displayName="".concat(gY,".ButtonGroup");var uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),bD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={hasPendingUpdate:!1,isComposing:!1,nextValue:n.props.value,value:n.props.value},n.cancelPendingCompositionEnd=null,n.handleCompositionStart=function(e){var t,r,i;null==(t=n.cancelPendingCompositionEnd)||t.call(n),n.setState({isComposing:!0}),null==(i=(r=n.props).onCompositionStart)||i.call(r,e)},n.handleCompositionEnd=function(e){var r,i;n.cancelPendingCompositionEnd=n.setTimeout(function(){return n.setState({isComposing:!1})},t.COMPOSITION_END_DELAY),null==(i=(r=n.props).onCompositionEnd)||i.call(r,e)},n.handleChange=function(e){var t,r,i=e.target.value;n.setState({nextValue:i}),null==(r=(t=n.props).onChange)||r.call(t,e)},n}return(0,uF.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){if(t.isComposing||void 0===e.value)return null;if(t.nextValue===t.value)return{hasPendingUpdate:!1,nextValue:e.value,value:e.value};if(e.value===t.nextValue)if(t.hasPendingUpdate)return{hasPendingUpdate:!1,value:e.value};else return{value:t.nextValue};return e.value===t.value?{hasPendingUpdate:!0}:{hasPendingUpdate:!1,nextValue:e.value,value:e.value}},t.prototype.render=function(){var e=this.state,t=e.isComposing,n=e.hasPendingUpdate,r=e.value,i=e.nextValue,o=this.props,a=o.inputRef,l=(0,uF.__rest)(o,["inputRef"]);return E.createElement("input",(0,uF.__assign)({},l,{ref:a,value:t||n?i:r,onCompositionStart:this.handleCompositionStart,onCompositionEnd:this.handleCompositionEnd,onChange:this.handleChange}))},t.displayName="".concat(gY,".AsyncControllableInput"),t.COMPOSITION_END_DELAY=10,t}(mf),bz=["inputSize","onValueChange"],bF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.leftElement=null,t.rightElement=null,t.refHandlers={leftElement:function(e){return t.leftElement=e},rightElement:function(e){return t.rightElement=e}},t.handleInputChange=function(e){var n,r,i,o,a=e.target.value;null==(r=(n=t.props).onChange)||r.call(n,e),null==(o=(i=t.props).onValueChange)||o.call(i,a,e.target)},t}return(0,uF.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.asyncControl,r=t.className,i=t.disabled,o=t.fill,a=t.inputClassName,l=t.inputRef,s=t.inputSize,u=t.intent,c=t.large,d=t.readOnly,h=t.round,f=t.size,p=void 0===f?"medium":f,m=t.small,v=t.tagName,y=g(uB)(c9.INPUT_GROUP,c9.intentClass(u),((e={})[c9.DISABLED]=i,e[c9.READ_ONLY]=d,e[c9.FILL]=o,e[c9.ROUND]=h,e),c9.sizeClass(p,{large:c,small:m}),r),b=(0,uF.__assign)((0,uF.__assign)({},this.props.style),{paddingLeft:this.state.leftElementWidth,paddingRight:this.state.rightElementWidth}),x=(0,uF.__assign)((0,uF.__assign)({type:"text"},gK(this.props,bz,!0)),{"aria-disabled":i,className:g(uB)(c9.INPUT,a),onChange:this.handleInputChange,size:null!=s?s:"number"==typeof p?p:void 0,style:b}),w=void 0!==n&&n?E.createElement(bD,(0,uF.__assign)({},x,{inputRef:l})):E.createElement("input",(0,uF.__assign)({},x,{ref:l}));return E.createElement(void 0===v?"div":v,{className:y},this.maybeRenderLeftElement(),w,this.maybeRenderRightElement())},t.prototype.componentDidMount=function(){this.updateInputWidth()},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.leftElement,r=t.rightElement;(e.leftElement!==n||e.rightElement!==r)&&this.updateInputWidth()},t.prototype.validateProps=function(e){null!=e.leftElement&&null!=e.leftIcon&&console.warn(cs)},t.prototype.maybeRenderLeftElement=function(){var e=this.props,t=e.leftElement,n=e.leftIcon;return null!=t?E.createElement("span",{className:c9.INPUT_LEFT_CONTAINER,ref:this.refHandlers.leftElement},t):null!=n?E.createElement(mn,{icon:n,"aria-hidden":!0,tabIndex:-1}):void 0},t.prototype.maybeRenderRightElement=function(){var e=this.props.rightElement;if(null!=e)return E.createElement("span",{className:c9.INPUT_ACTION,ref:this.refHandlers.rightElement},e)},t.prototype.updateInputWidth=function(){var e=this.state,t=e.leftElementWidth,n=e.rightElementWidth;if(null!=this.leftElement){var r=this.leftElement.clientWidth;(void 0===t||Math.abs(r-t)>2)&&this.setState({leftElementWidth:r})}else this.setState({leftElementWidth:void 0});if(null!=this.rightElement){var r=this.rightElement.clientWidth;(void 0===n||Math.abs(r-n)>2)&&this.setState({rightElementWidth:r})}else this.setState({rightElementWidth:void 0})},t.displayName="".concat(gY,".InputGroup"),t}(mf),uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),bB=E.forwardRef(function(e,t){var n,r=e.children,i=e.className,o=e.fill,a=e.vertical,l=(0,uF.__rest)(e,["children","className","fill","vertical"]),s=g(uB)(c9.CONTROL_GROUP,((n={})[c9.FILL]=o,n[c9.VERTICAL]=a,n),i);return E.createElement("div",(0,uF.__assign)({role:"group"},l,{ref:t,className:s}),r)});function bH(e){var t=1.9.toLocaleString(e),n=1..toLocaleString(e),r=9..toLocaleString(e),i=new RegExp("".concat(n,"(.+)").concat(r)).exec(t);return i&&i[1]||"."}function bV(e,t){return void 0===t&&(t="en-US"),bq(e.toLocaleString(t,{roundingPriority:"morePrecision"}),t)}function bU(e,t){var n=""+e;if(parseFloat(n).toString()===e.toString())return e.toString();if(void 0!==t){var r=bH(t);return bq(n,t).split("").map(function(e){var n;return -1!==(n=[0,1,2,3,4,5,6,7,8,9].map(function(e){return e.toLocaleString(t)}).indexOf(e))?n:e}).join("").replace(r,".")}return e.toString()}function bG(e,t){if(void 0===t)return/^[Ee0-9\+\-\.]$/.test(e);var n=bH(t).replace(".","\\.");return RegExp("^[Ee"+[0,1,2,3,4,5,6,7,8,9].map(function(e){return e.toLocaleString(t)}).join("")+"\\+\\-"+n+"]$").test(e)}function bq(e,t){return e.replace(/[\uFF10-\uFF19]/g,function(e){return String.fromCharCode(e.charCodeAt(0)-65248)}).split("").filter(function(e){return bG(e,t)}).join("")}bB.displayName="".concat(gY,".ControlGroup"),(jU=Ll||(Ll={}))[jU.DOWN=-1]="DOWN",jU[jU.UP=1]="UP";var b$=["allowNumericCharactersOnly","buttonPosition","clampValueOnBlur","className","defaultValue","majorStepSize","minorStepSize","onButtonClick","onValueChange","selectAllOnFocus","selectAllOnIncrement","stepSize"],bW=function(e){function t(){var n,r,i=e.apply(this,arguments)||this;return i.numericInputId=uY.uniqueId("numericInput"),i.state={currentImeInputInvalid:!1,shouldSelectAfterUpdate:!1,stepMaxPrecision:t.getStepMaxPrecision(i.props),value:(void 0===(n=null!=(r=i.props.value)?r:i.props.defaultValue)&&(n=""),n.toString())},i.didPasteEventJustOccur=!1,i.delta=0,i.inputElement=null,i.inputRef=uW(i,"inputElement",i.props.inputRef),i.incrementButtonHandlers=i.getButtonEventHandlers(Ll.UP),i.decrementButtonHandlers=i.getButtonEventHandlers(Ll.DOWN),i.getCurrentValueAsNumber=function(){return Number(bU(i.state.value,i.props.locale))},i.handleButtonClick=function(e,t){var n,r,o=i.updateDelta(t,e),a=i.incrementValue(o);null==(r=(n=i.props).onButtonClick)||r.call(n,Number(bU(a,i.props.locale)),a)},i.stopContinuousChange=function(){i.delta=0,i.clearTimeouts(),clearInterval(i.intervalId),document.removeEventListener("mouseup",i.stopContinuousChange)},i.handleContinuousChange=function(){if(void 0!==i.props.min||void 0!==i.props.max){var e,t,n,r,o=null!=(e=i.props.min)?e:-1/0,a=null!=(t=i.props.max)?t:1/0,l=i.getCurrentValueAsNumber();if(l<=o||l>=a)return void i.stopContinuousChange()}var s=i.incrementValue(i.delta);null==(r=(n=i.props).onButtonClick)||r.call(n,Number(bU(s,i.props.locale)),s)},i.handleInputFocus=function(e){var t,n;i.setState({shouldSelectAfterUpdate:i.props.selectAllOnFocus}),null==(n=(t=i.props).onFocus)||n.call(t,e)},i.handleInputBlur=function(e){var t,n;if(i.setState({shouldSelectAfterUpdate:!1}),i.props.clampValueOnBlur){var r=e.target.value;i.handleNextValue(i.roundAndClampValue(r))}null==(n=(t=i.props).onBlur)||n.call(t,e)},i.handleInputKeyDown=function(e){if(!i.props.disabled&&!i.props.readOnly){var t,n,r=uY.getArrowKeyDirection(e,["ArrowDown"],["ArrowUp"]);if(void 0!==r){e.preventDefault();var o=i.updateDelta(r,e);i.incrementValue(o)}null==(n=(t=i.props).onKeyDown)||n.call(t,e)}},i.handleCompositionEnd=function(e){i.props.allowNumericCharactersOnly&&(i.handleNextValue(bq(e.data,i.props.locale)),i.setState({currentImeInputInvalid:!1}))},i.handleCompositionUpdate=function(e){if(i.props.allowNumericCharactersOnly){var t=e.data;0===bq(t,i.props.locale).length&&t.length>0?i.setState({currentImeInputInvalid:!0}):i.setState({currentImeInputInvalid:!1})}},i.handleInputKeyPress=function(e){var t,n,r;i.props.allowNumericCharactersOnly&&(r=i.props.locale,!(null==e.key||e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||bG(e.key,r)))&&e.preventDefault(),null==(n=(t=i.props).onKeyPress)||n.call(t,e)},i.handleInputPaste=function(e){var t,n;i.didPasteEventJustOccur=!0,null==(n=(t=i.props).onPaste)||n.call(t,e)},i.handleInputChange=function(e){var t=e;i.props.allowNumericCharactersOnly&&i.didPasteEventJustOccur&&(i.didPasteEventJustOccur=!1,t=bq(e,i.props.locale)),i.handleNextValue(t),i.setState({shouldSelectAfterUpdate:!1})},i}return(0,uF.__extends)(t,e),t.getDerivedStateFromProps=function(e,n){var r,i,o={prevMaxProp:e.max,prevMinProp:e.min},a=e.min!==n.prevMinProp,l=e.max!==n.prevMaxProp,s=null!=(i=null==(r=e.value)?void 0:r.toString())?i:n.value,u=t.getStepMaxPrecision(e),c=s!==t.VALUE_EMPTY?t.roundAndClampValue(s,u,e.min,e.max,0,e.locale):t.VALUE_EMPTY;return(a||l)&&c!==n.value?(0,uF.__assign)((0,uF.__assign)({},o),{stepMaxPrecision:u,value:c}):(0,uF.__assign)((0,uF.__assign)({},o),{stepMaxPrecision:u,value:s})},t.getStepMaxPrecision=function(e){return null!=e.minorStepSize?uY.countDecimalPlaces(e.minorStepSize):uY.countDecimalPlaces(e.stepSize)},t.roundAndClampValue=function(e,n,r,i,o,a){var l,s;return(void 0===o&&(o=0),l=bU(e,a),null!=e&&l-parseFloat(l)+1>=0)?bV(cq(Math.round((Number(bU(e,a))+o)*(s=Math.pow(10,n)))/s,null!=r?r:-1/0,null!=i?i:1/0),a):t.VALUE_EMPTY},t.prototype.render=function(){var e=this.props,t=e.buttonPosition,n=e.className,r=e.fill,i=e.large,o=e.size,a=e.small,l=g(uB)(c9.NUMERIC_INPUT,c9.sizeClass(void 0===o?"medium":o,{large:i,small:a}),n),s=this.renderButtons();return E.createElement(bB,{className:l,fill:r},t===da.LEFT&&s,this.renderInput(),t===da.RIGHT&&s)},t.prototype.componentDidUpdate=function(n,r){e.prototype.componentDidUpdate.call(this,n,r),n.inputRef!==this.props.inputRef&&(uG(n.inputRef,null),this.inputRef=uW(this,"inputElement",this.props.inputRef),uG(this.props.inputRef,this.inputElement)),this.state.shouldSelectAfterUpdate&&(null==(i=this.inputElement)||i.setSelectionRange(0,this.state.value.length));var i,o,a,l=this.props.min!==n.min,s=this.props.max!==n.max,u=this.props.locale!==n.locale,c=this.state.value!==r.value;if((l||s)&&c||u&&r.value!==t.VALUE_EMPTY){var d=bU(u?r.value:this.state.value,n.locale),h=bV(+d,this.props.locale);null==(a=(o=this.props).onValueChange)||a.call(o,+d,h,this.inputElement)}},t.prototype.validateProps=function(e){var n=e.majorStepSize,r=e.max,i=e.min,o=e.minorStepSize,a=e.stepSize,l=e.value;if(null!=i&&null!=r&&i>r&&console.error(cc),a<=0&&console.error(cg),o&&o<=0&&console.error(cf),n&&n<=0&&console.error(cp),o&&o>a&&console.error(cd),n&&n<a&&console.error(ch),null!=l){var s=t.getStepMaxPrecision(e),u=t.roundAndClampValue(l.toString(),s,i,r,0,this.props.locale),c=u!==l.toString(),d=bV(Number(bU(l,this.props.locale)),this.props.locale);c&&u!==d&&console.warn(cm)}},t.prototype.renderButtons=function(){var e=this.props,t=e.intent,n=e.max,r=e.min,i=e.locale,o=bU(this.state.value,i),a=this.props.disabled||this.props.readOnly;return E.createElement(bI,{className:c9.FIXED,key:"button-group",vertical:!0},E.createElement(mc,(0,uF.__assign)({"aria-label":"increment","aria-controls":this.numericInputId,disabled:a||void 0!==n&&""!==o&&+o>=n,icon:E.createElement(yk,null),intent:t},this.incrementButtonHandlers)),E.createElement(mc,(0,uF.__assign)({"aria-label":"decrement","aria-controls":this.numericInputId,disabled:a||void 0!==r&&""!==o&&+o<=r,icon:E.createElement(y_,null),intent:t},this.decrementButtonHandlers)))},t.prototype.renderInput=function(){var e=gK(this.props,b$,!0),t=this.getCurrentValueAsNumber();return E.createElement(bF,(0,uF.__assign)({asyncControl:this.props.asyncControl,autoComplete:"off",id:this.numericInputId,role:this.props.allowNumericCharactersOnly?"spinbutton":void 0},e,{"aria-valuemax":this.props.max,"aria-valuemin":this.props.min,"aria-valuenow":t,intent:this.state.currentImeInputInvalid?di:this.props.intent,inputClassName:this.props.inputClassName,inputRef:this.inputRef,inputSize:this.props.inputSize,large:this.props.large,leftElement:this.props.leftElement,leftIcon:this.props.leftIcon,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCompositionEnd:this.handleCompositionEnd,onCompositionUpdate:this.handleCompositionUpdate,onKeyDown:this.handleInputKeyDown,onKeyPress:this.handleInputKeyPress,onPaste:this.handleInputPaste,onValueChange:this.handleInputChange,rightElement:this.props.rightElement,size:this.props.size,small:this.props.small,value:this.state.value}))},t.prototype.getButtonEventHandlers=function(e){var t=this;return{onKeyDown:function(n){!t.props.disabled&&uY.isKeyboardClick(n)&&t.handleButtonClick(n,e)},onMouseDown:function(n){t.props.disabled||(t.handleButtonClick(n,e),t.startContinuousChange())}}},t.prototype.startContinuousChange=function(){var e=this;document.addEventListener("mouseup",this.stopContinuousChange),this.setTimeout(function(){e.intervalId=window.setInterval(e.handleContinuousChange,t.CONTINUOUS_CHANGE_INTERVAL)},t.CONTINUOUS_CHANGE_DELAY)},t.prototype.handleNextValue=function(e){var t,n;null==this.props.value&&this.setState({value:e}),null==(n=(t=this.props).onValueChange)||n.call(t,Number(bU(e,this.props.locale)),e,this.inputElement)},t.prototype.incrementValue=function(e){var n=this.state.value===t.VALUE_EMPTY?t.VALUE_ZERO:this.state.value,r=this.roundAndClampValue(n,e);return r!==this.state.value&&(this.handleNextValue(r),this.setState({shouldSelectAfterUpdate:this.props.selectAllOnIncrement})),r},t.prototype.getIncrementDelta=function(e,t,n){var r=this.props,i=r.majorStepSize,o=r.minorStepSize,a=r.stepSize;return t&&null!=i?e*i:n&&null!=o?e*o:e*a},t.prototype.roundAndClampValue=function(e,n){return void 0===n&&(n=0),t.roundAndClampValue(e,this.state.stepMaxPrecision,this.props.min,this.props.max,n,this.props.locale)},t.prototype.updateDelta=function(e,t){return this.delta=this.getIncrementDelta(e,t.shiftKey,t.altKey),this.delta},t.displayName="".concat(gY,".NumericInput"),t.VALUE_EMPTY="",t.VALUE_ZERO="0",t.defaultProps={allowNumericCharactersOnly:!0,buttonPosition:da.RIGHT,clampValueOnBlur:!1,defaultValue:t.VALUE_EMPTY,large:!1,majorStepSize:10,minorStepSize:.1,selectAllOnFocus:!1,selectAllOnIncrement:!1,size:"medium",small:!1,stepSize:1},t.CONTINUOUS_CHANGE_DELAY=300,t.CONTINUOUS_CHANGE_INTERVAL=100,t}(mf),uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=x("8NFma");function bY(e){return"".concat((100*e).toFixed(2),"%")}function bX(e,t,n,r){for(var i=t<n?1:-1,o=t;o!==n+i;o+=i)e[o]=r}var bK=["max","min","stepSize","tickSize","value"],bZ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isMoving:!1},t.handleElement=null,t.refHandlers={handle:function(e){return t.handleElement=e}},t.beginHandleMovement=function(e){document.addEventListener("mousemove",t.handleHandleMovement),document.addEventListener("mouseup",t.endHandleMovement),t.setState({isMoving:!0}),t.changeValue(t.clientToValue(t.mouseEventClientOffset(e)))},t.beginHandleTouchMovement=function(e){document.addEventListener("touchmove",t.handleHandleTouchMovement),document.addEventListener("touchend",t.endHandleTouchMovement),document.addEventListener("touchcancel",t.endHandleTouchMovement),t.setState({isMoving:!0}),t.changeValue(t.clientToValue(t.touchEventClientOffset(e)))},t.getStyleProperties=function(){if(null==t.handleElement)return{};var e=t.props,n=e.min,r=e.tickSizeRatio,i=e.value,o=e.vertical,a=t.getHandleMidpointAndOffset(t.handleElement,!0).handleMidpoint,l="calc(".concat(bY((i-(void 0===n?0:n))*r)," - ").concat(a,"px)");return o?{bottom:l}:{left:l}},t.endHandleMovement=function(e){t.handleMoveEndedAt(t.mouseEventClientOffset(e))},t.endHandleTouchMovement=function(e){t.handleMoveEndedAt(t.touchEventClientOffset(e))},t.handleMoveEndedAt=function(e){t.removeDocumentEventListeners(),t.setState({isMoving:!1});var n,r,i=t.changeValue(t.clientToValue(e));null==(r=(n=t.props).onRelease)||r.call(n,i)},t.handleHandleMovement=function(e){t.handleMovedTo(t.mouseEventClientOffset(e))},t.handleHandleTouchMovement=function(e){t.handleMovedTo(t.touchEventClientOffset(e))},t.handleMovedTo=function(e){t.state.isMoving&&!t.props.disabled&&t.changeValue(t.clientToValue(e))},t.handleKeyDown=function(e){var n=t.props,r=n.stepSize,i=n.value,o=uY.getArrowKeyDirection(e,["ArrowLeft","ArrowDown"],["ArrowRight","ArrowUp"]);void 0!==o&&(t.changeValue(i+r*o),e.preventDefault())},t.handleKeyUp=function(e){var n,r;uY.isArrowKey(e)&&(null==(r=(n=t.props).onRelease)||r.call(n,t.props.value))},t}return(0,uF.__extends)(t,e),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.disabled,i=t.label,o=t.min,a=t.max,l=t.value,s=t.vertical,u=t.htmlProps,c=this.state.isMoving;return E.createElement("span",(0,uF.__assign)({role:"slider",tabIndex:0},u,{className:g(uB)(c9.SLIDER_HANDLE,((e={})[c9.ACTIVE]=c,e),n),onKeyDown:r?void 0:this.handleKeyDown,onKeyUp:r?void 0:this.handleKeyUp,onMouseDown:r?void 0:this.beginHandleMovement,onTouchStart:r?void 0:this.beginHandleTouchMovement,ref:this.refHandlers.handle,style:this.getStyleProperties(),"aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":l,"aria-disabled":r,"aria-orientation":s?"vertical":"horizontal"}),null==i?null:E.createElement("span",{className:c9.SLIDER_LABEL},i))},t.prototype.componentWillUnmount=function(){this.removeDocumentEventListeners()},t.prototype.clientToValue=function(e){var t=this.props,n=t.stepSize,r=t.tickSize,i=t.value,o=t.vertical;if(null==this.handleElement)return i;var a=(o?window.innerHeight-e:e)-this.getHandleElementCenterPixel(this.handleElement);return isNaN(a)?i:i+Math.round(a/(r*n))*n},t.prototype.mouseEventClientOffset=function(e){return this.props.vertical?e.clientY:e.clientX},t.prototype.touchEventClientOffset=function(e){var t=e.changedTouches[0];return this.props.vertical?t.clientY:t.clientX},t.prototype.validateProps=function(e){for(var t=0;t<bK.length;t++){var n=bK[t];if("number"!=typeof e[n])throw Error("[Blueprint] <Handle> requires number value for ".concat(n," prop"))}},t.prototype.changeValue=function(e,t){return void 0===t&&(t=this.props.onChange),isNaN(e=this.clamp(e))||this.props.value===e||null==t||t(e),e},t.prototype.clamp=function(e){return uY.clamp(e,this.props.min,this.props.max)},t.prototype.getHandleElementCenterPixel=function(e){var t=this.getHandleMidpointAndOffset(e),n=t.handleMidpoint;return t.handleOffset+n},t.prototype.getHandleMidpointAndOffset=function(e,t){if(void 0===t&&(t=!1),null==e)return{handleMidpoint:0,handleOffset:0};var n=this.props.vertical,r=e.getBoundingClientRect();r.width=e.offsetWidth,r.height=e.offsetHeight;var i=n?t?"width":"height":t?"height":"width",o=n?window.innerHeight-(r.top+r[i]):r.left;return{handleMidpoint:r[i]/2,handleOffset:o}},t.prototype.removeDocumentEventListeners=function(){document.removeEventListener("mousemove",this.handleHandleMovement),document.removeEventListener("mouseup",this.endHandleMovement),document.removeEventListener("touchmove",this.handleHandleTouchMovement),document.removeEventListener("touchend",this.endHandleTouchMovement),document.removeEventListener("touchcancel",this.endHandleTouchMovement)},t.displayName="".concat(gY,".SliderHandle"),t}(mf),bQ=function(){return null};bQ.displayName="".concat(gY,".MultiSliderHandle");var bJ=function(e){function t(){var t,n,r,i,o=null!==e&&e.apply(this,arguments)||this;return o.state={labelPrecision:(n=(t=o.props).labelPrecision,i=void 0===(r=t.stepSize)?bJ.defaultSliderProps.stepSize:r,null==n?uY.countDecimalPlaces(i):n),tickSize:0,tickSizeRatio:0},o.handleElements=[],o.trackElement=null,o.addHandleRef=function(e){null!=e&&o.handleElements.push(e)},o.maybeHandleTrackClick=function(e){if(o.canHandleTrackEvent(e)){var t=o.nearestHandleForValue(o.handleElements,function(t){return t.mouseEventClientOffset(e)});t&&t.beginHandleMovement(e)}},o.maybeHandleTrackTouch=function(e){if(o.canHandleTrackEvent(e)){var t=o.nearestHandleForValue(o.handleElements,function(t){return t.touchEventClientOffset(e)});t&&t.beginHandleTouchMovement(e)}},o.canHandleTrackEvent=function(e){var t=e.target;return!o.props.disabled&&null==t.closest(".".concat(c9.SLIDER_HANDLE))},o.getHandlerForIndex=function(e,t){return function(n){null==t||t(o.getNewHandleValues(n,e))}},o.handleChange=function(e){var t,n,r=b0(o.props),i=r.map(function(e){return e.value});uY.arraysEqual(e,i)||(null==(n=(t=o.props).onChange)||n.call(t,e),r.forEach(function(t,n){var r;i[n]!==e[n]&&(null==(r=t.onChange)||r.call(t,e[n]))}))},o.handleRelease=function(e){var t,n,r=b0(o.props);null==(n=(t=o.props).onRelease)||n.call(t,e),r.forEach(function(t,n){var r;null==(r=t.onRelease)||r.call(t,e[n])})},o}return(0,uF.__extends)(t,e),t.getDerivedStateFromProps=function(e){return{labelPrecision:t.getLabelPrecision(e)}},t.getLabelPrecision=function(e){var t=e.labelPrecision,n=e.stepSize;return null==t?uY.countDecimalPlaces(n):t},t.prototype.getSnapshotBeforeUpdate=function(e){var t=b0(e);return b0(this.props).length!==t.length&&(this.handleElements=[]),null},t.prototype.render=function(){var e,t=this,n=g(uB)(c9.SLIDER,((e={})[c9.DISABLED]=this.props.disabled,e["".concat(c9.SLIDER,"-unlabeled")]=!1===this.props.labelRenderer,e[c9.VERTICAL]=this.props.vertical,e),this.props.className);return E.createElement("div",{className:n,onMouseDown:this.maybeHandleTrackClick,onTouchStart:this.maybeHandleTrackTouch},E.createElement("div",{className:c9.SLIDER_TRACK,ref:function(e){return t.trackElement=e}},this.renderTracks()),E.createElement("div",{className:c9.SLIDER_AXIS},this.renderLabels()),this.renderHandles())},t.prototype.componentDidMount=function(){this.updateTickSize()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateTickSize()},t.prototype.validateProps=function(e){if(e.stepSize<=0)throw Error(cT);if(void 0!==e.labelStepSize&&void 0!==e.labelValues)throw Error(cN);if(void 0!==e.labelStepSize&&e.labelStepSize<=0)throw Error(cA);if(void 0!==e.min&&!isFinite(e.min))throw Error(cj);if(void 0!==e.max&&!isFinite(e.max))throw Error(cL);var n=!1;if(E.Children.forEach(e.children,function(e){e&&!uY.isElementOfType(e,t.Handle)&&(n=!0)}),n)throw Error(cR)},t.prototype.formatLabel=function(e,t){void 0===t&&(t=!1);var n=this.props.labelRenderer;return!1===n?void 0:uY.isFunction(n)?n(e,{isHandleTooltip:t}):e.toFixed(this.state.labelPrecision)},t.prototype.renderLabels=function(){var e=this;if(!1===this.props.labelRenderer)return null;var t=this.getLabelValues(),n=this.props,r=n.max,i=n.min;return t.map(function(t,n){var o=bY((t-i)/(r-i)),a=e.props.vertical?{bottom:o}:{left:o};return E.createElement("div",{className:c9.SLIDER_LABEL,key:n,style:a},e.formatLabel(t))})},t.prototype.renderTracks=function(){var e=b1(this.props);e.push({value:this.props.max});for(var t={value:this.props.min},n=[],r=0;r<e.length;r++){var i=e[r];n.push(this.renderTrackFill(r,t,i)),t=i}return n},t.prototype.renderTrackFill=function(e,t,n){var r=[this.getOffsetRatio(t.value),this.getOffsetRatio(n.value)].sort(function(e,t){return e-t}),i=r[0],o=r[1],a=bY(i),l=bY(1-o),s=this.props.vertical?{bottom:a,left:0,top:l}:{left:a,right:l,top:0},u=(0,uF.__assign)((0,uF.__assign)({},s),t.trackStyleAfter||n.trackStyleBefore||{}),c=g(uB)(c9.SLIDER_PROGRESS,c9.intentClass(this.getTrackIntent(t,n)));return E.createElement("div",{key:"track-".concat(e),className:c,style:u})},t.prototype.renderHandles=function(){var e=this,t=this.props,n=t.disabled,r=t.max,i=t.min,o=t.stepSize,a=t.vertical,l=b0(this.props);return 0===l.length?null:l.map(function(t,s){var u,c=t.value,d=t.type,h=t.className,f=t.htmlProps;return E.createElement(bZ,{htmlProps:f,className:g(uB)(((u={})[c9.START]="start"===d,u[c9.END]="end"===d,u),h),disabled:n,key:"".concat(s,"-").concat(l.length),label:e.formatLabel(c,!0),max:r,min:i,onChange:e.getHandlerForIndex(s,e.handleChange),onRelease:e.getHandlerForIndex(s,e.handleRelease),ref:e.addHandleRef,stepSize:o,tickSize:e.state.tickSize,tickSizeRatio:e.state.tickSizeRatio,value:c,vertical:a})})},t.prototype.nearestHandleForValue=function(e,t){return function(e,t){if(0!==e.length){for(var n=e[0],r=t(n),i=1;i<e.length;i++){var o=e[i],a=t(o);a<r&&(n=o,r=a)}return n}}(e,function(e){var n=t(e);return Math.abs(e.clientToValue(n)-e.props.value)})},t.prototype.getNewHandleValues=function(e,t){var n=b0(this.props).map(function(e){return e.value}),r=n.slice();r[t]=e,r.sort(function(e,t){return e-t});var i=r.indexOf(e),o=this.findFirstLockedHandleIndex(t,i);if(-1===o)bX(r,t,i,e);else{var a=n[o];return bX(n,t,o,a),n}return r},t.prototype.findFirstLockedHandleIndex=function(e,t){for(var n=e<t?1:-1,r=b0(this.props),i=e+n;i!==t+n;i+=n)if("push"!==r[i].interactionKind)return i;return -1},t.prototype.getLabelValues=function(){var e=this.props,t=e.labelStepSize,n=e.labelValues,r=e.min,i=e.max,o=[];if(void 0!==n)o=n.slice();else for(var a=r;a<i||uY.approxEqual(a,i);a+=null!=t?t:1)o.push(a);return o},t.prototype.getOffsetRatio=function(e){return uY.clamp((e-this.props.min)*this.state.tickSizeRatio,0,1)},t.prototype.getTrackIntent=function(e,t){return this.props.showTrackFill?void 0!==e.intentAfter?e.intentAfter:void 0!==t&&void 0!==t.intentBefore?t.intentBefore:this.props.defaultTrackIntent:dn},t.prototype.updateTickSize=function(){if(null!=this.trackElement){var e=this.props.vertical?this.trackElement.clientHeight:this.trackElement.clientWidth,t=1/(this.props.max-this.props.min);this.setState({tickSize:e*t,tickSizeRatio:t})}},t.defaultSliderProps={disabled:!1,max:10,min:0,showTrackFill:!0,stepSize:1,vertical:!1},t.defaultProps=(0,uF.__assign)((0,uF.__assign)({},t.defaultSliderProps),{defaultTrackIntent:dn}),t.displayName="".concat(gY,".MultiSlider"),t.Handle=bQ,t}(mf);function b0(e){return b1(e,function(e){return"none"!==e.interactionKind})}function b1(e,t){var n=e.children;void 0===t&&(t=function(){return!0});var r=E.Children.map(n,function(e){return uY.isElementOfType(e,bJ.Handle)&&t(e.props)?e.props:null}),i=null!=r?r:[];return(i=i.filter(function(e){return null!==e})).sort(function(e,t){return e.value-t.value}),i}var b2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,uF.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.initialValue,n=e.intent,r=e.value,i=e.onChange,o=e.onRelease,a=e.handleHtmlProps,l=(0,uF.__rest)(e,["initialValue","intent","value","onChange","onRelease","handleHtmlProps"]);return E.createElement(bJ,(0,uF.__assign)({},l),E.createElement(bJ.Handle,{value:r,intentAfter:r<t?n:void 0,intentBefore:r>t?n:void 0,onChange:i,onRelease:o,htmlProps:a}),E.createElement(bJ.Handle,{value:t,interactionKind:"none"}))},t.defaultProps=(0,uF.__assign)((0,uF.__assign)({},bJ.defaultSliderProps),{initialValue:0,intent:dr,value:0}),t.displayName="".concat(gY,".Slider"),t}(mf),b3=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function b4(e,t){if(e.length!==t.length)return!1;for(var n,r,i=0;i<e.length;i++)if(!((n=e[i])===(r=t[i])||b3(n)&&b3(r))&&1)return!1;return!0}var b8=function(e,t){void 0===t&&(t=b4);var n,r,i=[],o=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return o&&n===this&&t(a,i)||(r=e.apply(this,a),o=!0,n=this,i=a),r}},E=x("8NFma"),b6="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function b5(e){cancelAnimationFrame(e.id)}var b9=-1;function b7(e){if(void 0===e&&(e=!1),-1===b9||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),b9=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return b9}var xe=null;function xt(e){if(void 0===e&&(e=!1),null===xe||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?xe="positive-descending":(t.scrollLeft=1,xe=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t)}return xe}var xn=function(e,t){return e},xr=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},xi=(j$=(jG={getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,i,o){var a=e.direction,l=e.height,s=e.itemCount,u=e.itemSize,c=e.layout,d=e.width,h="horizontal"===a||"horizontal"===c?d:l,f=Math.max(0,s*u-h),p=Math.min(f,t*u),g=Math.max(0,t*u-h+u+o);switch("smart"===n&&(n=r>=g-h&&r<=p+h?"auto":"center"),n){case"start":return p;case"end":return g;case"center":var m=Math.round(g+(p-g)/2);if(m<Math.ceil(h/2))return 0;if(m>f+Math.floor(h/2))return f;return m;default:if(r>=g&&r<=p)return r;if(r<g)return g;return p}},getStartIndexForOffset:function(e,t){return Math.max(0,Math.min(e.itemCount-1,Math.floor(t/e.itemSize)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,i=e.height,o=e.itemCount,a=e.itemSize,l=e.layout,s=e.width,u=Math.ceil((("horizontal"===r||"horizontal"===l?s:i)+n-t*a)/a);return Math.max(0,Math.min(o-1,t+u-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}}).getItemOffset,jW=jG.getEstimatedTotalSize,jY=jG.getItemSize,jX=jG.getOffsetForIndexAndAlignment,jK=jG.getStartIndexForOffset,jZ=jG.getStopIndexForStartIndex,jQ=jG.initInstanceProps,jJ=jG.shouldResetStyleCacheOnItemSizeChange,j0=jG.validateProps,(jq=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=jQ(n.props,vU(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:vU(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=b8(function(e,t,r,i){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:i})}),n._callOnScroll=void 0,n._callOnScroll=b8(function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,r=n.props,i=r.direction,o=r.itemSize,a=r.layout,l=n._getItemStyleCache(jJ&&o,jJ&&a,jJ&&i);if(l.hasOwnProperty(e))t=l[e];else{var s=j$(n.props,e,n._instanceProps),u=jY(n.props,e,n._instanceProps),c="horizontal"===i||"horizontal"===a,d="rtl"===i,h=c?s:0;l[e]=t={position:"absolute",left:d?void 0:h,right:d?h:void 0,top:c?0:s,height:c?"100%":u,width:c?u:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=b8(function(e,t,n){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===i)return null;var t=n.props.direction,a=i;if("rtl"===t)switch(xt()){case"negative":a=-i;break;case"positive-descending":a=o-r-i}return a=Math.max(0,Math.min(a,o-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;n.setState(function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){var e,t,r;null!==n._resetIsScrollingTimeoutId&&b5(n._resetIsScrollingTimeoutId),e=n._resetIsScrolling,t=b6(),n._resetIsScrollingTimeoutId=r={id:requestAnimationFrame(function n(){b6()-t>=150?e.call(null):r.id=requestAnimationFrame(n)})}},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}vA(t,e),t.getDerivedStateFromProps=function(e,t){return xr(e,t),j0(e),null};var n=t.prototype;return n.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},n.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,i=n.layout,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===i?l.scrollWidth>l.clientWidth?b7():0:l.scrollHeight>l.clientHeight?b7():0}this.scrollTo(jX(this.props,e,t,o,this._instanceProps,a))},n.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(xt()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,l=o.scrollWidth;o.scrollLeft=l-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&b5(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,r=e.direction,i=e.height,o=e.innerRef,a=e.innerElementType,l=e.innerTagName,s=e.itemCount,u=e.itemData,c=e.itemKey,d=void 0===c?xn:c,h=e.layout,f=e.outerElementType,p=e.outerTagName,g=e.style,m=e.useIsScrolling,v=e.width,y=this.state.isScrolling,b="horizontal"===r||"horizontal"===h,x=b?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],_=w[1],S=[];if(s>0)for(var k=C;k<=_;k++)S.push((0,E.createElement)(t,{data:u,key:d(k,u),index:k,isScrolling:m?y:void 0,style:this._getItemStyle(k)}));var O=jW(this.props,this._instanceProps);return(0,E.createElement)(f||p||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:vO({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},g)},(0,E.createElement)(a||l||"div",{children:S,ref:o,style:{height:b?"100%":O,pointerEvents:y?"none":void 0,width:b?O:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"==typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,l=o.scrollOffset,s=o.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var l=jK(this.props,a,this._instanceProps),s=jZ(this.props,l,a,this._instanceProps);return[Math.max(0,l-(i&&"backward"!==o?1:Math.max(1,n))),Math.max(0,Math.min(t-1,s+(i&&"forward"!==o?1:Math.max(1,n)))),l,s]},t}(E.PureComponent)).defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},jq),E=(x("8NFma"),x("8NFma")),xo={};h(xo,"FOCUS_EVENT",()=>xa),h(xo,"RECONNECT_EVENT",()=>xl),h(xo,"MUTATE_EVENT",()=>xs),h(xo,"ERROR_REVALIDATE_EVENT",()=>xu);let xa=0,xl=1,xs=2,xu=3;var xc=Object.prototype.hasOwnProperty;let xd=new WeakMap,xh=()=>{},xf=xh(),xp=Object,xg=e=>e===xf,xm=(e,t)=>({...e,...t}),xv={},xy={},xb="undefined",xx=typeof window!=xb,xw=typeof document!=xb,xC=xx&&"Deno"in window,x_=(e,t)=>{let n=xd.get(e);return[()=>!xg(t)&&e.get(t)||xv,r=>{if(!xg(t)){let i=e.get(t);t in xy||(xy[t]=i),n[5](t,xm(i,r),i||xv)}},n[6],()=>!xg(t)&&t in xy?xy[t]:!xg(t)&&e.get(t)||xv]},xS=!0,[xE,xk]=xx&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[xh,xh],xO={initFocus:e=>(xw&&document.addEventListener("visibilitychange",e),xE("focus",e),()=>{xw&&document.removeEventListener("visibilitychange",e),xk("focus",e)}),initReconnect:e=>{let t=()=>{xS=!0,e()},n=()=>{xS=!1};return xE("online",t),xE("offline",n),()=>{xk("online",t),xk("offline",n)}}},xP=!g(E).useId,xT=!xx||xC,xA=xT?E.useEffect:E.useLayoutEffect,xj="undefined"!=typeof navigator&&navigator.connection,xL=!xT&&xj&&(["slow-2g","2g"].includes(xj.effectiveType)||xj.saveData),xR=new WeakMap,xN=(e,t)=>e===`[object ${t}]`,xM=0,xI=e=>{let t,n,r=typeof e,i=xp.prototype.toString.call(e),o=xN(i,"Date"),a=xN(i,"RegExp"),l=xN(i,"Object");if(xp(e)!==e||o||a)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=xR.get(e))return t;if(t=++xM+"~",xR.set(e,t),Array.isArray(e)){for(n=0,t="@";n<e.length;n++)t+=xI(e[n])+",";xR.set(e,t)}if(l){t="#";let r=xp.keys(e).sort();for(;!xg(n=r.pop());)xg(e[n])||(t+=n+":"+xI(e[n])+",");xR.set(e,t)}}return t},xD=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?xI(e):"",t]},xz=0,xF=()=>++xz;async function xB(...e){let[t,n,r,i]=e,o=xm({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),a=o.populateCache,l=o.rollbackOnError,s=o.optimisticData,u=o.throwOnError;if("function"==typeof n){let e=[];for(let r of t.keys())!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r);return Promise.all(e.map(c))}return c(n);async function c(n){let i,[c]=xD(n);if(!c)return;let[d,h]=x_(t,c),[f,p,g,m]=xd.get(t),v=()=>{let e=f[c];return("function"==typeof o.revalidate?o.revalidate(d().data,n):!1!==o.revalidate)&&(delete g[c],delete m[c],e&&e[0])?e[0](xs).then(()=>d().data):d().data};if(e.length<3)return v();let y=r,b=!1,x=xF();p[c]=[x,0];let w=!xg(s),C=d(),_=C.data,S=C._c,E=xg(S)?_:S;if(w&&h({data:s="function"==typeof s?s(E,_):s,_c:E}),"function"==typeof y)try{y=y(E)}catch(e){i=e,b=!0}if(y&&"function"==typeof y.then){let e;if(y=await y.catch(e=>{i=e,b=!0}),x!==p[c][0]){if(b)throw i;return y}b&&w&&(e=i,"function"==typeof l?l(e):!1!==l)&&(a=!0,h({data:E,_c:xf}))}if(a&&!b&&("function"==typeof a?h({data:a(y,E),error:xf,_c:xf}):h({data:y,error:xf,_c:xf})),p[c][1]=xF(),Promise.resolve(v()).then(()=>{h({_c:xf})}),b){if(u)throw i;return}return y}}let xH=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},xV=(e,t)=>{if(!xd.has(e)){let n=xm(xO,t),r=Object.create(null),i=xB.bind(xf,e),o=xh,a=Object.create(null),l=(e,t)=>{let n=a[e]||[];return a[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},s=(t,n,r)=>{e.set(t,n);let i=a[t];if(i)for(let e of i)e(n,r)},u=()=>{if(!xd.has(e)&&(xd.set(e,[r,Object.create(null),Object.create(null),Object.create(null),i,s,l]),!xT)){let t=n.initFocus(setTimeout.bind(xf,xH.bind(xf,r,xa))),i=n.initReconnect(setTimeout.bind(xf,xH.bind(xf,r,xl)));o=()=>{t&&t(),i&&i(),xd.delete(e)}}};return u(),[e,i,u,o]}return[e,xd.get(e)[4]]},[xU,xG]=xV(new Map),xq=xm({onLoadingSlow:xh,onSuccess:xh,onError:xh,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,a=i.retryCount,l=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;(xg(o)||!(a>o))&&setTimeout(r,l,i)},onDiscarded:xh,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:xL?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:xL?5e3:3e3,compare:function e(t,n){var r,i;if(t===n)return!0;if(t&&n&&(r=t.constructor)===n.constructor){if(r===Date)return t.getTime()===n.getTime();if(r===RegExp)return t.toString()===n.toString();if(r===Array){if((i=t.length)===n.length)for(;i--&&e(t[i],n[i]););return -1===i}if(!r||"object"==typeof t){for(r in i=0,t)if(xc.call(t,r)&&++i&&!xc.call(n,r)||!(r in n)||!e(t[r],n[r]))return!1;return Object.keys(n).length===i}}return t!=t&&n!=n},isPaused:()=>!1,cache:xU,mutate:xG,fallback:{}},{isOnline:()=>xS,isVisible:()=>{let e=xw&&document.visibilityState;return xg(e)||"hidden"!==e}}),x$=(e,t)=>{let n=xm(e,t);if(t){let{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=xm(i,a))}return n},xW=(0,E.createContext)({}),xY="$inf$";var E=x("8NFma");let xX=xx&&window.__SWR_DEVTOOLS_USE__,xK=xX?window.__SWR_DEVTOOLS_USE__:[],xZ=e=>"function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],xQ=xK.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let[r]=xD(t),[,,,i]=xd.get(xU);if(r.startsWith(xY))return n(...e);let o=i[r];return xg(o)?n(...e):(delete i[r],o)});return e(t,i,r)});xX&&(window.__SWR_DEVTOOLS_REACT__=g(E));let xJ=()=>{},x0=xJ(),x1=(new WeakMap,g(E).use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),x2={dedupe:!0},x3=Promise.resolve(xf);xp.defineProperty(e=>{let{value:t}=e,n=(0,E.useContext)(xW),r="function"==typeof t,i=(0,E.useMemo)(()=>r?t(n):t,[r,n,t]),o=(0,E.useMemo)(()=>r?i:x$(n,i),[r,n,i]),a=i&&i.provider,l=(0,E.useRef)(xf);a&&!l.current&&(l.current=xV(a(o.cache||xU),i));let s=l.current;return s&&(o.cache=s[0],o.mutate=s[1]),xA(()=>{if(s)return s[2]&&s[2](),s[3]},[]),(0,E.createElement)(xW.Provider,xm(e,{value:o}))},"defaultValue",{value:xq});let x4=(c=(e,t,n)=>{let{cache:r,compare:i,suspense:o,fallbackData:a,revalidateOnMount:l,revalidateIfStale:s,refreshInterval:u,refreshWhenHidden:c,refreshWhenOffline:d,keepPreviousData:h}=n,[f,p,g,m]=xd.get(r),[v,y]=xD(e),b=(0,E.useRef)(!1),x=(0,E.useRef)(!1),w=(0,E.useRef)(v),C=(0,E.useRef)(t),_=(0,E.useRef)(n),S=()=>_.current.isVisible()&&_.current.isOnline(),[k,O,P,T]=x_(r,v),j=(0,E.useRef)({}).current,L=xg(a)?xg(n.fallback)?xf:n.fallback[v]:a,R=(e,t)=>{for(let n in j)if("data"===n){if(!i(e[n],t[n])&&(!xg(e[n])||!i(V,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},N=(0,E.useMemo)(()=>{let e=!!v&&!!t&&(xg(l)?!_.current.isPaused()&&!o&&!1!==s:l),n=t=>{let n=xm(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=k(),i=T(),a=n(r),u=r===i?a:n(i),c=a;return[()=>{let e=n(k());return R(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>u]},[r,v]),M=(0,A.useSyncExternalStore)((0,E.useCallback)(e=>P(v,(t,n)=>{R(n,t)||e()}),[r,v]),N[0],N[1]),I=!b.current,D=f[v]&&f[v].length>0,z=M.data,F=xg(z)?L&&"function"==typeof L.then?x1(L):L:z,B=M.error,H=(0,E.useRef)(F),V=h?xg(z)?xg(H.current)?F:H.current:z:F,U=(!D||!!xg(B))&&(I&&!xg(l)?l:!_.current.isPaused()&&(o?!xg(F)&&s:xg(F)||s)),G=!!(v&&t&&I&&U),q=xg(M.isValidating)?G:M.isValidating,$=xg(M.isLoading)?G:M.isLoading,W=(0,E.useCallback)(async e=>{let t,r,o=C.current;if(!v||!o||x.current||_.current.isPaused())return!1;let a=!0,l=e||{},s=!g[v]||!l.dedupe,u=()=>xP?!x.current&&v===w.current&&b.current:v===w.current,c={isValidating:!1,isLoading:!1},d=()=>{O(c)},h=()=>{let e=g[v];e&&e[1]===r&&delete g[v]},m={isValidating:!0};xg(k().data)&&(m.isLoading=!0);try{if(s&&(O(m),n.loadingTimeout&&xg(k().data)&&setTimeout(()=>{a&&u()&&_.current.onLoadingSlow(v,n)},n.loadingTimeout),g[v]=[o(y),xF()]),[t,r]=g[v],t=await t,s&&setTimeout(h,n.dedupingInterval),!g[v]||g[v][1]!==r)return s&&u()&&_.current.onDiscarded(v),!1;c.error=xf;let e=p[v];if(!xg(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return d(),s&&u()&&_.current.onDiscarded(v),!1;let l=k().data;c.data=i(l,t)?l:t,s&&u()&&_.current.onSuccess(t,v,n)}catch(n){h();let e=_.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=n,s&&u())&&(e.onError(n,v,e),(!0===t||"function"==typeof t&&t(n))&&(!_.current.revalidateOnFocus||!_.current.revalidateOnReconnect||S())&&e.onErrorRetry(n,v,e,e=>{let t=f[v];t&&t[0]&&t[0](xo.ERROR_REVALIDATE_EVENT,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0}))}return a=!1,d(),!0},[v,r]),Y=(0,E.useCallback)((...e)=>xB(r,w.current,...e),[]);if(xA(()=>{C.current=t,_.current=n,xg(z)||(H.current=z)}),xA(()=>{var e;let t;if(!v)return;let n=W.bind(xf,x2),r=0;_.current.revalidateOnFocus&&(r=Date.now()+_.current.focusThrottleInterval);let i=(e=(e,t={})=>{if(e==xo.FOCUS_EVENT){let e=Date.now();_.current.revalidateOnFocus&&e>r&&S()&&(r=e+_.current.focusThrottleInterval,n())}else if(e==xo.RECONNECT_EVENT)_.current.revalidateOnReconnect&&S()&&n();else if(e==xo.MUTATE_EVENT)return W();else if(e==xo.ERROR_REVALIDATE_EVENT)return W(t)},(t=f[v]||(f[v]=[])).push(e),()=>{let n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.pop())});if(x.current=!1,w.current=v,b.current=!0,O({_k:y}),U&&!g[v])if(xg(F)||xT)n();else xx&&typeof window.requestAnimationFrame!=xb?window.requestAnimationFrame(n):setTimeout(n,1);return()=>{x.current=!0,i()}},[v]),xA(()=>{let e;function t(){let t="function"==typeof u?u(k().data):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!k().error&&(c||_.current.isVisible())&&(d||_.current.isOnline())?W(x2).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[u,c,d,v]),(0,E.useDebugValue)(V),o){let e=v&&xg(F);if(!xP&&xT&&e)throw Error("Fallback data is required when using Suspense in SSR.");e&&(C.current=t,_.current=n,x.current=!1);let r=m[v];if(x1(!xg(r)&&e?Y(r):x3),!xg(B)&&e)throw B;let i=e?W(x2):x3;!xg(V)&&e&&(i.status="fulfilled",i.value=!0),x1(i)}return{mutate:Y,get data(){return j.data=!0,V},get error(){return j.error=!0,B},get isValidating(){return j.isValidating=!0,q},get isLoading(){return j.isLoading=!0,$}}},function(...e){let t,n=(t=(0,E.useContext)(xW),(0,E.useMemo)(()=>xm(xq,t),[t])),[r,i,o]=xZ(e),a=x$(n,o),l=c,{use:s}=a,u=(s||[]).concat(xQ);for(let e=u.length;e--;)l=u[e](l);return l(r,i||a.fetcher||null,a)});var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),x8=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"align-center",ref:t},e),E.createElement("path",{d:n?"M100 300C89 300 80 291 80 280C80 269 89 260 100 260H300C311 260 320 269 320 280C320 291 311 300 300 300H100zM20 340H380C391 340 400 349 400 360C400 371 391 380 380 380H20C9 380 0 371 0 360C0 349 9 340 20 340zM260 100C271 100 280 109 280 120C280 131 271 140 260 140H140C129 140 120 131 120 120C120 109 129 100 140 100H260zM340 60H60C49 60 40 51 40 40C40 29 49 20 60 20H340C351 20 360 29 360 40C360 51 351 60 340 60zM380 220H20C9 220 0 211 0 200C0 189 9 180 20 180H380C391 180 400 189 400 200C400 211 391 220 380 220z":"M80 240C69 240 60 231 60 220C60 209 69 200 80 200H240C251 200 260 209 260 220C260 231 251 240 240 240H80zM20 260H300C311 260 320 269 320 280C320 291 311 300 300 300H20C9 300 0 291 0 280C0 269 9 260 20 260zM280 60H40C29 60 20 51 20 40C20 29 29 20 40 20H280C291 20 300 29 300 40C300 51 291 60 280 60zM300 180H20C9 180 0 171 0 160C0 149 9 140 20 140H300C311 140 320 149 320 160C320 171 311 180 300 180zM200 80C211 80 220 89 220 100C220 111 211 120 200 120H120C109 120 100 111 100 100C100 89 109 80 120 80H200z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});x8.defaultProps={size:g6.IconSize.STANDARD},x8.displayName="Blueprint5.Icon.AlignCenter";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),x6=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"align-justify",ref:t},e),E.createElement("path",{d:n?"M20 340H380C391 340 400 349 400 360C400 371 391 380 380 380H20C9 380 0 371 0 360C0 349 9 340 20 340zM380 60H20C9 60 0 51 0 40C0 29 9 20 20 20H380C391 20 400 29 400 40C400 51 391 60 380 60zM380 300H20C9 300 0 291 0 280C0 269 9 260 20 260H380C391 260 400 269 400 280C400 291 391 300 380 300zM380 220H20C9 220 0 211 0 200C0 189 9 180 20 180H380C391 180 400 189 400 200C400 211 391 220 380 220zM380 140H20C9 140 0 131 0 120C0 109 9 100 20 100H380C391 100 400 109 400 120C400 131 391 140 380 140z":"M300 60.4H20C9 60.4 0 51.4 0 40.4C0 29.4 9 20.4 20 20.4H300C311 20.4 320 29.4 320 40.4C320 51.4 311 60.4 300 60.4zM20 260.4H300C311 260.4 320 269.4 320 280.4C320 291.4 311 300.4 300 300.4H20C9 300.4 0 291.4 0 280.4C0 269.2 9 260.4 20 260.4zM300 180.4H20C9 180.4 0 171.4 0 160.4C0 149.4 9 140.4 20 140.4H300C311 140.4 320 149.4 320 160.4C320 171.4 311 180.4 300 180.4zM300 240.4H20C9 240.4 0 231.4 0 220.4C0 209.4 9 200.4 20 200.4H300C311 200.4 320 209.4 320 220.4C320 231.4 311 240.4 300 240.4zM300 120.4H20C9 120.4 0 111.4 0 100.4C0 89.4 9 80.4 20 80.4H300C311 80.4 320 89.4 320 100.4C320 111.4 311 120.4 300 120.4z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});x6.defaultProps={size:g6.IconSize.STANDARD},x6.displayName="Blueprint5.Icon.AlignJustify";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),x5=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"align-left",ref:t},e),E.createElement("path",{d:n?"M20 260H220C231 260 240 269 240 280C240 291 231 300 220 300H20C9 300 0 291 0 280C0 269 9 260 20 260zM20 340H380C391 340 400 349 400 360C400 371 391 380 380 380H20C9 380 0 371 0 360C0 349 9 340 20 340zM300 60H20C9 60 0 51 0 40C0 29 9 20 20 20H300C311 20 320 29 320 40C320 51 311 60 300 60zM380 220H20C9 220 0 211 0 200C0 189 9 180 20 180H380C391 180 400 189 400 200C400 211 391 220 380 220zM20 100H140C151 100 160 109 160 120C160 131 151 140 140 140H20C9 140 0 131 0 120C0 109 9 100 20 100z":"M260 60H20C9 60 0 51 0 40C0 29 9 20 20 20H260C271 20 280 29 280 40C280 51 271 60 260 60zM20 260H300C311 260 320 269 320 280C320 291 311 300 300 300H20C9 300 0 291 0 280C0 269 9 260 20 260zM20 200H180C191 200 200 209 200 220C200 231 191 240 180 240H20C9 240 0 231 0 220C0 209 9 200 20 200zM300 180H20C9 180 0 171 0 160C0 149 9 140 20 140H300C311 140 320 149 320 160C320 171 311 180 300 180zM20 80H100C111 80 120 89 120 100C120 111 111 120 100 120H20C9 120 0 111 0 100C0 89 9 80 20 80z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});x5.defaultProps={size:g6.IconSize.STANDARD},x5.displayName="Blueprint5.Icon.AlignLeft";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),x9=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"align-right",ref:t},e),E.createElement("path",{d:n?"M380 60H100C89 60 80 51 80 40C80 29 89 20 100 20H380C391 20 400 29 400 40C400 51 391 60 380 60zM20 340H380C391 340 400 349 400 360C400 371 391 380 380 380H20C9 380 0 371 0 360C0 349 9 340 20 340zM380 140H260C249 140 240 131 240 120C240 109 249 100 260 100H380C391 100 400 109 400 120C400 131 391 140 380 140zM380 220H20C9 220 0 211 0 200C0 189 9 180 20 180H380C391 180 400 189 400 200C400 211 391 220 380 220zM380 300H180C169 300 160 291 160 280C160 269 169 260 180 260H380C391 260 400 269 400 280C400 291 391 300 380 300z":"M300 60.4H60C49 60.4 40 51.4 40 40.4C40 29.4 49 20.4 60 20.4H300C311 20.4 320 29.4 320 40.4C320 51.4 311 60.4 300 60.4zM20 260.4H300C311 260.4 320 269.4 320 280.4C320 291.4 311 300.4 300 300.4H20C9 300.4 0 291.4 0 280.4C0 269.2 9 260.4 20 260.4zM300 240.4H140C129 240.4 120 231.4 120 220.4C120 209.4 129 200.4 140 200.4H300C311 200.4 320 209.4 320 220.4C320 231.4 311 240.4 300 240.4zM300 120.4H220C209 120.4 200 111.4 200 100.4C200 89.4 209 80.4 220 80.4H300C311 80.4 320 89.4 320 100.4C320 111.4 311 120.4 300 120.4zM300 180.4H20C9 180.4 0 171.4 0 160.4C0 149.4 9 140.4 20 140.4H300C311 140.4 320 149.4 320 160.4C320 171.4 311 180.4 300 180.4z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});x9.defaultProps={size:g6.IconSize.STANDARD},x9.displayName="Blueprint5.Icon.AlignRight";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),x7=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"bold",ref:t},e),E.createElement("path",{d:n?"M286 220C294 236 300 252 300 270C300 320 260 360 210 360H100C88 360 80 352 80 340V80C80 68 88 60 100 60H230C280 60 320 100 320 150C320 178 306 204 286 220zM140 300H210C226 300 240 286 240 270C240 254 226 240 210 240H140V300zM230 120H140V180H230C246 180 260 166 260 150C260 134 246 120 230 120z":"M234 180C238 188 240 200 240 210C240 212 240 216 240 218C240 220 240 220 240 220C240 222 240 224 238 226C238 226 238 228 238 228C228 258 202 280 170 280H80C70 280 60 272 60 260V60C60 50 68 40 80 40H180C224 40 260 76 260 120C260 144 250 166 234 180zM120 220H160C172 220 180 212 180 200S172 180 160 180H120V220zM180 100H120V140H180C192 140 200 132 200 120S192 100 180 100z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});x7.defaultProps={size:g6.IconSize.STANDARD},x7.displayName="Blueprint5.Icon.Bold";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),we=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"caret-down",ref:t},e),E.createElement("path",{d:n?"M320 260C320 271 311 280 300 280H100C89 280 80 271 80 260C80 255.2 82 250.8 84.8 247.4L84.6 247.2L184.6 127.2L184.8 127.4C188.6 123 193.8 120 200 120S211.4 123 215.2 127.4L215.4 127.2L315.4 247.2L315.2 247.4C318 250.8 320 255.2 320 260z":"M240 190C240 195.6 235.6 200 230 200H90C84.4 200 80 195.6 80 190C80 187.4 81 185.2 82.6 183.4C82.6 183.4 82.6 183.4 82.6 183.4L152.6 103.4L152.6 103.4C154.4 101.4 157 100 160 100S165.6 101.4 167.4 103.4L167.4 103.4L237.4 183.4L237.4 183.4C239 185.2 240 187.4 240 190z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});we.defaultProps={size:g6.IconSize.STANDARD},we.displayName="Blueprint5.Icon.CaretDown";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),wt=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"italic",ref:t},e),E.createElement("path",{d:n?"M234 320H280C292 320 300 328 300 340C300 352 292 360 280 360H140C128 360 120 352 120 340C120 328 128 320 140 320H184L146 100H100C88 100 80 92 80 80C80 68 88 60 100 60H240C252 60 260 68 260 80C260 92 252 100 240 100H196L234 320z":"M196 240H220C230 240 240 248 240 260C240 272 232 280 220 280H140C130 280 120 272 120 260C120 248 128 240 140 240H156L124 80H100C90 80 80 72 80 60C80 48 88 40 100 40H180C190 40 200 48 200 60C200 72 192 80 180 80H164L196 240z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});wt.defaultProps={size:g6.IconSize.STANDARD},wt.displayName="Blueprint5.Icon.Italic";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),wn=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"search",ref:t},e),E.createElement("path",{d:n?"M391.2 51.2L292.4 150C309.8 175.8 320 206.6 320 240C320 328.4 248.4 400 160 400S0 328.4 0 240S71.6 80 160 80C193.4 80 224.2 90.2 250 107.6L348.8 8.8C354.2000000000001 3.4 361.8 0 370 0C386.6 0 400 13.4 400 30C400 38.2 396.6 45.8 391.2 51.2zM160 120C93.8 120 40 173.8 40 240S93.8 360 160 360S280 306.2000000000001 280 240S226.2 120 160 120z":"M311 51.4L257.6 105C271.6 126.8 279.8 152.6 279.8 180.2C279.8 257.6 217.2 320.2 139.8 320.2S-0.2 257.6 -0.2 180.2S62.4 40.2 139.8 40.2C167.6 40.2 193.4 48.6 215 62.4L268.6 9C274 3.6 281.6 0.2 289.8 0.2C306.4 0.2 319.8 13.6 319.8 30.2C319.8 38.4 316.4 46 311 51.4zM139.8 80.2C84.6 80.2 39.8 125 39.8 180.2S84.6 280.2 139.8 280.2S239.8 235.4 239.8 180.2S195 80.2 139.8 80.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});wn.defaultProps={size:g6.IconSize.STANDARD},wn.displayName="Blueprint5.Icon.Search";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),wr=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"strikethrough",ref:t},e),E.createElement("path",{d:n?"M360 220H270.8C268.2 221 265.6 222 262.8 222.8C259 223.8 252.6 225.6 243.6 227.8C234.6 230 225.6 232.4000000000001 216.2 234.8C206.8 237.2 198.4 239.4 190.8 241.4S178.8 244.6 177.8 244.8C167.2 247.8 158.8 252.2 152.4 258C146 263.6 142.6 271.6 142.6 281.8C142.6 289 144.4 295 147.8 299.8C151.2 304.6 155.6 308.4 160.8 311.2000000000001C166 314 171.8 316 178.2 317.2S190.8 319 196.8 319C214.6 319 229.4 315.2 241 307.6C250 301.6 256 292.4 258.8 280H311.4C310.2 290.4 307.4000000000001 299.6 303 308C297 319.4 288.8 329 278.4 336.6C268 344.4 256.2 350.2 242.6 354C228.6 358 214.2 360 198.8 360C185.6 360 172.6 358.4 159.6 355S135.2 346.4 125 339.6S106.6 323.8 100.4 313.2C94.2 302.8 91.2 290.2 91.2 275.8C91.2 268.4 92.2 261 94.2 253.8C96.2 246.6 99.8 239.8 104.8 233.4C108.4 228.6 113 224 118.6 220H40C29 220 20 211 20 200C20 189 29 180 40 180H242.8C243.2 179.8 243.8 179.6 244.2 179.6C250.2000000000001 177.4 255.8 173.8 261 168.6C266 163.4 268.6 155.2 268.6 144.4C268.6 139 267.4000000000001 133.8 265.2000000000001 128.6C263.0000000000001 123.4 259.4000000000001 118.8 254.4000000000001 114.8C249.4000000000001 110.8 243.0000000000001 107.6 235.0000000000001 105C227.0000000000001 102.4 217.4 101.2 206.2000000000001 101.2C195.8000000000001 101.2 186.0000000000001 102.4 177.2000000000001 104.6C168.2000000000001 106.8 160.4000000000001 110.4 153.4000000000001 115.4S141.2000000000001 126.6 137.4000000000001 134.4C136.4 136 135.6 138 135 140H82.2C84 131.4 86.6 123.6 90.2 116.4C96.8 103.4 105.6 92.8 116.6 84.6C127.6 76.4 140.6 70.2000000000001 155.4 66.2C170.2000000000001 62.2 186 60.1999999999999 202.8 60.1999999999999C217.4 60.1999999999999 231.6 61.8 245.6 65.1999999999999C259.6 68.6 272.2000000000001 73.8 283.2 80.9999999999999C294.2000000000001 88.1999999999999 303 97.6 309.8 108.8C316.6 120 320 133.8 320 149.8C320 157.2 318.8 164.8 316.4 172.2C315.6 174.8 314.6 177.4 313.4 180H360C371 180 380 189 380 200C380 211 371 220 360 220z":"M280 180H173C165.4 181.8 158.4 183.6 152.2 185.2C146 186.8 142.4 187.8 141.4 188C132.8 190.2 125.6 193.8 120.4 198.4C115 203 112.4 209.4 112.4 217.4C112.4 223.2 113.8 228 116.6 231.8S123 238.6 127.4 241C131.8 243.2 136.6 244.8 141.8 245.8C147 246.8 152.2 247.2 157.2 247.2C172 247.2 184.4 244.2 194 238C200.4 234 205 228 207.6 220H252.0000000000001C250.8 226.6 248.6 232.8 245.6 238.4C240.6 247.4 233.8 255.2 225.2000000000001 261.4C216.6 267.6 206.6 272.2 195.4 275.4S171.8 280 159 280C148 280 137 278.6 126.4 276C115.6 273.4 106 269.2 97.4 263.6C89 258 82.2 251 77 242.6C71.8 234.2 69.2 224.2 69.2 212.6C69.2 206.6 70 200.8 71.8 195C73.4 189.8 76 184.8 79.6 180H40C29 180 20 171 20 160C20 149 29 140 40 140H182.6C187.6 138.6 192.4 137.2 196.8 135.6C201.8 133.8 206.4 131 210.8 126.8C215 122.6 217.2 116.2 217.2 107.4C217.2 103.2 216.2 98.8 214.4 94.8C212.6 90.6 209.6 86.9999999999999 205.4 83.8C201.2 80.6 195.8 78 189.2 75.9999999999999C182.6 73.9999999999999 174.6 72.9999999999999 165.2 72.9999999999999C156.4 72.9999999999999 148.4 73.9999999999999 141 75.8C133.6 77.5999999999999 127 80.6 121.2 84.4C115.4 88.3999999999999 111 93.3999999999999 107.8 99.5999999999999C107.6 99.6 107.6 99.8 107.4 100H62.8C64.2 94.6 66.2 89.6 68.6 85C74 74.6 81.4 66.2 90.6 59.4S110.6 47.8 123 44.6C135.2 41.6 148.4 40 162.4 40C174.6 40 186.4 41.4 198.2 44C209.8 46.6 220.4 50.8 229.4 56.6C238.6 62.4 246 69.8 251.6 78.8C257.2 87.8 260 98.8 260 111.6C260 117.6 259 123.6 257 129.6C256 133.4 254.4 136.8 252.6 140H280C291 140 300 149 300 160C300 171 291 180 280 180z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});wr.defaultProps={size:g6.IconSize.STANDARD},wr.displayName="Blueprint5.Icon.Strikethrough";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),wi=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"underline",ref:t},e),E.createElement("path",{d:n?"M200 60C266 60 320 114 320 180V330C320 346 306 360 290 360C274 360 260 346 260 330V180C260 146 234 120 200 120S140 146 140 180V330C140 346 126 360 110 360C94 360 80 346 80 330V180C80 114 134 60 200 60zM330 20H70C64 20 60 16 60 10C60 4 64 0 70 0H330C336 0 340 4 340 10C340 16 336 20 330 20z":"M160 40C216 40 260 84 260 140V260C260 272 252 280 240 280C228 280 220 272 220 260V140C220 106 194 80 160 80S100 106 100 140V260C100 272 92 280 80 280C68 280 60 272 60 260V140C60 84 104 40 160 40zM270 20H50C44 20 40 16 40 10C40 4 44 0 50 0H270C276 0 280 4 280 10C280 16 276 20 270 20z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});wi.defaultProps={size:g6.IconSize.STANDARD},wi.displayName="Blueprint5.Icon.Underline";var E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),wo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,uF.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.panel;return E.createElement("div",{className:g(uB)(c9.TAB_PANEL,t),role:"tablist"},ci(n)?n({tabPanelId:"",tabTitleId:""}):n)},t.defaultProps={disabled:!1},t.displayName="".concat(gY,".Tab"),t}(mf),uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=(x("8NFma"),x("8NFma")),g6=x("leH9B"),wa=function(e){var t=e.className,n=e.large,r=e.onRemove,i=e.size,o=e.tabIndex,a=n||"large"===i||(null==t?void 0:t.includes(c9.LARGE)),l=E.useCallback(function(t){null==r||r(t,e)},[r,e]);return E.createElement("button",{"aria-label":"Remove tag",type:"button",className:c9.TAG_REMOVE,onClick:l,tabIndex:o},E.createElement(yU,{size:a?g6.IconSize.LARGE:g6.IconSize.STANDARD}))};wa.displayName="".concat(gY,".TagRemoveButton");var wl=E.forwardRef(function(e,t){var n,r=e.children,i=e.className,o=e.endIcon,a=e.fill,l=e.icon,s=e.intent,u=e.interactive,c=e.large,d=e.minimal,h=e.multiline,f=e.onRemove,p=e.rightIcon,m=e.round,v=e.size,y=(e.tabIndex,e.htmlTitle),b=(0,uF.__rest)(e,["children","className","endIcon","fill","icon","intent","interactive","large","minimal","multiline","onRemove","rightIcon","round","size","tabIndex","htmlTitle"]),x=uY.isFunction(f),w=null!=u?u:null!=b.onClick,C=gW(w,e,t,{defaultTabIndex:0,disabledTabIndex:void 0}),_=C[0],S=C[1],k=g(uB)(c9.TAG,c9.intentClass(s),c9.sizeClass(void 0===v?"medium":v,{large:void 0!==c&&c}),((n={})[c9.ACTIVE]=_,n[c9.FILL]=void 0!==a&&a,n[c9.INTERACTIVE]=w,n[c9.MINIMAL]=void 0!==d&&d,n[c9.ROUND]=void 0!==m&&m,n),i);return E.createElement("span",(0,uF.__assign)({},gK(b),S,{className:k}),E.createElement(mn,{icon:l}),!cZ(r)&&E.createElement(mu,{className:c9.FILL,ellipsize:!h,tagName:"span",title:y},r),E.createElement(mn,{icon:null!=o?o:p}),x&&E.createElement(wa,(0,uF.__assign)({},e)))});wl.displayName="".concat(gY,".Tag");var ws=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){return t.props.onClick(t.props.id,e)},t}return(0,uF.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,r=e.disabled,i=e.id,o=e.parentId,a=e.selected,l=e.title,s=e.icon,u=e.tagContent,c=e.tagProps,d=(0,uF.__rest)(e,["className","children","disabled","id","parentId","selected","title","icon","tagContent","tagProps"]),h=a?dr:dn,f=wu(o,i),p=f.tabPanelId,m=f.tabTitleId;return E.createElement("div",(0,uF.__assign)({},gK(d),{"aria-controls":p,"aria-disabled":r,"aria-expanded":a,"aria-selected":a,className:g(uB)(c9.TAB,t),"data-tab-id":i,id:m,onClick:r?void 0:this.handleClick,role:"tab",tabIndex:r?void 0:a?0:-1}),null!=s&&E.createElement(mn,{icon:s,intent:h,className:c9.TAB_ICON}),l,n,null!=u&&E.createElement(wl,(0,uF.__assign)({minimal:!0,intent:h},c,{className:g(uB)(c9.TAB_TAG,null==c?void 0:c.className)}),u))},t.displayName="".concat(gY,".TabTitle"),t}(mf);function wu(e,t){return{tabPanelId:"".concat(c9.TAB_PANEL,"_").concat(e,"_").concat(t),tabTitleId:"".concat(c9.TAB,"-title_").concat(e,"_").concat(t)}}var wc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,uF.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.id,r=e.parentId,i=e.selectedTabId,o=e.panel,a=e.renderActiveTabPanelOnly,l=n===i;if(void 0!==o&&(!a||l)){var s=wu(r,n),u=s.tabTitleId,c=s.tabPanelId;return E.createElement("div",{"aria-labelledby":u,"aria-hidden":!l,className:g(uB)(c9.TAB_PANEL,t),id:c,role:"tabpanel"},uY.isFunction(o)?o({tabPanelId:c,tabTitleId:u}):o)}},t}(mf),wd=function(){return E.createElement("div",{className:c9.FLEX_EXPANDER})},wh=".".concat(c9.TAB),wf=function(e){function t(t){var n=e.call(this,t)||this;n.tablistElement=null,n.refHandlers={tablist:function(e){return n.tablistElement=e}},n.handleKeyDown=function(e){var t,r=uY.getArrowKeyDirection(e,["ArrowLeft","ArrowUp"],["ArrowRight","ArrowDown"]);if(void 0!==r){var i=null==(t=uY.getActiveElement(n.tablistElement))?void 0:t.closest(wh);if(i){var o=n.getTabElements('[aria-disabled="false"]'),a=o.indexOf(i);if(!(a<0)){e.preventDefault();var l=o.length;o[(a+r+l)%l].focus()}}}},n.handleKeyPress=function(e){var t=e.target.closest(wh);null!=t&&uY.isKeyboardClick(e)&&(e.preventDefault(),t.click())},n.handleTabClick=function(e,t){var r,i;null==(i=(r=n.props).onChange)||i.call(r,e,n.state.selectedTabId,t),void 0===n.props.selectedTabId&&n.setState({selectedTabId:e})},n.renderTabPanel=function(e){var t=e.props,r=t.className,i=t.panel,o=t.id,a=t.panelClassName;if(void 0!==i)return E.createElement(wc,(0,uF.__assign)({},e.props,{key:o,className:g(uB)(r,a),parentId:n.props.id,selectedTabId:n.state.selectedTabId}))},n.renderTabTitle=function(e){if(wp(e)){var t=e.props.id;return E.createElement(ws,(0,uF.__assign)({},e.props,{parentId:n.props.id,onClick:n.handleTabClick,selected:t===n.state.selectedTabId}))}return e};var r=n.getInitialSelectedTabId();return n.state={selectedTabId:r},n}return(0,uF.__extends)(t,e),t.getDerivedStateFromProps=function(e){var t=e.selectedTabId;return void 0!==t?{selectedTabId:t}:null},t.prototype.render=function(){var e,t=this.props,n=t.animate,r=t.children,i=t.className,o=t.fill,a=t.large,l=t.renderActiveTabPanelOnly,s=t.size,u=t.vertical,c=this.state,d=c.indicatorWrapperStyle,h=c.selectedTabId,f=E.Children.map(r,this.renderTabTitle),p=this.getTabChildren().filter(l?function(e){return e.props.id===h}:function(){return!0}).map(this.renderTabPanel),m=n?E.createElement("div",{className:c9.TAB_INDICATOR_WRAPPER,style:d},E.createElement("div",{className:c9.TAB_INDICATOR})):null,v=g(uB)(c9.TABS,i,((e={})[c9.VERTICAL]=u,e[c9.FILL]=o,e)),y=g(uB)(c9.TAB_LIST,c9.sizeClass(void 0===s?"medium":s,{large:a}));return E.createElement("div",{className:v},E.createElement("div",{className:y,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,ref:this.refHandlers.tablist,role:"tablist"},m,f),p)},t.prototype.componentDidMount=function(){this.moveSelectionIndicator(!1)},t.prototype.componentDidUpdate=function(e,t){this.state.selectedTabId!==t.selectedTabId?this.moveSelectionIndicator():null!=t.selectedTabId&&(uY.arraysEqual(this.getTabChildrenProps(e),this.getTabChildrenProps(),uY.shallowCompareKeys)||this.moveSelectionIndicator())},t.prototype.getInitialSelectedTabId=function(){var e=this.props,t=e.defaultSelectedTabId,n=e.selectedTabId;if(void 0!==n)return n;if(void 0!==t)return t;var r=this.getTabChildren();return 0===r.length?void 0:r[0].props.id},t.prototype.getTabChildrenProps=function(e){return void 0===e&&(e=this.props),this.getTabChildren(e).map(function(e){return e.props})},t.prototype.getTabChildren=function(e){return void 0===e&&(e=this.props),E.Children.toArray(e.children).filter(wp)},t.prototype.getTabElements=function(e){return(void 0===e&&(e=""),null==this.tablistElement)?[]:Array.from(this.tablistElement.querySelectorAll(wh+e))},t.prototype.moveSelectionIndicator=function(e){if(void 0===e&&(e=!0),null!=this.tablistElement&&this.props.animate){var t="".concat(wh,'[data-tab-id="').concat(this.state.selectedTabId,'"]'),n=this.tablistElement.querySelector(t),r={display:"none"};if(null!=n){var i=n.clientHeight,o=n.clientWidth,a=n.offsetLeft,l=n.offsetTop;r={height:i,transform:"translateX(".concat(Math.floor(a),"px) translateY(").concat(Math.floor(l),"px)"),width:o},e||(r.transition="none")}this.setState({indicatorWrapperStyle:r})}},t.Expander=wd,t.Tab=wo,t.defaultProps={animate:!0,fill:!1,large:!1,renderActiveTabPanelOnly:!1,size:"medium",vertical:!1},t.displayName="".concat(gY,".Tabs"),t}(mf);function wp(e){return uY.isElementOfType(e,wo)}var E=x("8NFma"),wg={};Object.defineProperty(wg,"__esModule",{value:!0}),wg.ReactCSS=wg.loop=wg.handleActive=wg.handleHover=wg.hover=void 0;var wm={};Object.defineProperty(wm,"__esModule",{value:!0}),wm.flattenNames=void 0;var wv=x("h1l7t"),wy=x("5V8oz"),wb=x("hcK5n"),wx=_W(function(e){return"string"==typeof e||!wy(e)&&wb(e)&&"[object String]"==wv(e)}),ww={},wC=x("4V1MN"),w_=x("4hKXW"),wS=_W(ww=function(e,t){return e&&wC(e,w_(t))}),wE={},wv=x("h1l7t"),wk={};wk=x("blfKu")(Object.getPrototypeOf,Object);var wb=x("hcK5n"),wO=Object.prototype,wP=Function.prototype.toString,wT=wO.hasOwnProperty,wA=wP.call(Object),wj=_W(wE=function(e){if(!wb(e)||"[object Object]"!=wv(e))return!1;var t=wk(e);if(null===t)return!0;var n=wT.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&wP.call(n)==wA}),wL={};wL=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};var wR={},wN={},wM={},wI={},wD={},wz={};wz=function(){this.__data__=[],this.size=0};var wF={},wB={},wH={};wH=function(e,t){return e===t||e!=e&&t!=t},wB=function(e,t){for(var n=e.length;n--;)if(wH(e[n][0],t))return n;return -1};var wV=Array.prototype.splice;wF=function(e){var t=this.__data__,n=wB(t,e);return!(n<0)&&(n==t.length-1?t.pop():wV.call(t,n,1),--this.size,!0)};var wU={};wU=function(e){var t=this.__data__,n=wB(t,e);return n<0?void 0:t[n][1]};var wG={};wG=function(e){return wB(this.__data__,e)>-1};var wq={};function w$(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wq=function(e,t){var n=this.__data__,r=wB(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},w$.prototype.clear=wz,w$.prototype.delete=wF,w$.prototype.get=wU,w$.prototype.has=wG,w$.prototype.set=wq,wD=w$;var wW={};wW=function(){this.__data__=new wD,this.size=0};var wY={};wY=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var wX={};wX=function(e){return this.__data__.get(e)};var wK={};wK=function(e){return this.__data__.has(e)};var wZ={},wQ={},wJ={},w0={},w1=x("1F4Th"),w2={},w3={},w4=x("eeOBM");w3=w4["__core-js_shared__"];var w8=(j1=/[^.]+$/.exec(w3&&w3.keys&&w3.keys.IE_PROTO||""))?"Symbol(src)_1."+j1:"";w2=function(e){return!!w8&&w8 in e};var w6=x("kNSK3"),w5={},w9=Function.prototype.toString;w5=function(e){if(null!=e){try{return w9.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var w7=/^\[object .+?Constructor\]$/,Ce=Object.prototype,Ct=Function.prototype.toString,Cn=Ce.hasOwnProperty,Cr=RegExp("^"+Ct.call(Cn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");w0=function(e){return!(!w6(e)||w2(e))&&(w1(e)?Cr:w7).test(w5(e))};var Ci={};Ci=function(e,t){return null==e?void 0:e[t]},wJ=function(e,t){var n=Ci(e,t);return w0(n)?n:void 0};var w4=x("eeOBM");wQ=wJ(w4,"Map");var Co={},Ca={},Cl={},Cs={},Cu={};Cu=wJ(Object,"create"),Cs=function(){this.__data__=Cu?Cu(null):{},this.size=0};var Cc={};Cc=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t};var Cd={},Ch=Object.prototype.hasOwnProperty;Cd=function(e){var t=this.__data__;if(Cu){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ch.call(t,e)?t[e]:void 0};var Cf={},Cp=Object.prototype.hasOwnProperty;Cf=function(e){var t=this.__data__;return Cu?void 0!==t[e]:Cp.call(t,e)};var Cg={};function Cm(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Cg=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Cu&&void 0===t?"__lodash_hash_undefined__":t,this},Cm.prototype.clear=Cs,Cm.prototype.delete=Cc,Cm.prototype.get=Cd,Cm.prototype.has=Cf,Cm.prototype.set=Cg,Cl=Cm,Ca=function(){this.size=0,this.__data__={hash:new Cl,map:new(wQ||wD),string:new Cl}};var Cv={},Cy={},Cb={};Cb=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},Cy=function(e,t){var n=e.__data__;return Cb(t)?n["string"==typeof t?"string":"hash"]:n.map},Cv=function(e){var t=Cy(this,e).delete(e);return this.size-=!!t,t};var Cx={};Cx=function(e){return Cy(this,e).get(e)};var Cw={};Cw=function(e){return Cy(this,e).has(e)};var CC={};function C_(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function CS(e){var t=this.__data__=new wD(e);this.size=t.size}CC=function(e,t){var n=Cy(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this},C_.prototype.clear=Ca,C_.prototype.delete=Cv,C_.prototype.get=Cx,C_.prototype.has=Cw,C_.prototype.set=CC,Co=C_,wZ=function(e,t){var n=this.__data__;if(n instanceof wD){var r=n.__data__;if(!wQ||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Co(r)}return n.set(e,t),this.size=n.size,this},CS.prototype.clear=wW,CS.prototype.delete=wY,CS.prototype.get=wX,CS.prototype.has=wK,CS.prototype.set=wZ,wI=CS;var CE={},Ck={},CO={},CP={},CT={};CT=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var CA={};function Cj(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Co;++t<n;)this.add(e[t])}CA=function(e){return this.__data__.has(e)},Cj.prototype.add=Cj.prototype.push=CT,Cj.prototype.has=CA,CP=Cj;var CL={};CL=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var CR={};CR=function(e,t){return e.has(t)},CO=function(e,t,n,r,i,o){var a=1&n,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,h=!0,f=2&n?new CP:void 0;for(o.set(e,t),o.set(t,e);++d<l;){var p=e[d],g=t[d];if(r)var m=a?r(g,p,d,t,e,o):r(p,g,d,e,t,o);if(void 0!==m){if(m)continue;h=!1;break}if(f){if(!CL(t,function(e,t){if(!CR(f,t)&&(p===e||i(p,e,n,r,o)))return f.push(t)})){h=!1;break}}else if(!(p===g||i(p,g,n,r,o))){h=!1;break}}return o.delete(e),o.delete(t),h};var CN={},CM=x("4Cb5x"),CI={},w4=x("eeOBM");CI=w4.Uint8Array;var CD={};CD=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};var Cz={};Cz=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n};var CF=CM?CM.prototype:void 0,CB=CF?CF.valueOf:void 0;CN=function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!o(new CI(e),new CI(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return wH(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=CD;case"[object Set]":var s=1&r;if(l||(l=Cz),e.size!=t.size&&!s)break;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=CO(l(e),l(t),r,i,o,a);return a.delete(e),c;case"[object Symbol]":if(CB)return CB.call(e)==CB.call(t)}return!1};var CH={},CV={},CU={},CG={};CG=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};var wy=x("5V8oz");CU=function(e,t,n){var r=t(e);return wy(e)?r:CG(r,n(e))};var Cq={},C$={};C$=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o};var CW={};CW=function(){return[]};var CY=Object.prototype.propertyIsEnumerable,CX=Object.getOwnPropertySymbols;Cq=CX?function(e){return null==e?[]:(e=Object(e),C$(CX(e),function(t){return CY.call(e,t)}))}:CW;var CK=x("8R54q");CV=function(e){return CU(e,CK,Cq)};var CZ=Object.prototype.hasOwnProperty;CH=function(e,t,n,r,i,o){var a=1&n,l=CV(e),s=l.length;if(s!=CV(t).length&&!a)return!1;for(var u=s;u--;){var c=l[u];if(!(a?c in t:CZ.call(t,c)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var f=!0;o.set(e,t),o.set(t,e);for(var p=a;++u<s;){var g=e[c=l[u]],m=t[c];if(r)var v=a?r(m,g,c,t,e,o):r(g,m,c,e,t,o);if(!(void 0===v?g===m||i(g,m,n,r,o):v)){f=!1;break}p||(p="constructor"==c)}if(f&&!p){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(f=!1)}return o.delete(e),o.delete(t),f};var CQ={},CJ={},w4=x("eeOBM");CJ=wJ(w4,"DataView");var C0={},w4=x("eeOBM");C0=wJ(w4,"Promise");var C1={},w4=x("eeOBM");C1=wJ(w4,"Set");var C2={},w4=x("eeOBM");C2=wJ(w4,"WeakMap");var wv=x("h1l7t"),C3="[object Map]",C4="[object Promise]",C8="[object Set]",C6="[object WeakMap]",C5="[object DataView]",C9=w5(CJ),C7=w5(wQ),_e=w5(C0),_t=w5(C1),_n=w5(C2),_r=wv;(CJ&&_r(new CJ(new ArrayBuffer(1)))!=C5||wQ&&_r(new wQ)!=C3||C0&&_r(C0.resolve())!=C4||C1&&_r(new C1)!=C8||C2&&_r(new C2)!=C6)&&(_r=function(e){var t=wv(e),n="[object Object]"==t?e.constructor:void 0,r=n?w5(n):"";if(r)switch(r){case C9:return C5;case C7:return C3;case _e:return C4;case _t:return C8;case _n:return C6}return t}),CQ=_r;var wy=x("5V8oz"),_i=x("9e2tS"),_o=x("fAXjB"),_a="[object Arguments]",_l="[object Array]",_s="[object Object]",_u=Object.prototype.hasOwnProperty;Ck=function(e,t,n,r,i,o){var a=wy(e),l=wy(t),s=a?_l:CQ(e),u=l?_l:CQ(t);s=s==_a?_s:s,u=u==_a?_s:u;var c=s==_s,d=u==_s,h=s==u;if(h&&_i(e)){if(!_i(t))return!1;a=!0,c=!1}if(h&&!c)return o||(o=new wI),a||_o(e)?CO(e,t,n,r,i,o):CN(e,t,s,n,r,i,o);if(!(1&n)){var f=c&&_u.call(e,"__wrapped__"),p=d&&_u.call(t,"__wrapped__");if(f||p){var g=f?e.value():e,m=p?t.value():t;return o||(o=new wI),i(g,m,n,r,o)}}return!!h&&(o||(o=new wI),CH(e,t,n,r,i,o))};var wb=x("hcK5n");CE=function e(t,n,r,i,o){return t===n||(null!=t&&null!=n&&(wb(t)||wb(n))?Ck(t,n,r,i,e,o):t!=t&&n!=n)},wM=function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var l=n[i];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){var s=(l=n[i])[0],u=e[s],c=l[1];if(a&&l[2]){if(void 0===u&&!(s in e))return!1}else{var d=new wI;if(r)var h=r(u,c,s,e,t,d);if(!(void 0===h?CE(c,u,3,r,d):h))return!1}}return!0};var _c={},_d={},w6=x("kNSK3");_d=function(e){return e==e&&!w6(e)};var CK=x("8R54q");_c=function(e){for(var t=CK(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,_d(i)]}return t};var _h={};_h=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},wN=function(e){var t=_c(e);return 1==t.length&&t[0][2]?_h(t[0][0],t[0][1]):function(n){return n===e||wM(n,e,t)}};var _f={},_p={},_g={},_m={},wy=x("5V8oz"),_v={},wy=x("5V8oz"),_y={},wv=x("h1l7t"),wb=x("hcK5n");_y=function(e){return"symbol"==typeof e||wb(e)&&"[object Symbol]"==wv(e)};var _b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_x=/^\w*$/;_v=function(e,t){if(wy(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||_y(e))||_x.test(e)||!_b.test(e)||null!=t&&e in Object(t)};var _w={},_C={};function __(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(__.Cache||Co),n}__.Cache=Co,_C=__;var _S=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_E=/\\(\\)?/g;_w=function(e){var t=_C(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(_S,function(e,n,r,i){t.push(r?i.replace(_E,"$1"):n||e)}),t});var _k={},_O={},CM=x("4Cb5x"),wy=x("5V8oz"),_P=1/0,_T=CM?CM.prototype:void 0,_A=_T?_T.toString:void 0;_O=function e(t){if("string"==typeof t)return t;if(wy(t))return wL(t,e)+"";if(_y(t))return _A?_A.call(t):"";var n=t+"";return"0"==n&&1/t==-_P?"-0":n},_k=function(e){return null==e?"":_O(e)},_m=function(e,t){return wy(e)?e:_v(e,t)?[e]:_w(_k(e))};var _j={},_L=1/0;_j=function(e){if("string"==typeof e||_y(e))return e;var t=e+"";return"0"==t&&1/e==-_L?"-0":t},_g=function(e,t){t=_m(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[_j(t[n++])];return n&&n==r?e:void 0},_p=function(e,t,n){var r=null==e?void 0:_g(e,t);return void 0===r?n:r};var _R={},_N={};_N=function(e,t){return null!=e&&t in Object(e)};var _M={},_I=x("4rbI4"),wy=x("5V8oz"),_D=x("74Ail"),_z=x("2zEBJ");_M=function(e,t,n){t=_m(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=_j(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&_z(i)&&_D(a,i)&&(wy(e)||_I(e))},_R=function(e,t){return null!=e&&_M(e,t,_N)},_f=function(e,t){return _v(e)&&_d(t)?_h(_j(e),t):function(n){var r=_p(n,e);return void 0===r&&r===t?_R(n,e):CE(t,r,3)}};var _F=x("38wdc"),wy=x("5V8oz"),_B={},_H={};_H=function(e){return function(t){return null==t?void 0:t[e]}};var _V={};_V=function(e){return function(t){return _g(t,e)}},_B=function(e){return _v(e)?_H(_j(e)):_V(e)},wR=function(e){return"function"==typeof e?e:null==e?_F:"object"==typeof e?wy(e)?_f(e[0],e[1]):wN(e):_B(e)};var _U={},_G=x("gl8yj"),_q=x("iiJxK");_U=function(e,t){var n=-1,r=_q(e)?Array(e.length):[];return _G(e,function(e,i,o){r[++n]=t(e,i,o)}),r};var wy=x("5V8oz"),_$=_W(function(e,t){return(wy(e)?wL:_U)(e,wR(t,3))});function _W(e){return e&&e.__esModule?e:{default:e}}var _Y=wm.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,_$.default)(t,function(t){Array.isArray(t)?e(t).map(function(e){return n.push(e)}):(0,wj.default)(t)?(0,wS.default)(t,function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)}):(0,wx.default)(t)&&n.push(t)}),n};wm.default=_Y;var _X=S6(wm),_K={};Object.defineProperty(_K,"__esModule",{value:!0}),_K.mergeClasses=void 0;var _Z=SD(ww),_Q={},_J=x("eQpse"),_0={},_1={},_2={};_2=function(){try{var e=wJ(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),_1=function(e,t,n){"__proto__"==t&&_2?_2(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var _3=Object.prototype.hasOwnProperty;_0=function(e,t,n){var r=e[t];_3.call(e,t)&&wH(r,n)&&(void 0!==n||t in e)||_1(e,t,n)};var _4={},_8={};_8=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var l=t[o],s=r?r(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),i?_1(n,l,s):_0(n,l,s)}return n};var CK=x("8R54q");_4=function(e,t){return e&&_8(t,CK(t),e)};var _6={},_5={},_9=x("hopFG"),_7={},w6=x("kNSK3"),Se=x("dWAd9"),St={};St=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var Sn=Object.prototype.hasOwnProperty;_7=function(e){if(!w6(e))return St(e);var t=Se(e),n=[];for(var r in e)"constructor"==r&&(t||!Sn.call(e,r))||n.push(r);return n};var _q=x("iiJxK");_5=function(e){return _q(e)?_9(e,!0):_7(e)},_6=function(e,t){return e&&_8(t,_5(t),e)};var Sr=x("lJ72B"),Si={};Si=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var So={};So=function(e,t){return _8(e,Cq(e),t)};var Sa={},Sl={};Sl=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)CG(t,Cq(e)),e=wk(e);return t}:CW,Sa=function(e,t){return _8(e,Sl(e),t)};var Ss={};Ss=function(e){return CU(e,_5,Sl)};var Su={},Sc=Object.prototype.hasOwnProperty;Su=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Sc.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var Sd={},Sh={};Sh=function(e){var t=new e.constructor(e.byteLength);return new CI(t).set(new CI(e)),t};var Sf={};Sf=function(e,t){var n=t?Sh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var Sp={},Sg=/\w*$/;Sp=function(e){var t=new e.constructor(e.source,Sg.exec(e));return t.lastIndex=e.lastIndex,t};var Sm={},CM=x("4Cb5x"),Sv=CM?CM.prototype:void 0,Sy=Sv?Sv.valueOf:void 0;Sm=function(e){return Sy?Object(Sy.call(e)):{}};var Sb={};Sb=function(e,t){var n=t?Sh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},Sd=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return Sh(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return Sf(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Sb(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return Sp(e);case"[object Symbol]":return Sm(e)}};var Sx={},Sw={},w6=x("kNSK3"),SC=Object.create;Sw=function(){function e(){}return function(t){if(!w6(t))return{};if(SC)return SC(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Se=x("dWAd9");Sx=function(e){return"function"!=typeof e.constructor||Se(e)?{}:Sw(wk(e))};var wy=x("5V8oz"),_i=x("9e2tS"),S_={},SS={},wb=x("hcK5n");SS=function(e){return wb(e)&&"[object Map]"==CQ(e)};var SE=x("cLhdb"),Sk=x("fwpsA"),SO=Sk&&Sk.isMap;S_=SO?SE(SO):SS;var w6=x("kNSK3"),SP={},ST={},wb=x("hcK5n");ST=function(e){return wb(e)&&"[object Set]"==CQ(e)};var SE=x("cLhdb"),Sk=x("fwpsA"),SA=Sk&&Sk.isSet;SP=SA?SE(SA):ST;var CK=x("8R54q"),Sj="[object Arguments]",SL="[object Function]",SR="[object Object]",SN={};SN[Sj]=SN["[object Array]"]=SN["[object ArrayBuffer]"]=SN["[object DataView]"]=SN["[object Boolean]"]=SN["[object Date]"]=SN["[object Float32Array]"]=SN["[object Float64Array]"]=SN["[object Int8Array]"]=SN["[object Int16Array]"]=SN["[object Int32Array]"]=SN["[object Map]"]=SN["[object Number]"]=SN[SR]=SN["[object RegExp]"]=SN["[object Set]"]=SN["[object String]"]=SN["[object Symbol]"]=SN["[object Uint8Array]"]=SN["[object Uint8ClampedArray]"]=SN["[object Uint16Array]"]=SN["[object Uint32Array]"]=!0,SN["[object Error]"]=SN[SL]=SN["[object WeakMap]"]=!1,_Q=function e(t,n,r,i,o,a){var l,s=1&n,u=2&n,c=4&n;if(r&&(l=o?r(t,i,o,a):r(t)),void 0!==l)return l;if(!w6(t))return t;var d=wy(t);if(d){if(l=Su(t),!s)return Si(t,l)}else{var h=CQ(t),f=h==SL||"[object GeneratorFunction]"==h;if(_i(t))return Sr(t,s);if(h==SR||h==Sj||f&&!o){if(l=u||f?{}:Sx(t),!s)return u?Sa(t,_6(l,t)):So(t,_4(l,t))}else{if(!SN[h])return o?t:{};l=Sd(t,h,s)}}a||(a=new wI);var p=a.get(t);if(p)return p;a.set(t,l),SP(t)?t.forEach(function(i){l.add(e(i,n,r,i,t,a))}):S_(t)&&t.forEach(function(i,o){l.set(o,e(i,n,r,o,t,a))});var g=c?u?Ss:CV:u?_5:CK,m=d?void 0:g(t);return _J(m||t,function(i,o){m&&(i=t[o=i]),_0(l,o,e(i,n,r,o,t,a))}),l};var SM=SD(function(e){return _Q(e,5)}),SI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function SD(e){return e&&e.__esModule?e:{default:e}}var Sz=_K.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,SM.default)(e.default)||{};return t.map(function(t){var r=e[t];return r&&(0,_Z.default)(r,function(e,t){n[t]||(n[t]={}),n[t]=SI({},n[t],r[t])}),t}),n};_K.default=Sz;var SF=S6(_K),SB={};Object.defineProperty(SB,"__esModule",{value:!0}),SB.autoprefix=void 0;var SH=(jO=ww)&&jO.__esModule?jO:{default:jO},SV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SU={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},SG=SB.autoprefix=function(e){var t={};return(0,SH.default)(e,function(e,n){var r={};(0,SH.default)(e,function(e,t){var n=SU[t];n?r=SV({},r,n(e)):r[t]=e}),t[n]=r}),t};SB.default=SG;var Sq=S6(SB),S$={};Object.defineProperty(S$,"__esModule",{value:!0}),S$.hover=void 0;var SW=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=x("8NFma"),SY=(jP=E)&&jP.__esModule?jP:{default:jP};function SX(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var SK=S$.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span",n=SY.default.Component;if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function, not "+typeof n);function r(){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");for(var n,i,o,a=arguments.length,l=Array(a),s=0;s<a;s++)l[s]=arguments[s];return i=o=SX(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(l))),o.state={hover:!1},o.handleMouseOver=function(){return o.setState({hover:!0})},o.handleMouseOut=function(){return o.setState({hover:!1})},o.render=function(){return SY.default.createElement(t,{onMouseOver:o.handleMouseOver,onMouseOut:o.handleMouseOut},SY.default.createElement(e,SW({},o.props,o.state)))},SX(o,i)}return r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n),r};S$.default=SK;var SZ=S6(S$),SQ={};Object.defineProperty(SQ,"__esModule",{value:!0}),SQ.active=void 0;var SJ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=x("8NFma"),S0=(jT=E)&&jT.__esModule?jT:{default:jT};function S1(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var S2=SQ.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span",n=S0.default.Component;if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function, not "+typeof n);function r(){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");for(var n,i,o,a=arguments.length,l=Array(a),s=0;s<a;s++)l[s]=arguments[s];return i=o=S1(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(l))),o.state={active:!1},o.handleMouseDown=function(){return o.setState({active:!0})},o.handleMouseUp=function(){return o.setState({active:!1})},o.render=function(){return S0.default.createElement(t,{onMouseDown:o.handleMouseDown,onMouseUp:o.handleMouseUp},S0.default.createElement(e,SJ({},o.props,o.state)))},S1(o,i)}return r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n),r};SQ.default=S2;var S3=S6(SQ),S4={};Object.defineProperty(S4,"__esModule",{value:!0}),S4.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n};var S8=S6(S4);function S6(e){return e&&e.__esModule?e:{default:e}}wg.hover=SZ.default,wg.handleHover=SZ.default,wg.handleActive=S3.default,wg.loop=S8.default;var S5=wg.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=(0,_X.default)(n),o=(0,SF.default)(e,i);return(0,Sq.default)(o)};wg.default=S5;var S9={},S7={},Ee={};Ee=function(e,t,n){(void 0===n||wH(e[t],n))&&(void 0!==n||t in e)||_1(e,t,n)};var Et=x("e3j3J"),En={},Sr=x("lJ72B"),_I=x("4rbI4"),wy=x("5V8oz"),Er={},_q=x("iiJxK"),wb=x("hcK5n");Er=function(e){return wb(e)&&_q(e)};var _i=x("9e2tS"),w1=x("1F4Th"),w6=x("kNSK3"),_o=x("fAXjB"),Ei={};Ei=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var Eo={};Eo=function(e){return _8(e,_5(e))},En=function(e,t,n,r,i,o,a){var l=Ei(e,n),s=Ei(t,n),u=a.get(s);if(u)return void Ee(e,n,u);var c=o?o(l,s,n+"",e,t,a):void 0,d=void 0===c;if(d){var h=wy(s),f=!h&&_i(s),p=!h&&!f&&_o(s);c=s,h||f||p?wy(l)?c=l:Er(l)?c=Si(l):f?(d=!1,c=Sr(s,!0)):p?(d=!1,c=Sb(s,!0)):c=[]:wE(s)||_I(s)?(c=l,_I(l)?c=Eo(l):(!w6(l)||w1(l))&&(c=Sx(s))):d=!1}d&&(a.set(s,c),i(c,s,r,o,a),a.delete(s)),Ee(e,n,c)};var w6=x("kNSK3");S7=function e(t,n,r,i,o){t!==n&&Et(n,function(a,l){if(o||(o=new wI),w6(a))En(t,n,l,r,e,i,o);else{var s=i?i(Ei(t,l),a,l+"",t,n,o):void 0;void 0===s&&(s=a),Ee(t,l,s)}},_5)};var Ea={},_F=x("38wdc"),El={},Es={};Es=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var Eu=Math.max;El=function(e,t,n){return t=Eu(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Eu(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(a),Es(e,this,l)}};var Ec={},Ed={};Ed=function(e){return function(){return e}};var _F=x("38wdc"),Eh=Date.now;Ec=function(e){var t=0,n=0;return function(){var r=Eh(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(_2?function(e,t){return _2(e,"toString",{configurable:!0,enumerable:!1,value:Ed(t),writable:!0})}:_F),Ea=function(e,t){return Ec(El(e,t,_F),e+"")};var Ef={},_q=x("iiJxK"),_D=x("74Ail"),w6=x("kNSK3");Ef=function(e,t,n){if(!w6(n))return!1;var r=typeof t;return("number"==r?!!(_q(n)&&_D(t,n.length)):"string"==r&&t in n)&&wH(n[t],e)},S9=function(e){return Ea(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&Ef(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,o)}return t})}(function(e,t,n){S7(e,t,n)});var Ep={},E=(x("8NFma"),x("8NFma")),Eg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Em=E.createContext&&E.createContext(Eg),Ev=function(){return(Ev=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Ey=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Eb(e){return function(t){return E.createElement(Ex,Ev({attr:Ev({},e.attr)},t,{hasStrokes:function e(t){for(var n in t)if("_"!==n[0]){if("stroke"===n)return!0;else if("object"==typeof t[n]){var r=e(t[n]);if(r)return r}else if("content"===n&&"style"===t.tag&&t[n].includes("stroke:"))return!0}return!1}(e)}),function e(t){return t&&t.map(function(t,n){return E.createElement(t.tag,Ev({key:n},t.attr),e(t.child))})}(e.child))}}function Ex(e){var t=function(t){var n,r=e.size||t.size||"1em";t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className);var i=e.attr,o=e.fill,a=e.title,l=e.hasStrokes,s=Ey(e,["attr","fill","title","hasStrokes"]);return E.createElement("svg",Ev({stroke:"currentColor",fill:o},l?null:{strokeWidth:0},t.attr,i,s,{className:n,style:Ev(Ev({color:e.color||t.color},t.style),e.style),height:r,width:r,xmlns:"http://www.w3.org/2000/svg"}),a&&E.createElement("title",null,a),e.children)};return void 0!==Em?E.createElement(Em.Consumer,null,function(e){return t(e)}):t(Eg)}Ep=function(e){return Eb({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M20.3847 2.87868C19.2132 1.70711 17.3137 1.70711 16.1421 2.87868L14.0202 5.00052L13.313 4.29332C12.9225 3.9028 12.2894 3.9028 11.8988 4.29332C11.5083 4.68385 11.5083 5.31701 11.8988 5.70754L17.5557 11.3644C17.9462 11.7549 18.5794 11.7549 18.9699 11.3644C19.3604 10.9739 19.3604 10.3407 18.9699 9.95018L18.2629 9.24316L20.3847 7.12132C21.5563 5.94975 21.5563 4.05025 20.3847 2.87868Z",fill:"currentColor"}},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9297 7.09116L4.1515 14.8693C3.22786 15.793 3.03239 17.169 3.5651 18.2842L1.99994 19.8493L3.41415 21.2635L4.97931 19.6984C6.09444 20.2311 7.4705 20.0356 8.39414 19.112L16.1723 11.3338L11.9297 7.09116ZM13.3439 11.3338L11.9297 9.91959L5.56571 16.2835C5.17518 16.6741 5.17518 17.3072 5.56571 17.6978C5.95623 18.0883 6.5894 18.0883 6.97992 17.6978L13.3439 11.3338Z",fill:"currentColor"}}],content:"\n"})(e)};var Ew={};Object.defineProperty(Ew,"__esModule",{value:!0});var EC={};Object.defineProperty(EC,"__esModule",{value:!0}),EC.Alpha=void 0;var E_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ES=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=x("8NFma"),EE=EB(E),Ek=EB(wg),EO={};Object.defineProperty(EO,"__esModule",{value:!0}),EO.calculateChange=function(e,t,n,r,i){var o=i.clientWidth,a=i.clientHeight,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=l-(i.getBoundingClientRect().left+window.pageXOffset),c=s-(i.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var d=void 0;if(d=c<0?0:c>a?1:Math.round(100*c/a)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var h=void 0;if(r!==(h=u<0?0:u>o?1:Math.round(100*u/o)/100))return{h:t.h,s:t.s,l:t.l,a:h,source:"rgb"}}return null};var EP=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(EO),ET={};Object.defineProperty(ET,"__esModule",{value:!0}),ET.Checkboard=void 0;var EA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=x("8NFma"),Ej=ED(E),EL=ED(wg),ER={};Object.defineProperty(ER,"__esModule",{value:!0});var EN={},EM=ER.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=2*n,i.height=2*n;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null};ER.get=function(e,t,n,r){var i=e+"-"+t+"-"+n+(r?"-server":"");if(EN[i])return EN[i];var o=EM(e,t,n,r);return EN[i]=o,o};var EI=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(ER);function ED(e){return e&&e.__esModule?e:{default:e}}var Ez=ET.Checkboard=function(e){var t=e.white,n=e.grey,r=e.size,i=e.renderers,o=e.borderRadius,a=e.boxShadow,l=e.children,s=(0,EL.default)({default:{grid:{borderRadius:o,boxShadow:a,absolute:"0px 0px 0px 0px",background:"url("+EI.get(t,n,r,i.canvas)+") center left"}}});return(0,E.isValidElement)(l)?Ej.default.cloneElement(l,EA({},l.props,{style:EA({},l.props.style,s.grid)})):Ej.default.createElement("div",{style:s.grid})};Ez.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},ET.default=Ez;var EF=EB(ET);function EB(e){return e&&e.__esModule?e:{default:e}}function EH(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var EV=EC.Alpha=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var e,n,r,i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=EH(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=EP.calculateChange(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},EH(r,n)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),ES(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,Ek.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:E_({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return EE.default.createElement("div",{style:n.alpha},EE.default.createElement("div",{style:n.checkboard},EE.default.createElement(EF.default,{renderers:this.props.renderers})),EE.default.createElement("div",{style:n.gradient}),EE.default.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},EE.default.createElement("div",{style:n.pointer},this.props.pointer?EE.default.createElement(this.props.pointer,this.props):EE.default.createElement("div",{style:n.slider}))))}}]),t}(E.PureComponent||E.Component);EC.default=EV,Object.defineProperty(Ew,"Alpha",{enumerable:!0,get:function(){return kY(EC).default}}),Object.defineProperty(Ew,"Checkboard",{enumerable:!0,get:function(){return kY(ET).default}});var EU={};Object.defineProperty(EU,"__esModule",{value:!0}),EU.EditableInput=void 0;var EG=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=x("8NFma"),Eq=EW(E),E$=EW(wg);function EW(e){return e&&e.__esModule?e:{default:e}}var EY=[38,40],EX=1,EK=EU.EditableInput=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=Number(String(e.target.value).replace(/%/g,""));if(!isNaN(r)&&(t=e.keyCode,EY.indexOf(t)>-1)){var i=n.getArrowOffset(),o=38===e.keyCode?r+i:r-i;n.setUpdatedValue(o,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+EX++,n}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),EG(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value!==this.state.value&&(e.value!==this.props.value||t.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){var t,n;return t={},n=this.props.label,n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,E$.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return Eq.default.createElement("div",{style:t.wrap},Eq.default.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?Eq.default.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(E.PureComponent||E.Component);EU.default=EK,Object.defineProperty(Ew,"EditableInput",{enumerable:!0,get:function(){return kY(EU).default}});var EZ={};Object.defineProperty(EZ,"__esModule",{value:!0}),EZ.Hue=void 0;var EQ=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=x("8NFma"),EJ=E3(E),E0=E3(wg),E1={};Object.defineProperty(E1,"__esModule",{value:!0}),E1.calculateChange=function(e,t,n,r){var i=r.clientWidth,o=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c=void 0;if(c=u<0?359:u>o?0:360*(-(100*u/o)+100)/100,n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d=void 0;if(d=s<0?0:s>i?359:100*s/i*360/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null};var E2=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(E1);function E3(e){return e&&e.__esModule?e:{default:e}}function E4(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var E8=EZ.Hue=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var e,n,r,i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=E4(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=E2.calculateChange(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},E4(r,n)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),EQ(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,E0.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(100*this.props.hsl.h/360)+100+"%"}}},{vertical:"vertical"===n});return EJ.default.createElement("div",{style:r.hue},EJ.default.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},EJ.default.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),EJ.default.createElement("div",{style:r.pointer},this.props.pointer?EJ.default.createElement(this.props.pointer,this.props):EJ.default.createElement("div",{style:r.slider}))))}}]),t}(E.PureComponent||E.Component);EZ.default=E8,Object.defineProperty(Ew,"Hue",{enumerable:!0,get:function(){return kY(EZ).default}});var E6={};Object.defineProperty(E6,"__esModule",{value:!0}),E6.Raised=void 0;var E=x("8NFma"),E5=kn(E),E9={},E7=kn(E9=x("6DzO8")()),ke=kn(wg),kt=kn(S9);function kn(e){return e&&e.__esModule?e:{default:e}}var kr=E6.Raised=function(e){var t=e.zDepth,n=e.radius,r=e.background,i=e.children,o=e.styles,a=(0,ke.default)((0,kt.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:r}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},void 0===o?{}:o),{"zDepth-1":1===t});return E5.default.createElement("div",{style:a.wrap},E5.default.createElement("div",{style:a.bg}),E5.default.createElement("div",{style:a.content},i))};kr.propTypes={background:E7.default.string,zDepth:E7.default.oneOf([0,1,2,3,4,5]),radius:E7.default.number,styles:E7.default.object},kr.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},E6.default=kr,Object.defineProperty(Ew,"Raised",{enumerable:!0,get:function(){return kY(E6).default}});var ki={};Object.defineProperty(ki,"__esModule",{value:!0}),ki.Saturation=void 0;var ko=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=x("8NFma"),ka=kE(E),kl=kE(wg),ks={},w6=x("kNSK3"),ku={},w4=x("eeOBM");ku=function(){return w4.Date.now()};var kc={},kd={},kh={},kf=/\s/;kh=function(e){for(var t=e.length;t--&&kf.test(e.charAt(t)););return t};var kp=/^\s+/;kd=function(e){return e?e.slice(0,kh(e)+1).replace(kp,""):e};var w6=x("kNSK3"),kg=0/0,km=/^[-+]0x[0-9a-f]+$/i,kv=/^0b[01]+$/i,ky=/^0o[0-7]+$/i,kb=parseInt;kc=function(e){if("number"==typeof e)return e;if(_y(e))return kg;if(w6(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=w6(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=kd(e);var n=kv.test(e);return n||ky.test(e)?kb(e.slice(2),n?2:8):km.test(e)?kg:+e};var kx=Math.max,kw=Math.min;ks=function(e,t,n){var r,i,o,a,l,s,u=0,c=!1,d=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function f(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function p(e){var n=e-s,r=e-u;return void 0===s||n>=t||n<0||d&&r>=o}function g(){var e,n,r,i=ku();if(p(i))return m(i);l=setTimeout(g,(e=i-s,n=i-u,r=t-e,d?kw(r,o-n):r))}function m(e){return(l=void 0,h&&r)?f(e):(r=i=void 0,a)}function v(){var e,n=ku(),o=p(n);if(r=arguments,i=this,s=n,o){if(void 0===l)return u=e=s,l=setTimeout(g,t),c?f(e):a;if(d)return clearTimeout(l),l=setTimeout(g,t),f(s)}return void 0===l&&(l=setTimeout(g,t)),a}return t=kc(t)||0,w6(n)&&(c=!!n.leading,o=(d="maxWait"in n)?kx(kc(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=s=i=l=void 0},v.flush=function(){return void 0===l?a:m(ku())},v};var w6=x("kNSK3"),kC=kE(function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return w6(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ks(e,t,{leading:r,maxWait:t,trailing:i})}),k_={};Object.defineProperty(k_,"__esModule",{value:!0}),k_.calculateChange=function(e,t,n){var r=n.getBoundingClientRect(),i=r.width,o=r.height,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=a-(n.getBoundingClientRect().left+window.pageXOffset),u=l-(n.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>i&&(s=i),u<0?u=0:u>o&&(u=o);var c=s/i,d=1-u/o;return{h:t.h,s:c,v:d,a:t.a,source:"hsv"}};var kS=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(k_);function kE(e){return e&&e.__esModule?e:{default:e}}var kk=ki.Saturation=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,kS.calculateChange(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=(0,kC.default)(function(e,t,n){e(t,n)},50),n}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),ko(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,i=t.black,o=t.pointer,a=t.circle,l=(0,kl.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(100*this.props.hsv.v)+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:i,pointer:o,circle:a}},{custom:!!this.props.style});return ka.default.createElement("div",{style:l.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},ka.default.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),ka.default.createElement("div",{style:l.white,className:"saturation-white"},ka.default.createElement("div",{style:l.black,className:"saturation-black"}),ka.default.createElement("div",{style:l.pointer},this.props.pointer?ka.default.createElement(this.props.pointer,this.props):ka.default.createElement("div",{style:l.circle}))))}}]),t}(E.PureComponent||E.Component);ki.default=kk,Object.defineProperty(Ew,"Saturation",{enumerable:!0,get:function(){return kY(ki).default}});var kO={};Object.defineProperty(kO,"__esModule",{value:!0}),kO.ColorWrap=void 0;var kP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kT=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=x("8NFma"),kA=kz(E),kj=kz(ks),kL={};Object.defineProperty(kL,"__esModule",{value:!0}),kL.isvalidColorString=kL.red=kL.getContrastingColor=kL.isValidHex=kL.toState=kL.simpleCheckForValidColor=void 0;var kR=kM(x("2MeUa")),kN=kM(function(){function e(t){return(e="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})(t)}var t,n,r,i=/^\s+/,o=/\s+$/;function a(t,n){if(n=n||{},(t=t||"")instanceof a)return t;if(!(this instanceof a))return new a(t,n);var r,l,s,u,c,d,h,f,p,g,m,v,y,b,x,w,C,S,O,T,j=(l={r:0,g:0,b:0},s=1,u=null,c=null,d=null,h=!1,f=!1,"string"==typeof(r=t)&&(r=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,n=!1;if(_[e])e=_[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=L.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=L.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=L.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=L.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=L.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=L.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=L.hex8.exec(e))?{r:P(t[1]),g:P(t[2]),b:P(t[3]),a:P(t[4])/255,format:n?"name":"hex8"}:(t=L.hex6.exec(e))?{r:P(t[1]),g:P(t[2]),b:P(t[3]),format:n?"name":"hex"}:(t=L.hex4.exec(e))?{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),a:P(t[4]+""+t[4])/255,format:n?"name":"hex8"}:!!(t=L.hex3.exec(e))&&{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),format:n?"name":"hex"}}(r)),"object"==e(r)&&(R(r.r)&&R(r.g)&&R(r.b)?(p=r.r,g=r.g,m=r.b,l={r:255*k(p,255),g:255*k(g,255),b:255*k(m,255)},h=!0,f="%"===String(r.r).substr(-1)?"prgb":"rgb"):R(r.h)&&R(r.s)&&R(r.v)?(u=A(r.s),c=A(r.v),v=r.h,y=u,b=c,v=6*k(v,360),y=k(y,100),b=k(b,100),x=Math.floor(v),w=v-x,C=b*(1-y),S=b*(1-w*y),O=b*(1-(1-w)*y),l={r:255*[b,S,C,C,O,b][T=x%6],g:255*[O,b,b,S,C,C][T],b:255*[C,C,O,b,b,S][T]},h=!0,f="hsv"):R(r.h)&&R(r.s)&&R(r.l)&&(u=A(r.s),d=A(r.l),l=function(e,t,n){var r,i,o;function a(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=k(e,360),t=k(t,100),n=k(n,100),0===t)r=i=o=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=a(s,l,e+1/3),i=a(s,l,e),o=a(s,l,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(r.h,u,d),h=!0,f="hsl"),r.hasOwnProperty("a")&&(s=r.a)),s=E(s),{ok:h,format:r.format||f,r:Math.min(255,Math.max(l.r,0)),g:Math.min(255,Math.max(l.g,0)),b:Math.min(255,Math.max(l.b,0)),a:s});this._originalInput=t,this._r=j.r,this._g=j.g,this._b=j.b,this._a=j.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||j.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=j.ok}function l(e,t,n){e=k(e,255);var r,i,o=Math.max(e,t=k(t,255),n=k(n,255)),a=Math.min(e,t,n),l=(o+a)/2;if(o==a)r=i=0;else{var s=o-a;switch(i=l>.5?s/(2-o-a):s/(o+a),o){case e:r=(t-n)/s+6*(t<n);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:i,l:l}}function s(e,t,n){e=k(e,255);var r,i=Math.max(e,t=k(t,255),n=k(n,255)),o=Math.min(e,t,n),a=i-o;if(i==o)r=0;else{switch(i){case e:r=(t-n)/a+6*(t<n);break;case t:r=(n-e)/a+2;break;case n:r=(e-t)/a+4}r/=6}return{h:r,s:0===i?0:a/i,v:i}}function u(e,t,n,r){var i=[T(Math.round(e).toString(16)),T(Math.round(t).toString(16)),T(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function c(e,t,n,r){return[T(j(r)),T(Math.round(e).toString(16)),T(Math.round(t).toString(16)),T(Math.round(n).toString(16))].join("")}function d(e,t){t=0===t?0:t||10;var n=a(e).toHsl();return n.s-=t/100,n.s=O(n.s),a(n)}function h(e,t){t=0===t?0:t||10;var n=a(e).toHsl();return n.s+=t/100,n.s=O(n.s),a(n)}function f(e){return a(e).desaturate(100)}function p(e,t){t=0===t?0:t||10;var n=a(e).toHsl();return n.l+=t/100,n.l=O(n.l),a(n)}function g(e,t){t=0===t?0:t||10;var n=a(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(t/100*255)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(t/100*255)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(t/100*255)))),a(n)}function m(e,t){t=0===t?0:t||10;var n=a(e).toHsl();return n.l-=t/100,n.l=O(n.l),a(n)}function v(e,t){var n=a(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,a(n)}function y(e){var t=a(e).toHsl();return t.h=(t.h+180)%360,a(t)}function b(e,t){if(isNaN(t)||t<=0)throw Error("Argument to polyad must be a positive number");for(var n=a(e).toHsl(),r=[a(e)],i=360/t,o=1;o<t;o++)r.push(a({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function x(e){var t=a(e).toHsl(),n=t.h;return[a(e),a({h:(n+72)%360,s:t.s,l:t.l}),a({h:(n+216)%360,s:t.s,l:t.l})]}function w(e,t,n){t=t||6,n=n||30;var r=a(e).toHsl(),i=360/n,o=[a(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(a(r));return o}function C(e,t){t=t||6;for(var n=a(e).toHsv(),r=n.h,i=n.s,o=n.v,l=[],s=1/t;t--;)l.push(a({h:r,s:i,v:o})),o=(o+s)%1;return l}a.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*((n=r.b/255)<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=E(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=s(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=s(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=l(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return u(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t,n,r,i,o,a;return t=this._r,n=this._g,r=this._b,i=this._a,o=e,a=[T(Math.round(t).toString(16)),T(Math.round(n).toString(16)),T(Math.round(r).toString(16)),T(j(i))],o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*k(this._r,255))+"%",g:Math.round(100*k(this._g,255))+"%",b:Math.round(100*k(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*k(this._r,255))+"%, "+Math.round(100*k(this._g,255))+"%, "+Math.round(100*k(this._b,255))+"%)":"rgba("+Math.round(100*k(this._r,255))+"%, "+Math.round(100*k(this._g,255))+"%, "+Math.round(100*k(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(S[u(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+c(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=a(e);n="#"+c(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(p,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(m,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(h,arguments)},greyscale:function(){return this._applyModification(f,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(w,arguments)},complement:function(){return this._applyCombination(y,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(b,[3])},tetrad:function(){return this._applyCombination(b,[4])}},a.fromRatio=function(t,n){if("object"==e(t)){var r={};for(var i in t)t.hasOwnProperty(i)&&("a"===i?r[i]=t[i]:r[i]=A(t[i]));t=r}return a(t,n)},a.equals=function(e,t){return!!e&&!!t&&a(e).toRgbString()==a(t).toRgbString()},a.random=function(){return a.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},a.mix=function(e,t,n){n=0===n?0:n||50;var r=a(e).toRgb(),i=a(t).toRgb(),o=n/100;return a({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},a.readability=function(e,t){var n=a(e),r=a(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},a.isReadable=function(e,t,n){var r,i,o,l,s,u=a.readability(e,t);switch(s=!1,(i=((r=(r=n)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),o=(r.size||"small").toLowerCase(),"AA"!==i&&"AAA"!==i&&(i="AA"),"small"!==o&&"large"!==o&&(o="small"),l={level:i,size:o}).level+l.size){case"AAsmall":case"AAAlarge":s=u>=4.5;break;case"AAlarge":s=u>=3;break;case"AAAsmall":s=u>=7}return s},a.mostReadable=function(e,t,n){var r,i,o,l,s=null,u=0;i=(n=n||{}).includeFallbackColors,o=n.level,l=n.size;for(var c=0;c<t.length;c++)(r=a.readability(e,t[c]))>u&&(u=r,s=a(t[c]));return a.isReadable(e,s,{level:o,size:l})||!i?s:(n.includeFallbackColors=!1,a.mostReadable(e,["#fff","#000"],n))};var _=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},S=a.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(_);function E(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function k(e,t){"string"==typeof(n=e)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var n,r,i="string"==typeof(r=e)&&-1!=r.indexOf("%");return(e=Math.min(t,Math.max(0,parseFloat(e))),i&&(e=parseInt(e*t,10)/100),1e-6>Math.abs(e-t))?1:e%t/parseFloat(t)}function O(e){return Math.min(1,Math.max(0,e))}function P(e){return parseInt(e,16)}function T(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function j(e){return Math.round(255*parseFloat(e)).toString(16)}var L=(n="[\\s|\\(]+("+(t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",r="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",{CSS_UNIT:new RegExp(t),rgb:RegExp("rgb"+n),rgba:RegExp("rgba"+r),hsl:RegExp("hsl"+n),hsla:RegExp("hsla"+r),hsv:RegExp("hsv"+n),hsva:RegExp("hsva"+r),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function R(e){return!!L.CSS_UNIT.exec(e)}return a}());function kM(e){return e&&e.__esModule?e:{default:e}}kL.simpleCheckForValidColor=function(e){var t=0,n=0;return(0,kR.default)(["r","g","b","a","h","s","l","v"],function(r){e[r]&&(t+=1,isNaN(e[r])||(n+=1),("s"===r||"l"===r)&&/^\d+%$/.test(e[r])&&(n+=1))}),t===n&&e};var kI=kL.toState=function(e,t){var n=e.hex?(0,kN.default)(e.hex):(0,kN.default)(e),r=n.toHsl(),i=n.toHsv(),o=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,i.h=t||0),{hsl:r,hex:"000000"===a&&0===o.a?"transparent":"#"+a,rgb:o,hsv:i,oldHue:e.h||t||r.h,source:e.source}};kL.isValidHex=function(e){if("transparent"===e)return!0;var t=+("#"===String(e).charAt(0));return e.length!==4+t&&e.length<7+t&&(0,kN.default)(e).isValid()},kL.getContrastingColor=function(e){if(!e)return"#fff";var t=kI(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},kL.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},kL.isvalidColorString=function(e,t){var n=e.replace("°","");return(0,kN.default)(t+" ("+n+")")._ok};var kD=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(kL);function kz(e){return e&&e.__esModule?e:{default:e}}var kF=kO.ColorWrap=function(e){var t=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function n(e){if(!(this instanceof n))throw TypeError("Cannot call a class as a function");var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(kD.simpleCheckForValidColor(e)){var r=kD.toState(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(kD.simpleCheckForValidColor(e)){var r=kD.toState(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=kP({},kD.toState(e.color,0)),t.debounce=(0,kj.default)(function(e,t,n){e(t,n)},100),t}return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t),kT(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),kA.default.createElement(e,kP({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return kP({},kD.toState(e.color,t.oldHue))}}]),n}(E.PureComponent||E.Component);return t.propTypes=kP({},e.propTypes),t.defaultProps=kP({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};kO.default=kF,Object.defineProperty(Ew,"ColorWrap",{enumerable:!0,get:function(){return kY(kO).default}});var kB={};Object.defineProperty(kB,"__esModule",{value:!0}),kB.Swatch=void 0;var kH=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=x("8NFma"),kV=k$(E),kU=k$(wg),kG=x("gxGlt"),kq=k$(ET);function k$(e){return e&&e.__esModule?e:{default:e}}var kW=kB.Swatch=function(e){var t=e.color,n=e.style,r=e.onClick,i=void 0===r?function(){}:r,o=e.onHover,a=e.title,l=void 0===a?t:a,s=e.children,u=e.focus,c=e.focusStyle,d="transparent"===t,h=(0,kU.default)({default:{swatch:kH({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,u?void 0===c?{}:c:{})}}),f={};return o&&(f.onMouseOver=function(e){return o(t,e)}),kV.default.createElement("div",kH({style:h.swatch,onClick:function(e){return i(t,e)},title:l,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&i(t,e)}},f),s,d&&kV.default.createElement(kq.default,{borderRadius:h.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};function kY(e){return e&&e.__esModule?e:{default:e}}kB.default=(0,kG.handleFocus)(kW),Object.defineProperty(Ew,"Swatch",{enumerable:!0,get:function(){return kY(kB).default}});var kX={};Object.defineProperty(kX,"__esModule",{value:!0}),kX.SketchFields=void 0;var E=x("8NFma"),kK=kJ(E),kZ=kJ(wg),kQ=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(kL);function kJ(e){return e&&e.__esModule?e:{default:e}}var k0=kX.SketchFields=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,i=e.hex,o=e.disableAlpha,a=(0,kZ.default)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:o}),l=function(e,i){e.hex?kQ.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},i):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},i):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},i))};return kK.default.createElement("div",{style:a.fields,className:"flexbox-fix"},kK.default.createElement("div",{style:a.double},kK.default.createElement(Ew.EditableInput,{style:{input:a.input,label:a.label},label:"hex",value:i.replace("#",""),onChange:l})),kK.default.createElement("div",{style:a.single},kK.default.createElement(Ew.EditableInput,{style:{input:a.input,label:a.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),kK.default.createElement("div",{style:a.single},kK.default.createElement(Ew.EditableInput,{style:{input:a.input,label:a.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),kK.default.createElement("div",{style:a.single},kK.default.createElement(Ew.EditableInput,{style:{input:a.input,label:a.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),kK.default.createElement("div",{style:a.alpha},kK.default.createElement(Ew.EditableInput,{style:{input:a.input,label:a.label},label:"a",value:Math.round(100*n.a),onChange:l,dragLabel:"true",dragMax:"100"})))};kX.default=k0;var k1={};Object.defineProperty(k1,"__esModule",{value:!0}),k1.SketchPresetColors=void 0;var k2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=x("8NFma"),k3=k6(E),k4=k6(E9),k8=k6(wg);function k6(e){return e&&e.__esModule?e:{default:e}}var k5=k1.SketchPresetColors=function(e){var t=e.colors,n=e.onClick,r=void 0===n?function(){}:n,i=e.onSwatchHover,o=(0,k8.default)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),a=function(e,t){r({hex:e,source:"hex"},t)};return k3.default.createElement("div",{style:o.colors,className:"flexbox-fix"},t.map(function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return k3.default.createElement("div",{key:n,style:o.swatchWrap},k3.default.createElement(Ew.Swatch,k2({},t,{style:o.swatch,onClick:a,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))}))};k5.propTypes={colors:k4.default.arrayOf(k4.default.oneOfType([k4.default.string,k4.default.shape({color:k4.default.string,title:k4.default.string})])).isRequired},k1.default=k5;let k9=e=>{let t=g(E).useRef(e);return t.current=e,g(E).useCallback((...e)=>t.current(...e),[])};var k7=(0,Ew.ColorWrap)(({width:e=200,rgb:t,hex:n,hsv:r,hsl:i,onChange:o,onSwatchHover:a,disableAlpha:l=!1,presetColors:s=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"],renderers:u,styles:c={},className:d=""})=>{let h=(0,wg.ReactCSS)(g(S9)({default:{picker:{width:e,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:`rgba(${t.r},${t.g},${t.b},${t.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},...c},disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},c),{disableAlpha:l}),[f,p]=g(E).useState(!1),m=g(E).useRef(null),v=k9(e=>{if(f){let t=m.current?.fill();t&&o(nO.Util.colorToRGBA(t)),b(),!function(e,t){let n=e.target;for(;n;){if(n.classList.contains(t))return!0;n=n.parentElement}return!1}(e,"color-picker-button")&&p(!1),e.stopPropagation(),e.stopImmediatePropagation()}}),y=k9(e=>{if(!f)return;let t=nO.stages.find(t=>{let n=t.getContent().parentElement.parentElement.getBoundingClientRect();return n.left<e.clientX&&n.left+n.width>e.clientX&&n.top<e.clientY&&n.top+n.height>e.clientY});if(!t)return void b();let n=t.getContent().getBoundingClientRect(),r={x:e.clientX-n.left,y:e.clientY-n.top},i=t.children[0],o=i.getNativeCanvasElement(),a=i.getCanvas().getPixelRatio(),{data:l}=o.getContext("2d").getImageData(r.x*a,r.y*a,1,1),s=t.findOne(".line-guides");s.findOne(".picker")||(m.current&&m.current.destroy(),m.current=new nO.Circle({name:"picker",radius:14,stroke:"black",strokeWidth:1}),s.add(m.current)),m.current.setAbsolutePosition({x:r.x-15,y:r.y-15}),m.current.fill("rgb("+l[0]+","+l[1]+","+l[2]+")")});g(E).useEffect(()=>(window.addEventListener("mousemove",y),window.addEventListener("mousedown",v,!0),window.addEventListener("touchstart",v,!0),()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mousedown",v,!0),window.removeEventListener("touchstart",v,!0),b()}),[]),g(E).useEffect(()=>{f||b()},[f]),g(E).useEffect(()=>(f&&(document.body.style.cursor="crosshair"),()=>{document.body.style.cursor="default"}),[f]);let b=k9(()=>{m.current&&(m.current.destroy(),m.current=null)});return(0,C.jsxs)("div",{style:h.picker,className:`sketch-picker ${d}`,children:[(0,C.jsx)("div",{style:h.saturation,children:(0,C.jsx)(Ew.Saturation,{style:h.Saturation,hsl:i,hsv:r,onChange:o})}),(0,C.jsxs)("div",{style:h.controls,className:"flexbox-fix",children:[(0,C.jsxs)("div",{style:h.sliders,children:[(0,C.jsx)("div",{style:h.hue,children:(0,C.jsx)(Ew.Hue,{style:h.Hue,hsl:i,onChange:o})}),(0,C.jsx)("div",{style:h.alpha,children:(0,C.jsx)(Ew.Alpha,{style:h.Alpha,rgb:t,hsl:i,renderers:u,onChange:o})})]}),(0,C.jsxs)("div",{style:h.color,children:[(0,C.jsx)(Ew.Checkboard,{size:8,white:"transparent",grey:"rgba(0,0,0,.08)"}),(0,C.jsx)("div",{style:h.activeColor})]}),(0,C.jsx)("div",{style:h.color,children:(0,C.jsx)(mc,{icon:(0,C.jsx)(g(Ep),{}),className:"color-picker-button",minimal:!0,style:{width:"24px",height:"24px",minWidth:"24px",minHeight:"24px",padding:0,margin:0},active:f,onClickCapture:e=>{p(e=>!e),e.stopPropagation()}})})]}),(0,C.jsx)(kX.SketchFields,{rgb:t,hsl:i,hex:n,onChange:o,disableAlpha:l}),(0,C.jsx)(k1.SketchPresetColors,{colors:s,onClick:o,onSwatchHover:a})]})});let Oe=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"].reverse(),Ot=aw("div")`
361
+ `,yH=({type:e,usedItems:t,components:n})=>{let r=[];return Object.keys(n).forEach(i=>{if(0===i.toLowerCase().indexOf(e)&&i.toLowerCase()!==e){if(!n[i])return void console.error(`Polotno error: Toolbar has invalid React component "${i}"`);t.includes(i)||r.push(i)}}),t.filter(e=>!!e).concat(r)},yV=({items:e,itemRender:t})=>{let[n,r]=g(E).useState(0),i=g(E).useRef(null),o=()=>{if(null===i.current)return;let e=i.current.parentElement,t=0;[...i.current.parentElement.children].forEach(e=>{e!==i.current&&(t+=e.offsetWidth)}),r(Math.max(20,e.offsetWidth-t-10))};return g(E).useLayoutEffect(()=>{o()}),g(E).useLayoutEffect(()=>{let e=i.current.parentElement,t=e?.parentElement;if(window.ResizeObserver){let n=new ResizeObserver(o);e&&n.observe(e),t&&n.observe(t);let r=new MutationObserver(o);return e&&r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),()=>{n.disconnect(),r.disconnect()}}{let e=setInterval(o,100);return()=>clearInterval(e)}},[]),(0,C.jsx)(yB,{style:{width:n+"px"},ref:i,className:"bp5-navbar-group bp5-align-left",children:(0,C.jsx)(yI,{items:e,style:{width:"100%"},visibleItemRenderer:t,collapseFrom:"end",overflowRenderer:e=>(0,C.jsx)(yv,{content:(0,C.jsx)("div",{style:{padding:"10px",display:"flex"},children:e.map(t)}),position:da.BOTTOM,children:(0,C.jsx)(mc,{icon:(0,C.jsx)(yF,{}),minimal:!0,style:{marginLeft:"10px"},onMouseDownCapture:e=>{e.preventDefault()}})})})})};var E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),yU=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"small-cross",ref:t},e),E.createElement("path",{d:n?"M228.2 200L294 265.8C297.8 269.4 300 274.4 300 280C300 291 291 300 280 300C274.4000000000001 300 269.4000000000001 297.8 265.8 294.2L200 228.2L134.2 294.2C130.6 297.8 125.6 300 120 300C109 300 100 291 100 280C100 274.4 102.2 269.4 105.8 265.8L171.8 200L106 134.2000000000001C102.2 130.6 100 125.6 100 120C100 109 109 100 120 100C125.6 100 130.6 102.2 134.2 105.8L200 171.8L265.8 106C269.4000000000001 102.2 274.4000000000001 100 280 100C291 100 300 109 300 120C300 125.6 297.8 130.6 294.2000000000001 134.2000000000001L228.2 200z":"M188.2 160L234 205.8C237.8 209.4 240 214.4 240 220C240 231 231 240 220 240C214.4 240 209.4 237.8 205.8 234.2L160 188.2L114.2 234.2C110.6 237.8 105.6 240 100 240C89 240 80 231 80 220C80 214.4 82.2 209.4 85.8 205.8L131.8 160L86 114.2C82.2 110.6 80 105.6 80 100C80 89 89 80 100 80C105.6 80 110.6 82.2 114.2 85.8L160 131.8L205.8 86C209.4 82.2 214.4 80 220 80C231 80 240 89 240 100C240 105.6 237.8 110.6 234.2 114.2L188.2 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});yU.defaultProps={size:g6.IconSize.STANDARD},yU.displayName="Blueprint5.Icon.SmallCross";var uF=x("gztBd"),E=x("8NFma");function yG(e,t){return E.forwardRef(function(n,r){var i=n.className,o=n.children,a=(0,uF.__rest)(n,["className","children"]);return E.createElement(e,(0,uF.__assign)((0,uF.__assign)({},a),{className:g(uB)(t,i),ref:r}),o)})}yG("h1",d2),yG("h2",d2),yG("h3",d2),yG("h4",d2),yG("h5",d2);var yq=yG("h6",d2);yG("blockquote",dJ),yG("code",d0),yG("pre",d1),yG("label",fT),yG("ol",d3),yG("ul",d3);var y$=function(e){function t(t){var n=e.call(this,t)||this;n.childRef=E.createRef();var r=cY("bp-dialog");return n.titleId="title-".concat(r),n}return(0,uF.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.children,i=t.containerRef,o=t.style,a=t.title,l=t.role,s=(0,uF.__rest)(t,["className","children","containerRef","style","title","role"]);return E.createElement(yi,(0,uF.__assign)({},s,{className:c9.OVERLAY_SCROLL_CONTAINER,childRef:this.childRef,hasBackdrop:!0}),E.createElement("div",{className:c9.DIALOG_CONTAINER,ref:uq(i,this.childRef)},E.createElement("div",{className:g(uB)(c9.DIALOG,n),role:void 0===l?"dialog":l,"aria-modal":null!=(e=s.enforceFocus)?e:yr.enforceFocus,"aria-labelledby":this.props["aria-labelledby"]||(a?this.titleId:void 0),"aria-describedby":this.props["aria-describedby"],style:o},this.maybeRenderHeader(),r)))},t.prototype.validateProps=function(e){null==e.title&&(null!=e.icon&&console.warn(cI),null!=e.isCloseButtonShown&&console.warn(cD))},t.prototype.maybeRenderCloseButton=function(){return!1!==this.props.isCloseButtonShown?E.createElement(mc,{"aria-label":"Close",className:c9.DIALOG_CLOSE_BUTTON,icon:E.createElement(yU,{size:g6.IconSize.STANDARD}),onClick:this.props.onClose,variant:"minimal"}):void 0},t.prototype.maybeRenderHeader=function(){var e=this.props,t=e.icon,n=e.title;if(null!=n)return E.createElement("div",{className:c9.DIALOG_HEADER},E.createElement(mn,{icon:t,size:g6.IconSize.STANDARD,"aria-hidden":!0,tabIndex:-1}),E.createElement(yq,{id:this.titleId},n),this.maybeRenderCloseButton())},t.defaultProps={canOutsideClickClose:!0,isOpen:!1},t.displayName="".concat(gY,".Dialog"),t}(mf),uF=x("gztBd"),E=x("8NFma"),yW=function(e){var t=e.className,n=e.children,r=e.large,i=e.size,o=e.small,a=e.ulRef,l=(0,uF.__rest)(e,["className","children","large","size","small","ulRef"]);return E.createElement("ul",(0,uF.__assign)({role:"menu"},l,{className:g(uB)(t,c9.MENU,c9.sizeClass(void 0===i?"medium":i,{large:r,small:o})),ref:a}),n)};yW.displayName="".concat(gY,".Menu");var E=x("8NFma"),yY=function(e){var t=e.className,n=e.title,r=e.titleId,i=g(uB)(n?c9.MENU_HEADER:c9.MENU_DIVIDER,t);return E.createElement("li",{className:i,role:"separator"},n&&E.createElement(yq,{id:r},n))};yY.displayName="".concat(gY,".MenuDivider");var uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),yX=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"caret-right",ref:t},e),E.createElement("path",{d:n?"M280 200C280 206.2 277 211.4 272.6 215.2L272.8 215.4L152.8 315.4L152.6 315.2C149.2 318 144.8 320 140 320C129 320 120 311 120 300V100C120 89 129 80 140 80C144.8 80 149.2 82 152.6 84.8L152.8 84.6L272.8 184.6L272.6 184.8C277 188.6 280 193.8 280 200z":"M220 160C220 163 218.6 165.6 216.6 167.4L216.6 167.4L136.6 237.4L136.6 237.4C134.8 239 132.6 240 130 240C124.4 240 120 235.6 120 230V90C120 84.4 124.4 80 130 80C132.6 80 134.8 81 136.6 82.6C136.6 82.6 136.6 82.6 136.6 82.6L216.6 152.6L216.6 152.6C218.6 154.4 220 157 220 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});yX.defaultProps={size:g6.IconSize.STANDARD},yX.displayName="Blueprint5.Icon.CaretRight";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),yK=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"small-tick",ref:t},e),E.createElement("path",{d:n?"M300 300C294.4000000000001 300 289.4000000000001 297.8 285.8 294.2L160 168.2L114.2 214.2C110.6 217.8 105.6 220 100 220C89 220 80 211 80 200C80 194.4 82.2 189.4 85.8 185.8L145.8 125.8C149.4 122.2 154.4 120 160 120S170.6 122.2 174.2 125.8L314.2000000000001 265.8C317.8 269.4 320 274.4 320 280C320 291 311 300 300 300z":"M240 220C234.4 220 229.4 217.8 225.8 214.2L140 128.2L94.2 174.2C90.6 177.8 85.6 180 80 180C69 180 60 171 60 160C60 154.4 62.2 149.4 65.8 145.8L125.8 85.8C129.4 82.2 134.4 80 140 80S150.6 82.2 154.2 85.8L254.2 185.8C257.8 189.4 260 194.4 260 200C260 211 251 220 240 220z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});yK.defaultProps={size:g6.IconSize.STANDARD},yK.displayName="Blueprint5.Icon.SmallTick";var yZ=E.forwardRef(function(e,t){var n,r,i=e.active,o=e.className,a=e.children,l=e.disabled,s=void 0!==l&&l,u=e.icon,c=e.intent,d=e.labelClassName,h=e.labelElement,f=e.multiline,p=e.popoverProps,m=void 0===p?{}:p,v=e.roleStructure,y=void 0===v?"menuitem":v,b=e.selected,x=e.shouldDismissPopover,w=e.submenuProps,C=e.text,_=e.textClassName,S=e.tagName,k=e.htmlTitle,O=(0,uF.__rest)(e,["active","className","children","disabled","icon","intent","labelClassName","labelElement","multiline","popoverProps","roleStructure","selected","shouldDismissPopover","submenuProps","text","textClassName","tagName","htmlTitle"]),P="listoption"===y?["option",void 0,!!b]:"menuitem"===y?["none","menuitem",void 0]:"none"===y?["none",void 0,void 0]:[void 0,void 0,void 0],T=P[0],A=P[1],j=P[2],L="listoption"===y,R=L&&b,N=null!=u,M=null!=a,I=c9.intentClass(c),D=g(uB)(c9.MENU_ITEM,I,((n={})[c9.ACTIVE]=void 0!==i&&i,n[c9.DISABLED]=s,n[c9.POPOVER_DISMISS]=(void 0===x||x)&&!s&&!M,n[c9.MENU_ITEM_IS_SELECTABLE]=L,n[c9.SELECTED]=R,n),o),z=null==e.label&&null==h?null:E.createElement("span",{className:g(uB)(c9.MENU_ITEM_LABEL,d)},e.label,h),F=E.createElement(void 0===S?"a":S,(0,uF.__assign)((0,uF.__assign)((0,uF.__assign)({onKeyDown:cn(["Enter"," "]),role:M?"none":A,tabIndex:M?-1:0},gK(O)),s?yJ:{}),{className:D}),R?E.createElement(yK,{className:c9.MENU_ITEM_SELECTED_ICON}):void 0,N?E.createElement("span",{className:c9.MENU_ITEM_ICON},E.createElement(mn,{icon:u,"aria-hidden":!0,tabIndex:-1})):void 0,E.createElement(mu,{className:g(uB)(c9.FILL,_),ellipsize:!(void 0!==f&&f),title:k},void 0===C?"":C),z,M?E.createElement(yX,{className:c9.MENU_SUBMENU_ICON,title:"Open sub menu"}):void 0),B=g(uB)(((r={})[c9.MENU_SUBMENU]=M,r));return E.createElement("li",{className:B,ref:t,role:T,"aria-selected":j},null==a?F:E.createElement(yv,(0,uF.__assign)({autoFocus:!1,captureDismiss:!1,disabled:s,enforceFocus:!1,hoverCloseDelay:0,interactionKind:"hover",modifiers:yQ,targetProps:{role:A,tabIndex:0},placement:"right-start",usePortal:!1},m,{content:E.createElement(yW,(0,uF.__assign)({},w),a),minimal:!0,popoverClassName:g(uB)(c9.MENU_SUBMENU,null==m?void 0:m.popoverClassName)}),F))});yZ.displayName="".concat(gY,".MenuItem");var yQ={flip:{enabled:!0,options:{padding:20,rootBoundary:"viewport"}},offset:{enabled:!0,options:{offset:[-5,0]}},preventOverflow:{enabled:!0,options:{padding:20,rootBoundary:"viewport"}}},yJ={"aria-disabled":!0,href:void 0,onClick:void 0,onMouseDown:void 0,onMouseEnter:void 0,onMouseLeave:void 0,tabIndex:-1},uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=(x("8NFma"),x("8NFma")),y0=E.forwardRef(function(e,t){var n=e.value,r=e.onChange,i=e.onCompositionStart,o=e.onCompositionEnd,a=(0,uF.__rest)(e,["value","onChange","onCompositionStart","onCompositionEnd"]),l=function(e){var t=e.onCompositionStart,n=e.onCompositionEnd,r=e.value,i=e.onChange,o=E.useState(r),a=o[0],l=o[1],s=E.useState(r),u=s[0],c=s[1],d=E.useState(!1),h=d[0],f=d[1],p=E.useState(!1),g=p[0],m=p[1],v=E.useRef(),y=E.useCallback(function(e){var n;null==(n=v.current)||n.call(v),f(!0),null==t||t(e)},[t]),b=E.useCallback(function(){var e=window.setTimeout(function(){return f(!1)},10);return function(){return window.clearTimeout(e)}},[]),x=E.useCallback(function(e){v.current=b(),null==n||n(e)},[b,n]),w=E.useCallback(function(e){c(e.target.value),null==i||i(e)},[i]);if(!(h||void 0===r)){var C=u!==a;C&&r===u?(l(r),m(!1)):C&&r===a?g||m(!0):C&&r!==a?(l(r),c(r),m(!1)):!C&&(a!==r||g)&&(l(r),c(r),m(!1))}return{onChange:w,onCompositionEnd:x,onCompositionStart:y,value:h||g?u:a}}({onChange:r,onCompositionEnd:o,onCompositionStart:i,value:n}),s=l.value,u=l.onChange,c=l.onCompositionStart,d=l.onCompositionEnd;return E.createElement("textarea",(0,uF.__assign)({},a,{value:s,onChange:u,onCompositionStart:c,onCompositionEnd:d,ref:t}))});y0.displayName="".concat(gY,".AsyncControllableTextArea");var y1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.textareaElement=null,t.handleRef=uW(t,"textareaElement",t.props.inputRef),t.maybeSyncHeightToScrollHeight=function(){var e=t.props,n=e.autoResize,r=e.growVertically;if(null!=t.textareaElement){var i=t.textareaElement.scrollHeight;n?(t.textareaElement.style.height="0px",t.textareaElement.style.height=i.toString()+"px",t.setState({height:i})):r&&i>0&&t.setState({height:i})}if(t.props.autoResize&&null!=t.textareaElement){t.textareaElement.style.height="0px";var i=t.textareaElement.scrollHeight;t.textareaElement.style.height=i.toString()+"px",t.setState({height:i})}},t.handleChange=function(e){var n,r;t.maybeSyncHeightToScrollHeight(),null==(r=(n=t.props).onChange)||r.call(n,e)},t}return(0,uF.__extends)(t,e),t.prototype.componentDidMount=function(){this.maybeSyncHeightToScrollHeight()},t.prototype.componentDidUpdate=function(e){e.inputRef!==this.props.inputRef&&(uG(e.inputRef,null),this.handleRef=uW(this,"textareaElement",this.props.inputRef),uG(this.props.inputRef,this.textareaElement)),(e.value!==this.props.value||e.style!==this.props.style)&&this.maybeSyncHeightToScrollHeight()},t.prototype.render=function(){var e,t=this.props,n=t.asyncControl,r=t.autoResize,i=t.className,o=t.fill,a=t.growVertically,l=(t.inputRef,t.intent),s=t.large,u=t.size,c=t.small,d=(0,uF.__rest)(t,["asyncControl","autoResize","className","fill","growVertically","inputRef","intent","large","size","small"]),h=g(uB)(c9.INPUT,c9.TEXT_AREA,c9.intentClass(l),c9.sizeClass(void 0===u?"medium":u,{large:s,small:c}),((e={})[c9.FILL]=o,e[c9.TEXT_AREA_AUTO_RESIZE]=r,e),i),f=d.style,p=void 0===f?{}:f;(r||a)&&null!=this.state.height&&(p=(0,uF.__assign)((0,uF.__assign)({},p),{height:"".concat(this.state.height,"px")}));var m=n?y0:"textarea";return E.createElement(m,(0,uF.__assign)({},d,{className:h,onChange:this.handleChange,style:p,ref:this.handleRef}))},t.defaultProps={autoResize:!1,fill:!1,large:!1,size:"medium",small:!1},t.displayName="".concat(gY,".TextArea"),t}(mf),uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),y2=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"clean",ref:t},e),E.createElement("path",{d:n?"M140 400L100 300L0 260.0385184L100 220L140 120L180 220L280 259.8943316L180 300zM300 200L270 130.07389L200 100.102912L270 70.137224L300 0L330 70.137224L400 100L330 130.07389z":"M240 160L216 104.07387L160 80.08233L216 56.137188L240 0L264 56.137188L320 80L264 104.07387zM100 320L70 250L0 220.102913L70 190L100 120L130 190L200 220L130 250z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});y2.defaultProps={size:g6.IconSize.STANDARD},y2.displayName="Blueprint5.Icon.Clean";let y3=async({text:e="",command:t,tone:n})=>{try{let r=await fetch(lj.aiText(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:e,command:t,tone:n})});if(!r.ok){let e=await r.text();throw console.error(e),Error("Failed to rewrite text")}return(await r.json()).response}catch(t){return console.error(t),e}},y4=[{text:"friendly"},{text:"professional"},{text:"humorous"},{text:"formal"}],y8=I(({store:e})=>{let t=e.selectedElements.length>0,[n,r]=g(E).useState(!1),[i,o]=g(E).useState(!1),[a,l]=g(E).useState(1),[s,u]=g(E).useState(""),[c,d]=g(E).useState(""),[h,f]=g(E).useState(!1),p=g(E).useRef(null),m=e.selectedElements.some(e=>!e.contentEditable);g(E).useEffect(()=>{i&&1===a&&setTimeout(()=>{p.current?.focus()},100)},[i,a]);let v=async(t,n)=>{r(!0);let i=e.selectedElements[0].id,o=e.selectedElements[0].text,a=await y3({text:o,command:t,tone:n}),l=e.getElementById(i);l&&(l.set({text:a}),r(!1))},y=async()=>{f(!0),d(await y3({command:"custom",text:e.selectedElements[0].text,tone:s})),f(!1),l(2)};return m?null:n?(0,C.jsx)(mc,{icon:(0,C.jsx)(y2,{}),minimal:!0,text:"AI write",loading:!0}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(yv,{disabled:!t,content:(0,C.jsxs)(yW,{children:[(0,C.jsx)(yZ,{text:uR("toolbar.aiText.rewrite"),onClick:()=>{v("rewrite")}}),(0,C.jsx)(yZ,{text:uR("toolbar.aiText.shorten"),onClick:()=>{v("shorten")}}),(0,C.jsx)(yZ,{text:uR("toolbar.aiText.continue"),onClick:()=>{v("continue")}}),(0,C.jsx)(yZ,{text:uR("toolbar.aiText.proofread"),onClick:()=>{v("proofread")}}),(0,C.jsx)("li",{className:"bp5-menu-header",children:(0,C.jsx)("h6",{className:"bp5-heading",children:uR("toolbar.aiText.tones")})}),y4.map(e=>(0,C.jsx)(yZ,{text:uR(`toolbar.aiText.${e.text}`),onClick:()=>{v("tone",e.text)}},e.text)),(0,C.jsx)(yY,{}),(0,C.jsx)(yZ,{text:uR("toolbar.aiText.customPrompt"),onClick:e=>{e.preventDefault(),e.stopPropagation(),o(!0)}})]}),position:da.BOTTOM,children:(0,C.jsx)(mc,{icon:(0,C.jsx)(y2,{}),minimal:!0,text:uR("toolbar.aiText.aiWrite")})}),(0,C.jsx)(y$,{isOpen:i,onClose:()=>{h||(o(!1),l(1),u(""),d(""))},title:1===a?uR("toolbar.aiText.customPrompt"):uR("toolbar.aiText.generatedResult"),children:1===a?(0,C.jsxs)("div",{className:"bp5-dialog-body",children:[(0,C.jsx)(y1,{inputRef:p,value:s,onChange:e=>u(e.target.value),placeholder:uR("toolbar.aiText.promptPlaceholder"),fill:!0,disabled:h,style:{minHeight:100}}),(0,C.jsx)("div",{className:"bp5-dialog-footer",children:(0,C.jsxs)("div",{className:"bp5-dialog-footer-actions",children:[(0,C.jsx)(mc,{onClick:()=>o(!1),text:uR("toolbar.aiText.cancel"),disabled:h}),(0,C.jsx)(mc,{intent:"primary",onClick:y,loading:h,disabled:!s,text:uR("toolbar.aiText.generate")})]})})]}):(0,C.jsxs)("div",{className:"bp5-dialog-body",children:[(0,C.jsx)(y1,{value:c,onChange:e=>d(e.target.value),fill:!0,growVertically:!0,style:{minHeight:100}}),(0,C.jsx)("div",{className:"bp5-dialog-footer",children:(0,C.jsxs)("div",{className:"bp5-dialog-footer-actions",children:[(0,C.jsx)(mc,{onClick:()=>l(1),text:uR("toolbar.aiText.back"),disabled:h}),(0,C.jsx)(mc,{onClick:y,text:uR("toolbar.aiText.tryAgain"),loading:h}),(0,C.jsx)(mc,{intent:"primary",onClick:()=>{let t=e.selectedElements[0].id,n=e.getElementById(t);n&&n.set({text:c}),o(!1),l(1),u(""),d("")},text:uR("toolbar.aiText.insert"),disabled:h})]})})]})})]})});x("8NFma");var E=x("8NFma");let y6=({store:e})=>{let t=e.selectedElements.length>0,n=e.selectedElements.every(e=>!1===e.removable);return{duplicate:(0,E.useCallback)(()=>{ub(e.selectedElements,e)},[e]),disabled:!t||n}},y5=I(({store:e})=>{let{disabled:t,duplicate:n}=y6({store:e});return(0,C.jsx)(yC,{content:uR("toolbar.duplicateElements"),disabled:t,position:"bottom",children:(0,C.jsx)(mc,{icon:(0,C.jsx)(yO,{}),minimal:!0,onClick:()=>n(),disabled:t,"aria-label":uR("toolbar.duplicateElements")})})});x("8NFma");var E=x("8NFma");let y9=({store:e})=>{let t=e.selectedElements.filter(e=>e.removable),n=(0,E.useCallback)(()=>{e.deleteElements(t.map(e=>e.id))},[e,t]);return{disabled:!t.length,remove:n}},y7=I(({store:e})=>{let{disabled:t,remove:n}=y9({store:e});return(0,C.jsx)(yC,{content:uR("toolbar.removeElements"),disabled:t,position:"bottom",children:(0,C.jsx)(mc,{icon:(0,C.jsx)(yT,{}),minimal:!0,onClick:()=>n(),disabled:t,style:{marginLeft:"auto"},"aria-label":uR("toolbar.removeElements")})})});x("8NFma");var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),be=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"alignment-bottom",ref:t},e),E.createElement("path",{d:n?"M240 80H320C331 80 340 89 340 100V240C340 251 331 260 320 260H240C229 260 220 251 220 240V100C220 89 229 80 240 80zM380 40H20C9 40 0 31 0 20S9 0 20 0H380C391 0 400 9 400 20S391 40 380 40zM80 80H160C171 80 180 89 180 100V380C180 391 171 400 160 400H80C69 400 60 391 60 380V100C60 89 69 80 80 80z":"M200 80H260C271 80 280 89 280 100V180C280 191 271 200 260 200H200C189 200 180 191 180 180V100C180 89 189 80 200 80zM300 40H20C9 40 0 31 0 20S9 0 20 0H300C311 0 320 9 320 20S311 40 300 40zM60 80H120C131 80 140 89 140 100V280C140 291 131 300 120 300H60C49 300 40 291 40 280V100C40 89 49 80 60 80z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});be.defaultProps={size:g6.IconSize.STANDARD},be.displayName="Blueprint5.Icon.AlignmentBottom";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bt=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"alignment-horizontal-center",ref:t},e),E.createElement("path",{d:n?"M380 220H340V260C340 271 331 280 320 280H240C229 280 220 271 220 260V220H180V340C180 351 171 360 160 360H80C69 360 60 351 60 340V220H20C9 220 0 211 0 200C0 189 9 180 20 180H60V60C60 49 69 40 80 40H160C171 40 180 49 180 60V180H220V140C220 129 229 120 240 120H320C331 120 340 129 340 140V180H380C391 180 400 189 400 200C400 211 391 220 380 220z":"M300 180H280V200C280 211 271 220 260 220H200C189 220 180 211 180 200V180H140V260C140 271 131 280 120 280H60C49 280 40 271 40 260V180H20C9 180 0 171 0 160C0 149 9 140 20 140H40V60C40 49 49 40 60 40H120C131 40 140 49 140 60V140H180V120C180 109 189 100 200 100H260C271 100 280 109 280 120V140H300C311 140 320 149 320 160C320 171 311 180 300 180z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bt.defaultProps={size:g6.IconSize.STANDARD},bt.displayName="Blueprint5.Icon.AlignmentHorizontalCenter";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bn=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"alignment-left",ref:t},e),E.createElement("path",{d:n?"M20 400C9 400 0 391 0 380V20C0 9 9 0 20 0S40 9 40 20V380C40 391 31 400 20 400zM240 180H100C89 180 80 171 80 160V80C80 69 89 60 100 60H240C251 60 260 69 260 80V160C260 171 251 180 240 180zM380 340H100C89 340 80 331 80 320V240C80 229 89 220 100 220H380C391 220 400 229 400 240V320C400 331 391 340 380 340z":"M180 140H100C89 140 80 131 80 120V60C80 49 89 40 100 40H180C191 40 200 49 200 60V120C200 131 191 140 180 140zM20 320C9 320 0 311 0 300V20C0 9 9 0 20 0S40 9 40 20V300C40 311 31 320 20 320zM280 280H100C89 280 80 271 80 260V200C80 189 89 180 100 180H280C291 180 300 189 300 200V260C300 271 291 280 280 280z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bn.defaultProps={size:g6.IconSize.STANDARD},bn.displayName="Blueprint5.Icon.AlignmentLeft";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),br=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"alignment-right",ref:t},e),E.createElement("path",{d:n?"M380 400C369 400 360 391 360 380V20C360 9 369 0 380 0S400 9 400 20V380C400 391 391 400 380 400zM300 180H160C149 180 140 171 140 160V80C140 69 149 60 160 60H300C311 60 320 69 320 80V160C320 171 311 180 300 180zM300 340H20C9 340 0 331 0 320V240C0 229 9 220 20 220H300C311 220 320 229 320 240V320C320 331 311 340 300 340z":"M220 140H140C129 140 120 131 120 120V60C120 49 129 40 140 40H220C231 40 240 49 240 60V120C240 131 231 140 220 140zM300 320C289 320 280 311 280 300V20C280 9 289 0 300 0S320 9 320 20V300C320 311 311 320 300 320zM220 280H40C29 280 20 271 20 260V200C20 189 29 180 40 180H220C231 180 240 189 240 200V260C240 271 231 280 220 280z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});br.defaultProps={size:g6.IconSize.STANDARD},br.displayName="Blueprint5.Icon.AlignmentRight";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bi=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"alignment-top",ref:t},e),E.createElement("path",{d:n?"M160 320H80C69 320 60 311 60 300V20C60 9 69 0 80 0H160C171 0 180 9 180 20V300C180 311 171 320 160 320zM380 400H20C9 400 0 391 0 380S9 360 20 360H380C391 360 400 369 400 380S391 400 380 400zM320 320H240C229 320 220 311 220 300V160C220 149 229 140 240 140H320C331 140 340 149 340 160V300C340 311 331 320 320 320z":"M300 320H20C9 320 0 311 0 300S9 280 20 280H300C311 280 320 289 320 300S311 320 300 320zM120 240H60C49 240 40 231 40 220V40C40 29 49 20 60 20H120C131 20 140 29 140 40V220C140 231 131 240 120 240zM260 240H200C189 240 180 231 180 220V140C180 129 189 120 200 120H260C271 120 280 129 280 140V220C280 231 271 240 260 240z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bi.defaultProps={size:g6.IconSize.STANDARD},bi.displayName="Blueprint5.Icon.AlignmentTop";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bo=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"alignment-vertical-center",ref:t},e),E.createElement("path",{d:n?"M340 340H220V380C220 391 211 400 200 400S180 391 180 380V340H60C49 340 40 331 40 320V240C40 229 49 220 60 220H180V180H140C129 180 120 171 120 160V80C120 69 129 60 140 60H180V20C180 9 189 0 200 0S220 9 220 20V60H260C271 60 280 69 280 80V160C280 171 271 180 260 180H220V220H340C351 220 360 229 360 240V320C360 331 351 340 340 340z":"M260 280H180V300C180 311 171 320 160 320S140 311 140 300V280H60C49 280 40 271 40 260V200C40 189 49 180 60 180H140V140H120C109 140 100 131 100 120V60C100 49 109 40 120 40H140V20C140 9 149 0 160 0S180 9 180 20V40H200C211 40 220 49 220 60V120C220 131 211 140 200 140H180V180H260C271 180 280 189 280 200V260C280 271 271 280 260 280z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bo.defaultProps={size:g6.IconSize.STANDARD},bo.displayName="Blueprint5.Icon.AlignmentVerticalCenter";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),ba=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"double-chevron-down",ref:t},e),E.createElement("path",{d:n?"M185.8 185.8C189.4 182.2 194.4 180 200 180S210.6 182.2 214.2 185.8L334.2000000000001 305.8C337.8 309.4 340 314.4 340 320C340 331 331 340 320 340C314.4000000000001 340 309.4000000000001 337.8 305.8 334.2L200 228.2L94.2 334.2C90.6 337.8 85.6 340 80 340C69 340 60 331 60 320C60 314.4 62.2 309.4 65.8 305.8L185.8 185.8zM320 220C314.4000000000001 220 309.4000000000001 217.8 305.8 214.2L200 108.2L94.2 214.2C90.6 217.8 85.6 220 80 220C69 220 60 211 60 200C60 194.4 62.2 189.4 65.8 185.8L185.8 65.8C189.4 62.2 194.4 60 200 60S210.6 62.2 214.2 65.8L334.2000000000001 185.8C337.8 189.4 340 194.4 340 200C340 211 331 220 320 220z":"M145.8 145.8C149.4 142.2 154.4 140 160 140S170.6 142.2 174.2 145.8L254.2 225.8C257.8 229.4 260 234.4 260 240C260 251 251 260 240 260C234.4 260 229.4 257.8 225.8 254.2L160 188.2L94.2 254.2C90.6 257.8 85.6 260 80 260C69 260 60 251 60 240C60 234.4 62.2 229.4 65.8 225.8L145.8 145.8zM240 160C234.4 160 229.4 157.8 225.8 154.2L160 88.2L94.2 154.2C90.6 157.8 85.6 160 80 160C69 160 60 151 60 140C60 134.4 62.2 129.4 65.8 125.8L145.8 45.8C149.4 42.2 154.4 40 160 40S170.6 42.2 174.2 45.8L254.2 125.8C257.8 129.4 260 134.4 260 140C260 151 251 160 240 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});ba.defaultProps={size:g6.IconSize.STANDARD},ba.displayName="Blueprint5.Icon.DoubleChevronDown";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bl=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"double-chevron-up",ref:t},e),E.createElement("path",{d:n?"M80 180C85.6 180 90.6 182.2 94.2 185.8L200 291.8L305.8 186C309.4000000000001 182.2 314.4000000000001 180 320 180C331 180 340 189 340 200C340 205.6 337.8 210.6 334.2000000000001 214.2L214.2 334.2000000000001C210.6 337.8 205.6 340 200 340C194.4 340 189.4 337.8 185.8 334.2L65.8 214.2C62.2 210.6 60 205.6 60 200C60 189 69 180 80 180zM214.2 214.2C210.6 217.8 205.6 220 200 220C194.4 220 189.4 217.8 185.8 214.2L65.8 94.2000000000001C62.2 90.6 60 85.6 60 80C60 69 69 60 80 60C85.6 60 90.6 62.2 94.2 65.8L200 171.8L305.8 66C309.4000000000001 62.2 314.4000000000001 60 320 60C331 60 340 69 340 80C340 85.6 337.8 90.6 334.2000000000001 94.2000000000001L214.2 214.2z":"M80 160C85.6 160 90.6 162.2 94.2 165.8L160 231.8L225.8 166C229.4 162.2 234.4 160 240 160C251 160 260 169 260 180C260 185.6 257.8 190.6 254.2 194.2L174.2 274.2C170.6 277.8 165.6 280 160 280S149.4 277.8 145.8 274.2L65.8 194.2C62.2 190.6 60 185.6 60 180C60 169 69 160 80 160zM174.2 174.2C170.6 177.8 165.6 180 160 180S149.4 177.8 145.8 174.2L65.8 94.2C62.2 90.6 60 85.6 60 80C60 69 69 60 80 60C85.6 60 90.6 62.2 94.2 65.8L160 131.8L225.8 66C229.4 62.2 234.4 60 240 60C251 60 260 69 260 80C260 85.6 257.8 90.6 254.2 94.2L174.2 174.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bl.defaultProps={size:g6.IconSize.STANDARD},bl.displayName="Blueprint5.Icon.DoubleChevronUp";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bs=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"horizontal-distribution",ref:t},e),E.createElement("path",{d:n?"M240 360H160C149 360 140 351 140 340V60C140 49 149 40 160 40H240C251 40 260 49 260 60V340C260 351 251 360 240 360zM20 400C9 400 0 391 0 380V20C0 9 9 0 20 0S40 9 40 20V380C40 391 31 400 20 400zM380 400C369 400 360 391 360 380V20C360 9 369 0 380 0S400 9 400 20V380C400 391 391 400 380 400z":"M40 320C29 320 20 311 20 300V20C20 9 29 0 40 0S60 9 60 20V300C60 311 51 320 40 320zM300 320C289 320 280 311 280 300V20C280 9 289 0 300 0S320 9 320 20V300C320 311 311 320 300 320zM200 280H140C129 280 120 271 120 260V80C120 69 129 60 140 60H200C211 60 220 69 220 80V260C220 271 211 280 200 280z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bs.defaultProps={size:g6.IconSize.STANDARD},bs.displayName="Blueprint5.Icon.HorizontalDistribution";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bu=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"layers",ref:t},e),E.createElement("path",{d:n?"M10 262L10 262L190 162L190 162C194 160 196 160 200 160S206 160 210 162L210 162L390 262L390 262C396 266 400 272 400 280C400 288 396 294 390 298L390 298L210 398L210 398C206 400 204 400 200 400S194 400 190 398L190 398L10 298L10 298C4 294 0 288 0 280C0 272 4 266 10 262zM380 220C376 220 374 220 370 218L370 218L200 122L30 218L30 218C26 220 24 220 20 220C8 220 0 212 0 200C0 192 4 186 10 182L10 182L190 82L190 82C194 80 196 80 200 80S206 80 210 82L210 82L390 182L390 182C396 186 400 192 400 200C400 212 392 220 380 220zM380 140C376 140 374 140 370 138L370 138L200 42L30 136L30 136C26 140 24 140 20 140C8 140 0 132 0 120C0 112 4 106 10 102L10 102L190 2L190 2C194 0 196 0 200 0S206 0 210 2L210 2L390 102L390 102C396 106 400 112 400 120.0000000000001C400 132 392 140 380 140z":"M10.99952 222.2L150.9998 162.2C153.7998 160.8 156.7998 160 159.9998 160C163.1998 160 166.1998 160.8 168.9998 162.2L309 222.2C315.4 225.4 320 232.2 320 240C320 248.2 315 255.4 307.8 258.4L167.9998 318.4C165.3998 319.4 162.7998 320 159.9998 320C157.1998 320 154.5998 319.4 152.1998 318.4L12.39952 258.4C4.99952 255.4 -0.000487566 248.2 -0.000487566 240C-0.000487566 232.2 4.59952 225.4 10.99952 222.2zM300 100C296.8 100 293.8 99.2 291 97.8L159.9998 40L28.9998 98C26.1998 99.2 23.1998 100 19.99976 100C8.99976 100 -0.00024438 91 -0.00024438 80C-0.00024438 72.2 4.59976 65.4 10.99976 62.2L150.9998 2.2C153.7998 0.8 156.7998 0 159.9998 0C163.1998 0 166.1998 0.8 168.9998 2.2L309 62.2C315.4 65.4 320 72.2 320 80C320 91 311 100 300 100zM300 180.0002C296.8 180.0002 293.8 179.2002 291 177.8002L159.9998 120L28.9994 177.8C26.1994 179.2 23.1994 180 19.99938 180C8.99938 180 -0.000610352 171 -0.000610352 160C-0.000610352 152.2 4.5994 145.4 10.99938 142.2L150.9998 82.2C153.7998 80.8 156.7998 80 159.9998 80C163.1998 80 166.1998 80.8 168.9998 82.2L309 142.2002C315.4 145.4002 320 152.2002 320 160.0002C320 171.0002 311 180.0002 300 180.0002z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bu.defaultProps={size:g6.IconSize.STANDARD},bu.displayName="Blueprint5.Icon.Layers";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bc=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"vertical-distribution",ref:t},e),E.createElement("path",{d:n?"M20 360H380C391 360 400 369 400 380S391 400 380 400H20C9 400 0 391 0 380S9 360 20 360zM60 260C49 260 40 251 40 240V160C40 149 49 140 60 140H340C351 140 360 149 360 160V240C360 251 351 260 340 260H60zM380 40H20C9 40 0 31 0 20S9 0 20 0H380C391 0 400 9 400 20S391 40 380 40z":"M20 280H300C311 280 320 289 320 300S311 320 300 320H20C9 320 0 311 0 300S9 280 20 280zM300 60H20C9 60 0 51 0 40S9 20 20 20H300C311 20 320 29 320 40S311 60 300 60zM60 220C49 220 40 211 40 200V140C40 129 49 120 60 120H240C251 120 260 129 260 140V200C260 211 251 220 240 220H60z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bc.defaultProps={size:g6.IconSize.STANDARD},bc.displayName="Blueprint5.Icon.VerticalDistribution";let bd=e=>{if("group"!==e.type)return aI(e);let t=1/0,n=1/0,r=-1/0,i=-1/0;return e.children.forEach(e=>{let o=bd(e);t=Math.min(t,o.x),n=Math.min(n,o.y),r=Math.max(r,o.x+o.width),i=Math.max(i,o.y+o.height)}),{x:t,y:n,width:r-t,height:i-n}},bh=(e,t,n)=>{if("group"!==e.type){let r=aI(e),i=t-r.x,o=n-r.y;e.set({x:e.x+i,y:e.y+o})}else{let r=t-bd(e).x,i=n-bd(e).y;e.children.forEach(e=>{let t=bd(e);bh(e,t.x+r,t.y+i)})}},bf=I(({store:e})=>{let t=e.selectedElements.length>0,n=e.selectedElementsIds,r=e.selectedElements.every(e=>e.draggable),i=r&&e.selectedElements.length>1;return(0,C.jsx)(yv,{disabled:!t,content:(0,C.jsxs)(yW,{style:{width:"280px"},children:[(0,C.jsx)(yY,{title:uR("toolbar.layering")}),(0,C.jsxs)("div",{style:{display:"flex"},children:[(0,C.jsxs)("div",{style:{width:"50%"},children:[(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(yk,{}),text:uR("toolbar.up"),disabled:!e.activePage?.canMoveElementsUp(n),onClick:()=>{e.activePage?.moveElementsUp(n)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(bl,{}),text:uR("toolbar.toForward"),disabled:!e.activePage?.canMoveElementsTop(n),onClick:()=>{e.activePage?.moveElementsTop(n)}})]}),(0,C.jsxs)("div",{style:{width:"50%"},children:[(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(y_,{}),text:uR("toolbar.down"),disabled:!e.activePage?.canMoveElementsDown(n),onClick:()=>{e.activePage?.moveElementsDown(n)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(ba,{}),text:uR("toolbar.toBottom"),disabled:!e.activePage?.canMoveElementsBottom(n),onClick:()=>{e.activePage?.moveElementsBottom(n)}})]})]}),r&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(yY,{title:uR("toolbar.position")}),(0,C.jsxs)("div",{style:{display:"flex"},children:[(0,C.jsxs)("div",{style:{width:"50%"},children:[(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(bn,{}),text:uR("toolbar.alignLeft"),onClick:()=>{uC(e)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(bo,{}),text:uR("toolbar.alignCenter"),onClick:()=>{uO(e)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(br,{}),text:uR("toolbar.alignRight"),onClick:()=>{u_(e)}})]}),(0,C.jsxs)("div",{style:{width:"50%"},children:[(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(bi,{}),text:uR("toolbar.alignTop"),onClick:()=>{uS(e)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(bt,{}),text:uR("toolbar.alignMiddle"),onClick:()=>{uE(e)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(be,{}),text:uR("toolbar.alignBottom"),onClick:()=>{uk(e)}})]})]})]}),i&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(yY,{title:uR("toolbar.spaceEvenly")}),(0,C.jsxs)("div",{style:{display:"flex"},children:[(0,C.jsx)("div",{style:{width:"50%"},children:(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(bc,{}),text:uR("toolbar.verticalDistribution"),onClick:()=>{let t=e.activePage?.computedHeight,n=0,r=0;e.selectedElements.forEach(e=>{let i=bd(e);t=Math.min(t,i.y),n=Math.max(n,i.y+i.height),r+=i.height});let i=(n-t-r)/(e.selectedElements.length-1),o=e.selectedElements.slice().sort((e,t)=>{let n=bd(e),r=bd(t);return n.y-r.y}),a=0;o.forEach(e=>{let n=bd(e);bh(e,n.x,t+a),a+=n.height+i})}})}),(0,C.jsx)("div",{style:{width:"50%"},children:(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(bs,{}),text:uR("toolbar.horizontalDistribution"),onClick:()=>{let t=e.activePage?.computedWidth,n=0,r=0;e.selectedElements.forEach(e=>{let i=bd(e);t=Math.min(t,i.x),n=Math.max(n,i.x+i.width),r+=i.width});let i=(n-t-r)/(e.selectedElements.length-1),o=e.selectedElements.slice().sort((e,t)=>{let n=bd(e),r=bd(t);return n.x-r.x}),a=0;o.forEach(e=>{let n=bd(e);bh(e,t+a,n.y),a+=n.width+i})}})})]})]})]}),position:da.BOTTOM,children:(0,C.jsx)(mc,{icon:(0,C.jsx)(bu,{}),className:"polotno-position",minimal:!0,text:uR("toolbar.position"),disabled:!t})})});x("8NFma");let bp=I(({store:e})=>{let t=e.selectedElements.length>1,n=1===e.selectedElements.length&&"group"===e.selectedElements[0].type;return(0,C.jsxs)(C.Fragment,{children:[t&&(0,C.jsx)(mc,{minimal:!0,onClick:()=>{e.groupElements(e.selectedElements.map(e=>e.id))},style:{marginLeft:"auto"},children:uR("toolbar.groupElements")}),n&&(0,C.jsx)(mc,{minimal:!0,onClick:()=>{e.ungroupElements([e.selectedElements[0].id])},style:{marginLeft:"auto"},children:uR("toolbar.ungroupElements")})]})});function bg(e,t){return e.classList.contains(t)?e:e.parentElement?bg(e.parentElement,t):null}let bm=()=>null,bv=I(({store:e,page:t,components:n,stageRef:r})=>{let i=e.selectedShapes.every(e=>e.page===t),o=g(E).useRef(null),[a,l]=g(E).useState(!1),s=e._hasCroppedImages;e.selectedElements.length,g(E).useEffect(()=>{let e=()=>{l(!0)},t=()=>{l(!1)};r?.current?.on("dragstart",e),r?.current?.on("dragend",t);let n=r?.current?.findOne("Transformer");return n?.on("transformstart",e),n?.on("transformend",t),()=>{r?.current?.off("dragstart",e),r?.current?.off("dragend",t),n?.off("transformstart",e),n?.off("transformend",t)}},[]);let[u,c]=g(E).useState({fit:!0,needCalculate:!1,token:Math.random()});function d(){if(!o.current||!u.needCalculate)return;let e=bg(o.current,"polotno-workspace-container");if(!e)return;let t=e.getBoundingClientRect(),n=o.current.getBoundingClientRect();n.right,t.left;let r=n.top-t.top;n.left,t.left;let i=n.bottom-t.top;r<20&&u.fit?c({fit:!1,needCalculate:!1,token:u.token}):i-t.height>-20&&!u.fit?c({fit:!0,needCalculate:!1,token:u.token}):c({fit:u.fit,needCalculate:!1,token:u.token})}if(g(E).useEffect(()=>{0!==e.selectedElements.length&&c({fit:!0,needCalculate:!0,token:Math.random()})},[e.selectedElements,a]),g(E).useLayoutEffect(()=>{let e=setTimeout(()=>{d()},100);return()=>{clearTimeout(e)}},[u.needCalculate,o.current,u.token]),g(E).useEffect(()=>{if(!r.current)return;let t=bg(r.current.content,"polotno-workspace-inner");if(!t)return;let n=()=>{e.selectedElements.length&&c({fit:!0,needCalculate:!0,token:Math.random()})};return t?.addEventListener("scroll",n),()=>{t?.removeEventListener("scroll",n)}},[]),0===e.selectedShapes.length||a||!i||e.activePage!==t||s)return null;let h=aD(e.selectedShapes),f=n?.Position||bf,p=n?.Duplicate||y5,m=n?.Remove||y7,v=n?.Group||bp,y=n?.Lock||bm,b=e.selectedElements[0]?.type,x={...iE.aiTextEnabled?{TextAiWrite:y8}:{},...n||{}},w=yH({components:x,type:b,usedItems:[]}),_=r?.current?.findOne("Transformer")?.rotation()||0,S=30;return 30>Math.abs(_)&&u.fit&&(S=80),Math.abs(_)>140&&!u.fit&&(S=80),(0,C.jsx)(rB,{parentNodeFunc:({stage:e})=>{let t=e?.container()?.closest(".polotno-workspace-container");return t||e?.container()?.parentNode},transformFunc:e=>{let t=h.x+h.width/2,n=u.fit?h.y*e.scaleY-S:h.y*e.scaleY+h.height*e.scaleY+S,i=r?.current?.container(),a=i?.getBoundingClientRect()||{left:0,top:0,width:0,height:0,right:0,bottom:0,x:0,y:0,toJSON:()=>({})},l=i?.closest(".polotno-workspace-container"),s=l?.getBoundingClientRect()||{left:0,top:0,width:1/0,height:1/0,right:0,bottom:0,x:0,y:0,toJSON:()=>({})},c=a.left-s.left,d=a.top-s.top,f=c+e.x+t*e.scaleX,p=f-h.width*e.scaleX/2,g=f+h.width*e.scaleX/2,m=Math.min(50,h.width/2*e.scaleX),v=g>=m&&p<=s.width-m,y=o.current?o.current.getBoundingClientRect().width:0;if(Number.isFinite(s.width)&&y>0&&v){let e=8+y/2,t=s.width-8-y/2;t>=e&&(f=Math.max(e,Math.min(f,t)))}return g<m&&(f-=y+8),p>s.width-m&&(f+=y+8),{...e,x:f,y:d+e.y+n,scaleX:1,scaleY:1}},divProps:{style:{pointerEvents:"none",position:"absolute",visibility:u.needCalculate?"hidden":"visible",zIndex:9}},children:(0,C.jsx)("div",{ref:e=>{o.current=e,!o.current&&e&&d()},style:{pointerEvents:"none"},children:(0,C.jsx)(yN,{style:{padding:"2px",borderRadius:"5px",height:"34px",transform:"translate(-50%, -50%)",pointerEvents:"auto"},children:(0,C.jsxs)(yL,{style:{height:"30px"},children:[w.map(t=>{let n=x[t];return(0,C.jsx)(n,{elements:e.selectedElements,element:e.selectedElements[0],store:e},t)}),(0,C.jsx)(v,{store:e}),(0,C.jsx)(y,{store:e}),(0,C.jsx)(p,{store:e}),(0,C.jsx)(m,{store:e}),(0,C.jsx)(f,{store:e})]})})})})});var uF=x("gztBd"),E=x("8NFma"),by=E.memo(function(e){var t,n,r=e.content,i=e.popoverClassName,o=e.onClose,a=e.isDarkTheme,l=e.rootBoundary,s=e.targetOffset,u=e.transitionDuration,c=(0,uF.__rest)(e,["content","popoverClassName","onClose","isDarkTheme","rootBoundary","targetOffset","transitionDuration"]),d=E.useCallback(function(e){return e.preventDefault()},[]),h=E.useCallback(function(e){var t=e.ref;return E.createElement(v9,null,E.createElement("div",{className:c9.CONTEXT_MENU_VIRTUAL_TARGET,style:s,ref:t}))},[s]),f=E.useCallback(function(e){e||null==o||o()},[o]);return E.createElement(yv,(0,uF.__assign)({placement:"right-start",rootBoundary:void 0===l?"viewport":l,transitionDuration:void 0===u?100:u},c,{content:E.createElement("div",{onContextMenu:d},r),enforceFocus:!1,key:void 0===(t=s)?"default":"".concat(t.left,"x").concat(t.top),hasBackdrop:!0,backdropProps:{className:c9.CONTEXT_MENU_BACKDROP},minimal:!0,onInteraction:f,popoverClassName:g(uB)(c9.CONTEXT_MENU_POPOVER,i,((n={})[c9.DARK]=void 0!==a&&a,n)),positioningStrategy:"fixed",renderTarget:h}))});by.displayName="".concat(gY,".ContextMenuPopover"),x("8NFma");var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bb=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"lock",ref:t},e),E.createElement("path",{d:n?"M318.6 220H280V300.2C280 344.4 244.2 380.2 200 380.2S120 344.4 120 300.2V220H78.6C67.6 220 60 211.2 60 200.2V40.1999999999999C60 29.2 67.6 20 78.6 20H318.6C329.6 20 340 29.2 340 40.2V200.2000000000001C340 211.2 329.6 220 318.6 220zM160 220V300.2C160 322.2 178 340.2 200 340.2S240 322.2 240 300.2V220H160z":"M279.2000000000001 180H240V241C240 284.6 204.2 320 160 320S80 284.6 80 241V180H39.2C28.2 180 20 173 20 162V23.8C20 13 28.2 0 39.2 0H279.2000000000001C290.2000000000001 0 300 13 300 23.8V162C300 173 290.2 180 279.2000000000001 180zM120 180V241C120 262.8 138 280.4 160 280.4S200 262.8 200 241V180H120z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bb.defaultProps={size:g6.IconSize.STANDARD},bb.displayName="Blueprint5.Icon.Lock";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bx=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"unlock",ref:t},e),E.createElement("path",{d:n?"M280 380C235.8 380 200 344.2 200 300V220H40C29 220 20 211 20 200V40C20 29 29 20 40 20H280C291 20 300 29 300 40V200C300 211 291 220 280 220H240V300C240 322 258 340 280 340S320 322 320 300V260C320 249 329 240 340 240S360 249 360 260V300C360 344.2 324.2000000000001 380 280 380z":"M239.8 320.2C195.6 320.2 159.8 284.4 159.8 240.2V180.2H19.8C8.8 180.2 -0.2 171.2 -0.2 160.2V20.2C-0.2 9.2 8.8 0.2 19.8 0.2H259.8C270.8 0.2 279.8 9.2 279.8 20.2V160.2C279.8 171.2 270.8 180.2 259.8 180.2H199.8V240.2C199.8 262.2 217.8 280.2 239.8 280.2S279.8 262.2 279.8 240.2V220.2C279.8 209.2 288.8 200.2 299.8 200.2S319.8 209.2 319.8 220.2V240.2C319.8 284.4 284 320.2 239.8 320.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bx.defaultProps={size:g6.IconSize.STANDARD},bx.displayName="Blueprint5.Icon.Unlock";var E=x("8NFma");let bw=e=>{let[t,n]=(0,E.useState)(null);return(0,E.useEffect)(()=>{let r=e.selectedElements;t&&(r.forEach(e=>{var n;let r,i=(n=bO[e.type],r=new Set(bO[t.type]),[...new Set(n)].filter(e=>r.has(e))).reduce((e,n)=>{let r=t[n];return Array.isArray(r)?r=[...r]:"object"==typeof r&&null!==r&&(r={...r}),{...e,[n]:r}},{});e.type!==t.type&&bP.forEach(e=>{delete i[e]}),e.set({...i})}),n(null))},[e.selectedElements[0]]),{elementToCopy:t,disabled:1!==e.selectedElements.length,setElementToCopy:n}},bC=["opacity","visible","height","width","shadowEnabled","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","blurEnabled","blurRadius","brightnessEnabled","brightness","sepiaEnabled","grayscaleEnabled"],b_=[...bC,"fontSize","fontWeight","fontFamily","lineHeight","stroke","strokeWidth","textDecoration","fill","align","verticalAlign","letterSpacing","backgroundEnabled","backgroundColor","backgroundOpacity","backgroundCornerRadius","backgroundPadding"],bS=[...bC,"flipX","flipY","keepRatio","borderColor","borderSize","cornerRadius","cropX","cropY","cropWidth","cropHeight"],bE=[...bC,"flipX","flipY","keepRatio","borderColor","borderSize","cornerRadius","cropX","cropY","cropWidth","cropHeight"],bk=[...bC,"color","dash","endHead","startHead"],bO={figure:[...bC,"dash","cornerRadius","fill","stroke","strokeWidth"],image:bS,line:bk,svg:[...bC,"cornerRadius","borderColor","borderSize","colorsReplace","cropHeight","cropWidth","cropX","cropY","flipX","flipY","keepRatio"],text:b_,video:bE},bP=["width","height"];var E=x("8NFma");let bT=({store:e})=>{let t=e.selectedShapes.length>0,n=e.selectedShapes[0],r=n?.locked;return{disabled:!t,lock:(0,E.useCallback)(()=>{e.selectedShapes.forEach(e=>e.set({draggable:r,contentEditable:r,styleEditable:r,resizable:r,removable:r}))},[r,e]),locked:r}},bA=I(({store:e,isOpen:t,offset:n,setIsOpen:r})=>{let{disabled:i,duplicate:o}=y6({store:e}),{disabled:a,remove:l}=y9({store:e}),{setElementToCopy:s}=bw(e),{disabled:u,lock:c,locked:d}=bT({store:e}),h=d?(0,C.jsx)(bb,{}):(0,C.jsx)(bx,{}),f=e.selectedElementsIds;return 0===e.selectedElements.length?null:(0,C.jsx)(by,{isOpen:t,onClose:()=>{r(!1)},content:(0,C.jsxs)(yW,{children:[(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:h,text:d?uR("contextMenu.unlock"):uR("contextMenu.lock"),onClick:c,disabled:u}),(0,C.jsx)(yZ,{icon:(0,C.jsx)(yO,{}),text:uR("contextMenu.duplicate"),onClick:o,disabled:i}),(0,C.jsx)(yZ,{icon:(0,C.jsx)(yT,{}),text:uR("contextMenu.remove"),onClick:l,disabled:a}),(0,C.jsx)(yY,{}),(0,C.jsxs)(yZ,{icon:(0,C.jsx)(bu,{}),text:uR("toolbar.layering"),children:[(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(bl,{}),text:uR("toolbar.toForward"),disabled:!e.activePage?.canMoveElementsTop(f),onClick:()=>{e.activePage?.moveElementsTop(f)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(yk,{}),text:uR("toolbar.up"),disabled:!e.activePage?.canMoveElementsUp(f),onClick:()=>{e.activePage?.moveElementsUp(f)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(y_,{}),text:uR("toolbar.down"),disabled:!e.activePage?.canMoveElementsDown(f),onClick:()=>{e.activePage?.moveElementsDown(f)}}),(0,C.jsx)(yZ,{shouldDismissPopover:!1,icon:(0,C.jsx)(ba,{}),text:uR("toolbar.toBottom"),disabled:!e.activePage?.canMoveElementsBottom(f),onClick:()=>{e.activePage?.moveElementsBottom(f)}})]})]}),targetOffset:{top:n.y,left:n.x}})});var bj=({components:e,...t})=>((e=e||{}).PageControls=e.PageControls??yA,e.Tooltip=e.Tooltip??bv,e.ContextMenu=e.ContextMenu??bA,(0,C.jsx)(uz,{...t,components:e})),E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),bL=function(e){var t=e.className,n=e.tagName,r=(0,uF.__rest)(e,["className","tagName"]),i=g(uB)(hH,t);return E.createElement(void 0===n?"div":n,(0,uF.__assign)((0,uF.__assign)({},r),{className:i}))};bL.displayName="".concat(gY,".Divider"),x("8NFma");var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bR=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"redo",ref:t},e),E.createElement("path",{d:n?"M394.2000000000001 294.2L314.2000000000001 374.2C310.6 377.8 305.6 380 300 380C289 380 280 371 280 360C280 354.4 282.2 349.4 285.8 345.8L331.8 300H120C53.8 300 0 246.2 0 180C0 113.8 53.8 60 120 60H220V100H120C75.8 100 40 135.8 40 180C40 224.2 75.8 260 120 260H331.8L286 214.2C282.2 210.6 280 205.6 280 200C280 189 289 180 300 180C305.6 180 310.6 182.2 314.2000000000001 185.8L394.2000000000001 265.8C397.8 269.4 400 274.4 400 280C400 285.6 397.8 290.6 394.2000000000001 294.2zM300 120C278 120 260 102 260 80S278 40 300 40S340 58 340 80S322 120 300 120z":"M240 100C218 100 200 82 200 60S218 20 240 20S280 38 280 60S262 100 240 100zM314.2000000000001 234.2L254.2 294.2C250.6 297.8 245.6 300 240 300C229 300 220 291 220 280C220 274.4 222.2 269.4 225.8 265.8L251.8 240H100C44.8 240 0 195.2 0 140S44.8 40 100 40H180V80H100C66.8 80 40 106.8 40 140S66.8 200 100 200H251.8L226 174.2C222.2 170.6 220 165.6 220 160C220 149 229 140 240 140C245.6 140 250.6 142.2 254.2 145.8L314.2000000000001 205.8C317.8 209.4 320 214.4 320 220C320 225.6 317.8 230.6 314.2000000000001 234.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bR.defaultProps={size:g6.IconSize.STANDARD},bR.displayName="Blueprint5.Icon.Redo";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),bN=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"undo",ref:t},e),E.createElement("path",{d:n?"M100 120C78 120 60 102 60 80C60 58 78 40 100 40S140 58 140 80C140 102 122 120 100 120zM280 300H68.2L114 345.8C117.8 349.4 120 354.4 120 360C120 371 111 380 100 380C94.4 380 89.4 377.8 85.8 374.2L5.8 294.2C2.2 290.6 0 285.6 0 280C0 274.4 2.2 269.4 5.8 265.8L85.8 185.8C89.4 182.2 94.4 180 100 180C111 180 120 189 120 200C120 205.6 117.8 210.6 114.2 214.2L68.2 260H280C324.2000000000001 260 360 224.2 360 180C360 135.8 324.2000000000001 100 280 100H180V60H280C346.2 60 400 113.8 400 180S346.2 300 280 300z":"M80 100C58 100 40 82 40 60S58 20 80 20S120 38 120 60S102 100 80 100zM220 240H68.2L94 265.8C97.8 269.4 100 274.4 100 280C100 291 91 300 80 300C74.4 300 69.4 297.8 65.8 294.2L5.8 234.2C2.2 230.6 0 225.6 0 220C0 214.4 2.2 209.4 5.8 205.8L65.8 145.8C69.4 142.2 74.4 140 80 140C91 140 100 149 100 160C100 165.6 97.8 170.6 94.2 174.2L68.2 200H220C253.2 200 280 173.2 280 140S253.2 80 220 80H140V40H220C275.2 40 320 84.8 320 140S275.2 240 220 240z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});bN.defaultProps={size:g6.IconSize.STANDARD},bN.displayName="Blueprint5.Icon.Undo";let bM=I(({store:e})=>(0,C.jsxs)(yN.Group,{align:c7,style:{paddingRight:"10px"},children:[(0,C.jsx)(mc,{icon:(0,C.jsx)(bN,{}),minimal:!0,onClick:()=>{e.history.undo()},disabled:!e.history.canUndo,"aria-label":"Undo"}),(0,C.jsx)(mc,{icon:(0,C.jsx)(bR,{}),minimal:!0,onClick:()=>{e.history.redo()},disabled:!e.history.canRedo,"aria-label":"Redo"})]}));var E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),bI=E.forwardRef(function(e,t){var n,r=e.alignText,i=e.className,o=e.fill,a=e.minimal,l=e.outlined,s=e.large,u=e.size,c=e.variant,d=e.vertical,h=(0,uF.__rest)(e,["alignText","className","fill","minimal","outlined","large","size","variant","vertical"]),f=g(uB)(c9.BUTTON_GROUP,((n={})[c9.FILL]=o,n[c9.VERTICAL]=d,n),c9.alignmentClass(r),c9.sizeClass(void 0===u?"medium":u,{large:s}),c9.variantClass(void 0===c?"solid":c,{minimal:a,outlined:l}),i);return E.createElement("div",(0,uF.__assign)({},h,{ref:t,className:f}),e.children)});bI.displayName="".concat(gY,".ButtonGroup");var uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),bD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={hasPendingUpdate:!1,isComposing:!1,nextValue:n.props.value,value:n.props.value},n.cancelPendingCompositionEnd=null,n.handleCompositionStart=function(e){var t,r,i;null==(t=n.cancelPendingCompositionEnd)||t.call(n),n.setState({isComposing:!0}),null==(i=(r=n.props).onCompositionStart)||i.call(r,e)},n.handleCompositionEnd=function(e){var r,i;n.cancelPendingCompositionEnd=n.setTimeout(function(){return n.setState({isComposing:!1})},t.COMPOSITION_END_DELAY),null==(i=(r=n.props).onCompositionEnd)||i.call(r,e)},n.handleChange=function(e){var t,r,i=e.target.value;n.setState({nextValue:i}),null==(r=(t=n.props).onChange)||r.call(t,e)},n}return(0,uF.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){if(t.isComposing||void 0===e.value)return null;if(t.nextValue===t.value)return{hasPendingUpdate:!1,nextValue:e.value,value:e.value};if(e.value===t.nextValue)if(t.hasPendingUpdate)return{hasPendingUpdate:!1,value:e.value};else return{value:t.nextValue};return e.value===t.value?{hasPendingUpdate:!0}:{hasPendingUpdate:!1,nextValue:e.value,value:e.value}},t.prototype.render=function(){var e=this.state,t=e.isComposing,n=e.hasPendingUpdate,r=e.value,i=e.nextValue,o=this.props,a=o.inputRef,l=(0,uF.__rest)(o,["inputRef"]);return E.createElement("input",(0,uF.__assign)({},l,{ref:a,value:t||n?i:r,onCompositionStart:this.handleCompositionStart,onCompositionEnd:this.handleCompositionEnd,onChange:this.handleChange}))},t.displayName="".concat(gY,".AsyncControllableInput"),t.COMPOSITION_END_DELAY=10,t}(mf),bz=["inputSize","onValueChange"],bF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.leftElement=null,t.rightElement=null,t.refHandlers={leftElement:function(e){return t.leftElement=e},rightElement:function(e){return t.rightElement=e}},t.handleInputChange=function(e){var n,r,i,o,a=e.target.value;null==(r=(n=t.props).onChange)||r.call(n,e),null==(o=(i=t.props).onValueChange)||o.call(i,a,e.target)},t}return(0,uF.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.asyncControl,r=t.className,i=t.disabled,o=t.fill,a=t.inputClassName,l=t.inputRef,s=t.inputSize,u=t.intent,c=t.large,d=t.readOnly,h=t.round,f=t.size,p=void 0===f?"medium":f,m=t.small,v=t.tagName,y=g(uB)(c9.INPUT_GROUP,c9.intentClass(u),((e={})[c9.DISABLED]=i,e[c9.READ_ONLY]=d,e[c9.FILL]=o,e[c9.ROUND]=h,e),c9.sizeClass(p,{large:c,small:m}),r),b=(0,uF.__assign)((0,uF.__assign)({},this.props.style),{paddingLeft:this.state.leftElementWidth,paddingRight:this.state.rightElementWidth}),x=(0,uF.__assign)((0,uF.__assign)({type:"text"},gK(this.props,bz,!0)),{"aria-disabled":i,className:g(uB)(c9.INPUT,a),onChange:this.handleInputChange,size:null!=s?s:"number"==typeof p?p:void 0,style:b}),w=void 0!==n&&n?E.createElement(bD,(0,uF.__assign)({},x,{inputRef:l})):E.createElement("input",(0,uF.__assign)({},x,{ref:l}));return E.createElement(void 0===v?"div":v,{className:y},this.maybeRenderLeftElement(),w,this.maybeRenderRightElement())},t.prototype.componentDidMount=function(){this.updateInputWidth()},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.leftElement,r=t.rightElement;(e.leftElement!==n||e.rightElement!==r)&&this.updateInputWidth()},t.prototype.validateProps=function(e){null!=e.leftElement&&null!=e.leftIcon&&console.warn(cs)},t.prototype.maybeRenderLeftElement=function(){var e=this.props,t=e.leftElement,n=e.leftIcon;return null!=t?E.createElement("span",{className:c9.INPUT_LEFT_CONTAINER,ref:this.refHandlers.leftElement},t):null!=n?E.createElement(mn,{icon:n,"aria-hidden":!0,tabIndex:-1}):void 0},t.prototype.maybeRenderRightElement=function(){var e=this.props.rightElement;if(null!=e)return E.createElement("span",{className:c9.INPUT_ACTION,ref:this.refHandlers.rightElement},e)},t.prototype.updateInputWidth=function(){var e=this.state,t=e.leftElementWidth,n=e.rightElementWidth;if(null!=this.leftElement){var r=this.leftElement.clientWidth;(void 0===t||Math.abs(r-t)>2)&&this.setState({leftElementWidth:r})}else this.setState({leftElementWidth:void 0});if(null!=this.rightElement){var r=this.rightElement.clientWidth;(void 0===n||Math.abs(r-n)>2)&&this.setState({rightElementWidth:r})}else this.setState({rightElementWidth:void 0})},t.displayName="".concat(gY,".InputGroup"),t}(mf),uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),bB=E.forwardRef(function(e,t){var n,r=e.children,i=e.className,o=e.fill,a=e.vertical,l=(0,uF.__rest)(e,["children","className","fill","vertical"]),s=g(uB)(c9.CONTROL_GROUP,((n={})[c9.FILL]=o,n[c9.VERTICAL]=a,n),i);return E.createElement("div",(0,uF.__assign)({role:"group"},l,{ref:t,className:s}),r)});function bH(e){var t=1.9.toLocaleString(e),n=1..toLocaleString(e),r=9..toLocaleString(e),i=new RegExp("".concat(n,"(.+)").concat(r)).exec(t);return i&&i[1]||"."}function bV(e,t){return void 0===t&&(t="en-US"),bq(e.toLocaleString(t,{roundingPriority:"morePrecision"}),t)}function bU(e,t){var n=""+e;if(parseFloat(n).toString()===e.toString())return e.toString();if(void 0!==t){var r=bH(t);return bq(n,t).split("").map(function(e){var n;return -1!==(n=[0,1,2,3,4,5,6,7,8,9].map(function(e){return e.toLocaleString(t)}).indexOf(e))?n:e}).join("").replace(r,".")}return e.toString()}function bG(e,t){if(void 0===t)return/^[Ee0-9\+\-\.]$/.test(e);var n=bH(t).replace(".","\\.");return RegExp("^[Ee"+[0,1,2,3,4,5,6,7,8,9].map(function(e){return e.toLocaleString(t)}).join("")+"\\+\\-"+n+"]$").test(e)}function bq(e,t){return e.replace(/[\uFF10-\uFF19]/g,function(e){return String.fromCharCode(e.charCodeAt(0)-65248)}).split("").filter(function(e){return bG(e,t)}).join("")}bB.displayName="".concat(gY,".ControlGroup"),(jU=Ll||(Ll={}))[jU.DOWN=-1]="DOWN",jU[jU.UP=1]="UP";var b$=["allowNumericCharactersOnly","buttonPosition","clampValueOnBlur","className","defaultValue","majorStepSize","minorStepSize","onButtonClick","onValueChange","selectAllOnFocus","selectAllOnIncrement","stepSize"],bW=function(e){function t(){var n,r,i=e.apply(this,arguments)||this;return i.numericInputId=uY.uniqueId("numericInput"),i.state={currentImeInputInvalid:!1,shouldSelectAfterUpdate:!1,stepMaxPrecision:t.getStepMaxPrecision(i.props),value:(void 0===(n=null!=(r=i.props.value)?r:i.props.defaultValue)&&(n=""),n.toString())},i.didPasteEventJustOccur=!1,i.delta=0,i.inputElement=null,i.inputRef=uW(i,"inputElement",i.props.inputRef),i.incrementButtonHandlers=i.getButtonEventHandlers(Ll.UP),i.decrementButtonHandlers=i.getButtonEventHandlers(Ll.DOWN),i.getCurrentValueAsNumber=function(){return Number(bU(i.state.value,i.props.locale))},i.handleButtonClick=function(e,t){var n,r,o=i.updateDelta(t,e),a=i.incrementValue(o);null==(r=(n=i.props).onButtonClick)||r.call(n,Number(bU(a,i.props.locale)),a)},i.stopContinuousChange=function(){i.delta=0,i.clearTimeouts(),clearInterval(i.intervalId),document.removeEventListener("mouseup",i.stopContinuousChange)},i.handleContinuousChange=function(){if(void 0!==i.props.min||void 0!==i.props.max){var e,t,n,r,o=null!=(e=i.props.min)?e:-1/0,a=null!=(t=i.props.max)?t:1/0,l=i.getCurrentValueAsNumber();if(l<=o||l>=a)return void i.stopContinuousChange()}var s=i.incrementValue(i.delta);null==(r=(n=i.props).onButtonClick)||r.call(n,Number(bU(s,i.props.locale)),s)},i.handleInputFocus=function(e){var t,n;i.setState({shouldSelectAfterUpdate:i.props.selectAllOnFocus}),null==(n=(t=i.props).onFocus)||n.call(t,e)},i.handleInputBlur=function(e){var t,n;if(i.setState({shouldSelectAfterUpdate:!1}),i.props.clampValueOnBlur){var r=e.target.value;i.handleNextValue(i.roundAndClampValue(r))}null==(n=(t=i.props).onBlur)||n.call(t,e)},i.handleInputKeyDown=function(e){if(!i.props.disabled&&!i.props.readOnly){var t,n,r=uY.getArrowKeyDirection(e,["ArrowDown"],["ArrowUp"]);if(void 0!==r){e.preventDefault();var o=i.updateDelta(r,e);i.incrementValue(o)}null==(n=(t=i.props).onKeyDown)||n.call(t,e)}},i.handleCompositionEnd=function(e){i.props.allowNumericCharactersOnly&&(i.handleNextValue(bq(e.data,i.props.locale)),i.setState({currentImeInputInvalid:!1}))},i.handleCompositionUpdate=function(e){if(i.props.allowNumericCharactersOnly){var t=e.data;0===bq(t,i.props.locale).length&&t.length>0?i.setState({currentImeInputInvalid:!0}):i.setState({currentImeInputInvalid:!1})}},i.handleInputKeyPress=function(e){var t,n,r;i.props.allowNumericCharactersOnly&&(r=i.props.locale,!(null==e.key||e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||bG(e.key,r)))&&e.preventDefault(),null==(n=(t=i.props).onKeyPress)||n.call(t,e)},i.handleInputPaste=function(e){var t,n;i.didPasteEventJustOccur=!0,null==(n=(t=i.props).onPaste)||n.call(t,e)},i.handleInputChange=function(e){var t=e;i.props.allowNumericCharactersOnly&&i.didPasteEventJustOccur&&(i.didPasteEventJustOccur=!1,t=bq(e,i.props.locale)),i.handleNextValue(t),i.setState({shouldSelectAfterUpdate:!1})},i}return(0,uF.__extends)(t,e),t.getDerivedStateFromProps=function(e,n){var r,i,o={prevMaxProp:e.max,prevMinProp:e.min},a=e.min!==n.prevMinProp,l=e.max!==n.prevMaxProp,s=null!=(i=null==(r=e.value)?void 0:r.toString())?i:n.value,u=t.getStepMaxPrecision(e),c=s!==t.VALUE_EMPTY?t.roundAndClampValue(s,u,e.min,e.max,0,e.locale):t.VALUE_EMPTY;return(a||l)&&c!==n.value?(0,uF.__assign)((0,uF.__assign)({},o),{stepMaxPrecision:u,value:c}):(0,uF.__assign)((0,uF.__assign)({},o),{stepMaxPrecision:u,value:s})},t.getStepMaxPrecision=function(e){return null!=e.minorStepSize?uY.countDecimalPlaces(e.minorStepSize):uY.countDecimalPlaces(e.stepSize)},t.roundAndClampValue=function(e,n,r,i,o,a){var l,s;return(void 0===o&&(o=0),l=bU(e,a),null!=e&&l-parseFloat(l)+1>=0)?bV(cq(Math.round((Number(bU(e,a))+o)*(s=Math.pow(10,n)))/s,null!=r?r:-1/0,null!=i?i:1/0),a):t.VALUE_EMPTY},t.prototype.render=function(){var e=this.props,t=e.buttonPosition,n=e.className,r=e.fill,i=e.large,o=e.size,a=e.small,l=g(uB)(c9.NUMERIC_INPUT,c9.sizeClass(void 0===o?"medium":o,{large:i,small:a}),n),s=this.renderButtons();return E.createElement(bB,{className:l,fill:r},t===da.LEFT&&s,this.renderInput(),t===da.RIGHT&&s)},t.prototype.componentDidUpdate=function(n,r){e.prototype.componentDidUpdate.call(this,n,r),n.inputRef!==this.props.inputRef&&(uG(n.inputRef,null),this.inputRef=uW(this,"inputElement",this.props.inputRef),uG(this.props.inputRef,this.inputElement)),this.state.shouldSelectAfterUpdate&&(null==(i=this.inputElement)||i.setSelectionRange(0,this.state.value.length));var i,o,a,l=this.props.min!==n.min,s=this.props.max!==n.max,u=this.props.locale!==n.locale,c=this.state.value!==r.value;if((l||s)&&c||u&&r.value!==t.VALUE_EMPTY){var d=bU(u?r.value:this.state.value,n.locale),h=bV(+d,this.props.locale);null==(a=(o=this.props).onValueChange)||a.call(o,+d,h,this.inputElement)}},t.prototype.validateProps=function(e){var n=e.majorStepSize,r=e.max,i=e.min,o=e.minorStepSize,a=e.stepSize,l=e.value;if(null!=i&&null!=r&&i>r&&console.error(cc),a<=0&&console.error(cg),o&&o<=0&&console.error(cf),n&&n<=0&&console.error(cp),o&&o>a&&console.error(cd),n&&n<a&&console.error(ch),null!=l){var s=t.getStepMaxPrecision(e),u=t.roundAndClampValue(l.toString(),s,i,r,0,this.props.locale),c=u!==l.toString(),d=bV(Number(bU(l,this.props.locale)),this.props.locale);c&&u!==d&&console.warn(cm)}},t.prototype.renderButtons=function(){var e=this.props,t=e.intent,n=e.max,r=e.min,i=e.locale,o=bU(this.state.value,i),a=this.props.disabled||this.props.readOnly;return E.createElement(bI,{className:c9.FIXED,key:"button-group",vertical:!0},E.createElement(mc,(0,uF.__assign)({"aria-label":"increment","aria-controls":this.numericInputId,disabled:a||void 0!==n&&""!==o&&+o>=n,icon:E.createElement(yk,null),intent:t},this.incrementButtonHandlers)),E.createElement(mc,(0,uF.__assign)({"aria-label":"decrement","aria-controls":this.numericInputId,disabled:a||void 0!==r&&""!==o&&+o<=r,icon:E.createElement(y_,null),intent:t},this.decrementButtonHandlers)))},t.prototype.renderInput=function(){var e=gK(this.props,b$,!0),t=this.getCurrentValueAsNumber();return E.createElement(bF,(0,uF.__assign)({asyncControl:this.props.asyncControl,autoComplete:"off",id:this.numericInputId,role:this.props.allowNumericCharactersOnly?"spinbutton":void 0},e,{"aria-valuemax":this.props.max,"aria-valuemin":this.props.min,"aria-valuenow":t,intent:this.state.currentImeInputInvalid?di:this.props.intent,inputClassName:this.props.inputClassName,inputRef:this.inputRef,inputSize:this.props.inputSize,large:this.props.large,leftElement:this.props.leftElement,leftIcon:this.props.leftIcon,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCompositionEnd:this.handleCompositionEnd,onCompositionUpdate:this.handleCompositionUpdate,onKeyDown:this.handleInputKeyDown,onKeyPress:this.handleInputKeyPress,onPaste:this.handleInputPaste,onValueChange:this.handleInputChange,rightElement:this.props.rightElement,size:this.props.size,small:this.props.small,value:this.state.value}))},t.prototype.getButtonEventHandlers=function(e){var t=this;return{onKeyDown:function(n){!t.props.disabled&&uY.isKeyboardClick(n)&&t.handleButtonClick(n,e)},onMouseDown:function(n){t.props.disabled||(t.handleButtonClick(n,e),t.startContinuousChange())}}},t.prototype.startContinuousChange=function(){var e=this;document.addEventListener("mouseup",this.stopContinuousChange),this.setTimeout(function(){e.intervalId=window.setInterval(e.handleContinuousChange,t.CONTINUOUS_CHANGE_INTERVAL)},t.CONTINUOUS_CHANGE_DELAY)},t.prototype.handleNextValue=function(e){var t,n;null==this.props.value&&this.setState({value:e}),null==(n=(t=this.props).onValueChange)||n.call(t,Number(bU(e,this.props.locale)),e,this.inputElement)},t.prototype.incrementValue=function(e){var n=this.state.value===t.VALUE_EMPTY?t.VALUE_ZERO:this.state.value,r=this.roundAndClampValue(n,e);return r!==this.state.value&&(this.handleNextValue(r),this.setState({shouldSelectAfterUpdate:this.props.selectAllOnIncrement})),r},t.prototype.getIncrementDelta=function(e,t,n){var r=this.props,i=r.majorStepSize,o=r.minorStepSize,a=r.stepSize;return t&&null!=i?e*i:n&&null!=o?e*o:e*a},t.prototype.roundAndClampValue=function(e,n){return void 0===n&&(n=0),t.roundAndClampValue(e,this.state.stepMaxPrecision,this.props.min,this.props.max,n,this.props.locale)},t.prototype.updateDelta=function(e,t){return this.delta=this.getIncrementDelta(e,t.shiftKey,t.altKey),this.delta},t.displayName="".concat(gY,".NumericInput"),t.VALUE_EMPTY="",t.VALUE_ZERO="0",t.defaultProps={allowNumericCharactersOnly:!0,buttonPosition:da.RIGHT,clampValueOnBlur:!1,defaultValue:t.VALUE_EMPTY,large:!1,majorStepSize:10,minorStepSize:.1,selectAllOnFocus:!1,selectAllOnIncrement:!1,size:"medium",small:!1,stepSize:1},t.CONTINUOUS_CHANGE_DELAY=300,t.CONTINUOUS_CHANGE_INTERVAL=100,t}(mf),uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=x("8NFma");function bY(e){return"".concat((100*e).toFixed(2),"%")}function bX(e,t,n,r){for(var i=t<n?1:-1,o=t;o!==n+i;o+=i)e[o]=r}var bK=["max","min","stepSize","tickSize","value"],bZ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isMoving:!1},t.handleElement=null,t.refHandlers={handle:function(e){return t.handleElement=e}},t.beginHandleMovement=function(e){document.addEventListener("mousemove",t.handleHandleMovement),document.addEventListener("mouseup",t.endHandleMovement),t.setState({isMoving:!0}),t.changeValue(t.clientToValue(t.mouseEventClientOffset(e)))},t.beginHandleTouchMovement=function(e){document.addEventListener("touchmove",t.handleHandleTouchMovement),document.addEventListener("touchend",t.endHandleTouchMovement),document.addEventListener("touchcancel",t.endHandleTouchMovement),t.setState({isMoving:!0}),t.changeValue(t.clientToValue(t.touchEventClientOffset(e)))},t.getStyleProperties=function(){if(null==t.handleElement)return{};var e=t.props,n=e.min,r=e.tickSizeRatio,i=e.value,o=e.vertical,a=t.getHandleMidpointAndOffset(t.handleElement,!0).handleMidpoint,l="calc(".concat(bY((i-(void 0===n?0:n))*r)," - ").concat(a,"px)");return o?{bottom:l}:{left:l}},t.endHandleMovement=function(e){t.handleMoveEndedAt(t.mouseEventClientOffset(e))},t.endHandleTouchMovement=function(e){t.handleMoveEndedAt(t.touchEventClientOffset(e))},t.handleMoveEndedAt=function(e){t.removeDocumentEventListeners(),t.setState({isMoving:!1});var n,r,i=t.changeValue(t.clientToValue(e));null==(r=(n=t.props).onRelease)||r.call(n,i)},t.handleHandleMovement=function(e){t.handleMovedTo(t.mouseEventClientOffset(e))},t.handleHandleTouchMovement=function(e){t.handleMovedTo(t.touchEventClientOffset(e))},t.handleMovedTo=function(e){t.state.isMoving&&!t.props.disabled&&t.changeValue(t.clientToValue(e))},t.handleKeyDown=function(e){var n=t.props,r=n.stepSize,i=n.value,o=uY.getArrowKeyDirection(e,["ArrowLeft","ArrowDown"],["ArrowRight","ArrowUp"]);void 0!==o&&(t.changeValue(i+r*o),e.preventDefault())},t.handleKeyUp=function(e){var n,r;uY.isArrowKey(e)&&(null==(r=(n=t.props).onRelease)||r.call(n,t.props.value))},t}return(0,uF.__extends)(t,e),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.disabled,i=t.label,o=t.min,a=t.max,l=t.value,s=t.vertical,u=t.htmlProps,c=this.state.isMoving;return E.createElement("span",(0,uF.__assign)({role:"slider",tabIndex:0},u,{className:g(uB)(c9.SLIDER_HANDLE,((e={})[c9.ACTIVE]=c,e),n),onKeyDown:r?void 0:this.handleKeyDown,onKeyUp:r?void 0:this.handleKeyUp,onMouseDown:r?void 0:this.beginHandleMovement,onTouchStart:r?void 0:this.beginHandleTouchMovement,ref:this.refHandlers.handle,style:this.getStyleProperties(),"aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":l,"aria-disabled":r,"aria-orientation":s?"vertical":"horizontal"}),null==i?null:E.createElement("span",{className:c9.SLIDER_LABEL},i))},t.prototype.componentWillUnmount=function(){this.removeDocumentEventListeners()},t.prototype.clientToValue=function(e){var t=this.props,n=t.stepSize,r=t.tickSize,i=t.value,o=t.vertical;if(null==this.handleElement)return i;var a=(o?window.innerHeight-e:e)-this.getHandleElementCenterPixel(this.handleElement);return isNaN(a)?i:i+Math.round(a/(r*n))*n},t.prototype.mouseEventClientOffset=function(e){return this.props.vertical?e.clientY:e.clientX},t.prototype.touchEventClientOffset=function(e){var t=e.changedTouches[0];return this.props.vertical?t.clientY:t.clientX},t.prototype.validateProps=function(e){for(var t=0;t<bK.length;t++){var n=bK[t];if("number"!=typeof e[n])throw Error("[Blueprint] <Handle> requires number value for ".concat(n," prop"))}},t.prototype.changeValue=function(e,t){return void 0===t&&(t=this.props.onChange),isNaN(e=this.clamp(e))||this.props.value===e||null==t||t(e),e},t.prototype.clamp=function(e){return uY.clamp(e,this.props.min,this.props.max)},t.prototype.getHandleElementCenterPixel=function(e){var t=this.getHandleMidpointAndOffset(e),n=t.handleMidpoint;return t.handleOffset+n},t.prototype.getHandleMidpointAndOffset=function(e,t){if(void 0===t&&(t=!1),null==e)return{handleMidpoint:0,handleOffset:0};var n=this.props.vertical,r=e.getBoundingClientRect();r.width=e.offsetWidth,r.height=e.offsetHeight;var i=n?t?"width":"height":t?"height":"width",o=n?window.innerHeight-(r.top+r[i]):r.left;return{handleMidpoint:r[i]/2,handleOffset:o}},t.prototype.removeDocumentEventListeners=function(){document.removeEventListener("mousemove",this.handleHandleMovement),document.removeEventListener("mouseup",this.endHandleMovement),document.removeEventListener("touchmove",this.handleHandleTouchMovement),document.removeEventListener("touchend",this.endHandleTouchMovement),document.removeEventListener("touchcancel",this.endHandleTouchMovement)},t.displayName="".concat(gY,".SliderHandle"),t}(mf),bQ=function(){return null};bQ.displayName="".concat(gY,".MultiSliderHandle");var bJ=function(e){function t(){var t,n,r,i,o=null!==e&&e.apply(this,arguments)||this;return o.state={labelPrecision:(n=(t=o.props).labelPrecision,i=void 0===(r=t.stepSize)?bJ.defaultSliderProps.stepSize:r,null==n?uY.countDecimalPlaces(i):n),tickSize:0,tickSizeRatio:0},o.handleElements=[],o.trackElement=null,o.addHandleRef=function(e){null!=e&&o.handleElements.push(e)},o.maybeHandleTrackClick=function(e){if(o.canHandleTrackEvent(e)){var t=o.nearestHandleForValue(o.handleElements,function(t){return t.mouseEventClientOffset(e)});t&&t.beginHandleMovement(e)}},o.maybeHandleTrackTouch=function(e){if(o.canHandleTrackEvent(e)){var t=o.nearestHandleForValue(o.handleElements,function(t){return t.touchEventClientOffset(e)});t&&t.beginHandleTouchMovement(e)}},o.canHandleTrackEvent=function(e){var t=e.target;return!o.props.disabled&&null==t.closest(".".concat(c9.SLIDER_HANDLE))},o.getHandlerForIndex=function(e,t){return function(n){null==t||t(o.getNewHandleValues(n,e))}},o.handleChange=function(e){var t,n,r=b0(o.props),i=r.map(function(e){return e.value});uY.arraysEqual(e,i)||(null==(n=(t=o.props).onChange)||n.call(t,e),r.forEach(function(t,n){var r;i[n]!==e[n]&&(null==(r=t.onChange)||r.call(t,e[n]))}))},o.handleRelease=function(e){var t,n,r=b0(o.props);null==(n=(t=o.props).onRelease)||n.call(t,e),r.forEach(function(t,n){var r;null==(r=t.onRelease)||r.call(t,e[n])})},o}return(0,uF.__extends)(t,e),t.getDerivedStateFromProps=function(e){return{labelPrecision:t.getLabelPrecision(e)}},t.getLabelPrecision=function(e){var t=e.labelPrecision,n=e.stepSize;return null==t?uY.countDecimalPlaces(n):t},t.prototype.getSnapshotBeforeUpdate=function(e){var t=b0(e);return b0(this.props).length!==t.length&&(this.handleElements=[]),null},t.prototype.render=function(){var e,t=this,n=g(uB)(c9.SLIDER,((e={})[c9.DISABLED]=this.props.disabled,e["".concat(c9.SLIDER,"-unlabeled")]=!1===this.props.labelRenderer,e[c9.VERTICAL]=this.props.vertical,e),this.props.className);return E.createElement("div",{className:n,onMouseDown:this.maybeHandleTrackClick,onTouchStart:this.maybeHandleTrackTouch},E.createElement("div",{className:c9.SLIDER_TRACK,ref:function(e){return t.trackElement=e}},this.renderTracks()),E.createElement("div",{className:c9.SLIDER_AXIS},this.renderLabels()),this.renderHandles())},t.prototype.componentDidMount=function(){this.updateTickSize()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateTickSize()},t.prototype.validateProps=function(e){if(e.stepSize<=0)throw Error(cT);if(void 0!==e.labelStepSize&&void 0!==e.labelValues)throw Error(cN);if(void 0!==e.labelStepSize&&e.labelStepSize<=0)throw Error(cA);if(void 0!==e.min&&!isFinite(e.min))throw Error(cj);if(void 0!==e.max&&!isFinite(e.max))throw Error(cL);var n=!1;if(E.Children.forEach(e.children,function(e){e&&!uY.isElementOfType(e,t.Handle)&&(n=!0)}),n)throw Error(cR)},t.prototype.formatLabel=function(e,t){void 0===t&&(t=!1);var n=this.props.labelRenderer;return!1===n?void 0:uY.isFunction(n)?n(e,{isHandleTooltip:t}):e.toFixed(this.state.labelPrecision)},t.prototype.renderLabels=function(){var e=this;if(!1===this.props.labelRenderer)return null;var t=this.getLabelValues(),n=this.props,r=n.max,i=n.min;return t.map(function(t,n){var o=bY((t-i)/(r-i)),a=e.props.vertical?{bottom:o}:{left:o};return E.createElement("div",{className:c9.SLIDER_LABEL,key:n,style:a},e.formatLabel(t))})},t.prototype.renderTracks=function(){var e=b1(this.props);e.push({value:this.props.max});for(var t={value:this.props.min},n=[],r=0;r<e.length;r++){var i=e[r];n.push(this.renderTrackFill(r,t,i)),t=i}return n},t.prototype.renderTrackFill=function(e,t,n){var r=[this.getOffsetRatio(t.value),this.getOffsetRatio(n.value)].sort(function(e,t){return e-t}),i=r[0],o=r[1],a=bY(i),l=bY(1-o),s=this.props.vertical?{bottom:a,left:0,top:l}:{left:a,right:l,top:0},u=(0,uF.__assign)((0,uF.__assign)({},s),t.trackStyleAfter||n.trackStyleBefore||{}),c=g(uB)(c9.SLIDER_PROGRESS,c9.intentClass(this.getTrackIntent(t,n)));return E.createElement("div",{key:"track-".concat(e),className:c,style:u})},t.prototype.renderHandles=function(){var e=this,t=this.props,n=t.disabled,r=t.max,i=t.min,o=t.stepSize,a=t.vertical,l=b0(this.props);return 0===l.length?null:l.map(function(t,s){var u,c=t.value,d=t.type,h=t.className,f=t.htmlProps;return E.createElement(bZ,{htmlProps:f,className:g(uB)(((u={})[c9.START]="start"===d,u[c9.END]="end"===d,u),h),disabled:n,key:"".concat(s,"-").concat(l.length),label:e.formatLabel(c,!0),max:r,min:i,onChange:e.getHandlerForIndex(s,e.handleChange),onRelease:e.getHandlerForIndex(s,e.handleRelease),ref:e.addHandleRef,stepSize:o,tickSize:e.state.tickSize,tickSizeRatio:e.state.tickSizeRatio,value:c,vertical:a})})},t.prototype.nearestHandleForValue=function(e,t){return function(e,t){if(0!==e.length){for(var n=e[0],r=t(n),i=1;i<e.length;i++){var o=e[i],a=t(o);a<r&&(n=o,r=a)}return n}}(e,function(e){var n=t(e);return Math.abs(e.clientToValue(n)-e.props.value)})},t.prototype.getNewHandleValues=function(e,t){var n=b0(this.props).map(function(e){return e.value}),r=n.slice();r[t]=e,r.sort(function(e,t){return e-t});var i=r.indexOf(e),o=this.findFirstLockedHandleIndex(t,i);if(-1===o)bX(r,t,i,e);else{var a=n[o];return bX(n,t,o,a),n}return r},t.prototype.findFirstLockedHandleIndex=function(e,t){for(var n=e<t?1:-1,r=b0(this.props),i=e+n;i!==t+n;i+=n)if("push"!==r[i].interactionKind)return i;return -1},t.prototype.getLabelValues=function(){var e=this.props,t=e.labelStepSize,n=e.labelValues,r=e.min,i=e.max,o=[];if(void 0!==n)o=n.slice();else for(var a=r;a<i||uY.approxEqual(a,i);a+=null!=t?t:1)o.push(a);return o},t.prototype.getOffsetRatio=function(e){return uY.clamp((e-this.props.min)*this.state.tickSizeRatio,0,1)},t.prototype.getTrackIntent=function(e,t){return this.props.showTrackFill?void 0!==e.intentAfter?e.intentAfter:void 0!==t&&void 0!==t.intentBefore?t.intentBefore:this.props.defaultTrackIntent:dn},t.prototype.updateTickSize=function(){if(null!=this.trackElement){var e=this.props.vertical?this.trackElement.clientHeight:this.trackElement.clientWidth,t=1/(this.props.max-this.props.min);this.setState({tickSize:e*t,tickSizeRatio:t})}},t.defaultSliderProps={disabled:!1,max:10,min:0,showTrackFill:!0,stepSize:1,vertical:!1},t.defaultProps=(0,uF.__assign)((0,uF.__assign)({},t.defaultSliderProps),{defaultTrackIntent:dn}),t.displayName="".concat(gY,".MultiSlider"),t.Handle=bQ,t}(mf);function b0(e){return b1(e,function(e){return"none"!==e.interactionKind})}function b1(e,t){var n=e.children;void 0===t&&(t=function(){return!0});var r=E.Children.map(n,function(e){return uY.isElementOfType(e,bJ.Handle)&&t(e.props)?e.props:null}),i=null!=r?r:[];return(i=i.filter(function(e){return null!==e})).sort(function(e,t){return e.value-t.value}),i}var b2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,uF.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.initialValue,n=e.intent,r=e.value,i=e.onChange,o=e.onRelease,a=e.handleHtmlProps,l=(0,uF.__rest)(e,["initialValue","intent","value","onChange","onRelease","handleHtmlProps"]);return E.createElement(bJ,(0,uF.__assign)({},l),E.createElement(bJ.Handle,{value:r,intentAfter:r<t?n:void 0,intentBefore:r>t?n:void 0,onChange:i,onRelease:o,htmlProps:a}),E.createElement(bJ.Handle,{value:t,interactionKind:"none"}))},t.defaultProps=(0,uF.__assign)((0,uF.__assign)({},bJ.defaultSliderProps),{initialValue:0,intent:dr,value:0}),t.displayName="".concat(gY,".Slider"),t}(mf),b3=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function b4(e,t){if(e.length!==t.length)return!1;for(var n,r,i=0;i<e.length;i++)if(!((n=e[i])===(r=t[i])||b3(n)&&b3(r))&&1)return!1;return!0}var b8=function(e,t){void 0===t&&(t=b4);var n,r,i=[],o=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return o&&n===this&&t(a,i)||(r=e.apply(this,a),o=!0,n=this,i=a),r}},E=x("8NFma"),b6="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function b5(e){cancelAnimationFrame(e.id)}var b9=-1;function b7(e){if(void 0===e&&(e=!1),-1===b9||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),b9=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return b9}var xe=null;function xt(e){if(void 0===e&&(e=!1),null===xe||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?xe="positive-descending":(t.scrollLeft=1,xe=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t)}return xe}var xn=function(e,t){return e},xr=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},xi=(j$=(jG={getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,i,o){var a=e.direction,l=e.height,s=e.itemCount,u=e.itemSize,c=e.layout,d=e.width,h="horizontal"===a||"horizontal"===c?d:l,f=Math.max(0,s*u-h),p=Math.min(f,t*u),g=Math.max(0,t*u-h+u+o);switch("smart"===n&&(n=r>=g-h&&r<=p+h?"auto":"center"),n){case"start":return p;case"end":return g;case"center":var m=Math.round(g+(p-g)/2);if(m<Math.ceil(h/2))return 0;if(m>f+Math.floor(h/2))return f;return m;default:if(r>=g&&r<=p)return r;if(r<g)return g;return p}},getStartIndexForOffset:function(e,t){return Math.max(0,Math.min(e.itemCount-1,Math.floor(t/e.itemSize)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,i=e.height,o=e.itemCount,a=e.itemSize,l=e.layout,s=e.width,u=Math.ceil((("horizontal"===r||"horizontal"===l?s:i)+n-t*a)/a);return Math.max(0,Math.min(o-1,t+u-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}}).getItemOffset,jW=jG.getEstimatedTotalSize,jY=jG.getItemSize,jX=jG.getOffsetForIndexAndAlignment,jK=jG.getStartIndexForOffset,jZ=jG.getStopIndexForStartIndex,jQ=jG.initInstanceProps,jJ=jG.shouldResetStyleCacheOnItemSizeChange,j0=jG.validateProps,(jq=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=jQ(n.props,vU(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:vU(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=b8(function(e,t,r,i){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:i})}),n._callOnScroll=void 0,n._callOnScroll=b8(function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,r=n.props,i=r.direction,o=r.itemSize,a=r.layout,l=n._getItemStyleCache(jJ&&o,jJ&&a,jJ&&i);if(l.hasOwnProperty(e))t=l[e];else{var s=j$(n.props,e,n._instanceProps),u=jY(n.props,e,n._instanceProps),c="horizontal"===i||"horizontal"===a,d="rtl"===i,h=c?s:0;l[e]=t={position:"absolute",left:d?void 0:h,right:d?h:void 0,top:c?0:s,height:c?"100%":u,width:c?u:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=b8(function(e,t,n){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===i)return null;var t=n.props.direction,a=i;if("rtl"===t)switch(xt()){case"negative":a=-i;break;case"positive-descending":a=o-r-i}return a=Math.max(0,Math.min(a,o-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;n.setState(function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){var e,t,r;null!==n._resetIsScrollingTimeoutId&&b5(n._resetIsScrollingTimeoutId),e=n._resetIsScrolling,t=b6(),n._resetIsScrollingTimeoutId=r={id:requestAnimationFrame(function n(){b6()-t>=150?e.call(null):r.id=requestAnimationFrame(n)})}},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}vA(t,e),t.getDerivedStateFromProps=function(e,t){return xr(e,t),j0(e),null};var n=t.prototype;return n.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},n.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,i=n.layout,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===i?l.scrollWidth>l.clientWidth?b7():0:l.scrollHeight>l.clientHeight?b7():0}this.scrollTo(jX(this.props,e,t,o,this._instanceProps,a))},n.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(xt()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,l=o.scrollWidth;o.scrollLeft=l-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&b5(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,r=e.direction,i=e.height,o=e.innerRef,a=e.innerElementType,l=e.innerTagName,s=e.itemCount,u=e.itemData,c=e.itemKey,d=void 0===c?xn:c,h=e.layout,f=e.outerElementType,p=e.outerTagName,g=e.style,m=e.useIsScrolling,v=e.width,y=this.state.isScrolling,b="horizontal"===r||"horizontal"===h,x=b?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],_=w[1],S=[];if(s>0)for(var k=C;k<=_;k++)S.push((0,E.createElement)(t,{data:u,key:d(k,u),index:k,isScrolling:m?y:void 0,style:this._getItemStyle(k)}));var O=jW(this.props,this._instanceProps);return(0,E.createElement)(f||p||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:vO({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},g)},(0,E.createElement)(a||l||"div",{children:S,ref:o,style:{height:b?"100%":O,pointerEvents:y?"none":void 0,width:b?O:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"==typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,l=o.scrollOffset,s=o.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var l=jK(this.props,a,this._instanceProps),s=jZ(this.props,l,a,this._instanceProps);return[Math.max(0,l-(i&&"backward"!==o?1:Math.max(1,n))),Math.max(0,Math.min(t-1,s+(i&&"forward"!==o?1:Math.max(1,n)))),l,s]},t}(E.PureComponent)).defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},jq),E=(x("8NFma"),x("8NFma")),xo={};h(xo,"FOCUS_EVENT",()=>xa),h(xo,"RECONNECT_EVENT",()=>xl),h(xo,"MUTATE_EVENT",()=>xs),h(xo,"ERROR_REVALIDATE_EVENT",()=>xu);let xa=0,xl=1,xs=2,xu=3;var xc=Object.prototype.hasOwnProperty;let xd=new WeakMap,xh=()=>{},xf=xh(),xp=Object,xg=e=>e===xf,xm=(e,t)=>({...e,...t}),xv={},xy={},xb="undefined",xx=typeof window!=xb,xw=typeof document!=xb,xC=xx&&"Deno"in window,x_=(e,t)=>{let n=xd.get(e);return[()=>!xg(t)&&e.get(t)||xv,r=>{if(!xg(t)){let i=e.get(t);t in xy||(xy[t]=i),n[5](t,xm(i,r),i||xv)}},n[6],()=>!xg(t)&&t in xy?xy[t]:!xg(t)&&e.get(t)||xv]},xS=!0,[xE,xk]=xx&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[xh,xh],xO={initFocus:e=>(xw&&document.addEventListener("visibilitychange",e),xE("focus",e),()=>{xw&&document.removeEventListener("visibilitychange",e),xk("focus",e)}),initReconnect:e=>{let t=()=>{xS=!0,e()},n=()=>{xS=!1};return xE("online",t),xE("offline",n),()=>{xk("online",t),xk("offline",n)}}},xP=!g(E).useId,xT=!xx||xC,xA=xT?E.useEffect:E.useLayoutEffect,xj="undefined"!=typeof navigator&&navigator.connection,xL=!xT&&xj&&(["slow-2g","2g"].includes(xj.effectiveType)||xj.saveData),xR=new WeakMap,xN=(e,t)=>e===`[object ${t}]`,xM=0,xI=e=>{let t,n,r=typeof e,i=xp.prototype.toString.call(e),o=xN(i,"Date"),a=xN(i,"RegExp"),l=xN(i,"Object");if(xp(e)!==e||o||a)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=xR.get(e))return t;if(t=++xM+"~",xR.set(e,t),Array.isArray(e)){for(n=0,t="@";n<e.length;n++)t+=xI(e[n])+",";xR.set(e,t)}if(l){t="#";let r=xp.keys(e).sort();for(;!xg(n=r.pop());)xg(e[n])||(t+=n+":"+xI(e[n])+",");xR.set(e,t)}}return t},xD=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?xI(e):"",t]},xz=0,xF=()=>++xz;async function xB(...e){let[t,n,r,i]=e,o=xm({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),a=o.populateCache,l=o.rollbackOnError,s=o.optimisticData,u=o.throwOnError;if("function"==typeof n){let e=[];for(let r of t.keys())!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r);return Promise.all(e.map(c))}return c(n);async function c(n){let i,[c]=xD(n);if(!c)return;let[d,h]=x_(t,c),[f,p,g,m]=xd.get(t),v=()=>{let e=f[c];return("function"==typeof o.revalidate?o.revalidate(d().data,n):!1!==o.revalidate)&&(delete g[c],delete m[c],e&&e[0])?e[0](xs).then(()=>d().data):d().data};if(e.length<3)return v();let y=r,b=!1,x=xF();p[c]=[x,0];let w=!xg(s),C=d(),_=C.data,S=C._c,E=xg(S)?_:S;if(w&&h({data:s="function"==typeof s?s(E,_):s,_c:E}),"function"==typeof y)try{y=y(E)}catch(e){i=e,b=!0}if(y&&"function"==typeof y.then){let e;if(y=await y.catch(e=>{i=e,b=!0}),x!==p[c][0]){if(b)throw i;return y}b&&w&&(e=i,"function"==typeof l?l(e):!1!==l)&&(a=!0,h({data:E,_c:xf}))}if(a&&!b&&("function"==typeof a?h({data:a(y,E),error:xf,_c:xf}):h({data:y,error:xf,_c:xf})),p[c][1]=xF(),Promise.resolve(v()).then(()=>{h({_c:xf})}),b){if(u)throw i;return}return y}}let xH=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},xV=(e,t)=>{if(!xd.has(e)){let n=xm(xO,t),r=Object.create(null),i=xB.bind(xf,e),o=xh,a=Object.create(null),l=(e,t)=>{let n=a[e]||[];return a[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},s=(t,n,r)=>{e.set(t,n);let i=a[t];if(i)for(let e of i)e(n,r)},u=()=>{if(!xd.has(e)&&(xd.set(e,[r,Object.create(null),Object.create(null),Object.create(null),i,s,l]),!xT)){let t=n.initFocus(setTimeout.bind(xf,xH.bind(xf,r,xa))),i=n.initReconnect(setTimeout.bind(xf,xH.bind(xf,r,xl)));o=()=>{t&&t(),i&&i(),xd.delete(e)}}};return u(),[e,i,u,o]}return[e,xd.get(e)[4]]},[xU,xG]=xV(new Map),xq=xm({onLoadingSlow:xh,onSuccess:xh,onError:xh,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,a=i.retryCount,l=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;(xg(o)||!(a>o))&&setTimeout(r,l,i)},onDiscarded:xh,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:xL?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:xL?5e3:3e3,compare:function e(t,n){var r,i;if(t===n)return!0;if(t&&n&&(r=t.constructor)===n.constructor){if(r===Date)return t.getTime()===n.getTime();if(r===RegExp)return t.toString()===n.toString();if(r===Array){if((i=t.length)===n.length)for(;i--&&e(t[i],n[i]););return -1===i}if(!r||"object"==typeof t){for(r in i=0,t)if(xc.call(t,r)&&++i&&!xc.call(n,r)||!(r in n)||!e(t[r],n[r]))return!1;return Object.keys(n).length===i}}return t!=t&&n!=n},isPaused:()=>!1,cache:xU,mutate:xG,fallback:{}},{isOnline:()=>xS,isVisible:()=>{let e=xw&&document.visibilityState;return xg(e)||"hidden"!==e}}),x$=(e,t)=>{let n=xm(e,t);if(t){let{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=xm(i,a))}return n},xW=(0,E.createContext)({}),xY="$inf$";var E=x("8NFma");let xX=xx&&window.__SWR_DEVTOOLS_USE__,xK=xX?window.__SWR_DEVTOOLS_USE__:[],xZ=e=>"function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],xQ=xK.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let[r]=xD(t),[,,,i]=xd.get(xU);if(r.startsWith(xY))return n(...e);let o=i[r];return xg(o)?n(...e):(delete i[r],o)});return e(t,i,r)});xX&&(window.__SWR_DEVTOOLS_REACT__=g(E));let xJ=()=>{},x0=xJ(),x1=(new WeakMap,g(E).use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),x2={dedupe:!0},x3=Promise.resolve(xf);xp.defineProperty(e=>{let{value:t}=e,n=(0,E.useContext)(xW),r="function"==typeof t,i=(0,E.useMemo)(()=>r?t(n):t,[r,n,t]),o=(0,E.useMemo)(()=>r?i:x$(n,i),[r,n,i]),a=i&&i.provider,l=(0,E.useRef)(xf);a&&!l.current&&(l.current=xV(a(o.cache||xU),i));let s=l.current;return s&&(o.cache=s[0],o.mutate=s[1]),xA(()=>{if(s)return s[2]&&s[2](),s[3]},[]),(0,E.createElement)(xW.Provider,xm(e,{value:o}))},"defaultValue",{value:xq});let x4=(c=(e,t,n)=>{let{cache:r,compare:i,suspense:o,fallbackData:a,revalidateOnMount:l,revalidateIfStale:s,refreshInterval:u,refreshWhenHidden:c,refreshWhenOffline:d,keepPreviousData:h}=n,[f,p,g,m]=xd.get(r),[v,y]=xD(e),b=(0,E.useRef)(!1),x=(0,E.useRef)(!1),w=(0,E.useRef)(v),C=(0,E.useRef)(t),_=(0,E.useRef)(n),S=()=>_.current.isVisible()&&_.current.isOnline(),[k,O,P,T]=x_(r,v),j=(0,E.useRef)({}).current,L=xg(a)?xg(n.fallback)?xf:n.fallback[v]:a,R=(e,t)=>{for(let n in j)if("data"===n){if(!i(e[n],t[n])&&(!xg(e[n])||!i(V,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},N=(0,E.useMemo)(()=>{let e=!!v&&!!t&&(xg(l)?!_.current.isPaused()&&!o&&!1!==s:l),n=t=>{let n=xm(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=k(),i=T(),a=n(r),u=r===i?a:n(i),c=a;return[()=>{let e=n(k());return R(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>u]},[r,v]),M=(0,A.useSyncExternalStore)((0,E.useCallback)(e=>P(v,(t,n)=>{R(n,t)||e()}),[r,v]),N[0],N[1]),I=!b.current,D=f[v]&&f[v].length>0,z=M.data,F=xg(z)?L&&"function"==typeof L.then?x1(L):L:z,B=M.error,H=(0,E.useRef)(F),V=h?xg(z)?xg(H.current)?F:H.current:z:F,U=(!D||!!xg(B))&&(I&&!xg(l)?l:!_.current.isPaused()&&(o?!xg(F)&&s:xg(F)||s)),G=!!(v&&t&&I&&U),q=xg(M.isValidating)?G:M.isValidating,$=xg(M.isLoading)?G:M.isLoading,W=(0,E.useCallback)(async e=>{let t,r,o=C.current;if(!v||!o||x.current||_.current.isPaused())return!1;let a=!0,l=e||{},s=!g[v]||!l.dedupe,u=()=>xP?!x.current&&v===w.current&&b.current:v===w.current,c={isValidating:!1,isLoading:!1},d=()=>{O(c)},h=()=>{let e=g[v];e&&e[1]===r&&delete g[v]},m={isValidating:!0};xg(k().data)&&(m.isLoading=!0);try{if(s&&(O(m),n.loadingTimeout&&xg(k().data)&&setTimeout(()=>{a&&u()&&_.current.onLoadingSlow(v,n)},n.loadingTimeout),g[v]=[o(y),xF()]),[t,r]=g[v],t=await t,s&&setTimeout(h,n.dedupingInterval),!g[v]||g[v][1]!==r)return s&&u()&&_.current.onDiscarded(v),!1;c.error=xf;let e=p[v];if(!xg(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return d(),s&&u()&&_.current.onDiscarded(v),!1;let l=k().data;c.data=i(l,t)?l:t,s&&u()&&_.current.onSuccess(t,v,n)}catch(n){h();let e=_.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=n,s&&u())&&(e.onError(n,v,e),(!0===t||"function"==typeof t&&t(n))&&(!_.current.revalidateOnFocus||!_.current.revalidateOnReconnect||S())&&e.onErrorRetry(n,v,e,e=>{let t=f[v];t&&t[0]&&t[0](xo.ERROR_REVALIDATE_EVENT,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0}))}return a=!1,d(),!0},[v,r]),Y=(0,E.useCallback)((...e)=>xB(r,w.current,...e),[]);if(xA(()=>{C.current=t,_.current=n,xg(z)||(H.current=z)}),xA(()=>{var e;let t;if(!v)return;let n=W.bind(xf,x2),r=0;_.current.revalidateOnFocus&&(r=Date.now()+_.current.focusThrottleInterval);let i=(e=(e,t={})=>{if(e==xo.FOCUS_EVENT){let e=Date.now();_.current.revalidateOnFocus&&e>r&&S()&&(r=e+_.current.focusThrottleInterval,n())}else if(e==xo.RECONNECT_EVENT)_.current.revalidateOnReconnect&&S()&&n();else if(e==xo.MUTATE_EVENT)return W();else if(e==xo.ERROR_REVALIDATE_EVENT)return W(t)},(t=f[v]||(f[v]=[])).push(e),()=>{let n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.pop())});if(x.current=!1,w.current=v,b.current=!0,O({_k:y}),U&&!g[v])if(xg(F)||xT)n();else xx&&typeof window.requestAnimationFrame!=xb?window.requestAnimationFrame(n):setTimeout(n,1);return()=>{x.current=!0,i()}},[v]),xA(()=>{let e;function t(){let t="function"==typeof u?u(k().data):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!k().error&&(c||_.current.isVisible())&&(d||_.current.isOnline())?W(x2).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[u,c,d,v]),(0,E.useDebugValue)(V),o){let e=v&&xg(F);if(!xP&&xT&&e)throw Error("Fallback data is required when using Suspense in SSR.");e&&(C.current=t,_.current=n,x.current=!1);let r=m[v];if(x1(!xg(r)&&e?Y(r):x3),!xg(B)&&e)throw B;let i=e?W(x2):x3;!xg(V)&&e&&(i.status="fulfilled",i.value=!0),x1(i)}return{mutate:Y,get data(){return j.data=!0,V},get error(){return j.error=!0,B},get isValidating(){return j.isValidating=!0,q},get isLoading(){return j.isLoading=!0,$}}},function(...e){let t,n=(t=(0,E.useContext)(xW),(0,E.useMemo)(()=>xm(xq,t),[t])),[r,i,o]=xZ(e),a=x$(n,o),l=c,{use:s}=a,u=(s||[]).concat(xQ);for(let e=u.length;e--;)l=u[e](l);return l(r,i||a.fetcher||null,a)});var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),x8=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"align-center",ref:t},e),E.createElement("path",{d:n?"M100 300C89 300 80 291 80 280C80 269 89 260 100 260H300C311 260 320 269 320 280C320 291 311 300 300 300H100zM20 340H380C391 340 400 349 400 360C400 371 391 380 380 380H20C9 380 0 371 0 360C0 349 9 340 20 340zM260 100C271 100 280 109 280 120C280 131 271 140 260 140H140C129 140 120 131 120 120C120 109 129 100 140 100H260zM340 60H60C49 60 40 51 40 40C40 29 49 20 60 20H340C351 20 360 29 360 40C360 51 351 60 340 60zM380 220H20C9 220 0 211 0 200C0 189 9 180 20 180H380C391 180 400 189 400 200C400 211 391 220 380 220z":"M80 240C69 240 60 231 60 220C60 209 69 200 80 200H240C251 200 260 209 260 220C260 231 251 240 240 240H80zM20 260H300C311 260 320 269 320 280C320 291 311 300 300 300H20C9 300 0 291 0 280C0 269 9 260 20 260zM280 60H40C29 60 20 51 20 40C20 29 29 20 40 20H280C291 20 300 29 300 40C300 51 291 60 280 60zM300 180H20C9 180 0 171 0 160C0 149 9 140 20 140H300C311 140 320 149 320 160C320 171 311 180 300 180zM200 80C211 80 220 89 220 100C220 111 211 120 200 120H120C109 120 100 111 100 100C100 89 109 80 120 80H200z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});x8.defaultProps={size:g6.IconSize.STANDARD},x8.displayName="Blueprint5.Icon.AlignCenter";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),x6=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"align-justify",ref:t},e),E.createElement("path",{d:n?"M20 340H380C391 340 400 349 400 360C400 371 391 380 380 380H20C9 380 0 371 0 360C0 349 9 340 20 340zM380 60H20C9 60 0 51 0 40C0 29 9 20 20 20H380C391 20 400 29 400 40C400 51 391 60 380 60zM380 300H20C9 300 0 291 0 280C0 269 9 260 20 260H380C391 260 400 269 400 280C400 291 391 300 380 300zM380 220H20C9 220 0 211 0 200C0 189 9 180 20 180H380C391 180 400 189 400 200C400 211 391 220 380 220zM380 140H20C9 140 0 131 0 120C0 109 9 100 20 100H380C391 100 400 109 400 120C400 131 391 140 380 140z":"M300 60.4H20C9 60.4 0 51.4 0 40.4C0 29.4 9 20.4 20 20.4H300C311 20.4 320 29.4 320 40.4C320 51.4 311 60.4 300 60.4zM20 260.4H300C311 260.4 320 269.4 320 280.4C320 291.4 311 300.4 300 300.4H20C9 300.4 0 291.4 0 280.4C0 269.2 9 260.4 20 260.4zM300 180.4H20C9 180.4 0 171.4 0 160.4C0 149.4 9 140.4 20 140.4H300C311 140.4 320 149.4 320 160.4C320 171.4 311 180.4 300 180.4zM300 240.4H20C9 240.4 0 231.4 0 220.4C0 209.4 9 200.4 20 200.4H300C311 200.4 320 209.4 320 220.4C320 231.4 311 240.4 300 240.4zM300 120.4H20C9 120.4 0 111.4 0 100.4C0 89.4 9 80.4 20 80.4H300C311 80.4 320 89.4 320 100.4C320 111.4 311 120.4 300 120.4z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});x6.defaultProps={size:g6.IconSize.STANDARD},x6.displayName="Blueprint5.Icon.AlignJustify";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),x5=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"align-left",ref:t},e),E.createElement("path",{d:n?"M20 260H220C231 260 240 269 240 280C240 291 231 300 220 300H20C9 300 0 291 0 280C0 269 9 260 20 260zM20 340H380C391 340 400 349 400 360C400 371 391 380 380 380H20C9 380 0 371 0 360C0 349 9 340 20 340zM300 60H20C9 60 0 51 0 40C0 29 9 20 20 20H300C311 20 320 29 320 40C320 51 311 60 300 60zM380 220H20C9 220 0 211 0 200C0 189 9 180 20 180H380C391 180 400 189 400 200C400 211 391 220 380 220zM20 100H140C151 100 160 109 160 120C160 131 151 140 140 140H20C9 140 0 131 0 120C0 109 9 100 20 100z":"M260 60H20C9 60 0 51 0 40C0 29 9 20 20 20H260C271 20 280 29 280 40C280 51 271 60 260 60zM20 260H300C311 260 320 269 320 280C320 291 311 300 300 300H20C9 300 0 291 0 280C0 269 9 260 20 260zM20 200H180C191 200 200 209 200 220C200 231 191 240 180 240H20C9 240 0 231 0 220C0 209 9 200 20 200zM300 180H20C9 180 0 171 0 160C0 149 9 140 20 140H300C311 140 320 149 320 160C320 171 311 180 300 180zM20 80H100C111 80 120 89 120 100C120 111 111 120 100 120H20C9 120 0 111 0 100C0 89 9 80 20 80z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});x5.defaultProps={size:g6.IconSize.STANDARD},x5.displayName="Blueprint5.Icon.AlignLeft";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),x9=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"align-right",ref:t},e),E.createElement("path",{d:n?"M380 60H100C89 60 80 51 80 40C80 29 89 20 100 20H380C391 20 400 29 400 40C400 51 391 60 380 60zM20 340H380C391 340 400 349 400 360C400 371 391 380 380 380H20C9 380 0 371 0 360C0 349 9 340 20 340zM380 140H260C249 140 240 131 240 120C240 109 249 100 260 100H380C391 100 400 109 400 120C400 131 391 140 380 140zM380 220H20C9 220 0 211 0 200C0 189 9 180 20 180H380C391 180 400 189 400 200C400 211 391 220 380 220zM380 300H180C169 300 160 291 160 280C160 269 169 260 180 260H380C391 260 400 269 400 280C400 291 391 300 380 300z":"M300 60.4H60C49 60.4 40 51.4 40 40.4C40 29.4 49 20.4 60 20.4H300C311 20.4 320 29.4 320 40.4C320 51.4 311 60.4 300 60.4zM20 260.4H300C311 260.4 320 269.4 320 280.4C320 291.4 311 300.4 300 300.4H20C9 300.4 0 291.4 0 280.4C0 269.2 9 260.4 20 260.4zM300 240.4H140C129 240.4 120 231.4 120 220.4C120 209.4 129 200.4 140 200.4H300C311 200.4 320 209.4 320 220.4C320 231.4 311 240.4 300 240.4zM300 120.4H220C209 120.4 200 111.4 200 100.4C200 89.4 209 80.4 220 80.4H300C311 80.4 320 89.4 320 100.4C320 111.4 311 120.4 300 120.4zM300 180.4H20C9 180.4 0 171.4 0 160.4C0 149.4 9 140.4 20 140.4H300C311 140.4 320 149.4 320 160.4C320 171.4 311 180.4 300 180.4z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});x9.defaultProps={size:g6.IconSize.STANDARD},x9.displayName="Blueprint5.Icon.AlignRight";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),x7=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"bold",ref:t},e),E.createElement("path",{d:n?"M286 220C294 236 300 252 300 270C300 320 260 360 210 360H100C88 360 80 352 80 340V80C80 68 88 60 100 60H230C280 60 320 100 320 150C320 178 306 204 286 220zM140 300H210C226 300 240 286 240 270C240 254 226 240 210 240H140V300zM230 120H140V180H230C246 180 260 166 260 150C260 134 246 120 230 120z":"M234 180C238 188 240 200 240 210C240 212 240 216 240 218C240 220 240 220 240 220C240 222 240 224 238 226C238 226 238 228 238 228C228 258 202 280 170 280H80C70 280 60 272 60 260V60C60 50 68 40 80 40H180C224 40 260 76 260 120C260 144 250 166 234 180zM120 220H160C172 220 180 212 180 200S172 180 160 180H120V220zM180 100H120V140H180C192 140 200 132 200 120S192 100 180 100z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});x7.defaultProps={size:g6.IconSize.STANDARD},x7.displayName="Blueprint5.Icon.Bold";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),we=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"caret-down",ref:t},e),E.createElement("path",{d:n?"M320 260C320 271 311 280 300 280H100C89 280 80 271 80 260C80 255.2 82 250.8 84.8 247.4L84.6 247.2L184.6 127.2L184.8 127.4C188.6 123 193.8 120 200 120S211.4 123 215.2 127.4L215.4 127.2L315.4 247.2L315.2 247.4C318 250.8 320 255.2 320 260z":"M240 190C240 195.6 235.6 200 230 200H90C84.4 200 80 195.6 80 190C80 187.4 81 185.2 82.6 183.4C82.6 183.4 82.6 183.4 82.6 183.4L152.6 103.4L152.6 103.4C154.4 101.4 157 100 160 100S165.6 101.4 167.4 103.4L167.4 103.4L237.4 183.4L237.4 183.4C239 185.2 240 187.4 240 190z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});we.defaultProps={size:g6.IconSize.STANDARD},we.displayName="Blueprint5.Icon.CaretDown";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),wt=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"italic",ref:t},e),E.createElement("path",{d:n?"M234 320H280C292 320 300 328 300 340C300 352 292 360 280 360H140C128 360 120 352 120 340C120 328 128 320 140 320H184L146 100H100C88 100 80 92 80 80C80 68 88 60 100 60H240C252 60 260 68 260 80C260 92 252 100 240 100H196L234 320z":"M196 240H220C230 240 240 248 240 260C240 272 232 280 220 280H140C130 280 120 272 120 260C120 248 128 240 140 240H156L124 80H100C90 80 80 72 80 60C80 48 88 40 100 40H180C190 40 200 48 200 60C200 72 192 80 180 80H164L196 240z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});wt.defaultProps={size:g6.IconSize.STANDARD},wt.displayName="Blueprint5.Icon.Italic";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),wn=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"search",ref:t},e),E.createElement("path",{d:n?"M391.2 51.2L292.4 150C309.8 175.8 320 206.6 320 240C320 328.4 248.4 400 160 400S0 328.4 0 240S71.6 80 160 80C193.4 80 224.2 90.2 250 107.6L348.8 8.8C354.2000000000001 3.4 361.8 0 370 0C386.6 0 400 13.4 400 30C400 38.2 396.6 45.8 391.2 51.2zM160 120C93.8 120 40 173.8 40 240S93.8 360 160 360S280 306.2000000000001 280 240S226.2 120 160 120z":"M311 51.4L257.6 105C271.6 126.8 279.8 152.6 279.8 180.2C279.8 257.6 217.2 320.2 139.8 320.2S-0.2 257.6 -0.2 180.2S62.4 40.2 139.8 40.2C167.6 40.2 193.4 48.6 215 62.4L268.6 9C274 3.6 281.6 0.2 289.8 0.2C306.4 0.2 319.8 13.6 319.8 30.2C319.8 38.4 316.4 46 311 51.4zM139.8 80.2C84.6 80.2 39.8 125 39.8 180.2S84.6 280.2 139.8 280.2S239.8 235.4 239.8 180.2S195 80.2 139.8 80.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});wn.defaultProps={size:g6.IconSize.STANDARD},wn.displayName="Blueprint5.Icon.Search";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),wr=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"strikethrough",ref:t},e),E.createElement("path",{d:n?"M360 220H270.8C268.2 221 265.6 222 262.8 222.8C259 223.8 252.6 225.6 243.6 227.8C234.6 230 225.6 232.4000000000001 216.2 234.8C206.8 237.2 198.4 239.4 190.8 241.4S178.8 244.6 177.8 244.8C167.2 247.8 158.8 252.2 152.4 258C146 263.6 142.6 271.6 142.6 281.8C142.6 289 144.4 295 147.8 299.8C151.2 304.6 155.6 308.4 160.8 311.2000000000001C166 314 171.8 316 178.2 317.2S190.8 319 196.8 319C214.6 319 229.4 315.2 241 307.6C250 301.6 256 292.4 258.8 280H311.4C310.2 290.4 307.4000000000001 299.6 303 308C297 319.4 288.8 329 278.4 336.6C268 344.4 256.2 350.2 242.6 354C228.6 358 214.2 360 198.8 360C185.6 360 172.6 358.4 159.6 355S135.2 346.4 125 339.6S106.6 323.8 100.4 313.2C94.2 302.8 91.2 290.2 91.2 275.8C91.2 268.4 92.2 261 94.2 253.8C96.2 246.6 99.8 239.8 104.8 233.4C108.4 228.6 113 224 118.6 220H40C29 220 20 211 20 200C20 189 29 180 40 180H242.8C243.2 179.8 243.8 179.6 244.2 179.6C250.2000000000001 177.4 255.8 173.8 261 168.6C266 163.4 268.6 155.2 268.6 144.4C268.6 139 267.4000000000001 133.8 265.2000000000001 128.6C263.0000000000001 123.4 259.4000000000001 118.8 254.4000000000001 114.8C249.4000000000001 110.8 243.0000000000001 107.6 235.0000000000001 105C227.0000000000001 102.4 217.4 101.2 206.2000000000001 101.2C195.8000000000001 101.2 186.0000000000001 102.4 177.2000000000001 104.6C168.2000000000001 106.8 160.4000000000001 110.4 153.4000000000001 115.4S141.2000000000001 126.6 137.4000000000001 134.4C136.4 136 135.6 138 135 140H82.2C84 131.4 86.6 123.6 90.2 116.4C96.8 103.4 105.6 92.8 116.6 84.6C127.6 76.4 140.6 70.2000000000001 155.4 66.2C170.2000000000001 62.2 186 60.1999999999999 202.8 60.1999999999999C217.4 60.1999999999999 231.6 61.8 245.6 65.1999999999999C259.6 68.6 272.2000000000001 73.8 283.2 80.9999999999999C294.2000000000001 88.1999999999999 303 97.6 309.8 108.8C316.6 120 320 133.8 320 149.8C320 157.2 318.8 164.8 316.4 172.2C315.6 174.8 314.6 177.4 313.4 180H360C371 180 380 189 380 200C380 211 371 220 360 220z":"M280 180H173C165.4 181.8 158.4 183.6 152.2 185.2C146 186.8 142.4 187.8 141.4 188C132.8 190.2 125.6 193.8 120.4 198.4C115 203 112.4 209.4 112.4 217.4C112.4 223.2 113.8 228 116.6 231.8S123 238.6 127.4 241C131.8 243.2 136.6 244.8 141.8 245.8C147 246.8 152.2 247.2 157.2 247.2C172 247.2 184.4 244.2 194 238C200.4 234 205 228 207.6 220H252.0000000000001C250.8 226.6 248.6 232.8 245.6 238.4C240.6 247.4 233.8 255.2 225.2000000000001 261.4C216.6 267.6 206.6 272.2 195.4 275.4S171.8 280 159 280C148 280 137 278.6 126.4 276C115.6 273.4 106 269.2 97.4 263.6C89 258 82.2 251 77 242.6C71.8 234.2 69.2 224.2 69.2 212.6C69.2 206.6 70 200.8 71.8 195C73.4 189.8 76 184.8 79.6 180H40C29 180 20 171 20 160C20 149 29 140 40 140H182.6C187.6 138.6 192.4 137.2 196.8 135.6C201.8 133.8 206.4 131 210.8 126.8C215 122.6 217.2 116.2 217.2 107.4C217.2 103.2 216.2 98.8 214.4 94.8C212.6 90.6 209.6 86.9999999999999 205.4 83.8C201.2 80.6 195.8 78 189.2 75.9999999999999C182.6 73.9999999999999 174.6 72.9999999999999 165.2 72.9999999999999C156.4 72.9999999999999 148.4 73.9999999999999 141 75.8C133.6 77.5999999999999 127 80.6 121.2 84.4C115.4 88.3999999999999 111 93.3999999999999 107.8 99.5999999999999C107.6 99.6 107.6 99.8 107.4 100H62.8C64.2 94.6 66.2 89.6 68.6 85C74 74.6 81.4 66.2 90.6 59.4S110.6 47.8 123 44.6C135.2 41.6 148.4 40 162.4 40C174.6 40 186.4 41.4 198.2 44C209.8 46.6 220.4 50.8 229.4 56.6C238.6 62.4 246 69.8 251.6 78.8C257.2 87.8 260 98.8 260 111.6C260 117.6 259 123.6 257 129.6C256 133.4 254.4 136.8 252.6 140H280C291 140 300 149 300 160C300 171 291 180 280 180z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});wr.defaultProps={size:g6.IconSize.STANDARD},wr.displayName="Blueprint5.Icon.Strikethrough";var uF=x("gztBd"),E=x("8NFma"),g6=x("leH9B"),wi=E.forwardRef(function(e,t){var n=e.size>=g6.IconSize.LARGE,r=n?g6.IconSize.LARGE:g6.IconSize.STANDARD,i="".concat(-1*r/.05/2);return E.createElement(mt,(0,uF.__assign)({iconName:"underline",ref:t},e),E.createElement("path",{d:n?"M200 60C266 60 320 114 320 180V330C320 346 306 360 290 360C274 360 260 346 260 330V180C260 146 234 120 200 120S140 146 140 180V330C140 346 126 360 110 360C94 360 80 346 80 330V180C80 114 134 60 200 60zM330 20H70C64 20 60 16 60 10C60 4 64 0 70 0H330C336 0 340 4 340 10C340 16 336 20 330 20z":"M160 40C216 40 260 84 260 140V260C260 272 252 280 240 280C228 280 220 272 220 260V140C220 106 194 80 160 80S100 106 100 140V260C100 272 92 280 80 280C68 280 60 272 60 260V140C60 84 104 40 160 40zM270 20H50C44 20 40 16 40 10C40 4 44 0 50 0H270C276 0 280 4 280 10C280 16 276 20 270 20z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});wi.defaultProps={size:g6.IconSize.STANDARD},wi.displayName="Blueprint5.Icon.Underline";var E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),wo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,uF.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.panel;return E.createElement("div",{className:g(uB)(c9.TAB_PANEL,t),role:"tablist"},ci(n)?n({tabPanelId:"",tabTitleId:""}):n)},t.defaultProps={disabled:!1},t.displayName="".concat(gY,".Tab"),t}(mf),uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=x("8NFma"),uF=x("gztBd"),E=(x("8NFma"),x("8NFma")),g6=x("leH9B"),wa=function(e){var t=e.className,n=e.large,r=e.onRemove,i=e.size,o=e.tabIndex,a=n||"large"===i||(null==t?void 0:t.includes(c9.LARGE)),l=E.useCallback(function(t){null==r||r(t,e)},[r,e]);return E.createElement("button",{"aria-label":"Remove tag",type:"button",className:c9.TAG_REMOVE,onClick:l,tabIndex:o},E.createElement(yU,{size:a?g6.IconSize.LARGE:g6.IconSize.STANDARD}))};wa.displayName="".concat(gY,".TagRemoveButton");var wl=E.forwardRef(function(e,t){var n,r=e.children,i=e.className,o=e.endIcon,a=e.fill,l=e.icon,s=e.intent,u=e.interactive,c=e.large,d=e.minimal,h=e.multiline,f=e.onRemove,p=e.rightIcon,m=e.round,v=e.size,y=(e.tabIndex,e.htmlTitle),b=(0,uF.__rest)(e,["children","className","endIcon","fill","icon","intent","interactive","large","minimal","multiline","onRemove","rightIcon","round","size","tabIndex","htmlTitle"]),x=uY.isFunction(f),w=null!=u?u:null!=b.onClick,C=gW(w,e,t,{defaultTabIndex:0,disabledTabIndex:void 0}),_=C[0],S=C[1],k=g(uB)(c9.TAG,c9.intentClass(s),c9.sizeClass(void 0===v?"medium":v,{large:void 0!==c&&c}),((n={})[c9.ACTIVE]=_,n[c9.FILL]=void 0!==a&&a,n[c9.INTERACTIVE]=w,n[c9.MINIMAL]=void 0!==d&&d,n[c9.ROUND]=void 0!==m&&m,n),i);return E.createElement("span",(0,uF.__assign)({},gK(b),S,{className:k}),E.createElement(mn,{icon:l}),!cZ(r)&&E.createElement(mu,{className:c9.FILL,ellipsize:!h,tagName:"span",title:y},r),E.createElement(mn,{icon:null!=o?o:p}),x&&E.createElement(wa,(0,uF.__assign)({},e)))});wl.displayName="".concat(gY,".Tag");var ws=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){return t.props.onClick(t.props.id,e)},t}return(0,uF.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,r=e.disabled,i=e.id,o=e.parentId,a=e.selected,l=e.title,s=e.icon,u=e.tagContent,c=e.tagProps,d=(0,uF.__rest)(e,["className","children","disabled","id","parentId","selected","title","icon","tagContent","tagProps"]),h=a?dr:dn,f=wu(o,i),p=f.tabPanelId,m=f.tabTitleId;return E.createElement("div",(0,uF.__assign)({},gK(d),{"aria-controls":p,"aria-disabled":r,"aria-expanded":a,"aria-selected":a,className:g(uB)(c9.TAB,t),"data-tab-id":i,id:m,onClick:r?void 0:this.handleClick,role:"tab",tabIndex:r?void 0:a?0:-1}),null!=s&&E.createElement(mn,{icon:s,intent:h,className:c9.TAB_ICON}),l,n,null!=u&&E.createElement(wl,(0,uF.__assign)({minimal:!0,intent:h},c,{className:g(uB)(c9.TAB_TAG,null==c?void 0:c.className)}),u))},t.displayName="".concat(gY,".TabTitle"),t}(mf);function wu(e,t){return{tabPanelId:"".concat(c9.TAB_PANEL,"_").concat(e,"_").concat(t),tabTitleId:"".concat(c9.TAB,"-title_").concat(e,"_").concat(t)}}var wc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,uF.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.id,r=e.parentId,i=e.selectedTabId,o=e.panel,a=e.renderActiveTabPanelOnly,l=n===i;if(void 0!==o&&(!a||l)){var s=wu(r,n),u=s.tabTitleId,c=s.tabPanelId;return E.createElement("div",{"aria-labelledby":u,"aria-hidden":!l,className:g(uB)(c9.TAB_PANEL,t),id:c,role:"tabpanel"},uY.isFunction(o)?o({tabPanelId:c,tabTitleId:u}):o)}},t}(mf),wd=function(){return E.createElement("div",{className:c9.FLEX_EXPANDER})},wh=".".concat(c9.TAB),wf=function(e){function t(t){var n=e.call(this,t)||this;n.tablistElement=null,n.refHandlers={tablist:function(e){return n.tablistElement=e}},n.handleKeyDown=function(e){var t,r=uY.getArrowKeyDirection(e,["ArrowLeft","ArrowUp"],["ArrowRight","ArrowDown"]);if(void 0!==r){var i=null==(t=uY.getActiveElement(n.tablistElement))?void 0:t.closest(wh);if(i){var o=n.getTabElements('[aria-disabled="false"]'),a=o.indexOf(i);if(!(a<0)){e.preventDefault();var l=o.length;o[(a+r+l)%l].focus()}}}},n.handleKeyPress=function(e){var t=e.target.closest(wh);null!=t&&uY.isKeyboardClick(e)&&(e.preventDefault(),t.click())},n.handleTabClick=function(e,t){var r,i;null==(i=(r=n.props).onChange)||i.call(r,e,n.state.selectedTabId,t),void 0===n.props.selectedTabId&&n.setState({selectedTabId:e})},n.renderTabPanel=function(e){var t=e.props,r=t.className,i=t.panel,o=t.id,a=t.panelClassName;if(void 0!==i)return E.createElement(wc,(0,uF.__assign)({},e.props,{key:o,className:g(uB)(r,a),parentId:n.props.id,selectedTabId:n.state.selectedTabId}))},n.renderTabTitle=function(e){if(wp(e)){var t=e.props.id;return E.createElement(ws,(0,uF.__assign)({},e.props,{parentId:n.props.id,onClick:n.handleTabClick,selected:t===n.state.selectedTabId}))}return e};var r=n.getInitialSelectedTabId();return n.state={selectedTabId:r},n}return(0,uF.__extends)(t,e),t.getDerivedStateFromProps=function(e){var t=e.selectedTabId;return void 0!==t?{selectedTabId:t}:null},t.prototype.render=function(){var e,t=this.props,n=t.animate,r=t.children,i=t.className,o=t.fill,a=t.large,l=t.renderActiveTabPanelOnly,s=t.size,u=t.vertical,c=this.state,d=c.indicatorWrapperStyle,h=c.selectedTabId,f=E.Children.map(r,this.renderTabTitle),p=this.getTabChildren().filter(l?function(e){return e.props.id===h}:function(){return!0}).map(this.renderTabPanel),m=n?E.createElement("div",{className:c9.TAB_INDICATOR_WRAPPER,style:d},E.createElement("div",{className:c9.TAB_INDICATOR})):null,v=g(uB)(c9.TABS,i,((e={})[c9.VERTICAL]=u,e[c9.FILL]=o,e)),y=g(uB)(c9.TAB_LIST,c9.sizeClass(void 0===s?"medium":s,{large:a}));return E.createElement("div",{className:v},E.createElement("div",{className:y,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,ref:this.refHandlers.tablist,role:"tablist"},m,f),p)},t.prototype.componentDidMount=function(){this.moveSelectionIndicator(!1)},t.prototype.componentDidUpdate=function(e,t){this.state.selectedTabId!==t.selectedTabId?this.moveSelectionIndicator():null!=t.selectedTabId&&(uY.arraysEqual(this.getTabChildrenProps(e),this.getTabChildrenProps(),uY.shallowCompareKeys)||this.moveSelectionIndicator())},t.prototype.getInitialSelectedTabId=function(){var e=this.props,t=e.defaultSelectedTabId,n=e.selectedTabId;if(void 0!==n)return n;if(void 0!==t)return t;var r=this.getTabChildren();return 0===r.length?void 0:r[0].props.id},t.prototype.getTabChildrenProps=function(e){return void 0===e&&(e=this.props),this.getTabChildren(e).map(function(e){return e.props})},t.prototype.getTabChildren=function(e){return void 0===e&&(e=this.props),E.Children.toArray(e.children).filter(wp)},t.prototype.getTabElements=function(e){return(void 0===e&&(e=""),null==this.tablistElement)?[]:Array.from(this.tablistElement.querySelectorAll(wh+e))},t.prototype.moveSelectionIndicator=function(e){if(void 0===e&&(e=!0),null!=this.tablistElement&&this.props.animate){var t="".concat(wh,'[data-tab-id="').concat(this.state.selectedTabId,'"]'),n=this.tablistElement.querySelector(t),r={display:"none"};if(null!=n){var i=n.clientHeight,o=n.clientWidth,a=n.offsetLeft,l=n.offsetTop;r={height:i,transform:"translateX(".concat(Math.floor(a),"px) translateY(").concat(Math.floor(l),"px)"),width:o},e||(r.transition="none")}this.setState({indicatorWrapperStyle:r})}},t.Expander=wd,t.Tab=wo,t.defaultProps={animate:!0,fill:!1,large:!1,renderActiveTabPanelOnly:!1,size:"medium",vertical:!1},t.displayName="".concat(gY,".Tabs"),t}(mf);function wp(e){return uY.isElementOfType(e,wo)}var E=x("8NFma"),wg={};Object.defineProperty(wg,"__esModule",{value:!0}),wg.ReactCSS=wg.loop=wg.handleActive=wg.handleHover=wg.hover=void 0;var wm={};Object.defineProperty(wm,"__esModule",{value:!0}),wm.flattenNames=void 0;var wv=x("h1l7t"),wy=x("5V8oz"),wb=x("hcK5n"),wx=_W(function(e){return"string"==typeof e||!wy(e)&&wb(e)&&"[object String]"==wv(e)}),ww={},wC=x("4V1MN"),w_=x("4hKXW"),wS=_W(ww=function(e,t){return e&&wC(e,w_(t))}),wE={},wv=x("h1l7t"),wk={};wk=x("blfKu")(Object.getPrototypeOf,Object);var wb=x("hcK5n"),wO=Object.prototype,wP=Function.prototype.toString,wT=wO.hasOwnProperty,wA=wP.call(Object),wj=_W(wE=function(e){if(!wb(e)||"[object Object]"!=wv(e))return!1;var t=wk(e);if(null===t)return!0;var n=wT.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&wP.call(n)==wA}),wL={};wL=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};var wR={},wN={},wM={},wI={},wD={},wz={};wz=function(){this.__data__=[],this.size=0};var wF={},wB={},wH={};wH=function(e,t){return e===t||e!=e&&t!=t},wB=function(e,t){for(var n=e.length;n--;)if(wH(e[n][0],t))return n;return -1};var wV=Array.prototype.splice;wF=function(e){var t=this.__data__,n=wB(t,e);return!(n<0)&&(n==t.length-1?t.pop():wV.call(t,n,1),--this.size,!0)};var wU={};wU=function(e){var t=this.__data__,n=wB(t,e);return n<0?void 0:t[n][1]};var wG={};wG=function(e){return wB(this.__data__,e)>-1};var wq={};function w$(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wq=function(e,t){var n=this.__data__,r=wB(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},w$.prototype.clear=wz,w$.prototype.delete=wF,w$.prototype.get=wU,w$.prototype.has=wG,w$.prototype.set=wq,wD=w$;var wW={};wW=function(){this.__data__=new wD,this.size=0};var wY={};wY=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var wX={};wX=function(e){return this.__data__.get(e)};var wK={};wK=function(e){return this.__data__.has(e)};var wZ={},wQ={},wJ={},w0={},w1=x("1F4Th"),w2={},w3={},w4=x("eeOBM");w3=w4["__core-js_shared__"];var w8=(j1=/[^.]+$/.exec(w3&&w3.keys&&w3.keys.IE_PROTO||""))?"Symbol(src)_1."+j1:"";w2=function(e){return!!w8&&w8 in e};var w6=x("kNSK3"),w5={},w9=Function.prototype.toString;w5=function(e){if(null!=e){try{return w9.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var w7=/^\[object .+?Constructor\]$/,Ce=Object.prototype,Ct=Function.prototype.toString,Cn=Ce.hasOwnProperty,Cr=RegExp("^"+Ct.call(Cn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");w0=function(e){return!(!w6(e)||w2(e))&&(w1(e)?Cr:w7).test(w5(e))};var Ci={};Ci=function(e,t){return null==e?void 0:e[t]},wJ=function(e,t){var n=Ci(e,t);return w0(n)?n:void 0};var w4=x("eeOBM");wQ=wJ(w4,"Map");var Co={},Ca={},Cl={},Cs={},Cu={};Cu=wJ(Object,"create"),Cs=function(){this.__data__=Cu?Cu(null):{},this.size=0};var Cc={};Cc=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t};var Cd={},Ch=Object.prototype.hasOwnProperty;Cd=function(e){var t=this.__data__;if(Cu){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ch.call(t,e)?t[e]:void 0};var Cf={},Cp=Object.prototype.hasOwnProperty;Cf=function(e){var t=this.__data__;return Cu?void 0!==t[e]:Cp.call(t,e)};var Cg={};function Cm(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Cg=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Cu&&void 0===t?"__lodash_hash_undefined__":t,this},Cm.prototype.clear=Cs,Cm.prototype.delete=Cc,Cm.prototype.get=Cd,Cm.prototype.has=Cf,Cm.prototype.set=Cg,Cl=Cm,Ca=function(){this.size=0,this.__data__={hash:new Cl,map:new(wQ||wD),string:new Cl}};var Cv={},Cy={},Cb={};Cb=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},Cy=function(e,t){var n=e.__data__;return Cb(t)?n["string"==typeof t?"string":"hash"]:n.map},Cv=function(e){var t=Cy(this,e).delete(e);return this.size-=!!t,t};var Cx={};Cx=function(e){return Cy(this,e).get(e)};var Cw={};Cw=function(e){return Cy(this,e).has(e)};var CC={};function C_(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function CS(e){var t=this.__data__=new wD(e);this.size=t.size}CC=function(e,t){var n=Cy(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this},C_.prototype.clear=Ca,C_.prototype.delete=Cv,C_.prototype.get=Cx,C_.prototype.has=Cw,C_.prototype.set=CC,Co=C_,wZ=function(e,t){var n=this.__data__;if(n instanceof wD){var r=n.__data__;if(!wQ||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Co(r)}return n.set(e,t),this.size=n.size,this},CS.prototype.clear=wW,CS.prototype.delete=wY,CS.prototype.get=wX,CS.prototype.has=wK,CS.prototype.set=wZ,wI=CS;var CE={},Ck={},CO={},CP={},CT={};CT=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var CA={};function Cj(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Co;++t<n;)this.add(e[t])}CA=function(e){return this.__data__.has(e)},Cj.prototype.add=Cj.prototype.push=CT,Cj.prototype.has=CA,CP=Cj;var CL={};CL=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var CR={};CR=function(e,t){return e.has(t)},CO=function(e,t,n,r,i,o){var a=1&n,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,h=!0,f=2&n?new CP:void 0;for(o.set(e,t),o.set(t,e);++d<l;){var p=e[d],g=t[d];if(r)var m=a?r(g,p,d,t,e,o):r(p,g,d,e,t,o);if(void 0!==m){if(m)continue;h=!1;break}if(f){if(!CL(t,function(e,t){if(!CR(f,t)&&(p===e||i(p,e,n,r,o)))return f.push(t)})){h=!1;break}}else if(!(p===g||i(p,g,n,r,o))){h=!1;break}}return o.delete(e),o.delete(t),h};var CN={},CM=x("4Cb5x"),CI={},w4=x("eeOBM");CI=w4.Uint8Array;var CD={};CD=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};var Cz={};Cz=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n};var CF=CM?CM.prototype:void 0,CB=CF?CF.valueOf:void 0;CN=function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!o(new CI(e),new CI(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return wH(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=CD;case"[object Set]":var s=1&r;if(l||(l=Cz),e.size!=t.size&&!s)break;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=CO(l(e),l(t),r,i,o,a);return a.delete(e),c;case"[object Symbol]":if(CB)return CB.call(e)==CB.call(t)}return!1};var CH={},CV={},CU={},CG={};CG=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};var wy=x("5V8oz");CU=function(e,t,n){var r=t(e);return wy(e)?r:CG(r,n(e))};var Cq={},C$={};C$=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o};var CW={};CW=function(){return[]};var CY=Object.prototype.propertyIsEnumerable,CX=Object.getOwnPropertySymbols;Cq=CX?function(e){return null==e?[]:(e=Object(e),C$(CX(e),function(t){return CY.call(e,t)}))}:CW;var CK=x("8R54q");CV=function(e){return CU(e,CK,Cq)};var CZ=Object.prototype.hasOwnProperty;CH=function(e,t,n,r,i,o){var a=1&n,l=CV(e),s=l.length;if(s!=CV(t).length&&!a)return!1;for(var u=s;u--;){var c=l[u];if(!(a?c in t:CZ.call(t,c)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var f=!0;o.set(e,t),o.set(t,e);for(var p=a;++u<s;){var g=e[c=l[u]],m=t[c];if(r)var v=a?r(m,g,c,t,e,o):r(g,m,c,e,t,o);if(!(void 0===v?g===m||i(g,m,n,r,o):v)){f=!1;break}p||(p="constructor"==c)}if(f&&!p){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(f=!1)}return o.delete(e),o.delete(t),f};var CQ={},CJ={},w4=x("eeOBM");CJ=wJ(w4,"DataView");var C0={},w4=x("eeOBM");C0=wJ(w4,"Promise");var C1={},w4=x("eeOBM");C1=wJ(w4,"Set");var C2={},w4=x("eeOBM");C2=wJ(w4,"WeakMap");var wv=x("h1l7t"),C3="[object Map]",C4="[object Promise]",C8="[object Set]",C6="[object WeakMap]",C5="[object DataView]",C9=w5(CJ),C7=w5(wQ),_e=w5(C0),_t=w5(C1),_n=w5(C2),_r=wv;(CJ&&_r(new CJ(new ArrayBuffer(1)))!=C5||wQ&&_r(new wQ)!=C3||C0&&_r(C0.resolve())!=C4||C1&&_r(new C1)!=C8||C2&&_r(new C2)!=C6)&&(_r=function(e){var t=wv(e),n="[object Object]"==t?e.constructor:void 0,r=n?w5(n):"";if(r)switch(r){case C9:return C5;case C7:return C3;case _e:return C4;case _t:return C8;case _n:return C6}return t}),CQ=_r;var wy=x("5V8oz"),_i=x("9e2tS"),_o=x("fAXjB"),_a="[object Arguments]",_l="[object Array]",_s="[object Object]",_u=Object.prototype.hasOwnProperty;Ck=function(e,t,n,r,i,o){var a=wy(e),l=wy(t),s=a?_l:CQ(e),u=l?_l:CQ(t);s=s==_a?_s:s,u=u==_a?_s:u;var c=s==_s,d=u==_s,h=s==u;if(h&&_i(e)){if(!_i(t))return!1;a=!0,c=!1}if(h&&!c)return o||(o=new wI),a||_o(e)?CO(e,t,n,r,i,o):CN(e,t,s,n,r,i,o);if(!(1&n)){var f=c&&_u.call(e,"__wrapped__"),p=d&&_u.call(t,"__wrapped__");if(f||p){var g=f?e.value():e,m=p?t.value():t;return o||(o=new wI),i(g,m,n,r,o)}}return!!h&&(o||(o=new wI),CH(e,t,n,r,i,o))};var wb=x("hcK5n");CE=function e(t,n,r,i,o){return t===n||(null!=t&&null!=n&&(wb(t)||wb(n))?Ck(t,n,r,i,e,o):t!=t&&n!=n)},wM=function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var l=n[i];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){var s=(l=n[i])[0],u=e[s],c=l[1];if(a&&l[2]){if(void 0===u&&!(s in e))return!1}else{var d=new wI;if(r)var h=r(u,c,s,e,t,d);if(!(void 0===h?CE(c,u,3,r,d):h))return!1}}return!0};var _c={},_d={},w6=x("kNSK3");_d=function(e){return e==e&&!w6(e)};var CK=x("8R54q");_c=function(e){for(var t=CK(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,_d(i)]}return t};var _h={};_h=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},wN=function(e){var t=_c(e);return 1==t.length&&t[0][2]?_h(t[0][0],t[0][1]):function(n){return n===e||wM(n,e,t)}};var _f={},_p={},_g={},_m={},wy=x("5V8oz"),_v={},wy=x("5V8oz"),_y={},wv=x("h1l7t"),wb=x("hcK5n");_y=function(e){return"symbol"==typeof e||wb(e)&&"[object Symbol]"==wv(e)};var _b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_x=/^\w*$/;_v=function(e,t){if(wy(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||_y(e))||_x.test(e)||!_b.test(e)||null!=t&&e in Object(t)};var _w={},_C={};function __(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(__.Cache||Co),n}__.Cache=Co,_C=__;var _S=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_E=/\\(\\)?/g;_w=function(e){var t=_C(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(_S,function(e,n,r,i){t.push(r?i.replace(_E,"$1"):n||e)}),t});var _k={},_O={},CM=x("4Cb5x"),wy=x("5V8oz"),_P=1/0,_T=CM?CM.prototype:void 0,_A=_T?_T.toString:void 0;_O=function e(t){if("string"==typeof t)return t;if(wy(t))return wL(t,e)+"";if(_y(t))return _A?_A.call(t):"";var n=t+"";return"0"==n&&1/t==-_P?"-0":n},_k=function(e){return null==e?"":_O(e)},_m=function(e,t){return wy(e)?e:_v(e,t)?[e]:_w(_k(e))};var _j={},_L=1/0;_j=function(e){if("string"==typeof e||_y(e))return e;var t=e+"";return"0"==t&&1/e==-_L?"-0":t},_g=function(e,t){t=_m(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[_j(t[n++])];return n&&n==r?e:void 0},_p=function(e,t,n){var r=null==e?void 0:_g(e,t);return void 0===r?n:r};var _R={},_N={};_N=function(e,t){return null!=e&&t in Object(e)};var _M={},_I=x("4rbI4"),wy=x("5V8oz"),_D=x("74Ail"),_z=x("2zEBJ");_M=function(e,t,n){t=_m(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=_j(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&_z(i)&&_D(a,i)&&(wy(e)||_I(e))},_R=function(e,t){return null!=e&&_M(e,t,_N)},_f=function(e,t){return _v(e)&&_d(t)?_h(_j(e),t):function(n){var r=_p(n,e);return void 0===r&&r===t?_R(n,e):CE(t,r,3)}};var _F=x("38wdc"),wy=x("5V8oz"),_B={},_H={};_H=function(e){return function(t){return null==t?void 0:t[e]}};var _V={};_V=function(e){return function(t){return _g(t,e)}},_B=function(e){return _v(e)?_H(_j(e)):_V(e)},wR=function(e){return"function"==typeof e?e:null==e?_F:"object"==typeof e?wy(e)?_f(e[0],e[1]):wN(e):_B(e)};var _U={},_G=x("gl8yj"),_q=x("iiJxK");_U=function(e,t){var n=-1,r=_q(e)?Array(e.length):[];return _G(e,function(e,i,o){r[++n]=t(e,i,o)}),r};var wy=x("5V8oz"),_$=_W(function(e,t){return(wy(e)?wL:_U)(e,wR(t,3))});function _W(e){return e&&e.__esModule?e:{default:e}}var _Y=wm.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,_$.default)(t,function(t){Array.isArray(t)?e(t).map(function(e){return n.push(e)}):(0,wj.default)(t)?(0,wS.default)(t,function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)}):(0,wx.default)(t)&&n.push(t)}),n};wm.default=_Y;var _X=S6(wm),_K={};Object.defineProperty(_K,"__esModule",{value:!0}),_K.mergeClasses=void 0;var _Z=SD(ww),_Q={},_J=x("eQpse"),_0={},_1={},_2={};_2=function(){try{var e=wJ(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),_1=function(e,t,n){"__proto__"==t&&_2?_2(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var _3=Object.prototype.hasOwnProperty;_0=function(e,t,n){var r=e[t];_3.call(e,t)&&wH(r,n)&&(void 0!==n||t in e)||_1(e,t,n)};var _4={},_8={};_8=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var l=t[o],s=r?r(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),i?_1(n,l,s):_0(n,l,s)}return n};var CK=x("8R54q");_4=function(e,t){return e&&_8(t,CK(t),e)};var _6={},_5={},_9=x("hopFG"),_7={},w6=x("kNSK3"),Se=x("dWAd9"),St={};St=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var Sn=Object.prototype.hasOwnProperty;_7=function(e){if(!w6(e))return St(e);var t=Se(e),n=[];for(var r in e)"constructor"==r&&(t||!Sn.call(e,r))||n.push(r);return n};var _q=x("iiJxK");_5=function(e){return _q(e)?_9(e,!0):_7(e)},_6=function(e,t){return e&&_8(t,_5(t),e)};var Sr=x("lJ72B"),Si={};Si=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var So={};So=function(e,t){return _8(e,Cq(e),t)};var Sa={},Sl={};Sl=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)CG(t,Cq(e)),e=wk(e);return t}:CW,Sa=function(e,t){return _8(e,Sl(e),t)};var Ss={};Ss=function(e){return CU(e,_5,Sl)};var Su={},Sc=Object.prototype.hasOwnProperty;Su=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Sc.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var Sd={},Sh={};Sh=function(e){var t=new e.constructor(e.byteLength);return new CI(t).set(new CI(e)),t};var Sf={};Sf=function(e,t){var n=t?Sh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var Sp={},Sg=/\w*$/;Sp=function(e){var t=new e.constructor(e.source,Sg.exec(e));return t.lastIndex=e.lastIndex,t};var Sm={},CM=x("4Cb5x"),Sv=CM?CM.prototype:void 0,Sy=Sv?Sv.valueOf:void 0;Sm=function(e){return Sy?Object(Sy.call(e)):{}};var Sb={};Sb=function(e,t){var n=t?Sh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},Sd=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return Sh(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return Sf(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Sb(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return Sp(e);case"[object Symbol]":return Sm(e)}};var Sx={},Sw={},w6=x("kNSK3"),SC=Object.create;Sw=function(){function e(){}return function(t){if(!w6(t))return{};if(SC)return SC(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Se=x("dWAd9");Sx=function(e){return"function"!=typeof e.constructor||Se(e)?{}:Sw(wk(e))};var wy=x("5V8oz"),_i=x("9e2tS"),S_={},SS={},wb=x("hcK5n");SS=function(e){return wb(e)&&"[object Map]"==CQ(e)};var SE=x("cLhdb"),Sk=x("fwpsA"),SO=Sk&&Sk.isMap;S_=SO?SE(SO):SS;var w6=x("kNSK3"),SP={},ST={},wb=x("hcK5n");ST=function(e){return wb(e)&&"[object Set]"==CQ(e)};var SE=x("cLhdb"),Sk=x("fwpsA"),SA=Sk&&Sk.isSet;SP=SA?SE(SA):ST;var CK=x("8R54q"),Sj="[object Arguments]",SL="[object Function]",SR="[object Object]",SN={};SN[Sj]=SN["[object Array]"]=SN["[object ArrayBuffer]"]=SN["[object DataView]"]=SN["[object Boolean]"]=SN["[object Date]"]=SN["[object Float32Array]"]=SN["[object Float64Array]"]=SN["[object Int8Array]"]=SN["[object Int16Array]"]=SN["[object Int32Array]"]=SN["[object Map]"]=SN["[object Number]"]=SN[SR]=SN["[object RegExp]"]=SN["[object Set]"]=SN["[object String]"]=SN["[object Symbol]"]=SN["[object Uint8Array]"]=SN["[object Uint8ClampedArray]"]=SN["[object Uint16Array]"]=SN["[object Uint32Array]"]=!0,SN["[object Error]"]=SN[SL]=SN["[object WeakMap]"]=!1,_Q=function e(t,n,r,i,o,a){var l,s=1&n,u=2&n,c=4&n;if(r&&(l=o?r(t,i,o,a):r(t)),void 0!==l)return l;if(!w6(t))return t;var d=wy(t);if(d){if(l=Su(t),!s)return Si(t,l)}else{var h=CQ(t),f=h==SL||"[object GeneratorFunction]"==h;if(_i(t))return Sr(t,s);if(h==SR||h==Sj||f&&!o){if(l=u||f?{}:Sx(t),!s)return u?Sa(t,_6(l,t)):So(t,_4(l,t))}else{if(!SN[h])return o?t:{};l=Sd(t,h,s)}}a||(a=new wI);var p=a.get(t);if(p)return p;a.set(t,l),SP(t)?t.forEach(function(i){l.add(e(i,n,r,i,t,a))}):S_(t)&&t.forEach(function(i,o){l.set(o,e(i,n,r,o,t,a))});var g=c?u?Ss:CV:u?_5:CK,m=d?void 0:g(t);return _J(m||t,function(i,o){m&&(i=t[o=i]),_0(l,o,e(i,n,r,o,t,a))}),l};var SM=SD(function(e){return _Q(e,5)}),SI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function SD(e){return e&&e.__esModule?e:{default:e}}var Sz=_K.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,SM.default)(e.default)||{};return t.map(function(t){var r=e[t];return r&&(0,_Z.default)(r,function(e,t){n[t]||(n[t]={}),n[t]=SI({},n[t],r[t])}),t}),n};_K.default=Sz;var SF=S6(_K),SB={};Object.defineProperty(SB,"__esModule",{value:!0}),SB.autoprefix=void 0;var SH=(jO=ww)&&jO.__esModule?jO:{default:jO},SV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SU={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},SG=SB.autoprefix=function(e){var t={};return(0,SH.default)(e,function(e,n){var r={};(0,SH.default)(e,function(e,t){var n=SU[t];n?r=SV({},r,n(e)):r[t]=e}),t[n]=r}),t};SB.default=SG;var Sq=S6(SB),S$={};Object.defineProperty(S$,"__esModule",{value:!0}),S$.hover=void 0;var SW=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=x("8NFma"),SY=(jP=E)&&jP.__esModule?jP:{default:jP};function SX(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var SK=S$.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span",n=SY.default.Component;if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function, not "+typeof n);function r(){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");for(var n,i,o,a=arguments.length,l=Array(a),s=0;s<a;s++)l[s]=arguments[s];return i=o=SX(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(l))),o.state={hover:!1},o.handleMouseOver=function(){return o.setState({hover:!0})},o.handleMouseOut=function(){return o.setState({hover:!1})},o.render=function(){return SY.default.createElement(t,{onMouseOver:o.handleMouseOver,onMouseOut:o.handleMouseOut},SY.default.createElement(e,SW({},o.props,o.state)))},SX(o,i)}return r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n),r};S$.default=SK;var SZ=S6(S$),SQ={};Object.defineProperty(SQ,"__esModule",{value:!0}),SQ.active=void 0;var SJ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=x("8NFma"),S0=(jT=E)&&jT.__esModule?jT:{default:jT};function S1(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var S2=SQ.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span",n=S0.default.Component;if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function, not "+typeof n);function r(){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");for(var n,i,o,a=arguments.length,l=Array(a),s=0;s<a;s++)l[s]=arguments[s];return i=o=S1(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(l))),o.state={active:!1},o.handleMouseDown=function(){return o.setState({active:!0})},o.handleMouseUp=function(){return o.setState({active:!1})},o.render=function(){return S0.default.createElement(t,{onMouseDown:o.handleMouseDown,onMouseUp:o.handleMouseUp},S0.default.createElement(e,SJ({},o.props,o.state)))},S1(o,i)}return r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n),r};SQ.default=S2;var S3=S6(SQ),S4={};Object.defineProperty(S4,"__esModule",{value:!0}),S4.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n};var S8=S6(S4);function S6(e){return e&&e.__esModule?e:{default:e}}wg.hover=SZ.default,wg.handleHover=SZ.default,wg.handleActive=S3.default,wg.loop=S8.default;var S5=wg.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=(0,_X.default)(n),o=(0,SF.default)(e,i);return(0,Sq.default)(o)};wg.default=S5;var S9={},S7={},Ee={};Ee=function(e,t,n){(void 0===n||wH(e[t],n))&&(void 0!==n||t in e)||_1(e,t,n)};var Et=x("e3j3J"),En={},Sr=x("lJ72B"),_I=x("4rbI4"),wy=x("5V8oz"),Er={},_q=x("iiJxK"),wb=x("hcK5n");Er=function(e){return wb(e)&&_q(e)};var _i=x("9e2tS"),w1=x("1F4Th"),w6=x("kNSK3"),_o=x("fAXjB"),Ei={};Ei=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var Eo={};Eo=function(e){return _8(e,_5(e))},En=function(e,t,n,r,i,o,a){var l=Ei(e,n),s=Ei(t,n),u=a.get(s);if(u)return void Ee(e,n,u);var c=o?o(l,s,n+"",e,t,a):void 0,d=void 0===c;if(d){var h=wy(s),f=!h&&_i(s),p=!h&&!f&&_o(s);c=s,h||f||p?wy(l)?c=l:Er(l)?c=Si(l):f?(d=!1,c=Sr(s,!0)):p?(d=!1,c=Sb(s,!0)):c=[]:wE(s)||_I(s)?(c=l,_I(l)?c=Eo(l):(!w6(l)||w1(l))&&(c=Sx(s))):d=!1}d&&(a.set(s,c),i(c,s,r,o,a),a.delete(s)),Ee(e,n,c)};var w6=x("kNSK3");S7=function e(t,n,r,i,o){t!==n&&Et(n,function(a,l){if(o||(o=new wI),w6(a))En(t,n,l,r,e,i,o);else{var s=i?i(Ei(t,l),a,l+"",t,n,o):void 0;void 0===s&&(s=a),Ee(t,l,s)}},_5)};var Ea={},_F=x("38wdc"),El={},Es={};Es=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var Eu=Math.max;El=function(e,t,n){return t=Eu(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Eu(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(a),Es(e,this,l)}};var Ec={},Ed={};Ed=function(e){return function(){return e}};var _F=x("38wdc"),Eh=Date.now;Ec=function(e){var t=0,n=0;return function(){var r=Eh(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(_2?function(e,t){return _2(e,"toString",{configurable:!0,enumerable:!1,value:Ed(t),writable:!0})}:_F),Ea=function(e,t){return Ec(El(e,t,_F),e+"")};var Ef={},_q=x("iiJxK"),_D=x("74Ail"),w6=x("kNSK3");Ef=function(e,t,n){if(!w6(n))return!1;var r=typeof t;return("number"==r?!!(_q(n)&&_D(t,n.length)):"string"==r&&t in n)&&wH(n[t],e)},S9=function(e){return Ea(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&Ef(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,o)}return t})}(function(e,t,n){S7(e,t,n)});var Ep={},E=(x("8NFma"),x("8NFma")),Eg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Em=E.createContext&&E.createContext(Eg),Ev=function(){return(Ev=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Ey=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Eb(e){return function(t){return E.createElement(Ex,Ev({attr:Ev({},e.attr)},t,{hasStrokes:function e(t){for(var n in t)if("_"!==n[0]){if("stroke"===n)return!0;else if("object"==typeof t[n]){var r=e(t[n]);if(r)return r}else if("content"===n&&"style"===t.tag&&t[n].includes("stroke:"))return!0}return!1}(e)}),function e(t){return t&&t.map(function(t,n){return E.createElement(t.tag,Ev({key:n},t.attr),e(t.child))})}(e.child))}}function Ex(e){var t=function(t){var n,r=e.size||t.size||"1em";t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className);var i=e.attr,o=e.fill,a=e.title,l=e.hasStrokes,s=Ey(e,["attr","fill","title","hasStrokes"]);return E.createElement("svg",Ev({stroke:"currentColor",fill:o},l?null:{strokeWidth:0},t.attr,i,s,{className:n,style:Ev(Ev({color:e.color||t.color},t.style),e.style),height:r,width:r,xmlns:"http://www.w3.org/2000/svg"}),a&&E.createElement("title",null,a),e.children)};return void 0!==Em?E.createElement(Em.Consumer,null,function(e){return t(e)}):t(Eg)}Ep=function(e){return Eb({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M20.3847 2.87868C19.2132 1.70711 17.3137 1.70711 16.1421 2.87868L14.0202 5.00052L13.313 4.29332C12.9225 3.9028 12.2894 3.9028 11.8988 4.29332C11.5083 4.68385 11.5083 5.31701 11.8988 5.70754L17.5557 11.3644C17.9462 11.7549 18.5794 11.7549 18.9699 11.3644C19.3604 10.9739 19.3604 10.3407 18.9699 9.95018L18.2629 9.24316L20.3847 7.12132C21.5563 5.94975 21.5563 4.05025 20.3847 2.87868Z",fill:"currentColor"}},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9297 7.09116L4.1515 14.8693C3.22786 15.793 3.03239 17.169 3.5651 18.2842L1.99994 19.8493L3.41415 21.2635L4.97931 19.6984C6.09444 20.2311 7.4705 20.0356 8.39414 19.112L16.1723 11.3338L11.9297 7.09116ZM13.3439 11.3338L11.9297 9.91959L5.56571 16.2835C5.17518 16.6741 5.17518 17.3072 5.56571 17.6978C5.95623 18.0883 6.5894 18.0883 6.97992 17.6978L13.3439 11.3338Z",fill:"currentColor"}}],content:"\n"})(e)};var Ew={};Object.defineProperty(Ew,"__esModule",{value:!0});var EC={};Object.defineProperty(EC,"__esModule",{value:!0}),EC.Alpha=void 0;var E_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ES=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=x("8NFma"),EE=EB(E),Ek=EB(wg),EO={};Object.defineProperty(EO,"__esModule",{value:!0}),EO.calculateChange=function(e,t,n,r,i){var o=i.clientWidth,a=i.clientHeight,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=l-(i.getBoundingClientRect().left+window.pageXOffset),c=s-(i.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var d=void 0;if(d=c<0?0:c>a?1:Math.round(100*c/a)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var h=void 0;if(r!==(h=u<0?0:u>o?1:Math.round(100*u/o)/100))return{h:t.h,s:t.s,l:t.l,a:h,source:"rgb"}}return null};var EP=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(EO),ET={};Object.defineProperty(ET,"__esModule",{value:!0}),ET.Checkboard=void 0;var EA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=x("8NFma"),Ej=ED(E),EL=ED(wg),ER={};Object.defineProperty(ER,"__esModule",{value:!0});var EN={},EM=ER.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=2*n,i.height=2*n;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null};ER.get=function(e,t,n,r){var i=e+"-"+t+"-"+n+(r?"-server":"");if(EN[i])return EN[i];var o=EM(e,t,n,r);return EN[i]=o,o};var EI=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(ER);function ED(e){return e&&e.__esModule?e:{default:e}}var Ez=ET.Checkboard=function(e){var t=e.white,n=e.grey,r=e.size,i=e.renderers,o=e.borderRadius,a=e.boxShadow,l=e.children,s=(0,EL.default)({default:{grid:{borderRadius:o,boxShadow:a,absolute:"0px 0px 0px 0px",background:"url("+EI.get(t,n,r,i.canvas)+") center left"}}});return(0,E.isValidElement)(l)?Ej.default.cloneElement(l,EA({},l.props,{style:EA({},l.props.style,s.grid)})):Ej.default.createElement("div",{style:s.grid})};Ez.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},ET.default=Ez;var EF=EB(ET);function EB(e){return e&&e.__esModule?e:{default:e}}function EH(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var EV=EC.Alpha=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var e,n,r,i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=EH(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=EP.calculateChange(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},EH(r,n)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),ES(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,Ek.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:E_({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return EE.default.createElement("div",{style:n.alpha},EE.default.createElement("div",{style:n.checkboard},EE.default.createElement(EF.default,{renderers:this.props.renderers})),EE.default.createElement("div",{style:n.gradient}),EE.default.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},EE.default.createElement("div",{style:n.pointer},this.props.pointer?EE.default.createElement(this.props.pointer,this.props):EE.default.createElement("div",{style:n.slider}))))}}]),t}(E.PureComponent||E.Component);EC.default=EV,Object.defineProperty(Ew,"Alpha",{enumerable:!0,get:function(){return kY(EC).default}}),Object.defineProperty(Ew,"Checkboard",{enumerable:!0,get:function(){return kY(ET).default}});var EU={};Object.defineProperty(EU,"__esModule",{value:!0}),EU.EditableInput=void 0;var EG=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=x("8NFma"),Eq=EW(E),E$=EW(wg);function EW(e){return e&&e.__esModule?e:{default:e}}var EY=[38,40],EX=1,EK=EU.EditableInput=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=Number(String(e.target.value).replace(/%/g,""));if(!isNaN(r)&&(t=e.keyCode,EY.indexOf(t)>-1)){var i=n.getArrowOffset(),o=38===e.keyCode?r+i:r-i;n.setUpdatedValue(o,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+EX++,n}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),EG(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value!==this.state.value&&(e.value!==this.props.value||t.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){var t,n;return t={},n=this.props.label,n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,E$.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return Eq.default.createElement("div",{style:t.wrap},Eq.default.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?Eq.default.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(E.PureComponent||E.Component);EU.default=EK,Object.defineProperty(Ew,"EditableInput",{enumerable:!0,get:function(){return kY(EU).default}});var EZ={};Object.defineProperty(EZ,"__esModule",{value:!0}),EZ.Hue=void 0;var EQ=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=x("8NFma"),EJ=E3(E),E0=E3(wg),E1={};Object.defineProperty(E1,"__esModule",{value:!0}),E1.calculateChange=function(e,t,n,r){var i=r.clientWidth,o=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c=void 0;if(c=u<0?359:u>o?0:360*(-(100*u/o)+100)/100,n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d=void 0;if(d=s<0?0:s>i?359:100*s/i*360/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null};var E2=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(E1);function E3(e){return e&&e.__esModule?e:{default:e}}function E4(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var E8=EZ.Hue=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var e,n,r,i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=E4(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=E2.calculateChange(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},E4(r,n)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),EQ(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,E0.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(100*this.props.hsl.h/360)+100+"%"}}},{vertical:"vertical"===n});return EJ.default.createElement("div",{style:r.hue},EJ.default.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},EJ.default.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),EJ.default.createElement("div",{style:r.pointer},this.props.pointer?EJ.default.createElement(this.props.pointer,this.props):EJ.default.createElement("div",{style:r.slider}))))}}]),t}(E.PureComponent||E.Component);EZ.default=E8,Object.defineProperty(Ew,"Hue",{enumerable:!0,get:function(){return kY(EZ).default}});var E6={};Object.defineProperty(E6,"__esModule",{value:!0}),E6.Raised=void 0;var E=x("8NFma"),E5=kn(E),E9={},E7=kn(E9=x("6DzO8")()),ke=kn(wg),kt=kn(S9);function kn(e){return e&&e.__esModule?e:{default:e}}var kr=E6.Raised=function(e){var t=e.zDepth,n=e.radius,r=e.background,i=e.children,o=e.styles,a=(0,ke.default)((0,kt.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:r}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},void 0===o?{}:o),{"zDepth-1":1===t});return E5.default.createElement("div",{style:a.wrap},E5.default.createElement("div",{style:a.bg}),E5.default.createElement("div",{style:a.content},i))};kr.propTypes={background:E7.default.string,zDepth:E7.default.oneOf([0,1,2,3,4,5]),radius:E7.default.number,styles:E7.default.object},kr.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},E6.default=kr,Object.defineProperty(Ew,"Raised",{enumerable:!0,get:function(){return kY(E6).default}});var ki={};Object.defineProperty(ki,"__esModule",{value:!0}),ki.Saturation=void 0;var ko=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=x("8NFma"),ka=kE(E),kl=kE(wg),ks={},w6=x("kNSK3"),ku={},w4=x("eeOBM");ku=function(){return w4.Date.now()};var kc={},kd={},kh={},kf=/\s/;kh=function(e){for(var t=e.length;t--&&kf.test(e.charAt(t)););return t};var kp=/^\s+/;kd=function(e){return e?e.slice(0,kh(e)+1).replace(kp,""):e};var w6=x("kNSK3"),kg=0/0,km=/^[-+]0x[0-9a-f]+$/i,kv=/^0b[01]+$/i,ky=/^0o[0-7]+$/i,kb=parseInt;kc=function(e){if("number"==typeof e)return e;if(_y(e))return kg;if(w6(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=w6(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=kd(e);var n=kv.test(e);return n||ky.test(e)?kb(e.slice(2),n?2:8):km.test(e)?kg:+e};var kx=Math.max,kw=Math.min;ks=function(e,t,n){var r,i,o,a,l,s,u=0,c=!1,d=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function f(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function p(e){var n=e-s,r=e-u;return void 0===s||n>=t||n<0||d&&r>=o}function g(){var e,n,r,i=ku();if(p(i))return m(i);l=setTimeout(g,(e=i-s,n=i-u,r=t-e,d?kw(r,o-n):r))}function m(e){return(l=void 0,h&&r)?f(e):(r=i=void 0,a)}function v(){var e,n=ku(),o=p(n);if(r=arguments,i=this,s=n,o){if(void 0===l)return u=e=s,l=setTimeout(g,t),c?f(e):a;if(d)return clearTimeout(l),l=setTimeout(g,t),f(s)}return void 0===l&&(l=setTimeout(g,t)),a}return t=kc(t)||0,w6(n)&&(c=!!n.leading,o=(d="maxWait"in n)?kx(kc(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=s=i=l=void 0},v.flush=function(){return void 0===l?a:m(ku())},v};var w6=x("kNSK3"),kC=kE(function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return w6(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ks(e,t,{leading:r,maxWait:t,trailing:i})}),k_={};Object.defineProperty(k_,"__esModule",{value:!0}),k_.calculateChange=function(e,t,n){var r=n.getBoundingClientRect(),i=r.width,o=r.height,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=a-(n.getBoundingClientRect().left+window.pageXOffset),u=l-(n.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>i&&(s=i),u<0?u=0:u>o&&(u=o);var c=s/i,d=1-u/o;return{h:t.h,s:c,v:d,a:t.a,source:"hsv"}};var kS=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(k_);function kE(e){return e&&e.__esModule?e:{default:e}}var kk=ki.Saturation=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,kS.calculateChange(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=(0,kC.default)(function(e,t,n){e(t,n)},50),n}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),ko(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,i=t.black,o=t.pointer,a=t.circle,l=(0,kl.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(100*this.props.hsv.v)+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:i,pointer:o,circle:a}},{custom:!!this.props.style});return ka.default.createElement("div",{style:l.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},ka.default.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),ka.default.createElement("div",{style:l.white,className:"saturation-white"},ka.default.createElement("div",{style:l.black,className:"saturation-black"}),ka.default.createElement("div",{style:l.pointer},this.props.pointer?ka.default.createElement(this.props.pointer,this.props):ka.default.createElement("div",{style:l.circle}))))}}]),t}(E.PureComponent||E.Component);ki.default=kk,Object.defineProperty(Ew,"Saturation",{enumerable:!0,get:function(){return kY(ki).default}});var kO={};Object.defineProperty(kO,"__esModule",{value:!0}),kO.ColorWrap=void 0;var kP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kT=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=x("8NFma"),kA=kz(E),kj=kz(ks),kL={};Object.defineProperty(kL,"__esModule",{value:!0}),kL.isvalidColorString=kL.red=kL.getContrastingColor=kL.isValidHex=kL.toState=kL.simpleCheckForValidColor=void 0;var kR=kM(x("2MeUa")),kN=kM(function(){function e(t){return(e="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})(t)}var t,n,r,i=/^\s+/,o=/\s+$/;function a(t,n){if(n=n||{},(t=t||"")instanceof a)return t;if(!(this instanceof a))return new a(t,n);var r,l,s,u,c,d,h,f,p,g,m,v,y,b,x,w,C,S,O,T,j=(l={r:0,g:0,b:0},s=1,u=null,c=null,d=null,h=!1,f=!1,"string"==typeof(r=t)&&(r=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,n=!1;if(_[e])e=_[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=L.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=L.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=L.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=L.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=L.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=L.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=L.hex8.exec(e))?{r:P(t[1]),g:P(t[2]),b:P(t[3]),a:P(t[4])/255,format:n?"name":"hex8"}:(t=L.hex6.exec(e))?{r:P(t[1]),g:P(t[2]),b:P(t[3]),format:n?"name":"hex"}:(t=L.hex4.exec(e))?{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),a:P(t[4]+""+t[4])/255,format:n?"name":"hex8"}:!!(t=L.hex3.exec(e))&&{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),format:n?"name":"hex"}}(r)),"object"==e(r)&&(R(r.r)&&R(r.g)&&R(r.b)?(p=r.r,g=r.g,m=r.b,l={r:255*k(p,255),g:255*k(g,255),b:255*k(m,255)},h=!0,f="%"===String(r.r).substr(-1)?"prgb":"rgb"):R(r.h)&&R(r.s)&&R(r.v)?(u=A(r.s),c=A(r.v),v=r.h,y=u,b=c,v=6*k(v,360),y=k(y,100),b=k(b,100),x=Math.floor(v),w=v-x,C=b*(1-y),S=b*(1-w*y),O=b*(1-(1-w)*y),l={r:255*[b,S,C,C,O,b][T=x%6],g:255*[O,b,b,S,C,C][T],b:255*[C,C,O,b,b,S][T]},h=!0,f="hsv"):R(r.h)&&R(r.s)&&R(r.l)&&(u=A(r.s),d=A(r.l),l=function(e,t,n){var r,i,o;function a(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=k(e,360),t=k(t,100),n=k(n,100),0===t)r=i=o=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=a(s,l,e+1/3),i=a(s,l,e),o=a(s,l,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(r.h,u,d),h=!0,f="hsl"),r.hasOwnProperty("a")&&(s=r.a)),s=E(s),{ok:h,format:r.format||f,r:Math.min(255,Math.max(l.r,0)),g:Math.min(255,Math.max(l.g,0)),b:Math.min(255,Math.max(l.b,0)),a:s});this._originalInput=t,this._r=j.r,this._g=j.g,this._b=j.b,this._a=j.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||j.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=j.ok}function l(e,t,n){e=k(e,255);var r,i,o=Math.max(e,t=k(t,255),n=k(n,255)),a=Math.min(e,t,n),l=(o+a)/2;if(o==a)r=i=0;else{var s=o-a;switch(i=l>.5?s/(2-o-a):s/(o+a),o){case e:r=(t-n)/s+6*(t<n);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:i,l:l}}function s(e,t,n){e=k(e,255);var r,i=Math.max(e,t=k(t,255),n=k(n,255)),o=Math.min(e,t,n),a=i-o;if(i==o)r=0;else{switch(i){case e:r=(t-n)/a+6*(t<n);break;case t:r=(n-e)/a+2;break;case n:r=(e-t)/a+4}r/=6}return{h:r,s:0===i?0:a/i,v:i}}function u(e,t,n,r){var i=[T(Math.round(e).toString(16)),T(Math.round(t).toString(16)),T(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function c(e,t,n,r){return[T(j(r)),T(Math.round(e).toString(16)),T(Math.round(t).toString(16)),T(Math.round(n).toString(16))].join("")}function d(e,t){t=0===t?0:t||10;var n=a(e).toHsl();return n.s-=t/100,n.s=O(n.s),a(n)}function h(e,t){t=0===t?0:t||10;var n=a(e).toHsl();return n.s+=t/100,n.s=O(n.s),a(n)}function f(e){return a(e).desaturate(100)}function p(e,t){t=0===t?0:t||10;var n=a(e).toHsl();return n.l+=t/100,n.l=O(n.l),a(n)}function g(e,t){t=0===t?0:t||10;var n=a(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(t/100*255)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(t/100*255)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(t/100*255)))),a(n)}function m(e,t){t=0===t?0:t||10;var n=a(e).toHsl();return n.l-=t/100,n.l=O(n.l),a(n)}function v(e,t){var n=a(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,a(n)}function y(e){var t=a(e).toHsl();return t.h=(t.h+180)%360,a(t)}function b(e,t){if(isNaN(t)||t<=0)throw Error("Argument to polyad must be a positive number");for(var n=a(e).toHsl(),r=[a(e)],i=360/t,o=1;o<t;o++)r.push(a({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function x(e){var t=a(e).toHsl(),n=t.h;return[a(e),a({h:(n+72)%360,s:t.s,l:t.l}),a({h:(n+216)%360,s:t.s,l:t.l})]}function w(e,t,n){t=t||6,n=n||30;var r=a(e).toHsl(),i=360/n,o=[a(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(a(r));return o}function C(e,t){t=t||6;for(var n=a(e).toHsv(),r=n.h,i=n.s,o=n.v,l=[],s=1/t;t--;)l.push(a({h:r,s:i,v:o})),o=(o+s)%1;return l}a.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*((n=r.b/255)<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=E(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=s(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=s(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=l(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return u(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t,n,r,i,o,a;return t=this._r,n=this._g,r=this._b,i=this._a,o=e,a=[T(Math.round(t).toString(16)),T(Math.round(n).toString(16)),T(Math.round(r).toString(16)),T(j(i))],o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*k(this._r,255))+"%",g:Math.round(100*k(this._g,255))+"%",b:Math.round(100*k(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*k(this._r,255))+"%, "+Math.round(100*k(this._g,255))+"%, "+Math.round(100*k(this._b,255))+"%)":"rgba("+Math.round(100*k(this._r,255))+"%, "+Math.round(100*k(this._g,255))+"%, "+Math.round(100*k(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(S[u(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+c(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=a(e);n="#"+c(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(p,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(m,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(h,arguments)},greyscale:function(){return this._applyModification(f,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(w,arguments)},complement:function(){return this._applyCombination(y,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(b,[3])},tetrad:function(){return this._applyCombination(b,[4])}},a.fromRatio=function(t,n){if("object"==e(t)){var r={};for(var i in t)t.hasOwnProperty(i)&&("a"===i?r[i]=t[i]:r[i]=A(t[i]));t=r}return a(t,n)},a.equals=function(e,t){return!!e&&!!t&&a(e).toRgbString()==a(t).toRgbString()},a.random=function(){return a.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},a.mix=function(e,t,n){n=0===n?0:n||50;var r=a(e).toRgb(),i=a(t).toRgb(),o=n/100;return a({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},a.readability=function(e,t){var n=a(e),r=a(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},a.isReadable=function(e,t,n){var r,i,o,l,s,u=a.readability(e,t);switch(s=!1,(i=((r=(r=n)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),o=(r.size||"small").toLowerCase(),"AA"!==i&&"AAA"!==i&&(i="AA"),"small"!==o&&"large"!==o&&(o="small"),l={level:i,size:o}).level+l.size){case"AAsmall":case"AAAlarge":s=u>=4.5;break;case"AAlarge":s=u>=3;break;case"AAAsmall":s=u>=7}return s},a.mostReadable=function(e,t,n){var r,i,o,l,s=null,u=0;i=(n=n||{}).includeFallbackColors,o=n.level,l=n.size;for(var c=0;c<t.length;c++)(r=a.readability(e,t[c]))>u&&(u=r,s=a(t[c]));return a.isReadable(e,s,{level:o,size:l})||!i?s:(n.includeFallbackColors=!1,a.mostReadable(e,["#fff","#000"],n))};var _=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},S=a.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(_);function E(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function k(e,t){"string"==typeof(n=e)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var n,r,i="string"==typeof(r=e)&&-1!=r.indexOf("%");return(e=Math.min(t,Math.max(0,parseFloat(e))),i&&(e=parseInt(e*t,10)/100),1e-6>Math.abs(e-t))?1:e%t/parseFloat(t)}function O(e){return Math.min(1,Math.max(0,e))}function P(e){return parseInt(e,16)}function T(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function j(e){return Math.round(255*parseFloat(e)).toString(16)}var L=(n="[\\s|\\(]+("+(t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",r="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",{CSS_UNIT:new RegExp(t),rgb:RegExp("rgb"+n),rgba:RegExp("rgba"+r),hsl:RegExp("hsl"+n),hsla:RegExp("hsla"+r),hsv:RegExp("hsv"+n),hsva:RegExp("hsva"+r),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function R(e){return!!L.CSS_UNIT.exec(e)}return a}());function kM(e){return e&&e.__esModule?e:{default:e}}kL.simpleCheckForValidColor=function(e){var t=0,n=0;return(0,kR.default)(["r","g","b","a","h","s","l","v"],function(r){e[r]&&(t+=1,isNaN(e[r])||(n+=1),("s"===r||"l"===r)&&/^\d+%$/.test(e[r])&&(n+=1))}),t===n&&e};var kI=kL.toState=function(e,t){var n=e.hex?(0,kN.default)(e.hex):(0,kN.default)(e),r=n.toHsl(),i=n.toHsv(),o=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,i.h=t||0),{hsl:r,hex:"000000"===a&&0===o.a?"transparent":"#"+a,rgb:o,hsv:i,oldHue:e.h||t||r.h,source:e.source}};kL.isValidHex=function(e){if("transparent"===e)return!0;var t=+("#"===String(e).charAt(0));return e.length!==4+t&&e.length<7+t&&(0,kN.default)(e).isValid()},kL.getContrastingColor=function(e){if(!e)return"#fff";var t=kI(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},kL.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},kL.isvalidColorString=function(e,t){var n=e.replace("°","");return(0,kN.default)(t+" ("+n+")")._ok};var kD=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(kL);function kz(e){return e&&e.__esModule?e:{default:e}}var kF=kO.ColorWrap=function(e){var t=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function n(e){if(!(this instanceof n))throw TypeError("Cannot call a class as a function");var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(kD.simpleCheckForValidColor(e)){var r=kD.toState(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(kD.simpleCheckForValidColor(e)){var r=kD.toState(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=kP({},kD.toState(e.color,0)),t.debounce=(0,kj.default)(function(e,t,n){e(t,n)},100),t}return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t),kT(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),kA.default.createElement(e,kP({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return kP({},kD.toState(e.color,t.oldHue))}}]),n}(E.PureComponent||E.Component);return t.propTypes=kP({},e.propTypes),t.defaultProps=kP({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};kO.default=kF,Object.defineProperty(Ew,"ColorWrap",{enumerable:!0,get:function(){return kY(kO).default}});var kB={};Object.defineProperty(kB,"__esModule",{value:!0}),kB.Swatch=void 0;var kH=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=x("8NFma"),kV=k$(E),kU=k$(wg),kG=x("gxGlt"),kq=k$(ET);function k$(e){return e&&e.__esModule?e:{default:e}}var kW=kB.Swatch=function(e){var t=e.color,n=e.style,r=e.onClick,i=void 0===r?function(){}:r,o=e.onHover,a=e.title,l=void 0===a?t:a,s=e.children,u=e.focus,c=e.focusStyle,d="transparent"===t,h=(0,kU.default)({default:{swatch:kH({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,u?void 0===c?{}:c:{})}}),f={};return o&&(f.onMouseOver=function(e){return o(t,e)}),kV.default.createElement("div",kH({style:h.swatch,onClick:function(e){return i(t,e)},title:l,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&i(t,e)}},f),s,d&&kV.default.createElement(kq.default,{borderRadius:h.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};function kY(e){return e&&e.__esModule?e:{default:e}}kB.default=(0,kG.handleFocus)(kW),Object.defineProperty(Ew,"Swatch",{enumerable:!0,get:function(){return kY(kB).default}});var kX={};Object.defineProperty(kX,"__esModule",{value:!0}),kX.SketchFields=void 0;var E=x("8NFma"),kK=kJ(E),kZ=kJ(wg),kQ=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(kL);function kJ(e){return e&&e.__esModule?e:{default:e}}var k0=kX.SketchFields=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,i=e.hex,o=e.disableAlpha,a=(0,kZ.default)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:o}),l=function(e,i){e.hex?kQ.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},i):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},i):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},i))};return kK.default.createElement("div",{style:a.fields,className:"flexbox-fix"},kK.default.createElement("div",{style:a.double},kK.default.createElement(Ew.EditableInput,{style:{input:a.input,label:a.label},label:"hex",value:i.replace("#",""),onChange:l})),kK.default.createElement("div",{style:a.single},kK.default.createElement(Ew.EditableInput,{style:{input:a.input,label:a.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),kK.default.createElement("div",{style:a.single},kK.default.createElement(Ew.EditableInput,{style:{input:a.input,label:a.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),kK.default.createElement("div",{style:a.single},kK.default.createElement(Ew.EditableInput,{style:{input:a.input,label:a.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),kK.default.createElement("div",{style:a.alpha},kK.default.createElement(Ew.EditableInput,{style:{input:a.input,label:a.label},label:"a",value:Math.round(100*n.a),onChange:l,dragLabel:"true",dragMax:"100"})))};kX.default=k0;var k1={};Object.defineProperty(k1,"__esModule",{value:!0}),k1.SketchPresetColors=void 0;var k2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=x("8NFma"),k3=k6(E),k4=k6(E9),k8=k6(wg);function k6(e){return e&&e.__esModule?e:{default:e}}var k5=k1.SketchPresetColors=function(e){var t=e.colors,n=e.onClick,r=void 0===n?function(){}:n,i=e.onSwatchHover,o=(0,k8.default)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),a=function(e,t){r({hex:e,source:"hex"},t)};return k3.default.createElement("div",{style:o.colors,className:"flexbox-fix"},t.map(function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return k3.default.createElement("div",{key:n,style:o.swatchWrap},k3.default.createElement(Ew.Swatch,k2({},t,{style:o.swatch,onClick:a,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))}))};k5.propTypes={colors:k4.default.arrayOf(k4.default.oneOfType([k4.default.string,k4.default.shape({color:k4.default.string,title:k4.default.string})])).isRequired},k1.default=k5;let k9=e=>{let t=g(E).useRef(e);return t.current=e,g(E).useCallback((...e)=>t.current(...e),[])};var k7=(0,Ew.ColorWrap)(({width:e=200,rgb:t,hex:n,hsv:r,hsl:i,onChange:o,onSwatchHover:a,disableAlpha:l=!1,presetColors:s=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"],renderers:u,styles:c={},className:d=""})=>{let h=(0,wg.ReactCSS)(g(S9)({default:{picker:{width:e,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:`rgba(${t.r},${t.g},${t.b},${t.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},...c},disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},c),{disableAlpha:l}),[f,p]=g(E).useState(!1),m=g(E).useRef(null),v=k9(e=>{if(f){let t=m.current?.fill();t&&o(nO.Util.colorToRGBA(t)),b(),!function(e,t){let n=e.target;for(;n;){if(n.classList.contains(t))return!0;n=n.parentElement}return!1}(e,"color-picker-button")&&p(!1),e.stopPropagation(),e.stopImmediatePropagation()}}),y=k9(e=>{if(!f)return;let t=nO.stages.find(t=>{let n=t.getContent().parentElement.parentElement.getBoundingClientRect();return n.left<e.clientX&&n.left+n.width>e.clientX&&n.top<e.clientY&&n.top+n.height>e.clientY});if(!t)return void b();let n=t.getContent().getBoundingClientRect(),r={x:e.clientX-n.left,y:e.clientY-n.top},i=t.children[0],o=i.getNativeCanvasElement(),a=i.getCanvas().getPixelRatio(),{data:l}=o.getContext("2d").getImageData(r.x*a,r.y*a,1,1),s=t.findOne(".line-guides");s.findOne(".picker")||(m.current&&m.current.destroy(),m.current=new nO.Circle({name:"picker",radius:14,stroke:"black",strokeWidth:1}),s.add(m.current)),m.current.setAbsolutePosition({x:r.x-15,y:r.y-15}),m.current.fill("rgb("+l[0]+","+l[1]+","+l[2]+")")});g(E).useEffect(()=>(window.addEventListener("mousemove",y),window.addEventListener("mousedown",v,!0),window.addEventListener("touchstart",v,!0),()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mousedown",v,!0),window.removeEventListener("touchstart",v,!0),b()}),[]),g(E).useEffect(()=>{f||b()},[f]),g(E).useEffect(()=>(f&&(document.body.style.cursor="crosshair"),()=>{document.body.style.cursor="default"}),[f]);let b=k9(()=>{m.current&&(m.current.destroy(),m.current=null)});return(0,C.jsxs)("div",{style:h.picker,className:`sketch-picker ${d}`,children:[(0,C.jsx)("div",{style:h.saturation,children:(0,C.jsx)(Ew.Saturation,{style:h.Saturation,hsl:i,hsv:r,onChange:o})}),(0,C.jsxs)("div",{style:h.controls,className:"flexbox-fix",children:[(0,C.jsxs)("div",{style:h.sliders,children:[(0,C.jsx)("div",{style:h.hue,children:(0,C.jsx)(Ew.Hue,{style:h.Hue,hsl:i,onChange:o})}),(0,C.jsx)("div",{style:h.alpha,children:(0,C.jsx)(Ew.Alpha,{style:h.Alpha,rgb:t,hsl:i,renderers:u,onChange:o})})]}),(0,C.jsxs)("div",{style:h.color,children:[(0,C.jsx)(Ew.Checkboard,{size:8,white:"transparent",grey:"rgba(0,0,0,.08)"}),(0,C.jsx)("div",{style:h.activeColor})]}),(0,C.jsx)("div",{style:h.color,children:(0,C.jsx)(mc,{icon:(0,C.jsx)(g(Ep),{}),className:"color-picker-button",minimal:!0,style:{width:"24px",height:"24px",minWidth:"24px",minHeight:"24px",padding:0,margin:0},active:f,onClickCapture:e=>{p(e=>!e),e.stopPropagation()}})})]}),(0,C.jsx)(kX.SketchFields,{rgb:t,hsl:i,hex:n,onChange:o,disableAlpha:l}),(0,C.jsx)(k1.SketchPresetColors,{colors:s,onClick:o,onSwatchHover:a})]})});let Oe=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"].reverse(),Ot=aw("div")`
362
362
  & .sketch-picker {
363
363
  padding: 0px !important;
364
364
  box-shadow: none !important;
@@ -1 +1 @@
1
- import*as e from"mobx";import{getAPI as o}from"./api.js";import{useRemoveBackground as t}from"./flags.js";const n=e.observable({value:!1}),a=e.observable({value:"v1"});export const ___=()=>a.value;export const isCreditVisible=()=>n.value;const i=e.action(()=>{n.value=!0});let r="";export const getKey=()=>r||"";let s="undefined"!=typeof window?window.location.origin:"";const l="undefined"!=typeof navigator&&navigator.userAgent.indexOf("Headless")>-1,d="undefined"!=typeof navigator&&navigator.userAgent.indexOf("Electron")>-1;"file://"===s&&l&&(s="headless"),"file://"===s&&d&&(s="electron");const c=`%cPolotno error! Current domain is not allowed. It may lead to unexpected behavior and stop working. Please add "${s}" here: https://polotno.com/cabinet`;let p=fetch;export const __=e=>{p=e};export async function isKeyPaid(n){for(let r=0;r<5;r++){try{const i=await p(o()+"/validate-key",{method:"POST",body:JSON.stringify({key:n,site:location.host,skdVersion:"2.32.0"})});if(e.runInAction(()=>{a.value=i.headers.get("x-api-version")}),!n){return console.warn("Polotno API is initialized without API key. It may lead to unexpected behavior and stop working. Please create API key here: https://polotno.com/cabinet"),!1}if(200!==i.status){await new Promise(e=>setTimeout(e,3e3));continue}const r=await i.json();return r.is_valid||console.warn("Polotno API key is not valid. Please get new API key here: https://polotno.com/cabinet"),r.is_paid||console.log("%cPolotno Free Version. For development usage only. https://polotno.com/","background: rgb(0, 161, 255); color: white; padding: 5px; margin: 5px;"),r.is_domain_valid||console.log(c,"background: rgba(247, 101, 68, 1); color: white; padding: 5px; margin: 5px;"),t(r.remove_background_enabled),r.is_paid||!1}catch(i){await new Promise(e=>setTimeout(e,3e3))}}return console.error("Can not validate Polotno API key. Please report to anton@polotno.com immediately."),!0}export async function validateKey(e,o){r=e,await isKeyPaid(e)&&!o||i()}
1
+ import*as e from"mobx";import{getAPI as o}from"./api.js";import{useRemoveBackground as t}from"./flags.js";const n=e.observable({value:!1}),a=e.observable({value:"v1"});export const ___=()=>a.value;export const isCreditVisible=()=>n.value;const i=e.action(()=>{n.value=!0});let r="";export const getKey=()=>r||"";let s="undefined"!=typeof window?window.location.origin:"";const l="undefined"!=typeof navigator&&navigator.userAgent.indexOf("Headless")>-1,d="undefined"!=typeof navigator&&navigator.userAgent.indexOf("Electron")>-1;"file://"===s&&l&&(s="headless"),"file://"===s&&d&&(s="electron");const c=`%cPolotno error! Current domain is not allowed. It may lead to unexpected behavior and stop working. Please add "${s}" here: https://polotno.com/cabinet`;let p=fetch;export const __=e=>{p=e};export async function isKeyPaid(n){for(let r=0;r<5;r++){try{const i=await p(o()+"/validate-key",{method:"POST",body:JSON.stringify({key:n,site:location.host,skdVersion:"2.32.1"})});if(e.runInAction(()=>{a.value=i.headers.get("x-api-version")}),!n){return console.warn("Polotno API is initialized without API key. It may lead to unexpected behavior and stop working. Please create API key here: https://polotno.com/cabinet"),!1}if(200!==i.status){await new Promise(e=>setTimeout(e,3e3));continue}const r=await i.json();return r.is_valid||console.warn("Polotno API key is not valid. Please get new API key here: https://polotno.com/cabinet"),r.is_paid||console.log("%cPolotno Free Version. For development usage only. https://polotno.com/","background: rgb(0, 161, 255); color: white; padding: 5px; margin: 5px;"),r.is_domain_valid||console.log(c,"background: rgba(247, 101, 68, 1); color: white; padding: 5px; margin: 5px;"),t(r.remove_background_enabled),r.is_paid||!1}catch(i){await new Promise(e=>setTimeout(e,3e3))}}return console.error("Can not validate Polotno API key. Please report to anton@polotno.com immediately."),!0}export async function validateKey(e,o){r=e,await isKeyPaid(e)&&!o||i()}