@procore/core-react
Version:
JSX implementations for core-css
23 lines • 191 kB
JavaScript
!function(n,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("react"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["react","react-dom"],e);else{var t="object"==typeof exports?e(require("react"),require("react-dom")):e(n.react,n["react-dom"]);for(var r in t)("object"==typeof exports?exports:n)[r]=t[r]}}(window,function(n,e){return function(n){var e={};function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(r,o,function(e){return n[e]}.bind(null,o));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=129)}([function(e,t){e.exports=n},function(n,e,t){var r;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";var t={}.hasOwnProperty;function o(){for(var n=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"===i||"number"===i)n.push(this&&this[r]||r);else if(Array.isArray(r))n.push(o.apply(this,r));else if("object"===i)for(var a in r)t.call(r,a)&&r[a]&&n.push(this&&this[a]||a)}}return n.join(" ")}n.exports?(o.default=o,n.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(n.exports=r)}()},function(n,e,t){"use strict";n.exports=function(n){var e=[];return e.toString=function(){return this.map(function(e){var t=function(n,e){var t=n[1]||"",r=n[3];if(!r)return t;if(e&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map(function(n){return"/*# sourceURL="+r.sourceRoot+n+" */"});return[t].concat(i).concat([o]).join("\n")}var a;return[t].join("\n")}(e,n);return e[2]?"@media "+e[2]+"{"+t+"}":t}).join("")},e.i=function(n,t){"string"==typeof n&&(n=[[null,n,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(o=0;o<n.length;o++){var a=n[o];null!=a[0]&&r[a[0]]||(t&&!a[2]?a[2]=t:t&&(a[2]="("+a[2]+") and ("+t+")"),e.push(a))}},e}},function(n,e,t){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),c=function(n){var e={};return function(n,t){if("function"==typeof n)return n();if(void 0===e[n]){var r=function(n,e){return e?e.querySelector(n):document.querySelector(n)}.call(this,n,t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(n){r=null}e[n]=r}return e[n]}}(),l=null,u=0,s=[],f=t(6);function _(n,e){for(var t=0;t<n.length;t++){var r=n[t],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(m(r.parts[a],e))}else{var c=[];for(a=0;a<r.parts.length;a++)c.push(m(r.parts[a],e));i[r.id]={id:r.id,refs:1,parts:c}}}}function d(n,e){for(var t=[],r={},o=0;o<n.length;o++){var i=n[o],a=e.base?i[0]+e.base:i[0],c={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(c):t.push(r[a]={id:a,parts:[c]})}return t}function p(n,e){var t=c(n.insertInto);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=s[s.length-1];if("top"===n.insertAt)r?r.nextSibling?t.insertBefore(e,r.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),s.push(e);else if("bottom"===n.insertAt)t.appendChild(e);else{if("object"!=typeof n.insertAt||!n.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=c(n.insertAt.before,t);t.insertBefore(e,o)}}function h(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n);var e=s.indexOf(n);e>=0&&s.splice(e,1)}function g(n){var e=document.createElement("style");if(void 0===n.attrs.type&&(n.attrs.type="text/css"),void 0===n.attrs.nonce){var r=function(){0;return t.nc}();r&&(n.attrs.nonce=r)}return v(e,n.attrs),p(n,e),e}function v(n,e){Object.keys(e).forEach(function(t){n.setAttribute(t,e[t])})}function m(n,e){var t,r,o,i;if(e.transform&&n.css){if(!(i="function"==typeof e.transform?e.transform(n.css):e.transform.default(n.css)))return function(){};n.css=i}if(e.singleton){var a=u++;t=l||(l=g(e)),r=x.bind(null,t,a,!1),o=x.bind(null,t,a,!0)}else n.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(t=function(n){var e=document.createElement("link");return void 0===n.attrs.type&&(n.attrs.type="text/css"),n.attrs.rel="stylesheet",v(e,n.attrs),p(n,e),e}(e),r=function(n,e,t){var r=t.css,o=t.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=f(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),c=n.href;n.href=URL.createObjectURL(a),c&&URL.revokeObjectURL(c)}.bind(null,t,e),o=function(){h(t),t.href&&URL.revokeObjectURL(t.href)}):(t=g(e),r=function(n,e){var t=e.css,r=e.media;r&&n.setAttribute("media",r);if(n.styleSheet)n.styleSheet.cssText=t;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(t))}}.bind(null,t),o=function(){h(t)});return r(n),function(e){if(e){if(e.css===n.css&&e.media===n.media&&e.sourceMap===n.sourceMap)return;r(n=e)}else o()}}n.exports=function(n,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var t=d(n,e);return _(t,e),function(n){for(var r=[],o=0;o<t.length;o++){var a=t[o];(c=i[a.id]).refs--,r.push(c)}n&&_(d(n,e),e);for(o=0;o<r.length;o++){var c;if(0===(c=r[o]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete i[c.id]}}}};var b,y=(b=[],function(n,e){return b[n]=e,b.filter(Boolean).join("\n")});function x(n,e,t,r){var o=t?"":r.css;if(n.styleSheet)n.styleSheet.cssText=y(e,o);else{var i=document.createTextNode(o),a=n.childNodes;a[e]&&n.removeChild(a[e]),a.length?n.insertBefore(i,a[e]):n.appendChild(i)}}},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(n){n.auto="auto",n.block="block",n.inherit="",n.lg="lg",n.md="md",n.none="none",n.sm="sm",n.xl="xl",n.xs="xs",n.xxl="xxl"}(e.SizeNS||(e.SizeNS={})),function(n){n.bottom="bottom",n.bottomLeft="bottom-left",n.bottomRight="bottom-right",n.center="center",n.left="left",n.leftBottom="left-bottom",n.leftTop="left-top",n.right="right",n.rightBottom="right-bottom",n.rightTop="right-top",n.top="top",n.topLeft="top-left",n.topRight="top-right"}(e.PlacementNS||(e.PlacementNS={}))},,function(n,e){n.exports=function(n){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!n||"string"!=typeof n)return n;var t=e.protocol+"//"+e.host,r=t+e.pathname.replace(/\/[^\/]*$/,"/");return n.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(n,e){var o,i=e.trim().replace(/^"(.*)"$/,function(n,e){return e}).replace(/^'(.*)'$/,function(n,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?n:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?t+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(0);e.useEventListener=function(n){var t=n.dependencies,o=void 0===t?[]:t,i=n.event,a=n.handler,c=n.options,l=void 0===c?{}:c,u=n.scope,s=void 0===u?window:u;i?a||console.warn('"handler" option missing, no listeners added'):console.warn('"event" option missing, no listeners added');var f=s===window?{current:window}:s,_=e.useEventCallback({handler:a,dependencies:o});r.useEffect(function(){var n=f.current;if(n)return n.addEventListener(i,_,l),function(){return n.removeEventListener(i,_,l)}},[i,_,f.current])},e.useEventCallback=function(n){var e=n.handler,t=n.dependencies,o=void 0===t?[]:t,i=r.useRef(e);return r.useLayoutEffect(function(){i.current=e},[e].concat(o)),r.useCallback(function(n){return i.current(n)},[])}},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_RECT={x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0};e.getCrossbrowserBoundingRect=function(n){return function(n){return void 0!==n.x}(n)?n:{x:n.left,y:n.top,width:n.width,height:n.height,top:n.top,right:n.right,bottom:n.bottom,left:n.left}},e.getBoundingRect=function(n){var t=n&&n.getBoundingClientRect?n.getBoundingClientRect():e.DEFAULT_RECT;return e.getCrossbrowserBoundingRect(t)}},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(n,e){var t=e;return Object.keys(n).forEach(function(e){t[e]=n[e]}),t}},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(0),o=t(14);e.isPromise=function(n){return"object"==typeof n&&"function"==typeof n.then},e.wrapPromise=function(n){return e.isPromise(n)?n:"boolean"==typeof n?Promise.resolve(n):Promise.resolve(!0)},e.useDelayedCallback=function(n){var t=n.after,i=void 0===t?function(){return!0}:t,a=n.before,c=void 0===a?function(){return!0}:a,l=n.delay,u=void 0===l?0:l,s=n.timer,f=(void 0===s?o.useTimer({}):s).setTimer;return r.useCallback(function(n){return e.wrapPromise(c(n)).then(function(n){return n&&f(i,u)})},[u,i])}},function(n,e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}).apply(this,arguments)},o=this&&this.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&(t[r[o]]=n[r[o]])}return t};Object.defineProperty(e,"__esModule",{value:!0});var i,a=t(0),c=t(4),l=t(20),u=t(17),s=t(13),f=t(33),_=t(10),d=t(14),p=t(18),h=t(8);!function(n){n.click="click",n.hover="hover",n.none="none",n.contextmenu="contextmenu"}(i=e.OverlayTriggerVariantNS||(e.OverlayTriggerVariantNS={})),e.useOverlayTrigger=function(n){var e=n.autoFocus,t=void 0!==e&&e,o=n.canFlip,a=void 0===o||o,h=n.hideDelay,g=void 0===h?0:h,v=n.showDelay,m=void 0===v?0:v,b=n.initialIsVisible,y=void 0!==b&&b,x=n.onVisibleChange,w=void 0===x?function(){return!0}:x,O=n.padding,N=void 0===O?3:O,S=n.placement,k=void 0===S?c.PlacementNS.top:S,P=n.trigger,E=void 0===P?i.click:P,C=n.keepOpenOnOverlayHover,j=void 0===C?E===i.hover:C,T=p.useVisibility({initialIsVisible:y}),I=f.useAnchor({canFlip:a,padding:N,dependencies:[T.isVisible],placement:k}),A=I.target.ref,R=I.overlay.ref,z=d.useTimer({}),D=_.useDelayedCallback({after:T.show,before:function(n){return w(!0,n)},delay:m,timer:z}),B=function(n){var e=n.target,t=A.current,r=R.current;("keydown"===n.type||t&&t.contains(e)||r&&r.contains(e))&&(A.current&&A.current.focus(),n.stopPropagation())},L=_.useDelayedCallback({after:T.hide,before:function(n){var e=w(!1,n);return!1!==e&&B(n),e},delay:g,timer:z});return l.triggerListeners({trigger:E,on:D,off:L,scope:A,value:T.isVisible}),j&&l.triggerListeners({trigger:E,on:D,off:L,scope:R,value:T.isVisible}),s.useHotkey({key:["ArrowDown","Down"],handler:D,scope:A}),s.useHotkey({key:["Escape","Esc"],handler:L,scope:A}),s.useHotkey({key:["Escape","Esc"],handler:L,scope:R}),s.useHotkey({key:["Tab"],handler:function(n){T.hide(),B(n),n.preventDefault()},scope:R}),u.useAutofocus({ref:R,enabled:t}),{portal:I.portal,overlay:r({},T,I.overlay,{hide:L,show:D,position:I.position}),target:I.target}},e.withOverlayTrigger=function(n){return function(t){return function(o){return a.createElement(t,r({},o,{overlayTrigger:e.useOverlayTrigger(r({},n,o.overlayTrigger))}))}}};var g=function(n){return function(){return console.warn("Could not call `"+n+"`, please wrap your component in an `<OverlayTriggerProvider>`")}},v={portal:a.createRef(),overlay:{hide:g("hide"),show:g("show")},target:{ref:a.createRef(),rect:h.DEFAULT_RECT}};e.OverlayTriggerContext=a.createContext(v),e.OverlayTriggerProvider=function(n){var t=n.children,r=o(n,["children"]);return a.createElement(e.OverlayTriggerContext.Provider,{value:e.useOverlayTrigger(r)},t)},e.consumeOverlayTrigger=function(){return a.useContext(e.OverlayTriggerContext)}},function(n,e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}).apply(this,arguments)},o=this&&this.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&(t[r[o]]=n[r[o]])}return t};Object.defineProperty(e,"__esModule",{value:!0});var i,a,c=t(0),l=t(1),u=t(26),s=t(22),f=t(15),_=t(4);!function(n){n.b="b",n.l="l",n.r="r",n.t="t"}(i=e.SideShorthandNS||(e.SideShorthandNS={})),function(n){n.block="block",n.inline="inline",n.inlineBlock="inline-block",n.flexColumn="flex-column",n.flexRow="flex-row",n.flexInlineColumn="flex-inline-column",n.flexInlineRow="flex-inline-row"}(e.BoxDisplayNS||(e.BoxDisplayNS={})),function(n){n.margin="margin",n.padding="padding"}(a=e.BoxSpaceAttributeNS||(e.BoxSpaceAttributeNS={})),function(n){n.flex="flex",n.flexBasis="flexBasis",n.flexGrow="flexGrow",n.flexShrink="flexShrink",n.order="order"}(e.InlineFlexStyleKeysNS||(e.InlineFlexStyleKeysNS={})),function(n){n.none="",n.baseline="baseline",n.center="center",n.end="flex-end",n.normal="normal",n.start="flex-start",n.stretch="stretch"}(e.FlexAlignNS||(e.FlexAlignNS={})),function(n){n.column="column",n.columnReverse="column-reverse",n.row="row",n.rowReverse="row-reverse"}(e.FlexDirectionNS||(e.FlexDirectionNS={})),function(n){n.none="",n.center="center",n.end="flex-end",n.spaceAround="space-around",n.spaceBetween="space-between",n.spaceEvenly="space-evenly",n.start="flex-start",n.stretch="stretch"}(e.FlexJustifyNS||(e.FlexJustifyNS={})),function(n){n.nowrap="nowrap",n.wrapReverse="wrap-reverse",n.wrap="wrap"}(e.FlexWrapNS||(e.FlexWrapNS={})),function(n){n.center="center",n.left="left",n.right="right"}(e.TextAlignNS||(e.TextAlignNS={}));var d=l.bind(r({},s,f)),p=u.pickBy(function(n){return void 0!==n}),h=function(n,e,t){return t&&t!==_.SizeNS.none?"core-"+n+"-"+e+"-"+t:""},g=function(n){return function(e){return[h(n,i.t,e[0]),h(n,i.r,e[1]),h(n,i.b,e[2]),h(n,i.l,e[3])]}},v=function(n,e,t,r){return function(o){return n&&(o[0]=n),e&&(o[1]=e),t&&(o[2]=t),r&&(o[3]=r),o}},m=function(n){void 0===n&&(n="");var e=n.split(" "),t=[];return 1===e.length?t=[e[0],e[0],e[0],e[0]]:2===e.length?t=[e[0],e[1],e[0],e[1]]:3===e.length?t=[e[0],e[1],e[2],e[1]]:4===e.length&&(t=e),t},b=c.forwardRef(function(n,e){var t=n.alignContent,i=n.alignItems,l=n.alignSelf,u=n.className,s=n.display,f=n.flex,_=n.flexBasis,h=n.flexGrow,b=n.flexShrink,y=n.flexWrap,x=n.justifyContent,w=n.style,O=n.order,N=n.margin,S=void 0===N?"none":N,k=n.marginTop,P=n.marginRight,E=n.marginBottom,C=n.marginLeft,j=n.padding,T=void 0===j?"none":j,I=n.paddingTop,A=n.paddingRight,R=n.paddingBottom,z=n.paddingLeft,D=n.textAlign,B=n.children,L=o(n,["alignContent","alignItems","alignSelf","className","display","flex","flexBasis","flexGrow","flexShrink","flexWrap","justifyContent","style","order","margin","marginTop","marginRight","marginBottom","marginLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","textAlign","children"]),F=S||P||C||k||E?g(a.margin)(v(k,P,E,C)(m(S))):[],M=T||A||z||I||R?g(a.padding)(v(I,A,R,z)(m(T))):[];return c.createElement("div",r({ref:e,className:d.apply(void 0,F.concat(M,[t&&"core-flex-align-content-"+t,i&&"core-flex-align-items-"+i,l&&"core-flex-align-self-"+l,s&&"core-"+s,y&&"core-flex-wrap-"+y,x&&"core-flex-justify-content-"+x,D&&"core-text-"+D,u])),style:r({},w,p({flex:f,flexBasis:_,flexGrow:h,flexShrink:b,order:O}))},L),B)});b.displayName="Box",e.default=b},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(7),o=function(n){var e=n.key,t=n.handler,r=n.preventDefault,o=n.stopPropagation;return function(n){(Array.isArray(e)?e:[e]).includes(n.key)&&(t(n),r&&n.preventDefault(),o&&n.stopPropagation())}};e.useHotkey=function(n){var e=n.dependencies,t=void 0===e?[]:e,i=n.key,a=n.handler,c=void 0===a?function(){}:a,l=n.scope,u=void 0===l?window:l,s=n.preventDefault,f=void 0!==s&&s,_=n.stopPropagation,d=void 0!==_&&_;r.useEventListener({dependencies:t,event:"keydown",handler:o({key:i,handler:c,preventDefault:f,stopPropagation:d}),scope:u})}},function(n,e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=t(0);e.useTimer=function(n){var e=o.useRef(null);return{setTimer:function(n,t){e.current&&clearTimeout(e.current),e.current=window.setTimeout(n,t)},timerId:e.current}},e.withTimer=function(n){return function(t){return function(i){return o.createElement(t,r({},i,{timer:e.useTimer(r({},n,i.timer))}))}}},e.Timer=function(n){var t=n.children,r=e.useTimer({});return"function"==typeof t?t(r):t};var i;e.TimerContext=o.createContext({timerId:null,setTimer:(i="setTimer",function(){return console.warn("Could not call `"+i+"`, please wrap your component in a `<TimerProvider>`")})}),e.TimerProvider=function(n){var t=n.children;return o.createElement(e.TimerContext.Provider,{value:e.useTimer({})},t)},e.consumeTimer=function(){return o.useContext(e.TimerContext)}},function(n,e,t){var r=t(35);"string"==typeof r&&(r=[[n.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};t(3)(r,o);r.locals&&(n.exports=r.locals)},function(n,e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}).apply(this,arguments)},o=this&&this.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&(t[r[o]]=n[r[o]])}return t};Object.defineProperty(e,"__esModule",{value:!0});var i,a=t(0),c=t(1),l=t(23),u=t(24),s=t(4);!function(n){n.none="",n.hoverCircle="hover-circle",n.hoverFill="hover-fill"}(i=e.IconVariantNS||(e.IconVariantNS={}));var f=c.bind(u),_=a.forwardRef(function(n,e){var t,c=n.className,u=n.clickable,_=void 0!==u&&u,d=n.icon,p=n.size,h=void 0===p?s.SizeNS.inherit:p,g=n.variant,v=void 0===g?i.none:g,m=o(n,["className","clickable","icon","size","variant"]);return a.createElement("span",r({ref:e,className:l.default("ci","ci-"+d,f("core-icon",(t={"core-icon--clickable":_},t["core-icon--"+h]=h,t["core-icon--"+v]=v,t)),c)},m))});_.displayName="Icon",e.default=_},function(n,e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}).apply(this,arguments)},o=this&&this.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&(t[r[o]]=n[r[o]])}return t};Object.defineProperty(e,"__esModule",{value:!0});var i=t(0);e.Autofocus=i.forwardRef(function(n,t){var c=n.children,l=n.enabled,u=void 0===l||l,s=o(n,["children","enabled"]),f=c.ref,_=i.createRef();return e.useAutofocus({ref:_,enabled:u}),a({ref:_,refs:[t,f]}),c&&i.cloneElement(c,r({},s,{ref:_}))}),e.useAutofocus=function(n){var e=n.enabled,t=void 0===e||e,r=n.ref;return i.useLayoutEffect(function(){t&&r&&r.current&&r.current.focus()},[r.current])};var a=function(n){var e=n.ref,t=n.refs;i.useLayoutEffect(function(){t.forEach(function(n){n&&("function"==typeof n?n(e.current):n.current=e.current)})},[e])}},function(n,e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}).apply(this,arguments)},o=this&&this.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&(t[r[o]]=n[r[o]])}return t};Object.defineProperty(e,"__esModule",{value:!0});var i=t(0);e.useVisibility=function(n){var e=n.initialIsVisible,t=void 0!==e&&e,r=i.useState(t),o=r[0],a=r[1],c=function(){return a(!1)},l=function(){return a(!0)};return{isVisible:o,hide:c,show:l,toggle:o?c:l}},e.withVisibility=function(n){return function(t){return function(o){return i.createElement(t,r({},o,{visibility:e.useVisibility(r({},n,o.visibility))}))}}},e.Visibility=function(n){var t=n.children,r=o(n,["children"]),i=e.useVisibility(r);return"function"==typeof t?t(i):t};var a=function(n){return function(){return console.warn("Could not call `"+n+"`, please wrap your component in a `<VisibilityProvider>`")}};e.VisibilityContext=i.createContext({isVisible:!1,hide:a("hide"),show:a("show"),toggle:a("toggle")}),e.VisibilityProvider=function(n){var t=n.children,r=o(n,["children"]);return i.createElement(e.VisibilityContext.Provider,{value:e.useVisibility(r)},t)},e.consumeVisibility=function(){return i.useContext(e.VisibilityContext)}},function(n,e,t){var r=t(41);"string"==typeof r&&(r=[[n.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};t(3)(r,o);r.locals&&(n.exports=r.locals)},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(7),o=t(11);e.triggerListeners=function(n){var e=n.value,t=n.off,i=n.on,a=n.trigger,c=n.scope;switch(a){case o.OverlayTriggerVariantNS.click:var l=e?t:i;r.useEventListener({dependencies:[l],event:"click",scope:c,handler:l});break;case o.OverlayTriggerVariantNS.contextmenu:var u=e?t:i;r.useEventListener({dependencies:[u],event:"contextmenu",scope:c,handler:u});break;case o.OverlayTriggerVariantNS.hover:r.useEventListener({event:"mouseleave",scope:c,handler:t}),r.useEventListener({event:"mouseenter",scope:c,handler:i})}}},function(n,e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=t(8),i=t(4),a=function(n){var e=n.align,t=n.edge;return e===i.PlacementNS.center?t:t+"-"+e},c=function(n){var e=n.validator,t=n.updater;return function(n){var o=n.container,a=n.target,c=n.overlay,l=n.placement,u=n.canFlip,s=void 0===u||u,f=function(n){return{top:i.PlacementNS.bottom,bottom:i.PlacementNS.top,left:i.PlacementNS.right,right:i.PlacementNS.left,center:i.PlacementNS.center}[n]}(l),_=!e[l](o,a,c)&&e[f](o,a,c),d=s&&_?f:l;return r({placement:d},t[d](a,c))}};e.Alignment={updater:{left:function(n,e){return{left:n.left}},right:function(n,e){return{left:n.right-e.width}},top:function(n,e){return{top:n.top}},bottom:function(n,e){return{top:n.bottom-e.height}},center:function(n,e){return{left:n.left+(n.width-e.width)/2,top:n.top+(n.height-e.height)/2}}},validator:{top:function(n,e,t){return n.height-e.top>=t.height},right:function(n,e,t){return e.right-n.left>=t.width},left:function(n,e,t){return n.width-e.left>=t.width},bottom:function(n,e,t){return e.bottom-n.top>=t.height},center:function(){return!0}}},e.getAlignmentPosition=c(e.Alignment),e.getEdgePosition=c({updater:{left:function(n,e){return{left:n.left-e.width}},right:function(n,e){return{left:n.right}},top:function(n,e){return{top:n.top-e.height}},bottom:function(n,e){return{top:n.bottom}}},validator:{top:function(n,e,t){return e.top-n.top>=t.height},left:function(n,e,t){return e.left-n.left>=t.width},bottom:function(n,e,t){return n.height-e.bottom>=t.height},right:function(n,e,t){return n.width-e.right>=t.width}}}),e.padding=function(n,e){return void 0===n&&(n=0),r({},e,{width:e.width+2*n,height:e.height+2*n,top:e.top-n,bottom:e.bottom+n,left:e.left-n,right:e.right+n})},e.getAnchorPosition=function(n,t,c,l,u,s){if(void 0===t&&(t=0),void 0===c&&(c={top:0,left:0,width:window.innerWidth,height:window.innerHeight,bottom:window.innerWidth,right:window.innerWidth}),void 0===s&&(s=!0),!l||!u)return o.DEFAULT_RECT;var f=function(n){var e=n.split("-");return{edge:e[0],align:e[1]||i.PlacementNS.center}}(n),_=e.getAlignmentPosition({canFlip:s,container:c,target:l,overlay:u,placement:f.align}),d=e.getEdgePosition({canFlip:s,container:c,target:e.padding(t,l),overlay:u,placement:f.edge});return r({},_,d,{placement:a({align:_.placement,edge:d.placement}),minWidth:Math.max(l.width,u.width)})}},function(n,e,t){var r=t(34);"string"==typeof r&&(r=[[n.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};t(3)(r,o);r.locals&&(n.exports=r.locals)},function(n,e,t){var r;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";var t={}.hasOwnProperty;function o(){for(var n=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"===i||"number"===i)n.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&n.push(a)}else if("object"===i)for(var c in r)t.call(r,c)&&r[c]&&n.push(c)}}return n.join(" ")}n.exports?(o.default=o,n.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(n.exports=r)}()},function(n,e,t){var r=t(25);"string"==typeof r&&(r=[[n.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};t(3)(r,o);r.locals&&(n.exports=r.locals)},function(n,e,t){(e=n.exports=t(2)(!1)).push([n.i,"._1FgAl-7_3_0 {\n display: inline-flex; }\n .QtZLT-7_3_0 {\n cursor: pointer; }\n ._3Hw5E-7_3_0 {\n transition: color 0.2s ease-in-out; }\n ._3Hw5E-7_3_0:hover {\n color: #000000; }\n ._2g2N0-7_3_0:hover {\n color: #ffffff; }\n ._2g2N0-7_3_0:hover:before {\n background-color: #808080;\n border-radius: 50%; }\n ._3TrT9-7_3_0 {\n font-size: 16px;\n min-width: 16px; }\n ._157DG-7_3_0 {\n font-size: 24px;\n min-width: 24px; }\n ._3UApg-7_3_0 {\n font-size: 26px;\n min-width: 26px; }\n",""]),e.locals={"core-icon":"_1FgAl-7_3_0","core-icon--clickable":"QtZLT-7_3_0","core-icon--hover-fill":"_3Hw5E-7_3_0","core-icon--hover-circle":"_2g2N0-7_3_0","core-icon--sm":"_3TrT9-7_3_0","core-icon--md":"_157DG-7_3_0","core-icon--lg":"_3UApg-7_3_0"}},function(n,e,t){"use strict";t.r(e);var r=function(){return!1},o=function(){return!0},i={"@@functional/placeholder":!0};function a(n){return null!=n&&"object"==typeof n&&!0===n["@@functional/placeholder"]}function c(n){return function e(t){return 0===arguments.length||a(t)?e:n.apply(this,arguments)}}function l(n){return function e(t,r){switch(arguments.length){case 0:return e;case 1:return a(t)?e:c(function(e){return n(t,e)});default:return a(t)&&a(r)?e:a(t)?c(function(e){return n(e,r)}):a(r)?c(function(e){return n(t,e)}):n(t,r)}}}var u=l(function(n,e){return Number(n)+Number(e)});function s(n,e){var t;e=e||[];var r=(n=n||[]).length,o=e.length,i=[];for(t=0;t<r;)i[i.length]=n[t],t+=1;for(t=0;t<o;)i[i.length]=e[t],t+=1;return i}function f(n,e){switch(n){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,t){return e.apply(this,arguments)};case 3:return function(n,t,r){return e.apply(this,arguments)};case 4:return function(n,t,r,o){return e.apply(this,arguments)};case 5:return function(n,t,r,o,i){return e.apply(this,arguments)};case 6:return function(n,t,r,o,i,a){return e.apply(this,arguments)};case 7:return function(n,t,r,o,i,a,c){return e.apply(this,arguments)};case 8:return function(n,t,r,o,i,a,c,l){return e.apply(this,arguments)};case 9:return function(n,t,r,o,i,a,c,l,u){return e.apply(this,arguments)};case 10:return function(n,t,r,o,i,a,c,l,u,s){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _(n,e,t){return function(){for(var r=[],o=0,i=n,c=0;c<e.length||o<arguments.length;){var l;c<e.length&&(!a(e[c])||o>=arguments.length)?l=e[c]:(l=arguments[o],o+=1),r[c]=l,a(l)||(i-=1),c+=1}return i<=0?t.apply(this,r):f(i,_(n,r,t))}}var d=l(function(n,e){return 1===n?c(e):f(n,_(n,[],e))}),p=c(function(n){return d(n.length,function(){var e=0,t=arguments[0],r=arguments[arguments.length-1],o=Array.prototype.slice.call(arguments,0);return o[0]=function(){var n=t.apply(this,s(arguments,[e,r]));return e+=1,n},n.apply(this,o)})});function h(n){return function e(t,r,o){switch(arguments.length){case 0:return e;case 1:return a(t)?e:l(function(e,r){return n(t,e,r)});case 2:return a(t)&&a(r)?e:a(t)?l(function(e,t){return n(e,r,t)}):a(r)?l(function(e,r){return n(t,e,r)}):c(function(e){return n(t,r,e)});default:return a(t)&&a(r)&&a(o)?e:a(t)&&a(r)?l(function(e,t){return n(e,t,o)}):a(t)&&a(o)?l(function(e,t){return n(e,r,t)}):a(r)&&a(o)?l(function(e,r){return n(t,e,r)}):a(t)?c(function(e){return n(e,r,o)}):a(r)?c(function(e){return n(t,e,o)}):a(o)?c(function(e){return n(t,r,e)}):n(t,r,o)}}}var g=h(function(n,e,t){if(n>=t.length||n<-t.length)return t;var r=(n<0?t.length:0)+n,o=s(t);return o[r]=e(t[r]),o}),v=Array.isArray||function(n){return null!=n&&n.length>=0&&"[object Array]"===Object.prototype.toString.call(n)};function m(n){return null!=n&&"function"==typeof n["@@transducer/step"]}function b(n,e,t){return function(){if(0===arguments.length)return t();var r=Array.prototype.slice.call(arguments,0),o=r.pop();if(!v(o)){for(var i=0;i<n.length;){if("function"==typeof o[n[i]])return o[n[i]].apply(o,r);i+=1}if(m(o))return e.apply(null,r)(o)}return t.apply(this,arguments)}}function y(n){return n&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}}var x={init:function(){return this.xf["@@transducer/init"]()},result:function(n){return this.xf["@@transducer/result"](n)}},w=function(){function n(n,e){this.xf=e,this.f=n,this.all=!0}return n.prototype["@@transducer/init"]=x.init,n.prototype["@@transducer/result"]=function(n){return this.all&&(n=this.xf["@@transducer/step"](n,!0)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,e){return this.f(e)||(this.all=!1,n=y(this.xf["@@transducer/step"](n,!1))),n},n}(),O=l(b(["all"],l(function(n,e){return new w(n,e)}),function(n,e){for(var t=0;t<e.length;){if(!n(e[t]))return!1;t+=1}return!0})),N=l(function(n,e){return e>n?e:n});function S(n,e){for(var t=0,r=e.length,o=Array(r);t<r;)o[t]=n(e[t]),t+=1;return o}function k(n){return"[object String]"===Object.prototype.toString.call(n)}var P=c(function(n){return!!v(n)||!!n&&("object"==typeof n&&(!k(n)&&(1===n.nodeType?!!n.length:0===n.length||n.length>0&&(n.hasOwnProperty(0)&&n.hasOwnProperty(n.length-1)))))}),E=function(){function n(n){this.f=n}return n.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},n.prototype["@@transducer/result"]=function(n){return n},n.prototype["@@transducer/step"]=function(n,e){return this.f(n,e)},n}();function C(n){return new E(n)}var j=l(function(n,e){return f(n.length,function(){return n.apply(e,arguments)})});function T(n,e,t){for(var r=t.next();!r.done;){if((e=n["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=t.next()}return n["@@transducer/result"](e)}function I(n,e,t,r){return n["@@transducer/result"](t[r](j(n["@@transducer/step"],n),e))}var A="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function R(n,e,t){if("function"==typeof n&&(n=C(n)),P(t))return function(n,e,t){for(var r=0,o=t.length;r<o;){if((e=n["@@transducer/step"](e,t[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return n["@@transducer/result"](e)}(n,e,t);if("function"==typeof t["fantasy-land/reduce"])return I(n,e,t,"fantasy-land/reduce");if(null!=t[A])return T(n,e,t[A]());if("function"==typeof t.next)return T(n,e,t);if("function"==typeof t.reduce)return I(n,e,t,"reduce");throw new TypeError("reduce: list must be array or iterable")}var z=function(){function n(n,e){this.xf=e,this.f=n}return n.prototype["@@transducer/init"]=x.init,n.prototype["@@transducer/result"]=x.result,n.prototype["@@transducer/step"]=function(n,e){return this.xf["@@transducer/step"](n,this.f(e))},n}(),D=l(function(n,e){return new z(n,e)});function B(n,e){return Object.prototype.hasOwnProperty.call(e,n)}var L=Object.prototype.toString,F=function(){return"[object Arguments]"===L.call(arguments)?function(n){return"[object Arguments]"===L.call(n)}:function(n){return B("callee",n)}}(),M=!{toString:null}.propertyIsEnumerable("toString"),V=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],q=function(){return arguments.propertyIsEnumerable("length")}(),H=function(n,e){for(var t=0;t<n.length;){if(n[t]===e)return!0;t+=1}return!1},J="function"!=typeof Object.keys||q?c(function(n){if(Object(n)!==n)return[];var e,t,r=[],o=q&&F(n);for(e in n)!B(e,n)||o&&"length"===e||(r[r.length]=e);if(M)for(t=V.length-1;t>=0;)B(e=V[t],n)&&!H(r,e)&&(r[r.length]=e),t-=1;return r}):c(function(n){return Object(n)!==n?[]:Object.keys(n)}),G=l(b(["fantasy-land/map","map"],D,function(n,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return d(e.length,function(){return n.call(this,e.apply(this,arguments))});case"[object Object]":return R(function(t,r){return t[r]=n(e[r]),t},{},J(e));default:return S(n,e)}})),Q=l(function(n,e){for(var t=e,r=0;r<n.length;){if(null==t)return;t=t[n[r]],r+=1}return t}),U=l(function(n,e){return Q([n],e)}),K=l(function(n,e){return G(U(n),e)}),W=h(R),Z=c(function(n){return d(W(N,0,K("length",n)),function(){for(var e=0,t=n.length;e<t;){if(!n[e].apply(this,arguments))return!1;e+=1}return!0})}),X=c(function(n){return function(){return n}}),Y=l(function(n,e){return n&&e}),$=function(){function n(n,e){this.xf=e,this.f=n,this.any=!1}return n.prototype["@@transducer/init"]=x.init,n.prototype["@@transducer/result"]=function(n){return this.any||(n=this.xf["@@transducer/step"](n,!1)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,e){return this.f(e)&&(this.any=!0,n=y(this.xf["@@transducer/step"](n,!0))),n},n}(),nn=l(b(["any"],l(function(n,e){return new $(n,e)}),function(n,e){for(var t=0;t<e.length;){if(n(e[t]))return!0;t+=1}return!1})),en=c(function(n){return d(W(N,0,K("length",n)),function(){for(var e=0,t=n.length;e<t;){if(n[e].apply(this,arguments))return!0;e+=1}return!1})}),tn=l(function(n,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](n):"function"==typeof n.ap?n.ap(e):"function"==typeof n?function(t){return n(t)(e(t))}:R(function(n,t){return s(n,G(t,e))},[],n)});function rn(n,e){for(var t=0,r=e.length-(n-1),o=new Array(r>=0?r:0);t<r;)o[t]=Array.prototype.slice.call(e,t,t+n),t+=1;return o}var on=function(){function n(n,e){this.xf=e,this.pos=0,this.full=!1,this.acc=new Array(n)}return n.prototype["@@transducer/init"]=x.init,n.prototype["@@transducer/result"]=function(n){return this.acc=null,this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,e){return this.store(e),this.full?this.xf["@@transducer/step"](n,this.getCopy()):n},n.prototype.store=function(n){this.acc[this.pos]=n,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},n.prototype.getCopy=function(){return s(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},n}(),an=l(b([],l(function(n,e){return new on(n,e)}),rn)),cn=l(function(n,e){return s(e,[n])}),ln=l(function(n,e){return n.apply(this,e)}),un=c(function(n){for(var e=J(n),t=e.length,r=[],o=0;o<t;)r[o]=n[e[o]],o+=1;return r});function sn(n,e){return J(e).reduce(function(t,r){return t[r]=n(e[r]),t},{})}var fn=c(function n(e){return e=sn(function(e){return"function"==typeof e?e:n(e)},e),d(W(N,0,K("length",un(e))),function(){var n=arguments;return sn(function(e){return ln(e,n)},e)})}),_n=l(function(n,e){return e(n)}),dn=h(function(n,e,t){var r=n(e),o=n(t);return r<o?-1:r>o?1:0}),pn=h(function(n,e,t){var r={};for(var o in t)r[o]=t[o];return r[n]=e,r}),hn=Number.isInteger||function(n){return n<<0===n},gn=c(function(n){return null==n}),vn=h(function n(e,t,r){if(0===e.length)return t;var o=e[0];if(e.length>1){var i=!gn(r)&&B(o,r)?r[o]:hn(e[1])?[]:{};t=n(Array.prototype.slice.call(e,1),t,i)}if(hn(o)&&v(r)){var a=[].concat(r);return a[o]=t,a}return pn(o,t,r)}),mn=l(function(n,e){switch(n){case 0:return function(){return e.call(this)};case 1:return function(n){return e.call(this,n)};case 2:return function(n,t){return e.call(this,n,t)};case 3:return function(n,t,r){return e.call(this,n,t,r)};case 4:return function(n,t,r,o){return e.call(this,n,t,r,o)};case 5:return function(n,t,r,o,i){return e.call(this,n,t,r,o,i)};case 6:return function(n,t,r,o,i,a){return e.call(this,n,t,r,o,i,a)};case 7:return function(n,t,r,o,i,a,c){return e.call(this,n,t,r,o,i,a,c)};case 8:return function(n,t,r,o,i,a,c,l){return e.call(this,n,t,r,o,i,a,c,l)};case 9:return function(n,t,r,o,i,a,c,l,u){return e.call(this,n,t,r,o,i,a,c,l,u)};case 10:return function(n,t,r,o,i,a,c,l,u,s){return e.call(this,n,t,r,o,i,a,c,l,u,s)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),bn=c(function(n){return mn(2,n)});function yn(n){return"[object Function]"===Object.prototype.toString.call(n)}var xn=l(function(n,e){var t=d(n,e);return d(n,function(){return R(tn,G(t,arguments[0]),Array.prototype.slice.call(arguments,1))})}),wn=c(function(n){return xn(n.length,n)}),On=l(function(n,e){return yn(n)?function(){return n.apply(this,arguments)&&e.apply(this,arguments)}:wn(Y)(n,e)}),Nn=c(function(n){return d(n.length,n)}),Sn=Nn(function(n){return n.apply(this,Array.prototype.slice.call(arguments,1))});function kn(n){return function e(t){for(var r,o,i,a=[],c=0,l=t.length;c<l;){if(P(t[c]))for(i=0,o=(r=n?e(t[c]):t[c]).length;i<o;)a[a.length]=r[i],i+=1;else a[a.length]=t[c];c+=1}return a}}var Pn=function(n){var e=function(n){return{"@@transducer/init":x.init,"@@transducer/result":function(e){return n["@@transducer/result"](e)},"@@transducer/step":function(e,t){var r=n["@@transducer/step"](e,t);return r["@@transducer/reduced"]?{"@@transducer/value":r,"@@transducer/reduced":!0}:r}}}(n);return{"@@transducer/init":x.init,"@@transducer/result":function(n){return e["@@transducer/result"](n)},"@@transducer/step":function(n,t){return P(t)?R(e,n,t):R(e,n,[t])}}},En=l(b(["fantasy-land/chain","chain"],l(function(n,e){return G(n,Pn(e))}),function(n,e){return"function"==typeof e?function(t){return n(e(t))(t)}:kn(!1)(G(n,e))})),Cn=h(function(n,e,t){if(n>e)throw new Error("min must not be greater than max in clamp(min, max, value)");return t<n?n:t>e?e:t});function jn(n){return new RegExp(n.source,(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":""))}var Tn=c(function(n){return null===n?"Null":void 0===n?"Undefined":Object.prototype.toString.call(n).slice(8,-1)});function In(n,e,t,r){var o=function(o){for(var i=e.length,a=0;a<i;){if(n===e[a])return t[a];a+=1}for(var c in e[a+1]=n,t[a+1]=o,n)o[c]=r?In(n[c],e,t,!0):n[c];return o};switch(Tn(n)){case"Object":return o({});case"Array":return o([]);case"Date":return new Date(n.valueOf());case"RegExp":return jn(n);default:return n}}var An=c(function(n){return null!=n&&"function"==typeof n.clone?n.clone():In(n,[],[],!0)}),Rn=c(function(n){return function(e,t){return n(e,t)?-1:n(t,e)?1:0}}),zn=c(function(n){return!n}),Dn=wn(zn);function Bn(n,e){return function(){return e.call(this,n.apply(this,arguments))}}function Ln(n,e){return function(){var t=arguments.length;if(0===t)return e();var r=arguments[t-1];return v(r)||"function"!=typeof r[n]?e.apply(this,arguments):r[n].apply(r,Array.prototype.slice.call(arguments,0,t-1))}}var Fn=h(Ln("slice",function(n,e,t){return Array.prototype.slice.call(t,n,e)})),Mn=c(Ln("tail",Fn(1,1/0)));function Vn(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return f(arguments[0].length,W(Bn,arguments[0],Mn(arguments)))}var qn=c(function(n){return k(n)?n.split("").reverse().join(""):Array.prototype.slice.call(n,0).reverse()});function Hn(){if(0===arguments.length)throw new Error("compose requires at least one argument");return Vn.apply(this,qn(arguments))}function Jn(){if(0===arguments.length)throw new Error("composeK requires at least one argument");var n=Array.prototype.slice.call(arguments),e=n.pop();return Hn(Hn.apply(this,G(En,n)),e)}function Gn(n,e){return function(){var t=this;return n.apply(t,arguments).then(function(n){return e.call(t,n)})}}function Qn(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return f(arguments[0].length,W(Gn,arguments[0],Mn(arguments)))}function Un(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return Qn.apply(this,qn(arguments))}var Kn=l(function(n,e){var t=n<0?e.length+n:n;return k(e)?e.charAt(t):e[t]}),Wn=Kn(0);function Zn(n){return n}var Xn=c(Zn),Yn=l(function(n,e){if(e.length<=0)return Xn;var t=Wn(e),r=Mn(e);return f(t.length,function(){return R(function(e,t){return n.call(this,t,e)},t.apply(this,arguments),r)})}),$n=l(function(n,e){return Yn.apply(this,[n,qn(e)])});function ne(n){for(var e,t=[];!(e=n.next()).done;)t.push(e.value);return t}function ee(n,e,t){for(var r=0,o=t.length;r<o;){if(n(e,t[r]))return!0;r+=1}return!1}var te="function"==typeof Object.is?Object.is:function(n,e){return n===e?0!==n||1/n==1/e:n!=n&&e!=e};function re(n,e,t,r){var o=ne(n);function i(n,e){return oe(n,e,t.slice(),r.slice())}return!ee(function(n,e){return!ee(i,e,n)},ne(e),o)}function oe(n,e,t,r){if(te(n,e))return!0;var o,i,a=Tn(n);if(a!==Tn(e))return!1;if(null==n||null==e)return!1;if("function"==typeof n["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](n);if("function"==typeof n.equals||"function"==typeof e.equals)return"function"==typeof n.equals&&n.equals(e)&&"function"==typeof e.equals&&e.equals(n);switch(a){case"Arguments":case"Array":case"Object":if("function"==typeof n.constructor&&"Promise"===(o=n.constructor,null==(i=String(o).match(/^function (\w*)/))?"":i[1]))return n===e;break;case"Boolean":case"Number":case"String":if(typeof n!=typeof e||!te(n.valueOf(),e.valueOf()))return!1;break;case"Date":if(!te(n.valueOf(),e.valueOf()))return!1;break;case"Error":return n.name===e.name&&n.message===e.message;case"RegExp":if(n.source!==e.source||n.global!==e.global||n.ignoreCase!==e.ignoreCase||n.multiline!==e.multiline||n.sticky!==e.sticky||n.unicode!==e.unicode)return!1}for(var c=t.length-1;c>=0;){if(t[c]===n)return r[c]===e;c-=1}switch(a){case"Map":return n.size===e.size&&re(n.entries(),e.entries(),t.concat([n]),r.concat([e]));case"Set":return n.size===e.size&&re(n.values(),e.values(),t.concat([n]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var l=J(n);if(l.length!==J(e).length)return!1;var u=t.concat([n]),s=r.concat([e]);for(c=l.length-1;c>=0;){var f=l[c];if(!B(f,e)||!oe(e[f],n[f],u,s))return!1;c-=1}return!0}var ie=l(function(n,e){return oe(n,e,[],[])});function ae(n,e,t){var r,o;if("function"==typeof n.indexOf)switch(typeof e){case"number":if(0===e){for(r=1/e;t<n.length;){if(0===(o=n[t])&&1/o===r)return t;t+=1}return-1}if(e!=e){for(;t<n.length;){if("number"==typeof(o=n[t])&&o!=o)return t;t+=1}return-1}return n.indexOf(e,t);case"string":case"boolean":case"function":case"undefined":return n.indexOf(e,t);case"object":if(null===e)return n.indexOf(e,t)}for(;t<n.length;){if(ie(n[t],e))return t;t+=1}return-1}function ce(n,e){return ae(e,n,0)>=0}function le(n){return'"'+n.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var ue=function(n){return(n<10?"0":"")+n},se="function"==typeof Date.prototype.toISOString?function(n){return n.toISOString()}:function(n){return n.getUTCFullYear()+"-"+ue(n.getUTCMonth()+1)+"-"+ue(n.getUTCDate())+"T"+ue(n.getUTCHours())+":"+ue(n.getUTCMinutes())+":"+ue(n.getUTCSeconds())+"."+(n.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function fe(n){return function(){return!n.apply(this,arguments)}}function _e(n,e){for(var t=0,r=e.length,o=[];t<r;)n(e[t])&&(o[o.length]=e[t]),t+=1;return o}function de(n){return"[object Object]"===Object.prototype.toString.call(n)}var pe=function(){function n(n,e){this.xf=e,this.f=n}return n.prototype["@@transducer/init"]=x.init,n.prototype["@@transducer/result"]=x.result,n.prototype["@@transducer/step"]=function(n,e){return this.f(e)?this.xf["@@transducer/step"](n,e):n},n}(),he=l(b(["filter"],l(function(n,e){return new pe(n,e)}),function(n,e){return de(e)?R(function(t,r){return n(e[r])&&(t[r]=e[r]),t},{},J(e)):_e(n,e)})),ge=l(function(n,e){return he(fe(n),e)});function ve(n,e){var t=function(t){var r=e.concat([n]);return ce(t,r)?"<Circular>":ve(t,r)},r=function(n,e){return S(function(e){return le(e)+": "+t(n[e])},e.slice().sort())};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+S(t,n).join(", ")+"))";case"[object Array]":return"["+S(t,n).concat(r(n,ge(function(n){return/^\d+$/.test(n)},J(n)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof n?"new Boolean("+t(n.valueOf())+")":n.toString();case"[object Date]":return"new Date("+(isNaN(n.valueOf())?t(NaN):le(se(n)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof n?"new Number("+t(n.valueOf())+")":1/n==-1/0?"-0":n.toString(10);case"[object String]":return"object"==typeof n?"new String("+t(n.valueOf())+")":le(n);case"[object Undefined]":return"undefined";default:if("function"==typeof n.toString){var o=n.toString();if("[object Object]"!==o)return o}return"{"+r(n,J(n)).join(", ")+"}"}}var me=c(function(n){return ve(n,[])}),be=l(function(n,e){if(v(n)){if(v(e))return n.concat(e);throw new TypeError(me(e)+" is not an array")}if(k(n)){if(k(e))return n+e;throw new TypeError(me(e)+" is not a string")}if(null!=n&&yn(n["fantasy-land/concat"]))return n["fantasy-land/concat"](e);if(null!=n&&yn(n.concat))return n.concat(e);throw new TypeError(me(n)+' does not have a method named "concat" or "fantasy-land/concat"')}),ye=c(function(n){return f(W(N,0,G(function(n){return n[0].length},n)),function(){for(var e=0;e<n.length;){if(n[e][0].apply(this,arguments))return n[e][1].apply(this,arguments);e+=1}})}),xe=l(function(n,e){if(n>10)throw new Error("Constructor with greater than ten arguments");return 0===n?function(){return new e}:Nn(mn(n,function(n,t,r,o,i,a,c,l,u,s){switch(arguments.length){case 1:return new e(n);case 2:return new e(n,t);case 3:return new e(n,t,r);case 4:return new e(n,t,r,o);case 5:return new e(n,t,r,o,i);case 6:return new e(n,t,r,o,i,a);case 7:return new e(n,t,r,o,i,a,c);case 8:return new e(n,t,r,o,i,a,c,l);case 9:return new e(n,t,r,o,i,a,c,l,u);case 10:return new e(n,t,r,o,i,a,c,l,u,s)}}))}),we=c(function(n){return xe(n.length,n)}),Oe=l(ce),Ne=l(function(n,e){return d(W(N,0,K("length",e)),function(){var t=arguments,r=this;return n.apply(r,S(function(n){return n.apply(r,t)},e))})}),Se=function(){function n(n,e,t,r){this.valueFn=n,this.valueAcc=e,this.keyFn=t,this.xf=r,this.inputs={}}return n.prototype["@@transducer/init"]=x.init,n.prototype["@@transducer/result"]=function(n){var e;for(e in this.inputs)if(B(e,this.inputs)&&(n=this.xf["@@transducer/step"](n,this.inputs[e]))["@@transducer/reduced"]){n=n["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,e){var t=this.keyFn(e);return this.inputs[t]=this.inputs[t]||[t,this.valueAcc],this.inputs[t][1]=this.valueFn(this.inputs[t][1],e