@harpercollins/harpercollins-design-system 0.0.8 → 0.0.10
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/dist/cjs/components/Badge/Badge.d.ts +2 -2
- package/dist/cjs/components/Badge/Badge.stories.d.ts +1 -1
- package/dist/cjs/components/Badge/index.d.ts +2 -1
- package/dist/cjs/components/index.d.ts +2 -18
- package/dist/cjs/index.js +976 -820
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Badge/Badge.d.ts +2 -2
- package/dist/esm/components/Badge/Badge.stories.d.ts +1 -1
- package/dist/esm/components/Badge/index.d.ts +2 -1
- package/dist/esm/components/index.d.ts +2 -18
- package/dist/esm/index.js +974 -820
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,153 +1,925 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as o from"react";import r,{useRef as i,useDebugValue as l,createElement as a,useContext as s,useState as c,useLayoutEffect as u,useEffect as d}from"react";import*as g from"react-dom";var p=function(){return p=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},p.apply(this,arguments)};function f(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function h(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}"function"==typeof SuppressedError&&SuppressedError;var m=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,v=h((function(e){return m.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function b(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var w="-ms-",y="-moz-",x="-webkit-",C="comm",S="rule",R="decl",z="@import",k="@keyframes",M="@layer",P=Math.abs,_=String.fromCharCode,V=Object.assign;function O(e){return e.trim()}function I(e,t){return(e=t.exec(e))?e[0]:e}function E(e,t,n){return e.replace(t,n)}function F(e,t,n){return e.indexOf(t,n)}function A(e,t){return 0|e.charCodeAt(t)}function L(e,t,n){return e.slice(t,n)}function H(e){return e.length}function D(e){return e.length}function N(e,t){return t.push(e),e}function T(e,t){return e.filter((function(e){return!I(e,t)}))}var j=1,G=1,$=0,B=0,q=0,W="";function U(e,t,n,o,r,i,l,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:j,column:G,length:l,return:"",siblings:a}}function X(e,t){return V(U("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Y(e){for(;e.root;)e=X(e.root,{children:[e]});N(e,e.siblings)}function K(){return q=B>0?A(W,--B):0,G--,10===q&&(G=1,j--),q}function Z(){return q=B<$?A(W,B++):0,G++,10===q&&(G=1,j++),q}function J(){return A(W,B)}function Q(){return B}function ee(e,t){return L(W,e,t)}function te(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ne(e){return O(ee(B-1,ie(91===e?e+2:40===e?e+1:e)))}function oe(e){for(;(q=J())&&q<33;)Z();return te(e)>2||te(q)>3?"":" "}function re(e,t){for(;--t&&Z()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return ee(e,Q()+(t<6&&32==J()&&32==Z()))}function ie(e){for(;Z();)switch(q){case e:return B;case 34:case 39:34!==e&&39!==e&&ie(q);break;case 40:41===e&&ie(e);break;case 92:Z()}return B}function le(e,t){for(;Z()&&e+q!==57&&(e+q!==84||47!==J()););return"/*"+ee(t,B-1)+"*"+_(47===e?e:Z())}function ae(e){for(;!te(J());)Z();return ee(e,B)}function se(e){return function(e){return W="",e}(ce("",null,null,null,[""],e=function(e){return j=G=1,$=H(W=e),B=0,[]}(e),0,[0],e))}function ce(e,t,n,o,r,i,l,a,s){for(var c=0,u=0,d=l,g=0,p=0,f=0,h=1,m=1,v=1,b=0,w="",y=r,x=i,C=o,S=w;m;)switch(f=b,b=Z()){case 40:if(108!=f&&58==A(S,d-1)){-1!=F(S+=E(ne(b),"&","&\f"),"&\f",P(c?a[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=ne(b);break;case 9:case 10:case 13:case 32:S+=oe(f);break;case 92:S+=re(Q()-1,7);continue;case 47:switch(J()){case 42:case 47:N(de(le(Z(),Q()),t,n,s),s);break;default:S+="/"}break;case 123*h:a[c++]=H(S)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(S=E(S,/\f/g,"")),p>0&&H(S)-d&&N(p>32?ge(S+";",o,n,d-1,s):ge(E(S," ","")+";",o,n,d-2,s),s);break;case 59:S+=";";default:if(N(C=ue(S,t,n,c,u,r,a,w,y=[],x=[],d,i),i),123===b)if(0===u)ce(S,t,C,C,y,i,d,a,x);else switch(99===g&&110===A(S,3)?100:g){case 100:case 108:case 109:case 115:ce(e,C,C,o&&N(ue(e,C,C,0,0,r,a,w,r,y=[],d,x),x),r,x,d,a,o?y:x);break;default:ce(S,C,C,C,[""],x,0,a,x)}}c=u=p=0,h=v=1,w=S="",d=l;break;case 58:d=1+H(S),p=f;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==K())continue;switch(S+=_(b),b*h){case 38:v=u>0?1:(S+="\f",-1);break;case 44:a[c++]=(H(S)-1)*v,v=1;break;case 64:45===J()&&(S+=ne(Z())),g=J(),u=d=H(w=S+=ae(Q())),b++;break;case 45:45===f&&2==H(S)&&(h=0)}}return i}function ue(e,t,n,o,r,i,l,a,s,c,u,d){for(var g=r-1,p=0===r?i:[""],f=D(p),h=0,m=0,v=0;h<o;++h)for(var b=0,w=L(e,g+1,g=P(m=l[h])),y=e;b<f;++b)(y=O(m>0?p[b]+" "+w:E(w,/&\f/g,p[b])))&&(s[v++]=y);return U(e,t,n,0===r?S:a,s,c,u,d)}function de(e,t,n,o){return U(e,t,n,C,_(q),L(e,2,-2),0,o)}function ge(e,t,n,o,r){return U(e,t,n,R,L(e,0,o),L(e,o+1,-1),o,r)}function pe(e,t,n){switch(function(e,t){return 45^A(e,0)?(((t<<2^A(e,0))<<2^A(e,1))<<2^A(e,2))<<2^A(e,3):0}(e,t)){case 5103:return x+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return x+e+e;case 4789:return y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return x+e+y+e+w+e+e;case 5936:switch(A(e,t+11)){case 114:return x+e+w+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return x+e+w+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return x+e+w+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return x+e+w+e+e;case 6165:return x+e+w+"flex-"+e+e;case 5187:return x+e+E(e,/(\w+).+(:[^]+)/,x+"box-$1$2"+w+"flex-$1$2")+e;case 5443:return x+e+w+"flex-item-"+E(e,/flex-|-self/g,"")+(I(e,/flex-|baseline/)?"":w+"grid-row-"+E(e,/flex-|-self/g,""))+e;case 4675:return x+e+w+"flex-line-pack"+E(e,/align-content|flex-|-self/g,"")+e;case 5548:return x+e+w+E(e,"shrink","negative")+e;case 5292:return x+e+w+E(e,"basis","preferred-size")+e;case 6060:return x+"box-"+E(e,"-grow","")+x+e+w+E(e,"grow","positive")+e;case 4554:return x+E(e,/([^-])(transform)/g,"$1"+x+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,x+"$1"),/(image-set)/,x+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,x+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,x+"box-pack:$3"+w+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+x+e+e;case 4200:if(!I(e,/flex-|baseline/))return w+"grid-column-align"+L(e,t)+e;break;case 2592:case 3360:return w+E(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,I(e.props,/grid-\w+-end/)}))?~F(e+(n=n[t].value),"span",0)?e:w+E(e,"-start","")+e+w+"grid-row-span:"+(~F(n,"span",0)?I(n,/\d+/):+I(n,/\d+/)-+I(e,/\d+/))+";":w+E(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return I(e.props,/grid-\w+-start/)}))?e:w+E(E(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,x+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(H(e)-1-t>6)switch(A(e,t+1)){case 109:if(45!==A(e,t+4))break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+x+"$2-$3$1"+y+(108==A(e,t+3)?"$3":"$2-$3"))+e;case 115:return~F(e,"stretch",0)?pe(E(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return E(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,o,r,i,l,a){return w+n+":"+o+a+(r?w+n+"-span:"+(i?l:+l-+o)+a:"")+e}));case 4949:if(121===A(e,t+6))return E(e,":",":"+x)+e;break;case 6444:switch(A(e,45===A(e,14)?18:11)){case 120:return E(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+x+(45===A(e,14)?"inline-":"")+"box$3$1"+x+"$2$3$1"+w+"$2box$3")+e;case 100:return E(e,":",":"+w)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return E(e,"scroll-","scroll-snap-")+e}return e}function fe(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function he(e,t,n,o){switch(e.type){case M:if(e.children.length)break;case z:case R:return e.return=e.return||e.value;case C:return"";case k:return e.return=e.value+"{"+fe(e.children,o)+"}";case S:if(!H(e.value=e.props.join(",")))return""}return H(n=fe(e.children,o))?e.return=e.value+"{"+n+"}":""}function me(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case R:return void(e.return=pe(e.value,e.length,n));case k:return fe([X(e,{value:E(e.value,"@","@"+x)})],o);case S:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(I(t,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Y(X(e,{props:[E(t,/:(read-\w+)/,":"+y+"$1")]})),Y(X(e,{props:[t]})),V(e,{props:T(n,o)});break;case"::placeholder":Y(X(e,{props:[E(t,/:(plac\w+)/,":"+x+"input-$1")]})),Y(X(e,{props:[E(t,/:(plac\w+)/,":"+y+"$1")]})),Y(X(e,{props:[E(t,/:(plac\w+)/,w+"input-$1")]})),Y(X(e,{props:[t]})),V(e,{props:T(n,o)})}return""}))}}var ve={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},be="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",we="active",ye="data-styled-version",xe="6.1.8",Ce="/*!sc*/\n",Se="undefined"!=typeof window&&"HTMLElement"in window,Re=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),ze=/invalid hook call/i,ke=new Set,Me=function(e,t){if("production"!==process.env.NODE_ENV){var n=t?' with the id of "'.concat(t,'"'):"",o="The component ".concat(e).concat(n," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",r=console.error;try{var l=!0;console.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];ze.test(e)?(l=!1,ke.delete(o)):r.apply(void 0,f([e],t,!1))},i(),l&&!ke.has(o)&&(console.warn(o),ke.add(o))}catch(e){ze.test(e.message)&&ke.delete(o)}finally{console.error=r}}},Pe=Object.freeze([]),_e=Object.freeze({});var Ve=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Oe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ie=/(^-|-$)/g;function Ee(e){return e.replace(Oe,"-").replace(Ie,"")}var Fe=/(a)(d)/gi,Ae=52,Le=function(e){return String.fromCharCode(e+(e>25?39:97))};function He(e){var t,n="";for(t=Math.abs(e);t>Ae;t=t/Ae|0)n=Le(t%Ae)+n;return(Le(t%Ae)+n).replace(Fe,"$1-$2")}var De,Ne=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Te=function(e){return Ne(5381,e)};function je(e){return He(Te(e)>>>0)}function Ge(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function $e(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Be="function"==typeof Symbol&&Symbol.for,qe=Be?Symbol.for("react.memo"):60115,We=Be?Symbol.for("react.forward_ref"):60112,Ue={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Xe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ye={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ke=((De={})[We]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},De[qe]=Ye,De);function Ze(e){return("type"in(t=e)&&t.type.$$typeof)===qe?Ye:"$$typeof"in e?Ke[e.$$typeof]:Ue;var t}var Je=Object.defineProperty,Qe=Object.getOwnPropertyNames,et=Object.getOwnPropertySymbols,tt=Object.getOwnPropertyDescriptor,nt=Object.getPrototypeOf,ot=Object.prototype;function rt(e,t,n){if("string"!=typeof t){if(ot){var o=nt(t);o&&o!==ot&&rt(e,o,n)}var r=Qe(t);et&&(r=r.concat(et(t)));for(var i=Ze(e),l=Ze(t),a=0;a<r.length;++a){var s=r[a];if(!(s in Xe||n&&n[s]||l&&s in l||i&&s in i)){var c=tt(t,s);try{Je(e,s,c)}catch(e){}}}}return e}function it(e){return"function"==typeof e}function lt(e){return"object"==typeof e&&"styledComponentId"in e}function at(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function st(e,t){if(0===e.length)return"";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ct(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ut(e,t,n){if(void 0===n&&(n=!1),!n&&!ct(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=ut(e[o],t[o]);else if(ct(t))for(var o in t)e[o]=ut(e[o],t[o]);return e}function dt(e,t){Object.defineProperty(e,"toString",{value:t})}var gt="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function pt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,i=e.length;r<i;r+=1)o.push(e[r]);return o.forEach((function(e){n=n.replace(/%[a-z]/,e)})),n}function ft(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(pt.apply(void 0,f([gt[e]],t,!1)).trim())}var ht=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw ft(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var i=o;i<r;i++)this.groupSizes[i]=0}for(var l=this.indexOfGroup(e+1),a=(i=0,t.length);i<a;i++)this.tag.insertRule(l,t[i])&&(this.groupSizes[e]++,l++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,i=o;i<r;i++)t+="".concat(this.tag.getRule(i)).concat(Ce);return t},e}(),mt=new Map,vt=new Map,bt=1,wt=function(e){if(mt.has(e))return mt.get(e);for(;vt.has(bt);)bt++;var t=bt++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw ft(16,"".concat(t));return mt.set(e,t),vt.set(t,e),t},yt=function(e,t){bt=t+1,mt.set(e,t),vt.set(t,e)},xt="style[".concat(be,"][").concat(ye,'="').concat(xe,'"]'),Ct=new RegExp("^".concat(be,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),St=function(e,t,n){for(var o,r=n.split(","),i=0,l=r.length;i<l;i++)(o=r[i])&&e.registerName(t,o)},Rt=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Ce),r=[],i=0,l=o.length;i<l;i++){var a=o[i].trim();if(a){var s=a.match(Ct);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(yt(u,c),St(e,u,s[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(a)}}};var zt=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(be,"]")));return t[t.length-1]}(n),i=void 0!==r?r.nextSibling:null;o.setAttribute(be,we),o.setAttribute(ye,xe);var l="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return l&&o.setAttribute("nonce",l),n.insertBefore(o,i),o},kt=function(){function e(e){this.element=zt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw ft(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Mt=function(){function e(e){this.element=zt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Pt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),_t=Se,Vt={isServer:!Se,useCSSOMInjection:!Re},Ot=function(){function e(e,t,n){void 0===e&&(e=_e),void 0===t&&(t={});var o=this;this.options=p(p({},Vt),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Se&&_t&&(_t=!1,function(e){for(var t=document.querySelectorAll(xt),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(be)!==we&&(Rt(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this)),dt(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return vt.get(e)}(n);if(void 0===r)return"continue";var i=e.names.get(r),l=t.getGroup(n);if(void 0===i||0===l.length)return"continue";var a="".concat(be,".g").concat(n,'[id="').concat(r,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),o+="".concat(l).concat(a,'{content:"').concat(s,'"}').concat(Ce)},i=0;i<n;i++)r(i);return o}(o)}))}return e.registerId=function(e){return wt(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(p(p({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Pt(n):t?new kt(n):new Mt(n)}(this.options),new ht(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(wt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(wt(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(wt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),It=/&/g,Et=/^\s*\/\/.*$/gm;function Ft(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ft(e.children,t)),e}))}var At=new Ot,Lt=function(e){var t,n,o,r=void 0===e?_e:e,i=r.options,l=void 0===i?_e:i,a=r.plugins,s=void 0===a?Pe:a,c=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=s.slice();u.push((function(e){e.type===S&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(It,n).replace(o,c))})),l.prefix&&u.push(me),u.push(he);var d=function(e,r,i,a){void 0===r&&(r=""),void 0===i&&(i=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(Et,""),c=se(i||r?"".concat(i," ").concat(r," { ").concat(s," }"):s);l.namespace&&(c=Ft(c,l.namespace));var d,g=[];return fe(c,function(e){var t=D(e);return function(n,o,r,i){for(var l="",a=0;a<t;a++)l+=e[a](n,o,r,i)||"";return l}}(u.concat((d=function(e){return g.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),g};return d.hash=s.length?s.reduce((function(e,t){return t.name||ft(15),Ne(e,t.name)}),5381).toString():"",d}(),Ht=r.createContext({shouldForwardProp:void 0,styleSheet:At,stylis:Lt});function Dt(){return s(Ht)}Ht.Consumer,r.createContext(void 0);var Nt=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Lt);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,dt(this,(function(){throw ft(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Lt),this.name+e.hash},e}(),Tt=function(e){return e>="A"&&e<="Z"};function jt(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;Tt(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var Gt=function(e){return null==e||!1===e||""===e},$t=function(e){var t,n,o=[];for(var r in e){var i=e[r];e.hasOwnProperty(r)&&!Gt(i)&&(Array.isArray(i)&&i.isCss||it(i)?o.push("".concat(jt(r),":"),i,";"):ct(i)?o.push.apply(o,f(f(["".concat(r," {")],$t(i),!1),["}"],!1)):o.push("".concat(jt(r),": ").concat((t=r,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in ve||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return o};function Bt(e,t,n,o){if(Gt(e))return[];if(lt(e))return[".".concat(e.styledComponentId)];if(it(e)){if(!it(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var r=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof Nt||ct(r)||null===r||console.error("".concat(Ge(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Bt(r,t,n,o)}var i;return e instanceof Nt?n?(e.inject(n,o),[e.getName(o)]):[e]:ct(e)?$t(e):Array.isArray(e)?Array.prototype.concat.apply(Pe,e.map((function(e){return Bt(e,t,n,o)}))):[e.toString()]}var qt=Te(xe),Wt=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(it(n)&&!lt(n))return!1}return!0}(e),this.componentId=t,this.baseHash=Ne(qt,t),this.baseStyle=n,Ot.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=at(o,this.staticRulesId);else{var r=st(Bt(this.rules,e,t,n)),i=He(Ne(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,i)){var l=n(r,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,l)}o=at(o,i),this.staticRulesId=i}else{for(var a=Ne(this.baseHash,n.hash),s="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)s+=u,"production"!==process.env.NODE_ENV&&(a=Ne(a,u));else if(u){var d=st(Bt(u,e,t,n));a=Ne(a,d+c),s+=d}}if(s){var g=He(a>>>0);t.hasNameForId(this.componentId,g)||t.insertRules(this.componentId,g,n(s,".".concat(g),void 0,this.componentId)),o=at(o,g)}}return o},e}(),Ut=r.createContext(void 0);Ut.Consumer;var Xt={},Yt=new Set;function Kt(e,t,n){var o=lt(e),i=e,s=!$e(e),c=t.attrs,u=void 0===c?Pe:c,d=t.componentId,g=void 0===d?function(e,t){var n="string"!=typeof e?"sc":Ee(e);Xt[n]=(Xt[n]||0)+1;var o="".concat(n,"-").concat(je(xe+n+Xt[n]));return t?"".concat(t,"-").concat(o):o}(t.displayName,t.parentComponentId):d,f=t.displayName,h=void 0===f?function(e){return $e(e)?"styled.".concat(e):"Styled(".concat(Ge(e),")")}(e):f,m=t.displayName&&t.componentId?"".concat(Ee(t.displayName),"-").concat(t.componentId):t.componentId||g,b=o&&i.attrs?i.attrs.concat(u).filter(Boolean):u,w=t.shouldForwardProp;if(o&&i.shouldForwardProp){var y=i.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;w=function(e,t){return y(e,t)&&x(e,t)}}else w=y}var C=new Wt(n,m,o?i.componentStyle:void 0);function S(e,t){return function(e,t,n){var o=e.attrs,i=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.styledComponentId,d=e.target,g=r.useContext(Ut),f=Dt(),h=e.shouldForwardProp||f.shouldForwardProp;"production"!==process.env.NODE_ENV&&l(u);var m=function(e,t,n){return void 0===n&&(n=_e),e.theme!==n.theme&&e.theme||t||n.theme}(t,g,s)||_e,b=function(e,t,n){for(var o,r=p(p({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var l=it(o=e[i])?o(r):o;for(var a in l)r[a]="className"===a?at(r[a],l[a]):"style"===a?p(p({},r[a]),l[a]):l[a]}return t.className&&(r.className=at(r.className,t.className)),r}(o,t,m),w=b.as||d,y={};for(var x in b)void 0===b[x]||"$"===x[0]||"as"===x||"theme"===x&&b.theme===m||("forwardedAs"===x?y.as=b.forwardedAs:h&&!h(x,w)||(y[x]=b[x],h||"development"!==process.env.NODE_ENV||v(x)||Yt.has(x)||!Ve.has(w)||(Yt.add(x),console.warn('styled-components: it looks like an unknown prop "'.concat(x,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var C=function(e,t){var n=Dt(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&l(o),o}(i,b);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(C);var S=at(c,u);return C&&(S+=" "+C),b.className&&(S+=" "+b.className),y[$e(w)&&!Ve.has(w)?"class":"className"]=S,y.ref=n,a(w,y)}(R,e,t)}S.displayName=h;var R=r.forwardRef(S);return R.attrs=b,R.componentStyle=C,R.displayName=h,R.shouldForwardProp=w,R.foldedComponentIds=o?at(i.foldedComponentIds,i.styledComponentId):"",R.styledComponentId=m,R.target=o?i.target:e,Object.defineProperty(R,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)ut(e,r[o],!0);return e}({},i.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Me(h,m),R.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var i=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(i,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={}}}}(h,m)),dt(R,(function(){return".".concat(R.styledComponentId)})),s&&rt(R,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),R}function Zt(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var Jt=function(e){return Object.assign(e,{isCss:!0})};function Qt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(it(e)||ct(e))return Jt(Bt(Zt(Pe,f([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?Bt(o):Jt(Bt(Zt(o,t)))}function en(e,t,n){if(void 0===n&&(n=_e),!t)throw ft(1,t);var o=function(o){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return e(t,n,Qt.apply(void 0,f([o],r,!1)))};return o.attrs=function(o){return en(e,t,p(p({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return en(e,t,p(p({},n),o))},o}var tn=function(e){return en(Kt,e)},nn=tn;Ve.forEach((function(e){nn[e]=tn(e)})),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var on="__sc-".concat(be,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[on]||(window[on]=0),1===window[on]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[on]+=1);const rn=nn.div`
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
`;function ln({children:t,as:n}){return n?e(rn,{children:e(n,{children:t})}):null}var an=Object.freeze({__proto__:null,Heading:ln});const sn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:e("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"})}),cn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"far","data-icon":"question-circle",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:e("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"})}),un=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:e("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"})}),dn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:e("path",{fill:"currentColor",d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})}),gn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"plus-circle",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:e("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"})}),pn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"ellipsis-h",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:e("path",{fill:"currentColor",d:"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"})}),fn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"chevron-down",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:e("path",{fill:"currentColor",d:"M444.5 133.5L234.5 343.5c-4.7 4.7-12.3 4.7-17 0L3.5 133.5C-1.2 128.6-1.2 120.9 3.5 116l22.3-22.3c4.7-4.7 12.3-4.7 17 0L224 278.1l180.2-180.2c4.7-4.7 12.3-4.7 17 0l22.3 22.3c4.7 4.8 4.7 12.5-.1 17.2z"})}),hn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"user-regular",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:e("path",{fill:"currentColor",d:"M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464H398.7c-8.9-63.3-63.3-112-129-112H178.3c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3z"})}),mn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"chevron-left",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:e("path",{fill:"currentColor",d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"})}),vn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"chevron-right",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:e("path",{fill:"currentColor",d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"})}),bn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"file-arrow-down",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:e("path",{fill:"currentColor",d:"M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 232V334.1l31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31V232c0-13.3 10.7-24 24-24s24 10.7 24 24z"})}),wn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"far","data-icon":"trash-can",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:e("path",{fill:"currentColor",d:"M170.5 51.6L151.5 80h145l-19-28.4c-1.5-2.2-4-3.6-6.7-3.6H177.1c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80H368h48 8c13.3 0 24 10.7 24 24s-10.7 24-24 24h-8V432c0 44.2-35.8 80-80 80H112c-44.2 0-80-35.8-80-80V128H24c-13.3 0-24-10.7-24-24S10.7 80 24 80h8H80 93.8l36.7-55.1C140.9 9.4 158.4 0 177.1 0h93.7c18.7 0 36.2 9.4 46.6 24.9zM80 128V432c0 17.7 14.3 32 32 32H336c17.7 0 32-14.3 32-32V128H80zm80 64V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16z"})}),yn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"far","data-icon":"xmark",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:e("path",{fill:"currentColor",d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"})}),xn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"far","data-icon":"clock",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:e("path",{fill:"currentColor",d:"M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"})}),Cn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"file-upload",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:e("path",{fill:"currentColor",d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm65.18 216.01H224v80c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-80H94.82c-14.28 0-21.41-17.29-11.27-27.36l96.42-95.7c6.65-6.61 17.39-6.61 24.04 0l96.42 95.7c10.15 10.07 3.03 27.36-11.25 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"})}),Sn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"lock",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:e("path",{fill:"currentColor",d:"M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"})}),Rn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:e("path",{fill:"currentColor",d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"})}),zn=e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"arrow-up-right-from-square",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:e("path",{fill:"currentColor",d:"M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"})}),kn={"fa/exclamation-triangle-solid":sn,"fa/question-circle-regular":cn,"fa/check-circle-solid":un,"fa/check-solid":dn,"fa/plus-circle-solid":gn,"fa/ellipsis-h-solid":pn,"fa/chevron-down-solid":fn,"fa/chevron-up-solid":e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"chevron-up",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:e("path",{fill:"currentColor",d:"M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"})}),"fa/chevron-left-solid":mn,"fa/chevron-right-solid":vn,"fa/user-regular":hn,"fa/file-arrow-down-solid":bn,"fa/trash-can-regular":wn,"fa/xmark":yn,"fa/clock":xn,"fa/file-upload-solid":Cn,"fa/lock-solid":Sn,"fa/info-circle-solid":Rn,"fa/arrow-up-right-from-square-solid":zn,"fa/file-excel-regular":e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"far","data-icon":"file-excel",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:e("path",{fill:"currentColor",d:"M48 448V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm90.9 233.3c-8.1-10.5-23.2-12.3-33.7-4.2s-12.3 23.2-4.2 33.7L161.6 320l-44.5 57.3c-8.1 10.5-6.3 25.5 4.2 33.7s25.5 6.3 33.7-4.2L192 359.1l37.1 47.6c8.1 10.5 23.2 12.3 33.7 4.2s12.3-23.2 4.2-33.7L222.4 320l44.5-57.3c8.1-10.5 6.3-25.5-4.2-33.7s-25.5-6.3-33.7 4.2L192 280.9l-37.1-47.6z"})}),"fa/circle-solid":e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"circle",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:e("path",{fill:"currentColor",d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"})}),"fa/circle-exclamation-solid":e("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:e("path",{fill:"currentColor",d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"})})},Mn={xsmall:Qt`
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import o, { useRef, useDebugValue, createElement, useContext } from 'react';
|
|
3
|
+
|
|
4
|
+
/******************************************************************************
|
|
5
|
+
Copyright (c) Microsoft Corporation.
|
|
6
|
+
|
|
7
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
8
|
+
purpose with or without fee is hereby granted.
|
|
9
|
+
|
|
10
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
11
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
12
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
13
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
14
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
15
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
16
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
17
|
+
***************************************************************************** */
|
|
18
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var __assign = function() {
|
|
22
|
+
__assign = Object.assign || function __assign(t) {
|
|
23
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
24
|
+
s = arguments[i];
|
|
25
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
};
|
|
29
|
+
return __assign.apply(this, arguments);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
function __spreadArray(to, from, pack) {
|
|
33
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
34
|
+
if (ar || !(i in from)) {
|
|
35
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
36
|
+
ar[i] = from[i];
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
43
|
+
var e = new Error(message);
|
|
44
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
function memoize(fn) {
|
|
48
|
+
var cache = Object.create(null);
|
|
49
|
+
return function (arg) {
|
|
50
|
+
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
51
|
+
return cache[arg];
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
56
|
+
|
|
57
|
+
var isPropValid = /* #__PURE__ */memoize(function (prop) {
|
|
58
|
+
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
59
|
+
/* o */
|
|
60
|
+
&& prop.charCodeAt(1) === 110
|
|
61
|
+
/* n */
|
|
62
|
+
&& prop.charCodeAt(2) < 91;
|
|
63
|
+
}
|
|
64
|
+
/* Z+1 */
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
var MS = '-ms-';
|
|
68
|
+
var MOZ = '-moz-';
|
|
69
|
+
var WEBKIT = '-webkit-';
|
|
70
|
+
|
|
71
|
+
var COMMENT = 'comm';
|
|
72
|
+
var RULESET = 'rule';
|
|
73
|
+
var DECLARATION = 'decl';
|
|
74
|
+
var IMPORT = '@import';
|
|
75
|
+
var KEYFRAMES = '@keyframes';
|
|
76
|
+
var LAYER = '@layer';
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @param {number}
|
|
80
|
+
* @return {number}
|
|
81
|
+
*/
|
|
82
|
+
var abs = Math.abs;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @param {number}
|
|
86
|
+
* @return {string}
|
|
87
|
+
*/
|
|
88
|
+
var from = String.fromCharCode;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @param {object}
|
|
92
|
+
* @return {object}
|
|
93
|
+
*/
|
|
94
|
+
var assign = Object.assign;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @param {string} value
|
|
98
|
+
* @param {number} length
|
|
99
|
+
* @return {number}
|
|
100
|
+
*/
|
|
101
|
+
function hash (value, length) {
|
|
102
|
+
return charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @param {string} value
|
|
107
|
+
* @return {string}
|
|
108
|
+
*/
|
|
109
|
+
function trim (value) {
|
|
110
|
+
return value.trim()
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @param {string} value
|
|
115
|
+
* @param {RegExp} pattern
|
|
116
|
+
* @return {string?}
|
|
117
|
+
*/
|
|
118
|
+
function match (value, pattern) {
|
|
119
|
+
return (value = pattern.exec(value)) ? value[0] : value
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @param {string} value
|
|
124
|
+
* @param {(string|RegExp)} pattern
|
|
125
|
+
* @param {string} replacement
|
|
126
|
+
* @return {string}
|
|
127
|
+
*/
|
|
128
|
+
function replace (value, pattern, replacement) {
|
|
129
|
+
return value.replace(pattern, replacement)
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @param {string} value
|
|
134
|
+
* @param {string} search
|
|
135
|
+
* @param {number} position
|
|
136
|
+
* @return {number}
|
|
137
|
+
*/
|
|
138
|
+
function indexof (value, search, position) {
|
|
139
|
+
return value.indexOf(search, position)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @param {string} value
|
|
144
|
+
* @param {number} index
|
|
145
|
+
* @return {number}
|
|
146
|
+
*/
|
|
147
|
+
function charat (value, index) {
|
|
148
|
+
return value.charCodeAt(index) | 0
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @param {string} value
|
|
153
|
+
* @param {number} begin
|
|
154
|
+
* @param {number} end
|
|
155
|
+
* @return {string}
|
|
156
|
+
*/
|
|
157
|
+
function substr (value, begin, end) {
|
|
158
|
+
return value.slice(begin, end)
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @param {string} value
|
|
163
|
+
* @return {number}
|
|
164
|
+
*/
|
|
165
|
+
function strlen (value) {
|
|
166
|
+
return value.length
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @param {any[]} value
|
|
171
|
+
* @return {number}
|
|
172
|
+
*/
|
|
173
|
+
function sizeof (value) {
|
|
174
|
+
return value.length
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @param {any} value
|
|
179
|
+
* @param {any[]} array
|
|
180
|
+
* @return {any}
|
|
181
|
+
*/
|
|
182
|
+
function append (value, array) {
|
|
183
|
+
return array.push(value), value
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @param {string[]} array
|
|
188
|
+
* @param {function} callback
|
|
189
|
+
* @return {string}
|
|
190
|
+
*/
|
|
191
|
+
function combine (array, callback) {
|
|
192
|
+
return array.map(callback).join('')
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @param {string[]} array
|
|
197
|
+
* @param {RegExp} pattern
|
|
198
|
+
* @return {string[]}
|
|
199
|
+
*/
|
|
200
|
+
function filter (array, pattern) {
|
|
201
|
+
return array.filter(function (value) { return !match(value, pattern) })
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
var line = 1;
|
|
205
|
+
var column = 1;
|
|
206
|
+
var length = 0;
|
|
207
|
+
var position = 0;
|
|
208
|
+
var character = 0;
|
|
209
|
+
var characters = '';
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @param {string} value
|
|
213
|
+
* @param {object | null} root
|
|
214
|
+
* @param {object | null} parent
|
|
215
|
+
* @param {string} type
|
|
216
|
+
* @param {string[] | string} props
|
|
217
|
+
* @param {object[] | string} children
|
|
218
|
+
* @param {object[]} siblings
|
|
219
|
+
* @param {number} length
|
|
220
|
+
*/
|
|
221
|
+
function node (value, root, parent, type, props, children, length, siblings) {
|
|
222
|
+
return {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: '', siblings: siblings}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* @param {object} root
|
|
227
|
+
* @param {object} props
|
|
228
|
+
* @return {object}
|
|
229
|
+
*/
|
|
230
|
+
function copy (root, props) {
|
|
231
|
+
return assign(node('', null, null, '', null, null, 0, root.siblings), root, {length: -root.length}, props)
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* @param {object} root
|
|
236
|
+
*/
|
|
237
|
+
function lift (root) {
|
|
238
|
+
while (root.root)
|
|
239
|
+
root = copy(root.root, {children: [root]});
|
|
240
|
+
|
|
241
|
+
append(root, root.siblings);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* @return {number}
|
|
246
|
+
*/
|
|
247
|
+
function char () {
|
|
248
|
+
return character
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @return {number}
|
|
253
|
+
*/
|
|
254
|
+
function prev () {
|
|
255
|
+
character = position > 0 ? charat(characters, --position) : 0;
|
|
256
|
+
|
|
257
|
+
if (column--, character === 10)
|
|
258
|
+
column = 1, line--;
|
|
259
|
+
|
|
260
|
+
return character
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @return {number}
|
|
265
|
+
*/
|
|
266
|
+
function next () {
|
|
267
|
+
character = position < length ? charat(characters, position++) : 0;
|
|
268
|
+
|
|
269
|
+
if (column++, character === 10)
|
|
270
|
+
column = 1, line++;
|
|
271
|
+
|
|
272
|
+
return character
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* @return {number}
|
|
277
|
+
*/
|
|
278
|
+
function peek () {
|
|
279
|
+
return charat(characters, position)
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* @return {number}
|
|
284
|
+
*/
|
|
285
|
+
function caret () {
|
|
286
|
+
return position
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* @param {number} begin
|
|
291
|
+
* @param {number} end
|
|
292
|
+
* @return {string}
|
|
293
|
+
*/
|
|
294
|
+
function slice (begin, end) {
|
|
295
|
+
return substr(characters, begin, end)
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* @param {number} type
|
|
300
|
+
* @return {number}
|
|
301
|
+
*/
|
|
302
|
+
function token (type) {
|
|
303
|
+
switch (type) {
|
|
304
|
+
// \0 \t \n \r \s whitespace token
|
|
305
|
+
case 0: case 9: case 10: case 13: case 32:
|
|
306
|
+
return 5
|
|
307
|
+
// ! + , / > @ ~ isolate token
|
|
308
|
+
case 33: case 43: case 44: case 47: case 62: case 64: case 126:
|
|
309
|
+
// ; { } breakpoint token
|
|
310
|
+
case 59: case 123: case 125:
|
|
311
|
+
return 4
|
|
312
|
+
// : accompanied token
|
|
313
|
+
case 58:
|
|
314
|
+
return 3
|
|
315
|
+
// " ' ( [ opening delimit token
|
|
316
|
+
case 34: case 39: case 40: case 91:
|
|
317
|
+
return 2
|
|
318
|
+
// ) ] closing delimit token
|
|
319
|
+
case 41: case 93:
|
|
320
|
+
return 1
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
return 0
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* @param {string} value
|
|
328
|
+
* @return {any[]}
|
|
329
|
+
*/
|
|
330
|
+
function alloc (value) {
|
|
331
|
+
return line = column = 1, length = strlen(characters = value), position = 0, []
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* @param {any} value
|
|
336
|
+
* @return {any}
|
|
337
|
+
*/
|
|
338
|
+
function dealloc (value) {
|
|
339
|
+
return characters = '', value
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* @param {number} type
|
|
344
|
+
* @return {string}
|
|
345
|
+
*/
|
|
346
|
+
function delimit (type) {
|
|
347
|
+
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* @param {number} type
|
|
352
|
+
* @return {string}
|
|
353
|
+
*/
|
|
354
|
+
function whitespace (type) {
|
|
355
|
+
while (character = peek())
|
|
356
|
+
if (character < 33)
|
|
357
|
+
next();
|
|
358
|
+
else
|
|
359
|
+
break
|
|
360
|
+
|
|
361
|
+
return token(type) > 2 || token(character) > 3 ? '' : ' '
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* @param {number} index
|
|
366
|
+
* @param {number} count
|
|
367
|
+
* @return {string}
|
|
368
|
+
*/
|
|
369
|
+
function escaping (index, count) {
|
|
370
|
+
while (--count && next())
|
|
371
|
+
// not 0-9 A-F a-f
|
|
372
|
+
if (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))
|
|
373
|
+
break
|
|
374
|
+
|
|
375
|
+
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* @param {number} type
|
|
380
|
+
* @return {number}
|
|
381
|
+
*/
|
|
382
|
+
function delimiter (type) {
|
|
383
|
+
while (next())
|
|
384
|
+
switch (character) {
|
|
385
|
+
// ] ) " '
|
|
386
|
+
case type:
|
|
387
|
+
return position
|
|
388
|
+
// " '
|
|
389
|
+
case 34: case 39:
|
|
390
|
+
if (type !== 34 && type !== 39)
|
|
391
|
+
delimiter(character);
|
|
392
|
+
break
|
|
393
|
+
// (
|
|
394
|
+
case 40:
|
|
395
|
+
if (type === 41)
|
|
396
|
+
delimiter(type);
|
|
397
|
+
break
|
|
398
|
+
// \
|
|
399
|
+
case 92:
|
|
400
|
+
next();
|
|
401
|
+
break
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
return position
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* @param {number} type
|
|
409
|
+
* @param {number} index
|
|
410
|
+
* @return {number}
|
|
411
|
+
*/
|
|
412
|
+
function commenter (type, index) {
|
|
413
|
+
while (next())
|
|
414
|
+
// //
|
|
415
|
+
if (type + character === 47 + 10)
|
|
416
|
+
break
|
|
417
|
+
// /*
|
|
418
|
+
else if (type + character === 42 + 42 && peek() === 47)
|
|
419
|
+
break
|
|
420
|
+
|
|
421
|
+
return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* @param {number} index
|
|
426
|
+
* @return {string}
|
|
427
|
+
*/
|
|
428
|
+
function identifier (index) {
|
|
429
|
+
while (!token(peek()))
|
|
430
|
+
next();
|
|
431
|
+
|
|
432
|
+
return slice(index, position)
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* @param {string} value
|
|
437
|
+
* @return {object[]}
|
|
438
|
+
*/
|
|
439
|
+
function compile (value) {
|
|
440
|
+
return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* @param {string} value
|
|
445
|
+
* @param {object} root
|
|
446
|
+
* @param {object?} parent
|
|
447
|
+
* @param {string[]} rule
|
|
448
|
+
* @param {string[]} rules
|
|
449
|
+
* @param {string[]} rulesets
|
|
450
|
+
* @param {number[]} pseudo
|
|
451
|
+
* @param {number[]} points
|
|
452
|
+
* @param {string[]} declarations
|
|
453
|
+
* @return {object}
|
|
454
|
+
*/
|
|
455
|
+
function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
456
|
+
var index = 0;
|
|
457
|
+
var offset = 0;
|
|
458
|
+
var length = pseudo;
|
|
459
|
+
var atrule = 0;
|
|
460
|
+
var property = 0;
|
|
461
|
+
var previous = 0;
|
|
462
|
+
var variable = 1;
|
|
463
|
+
var scanning = 1;
|
|
464
|
+
var ampersand = 1;
|
|
465
|
+
var character = 0;
|
|
466
|
+
var type = '';
|
|
467
|
+
var props = rules;
|
|
468
|
+
var children = rulesets;
|
|
469
|
+
var reference = rule;
|
|
470
|
+
var characters = type;
|
|
471
|
+
|
|
472
|
+
while (scanning)
|
|
473
|
+
switch (previous = character, character = next()) {
|
|
474
|
+
// (
|
|
475
|
+
case 40:
|
|
476
|
+
if (previous != 108 && charat(characters, length - 1) == 58) {
|
|
477
|
+
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f', abs(index ? points[index - 1] : 0)) != -1)
|
|
478
|
+
ampersand = -1;
|
|
479
|
+
break
|
|
480
|
+
}
|
|
481
|
+
// " ' [
|
|
482
|
+
case 34: case 39: case 91:
|
|
483
|
+
characters += delimit(character);
|
|
484
|
+
break
|
|
485
|
+
// \t \n \r \s
|
|
486
|
+
case 9: case 10: case 13: case 32:
|
|
487
|
+
characters += whitespace(previous);
|
|
488
|
+
break
|
|
489
|
+
// \
|
|
490
|
+
case 92:
|
|
491
|
+
characters += escaping(caret() - 1, 7);
|
|
492
|
+
continue
|
|
493
|
+
// /
|
|
494
|
+
case 47:
|
|
495
|
+
switch (peek()) {
|
|
496
|
+
case 42: case 47:
|
|
497
|
+
append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
|
|
498
|
+
break
|
|
499
|
+
default:
|
|
500
|
+
characters += '/';
|
|
501
|
+
}
|
|
502
|
+
break
|
|
503
|
+
// {
|
|
504
|
+
case 123 * variable:
|
|
505
|
+
points[index++] = strlen(characters) * ampersand;
|
|
506
|
+
// } ; \0
|
|
507
|
+
case 125 * variable: case 59: case 0:
|
|
508
|
+
switch (character) {
|
|
509
|
+
// \0 }
|
|
510
|
+
case 0: case 125: scanning = 0;
|
|
511
|
+
// ;
|
|
512
|
+
case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
|
|
513
|
+
if (property > 0 && (strlen(characters) - length))
|
|
514
|
+
append(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations);
|
|
515
|
+
break
|
|
516
|
+
// @ ;
|
|
517
|
+
case 59: characters += ';';
|
|
518
|
+
// { rule/at-rule
|
|
519
|
+
default:
|
|
520
|
+
append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
|
|
521
|
+
|
|
522
|
+
if (character === 123)
|
|
523
|
+
if (offset === 0)
|
|
524
|
+
parse(characters, root, reference, reference, props, rulesets, length, points, children);
|
|
525
|
+
else
|
|
526
|
+
switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
|
|
527
|
+
// d l m s
|
|
528
|
+
case 100: case 108: case 109: case 115:
|
|
529
|
+
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children);
|
|
530
|
+
break
|
|
531
|
+
default:
|
|
532
|
+
parse(characters, reference, reference, reference, [''], children, 0, points, children);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
|
|
537
|
+
break
|
|
538
|
+
// :
|
|
539
|
+
case 58:
|
|
540
|
+
length = 1 + strlen(characters), property = previous;
|
|
541
|
+
default:
|
|
542
|
+
if (variable < 1)
|
|
543
|
+
if (character == 123)
|
|
544
|
+
--variable;
|
|
545
|
+
else if (character == 125 && variable++ == 0 && prev() == 125)
|
|
546
|
+
continue
|
|
547
|
+
|
|
548
|
+
switch (characters += from(character), character * variable) {
|
|
549
|
+
// &
|
|
550
|
+
case 38:
|
|
551
|
+
ampersand = offset > 0 ? 1 : (characters += '\f', -1);
|
|
552
|
+
break
|
|
553
|
+
// ,
|
|
554
|
+
case 44:
|
|
555
|
+
points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
|
|
556
|
+
break
|
|
557
|
+
// @
|
|
558
|
+
case 64:
|
|
559
|
+
// -
|
|
560
|
+
if (peek() === 45)
|
|
561
|
+
characters += delimit(next());
|
|
562
|
+
|
|
563
|
+
atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
|
|
564
|
+
break
|
|
565
|
+
// -
|
|
566
|
+
case 45:
|
|
567
|
+
if (previous === 45 && strlen(characters) == 2)
|
|
568
|
+
variable = 0;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
return rulesets
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* @param {string} value
|
|
577
|
+
* @param {object} root
|
|
578
|
+
* @param {object?} parent
|
|
579
|
+
* @param {number} index
|
|
580
|
+
* @param {number} offset
|
|
581
|
+
* @param {string[]} rules
|
|
582
|
+
* @param {number[]} points
|
|
583
|
+
* @param {string} type
|
|
584
|
+
* @param {string[]} props
|
|
585
|
+
* @param {string[]} children
|
|
586
|
+
* @param {number} length
|
|
587
|
+
* @param {object[]} siblings
|
|
588
|
+
* @return {object}
|
|
589
|
+
*/
|
|
590
|
+
function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
|
|
591
|
+
var post = offset - 1;
|
|
592
|
+
var rule = offset === 0 ? rules : [''];
|
|
593
|
+
var size = sizeof(rule);
|
|
594
|
+
|
|
595
|
+
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
596
|
+
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
|
|
597
|
+
if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x])))
|
|
598
|
+
props[k++] = z;
|
|
599
|
+
|
|
600
|
+
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings)
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* @param {number} value
|
|
605
|
+
* @param {object} root
|
|
606
|
+
* @param {object?} parent
|
|
607
|
+
* @param {object[]} siblings
|
|
608
|
+
* @return {object}
|
|
609
|
+
*/
|
|
610
|
+
function comment (value, root, parent, siblings) {
|
|
611
|
+
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings)
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* @param {string} value
|
|
616
|
+
* @param {object} root
|
|
617
|
+
* @param {object?} parent
|
|
618
|
+
* @param {number} length
|
|
619
|
+
* @param {object[]} siblings
|
|
620
|
+
* @return {object}
|
|
621
|
+
*/
|
|
622
|
+
function declaration (value, root, parent, length, siblings) {
|
|
623
|
+
return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings)
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* @param {string} value
|
|
628
|
+
* @param {number} length
|
|
629
|
+
* @param {object[]} children
|
|
630
|
+
* @return {string}
|
|
631
|
+
*/
|
|
632
|
+
function prefix (value, length, children) {
|
|
633
|
+
switch (hash(value, length)) {
|
|
634
|
+
// color-adjust
|
|
635
|
+
case 5103:
|
|
636
|
+
return WEBKIT + 'print-' + value + value
|
|
637
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
638
|
+
case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921:
|
|
639
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
640
|
+
case 5572: case 6356: case 5844: case 3191: case 6645: case 3005:
|
|
641
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
642
|
+
case 6391: case 5879: case 5623: case 6135: case 4599: case 4855:
|
|
643
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
644
|
+
case 4215: case 6389: case 5109: case 5365: case 5621: case 3829:
|
|
645
|
+
return WEBKIT + value + value
|
|
646
|
+
// tab-size
|
|
647
|
+
case 4789:
|
|
648
|
+
return MOZ + value + value
|
|
649
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
650
|
+
case 5349: case 4246: case 4810: case 6968: case 2756:
|
|
651
|
+
return WEBKIT + value + MOZ + value + MS + value + value
|
|
652
|
+
// writing-mode
|
|
653
|
+
case 5936:
|
|
654
|
+
switch (charat(value, length + 11)) {
|
|
655
|
+
// vertical-l(r)
|
|
656
|
+
case 114:
|
|
657
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value
|
|
658
|
+
// vertical-r(l)
|
|
659
|
+
case 108:
|
|
660
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value
|
|
661
|
+
// horizontal(-)tb
|
|
662
|
+
case 45:
|
|
663
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value
|
|
664
|
+
// default: fallthrough to below
|
|
665
|
+
}
|
|
666
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
667
|
+
case 6828: case 4268: case 2903:
|
|
668
|
+
return WEBKIT + value + MS + value + value
|
|
669
|
+
// order
|
|
670
|
+
case 6165:
|
|
671
|
+
return WEBKIT + value + MS + 'flex-' + value + value
|
|
672
|
+
// align-items
|
|
673
|
+
case 5187:
|
|
674
|
+
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value
|
|
675
|
+
// align-self
|
|
676
|
+
case 5443:
|
|
677
|
+
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/g, '') + (!match(value, /flex-|baseline/) ? MS + 'grid-row-' + replace(value, /flex-|-self/g, '') : '') + value
|
|
678
|
+
// align-content
|
|
679
|
+
case 4675:
|
|
680
|
+
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/g, '') + value
|
|
681
|
+
// flex-shrink
|
|
682
|
+
case 5548:
|
|
683
|
+
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value
|
|
684
|
+
// flex-basis
|
|
685
|
+
case 5292:
|
|
686
|
+
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value
|
|
687
|
+
// flex-grow
|
|
688
|
+
case 6060:
|
|
689
|
+
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value
|
|
690
|
+
// transition
|
|
691
|
+
case 4554:
|
|
692
|
+
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value
|
|
693
|
+
// cursor
|
|
694
|
+
case 6187:
|
|
695
|
+
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value
|
|
696
|
+
// background, background-image
|
|
697
|
+
case 5495: case 3959:
|
|
698
|
+
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1')
|
|
699
|
+
// justify-content
|
|
700
|
+
case 4968:
|
|
701
|
+
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value
|
|
702
|
+
// justify-self
|
|
703
|
+
case 4200:
|
|
704
|
+
if (!match(value, /flex-|baseline/)) return MS + 'grid-column-align' + substr(value, length) + value
|
|
705
|
+
break
|
|
706
|
+
// grid-template-(columns|rows)
|
|
707
|
+
case 2592: case 3360:
|
|
708
|
+
return MS + replace(value, 'template-', '') + value
|
|
709
|
+
// grid-(row|column)-start
|
|
710
|
+
case 4384: case 3616:
|
|
711
|
+
if (children && children.some(function (element, index) { return length = index, match(element.props, /grid-\w+-end/) })) {
|
|
712
|
+
return ~indexof(value + (children = children[length].value), 'span', 0) ? value : (MS + replace(value, '-start', '') + value + MS + 'grid-row-span:' + (~indexof(children, 'span', 0) ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ';')
|
|
713
|
+
}
|
|
714
|
+
return MS + replace(value, '-start', '') + value
|
|
715
|
+
// grid-(row|column)-end
|
|
716
|
+
case 4896: case 4128:
|
|
717
|
+
return (children && children.some(function (element) { return match(element.props, /grid-\w+-start/) })) ? value : MS + replace(replace(value, '-end', '-span'), 'span ', '') + value
|
|
718
|
+
// (margin|padding)-inline-(start|end)
|
|
719
|
+
case 4095: case 3583: case 4068: case 2532:
|
|
720
|
+
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value
|
|
721
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
722
|
+
case 8116: case 7059: case 5753: case 5535:
|
|
723
|
+
case 5445: case 5701: case 4933: case 4677:
|
|
724
|
+
case 5533: case 5789: case 5021: case 4765:
|
|
725
|
+
// stretch, max-content, min-content, fill-available
|
|
726
|
+
if (strlen(value) - 1 - length > 6)
|
|
727
|
+
switch (charat(value, length + 1)) {
|
|
728
|
+
// (m)ax-content, (m)in-content
|
|
729
|
+
case 109:
|
|
730
|
+
// -
|
|
731
|
+
if (charat(value, length + 4) !== 45)
|
|
732
|
+
break
|
|
733
|
+
// (f)ill-available, (f)it-content
|
|
734
|
+
case 102:
|
|
735
|
+
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value
|
|
736
|
+
// (s)tretch
|
|
737
|
+
case 115:
|
|
738
|
+
return ~indexof(value, 'stretch', 0) ? prefix(replace(value, 'stretch', 'fill-available'), length, children) + value : value
|
|
739
|
+
}
|
|
740
|
+
break
|
|
741
|
+
// grid-(column|row)
|
|
742
|
+
case 5152: case 5920:
|
|
743
|
+
return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (_, a, b, c, d, e, f) { return (MS + a + ':' + b + f) + (c ? (MS + a + '-span:' + (d ? e : +e - +b)) + f : '') + value })
|
|
744
|
+
// position: sticky
|
|
745
|
+
case 4949:
|
|
746
|
+
// stick(y)?
|
|
747
|
+
if (charat(value, length + 6) === 121)
|
|
748
|
+
return replace(value, ':', ':' + WEBKIT) + value
|
|
749
|
+
break
|
|
750
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
751
|
+
case 6444:
|
|
752
|
+
switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
|
|
753
|
+
// (inline-)?fle(x)
|
|
754
|
+
case 120:
|
|
755
|
+
return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value
|
|
756
|
+
// (inline-)?gri(d)
|
|
757
|
+
case 100:
|
|
758
|
+
return replace(value, ':', ':' + MS) + value
|
|
759
|
+
}
|
|
760
|
+
break
|
|
761
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
762
|
+
case 5719: case 2647: case 2135: case 3927: case 2391:
|
|
763
|
+
return replace(value, 'scroll-', 'scroll-snap-') + value
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
return value
|
|
767
|
+
}
|
|
150
768
|
|
|
769
|
+
/**
|
|
770
|
+
* @param {object[]} children
|
|
771
|
+
* @param {function} callback
|
|
772
|
+
* @return {string}
|
|
773
|
+
*/
|
|
774
|
+
function serialize (children, callback) {
|
|
775
|
+
var output = '';
|
|
776
|
+
|
|
777
|
+
for (var i = 0; i < children.length; i++)
|
|
778
|
+
output += callback(children[i], i, children, callback) || '';
|
|
779
|
+
|
|
780
|
+
return output
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* @param {object} element
|
|
785
|
+
* @param {number} index
|
|
786
|
+
* @param {object[]} children
|
|
787
|
+
* @param {function} callback
|
|
788
|
+
* @return {string}
|
|
789
|
+
*/
|
|
790
|
+
function stringify (element, index, children, callback) {
|
|
791
|
+
switch (element.type) {
|
|
792
|
+
case LAYER: if (element.children.length) break
|
|
793
|
+
case IMPORT: case DECLARATION: return element.return = element.return || element.value
|
|
794
|
+
case COMMENT: return ''
|
|
795
|
+
case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
|
|
796
|
+
case RULESET: if (!strlen(element.value = element.props.join(','))) return ''
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* @param {function[]} collection
|
|
804
|
+
* @return {function}
|
|
805
|
+
*/
|
|
806
|
+
function middleware (collection) {
|
|
807
|
+
var length = sizeof(collection);
|
|
808
|
+
|
|
809
|
+
return function (element, index, children, callback) {
|
|
810
|
+
var output = '';
|
|
811
|
+
|
|
812
|
+
for (var i = 0; i < length; i++)
|
|
813
|
+
output += collection[i](element, index, children, callback) || '';
|
|
814
|
+
|
|
815
|
+
return output
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* @param {function} callback
|
|
821
|
+
* @return {function}
|
|
822
|
+
*/
|
|
823
|
+
function rulesheet (callback) {
|
|
824
|
+
return function (element) {
|
|
825
|
+
if (!element.root)
|
|
826
|
+
if (element = element.return)
|
|
827
|
+
callback(element);
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* @param {object} element
|
|
833
|
+
* @param {number} index
|
|
834
|
+
* @param {object[]} children
|
|
835
|
+
* @param {function} callback
|
|
836
|
+
*/
|
|
837
|
+
function prefixer (element, index, children, callback) {
|
|
838
|
+
if (element.length > -1)
|
|
839
|
+
if (!element.return)
|
|
840
|
+
switch (element.type) {
|
|
841
|
+
case DECLARATION: element.return = prefix(element.value, element.length, children);
|
|
842
|
+
return
|
|
843
|
+
case KEYFRAMES:
|
|
844
|
+
return serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)
|
|
845
|
+
case RULESET:
|
|
846
|
+
if (element.length)
|
|
847
|
+
return combine(children = element.props, function (value) {
|
|
848
|
+
switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
|
|
849
|
+
// :read-(only|write)
|
|
850
|
+
case ':read-only': case ':read-write':
|
|
851
|
+
lift(copy(element, {props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]}));
|
|
852
|
+
lift(copy(element, {props: [value]}));
|
|
853
|
+
assign(element, {props: filter(children, callback)});
|
|
854
|
+
break
|
|
855
|
+
// :placeholder
|
|
856
|
+
case '::placeholder':
|
|
857
|
+
lift(copy(element, {props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]}));
|
|
858
|
+
lift(copy(element, {props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]}));
|
|
859
|
+
lift(copy(element, {props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]}));
|
|
860
|
+
lift(copy(element, {props: [value]}));
|
|
861
|
+
assign(element, {props: filter(children, callback)});
|
|
862
|
+
break
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
return ''
|
|
866
|
+
})
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
var unitlessKeys = {
|
|
871
|
+
animationIterationCount: 1,
|
|
872
|
+
borderImageOutset: 1,
|
|
873
|
+
borderImageSlice: 1,
|
|
874
|
+
borderImageWidth: 1,
|
|
875
|
+
boxFlex: 1,
|
|
876
|
+
boxFlexGroup: 1,
|
|
877
|
+
boxOrdinalGroup: 1,
|
|
878
|
+
columnCount: 1,
|
|
879
|
+
columns: 1,
|
|
880
|
+
flex: 1,
|
|
881
|
+
flexGrow: 1,
|
|
882
|
+
flexPositive: 1,
|
|
883
|
+
flexShrink: 1,
|
|
884
|
+
flexNegative: 1,
|
|
885
|
+
flexOrder: 1,
|
|
886
|
+
gridRow: 1,
|
|
887
|
+
gridRowEnd: 1,
|
|
888
|
+
gridRowSpan: 1,
|
|
889
|
+
gridRowStart: 1,
|
|
890
|
+
gridColumn: 1,
|
|
891
|
+
gridColumnEnd: 1,
|
|
892
|
+
gridColumnSpan: 1,
|
|
893
|
+
gridColumnStart: 1,
|
|
894
|
+
msGridRow: 1,
|
|
895
|
+
msGridRowSpan: 1,
|
|
896
|
+
msGridColumn: 1,
|
|
897
|
+
msGridColumnSpan: 1,
|
|
898
|
+
fontWeight: 1,
|
|
899
|
+
lineHeight: 1,
|
|
900
|
+
opacity: 1,
|
|
901
|
+
order: 1,
|
|
902
|
+
orphans: 1,
|
|
903
|
+
tabSize: 1,
|
|
904
|
+
widows: 1,
|
|
905
|
+
zIndex: 1,
|
|
906
|
+
zoom: 1,
|
|
907
|
+
WebkitLineClamp: 1,
|
|
908
|
+
// SVG-related properties
|
|
909
|
+
fillOpacity: 1,
|
|
910
|
+
floodOpacity: 1,
|
|
911
|
+
stopOpacity: 1,
|
|
912
|
+
strokeDasharray: 1,
|
|
913
|
+
strokeDashoffset: 1,
|
|
914
|
+
strokeMiterlimit: 1,
|
|
915
|
+
strokeOpacity: 1,
|
|
916
|
+
strokeWidth: 1
|
|
917
|
+
};
|
|
918
|
+
|
|
919
|
+
var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.8",g="/*!sc*/\n",S="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var o=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},useRef(),a&&!N.has(s)&&(console.warn(s),N.add(s));}catch(e){E.test(e.message)&&N.delete(s);}finally{console.error=i;}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z=function(e){return M(F,e)};function $(e){return x(z(e)>>>0)}function B(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G="function"==typeof Symbol&&Symbol.for,Y=G?Symbol.for("react.memo"):60115,q=G?Symbol.for("react.forward_ref"):60112,W={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J=((V={})[q]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:W;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(e,t,n){if("string"!=typeof t){if(ne){var o=te(t);o&&o!==ne&&oe(e,o,n);}var r=K(t);Q&&(r=r.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function re(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=!1),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le(e[o],t[o]);else if(ce(t))for(var o in t)e[o]=le(e[o],t[o]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}var pe="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(de.apply(void 0,__spreadArray([pe[t]],n,!1)).trim())}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),me=new Map,ye=new Map,ve=1,ge=function(e){if(me.has(e))return me.get(e);for(;ye.has(ve);)ve++;var t=ve++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw he(16,"".concat(t));return me.set(e,t),ye.set(t,e),t},Se=function(e,t){ve=t+1,me.set(e,t),ye.set(t,e);},we="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),be=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ee=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Ne=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(be);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(Se(u,l),Ee(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}};function Pe(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var _e=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m),o.setAttribute(y,v);var i=Pe();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ce=function(){function e(e){this.element=_e(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ie=function(){function e(e){this.element=_e(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ae=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Oe=S,De={isServer:!S,useCSSOMInjection:!w},Re=function(){function e(e,n,o){void 0===e&&(e=C),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},De),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S&&Oe&&(Oe=!1,function(e){for(var t=document.querySelectorAll(we),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m&&(Ne(e,r),r.parentNode&&r.parentNode.removeChild(r));}}(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ye.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return ge(e)},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Ae(n):t?new Ce(n):new Ie(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(ge(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(ge(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(ge(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),Te=/&/g,ke=/^\s*\/\/.*$/gm;function je(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=je(e.children,t)),e})}function xe(e){var t,n,o,r=void 0===e?C:e,s=r.options,i=void 0===s?C:s,a=r.plugins,c=void 0===a?_:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Te,n).replace(o,l));}),i.prefix&&u.push(prefixer),u.push(stringify);var p=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(ke,""),l=compile(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=je(l,i.namespace));var p=[];return serialize(l,middleware(u.concat(rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||he(15),M(e,t.name)},F).toString():"",p}var Ve=new Re,Fe=xe(),Me=o.createContext({shouldForwardProp:void 0,styleSheet:Ve,stylis:Fe});Me.Consumer;o.createContext(void 0);function Be(){return useContext(Me)}var Ge=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Fe);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=Fe),this.name+e.hash},e}(),Ye=function(e){return e>="A"&&e<="Z"};function qe(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;Ye(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var We=function(e){return null==e||!1===e||""===e},He=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!We(i)&&(Array.isArray(i)&&i.isCss||re(i)?r.push("".concat(qe(s),":"),i,";"):ce(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],He(i),!1),["}"],!1)):r.push("".concat(qe(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Ue(e,t,n,o){if(We(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(re(e)){if(!re(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof Ge||ce(r)||null===r||console.error("".concat(B(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Ue(r,t,n,o)}var s;return e instanceof Ge?n?(e.inject(n,o),[e.getName(o)]):[e]:ce(e)?He(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Ue(e,t,n,o)})):[e.toString()]}function Je(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re(n)&&!se(n))return !1}return !0}var Xe=z(v),Ze=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Je(e),this.componentId=t,this.baseHash=M(Xe,t),this.baseStyle=n,Re.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie(o,this.staticRulesId);else {var r=ae(Ue(this.rules,e,t,n)),s=x(M(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie(o,s),this.staticRulesId=s;}else {for(var a=M(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M(a,u));else if(u){var p=ae(Ue(u,e,t,n));a=M(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie(o,d);}}return o},e}(),Ke=o.createContext(void 0);Ke.Consumer;var nt={},ot=new Set;function rt(e,r,s){var i=se(e),a=e,c=!L(e),p=r.attrs,d=void 0===p?_:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);nt[n]=(nt[n]||0)+1;var o="".concat(n,"-").concat($(v+n+nt[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return L(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Ze(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=o.useContext(Ke),m=Be(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&useDebugValue(d);var v=I(r,f,c)||C,g=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?ie(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!==process.env.NODE_ENV||isPropValid(b)||ot.has(b)||!A.has(S)||(ot.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Be(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&useDebugValue(o),o}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L(S)&&!A.has(S)?"class":"className"]=N,w.ref=s,createElement(S,w)}(D,e,r)}O.displayName=y;var D=o.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le(e,r[o],!0);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P(y,g),D.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={};}}}(y,g)),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&oe(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function st(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var it=function(e){return Object.assign(e,{isCss:!0})};function at(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re(t)||ce(t))return it(Ue(st(_,__spreadArray([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Ue(r):it(Ue(st(r,n)))}function ct(n,o,r){if(void 0===r&&(r=C),!o)throw he(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,at.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ct(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ct(n,o,__assign(__assign({},r),e))},s}var lt=function(e){return ct(rt,e)},ut=lt;A.forEach(function(e){ut[e]=lt(e);});"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var gt="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[gt]||(window[gt]=0),1===window[gt]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[gt]+=1);
|
|
920
|
+
|
|
921
|
+
const BaseStyle = at `
|
|
922
|
+
position: relative;
|
|
151
923
|
display: inline-flex;
|
|
152
924
|
flex-flow: row nowrap;
|
|
153
925
|
gap: 0.4rem;
|
|
@@ -156,678 +928,60 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as o from
|
|
|
156
928
|
border-radius: var(--border-radius--medium);
|
|
157
929
|
text-decoration: none;
|
|
158
930
|
white-space: nowrap;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
`,Un=Qt`
|
|
174
|
-
padding: var(--spacing--small) var(--spacing--medium);
|
|
175
|
-
font-size: 0.9rem;
|
|
176
|
-
font-weight: 600;
|
|
177
|
-
`,Xn=Qt`
|
|
178
|
-
padding: var(--spacing--xsmall) var(--spacing--small);
|
|
179
|
-
font-size: 0.8rem;
|
|
180
|
-
font-weight: 500;
|
|
181
|
-
`,Yn=Qt`
|
|
182
|
-
background-color: var(--color--primary);
|
|
183
|
-
color: var(--color--white);
|
|
184
|
-
border: none;
|
|
185
|
-
|
|
186
|
-
&:hover {
|
|
187
|
-
background-color: var(--color--primary-light);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
&:disabled {
|
|
191
|
-
background-color: #767676;
|
|
192
|
-
}
|
|
193
|
-
`,Kn=Qt`
|
|
194
|
-
background-color: var(--color--white);
|
|
195
|
-
color: var(--color--primary);
|
|
196
|
-
border: 1px solid var(--color--primary);
|
|
197
|
-
box-sizing: border-box;
|
|
198
|
-
|
|
199
|
-
&:hover {
|
|
200
|
-
background-color: var(--color--grey-lightest);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
&:disabled {
|
|
204
|
-
background-color: var(--color--white);
|
|
205
|
-
color: #767676;
|
|
206
|
-
border-color: #767676;
|
|
207
|
-
}
|
|
208
|
-
`,Zn=Qt`
|
|
209
|
-
background-color: var(--color--red);
|
|
210
|
-
color: white;
|
|
211
|
-
border: none;
|
|
212
|
-
|
|
213
|
-
&:hover {
|
|
214
|
-
background-color: var(--color--red-dark);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
&:disabled {
|
|
218
|
-
background-color: #767676;
|
|
219
|
-
}
|
|
220
|
-
`,Jn=Qt`
|
|
221
|
-
background-color: transparent;
|
|
222
|
-
color: var(--color--primary-light);
|
|
223
|
-
border: 1px solid var(--color--primary-light);
|
|
224
|
-
box-sizing: border-box;
|
|
225
|
-
|
|
226
|
-
&:hover {
|
|
227
|
-
color: var(--color--primary-tint);
|
|
228
|
-
border-color: var(--color--primary-tint);
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
&:disabled {
|
|
232
|
-
color: #767676;
|
|
233
|
-
border-color: #767676;
|
|
234
|
-
}
|
|
235
|
-
`,Qn=Qt`
|
|
236
|
-
background-color: transparent;
|
|
237
|
-
color: var(--color--primary-light);
|
|
238
|
-
border: none;
|
|
239
|
-
box-sizing: border-box;
|
|
240
|
-
|
|
241
|
-
&:hover {
|
|
242
|
-
color: var(--color--primary-tint);
|
|
243
|
-
border-color: var(--color--primary-tint);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
&:disabled {
|
|
247
|
-
color: #767676;
|
|
248
|
-
border-color: #767676;
|
|
249
|
-
}
|
|
250
|
-
`,eo=Qt`
|
|
251
|
-
background-color: var(--color--debug);
|
|
252
|
-
color: var(--color--white);
|
|
253
|
-
border: none;
|
|
254
|
-
|
|
255
|
-
&:hover {
|
|
256
|
-
background-color: var(--color--debug-light);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
&:disabled {
|
|
260
|
-
background-color: var(--color--debug-very-light);
|
|
261
|
-
}
|
|
262
|
-
`,to=nn.button`
|
|
263
|
-
${Wn}
|
|
264
|
-
|
|
265
|
-
${({size:e})=>"small"===e?Xn:Un}
|
|
266
|
-
|
|
267
|
-
${({kind:e})=>"secondary"===e?Kn:"danger"===e?Zn:"ghost"===e?Jn:"basic"===e?Qn:"debug"===e?eo:Yn}
|
|
268
|
-
|
|
269
|
-
${({$isSubmitting:e})=>e?Qt`
|
|
270
|
-
padding-left: 33px;
|
|
271
|
-
pointer-events: none;
|
|
272
|
-
`:Qt``}
|
|
273
|
-
`,no=nn.span`
|
|
274
|
-
position: absolute;
|
|
275
|
-
left: 10px;
|
|
276
|
-
top: calc(50% - 8px);
|
|
277
|
-
|
|
278
|
-
svg {
|
|
279
|
-
display: inline;
|
|
280
|
-
width: 16px;
|
|
281
|
-
height: 16px;
|
|
282
|
-
}
|
|
283
|
-
`;function oo({children:o,...r}){const{type:i,kind:l}=r;if("link"===i)return e(n,{children:" Fix Link"});if("submit"===i){const{hideSpinner:n=!1,isSubmitting:i}=r;return t(to,{$isSubmitting:i,...r,children:[i&&!n&&e(no,{children:e($n,{strokeWidth:32,color:"primary"===l?"var(--color--white)":"inherit"})}),o]})}return e(to,{...r,children:o})}var ro=Object.freeze({__proto__:null,Button:oo,HTMLButton:to});function io(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"209",height:"20","aria-labelledby":"HarperCollinsLogo",role:"img",children:[e("title",{id:"HarperCollinsLogo",children:"HarperCollins Publishers Logo"}),e("use",{fill:"#FFF",xlinkHref:"#path0_fill"}),e("defs",{children:e("path",{id:"path0_fill",fillRule:"evenodd",d:"M7.432 1.26C7.617.744 7.4.184 7.141.011V0c.873.182 1.656 1.272 1.657 2.512.001.81-.466 1.546-.919 2.257-.437.687-.86 1.352-.83 2.039h.012c.181-.814.857-1.488 1.523-2.153.903-.9 1.789-1.783 1.408-2.976l.007-.002c.897.557 1.332 2.066 1.454 3.23h.008c.207-.633.795-1.14 1.347-1.615.215-.186.425-.367.604-.548.227-.23.404-.46.48-.703h.008v6.01H0v-3.08c.01-.916.857-1.365 1.67-1.797.822-.435 1.609-.853 1.472-1.714l.006-.012c.61.922.278 1.768-.012 2.507l-.003.007-.009.024a9.85 9.85 0 0 0-.137.364l-.035.105-.028.093-.016.06c-.008.03-.014.06-.02.091-.042.2-.048.387.01.564h.01c.455-1.64 1.612-2.113 2.658-2.54.82-.336 1.572-.643 1.866-1.463zM2.405 8.421c-.813.741-1.647 1.084-2.405.8v5.51h13.899V8.92c-1.177 1.305-2.604.743-2.461-.348l-.008-.002c-2.165 2.348-3.396 1.03-3.055.07l-.005-.007c-1.967 2.21-3.206.915-2.622-.188L5.74 8.44c-2.489 2.766-4.06 1.75-3.327-.016l-.008-.003zm16.114-5.714c1.728.017 1.866.637 1.866 1.495v9.171c0 .931-.864 1.004-1.787 1.004l-.138.09v.402c.098.11.274.11.413.11.089 0 .178-.002.268-.004l.158-.005.19-.008.285-.015.228-.014.208-.012c.309-.018.617-.033.92-.033.342 0 .683.016 1.024.035l.188.01.3.017.28.013c.208.01.416.016.623.016.434 0 .63-.019.63-.128v-.273c0-.164-.06-.201-.276-.201-1.452 0-1.747-.255-1.747-1.296V8.47h8.423v4.267c0 1.276-.039 1.64-1.924 1.64l-.1.091v.401c0 .074.1.11.61.11.237 0 1.453-.09 2.179-.09.34 0 .679.017 1.017.036.448.025.894.054 1.34.054.53 0 .61-.055.61-.127v-.123a1.107 1.107 0 0 0-.033-.301c-.01-.031-.026-.05-.046-.05-1.12 0-1.885-.11-1.885-1.422V3.928c0-1.057.51-1.221 1.53-1.221.17 0 .302 0 .382-.029.058-.02.09-.057.09-.118v-.347l-.078-.108c-.57.054-1.08.09-2.337.09a60.75 60.75 0 0 1-3.102-.09l-.098.09v.22c0 .111.01.18.048.223.037.042.1.06.206.069 1.591.108 1.591.381 1.591 1.64v3.41h-8.423V3.655c0-.894.805-.948 1.608-.948l.152-.002.085-.003.068-.005.036-.004a.884.884 0 0 0 .091-.014c.076-.017.12-.043.12-.082v-.292c0-.2-.099-.2-.51-.2-.23 0-.454.007-.674.016-.204.009-.404.02-.603.031-.392.022-.774.044-1.158.044-.473 0-1.035-.027-1.543-.052l-.317-.015a17.76 17.76 0 0 0-.752-.024c-.157 0-.334.017-.334.144v.31l.098.148zm21.3 10.407l-.177.164-.099.088c-.48.43-1.104.988-1.747.988-.648 0-.904-.93-.904-1.42 0-.477.707-.821.983-.932l1.944-.822v1.934zM37.266 11.6l2.572-.929v-.876c0-1.003-.137-1.768-1.57-1.768-.532 0-1.513.145-1.513.674 0 .128.04.311.099.42l-1.237.656a1.407 1.407 0 0 1-.119-.547c0-.582.629-1.039 1.041-1.259l1.768-.947c.235-.128.335-.182.411-.182 1.63 0 2.475.73 2.475 2.224v3.867c0 .382 0 1.148.63 1.148.371 0 .45-.146.705-.529l.373.128c-.236.876-.727 1.585-1.57 1.585-1.334 0-1.474-1.147-1.454-1.603-.746.71-1.729 1.603-2.887 1.603-1.138 0-1.727-1.366-1.727-2.188 0-.309.373-.892 2.003-1.477zm10.855 2.9c-1.492 0-1.492-.692-1.492-1.422V9.632l.295-.345c.393-.457 1.001-1.077 1.474-1.077.302 0 .5.087.694.17.075.033.15.066.228.093.115.038.24.065.391.065.413 0 .807-.328.807-.711 0-.675-.413-.985-1.12-.985-1.046 0-1.869 1.017-2.479 1.772a15.78 15.78 0 0 1-.25.306l-.04-.036.04-1.878c0-.055-.04-.164-.156-.164a.906.906 0 0 0-.194.064c-.108.042-.252.102-.42.173l-.032.014-.022.01-.009.003-.149.063-1.453.623c-.216.09-.275.144-.275.253 0 .257.51.383.59.401.413.11.59.329.59.675v4.05c0 .983-.158 1.256-1.024 1.313-.392.017-.43.035-.43.217v.225a.127.127 0 0 0 .01.054c.01.022.028.031.066.031.374 0 .758-.022 1.14-.045l.522-.029a15.439 15.439 0 0 1 .617-.016c.188 0 .375.007.563.016l.468.03c.344.022.687.044 1.03.044a.19.19 0 0 0 .099-.02.09.09 0 0 0 .031-.031.236.236 0 0 0 .027-.116v-.087c0-.164-.018-.256-.137-.256zm5.548-5.779c.667-.438 1.296-.583 2.081-.583 1.884 0 2.906 1.659 2.906 3.262 0 1.861-1.041 3.157-3.043 3.157-.944 0-1.944-.31-1.944-1.259V8.721zm-3.083 10.705c1.492-.13 1.59-.146 1.59-1.624V9.688c0-.803-.039-.967-.451-1.132l-.707-.291c-.017 0-.027-.007-.033-.023-.006-.02-.006-.053-.006-.104 0-.137.016-.146.132-.207l.025-.013 2.395-1.076c.063.02.093.067.106.12a.569.569 0 0 1 .01.135c0 .347-.038.712.022 1.058.647-.31 2.277-1.203 2.945-1.203 2.14 0 3.671 1.987 3.671 3.83 0 3.5-3.827 4.594-5.34 4.594-.193 0-.383-.025-.572-.057l-.188-.033a5.572 5.572 0 0 0-.516-.074v2.825c0 1.242.333 1.316 1.747 1.389.052 0 .094.023.118.054.012.016.02.035.02.055v.182a.433.433 0 0 1-.02.132c-.018.052-.045.088-.08.088-.414 0-.825-.023-1.243-.046a23.9 23.9 0 0 0-1.328-.047c-.864 0-1.65.093-2.161.093-.176 0-.196-.073-.196-.257v-.11c0-.054.02-.144.06-.144zM64.862 7.444c-1.177 0-1.984 1.258-2.18 2.278L66 9.631c.254 0 .55-.344.55-.655 0-.894-.727-1.532-1.689-1.532zm3.32 2.699v-.565c0-1.515-1.239-2.736-2.987-2.736-2.572 0-4.142 2.462-4.142 4.614 0 2.024 1.628 3.81 3.633 3.81 1.57 0 2.75-.839 3.535-2.023l-.355-.238c-.982.821-1.493 1.077-2.219 1.077-1.786 0-3.102-1.587-3.102-3.174 0-.255 0-.51.04-.765h5.596zm3.713 2.935c0 .73 0 1.423 1.491 1.423.118 0 .138.092.138.256v.058l-.002.036a.273.273 0 0 1-.019.096c-.02.042-.06.064-.137.064l-.233-.003-.181-.006a26.08 26.08 0 0 1-.616-.036l-.296-.019-.197-.01c-.18-.01-.36-.016-.539-.016-.372 0-.755.023-1.138.045a19.608 19.608 0 0 1-1.168.043.075.075 0 0 1-.019-.006c-.015-.007-.023-.02-.027-.039l-.003-.026c-.002-.02-.002-.043-.002-.072V14.7c0-.182.04-.2.434-.217.864-.057 1.02-.33 1.02-1.313V9.12c0-.346-.176-.565-.59-.675-.077-.018-.587-.144-.587-.4 0-.11.059-.164.274-.254l1.453-.623.422-.178c.216-.09.366-.149.403-.149.118 0 .157.109.157.164l-.039 1.878.04.036c.079-.094.163-.198.25-.307.61-.755 1.433-1.77 2.48-1.77.705 0 1.118.31 1.118.984 0 .383-.393.711-.805.711-.258 0-.437-.077-.62-.157l-.094-.04-.073-.03-.064-.023a1.38 1.38 0 0 0-.465-.078c-.47 0-1.079.62-1.474 1.077l-.293.345v3.446zm13.057 1.884c1.786 0 3.377-.382 4.693-.985l.451-2.406c.058-.257-.235-.274-.393-.274h-.074l-.036.002c-.061.003-.113.012-.126.036-.235.674-.49 1.494-1.1 1.95-.785.582-2.277.968-3.436.968-3.3 0-5.891-2.829-5.891-5.818 0-3.282 2.141-6.147 5.891-6.147 1.729 0 3.456.876 4.025 2.134.142.31.258.537.347.685.085.14.146.21.184.21.08 0 .393 0 .393-.128l-.001-.034-.002-.028a2.015 2.015 0 0 0-.017-.123l-.015-.094-.012-.077-.012-.083-.255-2.114c-1.14-.638-3.397-1.057-4.713-1.057-4.024 0-8.01 2.662-8.01 6.655 0 4.195 4.26 6.728 8.11 6.728zm13.503-3.452c0 1.568-.766 3.154-2.69 3.154-2.021 0-2.945-2.133-2.945-3.737 0-1.75.588-3.483 2.572-3.483 2.395 0 3.063 2.243 3.063 4.066zm-3.14 3.755c-2.377 0-4.262-1.858-4.262-4.083 0-2.443 2.178-4.34 4.79-4.34 2.338 0 4.38 1.897 4.38 4.085 0 2.626-2.336 4.338-4.909 4.338zm9.57-.99c-1.354 0-1.354-.472-1.354-.874V3.463c0-.438.01-.88.019-1.323l.009-.406c.005-.307.01-.612.01-.915l-.001-.053-.001-.036a.539.539 0 0 0-.011-.08c-.015-.069-.05-.124-.125-.124a.296.296 0 0 0-.064.012 1.957 1.957 0 0 0-.207.07l-.023.01-1.434.493-.228.082c-.615.222-.773.279-.773.41 0 .137.244.227.519.327l.051.019c.766.292.766.365.766 1.514v9.846c0 .857-.315.967-1.178.967h-.125c-.074.003-.124.01-.156.034-.04.029-.053.083-.053.184v.165c0 .072.039.127.176.127.196 0 .392-.007.589-.017l.272-.015.199-.013c.354-.022.707-.045 1.061-.045.174 0 .429.016.724.035l.414.025c.295.017.607.03.904.03.039 0 .059-.09.059-.253l-.001-.072-.001-.054a.635.635 0 0 0-.007-.088c-.006-.027-.015-.043-.03-.043zm3.384-.874c0 .402 0 .875 1.355.875.039 0 .039.11.039.257l-.001.068-.004.058c-.009.083-.028.127-.055.127-.441 0-.915-.03-1.316-.055h-.004a13.313 13.313 0 0 0-.722-.035c-.353 0-.706.023-1.059.045-.138.01-.275.018-.413.025a14.44 14.44 0 0 1-.426.018h-.06l-.163.002c-.137 0-.177-.055-.177-.126v-.166c0-.056.004-.098.015-.129a.107.107 0 0 1 .034-.051c.046-.038.132-.038.286-.038.864 0 1.178-.11 1.178-.967V3.463c0-1.149 0-1.222-.766-1.514l-.054-.02c-.273-.1-.516-.19-.516-.326 0-.146.197-.2 1.003-.492l1.432-.493a1.627 1.627 0 0 1 .295-.092c.138 0 .138.183.138.293 0 .875-.039 1.768-.039 2.644v9.938zm6.616 1.251c-1.356 0-1.356-.473-1.356-.875V9.93c0-.439.01-.881.02-1.324.011-.442.021-.884.021-1.32 0-.11 0-.292-.138-.292-.058 0-.256.073-.294.092l-1.434.49-.216.079c-.626.225-.786.283-.786.415 0 .134.236.222.504.322l.065.025c.766.291.766.364.766 1.513v3.755c0 .857-.314.967-1.177.967-.276 0-.334 0-.334.219v.165c0 .071.039.127.176.127.173 0 .346-.006.52-.014l.201-.01.34-.021c.354-.023.707-.045 1.06-.045.174 0 .429.016.724.034.402.026.876.056 1.318.056.027 0 .045-.044.053-.125.004-.036.006-.08.006-.129 0-.076 0-.142-.005-.188-.005-.043-.015-.069-.034-.069zM112.726 1.58c.607 0 1.098.456 1.098 1.02 0 .565-.491 1.02-1.098 1.02-.609 0-1.101-.455-1.101-1.02 0-.564.492-1.02 1.101-1.02zm4.728 6.722c.197.036.374.254.374.6v4.632c0 .857-.314.967-1.178.967-.275 0-.334 0-.334.218v.166c0 .071.04.127.176.127.288 0 .577-.015.865-.033l.197-.012a16.59 16.59 0 0 1 1.059-.045c.175 0 .431.016.727.035.401.025.875.055 1.317.055.037 0 .057-.09.057-.255 0-.052 0-.1-.002-.139-.002-.049-.006-.086-.018-.104-.005-.009-.011-.013-.019-.013-1.355 0-1.355-.473-1.355-.874V8.883c.57-.529 1.59-.982 2.415-.982 1.374 0 1.748.637 1.748 1.766v4.287c0 .546-.903.546-1.217.546-.117 0-.196.056-.196.11 0 .017 0 .048.002.086.001.02.002.044.005.068.011.115.043.247.13.247.353 0 .701-.022 1.049-.045s.697-.045 1.051-.045c.648 0 1.159.09 1.944.09.06 0 .099-.018.099-.056v-.328c0-.09-.039-.127-.08-.127-.646 0-1.296 0-1.296-.784v-4.45c0-1.532-.725-2.424-2.433-2.424-1.206 0-2.212.737-3.106 1.393l-.115.083V7.06c0-.022 0-.052-.002-.082-.006-.067-.022-.135-.076-.135a.909.909 0 0 0-.191.067l-.165.07-.133.057c-.228.098-.515.222-.821.343-.128.051-.26.101-.392.149-.25.09-.501.17-.733.226-.099.018-.119.147-.119.2 0 .076.021.126.051.158.02.022.044.035.068.042l.647.147zm14.886.802h-.492c-.235-.802-.686-1.66-1.727-1.66-.903 0-1.61.401-1.61 1.258 0 .633.822 1.05 1.721 1.504l.031.016.31.158c1.04.547 2.062 1.186 2.062 2.316 0 1.585-1.572 2.57-3.162 2.57-1.277 0-2.513-.528-2.533-.819l-.098-1.66.569-.053c.08.09.099.218.138.344.217.748 1.098 1.587 1.963 1.587 1.002 0 1.631-.565 1.631-1.513 0-.601-.903-1.24-1.394-1.477l-.174-.083c-1.107-.528-2.42-1.154-2.42-2.47 0-1.514 1.492-2.279 2.985-2.279.785 0 1.572.2 2.318.564l-.118 1.697zm5.53-5.668c0 .13-.197.893-.432 1.733l-2.356 8.206c-.234.857-.531 1.003-1.748 1.003a.098.098 0 0 0-.071.034.2.2 0 0 0-.03.043c-.05.09-.075.248-.075.415 0 .073.018.109.098.109.119.008.357-.008.663-.029.399-.026.915-.061 1.437-.061.615 0 1.26.035 1.744.062.177.01.333.018.457.023l.109.004h.086c.139 0 .335 0 .373-.072l.037-.075.029-.06.017-.036.018-.042a.422.422 0 0 0 .036-.151c0-.127-.057-.164-.175-.164h-.276c-.589 0-1.216-.02-1.216-.474 0-.128.137-.565.176-.693l2.866-9.956c.118-.383.352-.438.942-.438 1.65 0 2.75.875 2.75 2.387 0 1.46-1.218 3.611-2.787 3.611-.61 0-1.082-.146-1.336-.328l-.314.42c.372.348 1.177.51 2.021.51 2.416 0 4.243-2.042 4.243-4.193 0-2.262-2.101-3.118-4.301-3.118-1.571 0-2.475.053-4.241.182-.315.019-.373.092-.373.382 0 .165.019.22.078.22l.022-.002.043-.008.052-.01a2.93 2.93 0 0 1 .57-.072c.471 0 .864.147.864.638zm6.365 5.358c.152-.132.324-.304.512-.492.64-.64 1.459-1.459 2.218-1.459.393 0 .687.145.687.565 0 .193-.167.593-.283.872l-.046.11-.024.058-.021.056-1.275 2.989-.237.55c-.225.514-.391.894-.391 1.019 0 .182.118.327.351.327.595 0 2.704-2.422 3.878-3.772l.017-.018c.295-.338.528-.608.663-.75.285-.298.531-.675.776-1.05.125-.192.25-.383.379-.562l.068-.092.049-.065.043-.054c.118-.147.295-.183.471-.183.085 0 .168.03.242.08a.623.623 0 0 1 .229.295c.013.04.021.08.021.117 0 .119-.333.921-.742 1.91l-.004.013c-.658 1.59-1.513 3.656-1.513 4.15 0 .2.177.31.294.31.662 0 1.611-1.266 2.028-1.823l.014-.019c.119 0 .355.182.355.274-.59.984-2.476 3.116-3.711 3.116-.335 0-.611-.327-.611-.691 0-.359.745-2.162 1.277-3.452l.015-.035.186-.453.177-.434c.048-.122.088-.223.113-.295h-.038c-.806.895-5.146 5.36-6.069 5.36-.333 0-.649-.327-.649-.637 0-.78.82-2.57 1.472-3.995.431-.942.789-1.724.789-1.949 0-.181-.179-.291-.276-.291-.256 0-.924.564-1.119.765l-.315-.365zm12.001 5.429c1.768 0 5.125-4.085 5.125-5.69 0-.694-.334-1.003-.923-1.003-1.413 0-5.28 4.175-5.28 5.962 0 .513.608.73 1.078.73zM159.1.53c-.038-.004-.077-.004-.114-.004-.194 0-.823.099-1.489.203l-.737.114-.341.05c-.155.021-.297.04-.419.053l-.038.42c.747.053 1.217.163 1.217.691 0 .749-1.726 6.237-1.826 6.585-.054.194-.183.585-.347 1.07l-.26.766-.016.047-.01.03-.009.025c-.474 1.392-1.027 3.018-1.027 3.276 0 .874 1.021 1.184 1.788 1.184 2.828 0 7.462-3.791 7.462-6.545 0-1.04-.648-1.878-1.788-1.878-1.896 0-3.864 2.363-5.024 3.756l-.122.145-.038-.036 3.28-9.883-.005-.007-.004-.007-.01-.01c-.005-.006-.012-.01-.018-.015a.25.25 0 0 0-.105-.03zm6.781 2.9c.05-.188.098-.391.139-.574a5.11 5.11 0 0 0 .106-.58c0-.583-.647-.747-1.14-.82l.14-.42c.575-.063 1.405-.227 2.039-.352h.004l.013-.003c.281-.056.522-.103.682-.13a1.47 1.47 0 0 1 .188-.025.17.17 0 0 1 .041.005.1.1 0 0 1 .049.025.112.112 0 0 1 .026.08c0 .072-.098.4-.314 1.057l-3.022 9.573-.109.338-.005.013c-.218.674-.418 1.295-.418 1.638 0 .235.197.42.452.42.447 0 1.011-.552 1.466-.996l.007-.007.019-.02c.155-.15.295-.286.413-.382h.077l.295.274v.054c-.667.876-2.335 2.443-3.553 2.443-.453 0-.845-.345-.845-.802 0-.091.118-.51.276-1.076l2.885-9.427a6.77 6.77 0 0 0 .089-.307zm4.96 3.108c-.766.018-2.298 1.186-2.63 1.769l.411.272c.294-.308.865-.764 1.197-.764a.37.37 0 0 1 .205.053c.084.055.128.15.128.274 0 .4-.585 1.757-1.159 3.09-.554 1.287-1.098 2.552-1.098 2.91 0 .583.413.82 1.002.82 1.334 0 2.868-1.694 3.535-2.663 0-.072-.275-.272-.354-.272-.118.105-.27.269-.441.453-.482.52-1.117 1.206-1.581 1.206-.296 0-.491-.164-.491-.364 0-.267.536-1.537 1.085-2.839l.003-.008c.578-1.369 1.17-2.772 1.17-3.08 0-.583-.334-.857-.982-.857zM172 1.578c.51 0 .922.364.922.839 0 .473-.412.857-.922.857-.511 0-.904-.384-.904-.857 0-.475.393-.838.904-.838zm6.463 6.156c0-.71-.981-.892-1.57-.892-1.649 0-2.985 1.35-2.985 2.862 0 .41.565 1.005 1.141 1.612.602.632 1.216 1.279 1.216 1.744 0 .638-.61 1.149-1.277 1.149-.586 0-.849-.237-1.078-.444-.179-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.471 0 3.239-1.55 3.239-2.9 0-.574-.739-1.34-1.428-2.055-.601-.624-1.165-1.209-1.165-1.592 0-.527.591-1.166 1.22-1.166.531 0 .763.28.97.529.168.201.319.383.599.383.335 0 .629-.347.629-.73zm2.354 3.187l.039.035.134-.18c1.064-1.43 3.094-4.159 5.089-4.159 1.296 0 1.611.966 1.611 1.987 0 1.879-2.219 6.437-4.616 6.437-.353 0-.843-.218-.843-.602 0-.436.255-.856.726-.856a.708.708 0 0 1 .278.055c.052.02.103.045.155.072a2.963 2.963 0 0 0 .201.098.624.624 0 0 0 .23.048c1.256 0 2.297-4.14 2.297-5.088 0-.527-.138-1.056-.826-1.056-1.432 0-3.24 2.57-4.495 4.484a10.28 10.28 0 0 0-1.05 2.056c-.093.233-.171.432-.266.607-.079.146-.255.182-.413.182-.175 0-.647-.164-.647-.474 0-.247.773-2.528 1.471-4.588.485-1.43.934-2.753 1.063-3.217l.065-.226c.274-.945 1.112-3.83 1.112-4.278 0-.6-.354-.691-1.217-.783l.119-.42c.169-.031.339-.058.51-.084l.176-.026c.463-.07.927-.139 1.374-.272.255-.074.511-.147.766-.147.099 0 .295.019.295.128 0 .201-1.335 4.377-1.63 5.233l-1.708 5.034zm9.471-.195c1.374-.11 3.965-.674 3.965-2.389 0-.546-.295-.983-.943-.983-1.59 0-2.63 2.15-3.022 3.372zm-1.867 1.788c0 1.53.746 2.752 2.571 2.752 1.416 0 2.592-.673 3.379-1.785-.039-.166-.275-.293-.374-.31-.706.672-1.335 1.037-2.335 1.037-1.122 0-1.671-.874-1.671-1.822 0-.3.05-.59.101-.884.02-.118.041-.236.058-.356 1.726-.074 5.476-.674 5.476-2.79 0-1.205-1.119-1.514-2.238-1.514-2.925 0-4.967 3.264-4.967 5.672zm11.596-4.24c0 .474-.156 1.24-.393 2.096h.041l.123-.195c.729-1.15 2.118-3.342 3.154-3.342.512 0 1.082.291 1.082.821 0 .547-.394.875-1.003.875a.75.75 0 0 1-.471-.183 2.554 2.554 0 0 1-.11-.097 1.562 1.562 0 0 0-.07-.062c-.055-.046-.104-.078-.153-.078-.649 0-2.239 3.046-2.672 3.974-.073.157-.177.435-.3.764-.366.98-.898 2.409-1.31 2.409-.255 0-.805-.108-.805-.364 0-.06.087-.313.226-.696l.157-.427c.176-.48.395-1.076.618-1.721.375-1.076.747-2.152.747-2.753 0-.42-.078-1.003-.786-1.003-.393 0-.883.692-1.138 1.076a1.692 1.692 0 0 1-.412-.255c.373-.75 1.355-2.28 2.297-2.28.844 0 1.178.857 1.178 1.44zm8.922-.549c0-.71-.982-.892-1.571-.892-1.648 0-2.984 1.35-2.984 2.862 0 .41.565 1.005 1.141 1.612.601.633 1.216 1.279 1.216 1.744 0 .639-.61 1.149-1.277 1.149-.586 0-.848-.237-1.078-.444-.178-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.47 0 3.24-1.55 3.24-2.9 0-.574-.739-1.34-1.428-2.055-.602-.624-1.165-1.209-1.165-1.591 0-.528.59-1.167 1.219-1.167.531 0 .762.279.97.528.167.202.319.384.6.384.335 0 .628-.347.628-.73z"})})]})}function lo(){return e(io,{})}var ao=Object.freeze({__proto__:null,Logo:lo});const so=nn.details`
|
|
284
|
-
position: relative;
|
|
285
|
-
margin-left: 10px;
|
|
286
|
-
|
|
287
|
-
&[open] > summary {
|
|
288
|
-
background-color: rgb(255, 255, 255, 0.1);
|
|
289
|
-
opacity: 1;
|
|
290
|
-
}
|
|
291
|
-
`,co=nn.summary`
|
|
292
|
-
list-style: none;
|
|
293
|
-
background-color: rgb(255, 255, 255, 0);
|
|
294
|
-
border-radius: var(--border-radius--medium);
|
|
295
|
-
color: white;
|
|
296
|
-
opacity: 0.9;
|
|
297
|
-
font-size: var(--font-size--small);
|
|
298
|
-
white-space: nowrap;
|
|
299
|
-
padding: var(--spacing--xsmall) var(--spacing--small);
|
|
300
|
-
transition: background-color 0.2s;
|
|
301
|
-
display: flex;
|
|
302
|
-
align-items: center;
|
|
303
|
-
gap: var(--spacing--xsmall);
|
|
304
|
-
user-select: none;
|
|
305
|
-
|
|
306
|
-
&::-webkit-details-marker {
|
|
307
|
-
display: none;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
&:hover {
|
|
311
|
-
background-color: rgb(255, 255, 255, 0.1);
|
|
312
|
-
cursor: pointer;
|
|
313
|
-
opacity: 1;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
svg {
|
|
317
|
-
width: 15px;
|
|
318
|
-
height: 15px;
|
|
319
|
-
vertical-align: middle;
|
|
320
|
-
margin-right: 5px;
|
|
321
|
-
flex-shrink: 0;
|
|
322
|
-
}
|
|
323
|
-
`,uo=nn.div`
|
|
324
|
-
position: absolute;
|
|
325
|
-
top: calc(100% + 5px);
|
|
326
|
-
left: 0;
|
|
327
|
-
background-color: white;
|
|
328
|
-
box-shadow: var(--box-shadow--medium);
|
|
329
|
-
border: 1px solid var(--color--grey-borders);
|
|
330
|
-
z-index: 1000;
|
|
331
|
-
min-width: 200px;
|
|
332
|
-
border-radius: var(--border-radius--small);
|
|
333
|
-
|
|
334
|
-
&.right {
|
|
335
|
-
left: auto;
|
|
336
|
-
right: 0;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
h2 {
|
|
340
|
-
font-size: 12px;
|
|
341
|
-
font-weight: var(--font-weight--bold);
|
|
342
|
-
text-transform: uppercase;
|
|
343
|
-
white-space: nowrap;
|
|
344
|
-
padding: 10px;
|
|
345
|
-
padding-bottom: 5px;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
ul {
|
|
349
|
-
li {
|
|
350
|
-
font-size: 12px;
|
|
351
|
-
white-space: nowrap;
|
|
352
|
-
|
|
353
|
-
> a,
|
|
354
|
-
> button,
|
|
355
|
-
> form > button {
|
|
356
|
-
display: block;
|
|
357
|
-
width: 100%;
|
|
358
|
-
font-size: 14px;
|
|
359
|
-
font-weight: var(--font-weight--regular);
|
|
360
|
-
color: #333e48;
|
|
361
|
-
text-decoration: none;
|
|
362
|
-
text-align: left;
|
|
363
|
-
padding: 10px;
|
|
364
|
-
padding-left: 20px;
|
|
365
|
-
background-color: rgba(0, 0, 0, 0);
|
|
366
|
-
transition: background-color 0.2s ease-in-out;
|
|
367
|
-
outline-offset: -3px;
|
|
368
|
-
border: none;
|
|
369
|
-
|
|
370
|
-
&:hover {
|
|
371
|
-
background-color: rgba(0, 0, 0, 0.1);
|
|
372
|
-
cursor: pointer;
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
&.active {
|
|
377
|
-
> a {
|
|
378
|
-
border-left: 4px solid #56c5a7;
|
|
379
|
-
padding-left: 16px;
|
|
380
|
-
font-weight: var(--font-weight--bold);
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
&.admin-only {
|
|
385
|
-
div {
|
|
386
|
-
font-size: 10px;
|
|
387
|
-
font-weight: var(--font-weight--bold);
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
`;function go({children:n,toggle:o,rightAlign:i}){const[l,a]=r.useState(!1),s=r.useRef(null),c=r.useRef(null);r.useEffect((()=>{l&&setTimeout((()=>s.current?.focus()),1)}),[l]);const u=e=>{c.current&&e.target instanceof Node&&!c.current.contains(e.target)&&a(!1)};return r.useEffect((()=>(document.addEventListener("click",u,!0),()=>{document.removeEventListener("click",u,!0)})),[]),e("div",{ref:c,children:t(so,{open:l,children:[e(co,{"aria-haspopup":"menu",role:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),a(!l)},"aria-expanded":l,children:o}),e(uo,{className:i?"right":"",ref:s,role:"menu",children:n})]})})}const po=nn.header`
|
|
393
|
-
display: flex;
|
|
394
|
-
flex-flow: row;
|
|
395
|
-
align-items: center;
|
|
396
|
-
background-color: var(--color--primary);
|
|
397
|
-
width: 100%;
|
|
398
|
-
height: 70px;
|
|
399
|
-
padding: 1rem;
|
|
400
|
-
gap: 1rem;
|
|
401
|
-
|
|
402
|
-
@media print {
|
|
403
|
-
display: none;
|
|
404
|
-
}
|
|
405
|
-
`,fo=nn.a`
|
|
406
|
-
flex-shrink: 0;
|
|
407
|
-
display: inline-flex;
|
|
408
|
-
`,ho=nn.div`
|
|
409
|
-
margin-left: auto;
|
|
410
|
-
display: flex;
|
|
411
|
-
flex-flow: row;
|
|
412
|
-
align-items: center;
|
|
413
|
-
height: 100%;
|
|
414
|
-
`,mo=nn.span`
|
|
415
|
-
background-color: transparent;
|
|
416
|
-
color: white;
|
|
417
|
-
font-size: var(--font-size--xxsmall);
|
|
418
|
-
font-weight: var(--font-weight--bold);
|
|
419
|
-
text-transform: uppercase;
|
|
420
|
-
padding: var(--spacing--xxxsmall) var(--spacing--xxsmall);
|
|
421
|
-
border-radius: var(--border-radius--small);
|
|
422
|
-
margin-left: var(--spacing--xsmall);
|
|
423
|
-
border: 1px solid white;
|
|
424
|
-
`;var vo=Object.freeze({__proto__:null,Header:function(){return t(po,{children:[e(fo,{href:"/",children:e(lo,{})}),t(go,{toggle:t(n,{children:[e("svg",{viewBox:"0 0 32 32",children:t("g",{children:[e("path",{d:"M10.246,4.228c0-0.547-0.443-0.991-0.99-0.991H3.914c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M19.453,4.228c0-0.547-0.443-0.991-0.991-0.991h-5.343c-0.546,0-0.99,0.443-0.99,0.991V9.57 c0,0.546,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.444,0.991-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M28.868,4.228c0-0.547-0.443-0.991-0.99-0.991h-5.342c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M10.246,13.224c0-0.547-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M19.453,13.224c0-0.547-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.443-0.99,0.99v5.342 c0,0.549,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.441,0.991-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M28.868,13.224c0-0.547-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M10.246,22.43c0-0.545-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"}),e("path",{d:"M19.453,22.43c0-0.545-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.445-0.99,0.99v5.344 c0,0.547,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.443,0.991-0.99V22.43z",fill:"currentColor"}),e("path",{d:"M28.868,22.43c0-0.545-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"})]})}),"ImageAI ",e(mo,{children:"Beta"})]}),children:[e("h2",{children:"HarperCollins Apps"}),t("ul",{children:[e("li",{children:e("a",{href:"https://harperhome.harpercollins.co.uk/",target:"_blank",rel:"noreferrer",children:"HarperHome"})}),e("li",{children:e("a",{href:"https://harpercollins-horizon.hcsupplychain.com",target:"_blank",rel:"noreferrer",children:"Horizon"})}),e("li",{children:e("a",{href:"https://hcp.contacts.uk.harpercollins.org/",target:"_blank",rel:"noreferrer",children:"Contacts"})}),e("li",{children:e("a",{href:"https://scriptscan-app.bluemushroom-0d0ad3f9.uksouth.azurecontainerapps.io/",target:"_blank",rel:"noreferrer",children:"ScriptScan"})}),e("li",{className:"active",children:e("a",{href:"/",children:"ImageAI"})})]}),e("h2",{children:"Other Apps"}),e("ul",{children:e("li",{children:e("a",{href:"https://newscorp.okta.com/",target:"_blank",rel:"noreferrer",children:"Okta"})})})]}),e(ho,{children:e(go,{toggle:t(n,{children:[e(Vn,{name:"fa/user-regular",size:"small"})," My Account"]}),rightAlign:!0,children:e("h2",{children:"My Account"})})})]})},LogoWrapper:fo,RightSideWrapper:ho,Wrapper:po}),bo=Object.freeze({__proto__:null,LoadingSpinner:function(){return t(Bn,{children:[e($n,{}),e(qn,{children:"Loading"})]})},SpinnerIcon:$n});const wo=nn.div`
|
|
425
|
-
display: flex;
|
|
426
|
-
flex-direction: column;
|
|
427
|
-
align-items: flex-start;
|
|
428
|
-
padding: var(--spacing--medium);
|
|
429
|
-
`,yo=nn.div`
|
|
430
|
-
display: -webkit-box;
|
|
431
|
-
-webkit-line-clamp: ${e=>e.$maxLines};
|
|
432
|
-
-webkit-box-orient: vertical;
|
|
433
|
-
overflow: hidden;
|
|
434
|
-
|
|
435
|
-
@media print {
|
|
436
|
-
-webkit-line-clamp: unset;
|
|
437
|
-
}
|
|
438
|
-
`,xo=nn(oo)`
|
|
439
|
-
margin: auto;
|
|
440
|
-
|
|
441
|
-
@media print {
|
|
442
|
-
display: none;
|
|
443
|
-
}
|
|
444
|
-
`;var Co=Object.freeze({__proto__:null,ReadMore:function({children:n,maxLines:o=3}){const[r,l]=c(!1),a=i(null),[s,g]=c(!1),p=()=>{const{offsetHeight:e,scrollHeight:t}=a.current||{};g(!!(e&&t&&e<t))};return u((()=>(window.addEventListener("resize",p),()=>window.removeEventListener("resize",p))),[a]),d((()=>{p()}),[]),t(wo,{children:[e(yo,{$maxLines:r?void 0:o,ref:a,children:n}),o&&s&&e(xo,{type:"button",kind:"basic",onClick:()=>l(!r),children:r?"Read less":"Read more"})]})}});const So=(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var o=st(Qt.apply(void 0,f([e],t,!1))),r=je(o);return new Nt(r,o)})`
|
|
445
|
-
0% {
|
|
446
|
-
background-position: 0% 50%;
|
|
447
|
-
}
|
|
448
|
-
100% {
|
|
449
|
-
background-position: 200% 50%;
|
|
450
|
-
}
|
|
451
|
-
`,Ro=nn.div`
|
|
452
|
-
position: relative;
|
|
453
|
-
width: 100%;
|
|
454
|
-
height: 6px;
|
|
455
|
-
background-color: #d7d7d7;
|
|
456
|
-
border-radius: 3px;
|
|
457
|
-
`,zo=nn.div`
|
|
458
|
-
position: absolute;
|
|
459
|
-
left: 0;
|
|
460
|
-
top: 0;
|
|
461
|
-
height: 6px;
|
|
462
|
-
background: linear-gradient(
|
|
463
|
-
90deg,
|
|
464
|
-
var(--color--primary-light),
|
|
465
|
-
var(--color--primary-verylight)
|
|
466
|
-
);
|
|
467
|
-
background-size: 200% 200%;
|
|
468
|
-
border-radius: 3px;
|
|
469
|
-
transition: width 1s ease;
|
|
470
|
-
animation: ${So} 3s ease infinite;
|
|
471
|
-
transform: rotate(180deg);
|
|
472
|
-
`;var ko=Object.freeze({__proto__:null,ProgressBar:function({ariaLabel:t,percentage:n}){return e(Ro,{role:"progressbar","aria-label":t,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,children:e(zo,{style:{width:`${n}%`}})})}});const Mo=({kind:e,percentage:t,trafficLightRanges:n})=>{const o="var(--color--primary)",r="var(--color--danger)",i="var(--color--green-dark)",l="var(--color--red)",a="var(--color--orange-dark)",s="var(--color--green-dark)";return(()=>{if("traffic-light"===e){const e=Object.entries(n).find((([,e])=>t>=e.min&&t<=e.max))?.[0];return"red"===e||"redLow"===e?l:"orange"===e?a:"green"===e||"greenHigh"===e?s:"#d7d7d7"}return"danger"===e?r:"success"===e?i:"default"===e?o:"#d7d7d7"})()};var Po=Object.freeze({__proto__:null,ProgressCircle:function({size:n="medium",value:o=0,kind:r="default",trafficLightRanges:i={red:{min:0,max:20,text:""},redLow:{min:20,max:40,text:""},orange:{min:40,max:60,text:""},green:{min:60,max:80,text:""},greenHigh:{min:80,max:100,text:""}}}){const l={mini:"0.8rem",tiny:"1rem",small:"1.2rem",medium:"1.6rem",large:"2rem"}[n],a={mini:50,tiny:75,small:100,medium:150,large:200}[n],s=Mo({kind:r,percentage:Math.round(o),trafficLightRanges:i}),u=a/7,[g,p]=c(0);d((()=>{p(o)}),[o]);const f=(a-u)/2,h=f*Math.PI*2,m=g*h/100;return t("svg",{width:a,height:a,viewBox:`0 0 ${a} ${a}`,children:[e("circle",{fill:"white",stroke:"#d7d7d7",cx:a/2,cy:a/2,r:f,strokeWidth:`${u}px`}),e("circle",{fill:"none",stroke:s,cx:a/2,cy:a/2,r:f,strokeWidth:`${u}px`,transform:`rotate(-90 ${a/2} ${a/2})`,strokeDasharray:`${m}, ${h-m}`,strokeLinecap:"round",style:{transition:"all 0.5s"}}),e("text",{fill:"black",fontSize:l,fontWeight:"bold",x:"50%",y:"50%",dy:"6%",textAnchor:"middle",children:(v=o,v>=0&&v<=100?`${o}%`:"-")})]});var v},getColourValue:Mo}),_o=function(e){return e.reduce((function(e,t){var n=t[0],o=t[1];return e[n]=o,e}),{})},Vo="undefined"!=typeof window&&window.document&&window.document.createElement?o.useLayoutEffect:o.useEffect,Oo="top",Io="bottom",Eo="right",Fo="left",Ao="auto",Lo=[Oo,Io,Eo,Fo],Ho="start",Do="end",No="clippingParents",To="viewport",jo="popper",Go="reference",$o=Lo.reduce((function(e,t){return e.concat([t+"-"+Ho,t+"-"+Do])}),[]),Bo=[].concat(Lo,[Ao]).reduce((function(e,t){return e.concat([t,t+"-"+Ho,t+"-"+Do])}),[]),qo=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Wo(e){return e?(e.nodeName||"").toLowerCase():null}function Uo(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xo(e){return e instanceof Uo(e).Element||e instanceof Element}function Yo(e){return e instanceof Uo(e).HTMLElement||e instanceof HTMLElement}function Ko(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Uo(e).ShadowRoot||e instanceof ShadowRoot)}var Zo={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];Yo(r)&&Wo(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Yo(o)&&Wo(o)&&(Object.assign(o.style,i),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Jo(e){return e.split("-")[0]}var Qo=Math.max,er=Math.min,tr=Math.round;function nr(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function or(){return!/^((?!chrome|android).)*safari/i.test(nr())}function rr(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&Yo(e)&&(r=e.offsetWidth>0&&tr(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&tr(o.height)/e.offsetHeight||1);var l=(Xo(e)?Uo(e):window).visualViewport,a=!or()&&n,s=(o.left+(a&&l?l.offsetLeft:0))/r,c=(o.top+(a&&l?l.offsetTop:0))/i,u=o.width/r,d=o.height/i;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function ir(e){var t=rr(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function lr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ko(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function ar(e){return Uo(e).getComputedStyle(e)}function sr(e){return["table","td","th"].indexOf(Wo(e))>=0}function cr(e){return((Xo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ur(e){return"html"===Wo(e)?e:e.assignedSlot||e.parentNode||(Ko(e)?e.host:null)||cr(e)}function dr(e){return Yo(e)&&"fixed"!==ar(e).position?e.offsetParent:null}function gr(e){for(var t=Uo(e),n=dr(e);n&&sr(n)&&"static"===ar(n).position;)n=dr(n);return n&&("html"===Wo(n)||"body"===Wo(n)&&"static"===ar(n).position)?t:n||function(e){var t=/firefox/i.test(nr());if(/Trident/i.test(nr())&&Yo(e)&&"fixed"===ar(e).position)return null;var n=ur(e);for(Ko(n)&&(n=n.host);Yo(n)&&["html","body"].indexOf(Wo(n))<0;){var o=ar(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function pr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fr(e,t,n){return Qo(e,er(t,n))}function hr(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function mr(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var vr={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=Jo(n.placement),s=pr(a),c=[Fo,Eo].indexOf(a)>=0?"height":"width";if(i&&l){var u=function(e,t){return hr("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:mr(e,Lo))}(r.padding,n),d=ir(i),g="y"===s?Oo:Fo,p="y"===s?Io:Eo,f=n.rects.reference[c]+n.rects.reference[s]-l[s]-n.rects.popper[c],h=l[s]-n.rects.reference[s],m=gr(i),v=m?"y"===s?m.clientHeight||0:m.clientWidth||0:0,b=f/2-h/2,w=u[g],y=v-d[c]-u[p],x=v/2-d[c]/2+b,C=fr(w,x,y),S=s;n.modifiersData[o]=((t={})[S]=C,t.centerOffset=C-x,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&lr(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function br(e){return e.split("-")[1]}var wr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yr(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,l=e.offsets,a=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,g=l.x,p=void 0===g?0:g,f=l.y,h=void 0===f?0:f,m="function"==typeof u?u({x:p,y:h}):{x:p,y:h};p=m.x,h=m.y;var v=l.hasOwnProperty("x"),b=l.hasOwnProperty("y"),w=Fo,y=Oo,x=window;if(c){var C=gr(n),S="clientHeight",R="clientWidth";if(C===Uo(n)&&"static"!==ar(C=cr(n)).position&&"absolute"===a&&(S="scrollHeight",R="scrollWidth"),r===Oo||(r===Fo||r===Eo)&&i===Do)y=Io,h-=(d&&C===x&&x.visualViewport?x.visualViewport.height:C[S])-o.height,h*=s?1:-1;if(r===Fo||(r===Oo||r===Io)&&i===Do)w=Eo,p-=(d&&C===x&&x.visualViewport?x.visualViewport.width:C[R])-o.width,p*=s?1:-1}var z,k=Object.assign({position:a},c&&wr),M=!0===u?function(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:tr(n*r)/r||0,y:tr(o*r)/r||0}}({x:p,y:h},Uo(n)):{x:p,y:h};return p=M.x,h=M.y,s?Object.assign({},k,((z={})[y]=b?"0":"",z[w]=v?"0":"",z.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",z)):Object.assign({},k,((t={})[y]=b?h+"px":"",t[w]=v?p+"px":"",t.transform="",t))}var xr={passive:!0};var Cr={left:"right",right:"left",bottom:"top",top:"bottom"};function Sr(e){return e.replace(/left|right|bottom|top/g,(function(e){return Cr[e]}))}var Rr={start:"end",end:"start"};function zr(e){return e.replace(/start|end/g,(function(e){return Rr[e]}))}function kr(e){var t=Uo(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Mr(e){return rr(cr(e)).left+kr(e).scrollLeft}function Pr(e){var t=ar(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function _r(e){return["html","body","#document"].indexOf(Wo(e))>=0?e.ownerDocument.body:Yo(e)&&Pr(e)?e:_r(ur(e))}function Vr(e,t){var n;void 0===t&&(t=[]);var o=_r(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=Uo(o),l=r?[i].concat(i.visualViewport||[],Pr(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(Vr(ur(l)))}function Or(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ir(e,t,n){return t===To?Or(function(e,t){var n=Uo(e),o=cr(e),r=n.visualViewport,i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(r){i=r.width,l=r.height;var c=or();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,s=r.offsetTop)}return{width:i,height:l,x:a+Mr(e),y:s}}(e,n)):Xo(t)?function(e,t){var n=rr(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Or(function(e){var t,n=cr(e),o=kr(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=Qo(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=Qo(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-o.scrollLeft+Mr(e),s=-o.scrollTop;return"rtl"===ar(r||n).direction&&(a+=Qo(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}(cr(e)))}function Er(e,t,n,o){var r="clippingParents"===t?function(e){var t=Vr(ur(e)),n=["absolute","fixed"].indexOf(ar(e).position)>=0&&Yo(e)?gr(e):e;return Xo(n)?t.filter((function(e){return Xo(e)&&lr(e,n)&&"body"!==Wo(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),l=i[0],a=i.reduce((function(t,n){var r=Ir(e,n,o);return t.top=Qo(r.top,t.top),t.right=er(r.right,t.right),t.bottom=er(r.bottom,t.bottom),t.left=Qo(r.left,t.left),t}),Ir(e,l,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Fr(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?Jo(r):null,l=r?br(r):null,a=n.x+n.width/2-o.width/2,s=n.y+n.height/2-o.height/2;switch(i){case Oo:t={x:a,y:n.y-o.height};break;case Io:t={x:a,y:n.y+n.height};break;case Eo:t={x:n.x+n.width,y:s};break;case Fo:t={x:n.x-o.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?pr(i):null;if(null!=c){var u="y"===c?"height":"width";switch(l){case Ho:t[c]=t[c]-(n[u]/2-o[u]/2);break;case Do:t[c]=t[c]+(n[u]/2-o[u]/2)}}return t}function Ar(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,i=n.strategy,l=void 0===i?e.strategy:i,a=n.boundary,s=void 0===a?No:a,c=n.rootBoundary,u=void 0===c?To:c,d=n.elementContext,g=void 0===d?jo:d,p=n.altBoundary,f=void 0!==p&&p,h=n.padding,m=void 0===h?0:h,v=hr("number"!=typeof m?m:mr(m,Lo)),b=g===jo?Go:jo,w=e.rects.popper,y=e.elements[f?b:g],x=Er(Xo(y)?y:y.contextElement||cr(e.elements.popper),s,u,l),C=rr(e.elements.reference),S=Fr({reference:C,element:w,strategy:"absolute",placement:r}),R=Or(Object.assign({},w,S)),z=g===jo?R:C,k={top:x.top-z.top+v.top,bottom:z.bottom-x.bottom+v.bottom,left:x.left-z.left+v.left,right:z.right-x.right+v.right},M=e.modifiersData.offset;if(g===jo&&M){var P=M[r];Object.keys(k).forEach((function(e){var t=[Eo,Io].indexOf(e)>=0?1:-1,n=[Oo,Io].indexOf(e)>=0?"y":"x";k[e]+=P[n]*t}))}return k}function Lr(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?Bo:s,u=br(o),d=u?a?$o:$o.filter((function(e){return br(e)===u})):Lo,g=d.filter((function(e){return c.indexOf(e)>=0}));0===g.length&&(g=d);var p=g.reduce((function(t,n){return t[n]=Ar(e,{placement:n,boundary:r,rootBoundary:i,padding:l})[Jo(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var Hr={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=void 0===r||r,l=n.altAxis,a=void 0===l||l,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,g=n.altBoundary,p=n.flipVariations,f=void 0===p||p,h=n.allowedAutoPlacements,m=t.options.placement,v=Jo(m),b=s||(v===m||!f?[Sr(m)]:function(e){if(Jo(e)===Ao)return[];var t=Sr(e);return[zr(e),t,zr(t)]}(m)),w=[m].concat(b).reduce((function(e,n){return e.concat(Jo(n)===Ao?Lr(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:h}):n)}),[]),y=t.rects.reference,x=t.rects.popper,C=new Map,S=!0,R=w[0],z=0;z<w.length;z++){var k=w[z],M=Jo(k),P=br(k)===Ho,_=[Oo,Io].indexOf(M)>=0,V=_?"width":"height",O=Ar(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:g,padding:c}),I=_?P?Eo:Fo:P?Io:Oo;y[V]>x[V]&&(I=Sr(I));var E=Sr(I),F=[];if(i&&F.push(O[M]<=0),a&&F.push(O[I]<=0,O[E]<=0),F.every((function(e){return e}))){R=k,S=!1;break}C.set(k,F)}if(S)for(var A=function(e){var t=w.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return R=t,"break"},L=f?3:1;L>0;L--){if("break"===A(L))break}t.placement!==R&&(t.modifiersData[o]._skip=!0,t.placement=R,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Dr(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Nr(e){return[Oo,Eo,Io,Fo].some((function(t){return e[t]>=0}))}var Tr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=void 0===r?[0,0]:r,l=Bo.reduce((function(e,n){return e[n]=function(e,t,n){var o=Jo(e),r=[Fo,Oo].indexOf(o)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*r,[Fo,Eo].indexOf(o)>=0?{x:a,y:l}:{x:l,y:a}}(n,t.rects,i),e}),{}),a=l[t.placement],s=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=l}};var jr={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=void 0===r||r,l=n.altAxis,a=void 0!==l&&l,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,g=n.tether,p=void 0===g||g,f=n.tetherOffset,h=void 0===f?0:f,m=Ar(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=Jo(t.placement),b=br(t.placement),w=!b,y=pr(v),x="x"===y?"y":"x",C=t.modifiersData.popperOffsets,S=t.rects.reference,R=t.rects.popper,z="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,k="number"==typeof z?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(C){if(i){var _,V="y"===y?Oo:Fo,O="y"===y?Io:Eo,I="y"===y?"height":"width",E=C[y],F=E+m[V],A=E-m[O],L=p?-R[I]/2:0,H=b===Ho?S[I]:R[I],D=b===Ho?-R[I]:-S[I],N=t.elements.arrow,T=p&&N?ir(N):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=j[V],$=j[O],B=fr(0,S[I],T[I]),q=w?S[I]/2-L-B-G-k.mainAxis:H-B-G-k.mainAxis,W=w?-S[I]/2+L+B+$+k.mainAxis:D+B+$+k.mainAxis,U=t.elements.arrow&&gr(t.elements.arrow),X=U?"y"===y?U.clientTop||0:U.clientLeft||0:0,Y=null!=(_=null==M?void 0:M[y])?_:0,K=E+W-Y,Z=fr(p?er(F,E+q-Y-X):F,E,p?Qo(A,K):A);C[y]=Z,P[y]=Z-E}if(a){var J,Q="x"===y?Oo:Fo,ee="x"===y?Io:Eo,te=C[x],ne="y"===x?"height":"width",oe=te+m[Q],re=te-m[ee],ie=-1!==[Oo,Fo].indexOf(v),le=null!=(J=null==M?void 0:M[x])?J:0,ae=ie?oe:te-S[ne]-R[ne]-le+k.altAxis,se=ie?te+S[ne]+R[ne]-le-k.altAxis:re,ce=p&&ie?function(e,t,n){var o=fr(e,t,n);return o>n?n:o}(ae,te,se):fr(p?ae:oe,te,p?se:re);C[x]=ce,P[x]=ce-te}t.modifiersData[o]=P}},requiresIfExists:["offset"]};function Gr(e,t,n){void 0===n&&(n=!1);var o=Yo(t),r=Yo(t)&&function(e){var t=e.getBoundingClientRect(),n=tr(t.width)/e.offsetWidth||1,o=tr(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),i=cr(t),l=rr(e,r,n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&(("body"!==Wo(t)||Pr(i))&&(a=function(e){return e!==Uo(e)&&Yo(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:kr(e);var t}(t)),Yo(t)?((s=rr(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Mr(i))),{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function $r(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}var Br={placement:"bottom",modifiers:[],strategy:"absolute"};function qr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Wr(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?Br:r;return function(e,t,n){void 0===n&&(n=i);var r,l,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Br,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:a,setOptions:function(n){var r="function"==typeof n?n(a.options):n;d(),a.options=Object.assign({},i,a.options,r),a.scrollParents={reference:Xo(e)?Vr(e):e.contextElement?Vr(e.contextElement):[],popper:Vr(t)};var l,c,g=function(e){var t=$r(e);return qo.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((l=[].concat(o,a.options.modifiers),c=l.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=g.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var i=r({state:a,name:t,instance:u,options:o}),l=function(){};s.push(i||l)}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(qr(t,n)){a.rects={reference:Gr(t,gr(n),"fixed"===a.options.strategy),popper:ir(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<a.orderedModifiers.length;o++)if(!0!==a.reset){var r=a.orderedModifiers[o],i=r.fn,l=r.options,s=void 0===l?{}:l,d=r.name;"function"==typeof i&&(a=i({state:a,options:s,name:d,instance:u})||a)}else a.reset=!1,o=-1}}},update:(r=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return l||(l=new Promise((function(e){Promise.resolve().then((function(){l=void 0,e(r())}))}))),l}),destroy:function(){d(),c=!0}};if(!qr(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Ur=Wr({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=void 0===r||r,l=o.resize,a=void 0===l||l,s=Uo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,xr)})),a&&s.addEventListener("resize",n.update,xr),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,xr)})),a&&s.removeEventListener("resize",n.update,xr)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Fr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,l=void 0===i||i,a=n.roundOffsets,s=void 0===a||a,c={placement:Jo(t.placement),variation:br(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,yr(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,yr(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Zo,Tr,Hr,jr,vr,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,l=Ar(t,{elementContext:"reference"}),a=Ar(t,{altBoundary:!0}),s=Dr(l,o),c=Dr(a,r,i),u=Nr(s),d=Nr(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),Xr="undefined"!=typeof Element,Yr="function"==typeof Map,Kr="function"==typeof Set,Zr="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Jr(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,o,r,i;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(o=n;0!=o--;)if(!Jr(e[o],t[o]))return!1;return!0}if(Yr&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(o=i.next()).done;)if(!t.has(o.value[0]))return!1;for(i=e.entries();!(o=i.next()).done;)if(!Jr(o.value[1],t.get(o.value[0])))return!1;return!0}if(Kr&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(o=i.next()).done;)if(!t.has(o.value[0]))return!1;return!0}if(Zr&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(o=n;0!=o--;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(r=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(t,r[o]))return!1;if(Xr&&e instanceof Element)return!1;for(o=n;0!=o--;)if(("_owner"!==r[o]&&"__v"!==r[o]&&"__o"!==r[o]||!e.$$typeof)&&!Jr(e[r[o]],t[r[o]]))return!1;return!0}return e!=e&&t!=t}var Qr=b((function(e,t){try{return Jr(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}})),ei=[],ti=function(e,t,n){void 0===n&&(n={});var r=o.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||ei},l=o.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=l[0],s=l[1],c=o.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);g.flushSync((function(){s({styles:_o(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:_o(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),u=o.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[c,{name:"applyStyles",enabled:!1}])};return Qr(r.current,e)?r.current||e:(r.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,c]),d=o.useRef();return Vo((function(){d.current&&d.current.setOptions(u)}),[u]),Vo((function(){if(null!=e&&null!=t){var o=(n.createPopper||Ur)(e,t,u);return d.current=o,function(){o.destroy(),d.current=null}}}),[e,t,n.createPopper]),{state:d.current?d.current.state:null,styles:a.styles,attributes:a.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}};const ni=nn.div`
|
|
473
|
-
display: inline-flex;
|
|
474
|
-
position: relative;
|
|
475
|
-
|
|
476
|
-
@media print {
|
|
477
|
-
display: none;
|
|
478
|
-
}
|
|
479
|
-
`,oi=nn.div`
|
|
480
|
-
text-align: left;
|
|
481
|
-
position: relative;
|
|
482
|
-
font-size: var(--font-size--xsmall);
|
|
483
|
-
max-width: 300px;
|
|
484
|
-
width: max-content;
|
|
485
|
-
visibility: hidden;
|
|
486
|
-
border-radius: var(--border-radius--small);
|
|
487
|
-
padding: var(--spacing--small) var(--spacing--medium);
|
|
488
|
-
color: ${"var(--color--grey-dark)"};
|
|
489
|
-
background: ${"var(--color--white)"};
|
|
490
|
-
box-shadow: var(--box-shadow--medium);
|
|
491
|
-
border: 1px solid var(--color--grey-borders);
|
|
492
|
-
font-weight: 400;
|
|
493
|
-
line-height: 1.4;
|
|
494
|
-
z-index: 9;
|
|
495
|
-
|
|
496
|
-
> div {
|
|
497
|
-
white-space: initial;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
&[data-show="true"] {
|
|
501
|
-
visibility: visible;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
.arrow,
|
|
505
|
-
.arrow::before {
|
|
506
|
-
position: absolute;
|
|
507
|
-
width: 8px;
|
|
508
|
-
height: 8px;
|
|
509
|
-
background: inherit;
|
|
510
|
-
transition:
|
|
511
|
-
top 0.3s ease-in,
|
|
512
|
-
bottom 0.3s ease-in,
|
|
513
|
-
left 0.3s ease-in,
|
|
514
|
-
right 0.3s ease-in;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
.arrow {
|
|
518
|
-
visibility: hidden;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
.arrow::before {
|
|
522
|
-
visibility: hidden;
|
|
523
|
-
content: "";
|
|
524
|
-
transform: rotate(45deg);
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
&[data-popper-placement^="top"] > .arrow {
|
|
528
|
-
bottom: -4px;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
&[data-popper-placement^="bottom"] > .arrow {
|
|
532
|
-
top: -4px;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
&[data-popper-placement^="left"] > .arrow {
|
|
536
|
-
right: -4px;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
&[data-popper-placement^="right"] > .arrow {
|
|
540
|
-
left: -4px;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
.arrow[data-hide="true"]::before {
|
|
544
|
-
visibility: hidden !important;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
&[data-show] > .arrow::before {
|
|
548
|
-
visibility: visible;
|
|
549
|
-
}
|
|
550
|
-
`;function ri({children:n,content:o,placement:r="top"}){const[i,l]=c(!1),[a,s]=c(null),[u,g]=c(null),[p,f]=c(null),{styles:h,attributes:m}=ti(a,u,{placement:r,modifiers:[{name:"arrow",options:{element:p}},{name:"offset",options:{offset:[0,5]}}]});let v=null;const b=()=>{v=setTimeout((()=>{l(!0)}),300)},w=()=>{v&&clearTimeout(v),l(!1)};return d((()=>()=>{v&&clearTimeout(v)})),t(ni,{onMouseEnter:b,onMouseLeave:w,onFocus:b,onBlur:w,tabIndex:0,children:[e("div",{ref:s,children:n}),i&&t(oi,{style:h.popper,"data-show":i,...m.popper,ref:g,children:[e("div",{children:o}),e("span",{ref:f,style:h.arrow,...m.arrow,className:"arrow"})]})]})}var ii=Object.freeze({__proto__:null,StyledTooltip:oi,Tooltip:ri});function li({size:t}){return e(Vn,{colour:"green",name:"fa/check-circle-solid",size:t})}function ai({size:t}){return e(Vn,{colour:"grey",name:"fa/circle-solid",size:t})}function si({size:t}){return e(Vn,{colour:"primary",name:"fa/circle-solid",size:t})}function ci({size:t}){return e($n,{size:{xsmall:12,small:14,medium:16,large:22,xlarge:24}[t],strokeWidth:40})}function ui({size:t}){return e(Vn,{colour:"danger",name:"fa/circle-exclamation-solid",size:t})}const di=nn.div`
|
|
551
|
-
flex-shrink: 0;
|
|
552
|
-
display: flex;
|
|
553
|
-
align-items: center;
|
|
554
|
-
justify-content: center;
|
|
555
|
-
svg {
|
|
556
|
-
outline: 2px solid var(--color--white);
|
|
557
|
-
background-color: var(--color--white);
|
|
558
|
-
border-radius: 50%;
|
|
559
|
-
}
|
|
560
|
-
`;var gi=Object.freeze({__proto__:null,StatusIcon:function({status:t="uploaded",size:n="medium"}){const o=t.charAt(0).toUpperCase()+t.slice(1),r={uploaded:e(ai,{size:n}),running:e(ci,{size:n}),processed:e(si,{size:n}),reviewed:e(li,{size:n}),failed:e(ui,{size:n})};return e(ri,{content:o,children:e(di,{status:t,"aria-label":o,children:r[t]})})}});
|
|
561
|
-
/**
|
|
562
|
-
* table-core
|
|
563
|
-
*
|
|
564
|
-
* Copyright (c) TanStack
|
|
565
|
-
*
|
|
566
|
-
* This source code is licensed under the MIT license found in the
|
|
567
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
568
|
-
*
|
|
569
|
-
* @license MIT
|
|
570
|
-
*/function pi(e,t){return"function"==typeof e?e(t):e}function fi(e,t){return n=>{t.setState((t=>({...t,[e]:pi(n,t[e])})))}}function hi(e){return e instanceof Function}function mi(e,t,n){let o,r=[];return i=>{let l;n.key&&n.debug&&(l=Date.now());const a=e(i),s=a.length!==r.length||a.some(((e,t)=>r[t]!==e));if(!s)return o;let c;if(r=a,n.key&&n.debug&&(c=Date.now()),o=t(...a),null==n||null==n.onChange||n.onChange(o),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-l))/100,t=Math.round(100*(Date.now()-c))/100,o=t/16,r=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${r(t,5)} /${r(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==n?void 0:n.key)}return o}}function vi(e,t,n,o){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:"development"===process.env.NODE_ENV&&n,onChange:o}}const bi="debugHeaders";function wi(e,t,n){var o;let r={id:null!=(o=n.id)?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(r,e)})),r}const yi={createTable:e=>{e.getHeaderGroups=mi((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,r)=>{var i,l;const a=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],s=null!=(l=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?l:[],c=n.filter((e=>!(null!=o&&o.includes(e.id)||null!=r&&r.includes(e.id))));return xi(t,[...a,...c,...s],e)}),vi(e.options,bi,"getHeaderGroups")),e.getCenterHeaderGroups=mi((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,r)=>(n=n.filter((e=>!(null!=o&&o.includes(e.id)||null!=r&&r.includes(e.id)))),xi(t,n,e,"center"))),vi(e.options,bi,"getCenterHeaderGroups")),e.getLeftHeaderGroups=mi((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,o)=>{var r;return xi(t,null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],e,"left")}),vi(e.options,bi,"getLeftHeaderGroups")),e.getRightHeaderGroups=mi((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,o)=>{var r;return xi(t,null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],e,"right")}),vi(e.options,bi,"getRightHeaderGroups")),e.getFooterGroups=mi((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),vi(e.options,bi,"getFooterGroups")),e.getLeftFooterGroups=mi((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),vi(e.options,bi,"getLeftFooterGroups")),e.getCenterFooterGroups=mi((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),vi(e.options,bi,"getCenterFooterGroups")),e.getRightFooterGroups=mi((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),vi(e.options,bi,"getRightFooterGroups")),e.getFlatHeaders=mi((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),vi(e.options,bi,"getFlatHeaders")),e.getLeftFlatHeaders=mi((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),vi(e.options,bi,"getLeftFlatHeaders")),e.getCenterFlatHeaders=mi((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),vi(e.options,bi,"getCenterFlatHeaders")),e.getRightFlatHeaders=mi((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),vi(e.options,bi,"getRightFlatHeaders")),e.getCenterLeafHeaders=mi((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),vi(e.options,bi,"getCenterLeafHeaders")),e.getLeftLeafHeaders=mi((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),vi(e.options,bi,"getLeftLeafHeaders")),e.getRightLeafHeaders=mi((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),vi(e.options,bi,"getRightLeafHeaders")),e.getLeafHeaders=mi((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var o,r,i,l,a,s;return[...null!=(o=null==(r=e[0])?void 0:r.headers)?o:[],...null!=(i=null==(l=t[0])?void 0:l.headers)?i:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),vi(e.options,bi,"getLeafHeaders"))}};function xi(e,t,n,o){var r,i;let l=0;const a=function(e,t){void 0===t&&(t=1),l=Math.max(l,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)}),0)};a(e);let s=[];const c=(e,t)=>{const r={depth:t,id:[o,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const l=[...i].reverse()[0];let a,s=!1;if(e.column.depth===r.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),l&&(null==l?void 0:l.column)===a)l.subHeaders.push(e);else{const r=wi(n,a,{id:[o,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter((e=>e.column===a)).length}`:void 0,depth:t,index:i.length});r.subHeaders.push(e),i.push(r)}r.headers.push(e),e.headerGroup=r})),s.push(r),t>0&&c(i,t-1)},u=t.map(((e,t)=>wi(n,e,{depth:l,index:t})));c(u,l-1),s.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,o=[0];e.subHeaders&&e.subHeaders.length?(o=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:r}=e;t+=n,o.push(r)}))):t=1;return n+=Math.min(...o),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(r=null==(i=s[0])?void 0:i.headers)?r:[]),s}const Ci=(e,t,n,o,r,i,l)=>{let a={id:t,index:o,original:n,depth:r,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,o),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,o),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>function(e,t){const n=[],o=e=>{e.forEach((e=>{n.push(e);const r=t(e);null!=r&&r.length&&o(r)}))};return o(e),n}(a.subRows,(e=>e.subRows)),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:mi((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,o){const r={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:()=>{var t;return null!=(t=r.getValue())?t:e.options.renderFallbackValue},getContext:mi((()=>[e,n,t,r]),((e,t,n,o)=>({table:e,column:t,row:n,cell:o,getValue:o.getValue,renderValue:o.renderValue})),vi(e.options,"debugCells","cell.getContext"))};return e._features.forEach((o=>{null==o.createCell||o.createCell(r,n,t,e)}),{}),r}(e,a,t,t.id)))),vi(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:mi((()=>[a.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),vi(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(a,e)}return a},Si={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Ri=(e,t,n)=>{var o;const r=n.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(r))};Ri.autoRemove=e=>Fi(e);const zi=(e,t,n)=>{var o;return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())?void 0:o.includes(n))};zi.autoRemove=e=>Fi(e);const ki=(e,t,n)=>{var o;return(null==(o=e.getValue(t))||null==(o=o.toString())?void 0:o.toLowerCase())===(null==n?void 0:n.toLowerCase())};ki.autoRemove=e=>Fi(e);const Mi=(e,t,n)=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)};Mi.autoRemove=e=>Fi(e)||!(null!=e&&e.length);const Pi=(e,t,n)=>!n.some((n=>{var o;return!(null!=(o=e.getValue(t))&&o.includes(n))}));Pi.autoRemove=e=>Fi(e)||!(null!=e&&e.length);const _i=(e,t,n)=>n.some((n=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)}));_i.autoRemove=e=>Fi(e)||!(null!=e&&e.length);const Vi=(e,t,n)=>e.getValue(t)===n;Vi.autoRemove=e=>Fi(e);const Oi=(e,t,n)=>e.getValue(t)==n;Oi.autoRemove=e=>Fi(e);const Ii=(e,t,n)=>{let[o,r]=n;const i=e.getValue(t);return i>=o&&i<=r};Ii.resolveFilterValue=e=>{let[t,n]=e,o="number"!=typeof t?parseFloat(t):t,r="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(o)?-1/0:o,l=null===n||Number.isNaN(r)?1/0:r;if(i>l){const e=i;i=l,l=e}return[i,l]},Ii.autoRemove=e=>Fi(e)||Fi(e[0])&&Fi(e[1]);const Ei={includesString:Ri,includesStringSensitive:zi,equalsString:ki,arrIncludes:Mi,arrIncludesAll:Pi,arrIncludesSome:_i,equals:Vi,weakEquals:Oi,inNumberRange:Ii};function Fi(e){return null==e||""===e}const Ai={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:fi("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"string"==typeof o?Ei.includesString:"number"==typeof o?Ei.inNumberRange:"boolean"==typeof o||null!==o&&"object"==typeof o?Ei.equals:Array.isArray(o)?Ei.arrIncludes:Ei.weakEquals},e.getFilterFn=()=>{var n,o;return hi(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(o=t.options.filterFns)?void 0:o[e.columnDef.filterFn])?n:Ei[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,r;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(o=t.options.enableColumnFilters)||o)&&(null==(r=t.options.enableFilters)||r)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().columnFilters)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),r=null==t?void 0:t.find((t=>t.id===e.id)),i=pi(n,r?r.value:void 0);var l;if(Li(o,i,e))return null!=(l=null==t?void 0:t.filter((t=>t.id!==e.id)))?l:[];const a={id:e.id,value:i};var s;return r?null!=(s=null==t?void 0:t.map((t=>t.id===e.id?a:t)))?s:[]:null!=t&&t.length?[...t,a]:[a]}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o;return null==(o=pi(t,e))?void 0:o.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(Li(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Li(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const Hi={sum:(e,t,n)=>n.reduce(((t,n)=>{const o=n.getValue(e);return t+("number"==typeof o?o:0)}),0),min:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o>n||void 0===o&&n>=n)&&(o=n)})),o},max:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o<n||void 0===o&&n>=n)&&(o=n)})),o},extent:(e,t,n)=>{let o,r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===o?n>=n&&(o=r=n):(o>n&&(o=n),r<n&&(r=n)))})),[o,r]},mean:(e,t)=>{let n=0,o=0;if(t.forEach((t=>{let r=t.getValue(e);null!=r&&(r=+r)>=r&&(++n,o+=r)})),n)return o/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(o=n,!Array.isArray(o)||!o.every((e=>"number"==typeof e)))return;var o;if(1===n.length)return n[0];const r=Math.floor(n.length/2),i=n.sort(((e,t)=>e-t));return n.length%2!=0?i[r]:(i[r-1]+i[r])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},Di={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:fi("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,o;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(o=t.options.enableGrouping)||o)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"number"==typeof o?Hi.sum:"[object Date]"===Object.prototype.toString.call(o)?Hi.extent:void 0},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return hi(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(o=t.options.aggregationFns)?void 0:o[e.columnDef.aggregationFn])?n:Hi[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const o=t.getColumn(n);return null!=o&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const Ni={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:fi("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=mi((e=>[Wi(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),vi(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var o;return(null==(o=Wi(t,n)[0])?void 0:o.id)===e.id},e.getIsLastColumn=n=>{var o;const r=Wi(t,n);return(null==(o=r[r.length-1])?void 0:o.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=mi((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>o=>{let r=[];if(null!=e&&e.length){const t=[...e],n=[...o];for(;n.length&&t.length;){const e=t.shift(),o=n.findIndex((t=>t.id===e));o>-1&&r.push(n.splice(o,1)[0])}r=[...r,...n]}else r=o;return function(e,t,n){if(null==t||!t.length||!n)return e;const o=e.filter((e=>!t.includes(e.id)));if("remove"===n)return o;const r=t.map((t=>e.find((e=>e.id===t)))).filter(Boolean);return[...r,...o]}(r,t,n)}),vi(e.options,"debugTable","_getOrderColumnsFn"))}},Ti={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:fi("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const o=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,r,i,l,a,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=o&&o.includes(e)))),right:[...(null!=(l=null==e?void 0:e.right)?l:[]).filter((e=>!(null!=o&&o.includes(e)))),...o]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=o&&o.includes(e)))),...o],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=o&&o.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=o&&o.includes(e)))),right:(null!=(r=null==e?void 0:e.right)?r:[]).filter((e=>!(null!=o&&o.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,o,r;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(o=null!=(r=t.options.enableColumnPinning)?r:t.options.enablePinning)||o)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:o,right:r}=t.getState().columnPinning,i=n.some((e=>null==o?void 0:o.includes(e))),l=n.some((e=>null==r?void 0:r.includes(e)));return i?"left":!!l&&"right"},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();return r?null!=(n=null==(o=t.getState().columnPinning)||null==(o=o[r])?void 0:o.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=mi((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const o=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!o.includes(e.column.id)))}),vi(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=mi((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),vi(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=mi((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),vi(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(o=e.initialState)?void 0:o.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const o=e.getState().columnPinning;var r,i;return t?Boolean(null==(n=o[t])?void 0:n.length):Boolean((null==(r=o.left)?void 0:r.length)||(null==(i=o.right)?void 0:i.length))},e.getLeftLeafColumns=mi((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),vi(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=mi((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),vi(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=mi((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const o=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!o.includes(e.id)))}),vi(e.options,"debugColumns","getCenterLeafColumns"))}},ji={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Gi={getDefaultColumnDef:()=>ji,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:fi("columnSizing",e),onColumnSizingInfoChange:fi("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,r;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:ji.minSize,null!=(o=null!=i?i:e.columnDef.size)?o:ji.size),null!=(r=e.columnDef.maxSize)?r:ji.maxSize)},e.getStart=mi((e=>[e,Wi(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),vi(t.options,"debugColumns","getStart")),e.getAfter=mi((e=>[e,Wi(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),vi(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...o}=t;return o}))},e.getCanResize=()=>{var n,o;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(o=t.options.enableColumnResizing)||o)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var o;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(o=e.column.getSize())?o:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const o=t.getColumn(e.column.id),r=null==o?void 0:o.getCanResize();return i=>{if(!o||!r)return;if(null==i.persist||i.persist(),Bi(i)&&i.touches&&i.touches.length>1)return;const l=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[o.id,o.getSize()]],s=Bi(i)?Math.round(i.touches[0].clientX):i.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var o,r;const i="rtl"===t.options.columnResizeDirection?-1:1,l=(n-(null!=(o=null==e?void 0:e.startOffset)?o:0))*i,a=Math.max(l/(null!=(r=null==e?void 0:e.startSize)?r:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*a,0))/100})),{...e,deltaOffset:l,deltaPercentage:a}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...c}))))},d=e=>u("move",e),g=e=>{u("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!=typeof document?document:null,f={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",f.moveHandler),null==p||p.removeEventListener("mouseup",f.upHandler),g(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",h.moveHandler),null==p||p.removeEventListener("touchend",h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),g(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof $i)return $i;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return $i=e,$i}()&&{passive:!1};Bi(i)?(null==p||p.addEventListener("touchmove",h.moveHandler,m),null==p||p.addEventListener("touchend",h.upHandler,m)):(null==p||p.addEventListener("mousemove",f.moveHandler,m),null==p||p.addEventListener("mouseup",f.upHandler,m)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:o.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let $i=null;function Bi(e){return"touchstart"===e.type}const qi={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:fi("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,o;const r=e.columns;return null==(n=r.length?r.some((e=>e.getIsVisible())):null==(o=t.getState().columnVisibility)?void 0:o[e.id])||n},e.getCanHide=()=>{var n,o;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(o=t.options.enableHiding)||o)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=mi((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),vi(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=mi((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),vi(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(t,n)=>mi((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),vi(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function Wi(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Ui={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:fi("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const o=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof o||"number"==typeof o}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,o,r,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(o=t.options.enableGlobalFilter)||o)&&(null==(r=t.options.enableFilters)||r)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Ei.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:o}=e.options;return hi(o)?o:"auto"===o?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[o])?t:Ei[o]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Xi={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:fi("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,o,r)=>{const i=o?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],l=r?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],a=new Set([...l,e.id,...i]);t.setRowPinning((e=>{var t,o,r,i,l,s;return"bottom"===n?{top:(null!=(r=null==e?void 0:e.top)?r:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)]}:"top"===n?{top:[...(null!=(l=null==e?void 0:e.top)?l:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=a&&a.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:(null!=(o=null==e?void 0:e.bottom)?o:[]).filter((e=>!(null!=a&&a.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:r}=t.options;return"function"==typeof o?o(e):null==(n=null!=o?o:r)||n},e.getIsPinned=()=>{const n=[e.id],{top:o,bottom:r}=t.getState().rowPinning,i=n.some((e=>null==o?void 0:o.includes(e))),l=n.some((e=>null==r?void 0:r.includes(e)));return i?"top":!!l&&"bottom"},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();if(!r)return-1;const i=null==(n=t._getPinnedRows(r))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(o=null==i?void 0:i.indexOf(e.id))?o:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(o=e.initialState)?void 0:o.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const o=e.getState().rowPinning;var r,i;return t?Boolean(null==(n=o[t])?void 0:n.length):Boolean((null==(r=o.top)?void 0:r.length)||(null==(i=o.bottom)?void 0:i.length))},e._getPinnedRows=mi((t=>[e.getRowModel().rows,e.getState().rowPinning[t],t]),((t,n,o)=>{var r;return(null==(r=e.options.keepPinnedRows)||r?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:o})))}),vi(e.options,"debugRows","_getPinnedRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=mi((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const o=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!o.has(e.id)))}),vi(e.options,"debugRows","getCenterRows"))}},Yi={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:fi("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const o={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach((e=>{e.getCanSelect()&&(o[e.id]=!0)})):r.forEach((e=>{delete o[e.id]})),o}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const o=void 0!==t?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach((t=>{Ki(r,t.id,o,!0,e)})),r})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=mi((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?Zi(e,n):{rows:[],flatRows:[],rowsById:{}}),vi(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=mi((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?Zi(e,n):{rows:[],flatRows:[],rowsById:{}}),vi(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=mi((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?Zi(e,n):{rows:[],flatRows:[],rowsById:{}}),vi(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let o=Boolean(t.length&&Object.keys(n).length);return o&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let o=!!t.length;return o&&t.some((e=>!n[e.id]))&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,o)=>{const r=e.getIsSelected();t.setRowSelection((i=>{var l;if(n=void 0!==n?n:!r,e.getCanSelect()&&r===n)return i;const a={...i};return Ki(a,e.id,n,null==(l=null==o?void 0:o.selectChildren)||l,t),a}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Ji(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Qi(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Qi(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var o;t&&e.toggleSelected(null==(o=n.target)?void 0:o.checked)}}}},Ki=(e,t,n,o,r)=>{var i;const l=r.getRow(t,!0);n?(l.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),l.getCanSelect()&&(e[t]=!0)):delete e[t],o&&null!=(i=l.subRows)&&i.length&&l.getCanSelectSubRows()&&l.subRows.forEach((t=>Ki(e,t.id,n,o,r)))};function Zi(e,t){const n=e.getState().rowSelection,o=[],r={},i=function(e,t){return e.map((e=>{var t;const l=Ji(e,n);if(l&&(o.push(e),r[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),l)return e})).filter(Boolean)};return{rows:i(t.rows),flatRows:o,rowsById:r}}function Ji(e,t){var n;return null!=(n=t[e.id])&&n}function Qi(e,t,n){var o;if(null==(o=e.subRows)||!o.length)return!1;let r=!0,i=!1;return e.subRows.forEach((e=>{if((!i||r)&&(e.getCanSelect()&&(Ji(e,t)?i=!0:r=!1),e.subRows&&e.subRows.length)){const n=Qi(e,t);"all"===n?i=!0:"some"===n?(i=!0,r=!1):r=!1}})),r?"all":!!i&&"some"}const el=/([0-9]+)/gm;function tl(e,t){return e===t?0:e>t?1:-1}function nl(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function ol(e,t){const n=e.split(el).filter(Boolean),o=t.split(el).filter(Boolean);for(;n.length&&o.length;){const e=n.shift(),t=o.shift(),r=parseInt(e,10),i=parseInt(t,10),l=[r,i].sort();if(isNaN(l[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(l[1]))return isNaN(r)?-1:1;if(r>i)return 1;if(i>r)return-1}}return n.length-o.length}const rl={alphanumeric:(e,t,n)=>ol(nl(e.getValue(n)).toLowerCase(),nl(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>ol(nl(e.getValue(n)),nl(t.getValue(n))),text:(e,t,n)=>tl(nl(e.getValue(n)).toLowerCase(),nl(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>tl(nl(e.getValue(n)),nl(t.getValue(n))),datetime:(e,t,n)=>{const o=e.getValue(n),r=t.getValue(n);return o>r?1:o<r?-1:0},basic:(e,t,n)=>tl(e.getValue(n),t.getValue(n))},il={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:fi("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return rl.datetime;if("string"==typeof n&&(o=!0,n.split(el).length>1))return rl.alphanumeric}return o?rl.text:rl.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return hi(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(o=t.options.sortingFns)?void 0:o[e.columnDef.sortingFn])?n:rl[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{const r=e.getNextSortingOrder(),i=null!=n;t.setSorting((l=>{const a=null==l?void 0:l.find((t=>t.id===e.id)),s=null==l?void 0:l.findIndex((t=>t.id===e.id));let c,u=[],d=i?n:"desc"===r;var g;(c=null!=l&&l.length&&e.getCanMultiSort()&&o?a?"toggle":"add":null!=l&&l.length&&s!==l.length-1?"replace":a?"toggle":"replace","toggle"===c&&(i||r||(c="remove")),"add"===c)?(u=[...l,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(g=t.options.maxMultiSortColCount)?g:Number.MAX_SAFE_INTEGER))):u="toggle"===c?l.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===c?l.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return u}))},e.getFirstSortDir=()=>{var n,o;return(null!=(n=null!=(o=e.columnDef.sortDescFirst)?o:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var o,r;const i=e.getFirstSortDir(),l=e.getIsSorted();return l?!!(l===i||null!=(o=t.options.enableSortingRemoval)&&!o||n&&null!=(r=t.options.enableMultiRemove)&&!r)&&("desc"===l?"asc":"desc"):i},e.getCanSort=()=>{var n,o;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(o=t.options.enableSorting)||o)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return null!=(n=null!=(o=e.columnDef.enableMultiSort)?o:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const o=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!o&&(o.desc?"desc":"asc")},e.getSortIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().sorting)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return o=>{n&&(null==o.persist||o.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(o))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},ll=[yi,qi,Ni,Ti,Si,Ai,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},Ui,il,Di,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:fi("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,r;if(t){if(null!=(o=null!=(r=e.options.autoResetAll)?r:e.options.autoResetExpanded)?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,o;e.setExpanded(t?{}:null!=(n=null==(o=e.initialState)?void 0:o.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((o=>{var r;const i=!0===o||!(null==o||!o[e.id]);let l={};if(!0===o?Object.keys(t.getRowModel().rowsById).forEach((e=>{l[e]=!0})):l=o,n=null!=(r=n)?r:!i,!i&&n)return{...l,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=l;return n}return o}))},e.getIsExpanded=()=>{var n;const o=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===o||(null==o?void 0:o[e.id]))},e.getCanExpand=()=>{var n,o,r;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(o=t.options.enableExpanding)||o)&&!(null==(r=e.subRows)||!r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:fi("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,r;if(t){if(null!=(o=null!=(r=e.options.autoResetAll)?r:e.options.autoResetPageIndex)?o:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>pi(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let o=pi(t,n.pageIndex);const r=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,r)),{...n,pageIndex:o}}))},e.resetPageIndex=t=>{var n,o;e.setPageIndex(t?0:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageIndex)?n:0)},e.resetPageSize=t=>{var n,o;e.setPageSize(t?10:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,pi(t,e.pageSize)),o=e.pageSize*e.pageIndex,r=Math.floor(o/n);return{...e,pageIndex:r,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var o;let r=pi(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}})),e.getPageOptions=mi((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),vi(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},Xi,Yi,Gi];function al(e){var t,n;"production"!==process.env.NODE_ENV&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const o=[...ll,...null!=(t=e._features)?t:[]];let r={_features:o};const i=r._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(r))),{});let l={...null!=(n=e.initialState)?n:{}};r._features.forEach((e=>{var t;l=null!=(t=null==e.getInitialState?void 0:e.getInitialState(l))?t:l}));const a=[];let s=!1;const c={_features:o,options:{...i,...e},initialState:l,_queue:e=>{a.push(e),s||(s=!0,Promise.resolve().then((()=>{for(;a.length;)a.shift()();s=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{r.setState(r.initialState)},setOptions:e=>{const t=pi(e,r.options);r.options=(e=>r.options.mergeOptions?r.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>r.options.state,setState:e=>{null==r.options.onStateChange||r.options.onStateChange(e)},_getRowId:(e,t,n)=>{var o;return null!=(o=null==r.options.getRowId?void 0:r.options.getRowId(e,t,n))?o:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?r.getPrePaginationRowModel():r.getRowModel()).rowsById[e];if(!n&&(n=r.getCoreRowModel().rowsById[e],!n)){if("production"!==process.env.NODE_ENV)throw new Error(`getRow could not find row with ID: ${e}`);throw new Error}return n},_getDefaultColumnDef:mi((()=>[r.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...r._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),vi(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>r.options.columns,getAllColumns:mi((()=>[r._getColumnDefs()]),(e=>{const t=function(e,n,o){return void 0===o&&(o=0),e.map((e=>{const i=function(e,t,n,o){var r,i;const l={...e._getDefaultColumnDef(),...t},a=l.accessorKey;let s,c=null!=(r=null!=(i=l.id)?i:a?a.replace(".","_"):void 0)?r:"string"==typeof l.header?l.header:void 0;if(l.accessorFn?s=l.accessorFn:a&&(s=a.includes(".")?e=>{let t=e;for(const e of a.split(".")){var n;t=null==(n=t)?void 0:n[e],"production"!==process.env.NODE_ENV&&void 0===t&&console.warn(`"${e}" in deeply nested key "${a}" returned undefined.`)}return t}:e=>e[l.accessorKey]),!c){if("production"!==process.env.NODE_ENV)throw new Error(l.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header");throw new Error}let u={id:`${String(c)}`,accessorFn:s,parent:o,depth:n,columnDef:l,columns:[],getFlatColumns:mi((()=>[!0]),(()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),vi(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:mi((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[u]}),vi(e.options,"debugColumns","column.getLeafColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(r,e,o,n),l=e;return i.columns=l.columns?t(l.columns,i,o+1):[],i}))};return t(e)}),vi(e,"debugColumns","getAllColumns")),getAllFlatColumns:mi((()=>[r.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),vi(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:mi((()=>[r.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),vi(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:mi((()=>[r.getAllColumns(),r._getOrderColumnsFn()]),((e,t)=>{let n=e.flatMap((e=>e.getLeafColumns()));return t(n)}),vi(e,"debugColumns","getAllLeafColumns")),getColumn:e=>{const t=r._getAllFlatColumnsById()[e];return"production"===process.env.NODE_ENV||t||console.error(`[Table] Column with id '${e}' does not exist.`),t}};Object.assign(r,c);for(let e=0;e<r._features.length;e++){const t=r._features[e];null==t||null==t.createTable||t.createTable(r)}return r}
|
|
571
|
-
/**
|
|
572
|
-
* react-table
|
|
573
|
-
*
|
|
574
|
-
* Copyright (c) TanStack
|
|
575
|
-
*
|
|
576
|
-
* This source code is licensed under the MIT license found in the
|
|
577
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
578
|
-
*
|
|
579
|
-
* @license MIT
|
|
580
|
-
*/
|
|
581
|
-
function sl(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?o.createElement(e,t):e:null;var n}const cl=nn.table`
|
|
582
|
-
width: 100%;
|
|
583
|
-
border-collapse: collapse;
|
|
584
|
-
position: relative;
|
|
585
|
-
|
|
586
|
-
thead,
|
|
587
|
-
tbody {
|
|
588
|
-
display: table;
|
|
589
|
-
width: 100%;
|
|
590
|
-
table-layout: fixed;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
thead {
|
|
594
|
-
position: sticky;
|
|
595
|
-
top: 0;
|
|
596
|
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
597
|
-
z-index: 1;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
th {
|
|
601
|
-
font-weight: var(--font-weight--bold);
|
|
602
|
-
color: var(--color--grey);
|
|
603
|
-
text-align: left;
|
|
931
|
+
`;
|
|
932
|
+
const sizes = {
|
|
933
|
+
medium: at `
|
|
934
|
+
padding: var(--spacing--small) var(--spacing--medium);
|
|
935
|
+
font-size: var(--font-size--medium);
|
|
936
|
+
font-weight: 600;
|
|
937
|
+
`,
|
|
938
|
+
small: at `
|
|
939
|
+
padding: var(--spacing--xsmall) var(--spacing--small);
|
|
940
|
+
font-size: var(--font-size--small);
|
|
941
|
+
font-weight: 500;
|
|
942
|
+
`,
|
|
943
|
+
xsmall: at `
|
|
944
|
+
padding: var(--spacing--xxsmall) var(--spacing--xsmall);
|
|
604
945
|
font-size: var(--font-size--xsmall);
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
946
|
+
font-weight: 500;
|
|
947
|
+
`,
|
|
948
|
+
xxsmall: at `
|
|
949
|
+
padding: var(--spacing--xxxsmall) var(--spacing--xxsmall);
|
|
950
|
+
font-size: var(--font-size--xxsmall);
|
|
951
|
+
font-weight: 500;
|
|
952
|
+
`,
|
|
953
|
+
};
|
|
954
|
+
const kinds = {
|
|
955
|
+
default: at `
|
|
956
|
+
background-color: transaprent;
|
|
957
|
+
color: var(--color--body);
|
|
958
|
+
border: 1px solid var(--color--grey-line);
|
|
959
|
+
`,
|
|
960
|
+
danger: at `
|
|
610
961
|
background-color: var(--color--white);
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
td {
|
|
618
|
-
font-size: var(--font-size--small);
|
|
619
|
-
font-weight: var(--font-weight--regular);
|
|
620
|
-
line-height: 1.5;
|
|
621
|
-
color: var(--color--grey-dark);
|
|
622
|
-
text-align: left;
|
|
623
|
-
padding: var(--spacing--small);
|
|
624
|
-
display: table-cell;
|
|
625
|
-
vertical-align: middle;
|
|
626
|
-
|
|
627
|
-
&.name {
|
|
628
|
-
font-weight: 500;
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
th:first-child,
|
|
633
|
-
td:first-child,
|
|
634
|
-
th:last-child,
|
|
635
|
-
td:last-child {
|
|
636
|
-
padding-left: 20px;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
.command-buttons {
|
|
640
|
-
width: 200px;
|
|
641
|
-
> div {
|
|
642
|
-
display: flex;
|
|
643
|
-
gap: var(--spacing--small);
|
|
644
|
-
align-items: center;
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
.uploaded,
|
|
649
|
-
.reviewed {
|
|
650
|
-
display: flex;
|
|
651
|
-
flex-direction: column;
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
.heading {
|
|
655
|
-
font-size: var(--font-size--medium);
|
|
656
|
-
}
|
|
657
|
-
`,ul=nn.div`
|
|
658
|
-
display: flex;
|
|
659
|
-
justify-content: space-between;
|
|
660
|
-
align-items: center;
|
|
661
|
-
padding: var(--spacing--small) var(--spacing--medium);
|
|
662
|
-
border-bottom: 1px solid #ddd;
|
|
663
|
-
gap: var(--spacing--medium);
|
|
664
|
-
background: white;
|
|
665
|
-
|
|
666
|
-
span {
|
|
667
|
-
display: flex;
|
|
668
|
-
align-items: center;
|
|
669
|
-
gap: var(--spacing--small);
|
|
670
|
-
}
|
|
671
|
-
`,dl=nn.div`
|
|
672
|
-
display: flex;
|
|
673
|
-
gap: var(--spacing--medium);
|
|
674
|
-
|
|
675
|
-
a,
|
|
676
|
-
button {
|
|
677
|
-
display: inline-flex;
|
|
678
|
-
align-items: center;
|
|
679
|
-
justify-content: center;
|
|
680
|
-
padding: var(--spacing--small);
|
|
681
|
-
line-height: 1.5;
|
|
682
|
-
text-decoration: none;
|
|
683
|
-
cursor: pointer;
|
|
684
|
-
color: var(--color--grey-dark);
|
|
685
|
-
border: none;
|
|
962
|
+
color: var(--color--danger);
|
|
963
|
+
border: 1px solid var(--color--danger-light);
|
|
964
|
+
`,
|
|
965
|
+
warning: at `
|
|
686
966
|
background-color: var(--color--white);
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
font-weight: 500;
|
|
708
|
-
transition: border-bottom 0.2s ease-in-out;
|
|
709
|
-
margin-top: var(--spacing--medium);
|
|
710
|
-
margin-bottom: var(--spacing--medium);
|
|
711
|
-
`,fl=nn.div`
|
|
712
|
-
display: flex;
|
|
713
|
-
border-bottom: 3px solid var(--color--grey-borders);
|
|
714
|
-
@media print {
|
|
715
|
-
display: none;
|
|
716
|
-
}
|
|
717
|
-
`,hl=nn.div`
|
|
718
|
-
display: flex;
|
|
719
|
-
width: 100%;
|
|
720
|
-
overflow: auto;
|
|
721
|
-
margin-bottom: -3px;
|
|
722
|
-
|
|
723
|
-
&::-webkit-scrollbar {
|
|
724
|
-
display: none;
|
|
725
|
-
}
|
|
726
|
-
`,ml=nn.button`
|
|
727
|
-
position: relative;
|
|
728
|
-
background-color: transparent;
|
|
729
|
-
border: none;
|
|
730
|
-
border-bottom: 3px solid transparent;
|
|
731
|
-
padding: var(--spacing--medium) var(--spacing--large);
|
|
732
|
-
transition:
|
|
733
|
-
border-bottom 0.2s ease-in-out,
|
|
734
|
-
color 0.2s ease-in-out;
|
|
735
|
-
color: var(--color--grey);
|
|
736
|
-
font-weight: 600;
|
|
737
|
-
font-size: var(--font-size--large);
|
|
738
|
-
white-space: nowrap;
|
|
739
|
-
text-overflow: ellipsis;
|
|
740
|
-
|
|
741
|
-
&:hover,
|
|
742
|
-
&:focus,
|
|
743
|
-
&:active,
|
|
744
|
-
&:focus {
|
|
745
|
-
border-bottom: 3px solid var(--color--primary);
|
|
746
|
-
cursor: pointer;
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
&[aria-selected="true"] {
|
|
750
|
-
border-bottom: 3px solid var(--color--primary);
|
|
751
|
-
color: var(--color--black);
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
@media print {
|
|
755
|
-
display: none;
|
|
756
|
-
}
|
|
757
|
-
`,vl=nn.button`
|
|
758
|
-
background: transparent;
|
|
759
|
-
border: 0;
|
|
760
|
-
cursor: pointer;
|
|
761
|
-
transition: color 0.2s ease-in-out;
|
|
762
|
-
|
|
763
|
-
i {
|
|
764
|
-
color: var(--color--grey-borders);
|
|
765
|
-
&:hover,
|
|
766
|
-
&:focus,
|
|
767
|
-
&:active,
|
|
768
|
-
&:focus {
|
|
769
|
-
color: var(--color--grey);
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
// disable hover when disabled
|
|
773
|
-
&[disabled] {
|
|
774
|
-
visibility: hidden;
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
&.left-arrow[disabled] {
|
|
778
|
-
display: none;
|
|
779
|
-
}
|
|
780
|
-
`,bl=nn.div`
|
|
781
|
-
margin-top: var(--spacing--medium);
|
|
782
|
-
background-color: var(--color--white);
|
|
783
|
-
padding: var(--spacing--large);
|
|
784
|
-
border-radius: var(--border-radius--medium);
|
|
785
|
-
box-shadow: var(--box-shadow--medium);
|
|
786
|
-
text-align: left;
|
|
787
|
-
font-weight: 400;
|
|
788
|
-
|
|
789
|
-
@media print {
|
|
790
|
-
padding: 0;
|
|
791
|
-
border-radius: 0;
|
|
792
|
-
box-shadow: none;
|
|
793
|
-
}
|
|
794
|
-
`,wl=nn.section`
|
|
795
|
-
display: ${({$show:e})=>e?"flex":"none"};
|
|
796
|
-
flex-direction: column;
|
|
797
|
-
|
|
798
|
-
// display on print
|
|
799
|
-
@media print {
|
|
800
|
-
display: flex;
|
|
801
|
-
page-break-after: always;
|
|
802
|
-
&:last-child {
|
|
803
|
-
page-break-after: avoid;
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
`;var yl=Object.freeze({__proto__:null,Tabs:function({tabsConfig:n=[],defaultIndex:o=0}){const[r,l]=c(o),a=i(null),s=i([]),[g,p]=c(!1),[f,h]=c({right:!1,left:!0}),m=e=>{if(!a.current)return;const t=s.current[e];t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})},v=e=>{const t=s.current[e];t&&t.focus(),m(e)},b=e=>{const t=n.length,o={ArrowRight:()=>v((r+1)%t),ArrowLeft:()=>v((r-1+t)%t),Home:()=>v(0),End:()=>v(t-1)}[e.key];o&&(e.preventDefault(),o())},w=(e,t)=>{if(!e)return;let n=0;const o=setInterval((()=>{e.scrollLeft+=t,n+=Math.abs(t),n>=100&&clearInterval(o)}),20);h({left:e.scrollLeft<=0,right:e.scrollLeft+e.offsetWidth>=e.scrollWidth})};return d((()=>{a.current&&p(a.current.offsetWidth<a.current.scrollWidth)}),[]),u((()=>{const e=()=>{if(!a.current)return;const{offsetWidth:e,scrollWidth:t}=a.current;p(e<t)};return window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e)}}),[]),t(pl,{children:[t(fl,{role:"tablist","aria-orientation":"horizontal",children:[g&&t(vl,{onClick:()=>a.current&&w(a.current,-30),className:"left-arrow","aria-label":"Left arrow",disabled:f.left,children:[e(Vn,{name:"fa/chevron-left-solid",size:"large"})," "]}),e(hl,{ref:a,children:n.length>0?n.map(((t,n)=>e(ml,{type:"button",onClick:()=>(e=>{m(e),l(e)})(n),role:"tab",ref:e=>{e&&(s.current[n]=e)},"aria-controls":`panel-id-${n}`,"aria-selected":r===n,id:`tab-id-${n}`,onKeyDown:b,onFocus:()=>l(n),tabIndex:r===n?0:-1,children:t.label},`tab-${t.label}`))):e("div",{children:"No tab content to display"})}),g&&e(vl,{onClick:()=>a.current&&w(a.current,30),className:"right-arrow","aria-label":"Right arrow",disabled:f.right,children:e(Vn,{name:"fa/chevron-right-solid",size:"large"})})]}),e(bl,{children:n.map(((n,o)=>t(wl,{role:"tabpanel","aria-labelledby":`tab-id-${o}`,id:`panel-id-${o}`,$show:r===o,tabIndex:0,children:[n.label?e(ln,{as:"h2",children:n.label}):null,n.content]},`tabpanel-${n.label}`)))})]})}});const xl={small:Qt`
|
|
807
|
-
font-size: var(--font-size--small);
|
|
808
|
-
line-height: var(--line-height--small);
|
|
809
|
-
`,medium:Qt`
|
|
810
|
-
font-size: var(--font-size--medium);
|
|
811
|
-
line-height: var(--line-height--medium);
|
|
812
|
-
`,large:Qt`
|
|
813
|
-
font-size: var(--font-size--large);
|
|
814
|
-
line-height: var(--line-height--large);
|
|
815
|
-
`},Cl=nn.div`
|
|
816
|
-
font-weight: var(--font-weight--bold);
|
|
817
|
-
color: var(--color--grey-dark);
|
|
818
|
-
margin-bottom: var(--spacing--xsmall);
|
|
819
|
-
${({$size:e})=>xl[e||"medium"]}
|
|
820
|
-
`,Sl=nn.div`
|
|
821
|
-
font-weight: 400;
|
|
822
|
-
${({$size:e})=>xl[e||"medium"]}
|
|
823
|
-
`,Rl=nn.div`
|
|
824
|
-
grid-gap: var(--spacing--medium);
|
|
825
|
-
${({$inline:e})=>e?Qt`
|
|
826
|
-
display: grid;
|
|
827
|
-
grid-template-columns: 1fr 3fr;
|
|
828
|
-
@media (max-width: 768px) {
|
|
829
|
-
grid-template-columns: 1fr;
|
|
830
|
-
}
|
|
831
|
-
`:""}
|
|
832
|
-
`;var zl=Object.freeze({__proto__:null,TextField:function({label:n,content:o,size:r,inline:i=!1}){return t(Rl,{$inline:i,children:[n?e(Cl,{$size:r,children:n}):null,o?e(Sl,{$size:r,children:o}):null]})}}),kl=Object.freeze({__proto__:null});export{Ln as Accordion,Hn as Badge,Gn as Breadcrumb,ro as Button,vo as Header,an as Heading,On as Icon,bo as LoadingSpinner,ao as Logo,ko as ProgressBar,Po as ProgressCircle,Co as ReadMore,gi as StatusIcon,gl as Table,yl as Tabs,zl as TextField,kl as ToastMessage,ii as Tooltip};
|
|
967
|
+
color: var(--color--warning);
|
|
968
|
+
border: 1px solid var(--color--warning-light);
|
|
969
|
+
`,
|
|
970
|
+
grey: at `
|
|
971
|
+
background-color: var(--color--grey-line);
|
|
972
|
+
color: var(--color--grey-dark);
|
|
973
|
+
border: 1px solid var(--color--grey-line);
|
|
974
|
+
`,
|
|
975
|
+
};
|
|
976
|
+
const StyledBadge = ut.div `
|
|
977
|
+
${BaseStyle}
|
|
978
|
+
|
|
979
|
+
${({ size }) => sizes[size || "medium"]}
|
|
980
|
+
${({ kind }) => kinds[kind || "default"]}
|
|
981
|
+
`;
|
|
982
|
+
function Badge({ children, ...props }) {
|
|
983
|
+
return jsx(StyledBadge, { ...props, children: children });
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
export { Badge };
|
|
833
987
|
//# sourceMappingURL=index.js.map
|